Using "external" vars on module load time

Diez B. Roggisch deets at nospam.web.de
Wed Jun 14 10:32:22 EDT 2006


Marco Aschwanden schrieb:
> Marvelous that was the solution I was looking for.
> 
>> I think you should consider a class instead of a module, though.
> 
> What I don't get: Why should I consider using a class?

Because sharing state in such a way that several functions need to 
access some later bound globals cries for a class that gets that very 
state passed on instantiation.

Diez



More information about the Python-list mailing list