summaryrefslogtreecommitdiff
path: root/numpy/core/multiarray.py
diff options
context:
space:
mode:
authormattip <matti.picus@gmail.com>2019-01-24 16:34:45 +0200
committermattip <matti.picus@gmail.com>2019-01-27 20:05:29 +0200
commit2b5b009859a9472082283e22e43781cf3f35ef5e (patch)
treeee15981e3726a64688967de79c8e80a8c071f7b6 /numpy/core/multiarray.py
parent7e3d558aeee5a8a5eae5ebb6aef03de892a92ebd (diff)
downloadnumpy-2b5b009859a9472082283e22e43781cf3f35ef5e.tar.gz
BUG: ndarrays pickled by 1.16 cannot be loaded by 1.15.4 and lower
Diffstat (limited to 'numpy/core/multiarray.py')
-rw-r--r--numpy/core/multiarray.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/numpy/core/multiarray.py b/numpy/core/multiarray.py
index 4c2715892..f2d7a9487 100644
--- a/numpy/core/multiarray.py
+++ b/numpy/core/multiarray.py
@@ -40,6 +40,10 @@ __all__ = [
'tracemalloc_domain', 'typeinfo', 'unpackbits', 'unravel_index', 'vdot',
'where', 'zeros']
+# For backward compatibility, make sure pickle imports these functions from here
+_reconstruct.__module__ = 'numpy.core.multiarray'
+scalar.__module__ = 'numpy.core.multiarray'
+
arange.__module__ = 'numpy'
array.__module__ = 'numpy'