Archives July 8, 2009
Python 2.6+ buffer protocol...
Written by
on
.
Been playing around with the Python 2.6+ buffer protocol this morning. Notes:
- it appears that ctypes could support buffer-supporting objects being passed as pointers natively (i.e. at C speed), but it doesn't seem to (at least with my cursory tests) there would likely be a lot of corner cases that would need to throw errors ...