[Numpy-svn] r3527 - trunk/numpy/core

numpy-svn@scip... numpy-svn@scip...
Wed Jan 31 18:26:32 CST 2007


Author: oliphant
Date: 2007-01-31 18:26:25 -0600 (Wed, 31 Jan 2007)
New Revision: 3527

Modified:
   trunk/numpy/core/memmap.py
Log:
Add a close method to memmap arrays.

Modified: trunk/numpy/core/memmap.py
===================================================================
--- trunk/numpy/core/memmap.py	2007-01-31 17:57:42 UTC (rev 3526)
+++ trunk/numpy/core/memmap.py	2007-02-01 00:26:25 UTC (rev 3527)
@@ -84,6 +84,9 @@
     def sync(self):
         self._mmap.flush()
 
+    def close(self):
+	self._mmap.close()
+
     def __del__(self):
         if self._mmap is not None:
             self._mmap.flush()



More information about the Numpy-svn mailing list