Guido van Rossum wrote: >>> This is where I wonder why the "def __main__()" PEP was rejected in >>> the first place. It would have solved this problem as well. >> >> Could this be reconsidered for Py3k? > > You have a point.
AFAICT, there's nothing preventing it from being added in 2.6. It won't break existing code with the "if name == main" paradigm. -- Giovanni Bajo _______________________________________________ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com