Skip to content

Commit 8cd4677

Browse files
sync with cpython 40e9295a
1 parent 8d5fb08 commit 8cd4677

File tree

17 files changed

+450
-429
lines changed

17 files changed

+450
-429
lines changed

library/abc.po

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ msgid ""
99
msgstr ""
1010
"Project-Id-Version: Python 3.12\n"
1111
"Report-Msgid-Bugs-To: \n"
12-
"POT-Creation-Date: 2023-12-04 13:57+0000\n"
12+
"POT-Creation-Date: 2024-03-01 00:03+0000\n"
1313
"PO-Revision-Date: 2022-11-16 03:29+0800\n"
1414
"Last-Translator: Matt Wang <[email protected]>\n"
1515
"Language-Team: Chinese - TAIWAN (https://github.com/python/python-docs-zh-"
@@ -150,12 +150,13 @@ msgstr ""
150150
"__subclasscheck__` 方法中呼叫。)"
151151

152152
#: ../../library/abc.rst:104
153+
#, fuzzy
153154
msgid ""
154-
"This method should return ``True``, ``False`` or ``NotImplemented``. If it "
155-
"returns ``True``, the *subclass* is considered a subclass of this ABC. If it "
156-
"returns ``False``, the *subclass* is not considered a subclass of this ABC, "
157-
"even if it would normally be one. If it returns ``NotImplemented``, the "
158-
"subclass check is continued with the usual mechanism."
155+
"This method should return ``True``, ``False`` or :data:`NotImplemented`. If "
156+
"it returns ``True``, the *subclass* is considered a subclass of this ABC. If "
157+
"it returns ``False``, the *subclass* is not considered a subclass of this "
158+
"ABC, even if it would normally be one. If it returns :data:`!"
159+
"NotImplemented`, the subclass check is continued with the usual mechanism."
159160
msgstr ""
160161
"此方法必須回傳 ``True``、``False`` 或是 ``NotImplemented``。如果回傳 "
161162
"``True``,*subclass* 就會被認為是這個 ABC 的子類別。如果回傳 ``False``,"

library/ast.po

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ msgid ""
66
msgstr ""
77
"Project-Id-Version: Python 3.12\n"
88
"Report-Msgid-Bugs-To: \n"
9-
"POT-Creation-Date: 2023-12-20 00:03+0000\n"
9+
"POT-Creation-Date: 2024-03-01 00:03+0000\n"
1010
"PO-Revision-Date: 2018-05-23 14:38+0000\n"
1111
"Last-Translator: Adrian Liaw <[email protected]>\n"
1212
"Language-Team: Chinese - TAIWAN (https://github.com/python/python-docs-zh-"
@@ -1304,8 +1304,9 @@ msgstr ""
13041304
"支援的最低版本是 ``(3, 4)``;最高的是 ``sys.version_info[0:2]``。"
13051305

13061306
#: ../../library/ast.rst:2188
1307+
#, fuzzy
13071308
msgid ""
1308-
"If source contains a null character ('\\0'), :exc:`ValueError` is raised."
1309+
"If source contains a null character (``\\0``), :exc:`ValueError` is raised."
13091310
msgstr "如果來源包含 null 字元 ('\\0'),則會引發 :exc:`ValueError`。"
13101311

13111312
#: ../../library/ast.rst:2191

library/constants.po

Lines changed: 18 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ msgid ""
99
msgstr ""
1010
"Project-Id-Version: Python 3.12\n"
1111
"Report-Msgid-Bugs-To: \n"
12-
"POT-Creation-Date: 2023-07-24 00:03+0000\n"
12+
"POT-Creation-Date: 2024-03-01 00:03+0000\n"
1313
"PO-Revision-Date: 2021-11-19 23:36+0800\n"
1414
"Last-Translator: Jordan Su <[email protected]>\n"
1515
"Language-Team: Chinese - TAIWAN (https://github.com/python/python-docs-zh-"
@@ -58,15 +58,16 @@ msgstr ""
5858
"實例。"
5959

6060
#: ../../library/constants.rst:30
61+
#, fuzzy
6162
msgid ""
6263
"A special value which should be returned by the binary special methods (e."
6364
"g. :meth:`~object.__eq__`, :meth:`~object.__lt__`, :meth:`~object.__add__`, :"
6465
"meth:`~object.__rsub__`, etc.) to indicate that the operation is not "
6566
"implemented with respect to the other type; may be returned by the in-place "
6667
"binary special methods (e.g. :meth:`~object.__imul__`, :meth:`~object."
6768
"__iand__`, etc.) for the same purpose. It should not be evaluated in a "
68-
"boolean context. ``NotImplemented`` is the sole instance of the :data:`types."
69-
"NotImplementedType` type."
69+
"boolean context. :data:`!NotImplemented` is the sole instance of the :data:"
70+
"`types.NotImplementedType` type."
7071
msgstr ""
7172
"會被二元特殊方法 (binary special methods)(如::meth:`~object.__eq__`、:meth:"
7273
"`~object.__lt__`、:meth:`~object.__add__`、:meth:`~object.__rsub__` 等)所回"
@@ -76,13 +77,15 @@ msgstr ""
7677
"``NotImplemented`` 是型別 :data:`types.NotImplementedType` 的唯一實例。"
7778

