11# SOME DESCRIPTIVE TITLE.
2- # Copyright (C) 2001-2023 , Python Software Foundation
2+ # Copyright (C) 2001-2024 , Python Software Foundation
33# This file is distributed under the same license as the Python package.
44# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
55#
66# Translators:
77# Alpha Du <[email protected] >, 20218- # Bryan不可思议, 2023
98# sunsol s <[email protected] >, 2023109# Freesand Leo <[email protected] >, 20231110#
@@ -14,7 +13,7 @@ msgid ""
1413msgstr ""
1514"Project-Id-Version : Python 3.12\n "
1615"Report-Msgid-Bugs-To : \n "
17- "POT-Creation-Date : 2023-07-29 02:08 +0000\n "
16+ "POT-Creation-Date : 2024-03-01 14:13 +0000\n "
1817"PO-Revision-Date : 2021-06-28 00:57+0000\n "
1918"
Last-Translator :
Freesand Leo <[email protected] >, 2023\n "
2019"Language-Team : Chinese (China) (https://app.transifex.com/python-doc/teams/5390/zh_CN/)\n "
@@ -62,49 +61,38 @@ msgid ""
6261"implemented with respect to the other type; may be returned by the in-place "
6362"binary special methods (e.g. :meth:`~object.__imul__`, "
6463":meth:`~object.__iand__`, etc.) for the same purpose. It should not be "
65- "evaluated in a boolean context. `` NotImplemented`` is the sole instance of "
66- "the :data:`types.NotImplementedType` type."
64+ "evaluated in a boolean context. :data:`! NotImplemented` is the sole instance"
65+ " of the :data:`types.NotImplementedType` type."
6766msgstr ""
68- "一个应当由双目运算特殊方法(如 :meth:`~object.__eq__`, :meth:`~object.__lt__`, "
69- ":meth:`~object.__add__`, :meth:`~object.__rsub__` "
70- "等)返回的特殊值,以表明该运算没有针对其他类型的实现;也可由原地双目运算特殊方法(如 :meth:`~object.__imul__`, "
71- ":meth:`~object.__iand__` 等)出于同样的目的而返回。 ``NotImplemented`` 是 "
72- ":data:`types.NotImplementedType` 类型的唯一实例。"
7367
7468#: ../../library/constants.rst:40
7569msgid ""
76- "When a binary (or in-place) method returns `` NotImplemented` ` the "
70+ "When a binary (or in-place) method returns :data:`! NotImplemented` the "
7771"interpreter will try the reflected operation on the other type (or some "
7872"other fallback, depending on the operator). If all attempts return "
79- "``NotImplemented``, the interpreter will raise an appropriate exception. "
80- "Incorrectly returning ``NotImplemented`` will result in a misleading error "
81- "message or the ``NotImplemented`` value being returned to Python code."
73+ ":data:`!NotImplemented`, the interpreter will raise an appropriate "
74+ "exception. Incorrectly returning :data:`!NotImplemented` will result in a "
75+ "misleading error message or the :data:`!NotImplemented` value being returned"
76+ " to Python code."
8277msgstr ""
83- "当二进制(或就地)方法返回 ``NotImplemented`` 时,解释器将尝试对另一种类型(或其他一些回滚操作,取决于运算符)的反射操作。 "
84- "如果所有尝试都返回 ``NotImplemented`` ,则解释器将引发适当的异常。 错误返回的 ``NotImplemented`` "
85- "将导致误导性错误消息或返回到Python代码中的 ``NotImplemented`` 值。"
8678
8779#: ../../library/constants.rst:47
8880msgid "See :ref:`implementing-the-arithmetic-operations` for examples."
8981msgstr "参见 :ref:`implementing-the-arithmetic-operations` 为例。"
9082
9183#: ../../library/constants.rst:51
9284msgid ""
93- "``NotImplementedError`` and `` NotImplemented`` are not interchangeable, even "
94- " though they have similar names and purposes. See :exc:`NotImplementedError` "
95- " for details on when to use it."
85+ "``NotImplementedError`` and :data:`! NotImplemented` are not interchangeable,"
86+ " even though they have similar names and purposes. See "
87+ ":exc:`NotImplementedError` for details on when to use it."
9688msgstr ""
97- "``NotImplementedError`` 和 ``NotImplemented`` 不可互换,即使它们有相似的名称和用途。 "
98- "有关何时使用它的详细信息,请参阅 :exc:`NotImplementedError`。"
9989
10090#: ../../library/constants.rst:55
10191msgid ""
102- "Evaluating `` NotImplemented`` in a boolean context is deprecated. While it "
103- "currently evaluates as true, it will emit a :exc:`DeprecationWarning`. It "
104- "will raise a :exc:`TypeError` in a future version of Python."
92+ "Evaluating :data:`! NotImplemented` in a boolean context is deprecated. While"
93+ " it currently evaluates as true, it will emit a :exc:`DeprecationWarning`. "
94+ "It will raise a :exc:`TypeError` in a future version of Python."
10595msgstr ""
106- "作为布尔值来解读 ``NotImplemented`` 已被弃用。 虽然它目前会被解读为真值,但将同时发出 "
107- ":exc:`DeprecationWarning`。 它将在未来的 Python 版本中引发 :exc:`TypeError`。"
10896
10997#: ../../library/constants.rst:64
11098msgid ""
0 commit comments