[Python-checkins] peps: Fixed escape sequence.

eric.smith python-checkins at python.org
Fri Aug 28 20:58:58 CEST 2015


https://hg.python.org/peps/rev/bf851048278c
changeset: 6005:bf851048278c
user: Eric V. Smith <eric at trueblade.com>
date: Fri Aug 28 14:59:05 2015 -0400
summary:
 Fixed escape sequence.
files:
 pep-0498.txt | 2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/pep-0498.txt b/pep-0498.txt
--- a/pep-0498.txt
+++ b/pep-0498.txt
@@ -213,7 +213,7 @@
 
 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}'
-- 
Repository URL: https://hg.python.org/peps


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /