"I suspect you don't need any changes to the language to make this work" - you are right, this problem does not affect the language itself, but the idlelib library.... - I was thinking of an "pyidle" executable next to the "py" and "pyw" executables. I am also trying to create a small script to do this... 2014-12-30 23:38 GMT+01:00 Chris Angelico <rosuav@gmail.com>:
On Wed, Dec 31, 2014 at 7:31 AM, Liam Marsh <liam.marsh.home@gmail.com> wrote:
the pep 397 says that any python script is able to choose the language version which will run it, between all the versions installed on the computer, using on windows a launcher in the "C:\windows" folder.
can the idle version be chosen like this too, or can the idle "run" command do it?
I don't know of a way off-hand. However, if the information is already there in the shebang (as per PEP 397), it ought to be possible to rig up a launcher/chooser script. This might be something to discuss on python-list@python.org, rather than here; there are a lot more people on python-list than there are here on -ideas, and I suspect you don't need any changes to the language to make this work.
It's also entirely possible that someone there already knows exactly what you need to do!
ChrisA _______________________________________________ Python-ideas mailing list Python-ideas@python.org https://mail.python.org/mailman/listinfo/python-ideas Code of Conduct: http://python.org/psf/codeofconduct/