diff options
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 = {} |