File tree Expand file tree Collapse file tree 3 files changed +10
-5
lines changed Expand file tree Collapse file tree 3 files changed +10
-5
lines changed Original file line number Diff line number Diff line change 1
- {"translation" : " 80.82%" , "updated_at" : " 2025-01-25T08 :55:40Z " }
1
+ {"translation" : " 80.82%" , "updated_at" : " 2025-01-25T09 :55:48Z " }
Original file line number Diff line number Diff line change @@ -3596,7 +3596,7 @@ msgid ""
3596
3596
"for ``None``. This reads like plain English in code and avoids confusion "
3597
3597
"with other objects that may have boolean values that evaluate to false."
3598
3598
msgstr ""
3599
- "正如 :pep:`8` 所建议的,标识号测试是检查 ``None`` 的推荐方式。 "
3599
+ "正如 :pep:`8` 所建议的,标识测试是检查 ``None`` 的推荐方式。 "
3600
3600
"这样的代码读起来就像直白的英语并可避免与具有结果为假的布尔值的对象相混淆。"
3601
3601
3602
3602
#: ../../faq/programming.rst:1912
@@ -3606,6 +3606,8 @@ msgid ""
3606
3606
"guaranteed to be distinct from other objects. For example, here is how to "
3607
3607
"implement a method that behaves like :meth:`dict.pop`:"
3608
3608
msgstr ""
3609
+ "当 ``None`` 是一个有效的输入值时检查可选参数会有点麻烦。 在这些情况下,你可以创建一个保证与其他对象不同的单例哨兵对象。 "
3610
+ "例如,以下代码演示了如何实现一个行为与 :meth:`dict.pop` 类似的方法:"
3609
3611
3610
3612
#: ../../faq/programming.rst:1917
3611
3613
msgid ""
@@ -3636,7 +3638,7 @@ msgid ""
3636
3638
"Container implementations sometimes need to augment equality tests with "
3637
3639
"identity tests. This prevents the code from being confused by objects such "
3638
3640
"as ``float('NaN')`` that are not equal to themselves."
3639
- msgstr ""
3641
+ msgstr "容器的实现有时需要用标识测试来增强相等性测试。 这样可以防止代码被 ``float('NaN')`` 这类不等于自身的对象所干扰。 "
3640
3642
3641
3643
#: ../../faq/programming.rst:1934
3642
3644
msgid ""
Original file line number Diff line number Diff line change 12
12
# WH-2099 <wh2099@outlook.com>, 2022
13
13
# LeeWendao <LeeWendao@outlook.com>, 2022
14
14
# 乐成 王, 2023
15
- # Freesand Leo <yuqinju@163.com>, 2024
15
+ # Freesand Leo <yuqinju@163.com>, 2025
16
16
#
17
17
#, fuzzy
18
18
msgid ""
@@ -21,7 +21,7 @@ msgstr ""
21
21
"Report-Msgid-Bugs-To : \n "
22
22
"POT-Creation-Date : 2025-01-24 14:16+0000\n "
23
23
"PO-Revision-Date : 2021-06-28 00:47+0000\n "
24
- "Last-Translator : Freesand Leo <yuqinju@163.com>, 2024 \n "
24
+ "Last-Translator : Freesand Leo <yuqinju@163.com>, 2025 \n "
25
25
"Language-Team : Chinese (China) (https://app.transifex.com/python-doc/teams/5390/zh_CN/)\n "
26
26
"MIME-Version : 1.0\n "
27
27
"Content-Type : text/plain; charset=UTF-8\n "
@@ -252,6 +252,9 @@ msgid ""
252
252
"awaitable returned by :meth:`~object.__anext__`, it picks up where it left "
253
253
<
5FEE
td data-grid-cell-id="diff-2539c6b20421f5d0be4fec9359547b04caba81863ce3a99d945bcb5680bb8716-253-253-2" data-line-anchor="diff-2539c6b20421f5d0be4fec9359547b04caba81863ce3a99d945bcb5680bb8716R253" data-selected="false" role="gridcell" style="background-color:var(--bgColor-default);padding-right:24px" tabindex="-1" valign="top" class="focusable-grid-cell diff-text-cell right-side-diff-cell left-side">"off. See :pep:`492` and :pep:`525`."
254
254
msgstr ""
255
+ "每个 :keyword:`yield` 会临时暂停处理过程,记住执行状态(包括局部变量和挂起的 try 语句)。 当 *异步生成器迭代器* 通过 "
256
+ ":meth:`~object.__anext__` 所返回的另一个可等待对象有效地恢复时,它会从离开位置恢复处理过程。 参见 :pep:`492` 和 "
257
+ ":pep:`525`。"
255
258
256
259
#: ../../glossary.rst:117
257
260
msgid "asynchronous iterable"
You can’t perform that action at this time.
0 commit comments