Skip to content

Sync with CPython 3.9 #125

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 7 commits into from
Oct 26, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
208 changes: 107 additions & 101 deletions library/collections.abc.po

Large diffs are not rendered by default.

1,124 changes: 566 additions & 558 deletions library/datetime.po

Large diffs are not rendered by default.

34 changes: 23 additions & 11 deletions library/enum.po
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: Python 3.7\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2021-09-13 00:11+0000\n"
"POT-Creation-Date: 2021-10-22 00:14+0000\n"
"PO-Revision-Date: 2018-05-23 16:01+0000\n"
"Last-Translator: Adrian Liaw <adrianliaw2000@gmail.com>\n"
"Language-Team: Chinese - TAIWAN (https://github.com/python/python-docs-zh-"
Expand Down Expand Up @@ -984,9 +984,10 @@ msgstr ""

#: ../../library/enum.rst:1128
msgid ""
"Private names will be normal attributes in Python 3.10 instead of either an "
"error or a member (depending on if the name ends with an underscore). Using "
"these names in 3.9 will issue a :exc:`DeprecationWarning`."
":ref:`Private names <private-name-mangling>` will be normal attributes in "
"Python 3.11 instead of either an error or a member (depending on if the name "
"ends with an underscore). Using these names in 3.9 and 3.10 will issue a :"
"exc:`DeprecationWarning`."
msgstr ""

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

#: ../../library/enum.rst:1157
#: ../../library/enum.rst:1155
msgid "This behavior is deprecated and will be removed in 3.12."
msgstr ""

#: ../../library/enum.rst:1161
msgid "Boolean value of ``Enum`` classes and members"
msgstr ""

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

#: ../../library/enum.rst:1168
#: ../../library/enum.rst:1172
msgid ":class:`Enum` classes always evaluate as :data:`True`."
msgstr ""

#: ../../library/enum.rst:1172
#: ../../library/enum.rst:1176
msgid "``Enum`` classes with methods"
msgstr ""

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

#: ../../library/enum.rst:1185
#: ../../library/enum.rst:1189
msgid "Combining members of ``Flag``"
msgstr ""

#: ../../library/enum.rst:1187
#: ../../library/enum.rst:1191
msgid ""
"If a combination of Flag members is not named, the :func:`repr` will include "
"all named flags and all named combinations of flags that are in the value::"
msgstr ""

#: ../../library/enum.rst:1209
msgid ""
"In 3.11 unnamed combinations of flags will only produce the canonical flag "
"members (aka single-value flags). So ``Color(7)`` would produce something "
"like ``<Color.BLUE|GREEN|RED: 7>``."
msgstr ""
Loading