File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -43,10 +43,9 @@ separating others.
4343str/unicode Unification
4444-----------------------
4545
46-
47- Python 3's :func: `str ` (``PyString_* `` functions in C) type is equivalent to
48- Python 2's :func: `unicode ` (``PyUnicode_* ``). The old 8-bit string type has
49- become :func: `bytes `. Python 2.6 and later provide a compatibility header,
46+ Python 3's :func: `str ` type is equivalent to Python 2's :func: `unicode `; the C
47+ functions are called ``PyUnicode_* `` for both. The old 8-bit string type has become
48+ :func: `bytes `, with C functions called ``PyBytes_* ``. Python 2.6 and later provide a compatibility header,
5049:file: `bytesobject.h `, mapping ``PyBytes `` names to ``PyString `` ones. For best
5150compatibility with Python 3, :c:type: `PyUnicode ` should be used for textual data and
5251:c:type: `PyBytes ` for binary data. It's also important to remember that
You can’t perform that action at this time.
0 commit comments