[issue13797] Allow objects implemented in pure Python to export PEP 3118 buffers
report at bugs.python.org
Sat Mar 3 22:24:25 CET 2012
Stefan Behnel <scoder at users.sourceforge.net> added the comment:
FWIW, Cython lets user code implement the buffer interface for extension types using the special methods "__getbuffer__()" and "__releasebuffer__()", so providing the same methods (although with a different signature) also for normal Python types would IMHO fit nicely.
Python tracker <report at bugs.python.org>
More information about the Python-bugs-list