4 ms·
Earlier post: https://twitter.com/raymondh/status/1131103570856632321 https://twitter.com/raymondh/status/1131103570856632321
by raymondh 7y ago
Earlier post: https://twitter.com/raymondh/status/1131103570856632321 https://twitter.com/raymondh/status/1131103570856632321
- ThePadawan 7y agoI 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.