[Python-Dev] AutoNumber Enum

Ivan Levkivskyi levkivskyi at gmail.com
Wed Jun 29 16:49:19 EDT 2016


> Presumably you want a bitfield enum, and those should descend from
IntEnum.

Yes, and probably having an AutoNumberIntEnum would indeed be too much
magic in one place.
Anyway, it is easy to implement bitfield IntEnum without magic.

To be clear, I like the Ethan's original proposal.

--
Ivan



> TBH I'd prefer the AutoNumberEnum *not* have this feature; it's already a
> little too magical for my tastes.
>
>
> */arry*
>
> _______________________________________________
> Python-Dev mailing list
> Python-Dev at python.org
> https://mail.python.org/mailman/listinfo/python-dev
> Unsubscribe:
> https://mail.python.org/mailman/options/python-dev/levkivskyi%40gmail.com
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-dev/attachments/20160629/b6c25b32/attachment-0001.html>


More information about the Python-Dev mailing list