[Numpy-discussion] Name of the file associated with a memmap

Gael Varoquaux gael.varoquaux@normalesup....
Mon Apr 12 16:43:34 CDT 2010


On Mon, Apr 12, 2010 at 04:39:23PM -0500, Robert Kern wrote:
> > where should i write the docs? in the file itself or through the doc
> > editor? also re path, since it can be a file-like, that would have to
> > be something like:

> > if isinstance(filename, basestring):
> >    filename = os.path.abspath(filename)
> > self.filename = filename

> > ok with that?

> In the case of file object, we should grab the filename from it.
> Whether the filename argument to the constructor was a file name or a
> file object, self.filename should always be the file name, IMO.

+1.

Once this is in, would it make it possible/desirable to have memmapped
arrays pickle (I know that it would require work, I am just asking).

Gaël


More information about the NumPy-Discussion mailing list