syntax error line 72?

Hans Nowak wurmy at earthlink.net
Sun Jan 6 23:46:28 CET 2002


Nigel Hewett wrote:
> 
> can anyone assist running 1.5.2 python on raq4 with this script and
> getting -
> ears the script it syntax errors on line 72
> while (t < cur_time()):
>         t += 86400

Python 1.5.2 didn't support augmented assignment. This
should be 

    t = t + 86400

instead. This is not the only statement where this
happens; on cursory glance, you'll need to replace 
a lot of other += constructs too. Or, upgrade to
Python 2.0 or 2.1 if possible.

> def delete(id): # {{{2
>         'Removes the specified ID from the database file'
>         # For this functions it is useless to update the last_change_time.
>         del db[id]
> # }}}2

By the way, these are the ugliest block delimiters
I've seen so far... <cringe>

--Hans (base64.decodestring('d3VybXlAZWFydGhsaW5rLm5ldA==') 
       # decode for email address ;-)
Site:: http://www.awaretek.com/nowak/



More information about the Python-list mailing list