Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 97f4a33

Browse files
committed
Better error msg for 3-arg pow with a float argument.
1 parent 773c83b commit 97f4a33

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Objects/floatobject.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -481,7 +481,7 @@ float_pow(PyObject *v, PyObject *w, PyObject *z)
481481

482482
if ((PyObject *)z != Py_None) {
483483
PyErr_SetString(PyExc_TypeError, "pow() 3rd argument not "
484-
"allowed unless all other arguments are integers");
484+
"allowed unless all arguments are integers");
485485
return NULL;
486486
}
487487

0 commit comments

Comments
 (0)