Optimizing inplace magic methods via self return

后端 未结 0 705
感动是毒
感动是毒 2021-01-07 02:47

I was developing a class for my own use, and I was overloading addition via __add__ and __iadd__.

However, as I learned from this question a

相关标签:
回答
  • 消灭零回复
提交回复
热议问题