multiple namespaces within a single module?
jkn_gg at nicorp.f9.co.uk
Fri Feb 10 11:28:50 EST 2012
On Feb 10, 11:10 am, Peter Otten <__pete... at web.de> wrote:
> > Hmm ... thanks for mentioning this feature, I didn't know of it
> > before. Sounds great, except that I gather it needs Python >2.5? I'm
> > stuck with v2.4 at the moment unfortunately...
> You can import and run explicitly,
> $ PYTHONPATH mylib.zip python -c'import mainmod; mainmod.main()'
> assuming you have a module mainmod.py containing a function main() in
That looks very useful -thanks for the tip!
More information about the Python-list