[Python-ideas] Replacing the if __name__ == "__main__" idiom (was Re: making a module callable)
Nick Coghlan
ncoghlan at gmail.com
Tue Nov 26 11:01:32 CET 2013
On 26 Nov 2013 10:00, "Mark Janssen" <dreamingforward at gmail.com> wrote:
>
> The only other possibility not mentioned thus far is to have a main.py
> file and force python programs to start from it.
Looking for a __main__.py module (or submodule) is the way directory,
zipfile and package execution work, so this style is already possible today
for anyone that wants or needs it.
Cheers,
Nick.
>
> markj
> _______________________________________________
> Python-ideas mailing list
> Python-ideas at python.org
> https://mail.python.org/mailman/listinfo/python-ideas
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20131126/b6074466/attachment-0001.html>
More information about the Python-ideas
mailing list