diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2015-02-17 08:19:07 (GMT) |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2015-02-17 08:19:07 (GMT) |
commit | 8391b728e9a28e8a28ba987425c9e2f25206fe3c (patch) | |
tree | 47473623bc00a8954cbd8e902a63dcad7e5b27b1 /Doc | |
parent | 483405bcca9f371bc6910dda7f9b5ba74395682c (diff) | |
parent | df0db49b1b8b08e7a17dd1358ad4f532a0f3151f (diff) | |
download | cpython-8391b728e9a28e8a28ba987425c9e2f25206fe3c.zip cpython-8391b728e9a28e8a28ba987425c9e2f25206fe3c.tar.gz cpython-8391b728e9a28e8a28ba987425c9e2f25206fe3c.tar.bz2 |
Issue #22883: Update PyInt to PyLong in C API example.
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/extending/newtypes.rst | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/extending/newtypes.rst b/Doc/extending/newtypes.rst index 45b5721..d520702 100644 --- a/Doc/extending/newtypes.rst +++ b/Doc/extending/newtypes.rst @@ -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, |