diff options
author | Tim Peters <tim.peters@gmail.com> | 2001-09-05 06:24:58 (GMT) |
---|---|---|
committer | Tim Peters <tim.peters@gmail.com> | 2001-09-05 06:24:58 (GMT) |
commit | 4c483c4d8eac8603ff299adbd373e4f14da61ff9 (patch) | |
tree | 46def41f169f5e0c2faebdc7e79197cb37a5e3ad /Objects/floatobject.c | |
parent | d893fd68bd8a7be8e0ceb17e3b9ea810de5820e0 (diff) | |
download | cpython-4c483c4d8eac8603ff299adbd373e4f14da61ff9.zip cpython-4c483c4d8eac8603ff299adbd373e4f14da61ff9.tar.gz cpython-4c483c4d8eac8603ff299adbd373e4f14da61ff9.tar.bz2 |
Make the error msgs in our pow() implementations consistent.
Diffstat (limited to 'Objects/floatobject.c')
-rw-r--r-- | Objects/floatobject.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Objects/floatobject.c b/Objects/floatobject.c index 8443aff..258c4dd 100644 --- a/Objects/floatobject.c +++ b/Objects/floatobject.c @@ -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; } |