[issue38250] enum.Flag should be more set-like
Vedran Čačić
report at bugs.python.org
Thu Mar 26 00:47:33 EDT 2020
Vedran Čačić <vedgar at gmail.com> added the comment:
1. +0 _if_ the implementation is easy to explain. If backward compatibility is an issue, we can always add a property:
for flag in flags.set:
(though set might imply unorderedness:)
2. -1. Guido said long ago that all lens should be O(1).
(Of course, if you do make it O(1), I have no objection.)
3. +1, absolutely.
----------
nosy: +veky
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue38250>
_______________________________________
More information about the Python-bugs-list
mailing list