[Tutor] Your thoughts on using Python 2.4.x?

Steven D'Aprano steve at pearwood.info
Sat Dec 22 00:57:55 CET 2012


On 19/12/12 14:54, boB Stepp wrote:

> Now after the upgrades some machines now have Python 2.4.4
> and others Python 2.4.6. For the purposes of creating/manipulating
> text files and running Solaris-flavored Unix commands, is there
> anything I should be specially aware of? I have been working entirely
> in my Python studies with version 3.x up to this point. I understand
> that there are differences between 2.x versus 3.x such as print
> statements versus print functions, etc.

Yes; using Python 2.4 is painful compared to Python 3.x because it is
missing so many cool and useful features. 2.4 is quite old now, and
there have been many, many bug-fixes and new features added since then.

Some of those missing features can be easily added into your own code.
Because I have to support 2.4, I have a compatibility module to backport
the more essential features.

http://code.google.com/p/my-startup-file/source/browse/backports.py


> BTW, does 2.4.x come with Tkinter standard?


Depends on what you mean by standard. Tkinter is part of the standard
library, but it requires external dependencies which may not be present.
If your Solaris system doesn't include tcl ("tickle") then you won't have
Tkinter either.

At the Solaris prompt, enter "tclsh". You should get a % prompt, which you
can quit by entering "exit" command. If you don't, then you do not have
tcl installed and won't have Tkinter either.



-- 
Steven


More information about the Tutor mailing list