Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit7b69a2a

Browse files
github-actions[bot]mattwang44
authored andcommitted
sync with cpython 9733c965
1 parentc8fcf67 commit7b69a2a

File tree

2 files changed

+180
-142
lines changed

2 files changed

+180
-142
lines changed

‎library/enum.po

Lines changed: 21 additions & 10 deletions
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-21 00:12+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,9 @@ msgstr ""
984984

985985
#:../../library/enum.rst:1128
986986
msgid""
987-
"Private names will be normal attributes in Python 3.10 instead of either an "
987+
"Private names will be normal attributes in Python 3.11 instead of either an "
988988
"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`."
989+
"these names in 3.9and 3.10will issue a :exc:`DeprecationWarning`."
990990
msgstr""
991991

992992
#:../../library/enum.rst:1134
@@ -1003,11 +1003,15 @@ msgid ""
10031003
"uppercase names for members)::"
10041004
msgstr""
10051005

1006-
#:../../library/enum.rst:1157
1006+
#:../../library/enum.rst:1155
1007+
msgid"This behavior is deprecated and will be removed in 3.11."
1008+
msgstr""
1009+
1010+
#:../../library/enum.rst:1161
10071011
msgid"Boolean value of ``Enum`` classes and members"
10081012
msgstr""
10091013

1010-
#:../../library/enum.rst:1159
1014+
#:../../library/enum.rst:1163
10111015
msgid""
10121016
":class:`Enum` members that are mixed with non-:class:`Enum` types (such as :"
10131017
"class:`int`, :class:`str`, etc.) are evaluated according to the mixed-in "
@@ -1016,27 +1020,34 @@ msgid ""
10161020
"to your class::"
10171021
msgstr""
10181022

1019-
#:../../library/enum.rst:1168
1023+
#:../../library/enum.rst:1172
10201024
msgid":class:`Enum` classes always evaluate as :data:`True`."
10211025
msgstr""
10221026

1023-
#:../../library/enum.rst:1172
1027+
#:../../library/enum.rst:1176
10241028
msgid"``Enum`` classes with methods"
10251029
msgstr""
10261030

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

1034-
#:../../library/enum.rst:1185
1038+
#:../../library/enum.rst:1189
10351039
msgid"Combining members of ``Flag``"
10361040
msgstr""
10371041

1038-
#:../../library/enum.rst:1187
1042+
#:../../library/enum.rst:1191
10391043
msgid""
10401044
"If a combination of Flag members is not named, the :func:`repr` will include "
10411045
"all named flags and all named combinations of flags that are in the value::"
10421046
msgstr""
1047+
1048+
#:../../library/enum.rst:1209
1049+
msgid""
1050+
"In 3.11 unnamed combinations of flags will only produce the canonical flag "
1051+
"members (aka single-value flags). So ``Color(7)`` would produce something "
1052+
"like ``<Color.BLUE|GREEN|RED: 7>``."
1053+
msgstr""

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp