summaryrefslogtreecommitdiff
path: root/scipy/base/_internal.py
diff options
context:
space:
mode:
authorTravis Oliphant <oliphant@enthought.com>2005-12-13 05:33:13 +0000
committerTravis Oliphant <oliphant@enthought.com>2005-12-13 05:33:13 +0000
commitf0995b54db038fa8e1ecfecf51c2519e48e10043 (patch)
tree456bd1ad7f3817ea948004305812b73094d749e6 /scipy/base/_internal.py
parentaea56a2d4c50cbedd4591aa970c1ac2578666d5a (diff)
downloadnumpy-f0995b54db038fa8e1ecfecf51c2519e48e10043.tar.gz
Fixed array pickle to handle subclasses.
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)