File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -787,11 +787,9 @@ methods and attributes from the underlying stream.
787787Encodings and Unicode
788788---------------------
789789
790- Strings are stored internally as sequences of codepoints (to be precise
791- as :c:type: `Py_UNICODE ` arrays). Depending on the way Python is compiled (either
792- via ``--without-wide-unicode `` or ``--with-wide-unicode ``, with the
793- former being the default) :c:type: `Py_UNICODE ` is either a 16-bit or 32-bit data
794- type. Once a string object is used outside of CPU and memory, CPU endianness
790+ Strings are stored internally as sequences of codepoints in range ``0 - 10FFFF ``
791+ (see :pep: `393 ` for more details about the implementation).
792+ Once a string object is used outside of CPU and memory, CPU endianness
795793and how these arrays are stored as bytes become an issue. Transforming a
796794string object into a sequence of bytes is called encoding and recreating the
797795string object from the sequence of bytes is known as decoding. There are many
You can’t perform that action at this time.
0 commit comments