Roy Smith wrote:
So, it appears that you *can* import a module twice, if you refer to it by different names! This is surprising. It means that having non-idempotent code which is executed at import time is a Bad Thing.
Not exactly, it means that one module is different from another if its path is different. That means you need to be extra careful about how you reference a module. Content is not used to discriminate modules.

JM
--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to