Commit df0db49b authored by Serhiy Storchaka's avatar Serhiy Storchaka

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

parent 54237f9f
...@@ -1205,7 +1205,7 @@ Here is an example:: ...@@ -1205,7 +1205,7 @@ Here is an example::
{ {
if (strcmp(name, "data") == 0) if (strcmp(name, "data") == 0)
{ {
return PyInt_FromLong(obj->data); return PyLong_FromLong(obj->data);
} }
PyErr_Format(PyExc_AttributeError, PyErr_Format(PyExc_AttributeError,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment