mirror of
https://github.com/python/cpython.git
synced 2025-11-03 03:22:27 +00:00
Issue #22883: Update PyInt to PyLong in C API example.
This commit is contained in:
parent
54237f9fea
commit
df0db49b1b
1 changed files with 1 additions and 1 deletions
|
|
@ -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,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue