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, paul.moore, ricpol, steve.dower, tim.golden, vinay.sajip, wdhwg001, zach.ware
Date 2017-06-07.17:46:16
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1496857576.43.0.831849547171.issue28686@psf.upfronthosting.co.za>
In-reply-to
Content
@Jens Lindgren

I know, pretty annoying right? But see previous answer by Paul here http://bugs.python.org/issue28686#msg287181

> The Unix ability to have 2 different versions of Python on PATH 
> and select which you use based on executable name doesn't exist 
> on Windows, and so there's no equivalent of the 
> Unix "#!/usr/bin/env pythonX[.Y]"

Now if you ask me, I would expect py.exe to handle all common types of shebang you may find in the wild. 
But I assume that the correct answer instead is that "#!/usr/bin/env pythonX[.Y]" is not a portable shebang, and you just should stop using it. If you happen to find such a shebang in someone else's script, file a bug report there.
History
Date User Action Args
2017-06-07 17:46:16ricpolsetrecipients: + ricpol, paul.moore, vinay.sajip, tim.golden, zach.ware, eryksun, steve.dower, wdhwg001, Steve Barnes, Jens Lindgren
2017-06-07 17:46:16ricpolsetmessageid: <1496857576.43.0.831849547171.issue28686@psf.upfronthosting.co.za>
2017-06-07 17:46:16ricpollinkissue28686 messages
2017-06-07 17:46:16ricpolcreate