Why does str not have a __radd__ method?

Ethan Furman ethan at stoneleaf.us
Wed Aug 13 13:27:08 EDT 2014


On 08/13/2014 09:00 AM, Steven D'Aprano wrote:
>
> What is the rationale for str not having __radd__ method?

At a guess I would say because string only knows how to add itself to other strings, so __add__ is sufficient.

--
~Ethan~



More information about the Python-list mailing list