This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author ezio.melotti
Recipients ezio.melotti, kermit666
Date 2013-01-10.14:22:55
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1357827777.72.0.927311587324.issue16917@psf.upfronthosting.co.za>
In-reply-to
Content
The colon is the first invalid char, for example this is valid python and works:
>>> things = ['a', 'b']
>>> things.append('c'
... for a in things)
>>> things
['a', 'b', <generator object <genexpr> at 0xb76dacfc>]

In your case Python expects a genexp like things.append('c' for a in things), and when it finds the ':' it gives error.
If you use e.g. a 'while', you will see the error earlier:
>>> things = ['a', 'b']
>>> things.append('c'
... while True:
  File "<stdin>", line 2
    while True:
        ^
SyntaxError: invalid syntax
History
Date User Action Args
2013-01-10 14:23:07ezio.melottisetrecipients: + ezio.melotti, kermit666
2013-01-10 14:22:57ezio.melottisetmessageid: <1357827777.72.0.927311587324.issue16917@psf.upfronthosting.co.za>
2013-01-10 14:22:57ezio.melottilinkissue16917 messages
2013-01-10 14:22:55ezio.melotticreate