summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorStefan Krah <skrah@bytereef.org>2013-01-20 22:19:22 (GMT)
committerStefan Krah <skrah@bytereef.org>2013-01-20 22:19:22 (GMT)
commita12ff2c682df32c58fae23eef27ab0273f7b8659 (patch)
treec7f52ec32ef5f620b0605ce1d18a072d668b3039 /Doc
parent668d2cc3d8a6f4336b20208e27de58554f04ec68 (diff)
parente4aa08e52b1bcf043ec5c9bcfd55268cb4161e3d (diff)
downloadcpython-a12ff2c682df32c58fae23eef27ab0273f7b8659.zip
cpython-a12ff2c682df32c58fae23eef27ab0273f7b8659.tar.gz
cpython-a12ff2c682df32c58fae23eef27ab0273f7b8659.tar.bz2
Merge 3.3.
Diffstat (limited to 'Doc')
-rw-r--r--Doc/howto/cporting.rst19
1 files changed, 0 insertions, 19 deletions
diff --git a/Doc/howto/cporting.rst b/Doc/howto/cporting.rst
index 9d8a1b0..1ad77d6 100644
--- a/Doc/howto/cporting.rst
+++ b/Doc/howto/cporting.rst
@@ -100,25 +100,6 @@ corresponds to Python 2's :func:`long` type--the :func:`int` type
used in Python 2 was removed. In the C-API, ``PyInt_*`` functions
are replaced by their ``PyLong_*`` equivalents.
-The best course of action here is using the ``PyInt_*`` functions aliased to
-``PyLong_*`` found in :file:`intobject.h`. The abstract ``PyNumber_*`` APIs
-can also be used in some cases. ::
-
- #include "Python.h"
- #include "intobject.h"
-
- static PyObject *
- add_ints(PyObject *self, PyObject *args) {
- int one, two;
- PyObject *result;
-
- if (!PyArg_ParseTuple(args, "ii:add_ints", &one, &two))
- return NULL;
-
- return PyInt_FromLong(one + two);
- }
-
-
Module initialization and state
===============================