You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
leads to the following behaviour when called from python:
# rhs is an instance of RhsArithmetic 1.0+rhs# error: unsupported operand type(s) for +: 'float' and 'RhsArithmetic'1.0.__add__(rhs) # error: NotImplementedrhs.__radd__(1.0) # works as intended
while we'd expect that 1.0 + rhs should fall back to rhs.__radd__(1.0) which is not working.
The implementation as presented here:
leads to the following behaviour when called from python:
while we'd expect that
1.0 + rhs
should fall back torhs.__radd__(1.0)
which is not working.From the disussion in gitter with @kngwyu :
The text was updated successfully, but these errors were encountered: