enaml icon indicating copy to clipboard operation
enaml copied to clipboard

On python 3.12 fstrings with \n are being escaped

Open frmdstryr opened this issue 4 months ago • 2 comments

The newline is here is being escaped and output as \n instead of a newline for some reason in 3.12.

x = 1
print(f"{x}\n{x}")    

It prints

1\n1

But it should be

1
1

Edit: Simplify example

frmdstryr avatar Apr 13 '24 21:04 frmdstryr