Paul Sokolovsky eb84a830df py/runtime: Implement dispatch for "reverse op" special methods.
If, for class X, X.__add__(Y) doesn't exist (or returns NotImplemented),
try Y.__radd__(X) instead.

This patch could be simpler, but requires undoing operand swap and
operation switch to get non-confusing error message in case __radd__
doesn't exist.
2017-09-10 17:05:57 +03:00
..
2017-08-13 22:52:33 +10:00
2017-05-29 11:36:05 +03:00
2017-07-18 11:57:39 +10:00
2017-07-18 11:57:39 +10:00
2017-09-01 15:22:25 +10:00
2017-07-18 11:57:39 +10:00