A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2001-May/014902.html below:

[Python-Dev] Comparison speed

[Python-Dev] Comparison speed [Python-Dev] Comparison speedGuido van Rossum guido@digicool.com
Fri, 18 May 2001 12:57:34 -0400
> According to the CVS log, this implementation of do_cmp was installed
> in object.c 2.105, by gvanrossum, on 2001/01/17. What was the specific
> rationale for doing do_cmp in that order?

You can ask me directly, loewis. :-)

I believe that my thinking at the time was that tp_compare should only
be used as a final fallback, just before comparing by address.  This
was consistent with my desire to completely get rid of tp_compare.

But until that is done, I now agree that it makes more sense to try
tp_compare first when a three-way-compare is requested -- especially
in the light of sequence comparison.

--Guido van Rossum (home page: http://www.python.org/~guido/)



RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4