namespace query

Marco Mariani marco at
Wed Apr 22 15:26:22 CEST 2009

Dr Mephesto wrote:

> ok, sorted. I had thought that when a module was imported, it was
> added to a larger shared namespace used by all the modules.

Now, that would be awfulll

Because one of the most important things about python (and the reason I 
can live without an IDE) is that I can point my finger to an object 
somewhere and tell you where it comes from, without loading a different 
source file.

For the same reason, import * is frowned upon, especially because it's 
transitive (and contagious).

More information about the Python-list mailing list