diff options
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 d776147c85..b58c7fd494 100644 --- a/Objects/floatobject.c +++ b/Objects/floatobject.c @@ -466,7 +466,7 @@ float_pow(PyFloatObject *v, PyObject *w, PyFloatObject *z)  	if (iv == 0.0) {  		if (iw < 0.0) {  			PyErr_SetString(PyExc_ZeroDivisionError, -				   "0.0 to a negative power"); +					"0.0 cannot be raised to a negative power");  			return NULL;  		}  		return PyFloat_FromDouble(0.0); @@ -486,7 +486,7 @@ float_pow(PyFloatObject *v, PyObject *w, PyFloatObject *z)  		/* Sort out special cases here instead of relying on pow() */  		if (iv < 0.0) {  			PyErr_SetString(PyExc_ValueError, -				   "negative number to a float power"); +					"negative number cannot be raised to a fractional power");  			return NULL;  		}  		errno = 0;  | 
