bisect uses __cmp__()?

G

Gary Robinson

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

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

--Gary

--
Putting http://wecanstopspam.org in your email helps it pass through
overzealous spam filters.

Gary Robinson
CEO
Transpose, LLC
(e-mail address removed)
207-942-3463
http://www.transpose.com
http://radio.weblogs.com/0101454
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,581
Members
45,056
Latest member
GlycogenSupporthealth

Latest Threads

Top