[Python-Dev] slicing of structseq objects fails (original) (raw)
Tim Peters tim@zope.com
Tue, 30 Oct 2001 18:54:07 -0500
- Previous message: [Python-Dev] slicing of structseq objects fails
- Next message: [Python-Dev] slicing of structseq objects fails
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
[/F]
in structseqslice,
for(i = low; i < high; ++i) {_ _PyObject *v = obj->obitem[i]; PyINCREF(v); PyTupleSETITEM(np, i, v); } should be: for(i = low; i < high; ++i) {_ _PyObject *v = obj->obitem[i]; PyINCREF(v); PyTupleSETITEM(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 ?
- Previous message: [Python-Dev] slicing of structseq objects fails
- Next message: [Python-Dev] slicing of structseq objects fails
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]