Message411319
Creating one's own int Flag type doesn't work properly with regards to the bitwise operators:
class MyIntFlag(int, Flag):
ONE = 1
TWO = 2
FOUR = 4
MyIntFlag.ONE | MyIntFlag.TWO
# <MyIntFlag.ONE|TWO: 3>
MyIntFlag.ONE | 2
# 3 |
|
Date |
User |
Action |
Args |
2022-01-23 00:37:08 | ethan.furman | set | recipients:
+ ethan.furman |
2022-01-23 00:37:08 | ethan.furman | set | messageid: <1642898228.67.0.336074003438.issue46477@roundup.psfhosted.org> |
2022-01-23 00:37:08 | ethan.furman | link | issue46477 messages |
2022-01-23 00:37:08 | ethan.furman | create | |
|