mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
Merged revisions 78319 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk ........ r78319 | ezio.melotti | 2010-02-22 18:30:58 +0200 (Mon, 22 Feb 2010) | 1 line #7482: clarify error message in case of division by zero of float and complex numbers. ........
This commit is contained in:
parent
19e4acfa15
commit
50363262b2
2 changed files with 2 additions and 2 deletions
|
@ -504,7 +504,7 @@ complex_div(PyObject *v, PyObject *w)
|
|||
quot = c_quot(a, b);
|
||||
PyFPE_END_PROTECT(quot)
|
||||
if (errno == EDOM) {
|
||||
PyErr_SetString(PyExc_ZeroDivisionError, "complex division");
|
||||
PyErr_SetString(PyExc_ZeroDivisionError, "complex division by zero");
|
||||
return NULL;
|
||||
}
|
||||
return PyComplex_FromCComplex(quot);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue