diff options
author | Gregory P. Smith <greg@krypto.org> | 2013-03-22 20:43:30 (GMT) |
---|---|---|
committer | Gregory P. Smith <greg@krypto.org> | 2013-03-22 20:43:30 (GMT) |
commit | 4b52ae8f971152c2189de1031a7219d33846670d (patch) | |
tree | 67b19a3186c548eeca8ee27c6b922c0d6f00e30f /Doc/c-api/intro.rst | |
parent | 3f885b543256df8acabc39fa9c28f45dfa6e4979 (diff) | |
download | cpython-4b52ae8f971152c2189de1031a7219d33846670d.zip cpython-4b52ae8f971152c2189de1031a7219d33846670d.tar.gz cpython-4b52ae8f971152c2189de1031a7219d33846670d.tar.bz2 |
Clean up references to the no longer existing PyString_ APIs in our docs.
Diffstat (limited to 'Doc/c-api/intro.rst')
-rw-r--r-- | Doc/c-api/intro.rst | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/c-api/intro.rst b/Doc/c-api/intro.rst index 6464fe7..bc3a752 100644 --- a/Doc/c-api/intro.rst +++ b/Doc/c-api/intro.rst @@ -210,7 +210,7 @@ error handling for the moment; a better way to code this is shown below):: t = PyTuple_New(3); PyTuple_SetItem(t, 0, PyLong_FromLong(1L)); PyTuple_SetItem(t, 1, PyLong_FromLong(2L)); - PyTuple_SetItem(t, 2, PyString_FromString("three")); + PyTuple_SetItem(t, 2, PyUnicode_FromString("three")); Here, :c:func:`PyLong_FromLong` returns a new reference which is immediately stolen by :c:func:`PyTuple_SetItem`. When you want to keep using an object |