diff options
author | Travis Oliphant <oliphant@enthought.com> | 2005-09-29 22:29:00 +0000 |
---|---|---|
committer | Travis Oliphant <oliphant@enthought.com> | 2005-09-29 22:29:00 +0000 |
commit | 615d81479b16a7b2c057fb0ce93c690f3ccd99f4 (patch) | |
tree | 54fa5178b8e77ebfe709ffec7799e5bcdbe72bae /scipy/base/getlimits.py | |
parent | fe215b7e7eb14e84cfdfe3a5de4196746489f95d (diff) | |
download | numpy-615d81479b16a7b2c057fb0ce93c690f3ccd99f4.tar.gz |
Changed names from axxxxx to xxxx_ for types that shadow builtin types.
Diffstat (limited to 'scipy/base/getlimits.py')
-rw-r--r-- | scipy/base/getlimits.py | 8 |
1 files changed, 4 insertions, 4 deletions
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: |