Serhiy Storchaka added the comment: Updated patch addresses Antoine's comments.
I still hesitate about C-contiguousity. Looks as all buffers created in the stdlib are C-contiguous, so we can't test non-contiguous buffers. Shouldn't PyObject_AsCharBuffer (or even PyObject_AsReadBuffer and_PyBuffer_Converter) accept only C-contiguous buffers? Who are buffer protocol experts? ---------- Added file: http://bugs.python.org/file37507/buffers_2.patch _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue22896> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com