empty string constant in f-string format_spec #110309
Labels
3.12
bugs and security fixes
3.13
new features, bugs and security fixes
topic-parser
type-bug
An unexpected behavior, bug, or error
Bug report
Bug description:
The f-string
f'{1:{name}}'
has a extraConstant(value='')
in the format_spec part in 3.12, which is not part of the AST in 3.11. This has also an effect on the generated bytecode.output (Python 3.12.0):
output (Python 3.11.3):
CPython versions tested on:
3.12
Operating systems tested on:
Linux
Linked PRs
The text was updated successfully, but these errors were encountered: