66# Translators:
77# Alpha Du <[email protected] >, 202188# sunsol s <[email protected] >, 20239- # Freesand Leo <[email protected] >, 2023 9+ # Freesand Leo <[email protected] >, 2024 1010#
1111#, fuzzy
1212msgid ""
@@ -15,7 +15,7 @@ msgstr ""
1515"Report-Msgid-Bugs-To : \n "
1616"POT-Creation-Date : 2024-03-01 14:13+0000\n "
1717"PO-Revision-Date : 2021-06-28 00:57+0000\n "
18- "
Last-Translator :
Freesand Leo <[email protected] >, 2023 \n "
18+ "
Last-Translator :
Freesand Leo <[email protected] >, 2024 \n "
1919"Language-Team : Chinese (China) (https://app.transifex.com/python-doc/teams/5390/zh_CN/)\n "
2020"MIME-Version : 1.0\n "
2121"Content-Type : text/plain; charset=UTF-8\n "
@@ -64,6 +64,11 @@ msgid ""
6464"evaluated in a boolean context. :data:`!NotImplemented` is the sole instance"
6565" of the :data:`types.NotImplementedType` type."
6666msgstr ""
67+ "一个应当由双目运算特殊方法(如 :meth:`~object.__eq__`, :meth:`~object.__lt__`, "
68+ ":meth:`~object.__add__`, :meth:`~object.__rsub__` "
69+ "等)返回的特殊值,用来表明该运算没有针对其他类型的实现;也可由原地双目运算特殊方法(如 :meth:`~object.__imul__`, "
70+ ":meth:`~object.__iand__` 等)出于同样的目的而返回。 它不应在布尔上下文中被求值。 "
71+ ":data:`!NotImplemented` 是 :data:`types.NotImplementedType` 类型的唯一实例。"
6772
6873#: ../../library/constants.rst:40
6974msgid ""
@@ -75,6 +80,10 @@ msgid ""
7580"misleading error message or the :data:`!NotImplemented` value being returned"
7681" to Python code."
7782msgstr ""
83+ "当一个双目(或原地)方法返回 :data:`!NotImplemented` "
84+ "时解释器将尝试对另一种类型(或其他回退操作,具体取决于所用的运算符)的反射操作。 如果所有尝试都返回 "
85+ ":data:`!NotImplemented`,解释器将引发适当的异常。 错误地返回 :data:`!NotImplemented` "
86+ "将导致误导性的错误消息或 :data:`!NotImplemented` 值被返回给 Python 代码。"
7887
7988#: ../../library/constants.rst:47
8089msgid "See :ref:`implementing-the-arithmetic-operations` for examples."
@@ -86,13 +95,17 @@ msgid ""
8695" even though they have similar names and purposes. See "
8796":exc:`NotImplementedError` for details on when to use it."
8897msgstr ""
98+ "``NotImplementedError`` 和 :data:`!NotImplemented` 不可相互替代,即使它们有相似的名称和用途。 请参阅 "
99+ ":exc:`NotImplementedError` 了解其使用细节。"
89100
90101#: ../../library/constants.rst:55
91102msgid ""
92103"Evaluating :data:`!NotImplemented` in a boolean context is deprecated. While"
93104" it currently evaluates as true, it will emit a :exc:`DeprecationWarning`. "
94105"It will raise a :exc:`TypeError` in a future version of Python."
95106msgstr ""
107+ "在布尔上下文件中对 :data:`!NotImplemented` 求值的操作已被弃用。 虽然它目前会被求解为真值,但将同时发出 "
108+ ":exc:`DeprecationWarning`。 它将在未来的 Python 版本中引发 :exc:`TypeError`。"
96109
97110#: ../../library/constants.rst:64
98111msgid ""
0 commit comments