A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2006-March/062966.html below:

[Python-Dev] What about PEP 299?

[Python-Dev] What about PEP 299? [Python-Dev] What about PEP 299?Guido van Rossum guido at python.org
Wed Mar 29 00:54:11 CEST 2006
Sorry, I meant "python -m somemodule".

On 3/28/06, Guido van Rossum <guido at python.org> wrote:
> On 3/28/06, Charles Cazabon <python at discworld.dyndns.org> wrote:
> > It might be worth instead adding an option flag to the executable that implies
> > "from the loaded module, run __main__() with sys.argv as its argument(s)", so
> > the user can get this behaviour with `python -X somemodule.py`.
>
> You can do "python -x somemodule" as long as somemodule.py uses the if
> __name__=='__main__' convention. What does your proposal add?
>
> --
> --Guido van Rossum (home page: http://www.python.org/~guido/)
>


--
--Guido van Rossum (home page: http://www.python.org/~guido/)
More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4