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

Nick Coghlan ncoghlan at gmail.com
Mon Nov 25 15:22:12 CET 2013


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.

Cheers,
Nick.

-- 
Nick Coghlan   |   ncoghlan at gmail.com   |   Brisbane, Australia


More information about the Python-ideas mailing list