[issue41881] New Line escape issue in raw strings

2020-09-28 Thread Kevin Ardath
Change by Kevin Ardath : -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker ___ ___ Python-b

[issue41881] New Line escape issue in raw strings

2020-09-28 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: It is expected behavior. \n in a raw string means two characters, backslash and "n", not a single newline character. Use non-raw string to embed a newline character. -- nosy: +serhiy.storchaka ___ Python tracker

[issue41881] New Line escape issue in raw strings

2020-09-28 Thread Kevin Ardath
New submission from Kevin Ardath : When attempting to concatenate some strings with a new line, I observed that formatting braces in a raw string skipped a new line escape: print(r'{{}}\nx'.format()) Produces: {}\nx Rather than: {} x -- messages: 377624 nosy: ardath.kevin priority: