summaryrefslogtreecommitdiff
path: root/numpy
diff options
context:
space:
mode:
Diffstat (limited to 'numpy')
-rw-r--r--numpy/core/multiarray.py7
-rw-r--r--numpy/core/umath.py7
2 files changed, 14 insertions, 0 deletions
diff --git a/numpy/core/multiarray.py b/numpy/core/multiarray.py
index c1db75864..8b07bccf2 100644
--- a/numpy/core/multiarray.py
+++ b/numpy/core/multiarray.py
@@ -1,3 +1,10 @@
+"""
+Create the numpy.core.multiarray namespace for backward compatibility. In v1.16
+the multiarray and umath c-extension modules were merged into a single
+_multiarray_umath extension module. So we replicate the old namespace
+by importing from the extension module.
+"""
+
from . import _multiarray_umath
from numpy.core._multiarray_umath import *
from numpy.core._multiarray_umath import (_fastCopyAndTranspose, _flagdict, _insert,
diff --git a/numpy/core/umath.py b/numpy/core/umath.py
index 6a08bbe15..efa213b1a 100644
--- a/numpy/core/umath.py
+++ b/numpy/core/umath.py
@@ -1,3 +1,10 @@
+"""
+Create the numpy.core.umath namespace for backward compatibility. In v1.16
+the multiarray and umath c-extension modules were merged into a single
+_multiarray_umath extension module. So we replicate the old namespace
+by importing from the extension module.
+"""
+
from . import _multiarray_umath
from numpy.core._multiarray_umath import *
from numpy.core._multiarray_umath import _add_newdoc_ufunc, _arg