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 753ef8d commit ed5ae6cCopy full SHA for ed5ae6c
Doc/howto/enum.rst
@@ -1152,6 +1152,14 @@ the following are true:
1152
>>> (Color.RED | Color.GREEN).name
1153
'RED|GREEN'
1154
1155
+ >>> class Perm(IntFlag):
1156
+ ... R = 4
1157
+ ... W = 2
1158
+ ... X = 1
1159
+ ...
1160
+ >>> (Perm.R & Perm.W).name is None # effectively Perm(0)
1161
+ True
1162
+
1163
- multi-bit flags, aka aliases, can be returned from operations::
1164
1165
>>> Color.RED | Color.BLUE
0 commit comments