[Python-ideas] IntFlags

Serhiy Storchaka storchaka at gmail.com
Tue Mar 3 18:27:22 CET 2015


On 03.03.15 18:40, Ethan Furman wrote:
> This was in my original Enum code, but stripped out as not being needed at the time.
>
> If there is sufficient interest (and use-cases) I can add it back in.

This would be good. I need IntFlags even more than IntEnum.

I made an implementation based on early implementations of IntEnum, but 
then IntEnum was changed too much and became incompatible with my extension.

IntFlags should be a separate class, IntEnum is good with its restrictions.




More information about the Python-ideas mailing list