Message364567
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. |
|
Date |
User |
Action |
Args |
2020-03-18 21:12:06 | ricpol | set | recipients:
+ ricpol, paul.moore, vinay.sajip, tim.golden, zach.ware, eryksun, steve.dower, fireattack, wdhwg001, Steve Barnes, Jens Lindgren |
2020-03-18 21:12:06 | ricpol | set | messageid: <1584565926.3.0.297661176074.issue28686@roundup.psfhosted.org> |
2020-03-18 21:12:06 | ricpol | link | issue28686 messages |
2020-03-18 21:12:05 | ricpol | create | |
|