[Python-ideas] PEP for executing a module in a package containing relative imports
brett at python.org
Sat Apr 21 19:54:07 CEST 2007
On 4/21/07, Christian Heimes <lists at cheimes.de> wrote:
> If you like to introduce __main__ why not implement
> http://www.python.org/dev/peps/pep-0299 ? It proposes a __main__(*argv*)
> module level function that replaced the "if __name__ == '__main__'"
> idiom. The __main__ function follows the example of other programming
> languages like C, C# and Java.
Because I don't like the solution and thus didn't want to do the
footwork for it. =)
More information about the Python-ideas