| CARVIEW |
Select Language
HTTP/1.1 200 OK
Date: Tue, 30 Dec 2025 07:44:10 GMT
Server: Apache/2.4.39 (Ubuntu)
Strict-Transport-Security: max-age=31556926
Upgrade: h2,h2c
Connection: Upgrade
Last-Modified: Fri, 31 Mar 2006 19:48:45 GMT
ETag: "f2c-4104fba8b6140-gzip"
Accept-Ranges: bytes
Vary: Accept-Encoding
Content-Encoding: gzip
Content-Length: 1329
Content-Type: text/html
[Python-Dev] What about PEP 299?
Wed Mar 29 00:58:58 CEST 2006
More information about the Python-Dev mailing list
[Python-Dev] What about PEP 299?
Charles Cazabon python at discworld.dyndns.orgWed Mar 29 00:58:58 CEST 2006
- Previous message: [Python-Dev] What about PEP 299?
- Next message: [Python-Dev] What about PEP 299?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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 -m somemodule" as long as somemodule.py uses the if > __name__=='__main__' convention. What does your proposal add? Well, it's not really my proposal. I'm just suggesting the behaviour in PEP299 could be added via a commandline option so that it doesn't introduce backward-incompatibility. I don't see any particular benefit to PEP299 myself -- I'd rather just add an entry to the style guide about standardizing the "executable stanza" and main() function. Charles -- ----------------------------------------------------------------------- Charles Cazabon <python at discworld.dyndns.org> GPL'ed software available at: https://pyropus.ca/software/ -----------------------------------------------------------------------
- Previous message: [Python-Dev] What about PEP 299?
- Next message: [Python-Dev] What about PEP 299?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-Dev mailing list