vernondcole wrote Fri at 2:32 AMI made a clone of the git version of PLW to look this idea over. It is a smallish C++ program and should not be too hard to patch to make alternate-implementation friendly. The problem today is that it is CPython specific and searches the Windows registry to determine which versions of Python are present. Alternate implementations are supported only using entries in the py.ini file and setting the #! line in your source code approprietly. (Which works great. I even have mine launching perl scripts, just to proove that it can.)
I propose adding two features to PLW.
1) extend the first command-line switch to also pick items from the py.ini file. I would like to type:
py -ipy myprogram.py
and have the command associated with "ipy" in my py.ini file executed.
2) PLW should have (in py.ini) a [default] section identifying which command in the [commands] section should be run in the absence of a command-line switch.
Alternate implementations should then install (or modify) py.ini to support their interpreter.
The extended PLW version ought to be backported to the CPython distribution, so that any implementation of Python will work. I don't think that the CPython group would object.
Note 1: I have not compared to make sure the stand-alone PLW is identical with the Python 3.3 version.
Note 2: We need to make sure that PLW will work correctly even if no CPython versions are present.
Note 3: I fear that I have just volunteered to write the patch. Is someone else out there williing? It's been a very long time since I wrote commercial quality C code.