multiple namespaces within a single module?

jkn jkn_gg at
Fri Feb 10 11:28:50 EST 2012

Hi Peter

On Feb 10, 11:10 am, Peter Otten <__pete... at> 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 python -c'import mainmod; mainmod.main()'
> assuming you have a module containing a function main() in

That looks very useful  -thanks for the tip!


More information about the Python-list mailing list