[Python-Dev] Reference implementation for PEP 208 (coercion)
Guido van Rossum
guido@python.org
Wed, 13 Dec 2000 11:45:12 -0500
> Neil Schemenauer writes:
> > Sourceforge unloads are not working. The lastest version of the
> > patch for PEP 208 is here:
> >
> > http://arctrix.com/nas/python/coerce-6.0.diff
> >
> > Operations on instances now call __coerce__ if it exists. I
> > think the patch is now complete. Converting other builtin types
> > to "new style numbers" can be done with a separate patch.
>
> My one concern about this patch is whether the non-commutativity of
> operators is preserved. This issue being important for matrix
> operations (not to be confused with element-wise array operations).
Yes, this is preserved. (I'm spending most of my waking hours
understanding this patch -- it is a true piece of wizardry.)
--Guido van Rossum (home page: http://www.python.org/~guido/)