[issue44242] enum.IntFlag regression: missing values cause TypeError
Ethan Furman
report at bugs.python.org
Thu May 27 16:16:18 EDT 2021
Ethan Furman <ethan at stoneleaf.us> added the comment:
I'm very much of the practicality beats purity philosophy, so I want to support the OP's flag without making them jump through hoops.
On the flip side, I also appreciate that there are folks that want the extra security...
So here's my plan: remove the creation time check (which will remove the error for the OP), and then add a decorator to the enum module that does that creation time check -- just like the `unique` decorator enforces no aliases.
Now I just need a good name for that decorator:
- complete ?
- exhaustive ?
- all_named ?
- check_for_unnamed ?
----------
assignee: -> ethan.furman
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue44242>
_______________________________________
More information about the Python-bugs-list
mailing list