Repository navigation
Expand file tree
/
Copy pathiter.po
More file actions
110 lines (98 loc) · 4.42 KB
/
Copy pathiter.po
File metadata and controls
110 lines (98 loc) · 4.42 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
# SOME DESCRIPTIVE TITLE.
# Copyright (C) 2001 Python Software Foundation
# This file is distributed under the same license as the Python package.
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
#
# Translators:
# python-doc bot, 2025
# Inada Naoki <songofacandy@gmail.com>, 2026
#
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: Python 3.15\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2026-10-25 17:19+0000\n"
"PO-Revision-Date: 2025-09-16 00:00+0000\n"
"Last-Translator: Inada Naoki <songofacandy@gmail.com>, 2026\n"
"Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/"
"ja/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Language: ja\n"
"Plural-Forms: nplurals=1; plural=0;\n"
#: ../../c-api/iter.rst:6
msgid "Iterator Protocol"
msgstr "イテレータプロトコル (iterator protocol)"
#: ../../c-api/iter.rst:8
msgid "There are two functions specifically for working with iterators."
msgstr "イテレータを扱うための固有の関数は二つあります。"
msgid ""
"Return non-zero if the object *o* can be safely passed "
"to :c:func:`PyIter_NextItem` and ``0`` otherwise. This function always "
"succeeds."
msgstr ""
"オブジェクト *o* を :c:func:`PyIter_NextItem` に安全に渡せる場合はゼロ以外"
"を、そうでなければ ``0`` を返します。\n"
"この関数は常に成功します。"
msgid ""
"Return non-zero if the object *o* provides the :class:`AsyncIterator` "
"protocol, and ``0`` otherwise. This function always succeeds."
msgstr ""
"オブジェクト *o* が :class:`AsyncIterator` プロトコルを提供する場合はゼロ以外"
"を、そうでなければ ``0`` を返します。\n"
"この関数は常に成功します。"
msgid ""
"Return ``1`` and set *item* to a :term:`strong reference` of the next value "
"of the iterator *iter* on success. Return ``0`` and set *item* to ``NULL`` "
"if there are no remaining values. Return ``-1``, set *item* to ``NULL`` and "
"set an exception on error."
msgstr ""
"成功すると、*item* にイテレータ *iter* の次の値への :term:`強参照 <strong "
"reference>` を設定し、``1`` を返します。\n"
"残りの値がなければ、*item* に ``NULL`` を設定し、``0`` を返します。\n"
"エラーの場合は、*item* に ``NULL`` を設定し、例外を設定して ``-1`` を返しま"
"す。"
msgid ""
"This is an older version of :c:func:`!PyIter_NextItem`, which is retained "
"for backwards compatibility. Prefer :c:func:`PyIter_NextItem`."
msgstr ""
"これは :c:func:`!PyIter_NextItem` の古い版で、後方互換性のために残されていま"
"す。\n"
":c:func:`PyIter_NextItem` を使ってください。"
msgid ""
"Return the next value from the iterator *o*. The object must be an iterator "
"according to :c:func:`PyIter_Check` (it is up to the caller to check this). "
"If there are no remaining values, returns ``NULL`` with no exception set. If "
"an error occurs while retrieving the item, returns ``NULL`` and passes along "
"the exception."
msgstr ""
"イテレータ *o* から次の値を返します。\n"
"このオブジェクトは :c:func:`PyIter_Check` で判定されるイテレータでなければな"
"りません (確認は呼び出し側の責任です)。\n"
"残りの値がなければ、例外を設定せずに ``NULL`` を返します。\n"
"要素の取得中にエラーが起きると、``NULL`` を返して例外を引き継ぎます。"
msgid ""
"The enum value used to represent different results of :c:func:`PyIter_Send`."
msgstr ":c:func:`PyIter_Send` の各種の結果を表す列挙値です。"
msgid "Sends the *arg* value into the iterator *iter*. Returns:"
msgstr ""
"値 *arg* をイテレータ *iter* に送ります。\n"
"戻り値は次のとおりです:"
msgid ""
"``PYGEN_RETURN`` if iterator returns. Return value is returned via *presult*."
msgstr ""
"イテレータが return した場合は ``PYGEN_RETURN``。\n"
"戻り値は *presult* を通じて返します。"
msgid ""
"``PYGEN_NEXT`` if iterator yields. Yielded value is returned via *presult*."
msgstr ""
"イテレータが yield した場合は ``PYGEN_NEXT``。\n"
"yield した値は *presult* を通じて返します。"
msgid ""
"``PYGEN_ERROR`` if iterator has raised an exception. *presult* is set to "
"``NULL``."
msgstr ""
"イテレータが例外を送出した場合は ``PYGEN_ERROR``。\n"
"*presult* は ``NULL`` になります。"