[Python-Dev] slicing of structseq objects fails

Tim Peters tim@zope.com
Tue, 30 Oct 2001 18:54:07 -0500


[/F]
> in structseq_slice,
>
>     for(i = low; i < high; ++i) {
>         PyObject *v = obj->ob_item[i];
>         Py_INCREF(v);
>         PyTuple_SET_ITEM(np, i, v);
>     }
>
> should be:
>
>     for(i = low; i < high; ++i) {
>         PyObject *v = obj->ob_item[i];
>         Py_INCREF(v);
>         PyTuple_SET_ITEM(np, i-low, v);
>     }

Bingo.  First Jack reports a bug here, then /F goes to the trouble of
copying in before-and-after code instead of just checking in the fix.  Does
everyone really hate SourceForge that much <wink>?