projects
/
python
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
20dab9f
)
Move int_true_divide next to the other division routines.
author
Tim Peters
<tim.peters@gmail.com>
Tue, 4 Sep 2001 05:52:47 +0000
(
05:52
+0000)
committer
Tim Peters
<tim.peters@gmail.com>
Tue, 4 Sep 2001 05:52:47 +0000
(
05:52
+0000)
Objects/intobject.c
patch
|
blob
|
history
diff --git
a/Objects/intobject.c
b/Objects/intobject.c
index eaf869f7bc5cdb8c971ac845f9b77d2a3d75432b..775213c2d3a6e68ae038e0eeed9fb2d041790c95 100644
(file)
--- a/
Objects/intobject.c
+++ b/
Objects/intobject.c
@@
-532,6
+532,12
@@
int_classic_div(PyIntObject *x, PyIntObject *y)
}
}
+static PyObject *
+int_true_divide(PyObject *v, PyObject *w)
+{
+ return PyFloat_Type.tp_as_number->nb_true_divide(v, w);
+}
+
static PyObject *
int_mod(PyIntObject *x, PyIntObject *y)
{
@@
-767,12
+773,6
@@
int_or(PyIntObject *v, PyIntObject *w)
return PyInt_FromLong(a | b);
}
-static PyObject *
-int_true_divide(PyObject *v, PyObject *w)
-{
- return PyFloat_Type.tp_as_number->nb_true_divide(v, w);
-}
-
static PyObject *
int_int(PyIntObject *v)
{