25 ms·
I just learned that Python allows overriding __isub__ separately from __sub__ and the same for __iadd__ [0]. Really interesting! [0] https://docs.python.org/3
by ThePadawan 7y ago
I just learned that Python allows overriding __isub__ separately from __sub__ and the same for __iadd__ [0].
Really interesting!
[0] https://docs.python.org/3/reference/datamodel.html#object.__isub__ https://docs.python.org/3/reference/datamodel.html#object.__...
- mixedmath 7y agoThank you. I never thought to consider the possibility of making these be separate. Interesting.