Make the error msgs in our pow() implementations consistent.

This commit is contained in:
Tim Peters 2001-09-05 06:24:58 +00:00
parent d893fd68bd
commit 4c483c4d8e
3 changed files with 15 additions and 8 deletions

View file

@ -495,8 +495,8 @@ float_pow(PyObject *v, PyObject *w, PyObject *z)
double iv, iw, ix;
if ((PyObject *)z != Py_None) {
PyErr_SetString(PyExc_TypeError,
"3rd argument to floating pow() must be None");
PyErr_SetString(PyExc_TypeError, "pow() 3rd argument not "
"allowed unless all other arguments are integers");
return NULL;
}