]> granicus.if.org Git - python/commitdiff
Closes #22748: there are no PyString C functions in 3.x.
authorGeorg Brandl <georg@python.org>
Tue, 28 Oct 2014 20:38:49 +0000 (21:38 +0100)
committerGeorg Brandl <georg@python.org>
Tue, 28 Oct 2014 20:38:49 +0000 (21:38 +0100)
Doc/howto/cporting.rst

index 1ad77d687e7c32f1a34cacaab2e3f76d33d76afa..6ebcc4164df59537d7871f4bcd3028648c3e9851 100644 (file)
@@ -43,10 +43,9 @@ separating others.
 str/unicode Unification
 -----------------------
 
-
-Python 3's :func:`str` (``PyString_*`` functions in C) type is equivalent to
-Python 2's :func:`unicode` (``PyUnicode_*``).  The old 8-bit string type has
-become :func:`bytes`.  Python 2.6 and later provide a compatibility header,
+Python 3's :func:`str` type is equivalent to Python 2's :func:`unicode`; the C
+functions are called ``PyUnicode_*`` for both.  The old 8-bit string type has become
+:func:`bytes`, with C functions called ``PyBytes_*``.  Python 2.6 and later provide a compatibility header,
 :file:`bytesobject.h`, mapping ``PyBytes`` names to ``PyString`` ones.  For best
 compatibility with Python 3, :c:type:`PyUnicode` should be used for textual data and
 :c:type:`PyBytes` for binary data.  It's also important to remember that