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

Richard Hansen report at bugs.python.org
Sun Feb 1 10:39:43 CET 2015


Richard Hansen added the comment:

My preference is to apply the patch, of course.  There is a legitimate concern that it will break existing code, but I think there are more points in favor of applying the patch:
  * there exists code that the current behavior is known to break
  * it's easier to remove assert(view->suboffsets == NULL) than to
    change producers to not provide an all-negative array (though I
    admit there may be other more subtle ways the patch would break
    existing code)
  * I may be the only one who has spoken up about this, but I doubt
    I'm the only one who has experienced it

----------

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


More information about the Python-bugs-list mailing list