[Python-Dev] enum discussion: can someone please summarize open issues?

Ethan Furman ethan at stoneleaf.us
Sun Apr 28 23:46:23 CEST 2013


On 04/28/2013 02:29 PM, Antoine Pitrou wrote:
> On Sun, 28 Apr 2013 13:02:11 -0700
> Guido van Rossum <guido at python.org> wrote:
>>
>>>    - for the above two, how should they be included/excluded?
>>
>> IMO Everything should be enumerated except
>> (a) things with a __get__() method (i.e. descriptors)
>> (b) __dunder__ names
>
> I think it would be nice to define regular methods on enums.

No worries -- regular methods have a __get__.

--
~Ethan~


More information about the Python-Dev mailing list