Re: [Python-Dev] Extended buffer PEP

2007-04-15 Thread Travis Oliphant
Greg Ewing wrote: > Travis Oliphant wrote: > >> Carl Banks wrote: >> > I'd like to see it accept a flags argument over what kind of buffer >> > it's allowed to return. I'd rather not burden the user to check >> all > the entries in bufferinfo to make sure it doesn't get something >> > unexpect

[Python-Dev] Extended buffer PEP

2007-04-15 Thread Travis Oliphant
Here is my "final" draft of the extended buffer interface PEP. For those who have been following the discussion, I eliminated the releaser object and the lock-buffer function. I decided that there is enough to explain with the new striding and sub-offsets without the added confusion of rel

Re: [Python-Dev] Extended buffer PEP

2007-04-08 Thread Greg Ewing
Travis Oliphant wrote: > Carl Banks wrote: > > I'd like to see it accept a flags argument over what kind of buffer > > it's allowed to return. I'd rather not burden the user to check all > > the entries in bufferinfo to make sure it doesn't get something > > unexpected. > Yes, I agree. We had s

Re: [Python-Dev] Extended buffer PEP

2007-04-08 Thread Travis Oliphant
Carl Banks wrote: > Only one concern: > > > typedef int (*getbufferproc)(PyObject *obj, struct bufferinfo > *view) > > > I'd like to see it accept a flags argument over what kind of buffer > it's allowed to return. I'd rather not burden the user to check all > the entries in bufferinfo to m

Re: [Python-Dev] Extended buffer PEP

2007-04-07 Thread Carl Banks
Only one concern: > typedef int (*getbufferproc)(PyObject *obj, struct bufferinfo *view) I'd like to see it accept a flags argument over what kind of buffer it's allowed to return. I'd rather not burden the user to check all the entries in bufferinfo to make sure it doesn't get something