7
7
msgstr ""
8
8
"Project-Id-Version : Python 3.7\n "
9
9
"Report-Msgid-Bugs-To : \n "
10
- "POT-Creation-Date : 2021-09-13 00:11 +0000\n "
10
+ "POT-Creation-Date : 2021-10-22 00:14 +0000\n "
11
11
"PO-Revision-Date : 2018-05-23 16:01+0000\n "
12
12
"Last-Translator : Adrian Liaw <adrianliaw2000@gmail.com>\n "
13
13
"Language-Team : Chinese - TAIWAN (https://github.com/python/python-docs-zh- "
@@ -984,9 +984,10 @@ msgstr ""
984
984
985
985
#: ../../library/enum.rst:1128
986
986
msgid ""
987
- "Private names will be normal attributes in Python 3.10 instead of either an "
988
- "error or a member (depending on if the name ends with an underscore). Using "
989
- "these names in 3.9 will issue a :exc:`DeprecationWarning`."
987
+ ":ref:`Private names <private-name-mangling>` will be normal attributes in "
988
+ "Python 3.11 instead of either an error or a member (depending on if the name "
989
+ "ends with an underscore). Using these names in 3.9 and 3.10 will issue a :"
990
+ "exc:`DeprecationWarning`."
990
991
msgstr ""
991
992
992
993
#: ../../library/enum.rst:1134
@@ -1003,11 +1004,15 @@ msgid ""
1003
1004
"uppercase names for members)::"
1004
1005
msgstr ""
1005
1006
1006
- #: ../../library/enum.rst:1157
1007
+ #: ../../library/enum.rst:1155
1008
+ msgid "This behavior is deprecated and will be removed in 3.12."
1009
+ msgstr ""
1010
+
1011
+ #: ../../library/enum.rst:1161
1007
1012
msgid "Boolean value of ``Enum`` classes and members"
1008
1013
msgstr ""
1009
1014
1010
- #: ../../library/enum.rst:1159
1015
+ #: ../../library/enum.rst:1163
1011
1016
msgid ""
1012
1017
":class:`Enum` members that are mixed with non-:class:`Enum` types (such as :"
1013
1018
"class:`int`, :class:`str`, etc.) are evaluated according to the mixed-in "
@@ -1016,27 +1021,34 @@ msgid ""
1016
1021
"to your class::"
1017
1022
msgstr ""
1018
1023
1019
- #: ../../library/enum.rst:1168
1024
+ #: ../../library/enum.rst:1172
1020
1025
msgid ":class:`Enum` classes always evaluate as :data:`True`."
1021
1026
msgstr ""
1022
1027
1023
- #: ../../library/enum.rst:1172
1028
+ #: ../../library/enum.rst:1176
1024
1029
msgid "``Enum`` classes with methods"
1025
1030
msgstr ""
1026
1031
1027
- #: ../../library/enum.rst:1174
1032
+ #: ../../library/enum.rst:1178
1028
1033
msgid ""
1029
1034
"If you give your :class:`Enum` subclass extra methods, like the `Planet`_ "
1030
1035
"class above, those methods will show up in a :func:`dir` of the member, but "
1031
1036
"not of the class::"
1032
1037
msgstr ""
1033
1038
1034
- #: ../../library/enum.rst:1185
1039
+ #: ../../library/enum.rst:1189
1035
1040
msgid "Combining members of ``Flag``"
1036
1041
msgstr ""
1037
1042
1038
- #: ../../library/enum.rst:1187
1043
+ #: ../../library/enum.rst:1191
1039
1044
msgid ""
1040
1045
"If a combination of Flag members is not named, the :func:`repr` will include "
1041
1046
"all named flags and all named combinations of flags that are in the value::"
1042
1047
msgstr ""
1048
+
1049
+ #: ../../library/enum.rst:1209
1050
+ msgid ""
1051
+ "In 3.11 unnamed combinations of flags will only produce the canonical flag "
1052
+ "members (aka single-value flags). So ``Color(7)`` would produce something "
1053
+ "like ``<Color.BLUE|GREEN|RED: 7>``."
1054
+ msgstr ""
0 commit comments