[Python-ideas] Replacing the if __name__ == "__main__" idiom (was Re: making a module callable)
M.-A. Lemburg
mal at egenix.com
Tue Nov 26 00:55:34 CET 2013
On 25.11.2013 23:39, Barry Warsaw wrote:
> On Nov 25, 2013, at 02:29 PM, Guido van Rossum wrote:
>
>> For all I care you can call it ismain().
>
> Okay, I think I'm going to officially not care now. :) None of these suggestions seem worth
> the effort to indoctrinate folks to some new idiom, regardless of how it's spelled.
+1
As long as "if __name__ == '__main__': ..." doesn't stop working,
I don't care either :-)
--
Marc-Andre Lemburg
eGenix.com
Professional Python Services directly from the Source (#1, Nov 26 2013)
>>> Python Projects, Consulting and Support ... http://www.egenix.com/
>>> mxODBC.Zope/Plone.Database.Adapter ... http://zope.egenix.com/ mxODBC, mxDateTime,
>>> mxTextTools ... http://python.egenix.com/
________________________________________________________________________
::::: Try our mxODBC.Connect Python Database Interface for free ! ::::::
eGenix.com Software, Skills and Services GmbH Pastor-Loeh-Str.48
D-40764 Langenfeld, Germany. CEO Dipl.-Math. Marc-Andre Lemburg
Registered at Amtsgericht Duesseldorf: HRB 46611
http://www.egenix.com/company/contact/
More information about the Python-ideas
mailing list