summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1996-08-16 20:49:17 (GMT)
committerGuido van Rossum <guido@python.org>1996-08-16 20:49:17 (GMT)
commitbf51afa049898d2a8f6a18133f8a25a47c15a32f (patch)
tree8721386259e504733dfaa4d3e3a9b91079bb6744
parent79d96d6bffa21ea59f8e084f0b96d354e6097427 (diff)
downloadcpython-bf51afa049898d2a8f6a18133f8a25a47c15a32f.zip
cpython-bf51afa049898d2a8f6a18133f8a25a47c15a32f.tar.gz
cpython-bf51afa049898d2a8f6a18133f8a25a47c15a32f.tar.bz2
Don't test here for negative number to float power; that belongs in
floatobject.c.
-rw-r--r--Python/ceval.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/Python/ceval.c b/Python/ceval.c
index 2520ea2..5c812c0 100644
--- a/Python/ceval.c
+++ b/Python/ceval.c
@@ -2282,15 +2282,6 @@ powerop(v, w)
err_setstr(TypeError, "pow() requires numeric arguments");
return NULL;
}
- if (
-#ifndef WITHOUT_COMPLEX
- !is_complexobject(v) &&
-#endif
- is_floatobject(w) && getfloatvalue(v) < 0.0) {
- if (!err_occurred())
- err_setstr(ValueError, "negative number to float power");
- return NULL;
- }
if (coerce(&v, &w) != 0)
return NULL;
res = (*v->ob_type->tp_as_number->nb_power)(v, w, None);