Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > bisect uses __cmp__()?

Thread Tools

bisect uses __cmp__()?

Gary Robinson
Posts: n/a
I'm wondering if bisect.insort is guaranteed to use a __cmp__ method, for
now and for future python versions, if it exists, for the items being

That would be good to know because then you don't have to define __lt__ etc.
if all you care about is being able to use bisect.insort.

If true, I suggest that it might be good to mention the bisect library docs.
In any case, if there is a clear answer to my question I'd appreciate
knowing what it is...


Putting in your email helps it pass through
overzealous spam filters.

Gary Robinson
Transpose, LLC Removed)

Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
python bisect questions Python 8 04-04-2008 09:33 PM
why not bisect options? Robert Bossy Python 7 03-04-2008 05:36 PM
bisect on a list of lists Paulo da Silva Python 9 03-10-2007 04:49 AM
bisect and Queue modules in Python 2.4 SA Trygubenko Python 2 03-16-2006 03:33 PM
plebe comment re [Python-Dev] SF patch 864863: Bisect Cimplementation Python 0 01-16-2004 07:41 PM