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