[Python-ideas] IntFlags

Chris Angelico rosuav at gmail.com
Tue Mar 3 19:48:51 CET 2015


On Wed, Mar 4, 2015 at 4:27 AM, Serhiy Storchaka <storchaka at gmail.com> wrote:
> IntFlags should be a separate class, IntEnum is good with its restrictions.

Also, some operations that make sense for an IntEnum don't make sense
for IntFlags (or FlagEnum or whatever it gets called), such as
greater-than/less-than comparisons. Definitely a separate class IMO.

ChrisA


More information about the Python-ideas mailing list