Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on I just want to run this one Python script. Parent comment
The current version of PEP 394 says:
] If the python command is installed, it is expected to invoke either the same version of Python as the python3 command or as the python2 command.
] Distributors may choose to set the behavior of the python command as follows:
python2, python3, not provide python command, allow python to be configurable by an end user or a system administrator.
] This PEP originally provided a very simple mechanism ...
and just after it is:
] However, these recommendations implicitly assumed that Python 2 would always be available.
This historic advice is no longer recommended.
The change was made on July 5, 2019 - https://github.com/python/peps/commit/ae932bd6fd2c493d7d64ce... .
There are no comments on this comment yet.
The current version of PEP 394 says:
] If the python command is installed, it is expected to invoke either the same version of Python as the python3 command or as the python2 command.
] Distributors may choose to set the behavior of the python command as follows:
The part you quoted is from the section "History of this PEP". Just before your quoted text is:] This PEP originally provided a very simple mechanism ...
and just after it is:
] However, these recommendations implicitly assumed that Python 2 would always be available.
This historic advice is no longer recommended.
The change was made on July 5, 2019 - https://github.com/python/peps/commit/ae932bd6fd2c493d7d64ce... .