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

Skip to content

Commit a3e80de

Browse files
committed
merge with 3.4
2 parents 3fab208 + 89c558d commit a3e80de

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

Doc/howto/cporting.rst

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,9 @@ separating others.
4343
str/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
5150
compatibility 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

0 commit comments

Comments
 (0)