Issue 2954: [PATCH] Make bisect module functions accept an optional comparison callable (original ) (raw ) Issue2954
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) *
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:34
admin
set
github: 47203
2008-05-30 12:27:21
llucax
set
messages: +
2008-05-30 07:35:49
rhettinger
set
status: open -> closedresolution: duplicatemessages: +
2008-05-23 23:19:36
llucax
set
messages: +
2008-05-23 21:57:58
rhettinger
set
assignee: 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:04
llucax
create