[issue37229] bisect: Allow a custom compare function

G report at bugs.python.org
Tue Jun 11 06:36:53 EDT 2019


New submission from G <gpery at protonmail.com>:

All of bisect's functions (insort_{left,right}, bisect_{left,right}) can only use comparison of objects via __lt__.
They should support providing a custom comparison function.

----------
components: Library (Lib)
messages: 345216
nosy: gpery
priority: normal
severity: normal
status: open
title: bisect: Allow a custom compare function
type: behavior

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue37229>
_______________________________________


More information about the Python-bugs-list mailing list