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 34ace5b commit 6421db1Copy full SHA for 6421db1
Doc/howto/enum.rst
@@ -1129,6 +1129,14 @@ the following are true:
1129
>>> (Color.RED | Color.GREEN).name
1130
'RED|GREEN'
1131
1132
+ >>> class Perm(IntFlag):
1133
+ ... R = 4
1134
+ ... W = 2
1135
+ ... X = 1
1136
+ ...
1137
+ >>> (Perm.R & Perm.W).name is None # effectively Perm(0)
1138
+ True
1139
+
1140
- multi-bit flags, aka aliases, can be returned from operations::
1141
1142
>>> Color.RED | Color.BLUE
0 commit comments