[issue45456] operator 'pass' in 'if-else' linear expression

Evgeniy Ivanov report at bugs.python.org
Tue Oct 12 23:58:17 EDT 2021


New submission from Evgeniy Ivanov <atxn at yandex.ru>:

Why operator 'pass' not implement to 'if-else' linear expression?
Construction '<func/operation> if <expression> else pass' throws SyntaxError in Python 3.9

----------
messages: 403793
nosy: evgnor86
priority: normal
severity: normal
status: open
title: operator 'pass' in 'if-else' linear expression
type: compile error
versions: Python 3.6, Python 3.7, Python 3.8, Python 3.9

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


More information about the Python-bugs-list mailing list