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

numpy-svn@scip... numpy-svn@scip...
Fri Jun 8 00:51:17 CDT 2007


Author: oliphant
Date: 2007-06-08 00:51:08 -0500 (Fri, 08 Jun 2007)
New Revision: 3863

Modified:
   trunk/numpy/core/memmap.py
Log:
Fix so that _mmap gets carried through .transpose

Modified: trunk/numpy/core/memmap.py
===================================================================
--- trunk/numpy/core/memmap.py	2007-06-08 05:50:09 UTC (rev 3862)
+++ trunk/numpy/core/memmap.py	2007-06-08 05:51:08 UTC (rev 3863)
@@ -81,6 +81,10 @@
             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
         else:
             self._mmap = None
         return



More information about the Numpy-svn mailing list