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

wyz23x2 report at bugs.python.org
Wed Oct 13 01:47:38 EDT 2021


wyz23x2 <wyz23x2 at 163.com> added the comment:

Well,
x = 1 if False else pass
and
if False: x = 1

1 line vs 1 line :) It's just not needed.

----------
nosy: +wyz23x2

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


More information about the Python-bugs-list mailing list