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

2010-04-12 Thread Brent Pedersen
On Mon, Apr 12, 2010 at 3:31 PM, Brent Pedersen wrote: > On Mon, Apr 12, 2010 at 3:08 PM, Robert Kern wrote: >> On Mon, Apr 12, 2010 at 17:00, Brent Pedersen wrote: >>> On Mon, Apr 12, 2010 at 2:46 PM, Robert Kern wrote: On Mon, Apr 12, 2010 at 16:43, Gael Varoquaux wrote: > On M

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

2010-04-12 Thread Brent Pedersen
On Mon, Apr 12, 2010 at 3:08 PM, Robert Kern wrote: > On Mon, Apr 12, 2010 at 17:00, Brent Pedersen wrote: >> On Mon, Apr 12, 2010 at 2:46 PM, Robert Kern wrote: >>> On Mon, Apr 12, 2010 at 16:43, Gael Varoquaux >>> wrote: On Mon, Apr 12, 2010 at 04:39:23PM -0500, Robert Kern wrote: >

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

2010-04-12 Thread Robert Kern
On Mon, Apr 12, 2010 at 17:00, Brent Pedersen wrote: > On Mon, Apr 12, 2010 at 2:46 PM, Robert Kern wrote: >> On Mon, Apr 12, 2010 at 16:43, Gael Varoquaux >> wrote: >>> On Mon, Apr 12, 2010 at 04:39:23PM -0500, Robert Kern wrote: > where should i write the docs? in the file itself or throu

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

2010-04-12 Thread Brent Pedersen
On Mon, Apr 12, 2010 at 2:46 PM, Robert Kern wrote: > On Mon, Apr 12, 2010 at 16:43, Gael Varoquaux > wrote: >> 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 fil

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

2010-04-12 Thread Robert Kern
On Mon, Apr 12, 2010 at 16:43, Gael Varoquaux wrote: > 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

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

2010-04-12 Thread Gael Varoquaux
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.

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

2010-04-12 Thread Robert Kern
On Mon, Apr 12, 2010 at 16:14, Brent Pedersen wrote: > On Mon, Apr 12, 2010 at 1:59 PM, Robert Kern wrote: >> On Mon, Apr 12, 2010 at 15:52, Charles R Harris >> wrote: >>> >>> On Mon, Apr 12, 2010 at 2:37 PM, Charles R Harris >>> wrote: On Mon, Apr 12, 2010 at 1:55 PM, Brent Pedersen

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

2010-04-12 Thread Peter
On Mon, Apr 12, 2010 at 10:22 PM, Robert Kern wrote: > >Peter wrote: >> >> 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

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

2010-04-12 Thread Charles R Harris
On Mon, Apr 12, 2010 at 3:14 PM, Brent Pedersen wrote: > On Mon, Apr 12, 2010 at 1:59 PM, Robert Kern > wrote: > > On Mon, Apr 12, 2010 at 15:52, Charles R Harris > > wrote: > >> > >> On Mon, Apr 12, 2010 at 2:37 PM, Charles R Harris > >> wrote: > >>> > >>> On Mon, Apr 12, 2010 at 1:55 PM, Bre

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

2010-04-12 Thread Robert Kern
On Mon, Apr 12, 2010 at 16:15, Peter wrote: > On Mon, Apr 12, 2010 at 9:52 PM, Charles R Harris > 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

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

2010-04-12 Thread Peter
On Mon, Apr 12, 2010 at 9:52 PM, Charles R Harris 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. >

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

2010-04-12 Thread Brent Pedersen
On Mon, Apr 12, 2010 at 1:59 PM, Robert Kern wrote: > On Mon, Apr 12, 2010 at 15:52, Charles R Harris > wrote: >> >> On Mon, Apr 12, 2010 at 2:37 PM, Charles R Harris >> wrote: >>> >>> On Mon, Apr 12, 2010 at 1:55 PM, Brent Pedersen >>> wrote: On Mon, Apr 12, 2010 at 9:49 AM, Robert K

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

2010-04-12 Thread Robert Kern
On Mon, Apr 12, 2010 at 15:52, Charles R Harris wrote: > > On Mon, Apr 12, 2010 at 2:37 PM, Charles R Harris > wrote: >> >> On Mon, Apr 12, 2010 at 1:55 PM, Brent Pedersen >> wrote: >>> >>> On Mon, Apr 12, 2010 at 9:49 AM, Robert Kern >>> wrote: >>> > On Mon, Apr 12, 2010 at 04:03, Nadav Horesh

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

2010-04-12 Thread Charles R Harris
On Mon, Apr 12, 2010 at 2:37 PM, Charles R Harris wrote: > > > On Mon, Apr 12, 2010 at 1:55 PM, Brent Pedersen wrote: > >> On Mon, Apr 12, 2010 at 9:49 AM, Robert Kern >> wrote: >> > On Mon, Apr 12, 2010 at 04:03, Nadav Horesh >> wrote: >> >> >> >> Is there a way to get the file-name given a me

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

2010-04-12 Thread Charles R Harris
On Mon, Apr 12, 2010 at 1:55 PM, Brent Pedersen wrote: > On Mon, Apr 12, 2010 at 9:49 AM, Robert Kern > wrote: > > On Mon, Apr 12, 2010 at 04:03, Nadav Horesh > wrote: > >> > >> Is there a way to get the file-name given a memmap array object? > > > > Not at this time. This would be very useful,

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

2010-04-12 Thread Brent Pedersen
On Mon, Apr 12, 2010 at 9:49 AM, Robert Kern wrote: > On Mon, Apr 12, 2010 at 04:03, Nadav Horesh wrote: >> >> Is there a way to get the file-name given a memmap array object? > > Not at this time. This would be very useful, though, so patches are welcome. > > -- > Robert Kern > > "I have come to

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

2010-04-12 Thread Robert Kern
On Mon, Apr 12, 2010 at 04:03, Nadav Horesh wrote: > > Is there a way to get the file-name given a memmap array object? Not at this time. This would be very useful, though, so patches are welcome. -- Robert Kern "I have come to believe that the whole world is an enigma, a harmless enigma that

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

2010-04-12 Thread Nadav Horesh
Is there a way to get the file-name given a memmap array object? Nadav ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion