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

Nick Coghlan report at bugs.python.org
Wed Mar 21 11:16:03 CET 2012


Nick Coghlan <ncoghlan at gmail.com> added the comment:

The reason I don't particularly like the "delegation only" API is that the combination of the new memoryview implementation and bytes/mmap/etc to get a flat region of memory to play with means you could do some quite interesting things entirely at the Python level.

If you couldn't even use memoryview.cast() to change the shape of the exported memory, it makes the Python level API clearly inferior in power compared to what you can do in C.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue13797>
_______________________________________


More information about the Python-bugs-list mailing list