mirror of https://github.com/python/cpython
Better error msg for 3-arg pow with a float argument.
This commit is contained in:
parent
773c83be04
commit
97f4a33e12
|
@ -481,7 +481,7 @@ float_pow(PyObject *v, PyObject *w, PyObject *z)
|
||||||
|
|
||||||
if ((PyObject *)z != Py_None) {
|
if ((PyObject *)z != Py_None) {
|
||||||
PyErr_SetString(PyExc_TypeError, "pow() 3rd argument not "
|
PyErr_SetString(PyExc_TypeError, "pow() 3rd argument not "
|
||||||
"allowed unless all other arguments are integers");
|
"allowed unless all arguments are integers");
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue