This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author veky
Recipients ncoghlan, r.david.murray, rhettinger, serhiy.storchaka, veky
Date 2018-08-27.11:03:32
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
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:32vekysetrecipients: + veky, rhettinger, ncoghlan, r.david.murray, serhiy.storchaka
2018-08-27 11:03:32vekysetmessageid: <>
2018-08-27 11:03:32vekylinkissue30858 messages
2018-08-27 11:03:32vekycreate