Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork32.1k
Closed
Description
Bug report
The bytecode for an empty f-string does not match the bytecode for an empty normal string.
importdisdis.dis('""')dis.dis('f""')
Output:
0 0 RESUME 01 2 LOAD_CONST 0 ('') 4 RETURN_VALUE0 0 RESUME 01 2 BUILD_STRING 0 4 RETURN_VALUE
Environment
- CPython versions tested on:
3.11, 3.12.0a2