[Python-Dev] operator precedence of eq, ne, etc, if both object have implementations (original) (raw)

Greg Ewing greg.ewing at canterbury.ac.nz
Thu Sep 24 02:34:40 CEST 2009


Chris Withers wrote:

But this isn't coercion! :-)

The raisin is probably hysterical. Once upon a time, Python had a coerce special method that took care of things like this in a different (and inferior) way. It gradually got replaced by the current scheme, but nobody changed the section heading in the docs.

-- Greg



More information about the Python-Dev mailing list