diff options
Diffstat (limited to 'Objects')
-rw-r--r-- | Objects/complexobject.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Objects/complexobject.c b/Objects/complexobject.c index c074aee..3c26b5b2 100644 --- a/Objects/complexobject.c +++ b/Objects/complexobject.c @@ -418,6 +418,11 @@ complex_divmod(PyComplexObject *v, PyComplexObject *w) { Py_complex div, mod; PyObject *d, *m, *z; + + if (PyErr_Warn(PyExc_DeprecationWarning, + "complex divmod() and // are deprecated") < 0) + return NULL; + errno = 0; div = c_quot(v->cval,w->cval); /* The raw divisor value. */ if (errno == EDOM) { |