summaryrefslogtreecommitdiff
path: root/numpy/lib/getlimits.py
diff options
context:
space:
mode:
authorRobert Kern <robert.kern@gmail.com>2008-07-03 06:23:15 +0000
committerRobert Kern <robert.kern@gmail.com>2008-07-03 06:23:15 +0000
commita74f0dfbcdfaf0ed5929fed7a27dc8738709828f (patch)
tree6ea70f39bd5755fdf411682ab48e850d35f21643 /numpy/lib/getlimits.py
parent102cdc22b12df8a44be644d39a277229e5324028 (diff)
downloadnumpy-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.py7
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 = {}