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

This commit is contained in:
Serhiy Storchaka 2015-02-17 10:19:07 +02:00
commit 8391b728e9
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,