@@ -15,7 +15,7 @@ msgid ""
15
15
msgstr ""
16
16
"Project-Id-Version : Python 3.9\n "
17
17
"Report-Msgid-Bugs-To : \n "
18
- "POT-Creation-Date : 2020-09-02 03:58 +0000\n "
18
+ "POT-Creation-Date : 2020-09-05 04:00 +0000\n "
19
19
"PO-Revision-Date : 2017-02-16 17:39+0000\n "
20
20
"Last-Translator : tomo, 2020\n "
21
21
"Language-Team : Japanese (https://www.transifex.com/python-doc/teams/5390/ja/)\n "
@@ -162,212 +162,224 @@ msgid ""
162
162
"created using :c:func:`PyType_FromModuleAndSpec`."
163
163
msgstr ""
164
164
165
- #: ../../c-api/type.rst:117 ../../c-api/type.rst:128
165
+ #: ../../c-api/type.rst:117 ../../c-api/type.rst:135
166
166
msgid ""
167
167
"If no module is associated with the given type, sets :py:class:`TypeError` "
168
168
"and returns ``NULL``."
169
169
msgstr ""
170
170
171
- #: ../../c-api/type.rst:124
171
+ #: ../../c-api/type.rst:120
172
+ msgid ""
173
+ "This function is usually used to get the module in which a method is "
174
+ "defined. Note that in such a method, ``PyType_GetModule(Py_TYPE(self))`` may"
175
+ " not return the intended result. ``Py_TYPE(self)`` may be a *subclass* of "
176
+ "the intended class, and subclasses are not necessarily defined in the same "
177
+ "module as their superclass. See :c:type:`PyCMethod` to get the class that "
178
+ "defines the method."
179
+ msgstr ""
180
+
181
+ #: ../../c-api/type.rst:131
172
182
msgid ""
173
183
"Return the state of the module object associated with the given type. This "
174
184
"is a shortcut for calling :c:func:`PyModule_GetState()` on the result of "
175
185
":c:func:`PyType_GetModule`."
176
186
msgstr ""
177
187
178
- #: ../../c-api/type.rst:131
188
+ #: ../../c-api/type.rst:138
179
189
msgid ""
180
190
"If the *type* has an associated module but its state is ``NULL``, returns "
181
191
"``NULL`` without setting an exception."
182
192
msgstr ""
183
193
184
- #: ../../c-api/type.rst:138
194
+ #: ../../c-api/type.rst:145
185
195
msgid "Creating Heap-Allocated Types"
186
196
msgstr ""
187
197
188
- #: ../../c-api/type.rst:140
198
+ #: ../../c-api/type.rst:147
189
199
msgid ""
190
200
"The following functions and structs are used to create :ref:`heap types "
191
201
"<heap-types>`."
192
202
msgstr ""
193
203
194
- #: ../../c-api/type.rst:145
204
+ #: ../../c-api/type.rst:152
195
205
msgid ""
196
206
"Creates and returns a heap type object from the *spec* "
197
207
"(:const:`Py_TPFLAGS_HEAPTYPE`)."
198
208
msgstr ""
199
209
200
- #: ../../c-api/type.rst:148
210
+ #: ../../c-api/type.rst:155
201
211
msgid ""
202
212
"If *bases* is a tuple, the created heap type contains all types contained in"
203
213
" it as base types."
204
214
msgstr ""
205
215
206
- #: ../../c-api/type.rst:151
216
+ #: ../../c-api/type.rst:158
207
217
msgid ""
208
218
"If *bases* is ``NULL``, the *Py_tp_base* slot is used instead. If that also "
209
219
"is ``NULL``, the new type derives from :class:`object`."
210
220
msgstr ""
211
221
212
- #: ../../c-api/type.rst:154
222
+ #: ../../c-api/type.rst:161
213
223
msgid ""
214
- "The *module* must be a module object or ``NULL``. If not ``NULL``, the "
215
- "module is associated with the new type and can later be retreived with "
216
- ":c:func:`PyType_GetModule`."
224
+ "The *module* argument can be used to record the module in which the new "
225
+ "class is defined. It must be a module object or ``NULL``. If not ``NULL``, "
226
+ "the module is associated with the new type and can later be retreived with "
227
+ ":c:func:`PyType_GetModule`. The associated module is not inherited by "
228
+ "subclasses; it must be specified for each class individually."
217
229
msgstr ""
218
230
219
- #: ../../c-api/type.rst:158
231
+ #: ../../c-api/type.rst:168
220
232
msgid "This function calls :c:func:`PyType_Ready` on the new type."
221
233
msgstr ""
222
234
223
- #: ../../c-api/type.rst:164
235
+ #: ../../c-api/type.rst:174
224
236
msgid "Equivalent to ``PyType_FromModuleAndSpec(NULL, spec, bases)``."
225
237
msgstr ""
226
238
227
- #: ../../c-api/type.rst:170
239
+ #: ../../c-api/type.rst:180
228
240
msgid "Equivalent to ``PyType_FromSpecWithBases(spec, NULL)``."
229
241
msgstr ""
230
242
231
- #: ../../c-api/type.rst:174
243
+ #: ../../c-api/type.rst:184
232
244
msgid "Structure defining a type's behavior."
233
245
msgstr ""
234
246
235
- #: ../../c-api/type.rst:178
247
+ #: ../../c-api/type.rst:188
236
248
msgid "Name of the type, used to set :c:member:`PyTypeObject.tp_name`."
237
249
msgstr ""
238
250
239
- #: ../../c-api/type.rst:183
251
+ #: ../../c-api/type.rst:193
240
252
msgid ""
241
253
"Size of the instance in bytes, used to set "
242
254
":c:member:`PyTypeObject.tp_basicsize` and "
243
255
":c:member:`PyTypeObject.tp_itemsize`."
244
256
msgstr ""
245
257
246
- #: ../../c-api/type.rst:189
258
+ #: ../../c-api/type.rst:199
247
259
msgid "Type flags, used to set :c:member:`PyTypeObject.tp_flags`."
248
260
msgstr ""
249
261
250
- #: ../../c-api/type.rst:191
262
+ #: ../../c-api/type.rst:201
251
263
msgid ""
252
264
"If the ``Py_TPFLAGS_HEAPTYPE`` flag is not set, "
253
265
":c:func:`PyType_FromSpecWithBases` sets it automatically."
254
266
msgstr ""
255
267
256
- #: ../../c-api/type.rst:196
268
+ #: ../../c-api/type.rst:206
257
269
msgid ""
258
270
"Array of :c:type:`PyType_Slot` structures. Terminated by the special slot "
259
271
"value ``{0, NULL}``."
260
272
msgstr ""
261
273
262
- #: ../../c-api/type.rst:201
274
+ #: ../../c-api/type.rst:211
263
275
msgid ""
264
276
"Structure defining optional functionality of a type, containing a slot ID "
265
277
"and a value pointer."
266
278
msgstr ""
267
279
268
- #: ../../c-api/type.rst:206
280
+ #: ../../c-api/type.rst:216
269
281
msgid "A slot ID."
270
282
msgstr ""
271
283
272
- #: ../../c-api/type.rst:208
284
+ #: ../../c-api/type.rst:218
273
285
msgid ""
274
286
"Slot IDs are named like the field names of the structures "
275
287
":c:type:`PyTypeObject`, :c:type:`PyNumberMethods`, "
276
288
":c:type:`PySequenceMethods`, :c:type:`PyMappingMethods` and "
277
289
":c:type:`PyAsyncMethods` with an added ``Py_`` prefix. For example, use:"
278
290
msgstr ""
279
291
280
- #: ../../c-api/type.rst:214
292
+ #: ../../c-api/type.rst:224
281
293
msgid "``Py_tp_dealloc`` to set :c:member:`PyTypeObject.tp_dealloc`"
282
294
msgstr ""
283
295
284
- #: ../../c-api/type.rst:215
296
+ #: ../../c-api/type.rst:225
285
297
msgid "``Py_nb_add`` to set :c:member:`PyNumberMethods.nb_add`"
286
298
msgstr ""
287
299
288
- #: ../../c-api/type.rst:216
300
+ #: ../../c-api/type.rst:226
289
301
msgid "``Py_sq_length`` to set :c:member:`PySequenceMethods.sq_length`"
290
302
msgstr ""
291
303
292
- #: ../../c-api/type.rst:218
304
+ #: ../../c-api/type.rst:228
293
305
msgid ""
294
306
"The following fields cannot be set at all using :c:type:`PyType_Spec` and "
295
307
":c:type:`PyType_Slot`:"
296
308
msgstr ""
297
309
298
- #: ../../c-api/type.rst:221
310
+ #: ../../c-api/type.rst:231
299
311
msgid ":c:member:`~PyTypeObject.tp_dict`"
300
312
msgstr ":c:member:`~PyTypeObject.tp_dict`"
301
313
302
- #: ../../c-api/type.rst:222
314
+ #: ../../c-api/type.rst:232
303
315
msgid ":c:member:`~PyTypeObject.tp_mro`"
304
316
msgstr ""
305
317
306
- #: ../../c-api/type.rst:223
318
+ #: ../../c-api/type.rst:233
307
319
msgid ":c:member:`~PyTypeObject.tp_cache`"
308
320
msgstr ""
309
321
310
- #: ../../c-api/type.rst:224
322
+ #: ../../c-api/type.rst:234
311
323
msgid ":c:member:`~PyTypeObject.tp_subclasses`"
312
324
msgstr ""
313
325
314
- #: ../../c-api/type.rst:225
326
+ #: ../../c-api/type.rst:235
315
327
msgid ":c:member:`~PyTypeObject.tp_weaklist`"
316
328
msgstr ""
317
329
318
- #: ../../c-api/type.rst:226
330
+ #: ../../c-api/type.rst:236
319
331
msgid ":c:member:`~PyTypeObject.tp_vectorcall`"
320
332
msgstr ":c:member:`~PyTypeObject.tp_vectorcall`"
321
333
322
- #: ../../c-api/type.rst:227
334
+ #: ../../c-api/type.rst:237
323
335
msgid ""
324
336
":c:member:`~PyTypeObject.tp_weaklistoffset` (see :ref:`PyMemberDef "
325
337
"<pymemberdef-offsets>`)"
326
338
msgstr ""
327
339
328
- #: ../../c-api/type.rst:229
340
+ #: ../../c-api/type.rst:239
329
341
msgid ""
330
342
":c:member:`~PyTypeObject.tp_dictoffset` (see :ref:`PyMemberDef <pymemberdef-"
331
343
"offsets>`)"
332
344
msgstr ""
333
345
334
- #: ../../c-api/type.rst:231
346
+ #: ../../c-api/type.rst:241
335
347
msgid ""
336
348
":c:member:`~PyTypeObject.tp_vectorcall_offset` (see :ref:`PyMemberDef "
337
349
"<pymemberdef-offsets>`)"
338
350
msgstr ""
339
351
340
- #: ../../c-api/type.rst:234
352
+ #: ../../c-api/type.rst:244
341
353
msgid ""
342
354
"The following fields cannot be set using :c:type:`PyType_Spec` and "
343
355
":c:type:`PyType_Slot` under the limited API:"
344
356
msgstr ""
345
357
346
- #: ../../c-api/type.rst:237
358
+ #: ../../c-api/type.rst:247
347
359
msgid ":c:member:`~PyBufferProcs.bf_getbuffer`"
348
360
msgstr ":c:member:`~PyBufferProcs.bf_getbuffer`"
349
361
350
- #: ../../c-api/type.rst:238
362
+ #: ../../c-api/type.rst:248
351
363
msgid ":c:member:`~PyBufferProcs.bf_releasebuffer`"
352
364
msgstr ":c:member:`~PyBufferProcs.bf_releasebuffer`"
353
365
354
- #: ../../c-api/type.rst:240
366
+ #: ../../c-api/type.rst:250
355
367
msgid ""
356
368
"Setting :c:data:`Py_tp_bases` may be problematic on some platforms. To avoid"
357
369
" issues, use the *bases* argument of :py:func:`PyType_FromSpecWithBases` "
358
370
"instead."
359
371
msgstr ""
360
372
361
- #: ../../c-api/type.rst:246
373
+ #: ../../c-api/type.rst:256
362
374
msgid "Slots in :c:type:`PyBufferProcs` in may be set in the unlimited API."
363
375
msgstr ""
364
376
365
- #: ../../c-api/type.rst:250
377
+ #: ../../c-api/type.rst:260
366
378
msgid ""
367
379
"The desired value of the slot. In most cases, this is a pointer to a "
368
380
"function."
369
381
msgstr ""
370
382
371
- #: ../../c-api/type.rst:253
383
+ #: ../../c-api/type.rst:263
372
384
msgid "May not be ``NULL``."
373
385
msgstr ""
0 commit comments