Skip to content

Commit 4edb0b4

Browse files
pydoc-zh-tw[bot]github-actions[bot]mattwang44
authored
Sync with CPython 3.9 (#125)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: Matt.Wang <mattwang44@gmail.com>
1 parent de96fc3 commit 4edb0b4

File tree

8 files changed

+1322
-1259
lines changed

8 files changed

+1322
-1259
lines changed

library/collections.abc.po

+107-101
Large diffs are not rendered by default.

library/datetime.po

+566-558
Large diffs are not rendered by default.

library/enum.po

+23-11
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ msgid ""
77
msgstr ""
88
"Project-Id-Version: Python 3.7\n"
99
"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"
1111
"PO-Revision-Date: 2018-05-23 16:01+0000\n"
1212
"Last-Translator: Adrian Liaw <adrianliaw2000@gmail.com>\n"
1313
"Language-Team: Chinese - TAIWAN (https://github.com/python/python-docs-zh-"
@@ -984,9 +984,10 @@ msgstr ""
984984

985985
#: ../../library/enum.rst:1128
986986
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`."
990991
msgstr ""
991992

992993
#: ../../library/enum.rst:1134
@@ -1003,11 +1004,15 @@ msgid ""
10031004
"uppercase names for members)::"
10041005
msgstr ""
10051006

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
10071012
msgid "Boolean value of ``Enum`` classes and members"
10081013
msgstr ""
10091014

1010-
#: ../../library/enum.rst:1159
1015+
#: ../../library/enum.rst:1163
10111016
msgid ""
10121017
":class:`Enum` members that are mixed with non-:class:`Enum` types (such as :"
10131018
"class:`int`, :class:`str`, etc.) are evaluated according to the mixed-in "
@@ -1016,27 +1021,34 @@ msgid ""
10161021
"to your class::"
10171022
msgstr ""
10181023

1019-
#: ../../library/enum.rst:1168
1024+
#: ../../library/enum.rst:1172
10201025
msgid ":class:`Enum` classes always evaluate as :data:`True`."
10211026
msgstr ""
10221027

1023-
#: ../../library/enum.rst:1172
1028+
#: ../../library/enum.rst:1176
10241029
msgid "``Enum`` classes with methods"
10251030
msgstr ""
10261031

1027-
#: ../../library/enum.rst:1174
1032+
#: ../../library/enum.rst:1178
10281033
msgid ""
10291034
"If you give your :class:`Enum` subclass extra methods, like the `Planet`_ "
10301035
"class above, those methods will show up in a :func:`dir` of the member, but "
10311036
"not of the class::"
10321037
msgstr ""
10331038

1034-
#: ../../library/enum.rst:1185
1039+
#: ../../library/enum.rst:1189
10351040
msgid "Combining members of ``Flag``"
10361041
msgstr ""
10371042

1038-
#: ../../library/enum.rst:1187
1043+
#: ../../library/enum.rst:1191
10391044
msgid ""
10401045
"If a combination of Flag members is not named, the :func:`repr` will include "
10411046
"all named flags and all named combinations of flags that are in the value::"
10421047
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

Comments
 (0)