PEP 394: Clarify that "python" should mean "python2"
This commit is contained in:
parent
1562f7779b
commit
0f8d772c36
19
pep-0394.txt
19
pep-0394.txt
|
@ -8,7 +8,7 @@ Status: Active
|
|||
Type: Informational
|
||||
Content-Type: text/x-rst
|
||||
Created: 02-Mar-2011
|
||||
Post-History: 04-Mar-2011, 20-Jul-2011, 16-Feb-2012
|
||||
Post-History: 04-Mar-2011, 20-Jul-2011, 16-Feb-2012, 30-Sep-2012
|
||||
Resolution: http://mail.python.org/pipermail/python-dev/2012-February/116594.html
|
||||
|
||||
|
||||
|
@ -42,12 +42,11 @@ Recommendation
|
|||
* When invoked, ``python2`` should run some version of the Python 2
|
||||
interpreter, and ``python3`` should run some version of the Python 3
|
||||
interpreter.
|
||||
* Similarly, the more general ``python`` command should be installed whenever
|
||||
any version of Python is installed and should invoke the same version of
|
||||
Python as either ``python2`` or ``python3``.
|
||||
* For the time being, it is recommended that ``python`` should refer to
|
||||
``python2`` (however, some distributions have already chosen otherwise; see
|
||||
the `Rationale`_ and `Migration Notes`_ below).
|
||||
* The more general ``python`` command should be installed whenever
|
||||
any version of Python 2 is installed and should invoke the same version of
|
||||
Python as the ``python2`` command (however, note that some distributions
|
||||
have already chosen to make the have ``python`` implement the ``python3``
|
||||
command; see the `Rationale`_ and `Migration Notes`_ below).
|
||||
* The Python 2.x ``idle``, ``pydoc``, and ``python-config`` commands should
|
||||
likewise be available as ``idle2``, ``pydoc2``, and ``python2-config``,
|
||||
with the original commands invoking these versions by default, but possibly
|
||||
|
@ -68,7 +67,8 @@ Recommendation
|
|||
interpreter location remains the preferred approach.
|
||||
|
||||
These recommendations are the outcome of the relevant python-dev discussions
|
||||
in March and July 2011 ([1]_, [2]_) and February 2012 ([4]_).
|
||||
in March and July 2011 ([1]_, [2]_), February 2012 ([4]_) and
|
||||
September 2014 ([6]_).
|
||||
|
||||
|
||||
Rationale
|
||||
|
@ -263,6 +263,9 @@ References
|
|||
.. [5] Arch Linux announcement that their "python" link now refers Python 3
|
||||
(https://www.archlinux.org/news/python-is-now-python-3/)
|
||||
|
||||
.. [6] PEP 394 - Clarification of what "python" command should invoke
|
||||
(https://mail.python.org/pipermail/python-dev/2014-September/136374.html)
|
||||
|
||||
Copyright
|
||||
===========
|
||||
This document has been placed in the public domain.
|
||||
|
|
Loading…
Reference in New Issue