Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 8391b72

Browse files
Issue #22883: Update PyInt to PyLong in C API example.
2 parents 483405b + df0db49 commit 8391b72

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Doc/extending/newtypes.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1205,7 +1205,7 @@ Here is an example::
12051205
{
12061206
if (strcmp(name, "data") == 0)
12071207
{
1208-
return PyInt_FromLong(obj->data);
1208+
return PyLong_FromLong(obj->data);
12091209
}
12101210

12111211
PyErr_Format(PyExc_AttributeError,

0 commit comments

Comments
 (0)