mirror of
https://github.com/python/cpython.git
synced 2025-11-02 11:08:57 +00:00
Fix nits in the lexical analysis section: \u requires four digits, backtick is not allowed in source in 3.x.
This commit is contained in:
parent
b496badc32
commit
e43baaba73
1 changed files with 4 additions and 4 deletions
|
|
@ -512,13 +512,13 @@ Notes:
|
||||||
|
|
||||||
(4)
|
(4)
|
||||||
Individual code units which form parts of a surrogate pair can be encoded using
|
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)
|
(5)
|
||||||
Any Unicode character can be encoded this way, but characters outside the Basic
|
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
|
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
|
compiled to use 16-bit code units (the default). Exactly eight hex digits
|
||||||
form parts of a surrogate pair can be encoded using this escape sequence.
|
are required.
|
||||||
|
|
||||||
|
|
||||||
.. index:: unrecognized escape sequence
|
.. 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
|
The following printing ASCII characters are not used in Python. Their
|
||||||
occurrence outside string literals and comments is an unconditional error::
|
occurrence outside string literals and comments is an unconditional error::
|
||||||
|
|
||||||
$ ?
|
$ ? `
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue