Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fixup! PEP 394: Distributions can choose what does python mean
  • Loading branch information
hroncok committed Apr 18, 2019
commit 36e61fab741926628987a9a61f0dc6d5cb623b05
12 changes: 8 additions & 4 deletions pep-0394.txt
Original file line number Diff line number Diff line change
Expand Up @@ -236,10 +236,14 @@ making such a change.
versa. That way, if a sysadmin does decide to replace the installed
``python`` file, they can do so without inadvertently deleting the
previously installed binary.
* When the Python 2 interpreter becomes uncommon, scripts should nevertheless
continue to use the ``python3`` convention rather that just ``python``. This
will ease transition in the event that yet another major version of Python
is released.
* Even as the Python 2 interpreter becomes less common, scripts should
Comment thread
encukou marked this conversation as resolved.
Outdated
nevertheless continue to use the ``python3`` convention rather than just
``python``. In the event of a future Python 4.0 release, distributors may

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd suggest leaving out any mention of Python 4. 1) it can create FUD; 2) it's entirely vaporware; 3) we don't even know whether there will be a Python 4 or what it will look like. We can always add a Python 4 recommendation when the time comes.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agreed. Good catch @warsaw

then choose to simply alias ``python3`` to the same binary as ``python4``
(if the degree of change will be the same as in any other Python feature
release), or else they may choose to maintain parallel ``python3`` and
``python4`` stacks for a time (depending on the needs of their specific
audience).
* If these conventions are adhered to, it will become the case that the
``python`` command is only executed in an interactive manner as a user
convenience, or else when using a virtual environment or similar mechanism.
Expand Down