7
7
msgstr ""
8
8
"Project-Id-Version : Python 3.10\n "
9
9
"Report-Msgid-Bugs-To : \n "
10
- "POT-Creation-Date : 2021-10-26 16:47 +0000\n "
10
+ "POT-Creation-Date : 2021-11-23 00:09 +0000\n "
11
11
"PO-Revision-Date : 2015-12-09 17:51+0000\n "
12
12
"Last-Translator : Liang-Bo Wang <me@liang2.tw>\n "
13
13
"Language-Team : Chinese - TAIWAN (https://github.com/python/python-docs-zh- "
@@ -28,8 +28,8 @@ msgstr ""
28
28
29
29
#: ../../c-api/iter.rst:12
30
30
msgid ""
31
- "Return non-zero if the object *o* supports the iterator protocol, and ``0`` "
32
- "otherwise. This function always succeeds."
31
+ "Return non-zero if the object *o* can be safely passed to :c:func: "
32
+ "`PyIter_Next`, and ``0`` otherwise. This function always succeeds."
33
33
msgstr ""
34
34
35
35
#: ../../c-api/iter.rst:17
@@ -40,38 +40,39 @@ msgstr ""
40
40
41
41
#: ../../c-api/iter.rst:24
42
42
msgid ""
43
- "Return the next value from the iteration *o*. The object must be an "
44
- "iterator (it is up to the caller to check this). If there are no remaining "
45
- "values, returns ``NULL`` with no exception set. If an error occurs while "
46
- "retrieving the item, returns ``NULL`` and passes along the exception."
43
+ "Return the next value from the iterator *o*. The object must be an iterator "
44
+ "according to :c:func:`PyIter_Check` (it is up to the caller to check this). "
45
+ "If there are no remaining values, returns ``NULL`` with no exception set. If "
46
+ "an error occurs while retrieving the item, returns ``NULL`` and passes along "
47
+ "the exception."
47
48
msgstr ""
48
49
49
- #: ../../c-api/iter.rst:29
50
+ #: ../../c-api/iter.rst:30
50
51
msgid ""
51
52
"To write a loop which iterates over an iterator, the C code should look "
52
53
"something like this::"
53
54
msgstr ""
54
55
55
- #: ../../c-api/iter.rst:58
56
+ #: ../../c-api/iter.rst:59
56
57
msgid ""
57
58
"The enum value used to represent different results of :c:func:`PyIter_Send`."
58
59
msgstr ""
59
60
60
- #: ../../c-api/iter.rst:65
61
+ #: ../../c-api/iter.rst:66
61
62
msgid "Sends the *arg* value into the iterator *iter*. Returns:"
62
63
msgstr ""
63
64
64
- #: ../../c-api/iter.rst:67
65
+ #: ../../c-api/iter.rst:68
65
66
msgid ""
66
67
"``PYGEN_RETURN`` if iterator returns. Return value is returned via *presult*."
67
68
msgstr ""
68
69
69
- #: ../../c-api/iter.rst:68
70
+ #: ../../c-api/iter.rst:69
70
71
msgid ""
71
72
"``PYGEN_NEXT`` if iterator yields. Yielded value is returned via *presult*."
72
73
msgstr ""
73
74
74
- #: ../../c-api/iter.rst:69
75
+ #: ../../c-api/iter.rst:70
75
76
msgid ""
76
77
"``PYGEN_ERROR`` if iterator has raised and exception. *presult* is set to "
77
78
"``NULL``."
0 commit comments