summaryrefslogtreecommitdiff
path: root/numpy/lib
diff options
context:
space:
mode:
authorRalf Gommers <ralf.gommers@gmail.com>2019-09-08 11:57:31 -0700
committerRalf Gommers <ralf.gommers@gmail.com>2019-09-19 08:57:52 +0200
commitd072f12354d1802aa6ac7a3bfa92a24fa5df613d (patch)
treef0b48f84f6378ffba8135f0e2aea904e0f17a152 /numpy/lib
parent50cbd096099d71250fa45b2d3332b0faa1341625 (diff)
downloadnumpy-d072f12354d1802aa6ac7a3bfa92a24fa5df613d.tar.gz
MAINT: add missing 'Arrayterator' to `numpy.lib.__all__`
Also finish the TODO about figuring out which np.lib.<submodule>'s are public. This is a giant mess ...
Diffstat (limited to 'numpy/lib')
-rw-r--r--numpy/lib/__init__.py10
1 files changed, 7 insertions, 3 deletions
diff --git a/numpy/lib/__init__.py b/numpy/lib/__init__.py
index eb6c9cace..906bede37 100644
--- a/numpy/lib/__init__.py
+++ b/numpy/lib/__init__.py
@@ -5,10 +5,15 @@ import math
from .info import __doc__
from numpy.version import version as __version__
+# Public submodules
+# Note: recfunctions and (maybe) format are public too, but not imported
+from . import mixins
+from . import scimath as emath
+
+# Private submodules
from .type_check import *
from .index_tricks import *
from .function_base import *
-from . import mixins # public
from .nanfunctions import *
from .shape_base import *
from .stride_tricks import *
@@ -16,7 +21,6 @@ from .twodim_base import *
from .ufunclike import *
from .histograms import *
-from . import scimath as emath
from .polynomial import *
from .utils import *
from .arraysetops import *
@@ -27,7 +31,7 @@ from .arraypad import *
from ._version import *
from numpy.core._multiarray_umath import tracemalloc_domain
-__all__ = ['emath', 'math', 'tracemalloc_domain']
+__all__ = ['emath', 'math', 'tracemalloc_domain', 'Arrayterator']
__all__ += type_check.__all__
__all__ += index_tricks.__all__
__all__ += function_base.__all__