mirror of
https://github.com/python/cpython.git
synced 2025-07-12 13:55:34 +00:00
Better error msg for 3-arg pow with a float argument.
This commit is contained in:
parent
773c83be04
commit
97f4a33e12
1 changed files with 1 additions and 1 deletions
|
@ -481,7 +481,7 @@ float_pow(PyObject *v, PyObject *w, PyObject *z)
|
|||
|
||||
if ((PyObject *)z != Py_None) {
|
||||
PyErr_SetString(PyExc_TypeError, "pow() 3rd argument not "
|
||||
"allowed unless all other arguments are integers");
|
||||
"allowed unless all arguments are integers");
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue