[issue29838] Check that sq_length and mq_length return non-negative result

Terry J. Reedy report at bugs.python.org
Fri Mar 24 15:18:34 EDT 2017


Terry J. Reedy added the comment:

The changes appear consistent within themselves (ie, no apparent typos), and the one for builtin len appears to fix a bug that would allow negative length.  Can tests be written in Python that fail without the patch?   Or would mis-behaving classes have to be written in C?

----------
nosy: +terry.reedy

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


More information about the Python-bugs-list mailing list