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

Guido van Rossum guido at python.org
Mon Apr 29 18:35:19 CEST 2013


On Mon, Apr 29, 2013 at 5:24 AM, Eli Bendersky <eliben at gmail.com> wrote:
> Thanks for the summary. One issue I don't see addressed here is
> int-compatibility. Am I correct to assume that nothing changes w.r.t. that,
> and that an IntEnum subclass of Enum will be provided which is
> isinstance(integer)? Does that become straightforward by nature of enum
> values being the type of their enumerations?

Correct, we'll still need an IntEnum subclass of Enum. I have no idea
how this works out in the implementation, sorry.

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


More information about the Python-Dev mailing list