This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author mark.dickinson
Recipients mark.dickinson, zen-xu
Date 2022-03-05.14:59:39
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1646492379.9.0.438963284109.issue46929@roundup.psfhosted.org>
In-reply-to
Content
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.
History
Date User Action Args
2022-03-05 14:59:39mark.dickinsonsetrecipients: + mark.dickinson, zen-xu
2022-03-05 14:59:39mark.dickinsonsetmessageid: <1646492379.9.0.438963284109.issue46929@roundup.psfhosted.org>
2022-03-05 14:59:39mark.dickinsonlinkissue46929 messages
2022-03-05 14:59:39mark.dickinsoncreate