[Python-Dev] nested packages and import order
joerg at britannica.bec.de
Mon Oct 6 08:48:10 EDT 2003
I have a package a.b with the following content:
Running this generates a AttributeError for b, obviously the
import didn't add b to the module "a". Even though it can be
argued that importing a package from within is bad style, this
a clearly a bug since its at least surprising.
Shouldn't the import create the namespace entry in a after it
created the module entry in sys.modules?
P.S.: Please CC me, I'm not subscriped
More information about the Python-Dev