[New-bugs-announce] [issue41881] New Line escape issue in raw strings

Kevin Ardath report at bugs.python.org
Mon Sep 28 16:39:53 EDT 2020


New submission from Kevin Ardath <ardath.kevin at gmail.com>:

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: normal
severity: normal
status: open
title: New Line escape issue in raw strings
type: behavior
versions: Python 3.7

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue41881>
_______________________________________


More information about the New-bugs-announce mailing list