[Numpy-discussion] Views of memmaps and offset

Olivier Grisel olivier.grisel@ensta....
Sat Sep 22 11:30:27 CDT 2012


A posix dup (http://www.unix.com/man-page/POSIX/3posix/dup/) would not
solve it as the fd is hidden inside the python `mmap.mmap` instance
that is a builtin that just exposes the python buffer interface and
hides the implementation details.

The only clean solution would be to make `numpy.memmap` use a wrapper
buffer object that would keep track of the filename and offset
attributes instead of using a `mmap.mmap` instance directly.

-- 
Olivier


More information about the NumPy-Discussion mailing list