[Python-checkins] r72941 - in python/branches/py3k: Doc/c-api/number.rst Include/abstract.h
georg.brandl
python-checkins at python.org
Tue May 26 18:43:14 CEST 2009
Author: georg.brandl
Date: Tue May 26 18:43:13 2009
New Revision: 72941
Log:
#6115: remove entries for the already removed PyNumber_Divide and PyNumber_InPlaceDivide from the header and the docs.
Modified:
python/branches/py3k/Doc/c-api/number.rst
python/branches/py3k/Include/abstract.h
Modified: python/branches/py3k/Doc/c-api/number.rst
==============================================================================
--- python/branches/py3k/Doc/c-api/number.rst (original)
+++ python/branches/py3k/Doc/c-api/number.rst Tue May 26 18:43:13 2009
@@ -30,12 +30,6 @@
the equivalent of the Python expression ``o1 * o2``.
-.. cfunction:: PyObject* PyNumber_Divide(PyObject *o1, PyObject *o2)
-
- Returns the result of dividing *o1* by *o2*, or *NULL* on failure. This is the
- equivalent of the Python expression ``o1 / o2``.
-
-
.. cfunction:: PyObject* PyNumber_FloorDivide(PyObject *o1, PyObject *o2)
Return the floor of *o1* divided by *o2*, or *NULL* on failure. This is
@@ -152,13 +146,6 @@
the Python statement ``o1 *= o2``.
-.. cfunction:: PyObject* PyNumber_InPlaceDivide(PyObject *o1, PyObject *o2)
-
- Returns the result of dividing *o1* by *o2*, or *NULL* on failure. The
- operation is done *in-place* when *o1* supports it. This is the equivalent of
- the Python statement ``o1 /= o2``.
-
-
.. cfunction:: PyObject* PyNumber_InPlaceFloorDivide(PyObject *o1, PyObject *o2)
Returns the mathematical floor of dividing *o1* by *o2*, or *NULL* on failure.
Modified: python/branches/py3k/Include/abstract.h
==============================================================================
--- python/branches/py3k/Include/abstract.h (original)
+++ python/branches/py3k/Include/abstract.h Tue May 26 18:43:13 2009
@@ -632,13 +632,6 @@
o1*o2.
*/
- PyAPI_FUNC(PyObject *) PyNumber_Divide(PyObject *o1, PyObject *o2);
-
- /*
- Returns the result of dividing o1 by o2, or null on failure.
- This is the equivalent of the Python expression: o1/o2.
- */
-
PyAPI_FUNC(PyObject *) PyNumber_FloorDivide(PyObject *o1, PyObject *o2);
/*
@@ -832,14 +825,6 @@
o1 *= o2.
*/
- PyAPI_FUNC(PyObject *) PyNumber_InPlaceDivide(PyObject *o1, PyObject *o2);
-
- /*
- Returns the result of dividing o1 by o2, possibly in-place, or null
- on failure. This is the equivalent of the Python expression:
- o1 /= o2.
- */
-
PyAPI_FUNC(PyObject *) PyNumber_InPlaceFloorDivide(PyObject *o1,
PyObject *o2);
More information about the Python-checkins
mailing list