]> granicus.if.org Git - python/commitdiff
Issue #22883: Update PyInt to PyLong in C API example.
authorSerhiy Storchaka <storchaka@gmail.com>
Tue, 17 Feb 2015 08:18:44 +0000 (10:18 +0200)
committerSerhiy Storchaka <storchaka@gmail.com>
Tue, 17 Feb 2015 08:18:44 +0000 (10:18 +0200)
Doc/extending/newtypes.rst

index 45b57211b679e2ccf483015a8153809daaa432b2..d52070221ea76d6ed7a425aad758a3facaa0c0bc 100644 (file)
@@ -1205,7 +1205,7 @@ Here is an example::
    {
        if (strcmp(name, "data") == 0)
        {
-           return PyInt_FromLong(obj->data);
+           return PyLong_FromLong(obj->data);
        }
 
        PyErr_Format(PyExc_AttributeError,