[issue23591] enum: Add Flags and IntFlags

Ethan Furman report at bugs.python.org
Tue Aug 30 12:43:53 EDT 2016


Ethan Furman added the comment:

Patch includes tests, but not docs.

>From a previous comment:
-----------------------
> As it stands, Weird(7) would be <Weird.A|BC: 7>, and if A was not
> defined an error would be raised.

Actually, it would be <Weird.BC|A: 7> since BC has a higher value than A.

----------
stage:  -> patch review
Added file: http://bugs.python.org/file44278/issue23591.stoneleaf.02.patch

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue23591>
_______________________________________


More information about the Python-bugs-list mailing list