[issue13797] Allow objects implemented in pure Python to export PEP 3118 buffers

Stefan Behnel report at bugs.python.org
Wed Mar 21 07:59:13 CET 2012

Stefan Behnel <scoder at users.sourceforge.net> added the comment:

Ok, just for the record: a single __buffer__() special method with delegation-only semantics would also work for Cython. Taking this path would provide a cleaner separation of the (then delegation-only) Python level protocol and the (all purpose) C level protocol. I think I'd prefer that.

I assume __buffer__() takes no arguments, right?


Python tracker <report at bugs.python.org>

More information about the Python-bugs-list mailing list