If possible, install the newer version of Python. Python 2.5.4 is the solid, old version. Python 3.1 is the new version, backward incompatible with 2.5 but for good reasons. Python 2.6.2 is a transition version with warnings related to deprecated features and implementation of some new features.
Also, as crx has shown, you do not need to use backslash line continuation that much (I do not remember how it was in the 2.3 days).
Main Topics
Browse All Topics





by: cxrPosted on 2009-08-12 at 16:47:03ID: 25084377
Correct indentation is important in python. Try saving it in a file with .py extension and run it from the file by entering "python filename.py" on the command line.
This is correct indentation:
Select allOpen in new window