[issue43300] "bisect" module should support reverse-sorted sequences

2021-03-04 Thread Raymond Hettinger
Raymond Hettinger added the comment: Thank you for the suggestion, but am going close this for the reasons mentioned above. -- resolution: -> rejected stage: -> resolved status: open -> closed ___ Python tracker

[issue43300] "bisect" module should support reverse-sorted sequences

2021-02-26 Thread Terry J. Reedy
Terry J. Reedy added the comment: I think that we should just document the use of the new key parameter (and otherwise do nothing). -- nosy: +terry.reedy ___ Python tracker _

[issue43300] "bisect" module should support reverse-sorted sequences

2021-02-22 Thread Raymond Hettinger
Raymond Hettinger added the comment: I prefer option 5 and leaving the module as-is. The bisect module api is slice oriented and, in general, people have a hard time reasoning about slices for reverse ordered sequences. Even the forward ordered API is a bit awkward so that we had to docume

[issue43300] "bisect" module should support reverse-sorted sequences

2021-02-22 Thread James Murphy
New submission from James Murphy : Currently, the bisect module's functions all assume the user is maintaining a sorted list/sequence in increasing order. From the docs: "This module provides support for maintaining a list in sorted order without having to sort the list after each insertion"