summaryrefslogtreecommitdiff
path: root/scipy/base/_internal.py
diff options
context:
space:
mode:
Diffstat (limited to 'scipy/base/_internal.py')
-rw-r--r--scipy/base/_internal.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/scipy/base/_internal.py b/scipy/base/_internal.py
index a39ac2641..7dcfdd882 100644
--- a/scipy/base/_internal.py
+++ b/scipy/base/_internal.py
@@ -2,7 +2,7 @@
#A place for code to be called from C-code
# that implements more complicated stuff.
-from multiarray import _flagdict, dtypedescr
+from multiarray import _flagdict, dtypedescr, ndarray
_defflags = _flagdict.keys()
@@ -280,3 +280,6 @@ def _array_descr(descriptor):
result.append(tup)
return result
+
+def _reconstruct(subtype, shape, dtype):
+ return ndarray.__new__(subtype, shape, dtype)