mirror of
https://github.com/python/cpython.git
synced 2025-12-15 21:44:50 +00:00
Move long_true_divide next to the other division routines (for clarity!).
This commit is contained in:
parent
9fffa3eea3
commit
20dab9f168
1 changed files with 6 additions and 6 deletions
|
|
@ -1581,6 +1581,12 @@ long_classic_div(PyObject *v, PyObject *w)
|
|||
return (PyObject *)div;
|
||||
}
|
||||
|
||||
static PyObject *
|
||||
long_true_divide(PyObject *v, PyObject *w)
|
||||
{
|
||||
return PyFloat_Type.tp_as_number->nb_divide(v, w);
|
||||
}
|
||||
|
||||
static PyObject *
|
||||
long_mod(PyObject *v, PyObject *w)
|
||||
{
|
||||
|
|
@ -2061,12 +2067,6 @@ long_or(PyObject *v, PyObject *w)
|
|||
return c;
|
||||
}
|
||||
|
||||
static PyObject *
|
||||
long_true_divide(PyObject *v, PyObject *w)
|
||||
{
|
||||
return PyFloat_Type.tp_as_number->nb_divide(v, w);
|
||||
}
|
||||
|
||||
static int
|
||||
long_coerce(PyObject **pv, PyObject **pw)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue