On 23/08/07, Guido van Rossum <[EMAIL PROTECTED]> wrote:
> Coerce is definitely dead.
>
> cmp() is still alive and __cmp__ is used to overload it; on the one
> hand I'd like to get rid of it but OTOH it's occasionally useful. So
> it'll probably stay. However, to overload <, == etc. you *have* to
> overload __lt__ and friends.

Thanks. In particular, thanks for the comment about overloading < etc
- that's what I was looking at, and I was wondering about using
__cmp__ to save some boilerplate. You saved me some headaches!

Paul.
_______________________________________________
Python-3000 mailing list
[email protected]
http://mail.python.org/mailman/listinfo/python-3000
Unsubscribe: 
http://mail.python.org/mailman/options/python-3000/archive%40mail-archive.com

Reply via email to