From 615d81479b16a7b2c057fb0ce93c690f3ccd99f4 Mon Sep 17 00:00:00 2001 From: Travis Oliphant Date: Thu, 29 Sep 2005 22:29:00 +0000 Subject: Changed names from axxxxx to xxxx_ for types that shadow builtin types. --- scipy/base/getlimits.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'scipy/base/getlimits.py') diff --git a/scipy/base/getlimits.py b/scipy/base/getlimits.py index 6445e1b28..b7bda6ffd 100644 --- a/scipy/base/getlimits.py +++ b/scipy/base/getlimits.py @@ -16,7 +16,7 @@ def frz(a): _convert_to_float = { numeric.csingle: numeric.single, - numeric.acomplex: numeric.afloat, + numeric.complex_: numeric.float_, numeric.clongfloat: numeric.longfloat } @@ -29,9 +29,9 @@ class finfo(object): raise ValueError, "data type not inexact" if not issubclass(dtype, numeric.floating): dtype = _convert_to_float[dtype] - if dtype is numeric.afloat: + if dtype is numeric.float_: try: - self.machar = _machar_cache[numeric.afloat] + self.machar = _machar_cache[numeric.float_] except KeyError: self.machar = MachAr(lambda v:array([v],'d'), lambda v:frz(v.astype('i'))[0], @@ -39,7 +39,7 @@ class finfo(object): lambda v:'%24.16e' % array(frz(v)[0],'d'), 'scipy float precision floating point '\ 'number') - _machar_cache[numeric.afloat] = self.machar + _machar_cache[numeric.float_] = self.machar elif dtype is numeric.single: try: -- cgit v1.2.1