[Python-Dev] Enumeration items: `type(EnumClass.item) is EnumClass` ?

Steven D'Aprano steve at pearwood.info
Mon Apr 29 21:20:38 CEST 2013

On 30/04/13 04:29, Guido van Rossum wrote:
> You are too verbose. I have already said what I needed to say.

Sorry about that, sometimes I do go on and on. Let me be more terse.

When it comes to enums, I believe that violating Liskov is a feature, not a bug.

Also, I understand that both Scala and Kotlin allow subclassing enums in exactly the way we're talking about.


More information about the Python-Dev mailing list