0

What is meant by if x is not implemented?

The expression x + y is translated into x.__add__(y).  However, if x hasn't implemented __add__, and x and y are of different t

20th Jul 2018, 11:47 AM
adarsh pandey
adarsh pandey - avatar
1 ответ
+ 1
If x has no function __add__, it uses the __radd__ function of y if you type x + y
20th Jul 2018, 12:36 PM
Matthias
Matthias - avatar