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

Peter numpy-discussion at maubp.freeserve.co.uk
Mon Apr 12 17:15:08 EDT 2010


On Mon, Apr 12, 2010 at 9:52 PM, Charles R Harris
<charlesr.harris at gmail.com> wrote:
>
>>
>> Looks OK, I applied it. Could you add some documentation?
>>
>
> And maybe the filename should be the whole path? Thoughts?
>
> Chuck

Why is the new property "filename" and not "name" to match
the way the Python handle work? e.g.

>>> handle = open("Documents/review.pdf")
>>> handle.name
'Documents/review.pdf'

I concede that "filename" is more explicit, but there is something
to be said for consistency as well.

Peter



More information about the NumPy-Discussion mailing list