1. 30 Jul, 2004 2 commits
    • Armin Rigo's avatar
      This is a reorganization of list_ass_slice(). It should probably be reviewed, · 34175871
      Armin Rigo authored
      though I tried to be very careful.  This is a slight simplification, and it
      adds a new feature: a small stack-allocated "recycled" array for the cases
      when we don't remove too many items.
      
      It allows PyList_SetSlice() to never fail if:
      * you are sure that the object is a list; and
      * you either do not remove more than 8 items, or clear the list.
      
      This makes a number of other places in the source code correct again -- there
      are some places that delete a single item without checking for MemoryErrors
      raised by PyList_SetSlice(), or that clear the whole list, and sometimes the
      context doesn't allow an error to be propagated.
      34175871
    • Armin Rigo's avatar
      What if you call lst.__init__() while it is being sorted? :-) · 92ca5455
      Armin Rigo authored
      The invariant checks would break.
      92ca5455
  2. 29 Jul, 2004 12 commits
  3. 28 Jul, 2004 10 commits
  4. 27 Jul, 2004 8 commits
  5. 26 Jul, 2004 8 commits