[issue12834] PyBuffer_ToContiguous() incorrect for non-contiguous arrays
Nick Coghlan
report at bugs.python.org
Fri Jul 27 15:28:17 CEST 2012
Nick Coghlan <ncoghlan at gmail.com> added the comment:
Summary of my review for Georg's benefit: I had one minor formatting nit with the patch (which Stefan can easily fix before committing), but it otherwise looked fine to me.
I also agree that the old implicit truncation was unusable in practice, as the *actual* length is not returned from the function, and in fact cannot be returned because the return type is int rather than Py_ssize_t. A length mismatch therefore needs to be an error.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue12834>
_______________________________________
More information about the Python-bugs-list
mailing list