[Python-ideas] More friendly access to chmod

Chris Angelico rosuav at gmail.com
Mon Jan 11 11:53:04 EST 2016


On Tue, Jan 12, 2016 at 3:49 AM, Andrew Barnert <abarnert at yahoo.com> wrote:
> On Jan 11, 2016, at 04:02, Ram Rachum <ram at 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


More information about the Python-ideas mailing list