[Python-Dev] Python launcher command line usage (Was: 3.2.1 encoding surprise) (original) (raw)

Antoine Pitrou solipsis at pitrou.net
Tue Jul 19 17:16:47 CEST 2011


On Tue, 19 Jul 2011 16:00:57 +0100 Paul Moore <p.f.moore at gmail.com> wrote:

On 19 July 2011 02:41, Vinay Sajip <vinaysajip at yahoo.co.uk> wrote: > The use of py from the command line is merely a convenience for developers (as > the PEP says) - it's better to rely on shebang lines together with settings in > the .ini to get the behaviour you want.

But it's a huge convenience for running multiple Python versions, particularly as no existing Python versions install executables with the version in the name (python3.exe, python3.2.exe, etc).

Perhaps this could be changed? As far as I can see, python.exe is a small executable around ~25KB (all the code being in the DLL), so there doesn't seem to be any harm to make a copy of it named either pythonXY.exe or pythonX.Y.exe.

Regards

Antoine.



More information about the Python-Dev mailing list