[issue4857] syntax: no unpacking in augassign

jura report at bugs.python.org
Tue Jan 6 14:11:54 CET 2009


New submission from jura <jura05 at narod.ru>:

the following code produces syntax error:
>>> (x, y) += 1
While this is documented in
http://docs.python.org/3.0/reference/simple_stmts.html#augmented-assignment-statements
("An augmented assignment evaluates the target (which, unlike normal
аssignment statements, cannot be an unpacking)..."),
the syntax specification doesn't reflect this:
http://docs.python.org/3.0/reference/simple_stmts.html#grammar-token-augmented_assignment_stmt
http://docs.python.org/3.0/reference/grammar.html

----------
assignee: georg.brandl
components: Documentation
messages: 79256
nosy: georg.brandl, jura05
severity: normal
status: open
title: syntax: no unpacking in augassign
versions: Python 3.0

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue4857>
_______________________________________


More information about the Python-bugs-list mailing list