Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Remove the ++ and –- operators. Parent comment
Because __iadd__ automatically delegates to __add__. For immutable objects that's the best you can do, so there's no reason to write both.
There are no comments on this comment yet.
Because __iadd__ automatically delegates to __add__. For immutable objects that's the best you can do, so there's no reason to write both.