diff options
author | Robert Kern <robert.kern@gmail.com> | 2008-07-03 06:23:15 +0000 |
---|---|---|
committer | Robert Kern <robert.kern@gmail.com> | 2008-07-03 06:23:15 +0000 |
commit | a74f0dfbcdfaf0ed5929fed7a27dc8738709828f (patch) | |
tree | 6ea70f39bd5755fdf411682ab48e850d35f21643 /numpy/lib/getlimits.py | |
parent | 102cdc22b12df8a44be644d39a277229e5324028 (diff) | |
download | numpy-a74f0dfbcdfaf0ed5929fed7a27dc8738709828f.tar.gz |
Added note to numpy developers about the policy on using finfo in numpy's codebase.
Diffstat (limited to 'numpy/lib/getlimits.py')
-rw-r--r-- | numpy/lib/getlimits.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/numpy/lib/getlimits.py b/numpy/lib/getlimits.py index 99016de2d..cab741e2e 100644 --- a/numpy/lib/getlimits.py +++ b/numpy/lib/getlimits.py @@ -31,6 +31,13 @@ class finfo(object): See Also -------- numpy.lib.machar.MachAr + + Notes + ----- + For developers of numpy: do not instantiate this at the module level. The + initial calculation of these parameters is expensive and negatively impacts + import times. These objects are cached, so calling `finfo()` repeatedly + inside your functions is not a problem. """ _finfo_cache = {} |