Author John Belmonte
Recipients John Belmonte, Manjusaka, ethan.furman, veky
Date 2020-10-13.11:27:21
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1602588441.11.0.141327285902.issue38250@roundup.psfhosted.org>
In-reply-to
Content
I agree that a bit and one-bit flag are the same.

> only 'x' was in 'xyz', not 'xy

I don't understand the comparison, because str 'a in b' tests if 'a' is a subsequence of 'b'.  It is not a subset operation ('xz' in 'xyz' is false).

I can understand the argument that Flag has a subset operator (currently __contains__), and given that one-bit flags can be used freely with the subset operator, there is no reason to add a bit membership operator.

However, since flag values are arguably a set of enabled bits, I think the use of `in` for subset is a confusing departure from the `set` API.
History
Date User Action Args
2020-10-13 11:27:21John Belmontesetrecipients: + John Belmonte, ethan.furman, veky, Manjusaka
2020-10-13 11:27:21John Belmontesetmessageid: <1602588441.11.0.141327285902.issue38250@roundup.psfhosted.org>
2020-10-13 11:27:21John Belmontelinkissue38250 messages
2020-10-13 11:27:21John Belmontecreate