diff options
author | Travis Oliphant <oliphant@enthought.com> | 2006-02-27 19:23:05 +0000 |
---|---|---|
committer | Travis Oliphant <oliphant@enthought.com> | 2006-02-27 19:23:05 +0000 |
commit | b8ba26230f5290093351e4ebad676ed9b6471d8a (patch) | |
tree | f5a8c6b21e5eb0f8727a0cd95b76880f86169b47 /numpy/core/memmap.py | |
parent | def1c92c288699c65356e52722487bbacc036343 (diff) | |
download | numpy-b8ba26230f5290093351e4ebad676ed9b6471d8a.tar.gz |
Have __array_finalize__ be called for every sub-class creation.
Diffstat (limited to 'numpy/core/memmap.py')
-rw-r--r-- | numpy/core/memmap.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/core/memmap.py b/numpy/core/memmap.py index f4dc0b463..8e9faa5b0 100644 --- a/numpy/core/memmap.py +++ b/numpy/core/memmap.py @@ -80,7 +80,7 @@ class memmap(ndarray): return self def __array_finalize__(self, obj): - if not isinstance(obj, memmap): + if obj is not None and not isinstance(obj, memmap): raise ValueError, "Cannot create a memmap array that way" self._mmap = None |