[Python-ideas] Replacing the if __name__ == "__main__" idiom (was Re: making a module callable)

Gregory P. Smith greg at krypto.org
Sun Dec 1 03:04:05 CET 2013


On Mon, Nov 25, 2013 at 6:22 AM, Nick Coghlan <ncoghlan at gmail.com> wrote:

> On 26 November 2013 00:12, Steven D'Aprano <steve at pearwood.info> wrote:
>
> <A wonderful summary>
>
> I'm wondering if we should add a link to Steven's post from
> http://www.python.org/dev/peps/pep-0299/ (and perhaps even update the
> PEP text itself)
>
> As the status of PEP 299 shows, Guido has rejected the idea of a
> special main function before, but I think Steven's post does a better
> job of spelling out "Why not?" than any of the previous discussions.
>

+1  (if you haven't already done it)

-gps
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20131130/8456d7d9/attachment-0001.html>


More information about the Python-ideas mailing list