File tree 1 file changed +11
-2
lines changed
1 file changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -1125,9 +1125,9 @@ and raise an error if the two do not match::
1125
1125
_Private__names
1126
1126
"""""""""""""""
1127
1127
1128
- Private names will be normal attributes in Python 3.10 instead of either an error
1128
+ Private names will be normal attributes in Python 3.11 instead of either an error
1129
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 `.
1130
+ in 3.9 and 3.10 will issue a :exc: `DeprecationWarning `.
1131
1131
1132
1132
1133
1133
``Enum `` member type
@@ -1150,6 +1150,10 @@ all-uppercase names for members)::
1150
1150
>>> FieldTypes.size.value
1151
1151
2
1152
1152
1153
+ .. note ::
1154
+
1155
+ This behavior is deprecated and will be removed in 3.11.
1156
+
1153
1157
.. versionchanged :: 3.5
1154
1158
1155
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
+ .. note ::
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> ``.
You can’t perform that action at this time.
0 commit comments