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 terry.reedy
Recipients georg.brandl, jura05, terry.reedy, vstinner
Date 2009-01-09.21:55:37
SpamBayes Score 0.07082711
Marked as misclassified No
Message-id <1231538139.08.0.229980756913.issue4857@psf.upfronthosting.co.za>
In-reply-to
Content
The grammar in the doc is not the one used to generate the
parser/compiler.  The former is meant to be easier for humans to read,
the latter easier for the parser generator.  Neither completely embody
Python's syntax rules.  Additional restrictions may be applied later in
the chain.  From:
http://svn.python.org/view/python/trunk/Grammar/Grammar?rev=65872&view=auto

expr_stmt: testlist (augassign (yield_expr|testlist) |
                     ('=' (yield_expr|testlist))*)

augassign: ('+=' | '-=' | '*=' | '/=' | '%=' | '&=' | '|=' | '^=' |
            '<<=' | '>>=' | '**=' | '//=')
# For normal assignments, additional restrictions enforced by the
interpreter

Perhaps that should say "For augmented assignments....

Except maybe for the comment above, I think this issue can be closed.
History
Date User Action Args
2009-01-09 21:55:39terry.reedysetrecipients: + terry.reedy, georg.brandl, vstinner, jura05
2009-01-09 21:55:39terry.reedysetmessageid: <1231538139.08.0.229980756913.issue4857@psf.upfronthosting.co.za>
2009-01-09 21:55:38terry.reedylinkissue4857 messages
2009-01-09 21:55:37terry.reedycreate