summaryrefslogtreecommitdiffstats
path: root/Objects
diff options
context:
space:
mode:
authorNeal Norwitz <nnorwitz@gmail.com>2007-02-25 23:47:19 (GMT)
committerNeal Norwitz <nnorwitz@gmail.com>2007-02-25 23:47:19 (GMT)
commit025488b2b056106fda97afcd1bd544244e6a083a (patch)
tree1d1c68dfbff00f37ad4f9fa35d97b7ea4a61bd27 /Objects
parent5dc0d9708cdb347a5e7ec3ff7211ce2cfa6b26b1 (diff)
downloadcpython-025488b2b056106fda97afcd1bd544244e6a083a.zip
cpython-025488b2b056106fda97afcd1bd544244e6a083a.tar.gz
cpython-025488b2b056106fda97afcd1bd544244e6a083a.tar.bz2
These comments aren't relevant for 3k. They were to support modules compiled
before the PyNumberMethods were added which was 2.0 I think.
Diffstat (limited to 'Objects')
-rw-r--r--Objects/abstract.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/Objects/abstract.c b/Objects/abstract.c
index 7016c2e..dbd159a 100644
--- a/Objects/abstract.c
+++ b/Objects/abstract.c
@@ -565,14 +565,12 @@ PyNumber_Multiply(PyObject *v, PyObject *w)
PyObject *
PyNumber_FloorDivide(PyObject *v, PyObject *w)
{
- /* XXX tp_flags test */
return binary_op(v, w, NB_SLOT(nb_floor_divide), "//");
}
PyObject *
PyNumber_TrueDivide(PyObject *v, PyObject *w)
{
- /* XXX tp_flags test */
return binary_op(v, w, NB_SLOT(nb_true_divide), "/");
}
@@ -649,7 +647,6 @@ INPLACE_BINOP(PyNumber_InPlaceSubtract, nb_inplace_subtract, nb_subtract, "-=")
PyObject *
PyNumber_InPlaceFloorDivide(PyObject *v, PyObject *w)
{
- /* XXX tp_flags test */
return binary_iop(v, w, NB_SLOT(nb_inplace_floor_divide),
NB_SLOT(nb_floor_divide), "//=");
}
@@ -657,7 +654,6 @@ PyNumber_InPlaceFloorDivide(PyObject *v, PyObject *w)
PyObject *
PyNumber_InPlaceTrueDivide(PyObject *v, PyObject *w)
{
- /* XXX tp_flags test */
return binary_iop(v, w, NB_SLOT(nb_inplace_true_divide),
NB_SLOT(nb_true_divide), "/=");
}