diff options
author | Ralf Gommers <ralf.gommers@gmail.com> | 2019-09-08 11:57:31 -0700 |
---|---|---|
committer | Ralf Gommers <ralf.gommers@gmail.com> | 2019-09-19 08:57:52 +0200 |
commit | d072f12354d1802aa6ac7a3bfa92a24fa5df613d (patch) | |
tree | f0b48f84f6378ffba8135f0e2aea904e0f17a152 /numpy/__init__.py | |
parent | 50cbd096099d71250fa45b2d3332b0faa1341625 (diff) | |
download | numpy-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/__init__.py')
-rw-r--r-- | numpy/__init__.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/numpy/__init__.py b/numpy/__init__.py index 07d67945c..c5ef6869f 100644 --- a/numpy/__init__.py +++ b/numpy/__init__.py @@ -143,7 +143,9 @@ else: from .core import * from . import compat from . import lib + # FIXME: why have numpy.lib if everything is imported here?? from .lib import * + from . import linalg from . import fft from . import polynomial @@ -174,6 +176,10 @@ else: __all__.extend(lib.__all__) __all__.extend(['linalg', 'fft', 'random', 'ctypeslib', 'ma']) + # Remove things that are in the numpy.lib but not in the numpy namespace + __all__.remove('Arrayterator') + del Arrayterator + # Filter out Cython harmless warnings warnings.filterwarnings("ignore", message="numpy.dtype size changed") warnings.filterwarnings("ignore", message="numpy.ufunc size changed") |