mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
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
1 changed files with 1 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue