[Ironpython-users] IronPython imports all names from sub-namespaces?

Vardeman, Andrew [CSSM] andrewv at iastate.edu
Fri Sep 2 23:48:07 CEST 2011

I'm seeing a behavior in IronPython that surprises me, but I'm new to Python and it may just be expected.  On this page:


I found this blurb:

"Once a namespace is imported, all nested namespaces are also accessible."

Does this mean that, if I do a "from Foo import *", I get the names from the sub-namespaces Foo.Bar and Foo.Baz all flattened into my module's namespace (i.e. with no "Bar" and "Baz" prefixes)?  That's what seems to be happening in my project.



More information about the Ironpython-users mailing list