[Python-Dev] PEP: Extending the buffer protocol to share array information.

Fredrik Lundh fredrik at pythonware.com
Wed Nov 1 08:53:04 CET 2006


Terry Reedy wrote:

> I believe that at present PyGame can only work with external images that it 
> is programmed to know how to import.  My guess is that if image source 
> program X (such as PIL) described its data layout in a way that NumPy could 
> read and act on, the import/copy step could be eliminated.

I wish you all stopped using PIL as an example in this discussion;
for PIL 2, I'm moving towards an entirely opaque data model, with a 
"data view"-style client API.

</F>



More information about the Python-Dev mailing list