summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2015-02-17 08:18:44 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2015-02-17 08:18:44 (GMT)
commitdf0db49b1b8b08e7a17dd1358ad4f532a0f3151f (patch)
treebe28532f46381adaccc07e74b1b15e3f64d514cd /Doc
parent54237f9feaefd209c2aaa5b4003810e69f6714f3 (diff)
downloadcpython-df0db49b1b8b08e7a17dd1358ad4f532a0f3151f.zip
cpython-df0db49b1b8b08e7a17dd1358ad4f532a0f3151f.tar.gz
cpython-df0db49b1b8b08e7a17dd1358ad4f532a0f3151f.tar.bz2
Issue #22883: Update PyInt to PyLong in C API example.
Diffstat (limited to 'Doc')
-rw-r--r--Doc/extending/newtypes.rst2
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,