(original) (raw)
diff -up Python-2.7/Doc/howto/cporting.rst.pystring Python-2.7/Doc/howto/cporting.rst --- Python-2.7/Doc/howto/cporting.rst.pystring 2010-05-14 16:20:07.000000000 +0200 +++ Python-2.7/Doc/howto/cporting.rst 2010-10-16 17:38:15.000000000 +0200 @@ -48,9 +48,9 @@ Python 3.0's :func:`str` (``PyString_*`` compatibility with 3.0, :ctype:`PyUnicode` should be used for textual data and :ctype:`PyBytes` for binary data. It's also important to remember that :ctype:`PyBytes` and :ctype:`PyUnicode` in 3.0 are not interchangeable like -:ctype:`PyString` and :ctype:`PyString` are in 2.x. The following example shows -best practices with regards to :ctype:`PyUnicode`, :ctype:`PyString`, and -:ctype:`PyBytes`. :: +:ctype:`PyBytes` and :ctype:`PyString` are in 2.6 and later. The following +example shows best practices with regards to :ctype:`PyUnicode`, +:ctype:`PyString`, and :ctype:`PyBytes`. :: #include "stdlib.h" #include "Python.h"