diff options
author | Ralf Gommers <ralf.gommers@gmail.com> | 2019-09-09 16:11:31 -0700 |
---|---|---|
committer | Ralf Gommers <ralf.gommers@gmail.com> | 2019-09-19 08:57:52 +0200 |
commit | 8ce48a392600c70adc66647a8c365692eb490da9 (patch) | |
tree | 3443b6083f3635dfa1e88fa004ba975157d5548c /numpy/__init__.py | |
parent | d072f12354d1802aa6ac7a3bfa92a24fa5df613d (diff) | |
download | numpy-8ce48a392600c70adc66647a8c365692eb490da9.tar.gz |
DOC: add some comments to explain namespace cleanup in numpy/__init__.py
[ci skip]
Diffstat (limited to 'numpy/__init__.py')
-rw-r--r-- | numpy/__init__.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/numpy/__init__.py b/numpy/__init__.py index c5ef6869f..fef8245de 100644 --- a/numpy/__init__.py +++ b/numpy/__init__.py @@ -177,6 +177,10 @@ else: __all__.extend(['linalg', 'fft', 'random', 'ctypeslib', 'ma']) # Remove things that are in the numpy.lib but not in the numpy namespace + # Note that there is a test (numpy/tests/test_public_api.py:test_numpy_namespace) + # that prevents adding more things to the main namespace by accident. + # The list below will grow until the `from .lib import *` fixme above is + # taken care of __all__.remove('Arrayterator') del Arrayterator |