@@ -11,7 +11,7 @@ msgid ""
11
11
msgstr ""
12
12
"Project-Id-Version : Python 3.7\n "
13
13
"Report-Msgid-Bugs-To : \n "
14
- "POT-Creation-Date : 2019-01-01 10:14+0900 \n "
14
+ "POT-Creation-Date : 2019-10-27 03:54+0000 \n "
15
15
"PO-Revision-Date : 2019-09-01 03:40+0000\n "
16
16
"Last-Translator : tomo, 2019\n "
17
17
"Language-Team : Japanese (https://www.transifex.com/python-doc/teams/5390/ja/)\n "
@@ -79,43 +79,51 @@ msgstr ""
79
79
#: ../../c-api/tuple.rst:59
80
80
msgid ""
81
81
"Return the object at position *pos* in the tuple pointed to by *p*. If "
82
- "*pos* is out of bounds, return *NULL* and sets an :exc:`IndexError` "
82
+ "*pos* is out of bounds, return *NULL* and set an :exc:`IndexError` "
83
83
"exception."
84
84
msgstr ""
85
- "*p* の指すタプルオブジェクト内の、位置 *pos* にあるオブジェクトを返します。 *pos* が範囲を超えている場合、 *NULL* を返して "
86
- ":exc:`IndexError` 例外をセットします。"
87
85
88
86
#: ../../c-api/tuple.rst:65
89
87
msgid "Like :c:func:`PyTuple_GetItem`, but does no checking of its arguments."
90
88
msgstr ":c:func:`PyTuple_GetItem` に似ていますが、引数に対するエラーチェックを行いません。"
91
89
92
90
#: ../../c-api/tuple.rst:70
93
91
msgid ""
94
- "Take a slice of the tuple pointed to by *p* from *low* to *high* and return "
95
- "it as a new tuple."
96
- msgstr "*p* の指すタプルオブジェクト内の、位置 *low* から *high* までのスライスを取り出して、タプルオブジェクトとして返します。"
92
+ "Return the slice of the tuple pointed to by *p* between *low* and *high*, or"
93
+ " *NULL* on failure. This is the equivalent of the Python expression "
94
+ "``p[low:high]``. Indexing from the end of the list is not supported."
95
+ msgstr ""
97
96
98
- #: ../../c-api/tuple.rst:76
97
+ #: ../../c-api/tuple.rst:77
99
98
msgid ""
100
99
"Insert a reference to object *o* at position *pos* of the tuple pointed to "
101
- "by *p*. Return ``0`` on success."
100
+ "by *p*. Return ``0`` on success. If *pos* is out of bounds, return ``-1`` "
101
+ "and set an :exc:`IndexError` exception."
102
102
msgstr ""
103
- "*p* の指すタプルオブジェクト内の位置 *pos* に、オブジェクト *o* への参照を挿入します。成功した場合には ``0`` を返します。"
104
103
105
- #: ../../c-api/tuple.rst:81 ../../c-api/tuple.rst:91 ../../c-api/tuple.rst:209
106
- #: ../../c-api/tuple.rst:218
107
- msgid "This function \" steals\" a reference to *o*."
108
- msgstr "この関数は *o* への参照を \" 盗み取り\" ます。"
104
+ #: ../../c-api/tuple.rst:83
105
+ msgid ""
106
+ "This function \" steals\" a reference to *o* and discards a reference to an "
107
+ "item already in the tuple at the affected position."
108
+ msgstr ""
109
109
110
- #: ../../c-api/tuple.rst:86
110
+ #: ../../c-api/tuple.rst:89
111
111
msgid ""
112
112
"Like :c:func:`PyTuple_SetItem`, but does no error checking, and should "
113
113
"*only* be used to fill in brand new tuples."
114
114
msgstr ""
115
115
":c:func:`PyTuple_SetItem` に似ていますが、エラーチェックを行わず、新たなタプルに値を入れるとき *以外には使ってはなりません*"
116
116
" 。"
117
117
118
- #: ../../c-api/tuple.rst:96
118
+ #: ../../c-api/tuple.rst:94
119
+ msgid ""
120
+ "This macro \" steals\" a reference to *o*, and, unlike "
121
+ ":c:func:`PyTuple_SetItem`, does *not* discard a reference to any item that "
122
+ "is being replaced; any reference in the tuple at position *pos* will be "
123
+ "leaked."
124
+ msgstr ""
125
+
126
+ #: ../../c-api/tuple.rst:102
119
127
msgid ""
120
128
"Can be used to resize a tuple. *newsize* will be the new length of the "
121
129
"tuple. Because tuples are *supposed* to be immutable, this should only be "
@@ -136,15 +144,15 @@ msgstr ""
136
144
"``-1`` を返し、 ``*p`` を *NULL* に設定して、 :exc:`MemoryError` または "
137
145
":exc:`SystemError` を送出します。"
138
146
139
- #: ../../c-api/tuple.rst:110
147
+ #: ../../c-api/tuple.rst:116
140
148
msgid "Clear the free list. Return the total number of freed items."
141
149
msgstr "フリーリストをクリアします。解放された要素数を返します。"
142
150
143
- #: ../../c-api/tuple.rst:114
151
+ #: ../../c-api/tuple.rst:120
144
152
msgid "Struct Sequence Objects"
145
153
msgstr "Struct Sequence オブジェクト"
146
154
147
- #: ../../c-api/tuple.rst:116
155
+ #: ../../c-api/tuple.rst:122
148
156
msgid ""
149
157
"Struct sequence objects are the C equivalent of "
150
158
":func:`~collections.namedtuple` objects, i.e. a sequence whose items can "
@@ -155,7 +163,7 @@ msgstr ""
155
163
"オブジェクトです。 つまり、その要素に属性を通してアクセスすることができるシーケンスです。 struct sequence "
156
164
"を生成するには、まず特定のstruct sequence 型を生成しなければなりません。"
157
165
158
- #: ../../c-api/tuple.rst:123
166
+ #: ../../c-api/tuple.rst:129
159
167
msgid ""
160
168
"Create a new struct sequence type from the data in *desc*, described below. "
161
169
"Instances of the resulting type can be created with "
@@ -164,79 +172,79 @@ msgstr ""
164
172
"後述の *desc* 中のデータから新しい struct sequence 型を生成します。返される型のインスタンスは "
165
173
":c:func:`PyStructSequence_New` で生成できます。"
166
174
167
- #: ../../c-api/tuple.rst:129
175
+ #: ../../c-api/tuple.rst:135
168
176
msgid "Initializes a struct sequence type *type* from *desc* in place."
169
177
msgstr "struct sequence 型である *type* を *desc* をもとにその場で初期化します。"
170
178
171
- #: ../../c-api/tuple.rst:134
179
+ #: ../../c-api/tuple.rst:140
172
180
msgid ""
173
181
"The same as ``PyStructSequence_InitType``, but returns ``0`` on success and "
174
182
"``-1`` on failure."
175
183
msgstr ""
176
184
"``PyStructSequence_InitType`` と同じですが、成功した場合には ``0`` を、失敗した場合には ``-1`` を返します。"
177
185
178
- #: ../../c-api/tuple.rst:142
186
+ #: ../../c-api/tuple.rst:148
179
187
msgid "Contains the meta information of a struct sequence type to create."
180
188
msgstr "生成するstruct sequence 型のメタデータを保持します。"
181
189
182
- #: ../../c-api/tuple.rst:145 ../../c-api/tuple.rst:168
190
+ #: ../../c-api/tuple.rst:151 ../../c-api/tuple.rst:174
183
191
msgid "Field"
184
192
msgstr "フィールド"
185
193
186
- #: ../../c-api/tuple.rst:145 ../../c-api/tuple.rst:168
194
+ #: ../../c-api/tuple.rst:151 ../../c-api/tuple.rst:174
187
195
msgid "C Type"
188
196
msgstr "C の型"
189
197
190
- #: ../../c-api/tuple.rst:145 ../../c-api/tuple.rst:168
198
+ #: ../../c-api/tuple.rst:151 ../../c-api/tuple.rst:174
191
199
msgid "Meaning"
192
200
msgstr "意味"
193
201
194
- #: ../../c-api/tuple.rst:147 ../../c-api/tuple.rst:170
202
+ #: ../../c-api/tuple.rst:153 ../../c-api/tuple.rst:176
195
203
msgid "``name``"
196
204
msgstr "``name``"
197
205
198
- #: ../../c-api/tuple.rst:147 ../../c-api/tuple.rst:149
199
- #: ../../c-api/tuple.rst:170 ../../c-api/tuple.rst:175
206
+ #: ../../c-api/tuple.rst:153 ../../c-api/tuple.rst:155
207
+ #: ../../c-api/tuple.rst:176 ../../c-api/tuple.rst:181
200
208
msgid "``const char *``"
201
209
msgstr "``const char *``"
202
210
203
- #: ../../c-api/tuple.rst:147
211
+ #: ../../c-api/tuple.rst:153
204
212
msgid "name of the struct sequence type"
205
213
msgstr "生成するstruct sequence 型の名前"
206
214
207
- #: ../../c-api/tuple.rst:149 ../../c-api/tuple.rst:175
215
+ #: ../../c-api/tuple.rst:155 ../../c-api/tuple.rst:181
208
216
msgid "``doc``"
209
217
msgstr "``doc``"
210
218
211
- #: ../../c-api/tuple.rst:149
219
+ #: ../../c-api/tuple.rst:155
212
220
msgid "pointer to docstring for the type or NULL to omit"
213
221
msgstr "生成する型のdocstringへのポインタ、または省略する場合は NULL"
214
222
215
- #: ../../c-api/tuple.rst:152
223
+ #: ../../c-api/tuple.rst:158
216
224
msgid "``fields``"
217
225
msgstr "``fields``"
218
226
219
- #: ../../c-api/tuple.rst:152
227
+ #: ../../c-api/tuple.rst:158
220
228
msgid "``PyStructSequence_Field *``"
221
229
msgstr "``PyStructSequence_Field *``"
222
230
223
- #: ../../c-api/tuple.rst:152
231
+ #: ../../c-api/tuple.rst:158
224
232
msgid "pointer to *NULL*-terminated array with field names of the new type"
225
233
msgstr "新しい型のフィールド名を格納した *NULL* 終端された配列へのポインタ"
226
234
227
- #: ../../c-api/tuple.rst:155
235
+ #: ../../c-api/tuple.rst:161
228
236
msgid "``n_in_sequence``"
229
237
msgstr "``n_in_sequence``"
230
238
231
- #: ../../c-api/tuple.rst:155
239
+ #: ../../c-api/tuple.rst:161
232
240
msgid "``int``"
233
241
msgstr "``int``"
234
242
235
- #: ../../c-api/tuple.rst:155
243
+ #: ../../c-api/tuple.rst:161
236
244
msgid "number of fields visible to the Python side (if used as tuple)"
237
245
msgstr "Python 側で可視となるフィールドの数 (もしタプルとして使用する場合)"
238
246
239
- #: ../../c-api/tuple.rst:162
247
+ #: ../../c-api/tuple.rst:168
240
248
msgid ""
241
249
"Describes a field of a struct sequence. As a struct sequence is modeled as a"
242
250
" tuple, all fields are typed as :c:type:`PyObject\\ *`. The index in the "
@@ -247,41 +255,41 @@ msgstr ""
247
255
":c:type:`PyObject\\ *` として型付けされます。 :c:type:`PyStructSequence_Desc` の "
248
256
":attr:`fields` 配列の添え字によって struct sequenceのどのフィールドについて記載しているかが決まります。"
249
257
250
- #: ../../c-api/tuple.rst:170
258
+ #: ../../c-api/tuple.rst:176
251
259
msgid ""
252
260
"name for the field or *NULL* to end the list of named fields, set to "
253
261
"PyStructSequence_UnnamedField to leave unnamed"
254
262
msgstr ""
255
263
"フィールドの名前。もし名前づけされたフィールドのリストの終端を表す場合は "
256
264
"*NULL*。名前がないままにする場合は、PyStructSequence_UnnamedField を設定します"
257
265
258
- #: ../../c-api/tuple.rst:175
266
+ #: ../../c-api/tuple.rst:181
259
267
msgid "field docstring or *NULL* to omit"
260
268
msgstr "フィールドのdocstring、省略する場合は *NULL*"
261
269
262
- #: ../../c-api/tuple.rst:181
270
+ #: ../../c-api/tuple.rst:187
263
271
msgid "Special value for a field name to leave it unnamed."
264
272
msgstr "フィールド名を名前がないままするための特殊な値。"
265
273
266
- #: ../../c-api/tuple.rst:186
274
+ #: ../../c-api/tuple.rst:192
267
275
msgid ""
268
276
"Creates an instance of *type*, which must have been created with "
269
277
":c:func:`PyStructSequence_NewType`."
270
278
msgstr ""
271
279
"*type* のインスタンスを生成します。 *type* は :c:func:`PyStructSequence_NewType` "
272
280
"によって事前に生成していなければなりません。"
273
281
274
- #: ../../c-api/tuple.rst:192
282
+ #: ../../c-api/tuple.rst:198
275
283
msgid ""
276
284
"Return the object at position *pos* in the struct sequence pointed to by "
277
285
"*p*. No bounds checking is performed."
278
286
msgstr "*p* の指すstruct sequence内の、位置 *pos* にあるオブジェクトを返します。境界チェックを行いません。"
279
287
280
- #: ../../c-api/tuple.rst:198
288
+ #: ../../c-api/tuple.rst:204
281
289
msgid "Macro equivalent of :c:func:`PyStructSequence_GetItem`."
282
290
msgstr ":c:func:`PyStructSequence_GetItem` と同等のマクロです。"
283
291
284
- #: ../../c-api/tuple.rst:203
292
+ #: ../../c-api/tuple.rst:209
285
293
msgid ""
286
294
"Sets the field at index *pos* of the struct sequence *p* to value *o*. Like"
287
295
" :c:func:`PyTuple_SET_ITEM`, this should only be used to fill in brand new "
@@ -290,6 +298,10 @@ msgstr ""
290
298
"struct sequence *p* の *pos* の位置にあるフィールドに値 *o* "
291
299
"を設定します。:c:func:`PyTuple_SET_ITEM` のように、生成したてのインスタンスに対してのみ使用すべきです。"
292
300
293
- #: ../../c-api/tuple.rst:214
301
+ #: ../../c-api/tuple.rst:215 ../../c-api/tuple.rst:224
302
+ msgid "This function \" steals\" a reference to *o*."
303
+ msgstr "この関数は *o* への参照を \" 盗み取り\" ます。"
304
+
305
+ #: ../../c-api/tuple.rst:220
294
306
msgid "Macro equivalent of :c:func:`PyStructSequence_SetItem`."
295
307
msgstr ":c:func:`PyStructSequence_SetItem` と同等のマクロ。"
0 commit comments