We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 355d928 commit e415d25Copy full SHA for e415d25
Doc/howto/enum.rst
@@ -1150,6 +1150,14 @@ the following are true:
1150
>>> (Color.RED | Color.GREEN).name
1151
'RED|GREEN'
1152
1153
+ >>> class Perm(IntFlag):
1154
+ ... R = 4
1155
+ ... W = 2
1156
+ ... X = 1
1157
+ ...
1158
+ >>> (Perm.R & Perm.W).name is None # effectively Perm(0)
1159
+ True
1160
+
1161
- multi-bit flags, aka aliases, can be returned from operations::
1162
1163
>>> Color.RED | Color.BLUE
0 commit comments