[Python-Dev] Problems with new-style classes and coercion

Guido van Rossum guido@python.org
Mon, 22 Apr 2002 14:54:34 -0400


> > This means that the + operator
> > doesn't call __coerce__.  For some reason, coerce() still calls it;
> > maybe that was a mistake.
> 
> Maybe; maybe not. Maybe it would be a good idea to issue a warning when
> a new-style class defines __coerce__.

I think I agree.  I'll get to this before 2.3 is released. ;-)

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