Chris Withers schrieb:
> Jared Flatow wrote:
>> This might help:
>> 
>> http://mail.python.org/pipermail/python-dev/2008-June/080111.html
>> 
>> Here is the most relevant part (quoting Guido):
>> 
>>  > Does it help if I tell you that for "x <binop> y" we always try
>>  > x.__binop__(y) before trying y.__reverse_binop__(x), *except* in the
>>  > case where y is an instance of a subclass of the class of x?
> 
> Okay, but does that count as a pronouncement that should go across all 
> versions and platforms?

Yes. Unfortunately it's just documented for the other binops, but not
for the comparisons; the note in the docs should be copied to the
respective section.

Georg

_______________________________________________
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Reply via email to