[Python-checkins] cpython (merge 3.3 -> default): Merge 3.3.
stefan.krah
python-checkins at python.org
Sun Jan 20 23:31:09 CET 2013
http://hg.python.org/cpython/rev/575eb20cd7d1
changeset: 81620:575eb20cd7d1
parent: 81618:e18dd62392f2
parent: 81619:6df456f8fc6d
user: Stefan Krah <skrah at bytereef.org>
date: Sun Jan 20 23:19:22 2013 +0100
summary:
Merge 3.3.
files:
Doc/howto/cporting.rst | 19 -------------------
1 files changed, 0 insertions(+), 19 deletions(-)
diff --git a/Doc/howto/cporting.rst b/Doc/howto/cporting.rst
--- a/Doc/howto/cporting.rst
+++ b/Doc/howto/cporting.rst
@@ -100,25 +100,6 @@
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
===============================
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list