[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: [pygame] PixelArray question



Greg Ewing wrote:
Lenard Lindstrom wrote:
I was also confused about the buffer protocol in general. I thought it always involved a buffer type instance.

What do you mean by a "buffer type"? The buffer protocol
is just a protocol that any C-coded Python object can choose
to support.

That builtin type "buffer" that the Python developers are trying to remove. Somehow I confused the buffer interface with CObject or something, and thought the buffer interface involved a buffer type instance. Rather silly since I had written a ctypes declaration of the buffer api.

--
Lenard Lindstrom
<len-l@xxxxxxxxx>