diff options
author | Travis Oliphant <oliphant@enthought.com> | 2007-02-01 00:26:25 +0000 |
---|---|---|
committer | Travis Oliphant <oliphant@enthought.com> | 2007-02-01 00:26:25 +0000 |
commit | 53d4e2faaa9b5268b327954425dc7759918619d9 (patch) | |
tree | 3c61d96890b0c9fa9d35f00eb0ee42c144f4ec03 /numpy/core/memmap.py | |
parent | e7b63c65f0ccb78c60dc11b756ca01953806b70f (diff) | |
download | numpy-53d4e2faaa9b5268b327954425dc7759918619d9.tar.gz |
Add a close method to memmap arrays.
Diffstat (limited to 'numpy/core/memmap.py')
-rw-r--r-- | numpy/core/memmap.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/numpy/core/memmap.py b/numpy/core/memmap.py index d253dabb7..80a653c77 100644 --- a/numpy/core/memmap.py +++ b/numpy/core/memmap.py @@ -84,6 +84,9 @@ class memmap(ndarray): def sync(self): self._mmap.flush() + def close(self): + self._mmap.close() + def __del__(self): if self._mmap is not None: self._mmap.flush() |