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 ricpol
Recipients Jens Lindgren, Steve Barnes, eryksun, fireattack, paul.moore, ricpol, steve.dower, tim.golden, vinay.sajip, wdhwg001, zach.ware
Date 2020-03-18.21:12:05
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1584565926.3.0.297661176074.issue28686@roundup.psfhosted.org>
In-reply-to
Content
Three years later, this problem seems on the way to fix itself (https://xkcd.com/1822/).

Versioned shebangs (and versioned "/env" shebangs) used to be a more prominent issue when you needed a way to tell Python 2 / Python 3 scripts apart. With the sunset of Python 2.7-3.3 almost completed, now we have a reasonably homogeneous block of inter-compatible Pythons.
True, py.exe won't cope very well with versioned shebangs, but this seems to become less and less annoying by the day.

As for the other problem from issue 39785, ie Python 2 still being selected as "default" in deference to some arcane Linux convention that we have been dragging for ten years (even on Windows!)... it would be nice to finally have *that* fixed. 
But then again, having Python 2 installed on your Windows box is becoming increasingly rare. Most users are likely never hitting this weirdness any more. 



In the meantime, now we have yet another way of installing Python on Windows... versioned executables from the Store! With no py.exe! So, who knows, maybe py.exe is the past, versioned executable are the future...

To sum up, while I would certainly add a note to the docs, to clarify that py.exe does not support versioned "/env" shebangs, IMO today the work needed to specify a behaviour for all possible cases, possibly even extending/modifying Linux conventions, is just too much to be worth the effort.
History
Date User Action Args
2020-03-18 21:12:06ricpolsetrecipients: + ricpol, paul.moore, vinay.sajip, tim.golden, zach.ware, eryksun, steve.dower, fireattack, wdhwg001, Steve Barnes, Jens Lindgren
2020-03-18 21:12:06ricpolsetmessageid: <1584565926.3.0.297661176074.issue28686@roundup.psfhosted.org>
2020-03-18 21:12:06ricpollinkissue28686 messages
2020-03-18 21:12:05ricpolcreate