Dnia 09-01-2008, Śr o godzinie 01:49 +0100, Christian Heimes pisze:

> You could write and implement a PEP about exposing the tp_richcompare
> slot to Python code.

How is it better than separate __eq__, __lt__ etc.? In most cases the
rich comparison starts with dispatching on the operation and treats each
one independently; I suppose only rarely it is forwarded to another
object without looking at the operation. So usually it is less
convenient and slower than separate methods.

-- 
   __("<         Marcin Kowalczyk
   \__/       [EMAIL PROTECTED]
    ^^     http://qrnik.knm.org.pl/~qrczak/

_______________________________________________
Python-3000 mailing list
Python-3000@python.org
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