maintain 2 versions of python on my computer

r0g aioe.org at technicalbloke.com
Thu Jan 14 13:01:06 EST 2010


luis wrote:
> Hi
> 
> I am not an expert in programming and using Python for its simplicity
> 
> I have 2 versions of python installed on my computer (windos xp) to
> begin the transition from version 2.4 to 2.6 or 3. maintaining the
> operability of my old scripts
> 
> Is there any way to indicate the version of the python interpreter
> must use a script?
> 
> thanks


On unix you would start the file with a "hashbang" e.g.

#!/usr/bin/python3

Fraid I don't know if that works on XP though.

Roger.



More information about the Python-list mailing list