Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 7a03f64

Browse files
committed
Remove mention of narrow/wide builds in the codecs doc.
1 parent 90bf5f1 commit 7a03f64

1 file changed

Lines changed: 3 additions & 5 deletions

File tree

Doc/library/codecs.rst

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -787,11 +787,9 @@ methods and attributes from the underlying stream.
787787
Encodings 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
795793
and how these arrays are stored as bytes become an issue. Transforming a
796794
string object into a sequence of bytes is called encoding and recreating the
797795
string object from the sequence of bytes is known as decoding. There are many

0 commit comments

Comments
 (0)