test test_slice failed -- [9, 7, 5, 3, 1] == [0]

Anders Qvist <[email protected]> Tue, 5 Nov 2002 22:38:18 +0100
Newsgroups gmane.comp.python.snake-farm.user
Message-ID <[email protected]>
Between 1036491804 and 1036522446 (should be GMT 2002-11-05, 10:20 and
2002-11-05, 18:54 respectively), test_slice started failing with the
following message:

  test test_slice failed -- [9, 7, 5, 3, 1] == [0]

om moghedien; linux/alpha. There has been some changes containing
pointer arithmetic around line 160 of sliceobjects.c, which might be
guilty (just a shot in the dark; 64-bit clean?):

+++ Objects/sliceobject.c       5 Nov 2002 15:28:51 -0000       2.19

-       if ((*stop - *start)*(*step) <= 0) {
+       if ((*step < 0 && *stop >= *start)
+           || (*step > 0 && *start >= *stop)) {
                *slicelength = 0;
        }

I'll be back toworrow with the results of a manual test build.
--
Anders "Quest" Qvist

"We've all heard that a million monkeys banging on a million typewriters
will eventually reproduce the entire works of Shakespeare. Now, thanks 
to the Internet, we know this is not true." -- Robert Wilensky