[Python-checkins] cpython (3.4): 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/c8d08de14030
changeset:   94661:c8d08de14030
branch:      3.4
parent:      94658:9436f43b6df2
user:        Serhiy Storchaka <storchaka at gmail.com>
date:        Tue Feb 17 10:18:44 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