Message329511
I think that the fact that `(a) = 42` is accepted is rather an implementation detail, and the consequence of limitations of the grammar parser. It accepts arbitrary expression at the left hand side of assignment. After transforming CST to AST unsuitable targets are rejected, but information about grouping parenthesis is lost at this stage.
This can be fixed if check the left hand side node before converting to AST. |
|
Date |
User |
Action |
Args |
2018-11-09 12:27:25 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, gvanrossum, docs@python, martin.panter, mdk |
2018-11-09 12:27:25 | serhiy.storchaka | set | messageid: <1541766445.71.0.788709270274.issue33878@psf.upfronthosting.co.za> |
2018-11-09 12:27:25 | serhiy.storchaka | link | issue33878 messages |
2018-11-09 12:27:25 | serhiy.storchaka | create | |
|