wuwei23 at gmail.com
Tue Sep 21 03:30:41 CEST 2010
Bruno Desthuilliers <bruno.42.desthuilli... at websiteburo.invalid>
> alex23 a écrit :
> > Python only actually executes a module the first time it's imported,
> Beware of multithreading and modules imported under different names...
> There can be issues with both in some web frameowrks.
Good points, Bruno, thank you.
Niklasro, a good example of Bruno's second point: running a module as
a script and then importing it elsewhere later will execute the module
in the second import, creating two module objects - '__main__' and
The issue with threading is the more important one of which to be
More information about the Python-list