]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
These comments aren't relevant for 3k. They were to support modules compiled
authorNeal Norwitz <nnorwitz@gmail.com>
Sun, 25 Feb 2007 23:47:19 +0000 (23:47 +0000)
committerNeal Norwitz <nnorwitz@gmail.com>
Sun, 25 Feb 2007 23:47:19 +0000 (23:47 +0000)
before the PyNumberMethods were added which was 2.0 I think.

Objects/abstract.c

index 7016c2ebfe3c49aa12a0ed11c5b86b0d7974d760..dbd159a7030dc289424c24d6a25f15817e2ab37f 100644 (file)
@@ -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), "/=");
 }