static PyObject * complex_int_div(PyComplexObject *v, PyComplexObject *w) { PyObject *t, *r; t = complex_divmod(v, w); if (t != NULL) { r = PyTuple_GET_ITEM(t, 0); Py_INCREF(r); Py_DECREF(t); return r; } return NULL; }
static PyObject * complex_int_div(PyComplexObject *v, PyComplexObject *w) { PyObject *t, *r; if (PyErr_Warn(PyExc_DeprecationWarning, "complex divmod(), // and % are deprecated") < 0) return NULL; t = complex_divmod(v, w); if (t != NULL) { r = PyTuple_GET_ITEM(t, 0); Py_INCREF(r); Py_DECREF(t); return r; } return NULL; }