diff options
author | Robert Kern <robert.kern@gmail.com> | 2008-07-03 06:15:14 +0000 |
---|---|---|
committer | Robert Kern <robert.kern@gmail.com> | 2008-07-03 06:15:14 +0000 |
commit | 102cdc22b12df8a44be644d39a277229e5324028 (patch) | |
tree | 104f86c4355fd18c9bd7d7648b120a0d0c288299 /numpy/lib/getlimits.py | |
parent | 590babe4646a3435f8a709d6230d05c10f085be1 (diff) | |
download | numpy-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.py | 14 |
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 = {} |