bdesth.quelquechose at free.quelquepart.fr
Sun Oct 3 16:32:44 CEST 2010
jimgardener a écrit :
> hi Steven,
> can you explain that?I didn't quite get it.
> I have a module say 'managerutils' where I have a class
What Steven was talking about was to NOT use a class at all. Modules are
objects and have their own namespace. And you can use threading.locals
instead of the module's global namespace if you want to be safe.
More information about the Python-list