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

Alan Cristhian Ruiz alan.cristh at gmail.com
Tue Nov 26 17:34:28 CET 2013


I think the need to change * if __ name__ == "__main__": * is capricious 
and obsessive. The current rule is better than anything that has been 
suggested so far. I never had any problems with the * if __ name__ == 
"__main__": *. Also in python there are other things much more difficult 
to learn and use, such as metaclasses.


More information about the Python-ideas mailing list