At Friday 25/8/2006 02:18, [EMAIL PROTECTED] wrote:

> x+y get translated to x.__add__(y)

No that's not true at all. The self argument to __add__ ends
up being the Add instance, not the Item instance:

z=x+y  is translated to z.__add__(y)

Well, I deleted my response after I noticed that Simon Forman has done it very well. Just a note: print z after this line and compare with self inside __init__ if you're still not convinced.



Gabriel Genellina
Softlab SRL

        
        
                
__________________________________________________
Preguntá. Respondé. Descubrí.
Todo lo que querías saber, y lo que ni imaginabas,
está en Yahoo! Respuestas (Beta).
¡Probalo ya! http://www.yahoo.com.ar/respuestas

-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to