
Jan. 11, 2016
4:53 p.m.
On Tue, Jan 12, 2016 at 3:49 AM, Andrew Barnert <abarnert@yahoo.com> wrote:
On Jan 11, 2016, at 04:02, Ram Rachum <ram@rachum.com> wrote:
I've chosen += and -=, despite the fact they're not set operations, because Python doesn't have __inand__.
For a property that acts like a number, and presumably is implemented as a subclass of int, this seems like a horribly confusing idea.
I would expect it NOT to be a subclass of int, actually - just that it has __int__ (and maybe __index__) to convert it to one. ChrisA