mirror of https://github.com/python/cpython
Additionally show that a backslash-escaped opening brace is treated as a literal and thus triggers the single closing brace error, clarifying #28590.
This commit is contained in:
parent
45cab8ccdd
commit
da25abf712
|
@ -628,6 +628,7 @@ f'{a * x()}'"""
|
|||
"f'}'",
|
||||
"f'x}'",
|
||||
"f'x}x'",
|
||||
r"f'\u007b}'",
|
||||
|
||||
# Can't have { or } in a format spec.
|
||||
"f'{3:}>10}'",
|
||||
|
|
Loading…
Reference in New Issue