summaryrefslogtreecommitdiff
path: root/numpy/core/memmap.py
diff options
context:
space:
mode:
Diffstat (limited to 'numpy/core/memmap.py')
-rw-r--r--numpy/core/memmap.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/numpy/core/memmap.py b/numpy/core/memmap.py
index ed888a040..b4a25cf9c 100644
--- a/numpy/core/memmap.py
+++ b/numpy/core/memmap.py
@@ -227,11 +227,13 @@ class memmap(ndarray):
self = ndarray.__new__(subtype, shape, dtype=descr, buffer=mm,
offset=offset, order=order)
self._mmap = mm
+ self.filename = filename
return self
def __array_finalize__(self, obj):
if hasattr(obj, '_mmap'):
self._mmap = obj._mmap
+ self.filename = obj.filename
else:
self._mmap = None