Issue #22883: Update PyInt to PyLong in C API example.

This commit is contained in:
Serhiy Storchaka 2015-02-17 10:18:44 +02:00
parent 54237f9fea
commit df0db49b1b
1 changed files with 1 additions and 1 deletions

View 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,