10000
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 d33fae7 commit 9733c96Copy full SHA for 9733c96
Doc/library/enum.rst
@@ -1125,9 +1125,9 @@ and raise an error if the two do not match::
1125
_Private__names
1126
"""""""""""""""
1127
1128
-Private names will be normal attributes in Python 3.10 instead of either an error
+Private names will be normal attributes in Python 3.11 instead of either an error
1129
or a member (depending on if the name ends with an underscore). Using these names
1130
-in 3.9 will issue a :exc:`DeprecationWarning`.
+in 3.9 and 3.10 will issue a :exc:`DeprecationWarning`.
1131
1132
1133
``Enum`` member type
@@ -1150,6 +1150,10 @@ all-uppercase names for members)::
1150
>>> FieldTypes.size.value
1151
2
1152
1153
+.. note::
1154
+
1155
+ This behavior is deprecated and will be removed in 3.11.
1156
1157
.. versionchanged:: 3.5
1158
1159
@@ -1200,3 +1204,8 @@ all named flags and all named combinations of flags that are in the value::
1200
1204
>>> Color(7) # not named combination
1201
1205
<Color.CYAN|MAGENTA|BLUE|YELLOW|GREEN|RED: 7>
1202
1206
1207
1208
1209
+ In 3.11 unnamed combinations of flags will only produce the canonical flag
1210
+ members (aka single-value flags). So ``Color(7)`` would produce something
1211
+ like ``<Color.BLUE|GREEN|RED: 7>``.