Enter print(repr(f"{'\n' if True else ''}")) in the example box
Click Run or press Ctrl+Enter
Expected behavior
It outputs '\n' It outputs an error (presumably to the Javascript console) about a SyntaxError
Actual behavior
It outputs ' if True else '
Additional information
print(repr(f"{'\n' if True else 'a'}")) causes it to throw a Javascript object that says something about "bad input". This is relatively low priority for me though, so I haven't digged into it yet (I might in the slightly distant future).
Steps to Reproduce
print(repr(f"{'\n' if True else ''}"))
in the example boxExpected behavior
It outputsIt outputs an error (presumably to the Javascript console) about a SyntaxError'\n'
Actual behavior
It outputs
' if True else '
Additional information
print(repr(f"{'\n' if True else 'a'}"))
causes it to throw a Javascript object that says something about "bad input". This is relatively low priority for me though, so I haven't digged into it yet (I might in the slightly distant future).