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
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