Library package import question

Martin Marcher martin at marcher.name
Mon Nov 5 18:30:03 EST 2007


2007/11/5, Frank Aune <Frank.Aune at broadpark.no>:
> To prevent namespace pollution, I want to import and use this library in the
> following way:
>
> import Foo
> (...)
> t = Foo.module2.Bee()

from x import y as z



that has always worked for me to prevent pollution...

-- 
http://noneisyours.marcher.name
http://feeds.feedburner.com/NoneIsYours



More information about the Python-list mailing list