[Python-ideas] pep 397

Chris Angelico rosuav at gmail.com
Tue Dec 30 23:38:39 CET 2014


On Wed, Dec 31, 2014 at 7:31 AM, Liam Marsh <liam.marsh.home at 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 at 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


More information about the Python-ideas mailing list