[Python-Dev] Allowing import star with namespaces
Brendan Moloney
moloney at ohsu.edu
Tue Apr 26 19:17:18 CEST 2011
We all know that doing:
> from pkg import *
is bad because it obliterates the 'pkg' namespace. So why not allow something like:
> import pkg.*
This would still be helpful for interactive sessions while keeping namespaces around.
Sorry if this has been brought up before, my searching didn't find anything relevant in the archives.
Thanks,
Brendan
More information about the Python-Dev
mailing list