Message324168
Nick, thanks for validating my pain. :-|
In the meantime, I found out Python already knows more finely what kind of expression something is, and uses that knowledge in the error messages. Look:
>>> a + b = 4
SyntaxError: can't assign to operator
>>> a(b) = 4
SyntaxError: can't assign to function call
>>> 'a' = 4
SyntaxError: can't assign to literal
So, how about "keyword argument name cannot be an operator / function call / literal"? (Of course, if you ask me, "operator" is also unfortunate, but at least there is a precedent.) |
|
Date |
User |
Action |
Args |
2018-08-27 11:03:32 | veky | set | recipients:
+ veky, rhettinger, ncoghlan, r.david.murray, serhiy.storchaka |
2018-08-27 11:03:32 | veky | set | messageid: <1535367812.88.0.56676864532.issue30858@psf.upfronthosting.co.za> |
2018-08-27 11:03:32 | veky | link | issue30858 messages |
2018-08-27 11:03:32 | veky | create | |
|