Author: Philip Jenvey <pjen...@underboss.org> Branch: Changeset: r58001:07b46876b954 Date: 2012-10-10 16:19 -0700 http://bitbucket.org/pypy/pypy/changeset/07b46876b954/
Log: isfinite already lives in rfloat diff --git a/pypy/rlib/rcomplex.py b/pypy/rlib/rcomplex.py --- a/pypy/rlib/rcomplex.py +++ b/pypy/rlib/rcomplex.py @@ -1,12 +1,12 @@ import math from math import fabs, pi, e -from pypy.rlib.rfloat import copysign, asinh, log1p, isinf, isnan +from pypy.rlib.rfloat import copysign, asinh, log1p, isfinite, isinf, isnan from pypy.rlib.constant import DBL_MIN, CM_SCALE_UP, CM_SCALE_DOWN from pypy.rlib.constant import CM_LARGE_DOUBLE, DBL_MANT_DIG from pypy.rlib.constant import M_LN2, M_LN10 from pypy.rlib.constant import CM_SQRT_LARGE_DOUBLE, CM_SQRT_DBL_MIN from pypy.rlib.constant import CM_LOG_LARGE_DOUBLE -from pypy.rlib.special_value import isfinite, special_type, INF, NAN +from pypy.rlib.special_value import special_type, INF, NAN from pypy.rlib.special_value import sqrt_special_values from pypy.rlib.special_value import acos_special_values from pypy.rlib.special_value import acosh_special_values diff --git a/pypy/rlib/special_value.py b/pypy/rlib/special_value.py --- a/pypy/rlib/special_value.py +++ b/pypy/rlib/special_value.py @@ -32,9 +32,6 @@ else: return ST_NZERO -def isfinite(d): - return not isinf(d) and not isnan(d) - P = math.pi P14 = 0.25 * math.pi _______________________________________________ pypy-commit mailing list pypy-commit@python.org http://mail.python.org/mailman/listinfo/pypy-commit