diff options
author | Georg Brandl <georg@python.org> | 2010-05-10 21:17:00 (GMT) |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2010-05-10 21:17:00 (GMT) |
commit | e43baaba73a8b169b2f910b80560e4492063ae65 (patch) | |
tree | 3a5608b9a66148bafff5c74ebdcc09fe14249a25 /Doc/reference/lexical_analysis.rst | |
parent | b496badc325c75a3058c55926d7f823e78775590 (diff) | |
download | cpython-e43baaba73a8b169b2f910b80560e4492063ae65.zip cpython-e43baaba73a8b169b2f910b80560e4492063ae65.tar.gz cpython-e43baaba73a8b169b2f910b80560e4492063ae65.tar.bz2 |
Fix nits in the lexical analysis section: \u requires four digits, backtick is not allowed in source in 3.x.
Diffstat (limited to 'Doc/reference/lexical_analysis.rst')
-rw-r--r-- | Doc/reference/lexical_analysis.rst | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Doc/reference/lexical_analysis.rst b/Doc/reference/lexical_analysis.rst index 7df0c2b..11b99f0 100644 --- a/Doc/reference/lexical_analysis.rst +++ b/Doc/reference/lexical_analysis.rst @@ -512,13 +512,13 @@ Notes: (4) Individual code units which form parts of a surrogate pair can be encoded using - this escape sequence. Unlike in Standard C, exactly two hex digits are required. + this escape sequence. Exactly four hex digits are required. (5) Any Unicode character can be encoded this way, but characters outside the Basic Multilingual Plane (BMP) will be encoded using a surrogate pair if Python is - compiled to use 16-bit code units (the default). Individual code units which - form parts of a surrogate pair can be encoded using this escape sequence. + compiled to use 16-bit code units (the default). Exactly eight hex digits + are required. .. index:: unrecognized escape sequence @@ -700,4 +700,4 @@ tokens or are otherwise significant to the lexical analyzer:: The following printing ASCII characters are not used in Python. Their occurrence outside string literals and comments is an unconditional error:: - $ ? + $ ? ` |