[issue25865] 7.2 Assignment statements documentation is vague and slightly misleading

2015-12-15 Thread Martin Panter
Martin Panter added the comment: Regarding assigning to (), see Issue 23275. Looks like there is a patch to enable it. -- nosy: +martin.panter ___ Python tracker

[issue25865] 7.2 Assignment statements documentation is vague and slightly misleading

2015-12-14 Thread Andrew Barnert
New submission from Andrew Barnert: >From >https://docs.python.org/3/reference/simple_stmts.html#assignment-statements > If the target list contains one target prefixed with an asterisk, called a > “starred” target: The object must be a sequence with at least as many items > as there are

[issue25865] 7.2 Assignment statements documentation is vague and slightly misleading

2015-12-14 Thread Andrew Barnert
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