diff options
author | Guido van Rossum <guido@python.org> | 1996-08-16 20:49:17 +0000 |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1996-08-16 20:49:17 +0000 |
commit | d27eb4a4e7304e7ade8310784f4a3cf84c42bef3 (patch) | |
tree | e73e13fa41f7b121175f8efbe6c1c9279bb20d24 /Python | |
parent | ffec9405bc46b21d743bd6185f68710935287adb (diff) | |
download | cpython-d27eb4a4e7304e7ade8310784f4a3cf84c42bef3.tar.gz |
Don't test here for negative number to float power; that belongs in
floatobject.c.
Diffstat (limited to 'Python')
-rw-r--r-- | Python/ceval.c | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/Python/ceval.c b/Python/ceval.c index 2520ea2cc3..5c812c076b 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); |