3 ms·
When you use the + operator in Python, it already calls __add__ (two underscores on each side) on the left operand with the right operand. Like x + y is x.__add
by travisjungroth 5y ago
When you use the + operator in Python, it already calls __add__ (two underscores on each side) on the left operand with the right operand. Like x + y is x.__add__(y). https://docs.python.org/3/reference/datamodel.html#object.__add__ https://docs.python.org/3/reference/datamodel.html#object.__...