@@ -13,7 +13,7 @@ msgid ""
13
13
msgstr ""
14
14
"Project-Id-Version : Python 3.13\n "
15
15
"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 "
17
17
"PO-Revision-Date : 2021-06-28 00:50+0000\n "
18
18
"Last-Translator : tomo, 2023\n "
19
19
"Language-Team : Japanese (https://app.transifex.com/python-doc/teams/5390/ "
@@ -59,38 +59,30 @@ msgstr ""
59
59
"を返します。この関数は常に成功します。"
60
60
61
61
#: ../../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."
63
65
msgstr ""
64
- "サイズが *len* の新たなタプルオブジェクトを返します。失敗すると ``NULL`` を返"
65
- "します。"
66
66
67
- #: ../../c-api/tuple.rst:41
67
+ #: ../../c-api/tuple.rst:42
68
68
msgid ""
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 "
72
72
"``Py_BuildValue(\" (OO)\" , a, b)``."
73
73
msgstr ""
74
- "サイズが *n* の新たなタプルオブジェクトを返します。失敗すると ``NULL`` を返し"
75
- "ます。タプルの値は後続の *n* 個の Python オブジェクトを指す C 引数になりま"
76
- "す。``PyTuple_Pack(2, a, b)`` は ``Py_BuildValue(\" (OO)\" , a, b)`` と同じで"
77
- "す。"
78
74
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."
81
79
msgstr ""
82
- "タプルオブジェクトへのポインタを引数にとり、そのタプルのサイズを返します。"
83
80
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."
88
83
msgstr ""
89
- "タプル *p* のサイズを返しますが、*p* は非 ``NULL`` でなくてはならず、タプルオ"
90
- "ブジェクトを指していなければなりません; この関数はエラーチェックを行いませ"
91
- "ん。"
92
84
93
- #: ../../c-api/tuple.rst:59
85
+ #: ../../c-api/tuple.rst:61
94
86
msgid ""
95
87
"Return the object at position *pos* in the tuple pointed to by *p*. If "
96
88
"*pos* is negative or out of bounds, return ``NULL`` and set an :exc:"
@@ -100,28 +92,33 @@ msgstr ""
100
92
"*pos* が負であるか範囲を超えている場合、 ``NULL`` を返して :exc:`IndexError` "
101
93
"例外をセットします。"
102
94
103
- #: ../../c-api/tuple.rst:62
95
+ #: ../../c-api/tuple.rst:64
104
96
msgid ""
105
97
"The returned reference is borrowed from the tuple *p* (that is: it is only "
106
98
"valid as long as you hold a reference to *p*). To get a :term:`strong "
107
99
"reference`, use :c:func:`Py_NewRef(PyTuple_GetItem(...)) <Py_NewRef>` or :c:"
108
100
"func:`PySequence_GetItem`."
109
101
msgstr ""
110
102
111
- #: ../../c-api/tuple.rst:71
103
+ #: ../../c-api/tuple.rst:73
112
104
msgid "Like :c:func:`PyTuple_GetItem`, but does no checking of its arguments."
113
105
msgstr ""
114
106
":c:func:`PyTuple_GetItem` に似ていますが、引数に対するエラーチェックを行いま"
115
107
"せん。"
116
108
117
- #: ../../c-api/tuple.rst:76
109
+ #: ../../c-api/tuple.rst:78
118
110
msgid ""
119
111
"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."
122
113
msgstr ""
123
114
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
125
122
msgid ""
126
123
"Insert a reference to object *o* at position *pos* of the tuple pointed to "
127
124
"by *p*. Return ``0`` on success. If *pos* is out of bounds, return ``-1`` "
@@ -131,29 +128,30 @@ msgstr ""
131
128
"ます。成功すれば ``0`` を返します。 *pos* が範囲を超えている場合、 ``-1`` を"
132
129
"返して :exc:`IndexError` 例外をセットします。"
133
130
134
- #: ../../c-api/tuple.rst:89
131
+ #: ../../c-api/tuple.rst:93
135
132
msgid ""
136
133
"This function \" steals\" a reference to *o* and discards a reference to an "
137
134
"item already in the tuple at the affected position."
138
135
msgstr ""
139
136
"この関数は *o* への参照を \" 盗み取り\" ます。また、変更先のインデクスにすでに"
140
137
"別の要素が入っている場合、その要素に対する参照を放棄します。"
141
138
142
- #: ../../c-api/tuple.rst:95
139
+ #: ../../c-api/tuple.rst:99
143
140
msgid ""
144
141
"Like :c:func:`PyTuple_SetItem`, but does no error checking, and should "
145
142
"*only* be used to fill in brand new tuples."
146
143
msgstr ""
147
144
":c:func:`PyTuple_SetItem` に似ていますが、エラーチェックを行わず、新たなタプ"
148
145
"ルに値を入れるとき *以外には使ってはなりません* 。"
149
146
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
151
149
msgid ""
152
150
"Bounds checking is performed as an assertion if Python is built in :ref:"
153
151
"`debug mode <debug-build>` or :option:`with assertions <--with-assertions>`."
154
152
msgstr ""
155
153
156
- #: ../../c-api/tuple.rst:103
154
+ #: ../../c-api/tuple.rst:107
157
155
msgid ""
158
156
"This function \" steals\" a reference to *o*, and, unlike :c:func:"
159
157
"`PyTuple_SetItem`, does *not* discard a reference to any item that is being "
@@ -164,7 +162,7 @@ msgstr ""
164
162
"トへの参照を放棄 *しません* ; その結果、タプル中の位置 *pos* で参照されていた"
165
163
"オブジェクトがメモリリークを引き起こします。"
166
164
167
- #: ../../c-api/tuple.rst:111
165
+ #: ../../c-api/tuple.rst:115
168
166
msgid ""
169
167
"Can be used to resize a tuple. *newsize* will be the new length of the "
170
168
"tuple. Because tuples are *supposed* to be immutable, this should only be "
@@ -188,11 +186,11 @@ msgstr ""
188
186
"ます。失敗すると ``-1`` を返し、 ``*p`` を ``NULL`` に設定して、 :exc:"
189
187
"`MemoryError` または :exc:`SystemError` を送出します。"
190
188
191
- #: ../../c-api/tuple.rst:126
189
+ #: ../../c-api/tuple.rst:130
192
190
msgid "Struct Sequence Objects"
193
191
msgstr "Struct Sequence オブジェクト"
194
192
195
- #: ../../c-api/tuple.rst:128
193
+ #: ../../c-api/tuple.rst:132
196
194
msgid ""
197
195
"Struct sequence objects are the C equivalent of :func:`~collections."
198
196
"namedtuple` objects, i.e. a sequence whose items can also be accessed "
@@ -204,7 +202,7 @@ msgstr ""
204
202
"きるシーケンスです。 struct sequence を生成するには、まず特定のstruct "
205
203
"sequence 型を生成しなければなりません。"
206
204
207
- #: ../../c-api/tuple.rst:135
205
+ #: ../../c-api/tuple.rst:139
208
206
msgid ""
209
207
"Create a new struct sequence type from the data in *desc*, described below. "
210
208
"Instances of the resulting type can be created with :c:func:"
@@ -213,40 +211,42 @@ msgstr ""
213
211
"後述の *desc* 中のデータから新しい struct sequence 型を生成します。返される型"
214
212
"のインスタンスは :c:func:`PyStructSequence_New` で生成できます。"
215
213
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
217
219
msgid "Initializes a struct sequence type *type* from *desc* in place."
218
220
msgstr ""
219
221
"struct sequence 型である *type* を *desc* をもとにその場で初期化します。"
220
222
221
- #: ../../c-api/tuple.rst:146
223
+ #: ../../c-api/tuple.rst:152
222
224
msgid ""
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."
225
227
msgstr ""
226
- "``PyStructSequence_InitType`` と同じですが、成功した場合には ``0`` を、失敗し"
227
- "た場合には ``-1`` を返します。"
228
228
229
- #: ../../c-api/tuple.rst:154
229
+ #: ../../c-api/tuple.rst:160
230
230
msgid "Contains the meta information of a struct sequence type to create."
231
231
msgstr "生成するstruct sequence 型のメタデータを保持します。"
232
232
233
- #: ../../c-api/tuple.rst:158
233
+ #: ../../c-api/tuple.rst:164
234
234
msgid "Name of the struct sequence type."
235
235
msgstr ""
236
236
237
- #: ../../c-api/tuple.rst:162
237
+ #: ../../c-api/tuple.rst:168
238
238
msgid "Pointer to docstring for the type or ``NULL`` to omit."
239
239
msgstr ""
240
240
241
- #: ../../c-api/tuple.rst:166
241
+ #: ../../c-api/tuple.rst:172
242
242
msgid "Pointer to ``NULL``-terminated array with field names of the new type."
243
243
msgstr ""
244
244
245
- #: ../../c-api/tuple.rst:170
245
+ #: ../../c-api/tuple.rst:176
246
246
msgid "Number of fields visible to the Python side (if used as tuple)."
247
247
msgstr ""
248
248
249
- #: ../../c-api/tuple.rst:175
249
+ #: ../../c-api/tuple.rst:181
250
250
msgid ""
251
251
"Describes a field of a struct sequence. As a struct sequence is modeled as a "
252
252
"tuple, all fields are typed as :c:expr:`PyObject*`. The index in the :c:"
@@ -255,46 +255,46 @@ msgid ""
255
255
"described."
256
256
msgstr ""
257
257
258
- #: ../../c-api/tuple.rst:183
258
+ #: ../../c-api/tuple.rst:189
259
259
msgid ""
260
260
"Name for the field or ``NULL`` to end the list of named fields, set to :c:"
261
261
"data:`PyStructSequence_UnnamedField` to leave unnamed."
262
262
msgstr ""
263
263
264
- #: ../../c-api/tuple.rst:188
264
+ #: ../../c-api/tuple.rst:194
265
265
msgid "Field docstring or ``NULL`` to omit."
266
266
msgstr ""
267
267
268
- #: ../../c-api/tuple.rst:193
268
+ #: ../../c-api/tuple.rst:199
269
269
msgid "Special value for a field name to leave it unnamed."
270
270
msgstr "フィールド名を名前がないままするための特殊な値。"
271
271
272
- #: ../../c-api/tuple.rst:195
272
+ #: ../../c-api/tuple.rst:201
273
273
msgid "The type was changed from ``char *``."
274
274
msgstr "型が ``char *`` から変更されました。"
275
275
276
- #: ../../c-api/tuple.rst:201
276
+ #: ../../c-api/tuple.rst:207
277
277
msgid ""
278
278
"Creates an instance of *type*, which must have been created with :c:func:"
279
279
"`PyStructSequence_NewType`."
280
280
msgstr ""
281
281
"*type* のインスタンスを生成します。 *type* は :c:func:"
282
282
"`PyStructSequence_NewType` によって事前に生成していなければなりません。"
283
283
284
- #: ../../c-api/tuple.rst:207
284
+ #: ../../c-api/tuple.rst:215
285
285
msgid ""
286
286
"Return the object at position *pos* in the struct sequence pointed to by *p*."
287
287
msgstr ""
288
288
289
- #: ../../c-api/tuple.rst:215
289
+ #: ../../c-api/tuple.rst:223
290
290
msgid "Alias to :c:func:`PyStructSequence_GetItem`."
291
291
msgstr ""
292
292
293
- #: ../../c-api/tuple.rst:217
293
+ #: ../../c-api/tuple.rst:225
294
294
msgid "Now implemented as an alias to :c:func:`PyStructSequence_GetItem`."
295
295
msgstr ""
296
296
297
- #: ../../c-api/tuple.rst:223
297
+ #: ../../c-api/tuple.rst:231
298
298
msgid ""
299
299
"Sets the field at index *pos* of the struct sequence *p* to value *o*. "
300
300
"Like :c:func:`PyTuple_SET_ITEM`, this should only be used to fill in brand "
@@ -304,15 +304,15 @@ msgstr ""
304
304
"func:`PyTuple_SET_ITEM` のように、生成したてのインスタンスに対してのみ使用す"
305
305
"べきです。"
306
306
307
- #: ../../c-api/tuple.rst:232
307
+ #: ../../c-api/tuple.rst:240
308
308
msgid "This function \" steals\" a reference to *o*."
309
309
msgstr "この関数は *o* への参照を \" 盗み取り\" ます。"
310
310
311
- #: ../../c-api/tuple.rst:237
311
+ #: ../../c-api/tuple.rst:245
312
312
msgid "Alias to :c:func:`PyStructSequence_SetItem`."
313
313
msgstr ""
314
314
315
- #: ../../c-api/tuple.rst:239
315
+ #: ../../c-api/tuple.rst:247
316
316
msgid "Now implemented as an alias to :c:func:`PyStructSequence_SetItem`."
317
317
msgstr ""
318
318
0 commit comments