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
Returning exception in call_or_unsupported should be extracted to a separate method.
Also, use it to replace incorrect exceptions in objfloat.rs (and others).
This should fix wrong exceptions, such as
>>>>> 1.1 - "a"
Traceback (most recent call last):
File <unknown>, line 0, in <module>
TypeError: Cannot add RefCell { value: [PyObj float 1.1] } and RefCell { value: [PyObj str "a"] }
should be
>>> 1.1 - "a"
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
TypeError: unsupported operand type(s) for -: 'float' and 'str'
The text was updated successfully, but these errors were encountered:
The type error being raised in float_sub is wrong anyway? It should raise NotImplemented, which call_or_supported should turn into the correct type error.
I don't know if this is true in every case, but it feels like it probably is.
Returning exception in
call_or_unsupported
should be extracted to a separate method.Also, use it to replace incorrect exceptions in objfloat.rs (and others).
This should fix wrong exceptions, such as
should be
The text was updated successfully, but these errors were encountered: