Commit 025488b2 authored by Neal Norwitz's avatar Neal Norwitz

These comments aren't relevant for 3k. They were to support modules compiled

before the PyNumberMethods were added which was 2.0 I think.
parent 5dc0d970
...@@ -565,14 +565,12 @@ PyNumber_Multiply(PyObject *v, PyObject *w) ...@@ -565,14 +565,12 @@ PyNumber_Multiply(PyObject *v, PyObject *w)
PyObject * PyObject *
PyNumber_FloorDivide(PyObject *v, PyObject *w) PyNumber_FloorDivide(PyObject *v, PyObject *w)
{ {
/* XXX tp_flags test */
return binary_op(v, w, NB_SLOT(nb_floor_divide), "//"); return binary_op(v, w, NB_SLOT(nb_floor_divide), "//");
} }
PyObject * PyObject *
PyNumber_TrueDivide(PyObject *v, PyObject *w) PyNumber_TrueDivide(PyObject *v, PyObject *w)
{ {
/* XXX tp_flags test */
return binary_op(v, w, NB_SLOT(nb_true_divide), "/"); return binary_op(v, w, NB_SLOT(nb_true_divide), "/");
} }
...@@ -649,7 +647,6 @@ INPLACE_BINOP(PyNumber_InPlaceSubtract, nb_inplace_subtract, nb_subtract, "-=") ...@@ -649,7 +647,6 @@ INPLACE_BINOP(PyNumber_InPlaceSubtract, nb_inplace_subtract, nb_subtract, "-=")
PyObject * PyObject *
PyNumber_InPlaceFloorDivide(PyObject *v, PyObject *w) PyNumber_InPlaceFloorDivide(PyObject *v, PyObject *w)
{ {
/* XXX tp_flags test */
return binary_iop(v, w, NB_SLOT(nb_inplace_floor_divide), return binary_iop(v, w, NB_SLOT(nb_inplace_floor_divide),
NB_SLOT(nb_floor_divide), "//="); NB_SLOT(nb_floor_divide), "//=");
} }
...@@ -657,7 +654,6 @@ PyNumber_InPlaceFloorDivide(PyObject *v, PyObject *w) ...@@ -657,7 +654,6 @@ PyNumber_InPlaceFloorDivide(PyObject *v, PyObject *w)
PyObject * PyObject *
PyNumber_InPlaceTrueDivide(PyObject *v, PyObject *w) PyNumber_InPlaceTrueDivide(PyObject *v, PyObject *w)
{ {
/* XXX tp_flags test */
return binary_iop(v, w, NB_SLOT(nb_inplace_true_divide), return binary_iop(v, w, NB_SLOT(nb_inplace_true_divide),
NB_SLOT(nb_true_divide), "/="); NB_SLOT(nb_true_divide), "/=");
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment