syntax error line 72?

Skip Montanaro skip at pobox.com
Sun Jan 6 17:21:11 EST 2002


    Nigel> can anyone assist running 1.5.2 python on raq4 with this script
    Nigel> and getting - ears the script it syntax errors on line 72
    ...

One obvious problem is that you are trying to use augmented assignment
statements such as

    t += 86400

with Python 1.5.2.  Augmented assignment wasn't added until Python 2.0 or
2.1.  Either upgrade to the current Python distribution or change those
lines to the equivalent

    t = t + 86400

It would also be helpful if when asking about errors you post the traceback
that was generated by the error.  Many people are going to be understandably
hesitant to try and execute a random script that comes from the net, and it
wasn't obvious from the code you posted just where line 72 was.  A traceback
will display the offending line, making it much easier for people to locate
errors that need fixing.

-- 
Skip Montanaro (skip at pobox.com - http://www.mojam.com/)




More information about the Python-list mailing list