Mercurial > cpython-lru_cache-weakref
diff Objects/floatobject.c @ 19719:cdfdd5359411 legacy-trunk
Make the error msgs in our pow() implementations consistent.
| author | Tim Peters <tim.peters@gmail.com> |
|---|---|
| date | Wed, 05 Sep 2001 06:24:58 +0000 |
| parents | 715244108faa |
| children | 35b6a1d0b1e0 |
line wrap: on
line diff
--- a/Objects/floatobject.c Wed Sep 05 06:24:24 2001 +0000 +++ b/Objects/floatobject.c Wed Sep 05 06:24:58 2001 +0000 @@ -495,8 +495,8 @@ 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; }
