[Python-Dev] buffer interface (again)
Mark Hammond
MarkH@ActiveState.com
Fri, 27 Apr 2001 00:10:36 +1000
> From: python-dev-admin@python.org [mailto:python-dev-admin@python.org]On
> Behalf Of Thomas Heller
> Sent: Thursday, 19 April 2001 2:43 AM
Better late than never!
> > I'd like to see a memory object that allocates and deallocates blocks
> > of memory and exports a pointer to its memory. It could also set
> > privileges such are read/write, etc
>
> It's all there, in bufferobject.c.
> Except that the functions are not exposed to python...
I'm with Thomas too. I could have used this a number of times, and have
even resorted to simple methods in my own .pyd files that wrap these APIs -
eg, win32file.AllocateReadBuffer() used for overlapped IO.
So while I think Thomas' bug is valid, I also understand we have to somehow
handle the issue the array module has.
Mark.