diff options
author | Travis Oliphant <oliphant@enthought.com> | 2007-06-08 06:08:04 +0000 |
---|---|---|
committer | Travis Oliphant <oliphant@enthought.com> | 2007-06-08 06:08:04 +0000 |
commit | 047ec0c8def100cb6b407fd400fbea15a9c38f09 (patch) | |
tree | bba8221635d8b21ee0ef1897bb42de73c7bd8cbf /numpy/core/memmap.py | |
parent | 5f6e314f3fb9a6709f3007774cbd65b292df92f2 (diff) | |
download | numpy-047ec0c8def100cb6b407fd400fbea15a9c38f09.tar.gz |
Restore back to original .transpose behavior in memmap.py with explanation of the problem.
Diffstat (limited to 'numpy/core/memmap.py')
-rw-r--r-- | numpy/core/memmap.py | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/numpy/core/memmap.py b/numpy/core/memmap.py index 66f64ecb0..831ba3307 100644 --- a/numpy/core/memmap.py +++ b/numpy/core/memmap.py @@ -80,14 +80,12 @@ class memmap(ndarray): if obj is not None: if not isinstance(obj, memmap): raise ValueError, "Cannot create a memmap array that way" - self._mmap = obj._mmap - self._offset = obj._offset - self._mode = obj._mode - self._size = obj._size - self._name = obj._name + # it would be nice to carry the along the _mmap name + # but then we might have problems because self could close + # it while obj is still holding it. So, we don't do + # anything at this point. else: self._mmap = None - return def sync(self): self._mmap.flush() |