diff options
author | Travis Oliphant <oliphant@enthought.com> | 2005-12-13 05:33:13 +0000 |
---|---|---|
committer | Travis Oliphant <oliphant@enthought.com> | 2005-12-13 05:33:13 +0000 |
commit | f0995b54db038fa8e1ecfecf51c2519e48e10043 (patch) | |
tree | 456bd1ad7f3817ea948004305812b73094d749e6 /scipy/base/_internal.py | |
parent | aea56a2d4c50cbedd4591aa970c1ac2578666d5a (diff) | |
download | numpy-f0995b54db038fa8e1ecfecf51c2519e48e10043.tar.gz |
Fixed array pickle to handle subclasses.
Diffstat (limited to 'scipy/base/_internal.py')
-rw-r--r-- | scipy/base/_internal.py | 5 |
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) |