summaryrefslogtreecommitdiff
path: root/numpy/__init__.py
diff options
context:
space:
mode:
authorAllan Haldane <allan.haldane@gmail.com>2018-09-30 19:43:23 -0400
committerAllan Haldane <allan.haldane@gmail.com>2018-10-09 23:11:26 -0400
commit78e105182759b582818cb0f661052e9d812c8478 (patch)
tree630757b0af1d87b9df963509c317163debe98b07 /numpy/__init__.py
parent072c90ea848c753b7e8b7c42d2e359f53dfd0085 (diff)
downloadnumpy-78e105182759b582818cb0f661052e9d812c8478.tar.gz
MAINT: delay initialization of getlimits (circular imports)
getlimits previously called numpy code before all of numpy was loaded, which often causes circular import issues. This delays getlimits init. Fixes #12063
Diffstat (limited to 'numpy/__init__.py')
-rw-r--r--numpy/__init__.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/numpy/__init__.py b/numpy/__init__.py
index e1df236bb..120a7b4c4 100644
--- a/numpy/__init__.py
+++ b/numpy/__init__.py
@@ -163,6 +163,8 @@ else:
from __builtin__ import bool, int, float, complex, object, unicode, str
from .core import round, abs, max, min
+ # now that numpy modules are imported, can initialize limits
+ core.getlimits._init_getlimits()
__all__.extend(['__version__', 'show_config'])
__all__.extend(core.__all__)