File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change 1
- {"translation" : " 81.75%" , "updated_at" : " 2025-06-27T16:58:53Z " }
1
+ {"translation" : " 81.75%" , "updated_at" : " 2025-06-28T01:21:04Z " }
Original file line number Diff line number Diff line change 5
5
#
6
6
# Translators:
7
7
# Rafael Fontenelle <rffontenelle@gmail.com>, 2025
8
+ # Freesand Leo <yuqinju@163.com>, 2025
8
9
#
9
10
#, fuzzy
10
11
msgid ""
@@ -13,7 +14,7 @@ msgstr ""
13
14
"Report-Msgid-Bugs-To : \n "
14
15
"POT-Creation-Date : 2025-06-27 14:55+0000\n "
15
16
"PO-Revision-Date : 2025-05-08 05:09+0000\n "
16
- "Last-Translator : Rafael Fontenelle <rffontenelle@gmail .com>, 2025\n "
17
+ "Last-Translator : Freesand Leo <yuqinju@163 .com>, 2025\n "
17
18
"Language-Team : Chinese (China) (https://app.transifex.com/python-doc/teams/5390/zh_CN/)\n "
18
19
"MIME-Version : 1.0\n "
19
20
"Content-Type : text/plain; charset=UTF-8\n "
@@ -1028,6 +1029,10 @@ msgid ""
1028
1029
"will also be called by Python's garbage collector when the generator is "
1029
1030
"garbage-collected."
1030
1031
msgstr ""
1032
+ ":meth:`~generator.close` 会向生成器发送一个 :exc:`GeneratorExit` 异常来终结迭代。 "
1033
+ "当接收到此异常时,生成器的代码必须引发 :exc:`GeneratorExit` 或者 "
1034
+ ":exc:`StopIteration`;捕获此异常并作任何其他操作都是非法的并会触发 :exc:`RuntimeError`。 "
1035
+ ":meth:`~generator.close` 还会在生成器被作为垃圾回收时由 Python 的垃圾回收器调用。"
1031
1036
1032
1037
#: ../../howto/functional.rst:613
1033
1038
msgid ""
You can’t perform that action at this time.
0 commit comments