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

numpy-svn at scipy.org numpy-svn at scipy.org
Fri Jun 8 02:08:21 EDT 2007


Author: oliphant
Date: 2007-06-08 01:08:04 -0500 (Fri, 08 Jun 2007)
New Revision: 3864

Modified:
   trunk/numpy/core/memmap.py
Log:
Restore back to original .transpose behavior in memmap.py with explanation of the problem.

Modified: trunk/numpy/core/memmap.py
===================================================================
--- trunk/numpy/core/memmap.py	2007-06-08 05:51:08 UTC (rev 3863)
+++ trunk/numpy/core/memmap.py	2007-06-08 06:08:04 UTC (rev 3864)
@@ -80,14 +80,12 @@
         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()




More information about the Numpy-svn mailing list