cython/cython — pull request #89 by markflorisson88 (2012-02-19 15:02:52+00:00)
Title:  obtain buffer

This branch allows memoryviews from Cython modules to expose the buffer interface to other modules in python versions without the buffer interface. This couldn't be done through the __getbuffer__ trick such as in numpy.pxd, as that relies on an object of one type, whereas each module using memoryviews will get a different type with a different __getbuffer__ function.

It also speeds up acquiring of memoryview slices from memoryviews within the same module (or within all modules created by one Cython version once the libcython CEP is implemented) by about 3 to 5 times.