7879
#: ../../library/constants.rst:40
80+
#, fuzzy
7981
msgid ""
80-
"When a binary (or in-place) method returns ``NotImplemented`` the "
82+
"When a binary (or in-place) method returns :data:`!NotImplemented` the "
8183
"interpreter will try the reflected operation on the other type (or some "
82-
"other fallback, depending on the operator). If all attempts return "
83-
"``NotImplemented``, the interpreter will raise an appropriate exception. "
84-
"Incorrectly returning ``NotImplemented`` will result in a misleading error "
85-
"message or the ``NotImplemented`` value being returned to Python code."
84+
"other fallback, depending on the operator). If all attempts return :data:`!"
85+
"NotImplemented`, the interpreter will raise an appropriate exception. "
86+
"Incorrectly returning :data:`!NotImplemented` will result in a misleading "
87+
"error message or the :data:`!NotImplemented` value being returned to Python "
88+
"code."
8689
msgstr ""
8790
"當一個二元 (binary) 或原地 (in-place) 方法回傳 ``NotImplemented``,直譯器會嘗"
8891
"試反映該操作到其他型別(或是其他後援 (fallback),取決於是哪種運算子)。如果所"
@@ -95,19 +98,21 @@ msgid "See :ref:`implementing-the-arithmetic-operations` for examples."
9598
msgstr "請參見 :ref:`implementing-the-arithmetic-operations` 以找到更多範例。"
9699

97100
#: ../../library/constants.rst:51
101+
#, fuzzy
98102
msgid ""
99-
"``NotImplementedError`` and ``NotImplemented`` are not interchangeable, even "
100-
"though they have similar names and purposes. See :exc:`NotImplementedError` "
101-
"for details on when to use it."
103+
"``NotImplementedError`` and :data:`!NotImplemented` are not interchangeable, "
104+
"even though they have similar names and purposes. See :exc:"
105+
"`NotImplementedError` for details on when to use it."
102106
msgstr ""
103107
"``NotImplementedError`` 與 ``NotImplemented`` 並不一樣且不可互換。即使它們有"
104108
"相似的名稱與用途。欲知更多如何使用它們的細節,請參見 :exc:"
105109
"`NotImplementedError`。"
106110

107111
#: ../../library/constants.rst:55
112+
#, fuzzy
108113
msgid ""
109-
"Evaluating ``NotImplemented`` in a boolean context is deprecated. While it "
110-
"currently evaluates as true, it will emit a :exc:`DeprecationWarning`. It "
114+
"Evaluating :data:`!NotImplemented` in a boolean context is deprecated. While "
115+
"it currently evaluates as true, it will emit a :exc:`DeprecationWarning`. It "
111116
"will raise a :exc:`TypeError` in a future version of Python."
112117
msgstr ""
113118
"在 boolean(布林)上下文中解讀 ``NotImplemented`` 已經被棄用。雖然目前會被解"

library/exceptions.po

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ msgid ""
88
msgstr ""
99
"Project-Id-Version: Python 3.12\n"
1010
"Report-Msgid-Bugs-To: \n"
11-
"POT-Creation-Date: 2024-02-06 00:03+0000\n"
11+
"POT-Creation-Date: 2024-03-01 00:03+0000\n"
1212
"PO-Revision-Date: 2018-05-23 16:01+0000\n"
1313
"Last-Translator: Adrian Liaw <[email protected]>\n"
1414
"Language-Team: Chinese - TAIWAN (https://github.com/python/python-docs-zh-"
@@ -379,9 +379,9 @@ msgstr ""
379379

380380
#: ../../library/exceptions.rst:338
381381
msgid ""
382-
"``NotImplementedError`` and ``NotImplemented`` are not interchangeable, even "
383-
"though they have similar names and purposes. See :data:`NotImplemented` for "
384-
"details on when to use it."
382+
"``NotImplementedError`` and :data:`NotImplemented` are not interchangeable, "
383+
"even though they have similar names and purposes. See :data:`!"
384+
"NotImplemented` for details on when to use it."
385385
msgstr ""
386386

387387
#: ../../library/exceptions.rst:347

library/importlib.po

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ msgid ""
77
msgstr ""
88
"Project-Id-Version: Python 3.12\n"
99
"Report-Msgid-Bugs-To: \n"
10-
"POT-Creation-Date: 2023-09-14 00:03+0000\n"
10+
"POT-Creation-Date: 2024-03-01 00:03+0000\n"
1111
"PO-Revision-Date: 2018-05-23 16:04+0000\n"
1212
"Last-Translator: Adrian Liaw <[email protected]>\n"
1313
"Language-Team: Chinese - TAIWAN (https://github.com/python/python-docs-zh-"
@@ -400,7 +400,7 @@ msgid ""
400400
msgstr ""
401401

402402
#: ../../library/importlib.rst:267
403-
msgid "Returns ``None`` when called instead of ``NotImplemented``."
403+
msgid "Returns ``None`` when called instead of :data:`NotImplemented`."
404404
msgstr ""
405405

406406
#: ../../library/importlib.rst:273

0 commit comments

Comments
 (0)