[ python-Feature Requests-1462228 ] custom comparison function for bisect module

SourceForge.net noreply at sourceforge.net
Thu Feb 8 01:13:39 CET 2007


Feature Requests item #1462228, was opened at 2006-03-31 11:31
Message generated for change (Settings changed) made by rhettinger
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=355470&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: None
>Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
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 17: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=355470&aid=1462228&group_id=5470


More information about the Python-bugs-list mailing list