multiple namespaces within a single module?
Peter Otten
__peter__ at web.de
Thu Feb 9 14:33:27 EST 2012
jkn wrote:
> is it possible to have multiple namespaces within a single python
> module?
Unless you are abusing classes I don't think so.
> I have a small app which is in three or four .py files. For various
> reasons I would like to (perhaps optionally) combine these into one
> file.
Rename your main script into __main__.py, put it into a zip file together
with the other modules and run that.
More information about the Python-list
mailing list