[Patches] [ python-Patches-1462228 ] custom comparison function for bisect module

SourceForge.net noreply at sourceforge.net
Tue Apr 4 00:39:25 CEST 2006


Patches item #1462228, was opened at 2006-03-31 16:31
Message generated for change (Comment added) made by splitscreen
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=1462228&group_id=5470

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Library (Lib)
Group: Python 2.5
Status: Open
Resolution: None
Priority: 5
Submitted By: Matt Fleming (splitscreen)
Assigned to: Raymond Hettinger (rhettinger)
Summary: custom comparison function for bisect module

Initial Comment:
This is a patch for the feature requets #1451588

The patch is from the current trunk, r43488.

The patch provides the bisect module (both the python
and C implementation) with an option for a custom
comparison function.

If not custom comparison function is provided the
standard cmp() built-in function it used.

Please review, any comments welcome.

matt

----------------------------------------------------------------------

>Comment By: Matt Fleming (splitscreen)
Date: 2006-04-03 22:39

Message:
Logged In: YES 
user_id=1126061

Jonathan Joseph kindly pointed out some redundant if
statements to me.

I've updated the patch with a newer version.

Matt

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=1462228&group_id=5470


More information about the Patches mailing list