Jan-10-2021, 10:27 AM
(This post was last modified: Jan-10-2021, 10:28 AM by Gribouillis.)
ClownPrinceOfCrime Wrote:for some reason the indentations dont show, so please ignore thatWe will certainly not ignore that. Instead, you will read the BBCode help page to learn how to make the indentation show.
About the issue, how would you invoke your extended
__add__
operator? If you writeobj + other + something_elsein the code, it will call
obj.__add__(other).__add__(something_else)and not
obj.__add__(other, something_else)