Message414580
This is the intended behaviour. See the docs here: https://docs.python.org/3/reference/datamodel.html#object.__ror__
> These functions are only called if the left operand does not support the corresponding operation and the operands are of different types.
There's a further explanation in a footnote:
> For operands of the same type, it is assumed that if the non-reflected method – such as __add__() – fails then the overall operation is not supported, which is why the reflected method is not called. |
|
Date |
User |
Action |
Args |
2022-03-05 14:59:39 | mark.dickinson | set | recipients:
+ mark.dickinson, zen-xu |
2022-03-05 14:59:39 | mark.dickinson | set | messageid: <1646492379.9.0.438963284109.issue46929@roundup.psfhosted.org> |
2022-03-05 14:59:39 | mark.dickinson | link | issue46929 messages |
2022-03-05 14:59:39 | mark.dickinson | create | |
|