Bruno Desthuilliers <bruno.42.desthuilli...@websiteburo.invalid> wrote: > 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 '<modulename>'. The issue with threading is the more important one of which to be aware. -- http://mail.python.org/mailman/listinfo/python-list