[docs] [issue25865] 7.2 Assignment statements documentation is vague and slightly misleading
Andrew Barnert
report at bugs.python.org
Tue Dec 15 02:51:34 EST 2015
Andrew Barnert added the comment:
As a side note, why isn't () allowed as an empty target list, like []? Then the rules for target lists vs. single targets would be exactly parallel to the rules for tuple and list displays. And the error message `can't assign to ()` seems a bit weird--you can't really assign to the tuple `a, b, c` or `(a, b, c)`, but that's not what you're doing; you're just specifying a target list.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue25865>
_______________________________________
More information about the docs
mailing list