[Python-checkins] cpython (merge 3.4 -> default): Issue #22883: Update PyInt to PyLong in C API example.

serhiy.storchaka python-checkins at python.org
Tue Feb 17 09:20:11 CET 2015


https://hg.python.org/cpython/rev/c0b2dacef35c
changeset:   94662:c0b2dacef35c
parent:      94660:2f0c1937d716
parent:      94661:c8d08de14030
user:        Serhiy Storchaka <storchaka at gmail.com>
date:        Tue Feb 17 10:19:07 2015 +0200
summary:
  Issue #22883: Update PyInt to PyLong in C API example.

files:
  Doc/extending/newtypes.rst |  2 +-
  1 files changed, 1 insertions(+), 1 deletions(-)


diff --git a/Doc/extending/newtypes.rst b/Doc/extending/newtypes.rst
--- a/Doc/extending/newtypes.rst
+++ b/Doc/extending/newtypes.rst
@@ -1205,7 +1205,7 @@
    {
        if (strcmp(name, "data") == 0)
        {
-           return PyInt_FromLong(obj->data);
+           return PyLong_FromLong(obj->data);
        }
 
        PyErr_Format(PyExc_AttributeError,

-- 
Repository URL: https://hg.python.org/cpython


More information about the Python-checkins mailing list