Fixed escape sequence.
This commit is contained in:
parent
35c0d9cc75
commit
5d0b58c678
|
@ -213,7 +213,7 @@ Escape sequences
|
||||||
|
|
||||||
Scanning an f-string for expressions happens after escape sequences
|
Scanning an f-string for expressions happens after escape sequences
|
||||||
are decoded. Because hex(ord('{')) == 0x7b, the f-string
|
are decoded. Because hex(ord('{')) == 0x7b, the f-string
|
||||||
f'\u007b4*10}' is decoded to f'{4*10}', which evaluates as the integer
|
f'\\u007b4*10}' is decoded to f'{4*10}', which evaluates as the integer
|
||||||
40::
|
40::
|
||||||
|
|
||||||
>>> f'\u007b4*10}'
|
>>> f'\u007b4*10}'
|
||||||
|
|
Loading…
Reference in New Issue