[Python-ideas] Should nested classes in an Enum be Enum members?

Ethan Furman ethan at stoneleaf.us
Wed Jun 27 15:24:03 EDT 2018

On 06/27/2018 11:52 AM, Guido van Rossum wrote:

> Sounds to me really strange that the nested class would become a member. Probably because everything becomes a member
> unless it's a function (maybe decorated)?

Pretty much.  __dunders__, _sunders_, and descriptors do not get transformed.  Everything else does.


More information about the Python-ideas mailing list