Bug in timsort!?
Ian Kelly
ian.g.kelly at gmail.com
Wed Feb 25 14:42:04 EST 2015
On Wed, Feb 25, 2015 at 10:21 AM, Peter Otten <__peter__ at web.de> wrote:
> Mark Lawrence wrote:
>
>> Reading the bug report http://bugs.python.org/issue23515, specifically
>> msg236586, it looks as if the proposed fix was wrong and one of the
>> smarter members of the python community fixed it.
>
> If I understand that correctly Benjamin's modifications don't affect the
> functionality of the patch.
Yeah, just looks like some changes for code clarity to me.
Py_ssize_t is signed, so the n-1 > 0 test wouldn't break on n = 0. The
other changes are pure formatting.
More information about the Python-list
mailing list