[issue42900] Ternary operator precedence relative to bitwise or

Guido van Rossum report at bugs.python.org
Mon Jan 11 20:33:54 EST 2021


Guido van Rossum <guido at python.org> added the comment:

You may be surprised, but it's not a bug -- '|' binds tighter than 'if'/'else'.

If you need more help, please contact a user forum.

----------
nosy: +gvanrossum
resolution:  -> not a bug
stage:  -> resolved
status: open -> closed

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


More information about the Python-bugs-list mailing list