This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author paul.moore
Recipients Alexandros Karypidis, paul.moore, steve.dower, tim.golden, zach.ware
Date 2019-12-09.08:19:50
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1575879590.47.0.201202973181.issue38999@roundup.psfhosted.org>
In-reply-to
Content
See PEP 486 (https://www.python.org/dev/peps/pep-0486/). This is intended behaviour, as it is assumed that explicitly specifying a Python version means that the user had a specific Python interpreter in mind.

There are also technical issues - if the shebang says #!/usr/bin/python2, and a virtual environment is active, how do we know if it's a Python 2 or 3 environment (without launching the interpreter, which is a significant extra cost for the launcher)? It would definitely be wrong to launch a Python 3 interpreter in that case.
History
Date User Action Args
2019-12-09 08:19:50paul.mooresetrecipients: + paul.moore, tim.golden, zach.ware, steve.dower, Alexandros Karypidis
2019-12-09 08:19:50paul.mooresetmessageid: <1575879590.47.0.201202973181.issue38999@roundup.psfhosted.org>
2019-12-09 08:19:50paul.moorelinkissue38999 messages
2019-12-09 08:19:50paul.moorecreate