[Python-Dev] Silly little benchmark

Greg Ewing greg@cosc.canterbury.ac.nz
Fri, 13 Jul 2001 16:29:38 +1200 (NZST)

Tim Peters <tim.one@home.com>:

> It's not BINARY_ADD, it's the PyNumber_Add() called by BINARY_ADD, which,
> given two strings, calls binary_op1, which does a few failing tests, then
> calls PyNumber_CoerceEx, which fails quickly enough to coerce, and then
> pokes around a little looking for number methods, and finally says "hmm!
> maybe it's a sequence?".

This seems to contradict what Guido just said about
centralised coercion having been removed. Is one or
the other of us talking nonsense, or do we misunderstand
each other?

Greg Ewing, Computer Science Dept, +--------------------------------------+
University of Canterbury,	   | A citizen of NewZealandCorp, a	  |
Christchurch, New Zealand	   | wholly-owned subsidiary of USA Inc.  |
greg@cosc.canterbury.ac.nz	   +--------------------------------------+