On, Wed Apr 16, 2008, Marcus von Appen wrote: > On, Wed Apr 16, 2008, Greg Ewing wrote: > > > René Dudfield wrote: > > > >> BufferProxy is not only usable from C - but from python too. > > > > That's good to hear -- it sounded from what others were > > saying that it was a C-only thing. > > > >> Also getting a buffer proxy helps with surface locking semantics. > >> When you get a BufferProxy the surface is locked (which you need to do > >> when you are modifying Surface->pixels - when the BufferProxy is > >> destroyed, the surface lock is released. > > > > That's a good reason. Although the new buffer protocol > > has locking facilities built in, so it wouldn't strictly > > be needed then. > [rubbish after reading the above wrong] Does the buffer locking mechanism exist in Python 2.4 already or are you referring to PEP 3118 (http://www.python.org/dev/peps/pep-3118/)? Regards Marcus
Attachment:
pgpLYRg3wXrGP.pgp
Description: PGP signature