[issue23352] PyBuffer_IsContiguous() sometimes returns wrong result if suboffsets != NULL

Stefan Krah report at bugs.python.org
Sat Jan 31 15:53:58 CET 2015


Stefan Krah added the comment:

To summarize, I think this is different from #22445, which also requests
relaxed contiguity tests. #22445 is motivated by the fact that slicing
can create a certain class of contiguous buffers that aren't recognized
as such.

No such reason exists here: All-negative suboffsets are only created
if a buffer provider chooses to hand them out instead of NULL. To my
knowledge only Cython does this, and it's against the PEP (though
strictly speaking not against the docs).


So I'm -0.5 on this change in general and -1 for 2.7.



I'd reject the issue, but let's wait for Antoine's opinion.

----------

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


More information about the Python-bugs-list mailing list