Vedran Čačić added the comment: So, in fact, your Flags are simply an overlayed namespace over int (the way to give some ints sticky names), and any int is accessible from any Flags, no matter whether it has a name or not? I must say that to me it seems radically different than (Int)Enum philosophy.
class MyIntEnum(IntEnum): A = 1 >>> MyIntEnum(0) ValueError: 0 is not a valid MyIntEnum So, flags are not enums, nor they share the same principles (identity, exclusiveness). Why are they in the enum module at all? ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue23591> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com