Sep-14-2019, 06:13 AM
(This post was last modified: Sep-14-2019, 06:55 AM by Gribouillis.)
An interesting thin wrapper above bisect is the ActiveState recipe SortedCollection. It does implement the CRUD capabilities that you're talking about. Have a look at it. Also a module such as sortedcontainer could be relevant.