[Python-checkins] peps: PEP 394: Clarify that "python" should mean "python2"

nick.coghlan python-checkins at python.org
Tue Sep 30 13:20:26 CEST 2014


https://hg.python.org/peps/rev/3d16b0cd10bc
changeset:   5564:3d16b0cd10bc
user:        Nick Coghlan <ncoghlan at gmail.com>
date:        Tue Sep 30 21:18:22 2014 +1000
summary:
  PEP 394: Clarify that "python" should mean "python2"

files:
  pep-0394.txt |  19 +++++++++++--------
  1 files changed, 11 insertions(+), 8 deletions(-)


diff --git a/pep-0394.txt b/pep-0394.txt
--- a/pep-0394.txt
+++ b/pep-0394.txt
@@ -8,7 +8,7 @@
 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 @@
 * 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 @@
   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 @@
 .. [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.

-- 
Repository URL: https://hg.python.org/peps


More information about the Python-checkins mailing list