[issue45456] operator 'pass' in 'if-else' linear expression
Evgeniy Ivanov
report at bugs.python.org
Wed Oct 13 22:41:45 EDT 2021
Evgeniy Ivanov <atxn at yandex.ru> added the comment:
What about this?
if x > 2: my_func(x)
ok this code at 1 line, this code work, but...
PEP 8: E701 multiple statements on one line (colon)
Well f//k it with a pass
Why not add an empty action operator? What is the problem? Such an instruction has existed since the days of assembler - nop
----------
status: closed -> open
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue45456>
_______________________________________
More information about the Python-bugs-list
mailing list