Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit0cded0f

Browse files
pydoc-zh-tw[bot]github-actions[bot]mattwang44
authored andcommitted
Sync with CPython 3.10 (#148)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>Co-authored-by: Matt.Wang <mattwang44@gmail.com>
1 parente0ec4a4 commit0cded0f

File tree

12 files changed

+1474
-1471
lines changed

12 files changed

+1474
-1471
lines changed

‎c-api/iter.po

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ msgid ""
77
msgstr ""
88
"Project-Id-Version:Python 3.10\n"
99
"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"
1111
"PO-Revision-Date:2015-12-09 17:51+0000\n"
1212
"Last-Translator:Liang-Bo Wang <me@liang2.tw>\n"
1313
"Language-Team:Chinese - TAIWAN (https://github.com/python/python-docs-zh-"
@@ -28,8 +28,8 @@ msgstr ""
2828

2929
#:../../c-api/iter.rst:12
3030
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."
3333
msgstr""
3434

3535
#:../../c-api/iter.rst:17
@@ -40,38 +40,39 @@ msgstr ""
4040

4141
#:../../c-api/iter.rst:24
4242
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."
4748
msgstr""
4849

49-
#:../../c-api/iter.rst:29
50+
#:../../c-api/iter.rst:30
5051
msgid""
5152
"To write a loop which iterates over an iterator, the C code should look "
5253
"something like this::"
5354
msgstr""
5455

55-
#:../../c-api/iter.rst:58
56+
#:../../c-api/iter.rst:59
5657
msgid""
5758
"The enum value used to represent different results of :c:func:`PyIter_Send`."
5859
msgstr""
5960

60-
#:../../c-api/iter.rst:65
61+
#:../../c-api/iter.rst:66
6162
msgid"Sends the *arg* value into the iterator *iter*. Returns:"
6263
msgstr""
6364

64-
#:../../c-api/iter.rst:67
65+
#:../../c-api/iter.rst:68
6566
msgid""
6667
"``PYGEN_RETURN`` if iterator returns. Return value is returned via *presult*."
6768
msgstr""
6869

69-
#:../../c-api/iter.rst:68
70+
#:../../c-api/iter.rst:69
7071
msgid""
7172
"``PYGEN_NEXT`` if iterator yields. Yielded value is returned via *presult*."
7273
msgstr""
7374

74-
#:../../c-api/iter.rst:69
75+
#:../../c-api/iter.rst:70
7576
msgid""
7677
"``PYGEN_ERROR`` if iterator has raised and exception. *presult* is set to "
7778
"``NULL``."

‎c-api/typeobj.po

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ msgid ""
77
msgstr ""
88
"Project-Id-Version:Python 3.10\n"
99
"Report-Msgid-Bugs-To:\n"
10-
"POT-Creation-Date:2021-10-29 00:08+0000\n"
10+
"POT-Creation-Date:2021-11-23 00:09+0000\n"
1111
"PO-Revision-Date:2018-05-23 14:33+0000\n"
1212
"Last-Translator:Adrian Liaw <adrianliaw2000@gmail.com>\n"
1313
"Language-Team:Chinese - TAIWAN (https://github.com/python/python-docs-zh-"
@@ -2369,9 +2369,9 @@ msgstr ""
23692369

23702370
#:../../c-api/typeobj.rst:1523
23712371
msgid""
2372-
"An optional pointer to a function that returns an iterator for the object. "
2373-
"Its presence normally signals that the instances of this type areiterable"
2374-
"(although sequences may be iterable without this function)."
2372+
"An optional pointer to a function that returns an:term:`iterator` for the "
2373+
"object.Its presence normally signals that the instances of this type are:"
2374+
"term:`iterable`(although sequences may be iterable without this function)."
23752375
msgstr""
23762376

23772377
#:../../c-api/typeobj.rst:1527
@@ -2380,8 +2380,8 @@ msgstr ""
23802380

23812381
#:../../c-api/typeobj.rst:1538
23822382
msgid""
2383-
"An optional pointer to a function that returns the next item in aniterator."
2384-
"The signature is::"
2383+
"An optional pointer to a function that returns the next item in an:term:"
2384+
"`iterator`.The signature is::"
23852385
msgstr""
23862386

23872387
#:../../c-api/typeobj.rst:1543
@@ -3267,8 +3267,8 @@ msgstr ""
32673267

32683268
#:../../c-api/typeobj.rst:2431
32693269
msgid""
3270-
"The returned object must be an iterator, i.e. :c:func:`PyIter_Check` must "
3271-
"return ``1`` for it."
3270+
"The returned object must be an:term:`iterator`, i.e. :c:func:`PyIter_Check` "
3271+
"mustreturn ``1`` for it."
32723272
msgstr""
32733273

32743274
#:../../c-api/typeobj.rst:2434

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp