mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-24 00:44:37 +07:00
9 lines
374 B
Python
9 lines
374 B
Python
# PY-4293
|
|
def test_conditional_expression(val):
|
|
x = <warning descr="Python version 2.4 doesn't support this syntax.">'Yes' if val else 'No'</warning>
|
|
return <warning descr="Python version 2.4 doesn't support this syntax.">'Yes' if val else 'No'</warning>
|
|
|
|
def f(arg):
|
|
pass
|
|
|
|
f(<warning descr="Python version 2.4 doesn't support this syntax.">1 if True else 2</warning>) |