[issue24612] not operator expression raising a syntax error

Pablo Galindo Salgado report at bugs.python.org
Sat Sep 4 17:19:01 EDT 2021


Pablo Galindo Salgado <pablogsal at gmail.com> added the comment:

I think the best outcome here is to refine the syntax error. Making it behave a bit better is going to be quite a pain because of how unary "-" and "not" work on the priority level in the grammar.

I also don't think that facilitating the concatenation of operators without parentheses is a good idea (for readability reasons). 

I will prepare a PR to improve the syntax error

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue24612>
_______________________________________


More information about the Python-bugs-list mailing list