@@ -13,7 +13,7 @@ msgid ""
1313msgstr ""
1414"Project-Id-Version : Python 3.13\n "
1515"Report-Msgid-Bugs-To : \n "
16- "POT-Creation-Date : 2024-08-16 14:15 +0000\n "
16+ "POT-Creation-Date : 2024-08-30 14:16 +0000\n "
1717"PO-Revision-Date : 2021-06-28 00:50+0000\n "
1818"Last-Translator : tomo, 2023\n "
1919"Language-Team : Japanese (https://app.transifex.com/python-doc/teams/5390/ "
@@ -59,38 +59,30 @@ msgstr ""
5959"を返します。この関数は常に成功します。"
6060
6161#: ../../c-api/tuple.rst:36
62- msgid "Return a new tuple object of size *len*, or ``NULL`` on failure."
62+ msgid ""
63+ "Return a new tuple object of size *len*, or ``NULL`` with an exception set "
64+ "on failure."
6365msgstr ""
64- "サイズが *len* の新たなタプルオブジェクトを返します。失敗すると ``NULL`` を返"
65- "します。"
6666
67- #: ../../c-api/tuple.rst:41
67+ #: ../../c-api/tuple.rst:42
6868msgid ""
69- "Return a new tuple object of size *n*, or ``NULL`` on failure. The tuple "
70- "values are initialized to the subsequent *n* C arguments pointing to Python "
71- "objects. ``PyTuple_Pack(2, a, b)`` is equivalent to "
69+ "Return a new tuple object of size *n*, or ``NULL`` with an exception set on "
70+ "failure. The tuple values are initialized to the subsequent *n* C arguments "
71+ "pointing to Python objects. ``PyTuple_Pack(2, a, b)`` is equivalent to "
7272"``Py_BuildValue(\" (OO)\" , a, b)``."
7373msgstr ""
74- "サイズが *n* の新たなタプルオブジェクトを返します。失敗すると ``NULL`` を返し"
75- "ます。タプルの値は後続の *n* 個の Python オブジェクトを指す C 引数になりま"
76- "す。``PyTuple_Pack(2, a, b)`` は ``Py_BuildValue(\" (OO)\" , a, b)`` と同じで"
77- "す。"
7874
79- #: ../../c-api/tuple.rst:48
80- msgid "Take a pointer to a tuple object, and return the size of that tuple."
75+ #: ../../c-api/tuple.rst:50
76+ msgid ""
77+ "Take a pointer to a tuple object, and return the size of that tuple. On "
78+ "error, return ``-1`` and with an exception set."
8179msgstr ""
82- "タプルオブジェクトへのポインタを引数にとり、そのタプルのサイズを返します。"
8380
84- #: ../../c-api/tuple.rst:53
85- msgid ""
86- "Return the size of the tuple *p*, which must be non-``NULL`` and point to a "
87- "tuple; no error checking is performed."
81+ #: ../../c-api/tuple.rst:56
82+ msgid "Like :c:func:`PyTuple_Size`, but without error checking."
8883msgstr ""
89- "タプル *p* のサイズを返しますが、*p* は非 ``NULL`` でなくてはならず、タプルオ"
90- "ブジェクトを指していなければなりません; この関数はエラーチェックを行いませ"
91- "ん。"
9284
93- #: ../../c-api/tuple.rst:59
85+ #: ../../c-api/tuple.rst:61
9486msgid ""
9587"Return the object at position *pos* in the tuple pointed to by *p*. If "
9688"*pos* is negative or out of bounds, return ``NULL`` and set an :exc:"
@@ -100,28 +92,33 @@ msgstr ""
10092"*pos* が負であるか範囲を超えている場合、 ``NULL`` を返して :exc:`IndexError` "
10193"例外をセットします。"
10294
103- #: ../../c-api/tuple.rst:62
95+ #: ../../c-api/tuple.rst:64
10496msgid ""
10597"The returned reference is borrowed from the tuple *p* (that is: it is only "
10698"valid as long as you hold a reference to *p*). To get a :term:`strong "
10799"reference`, use :c:func:`Py_NewRef(PyTuple_GetItem(...)) <Py_NewRef>` or :c:"
108100"func:`PySequence_GetItem`."
109101msgstr ""
110102
111- #: ../../c-api/tuple.rst:71
103+ #: ../../c-api/tuple.rst:73
112104msgid "Like :c:func:`PyTuple_GetItem`, but does no checking of its arguments."
113105msgstr ""
114106":c:func:`PyTuple_GetItem` に似ていますが、引数に対するエラーチェックを行いま"
115107"せん。"
116108
117- #: ../../c-api/tuple.rst:76
109+ #: ../../c-api/tuple.rst:78
118110msgid ""
119111"Return the slice of the tuple pointed to by *p* between *low* and *high*, or "
120- "``NULL`` on failure. This is the equivalent of the Python expression "
121- "``p[low:high]``. Indexing from the end of the tuple is not supported."
112+ "``NULL`` with an exception set on failure."
122113msgstr ""
123114
124- #: ../../c-api/tuple.rst:83
115+ #: ../../c-api/tuple.rst:81
116+ msgid ""
117+ "This is the equivalent of the Python expression ``p[low:high]``. Indexing "
118+ "from the end of the tuple is not supported."
119+ msgstr ""
120+
121+ #: ../../c-api/tuple.rst:87
125122msgid ""
126123"Insert a reference to object *o* at position *pos* of the tuple pointed to "
127124"by *p*. Return ``0`` on success. If *pos* is out of bounds, return ``-1`` "
@@ -131,29 +128,30 @@ msgstr ""
131128"ます。成功すれば ``0`` を返します。 *pos* が範囲を超えている場合、 ``-1`` を"
132129"返して :exc:`IndexError` 例外をセットします。"
133130
134- #: ../../c-api/tuple.rst:89
131+ #: ../../c-api/tuple.rst:93
135132msgid ""
136133"This function \" steals\" a reference to *o* and discards a reference to an "
137134"item already in the tuple at the affected position."
138135msgstr ""
139136"この関数は *o* への参照を \" 盗み取り\" ます。また、変更先のインデクスにすでに"
140137"別の要素が入っている場合、その要素に対する参照を放棄します。"
141138
142- #: ../../c-api/tuple.rst:95
139+ #: ../../c-api/tuple.rst:99
143140msgid ""
144141"Like :c:func:`PyTuple_SetItem`, but does no error checking, and should "
145142"*only* be used to fill in brand new tuples."
146143msgstr ""
147144":c:func:`PyTuple_SetItem` に似ていますが、エラーチェックを行わず、新たなタプ"
148145"ルに値を入れるとき *以外には使ってはなりません* 。"
149146
150- #: ../../c-api/tuple.rst:98 ../../c-api/tuple.rst:209 ../../c-api/tuple.rst:227
147+ #: ../../c-api/tuple.rst:102 ../../c-api/tuple.rst:217
148+ #: ../../c-api/tuple.rst:235
151149msgid ""
152150"Bounds checking is performed as an assertion if Python is built in :ref:"
153151"`debug mode <debug-build>` or :option:`with assertions <--with-assertions>`."
154152msgstr ""
155153
156- #: ../../c-api/tuple.rst:103
154+ #: ../../c-api/tuple.rst:107
157155msgid ""
158156"This function \" steals\" a reference to *o*, and, unlike :c:func:"
159157"`PyTuple_SetItem`, does *not* discard a reference to any item that is being "
@@ -164,7 +162,7 @@ msgstr ""
164162"トへの参照を放棄 *しません* ; その結果、タプル中の位置 *pos* で参照されていた"
165163"オブジェクトがメモリリークを引き起こします。"
166164
167- #: ../../c-api/tuple.rst:111
165+ #: ../../c-api/tuple.rst:115
168166msgid ""
169167"Can be used to resize a tuple. *newsize* will be the new length of the "
170168"tuple. Because tuples are *supposed* to be immutable, this should only be "
@@ -188,11 +186,11 @@ msgstr ""
188186"ます。失敗すると ``-1`` を返し、 ``*p`` を ``NULL`` に設定して、 :exc:"
189187"`MemoryError` または :exc:`SystemError` を送出します。"
190188
191- #: ../../c-api/tuple.rst:126
189+ #: ../../c-api/tuple.rst:130
192190msgid "Struct Sequence Objects"
193191msgstr "Struct Sequence オブジェクト"
194192
195- #: ../../c-api/tuple.rst:128
193+ #: ../../c-api/tuple.rst:132
196194msgid ""
197195"Struct sequence objects are the C equivalent of :func:`~collections."
198196"namedtuple` objects, i.e. a sequence whose items can also be accessed "
@@ -204,7 +202,7 @@ msgstr ""
204202"きるシーケンスです。 struct sequence を生成するには、まず特定のstruct "
205203"sequence 型を生成しなければなりません。"
206204
207- #: ../../c-api/tuple.rst:135
205+ #: ../../c-api/tuple.rst:139
208206msgid ""
209207"Create a new struct sequence type from the data in *desc*, described below. "
210208"Instances of the resulting type can be created with :c:func:"
@@ -213,40 +211,42 @@ msgstr ""
213211"後述の *desc* 中のデータから新しい struct sequence 型を生成します。返される型"
214212"のインスタンスは :c:func:`PyStructSequence_New` で生成できます。"
215213
216- #: ../../c-api/tuple.rst:141
214+ #: ../../c-api/tuple.rst:142 ../../c-api/tuple.rst:210
215+ msgid "Return ``NULL`` with an exception set on failure."
216+ msgstr ""
217+
218+ #: ../../c-api/tuple.rst:147
217219msgid "Initializes a struct sequence type *type* from *desc* in place."
218220msgstr ""
219221"struct sequence 型である *type* を *desc* をもとにその場で初期化します。"
220222
221- #: ../../c-api/tuple.rst:146
223+ #: ../../c-api/tuple.rst:152
222224msgid ""
223- "The same as `` PyStructSequence_InitType` `, but returns ``0`` on success and "
224- "``-1`` on failure."
225+ "Like :c:func:` PyStructSequence_InitType`, but returns ``0`` on success and "
226+ "``-1`` with an exception set on failure."
225227msgstr ""
226- "``PyStructSequence_InitType`` と同じですが、成功した場合には ``0`` を、失敗し"
227- "た場合には ``-1`` を返します。"
228228
229- #: ../../c-api/tuple.rst:154
229+ #: ../../c-api/tuple.rst:160
230230msgid "Contains the meta information of a struct sequence type to create."
231231msgstr "生成するstruct sequence 型のメタデータを保持します。"
232232
233- #: ../../c-api/tuple.rst:158
233+ #: ../../c-api/tuple.rst:164
234234msgid "Name of the struct sequence type."
235235msgstr ""
236236
237- #: ../../c-api/tuple.rst:162
237+ #: ../../c-api/tuple.rst:168
238238msgid "Pointer to docstring for the type or ``NULL`` to omit."
239239msgstr ""
240240
241- #: ../../c-api/tuple.rst:166
241+ #: ../../c-api/tuple.rst:172
242242msgid "Pointer to ``NULL``-terminated array with field names of the new type."
243243msgstr ""
244244
245- #: ../../c-api/tuple.rst:170
245+ #: ../../c-api/tuple.rst:176
246246msgid "Number of fields visible to the Python side (if used as tuple)."
247247msgstr ""
248248
249- #: ../../c-api/tuple.rst:175
249+ #: ../../c-api/tuple.rst:181
250250msgid ""
251251"Describes a field of a struct sequence. As a struct sequence is modeled as a "
252252"tuple, all fields are typed as :c:expr:`PyObject*`. The index in the :c:"
@@ -255,46 +255,46 @@ msgid ""
255255"described."
256256msgstr ""
257257
258- #: ../../c-api/tuple.rst:183
258+ #: ../../c-api/tuple.rst:189
259259msgid ""
260260"Name for the field or ``NULL`` to end the list of named fields, set to :c:"
261261"data:`PyStructSequence_UnnamedField` to leave unnamed."
262262msgstr ""
263263
264- #: ../../c-api/tuple.rst:188
264+ #: ../../c-api/tuple.rst:194
265265msgid "Field docstring or ``NULL`` to omit."
266266msgstr ""
267267
268- #: ../../c-api/tuple.rst:193
268+ #: ../../c-api/tuple.rst:199
269269msgid "Special value for a field name to leave it unnamed."
270270msgstr "フィールド名を名前がないままするための特殊な値。"
271271
272- #: ../../c-api/tuple.rst:195
272+ #: ../../c-api/tuple.rst:201
273273msgid "The type was changed from ``char *``."
274274msgstr "型が ``char *`` から変更されました。"
275275
276- #: ../../c-api/tuple.rst:201
276+ #: ../../c-api/tuple.rst:207
277277msgid ""
278278"Creates an instance of *type*, which must have been created with :c:func:"
279279"`PyStructSequence_NewType`."
280280msgstr ""
281281"*type* のインスタンスを生成します。 *type* は :c:func:"
282282"`PyStructSequence_NewType` によって事前に生成していなければなりません。"
283283
284- #: ../../c-api/tuple.rst:207
284+ #: ../../c-api/tuple.rst:215
285285msgid ""
286286"Return the object at position *pos* in the struct sequence pointed to by *p*."
287287msgstr ""
288288
289- #: ../../c-api/tuple.rst:215
289+ #: ../../c-api/tuple.rst:223
290290msgid "Alias to :c:func:`PyStructSequence_GetItem`."
291291msgstr ""
292292
293- #: ../../c-api/tuple.rst:217
293+ #: ../../c-api/tuple.rst:225
294294msgid "Now implemented as an alias to :c:func:`PyStructSequence_GetItem`."
295295msgstr ""
296296
297- #: ../../c-api/tuple.rst:223
297+ #: ../../c-api/tuple.rst:231
298298msgid ""
299299"Sets the field at index *pos* of the struct sequence *p* to value *o*. "
300300"Like :c:func:`PyTuple_SET_ITEM`, this should only be used to fill in brand "
@@ -304,15 +304,15 @@ msgstr ""
304304"func:`PyTuple_SET_ITEM` のように、生成したてのインスタンスに対してのみ使用す"
305305"べきです。"
306306
307- #: ../../c-api/tuple.rst:232
307+ #: ../../c-api/tuple.rst:240
308308msgid "This function \" steals\" a reference to *o*."
309309msgstr "この関数は *o* への参照を \" 盗み取り\" ます。"
310310
311- #: ../../c-api/tuple.rst:237
311+ #: ../../c-api/tuple.rst:245
312312msgid "Alias to :c:func:`PyStructSequence_SetItem`."
313313msgstr ""
314314
315- #: ../../c-api/tuple.rst:239
315+ #: ../../c-api/tuple.rst:247
316316msgid "Now implemented as an alias to :c:func:`PyStructSequence_SetItem`."
317317msgstr ""
318318
0 commit comments