[Python-Dev] PEP 435 -- Adding an Enum type to the Python standard library

Guido van Rossum guido at python.org
Fri Apr 12 18:34:34 CEST 2013

On Fri, Apr 12, 2013 at 8:02 AM, Barry Warsaw <barry at python.org> wrote:
> Interesting.  I'm having a hard time articulating why, but NotImplementedError
> just feels more right to me in this case.

To me, NotImplementedError means that a subclass didn't implement
something it should have implemented. But that's not the case here, is
it? It's not a bug in the class, it's a bug in the call site. So I
agree it ought to be TypeError.

--Guido van Rossum (python.org/~guido)

More information about the Python-Dev mailing list