[issue13797] Allow objects implemented in pure Python to export PEP 3118 buffers
Stefan Behnel
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.
----------
nosy: +scoder
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue13797>
_______________________________________
More information about the Python-bugs-list
mailing list