Vedran Čačić <ved...@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 <rep...@bugs.python.org> <https://bugs.python.org/issue38250> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com