En Mon, 05 Nov 2007 10:34:26 -0300, Frank Aune <[EMAIL PROTECTED]>
escribió:
> I have a python library package 'Foo', which contains alot of submodules:
>
> Foo/:
> __init__.py
> module1.py:
> class Bar()
> class Hmm()
> module2.py
> cl
2007/11/5, Frank Aune <[EMAIL PROTECTED]>:
> 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.na
Hello,
I have a python library package 'Foo', which contains alot of submodules:
Foo/:
__init__.py
module1.py:
class Bar()
class Hmm()
module2.py
class Bee()
class Wax()
module3.py
etc