This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: [PATCH] Make bisect module functions accept an optional comparison callable
Type: enhancement Stage:
Components: Library (Lib) Versions: Python 3.0, Python 2.6
process
Status: closed Resolution: duplicate
Dependencies: Superseder:
Assigned To: rhettinger Nosy List: llucax, rhettinger
Priority: normal Keywords: patch

Created on 2008-05-23 21:53 by llucax, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
bisect.py.cmp.patch llucax, 2008-05-23 21:52 add optional parameter cmp to customize the way items are compared
Messages (4)
msg67271 - (view) Author: Leandro Lucarella (llucax) Date: 2008-05-23 21:52
bisect module functions should accept a comparison callable to customize
the way items are compared to do the binary search.

Attached is a patch to the Python implementation of bisect module.
msg67273 - (view) Author: Leandro Lucarella (llucax) Date: 2008-05-23 23:19
A key argument (like list.sort) can be useful too (I can make a patch if
you like).
msg67524 - (view) Author: Raymond Hettinger (rhettinger) * (Python committer) Date: 2008-05-30 07:35
Thanks for the submission.  This duplicated some previous feature 
requests which were discussed and ultimately rejected.
msg67532 - (view) Author: Leandro Lucarella (llucax) Date: 2008-05-30 12:27
Is there any way to find the duplicated issue to see the resolution and
find out why it has been rejected?

Thank you.
History
Date User Action Args
2022-04-11 14:56:34adminsetgithub: 47203
2008-05-30 12:27:21llucaxsetmessages: + msg67532
2008-05-30 07:35:49rhettingersetstatus: open -> closed
resolution: duplicate
messages: + msg67524
2008-05-23 23:19:36llucaxsetmessages: + msg67273
2008-05-23 21:57:58rhettingersetassignee: rhettinger
nosy: + rhettinger
versions: + Python 3.0, - Python 2.5, Python 2.4, Python 2.3, Python 2.2.3, Python 2.2.2, Python 2.2.1, Python 2.2, Python 2.1.2, Python 2.1.1
2008-05-23 21:53:04llucaxcreate