[Python-ideas] PEP for enum library type?
drekin at gmail.com
drekin at gmail.com
Tue Feb 12 22:19:13 CET 2013
Hello.
> masks/flags I see more as a special case of ints (if you use this you are likely trying to match some API defined in C or C++).
Comfortably encoding flags as int is just a half of FlagsEnum functionality. It has also abstract set semantics, see http://mail.python.org/pipermail/python-ideas/2013-January/019150.html .
Regards, Drekin
More information about the Python-ideas
mailing list