summaryrefslogtreecommitdiff
path: root/numpy/lib/getlimits.py
diff options
context:
space:
mode:
authorRobert Kern <robert.kern@gmail.com>2008-07-03 06:15:14 +0000
committerRobert Kern <robert.kern@gmail.com>2008-07-03 06:15:14 +0000
commit102cdc22b12df8a44be644d39a277229e5324028 (patch)
tree104f86c4355fd18c9bd7d7648b120a0d0c288299 /numpy/lib/getlimits.py
parent590babe4646a3435f8a709d6230d05c10f085be1 (diff)
downloadnumpy-102cdc22b12df8a44be644d39a277229e5324028.tar.gz
Reduce numpy's import times by delaying a few time consuming imports to the point of actual use and global instantiations of finfo. Thanks to David Cournapeau for tracking down and fixing the import part of the problem.
Diffstat (limited to 'numpy/lib/getlimits.py')
-rw-r--r--numpy/lib/getlimits.py14
1 files changed, 8 insertions, 6 deletions
diff --git a/numpy/lib/getlimits.py b/numpy/lib/getlimits.py
index 89b40203f..99016de2d 100644
--- a/numpy/lib/getlimits.py
+++ b/numpy/lib/getlimits.py
@@ -21,14 +21,16 @@ _convert_to_float = {
}
class finfo(object):
- """Machine limits for floating point types.
+ """ Machine limits for floating point types.
- :Parameters:
- dtype : floating point type or instance
-
- :SeeAlso:
- - numpy.lib.machar.MachAr
+ Parameters
+ ----------
+ dtype : floating point type, dtype, or instance
+ The kind of floating point data type to get information about.
+ See Also
+ --------
+ numpy.lib.machar.MachAr
"""
_finfo_cache = {}