Message378555
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. |
|
| Date |
User |
Action |
Args |
| 2020-10-13 11:27:21 | John Belmonte | set | recipients:
+ John Belmonte, ethan.furman, veky, Manjusaka |
| 2020-10-13 11:27:21 | John Belmonte | set | messageid: <1602588441.11.0.141327285902.issue38250@roundup.psfhosted.org> |
| 2020-10-13 11:27:21 | John Belmonte | link | issue38250 messages |
| 2020-10-13 11:27:21 | John Belmonte | create | |
|