[Tutor] Python version prior to 02/26/2006?

Steven D'Aprano steve at pearwood.info
Wed Oct 2 20:04:00 CEST 2013


On Wed, Oct 02, 2013 at 01:44:11PM -0400, Fast Primes wrote:
> I have a python program written in 02/26/2006. Can I still get a version of python that will run it? 
> If so, which version and from where can I get it?

Yes. All versions of Python going back to version 1.1 are still 
available, although the oldest ones may be difficult to install on some 
systems.

What is important though is not *when* the program was written, but what 
version of Python it was written for. I could write a program today, 
targetting Python 1.5, if I was foolish.

If your program is very short, you might like to show it to us. Or read 
the documentation -- does it tell you what version of Python it 
requires? Perhaps it has a line at the top of the file like:

#!/usr/bin/python2.4 

But there is a very good chance that it will run perfectly using the 
latest Python 2.7. If not, it will probably be quite simple to fix it so 
that it will run. Fixing it to run under Python 3.3 will probably be a 
bit more work.

You can download Python versions from here:

http://www.python.org/download/releases/

but seriously, you should try to avoid anything older than 2.7 unless 
you absolutely need it.


-- 
Steven


More information about the Tutor mailing list