From 5d0b58c678e0facd76fc8217ab447598c2f5824b Mon Sep 17 00:00:00 2001 From: "Eric V. Smith" Date: Fri, 28 Aug 2015 14:59:05 -0400 Subject: [PATCH] Fixed escape sequence. --- pep-0498.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pep-0498.txt b/pep-0498.txt index 79d482946..836ca77bf 100644 --- a/pep-0498.txt +++ b/pep-0498.txt @@ -213,7 +213,7 @@ Escape sequences Scanning an f-string for expressions happens after escape sequences 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:: >>> f'\u007b4*10}'