[Python-Dev] PEP 395: Module Aliasing

Ray Allen ysj.ray at gmail.com
Fri Mar 18 15:32:15 CET 2011


    Just now I was trapped by the "Importing the main module twice" problem
for a while, and then I searched on web and go into here. It seems pretty
good to fix this problem, since it is really difficult to find out this
problem. Anyway, a module should not be initialized twice which results in
that each of the objects defined in this module has TWO instances
in separate modules. Accidentally people will mix up them together.

-- 
Ray Allen
Best wishes!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-dev/attachments/20110318/cfc9eabd/attachment.html>


More information about the Python-Dev mailing list