[Python-Dev] [PEPs] Support the /usr/bin/python2 symlink upstream

Paul Moore p.f.moore at gmail.com
Sun Mar 6 15:55:24 CET 2011


On 6 March 2011 02:33, Mark Hammond <skippy.hammond at gmail.com> wrote:
> IIUC, the PEP language is referring to links which point to a specific
> version of Python and that there is no suggestion a 'python3' will live in
> the Python 3 binary tree.  If that is correct and assuming we don't want to
> investigate using links on Windows, I'd suggest the best analogy to the *nix
> situation could be simply for the installers to generate "python2.bat" and
> "python3.bat" files and put them in System32 with a "last installed wins"
> policy.

No, no, no! Please no! Bat files are a lousy way of writing wrappers
on Windows, as they don't nest. I've lost count of the number of times
I've been tripped up by putting a series of commands into a batch
file, only to have them fail because somewhere in the middle is a bat
file wrapper which makes the "outer" bat file stop part way through
:-(

</rant>

Paul.


More information about the Python-Dev mailing list