mirror of
https://github.com/python/cpython.git
synced 2025-12-04 00:30:19 +00:00
Make the error msgs in our pow() implementations consistent.
This commit is contained in:
parent
d893fd68bd
commit
4c483c4d8e
3 changed files with 15 additions and 8 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue