@@ -13,7 +13,7 @@ msgid ""
13
13
msgstr ""
14
14
"Project-Id-Version : Python 3.12\n "
15
15
"Report-Msgid-Bugs-To : \n "
16
- "POT-Creation-Date : 2023-06-16 14:12 +0000\n "
16
+ "POT-Creation-Date : 2023-06-30 14:13 +0000\n "
17
17
"PO-Revision-Date : 2021-06-28 00:48+0000\n "
18
18
"Last-Translator : Nozomu Kaneko <nozom.kaneko@gmail.com>, 2023\n "
19
19
"Language-Team : Japanese (https://app.transifex.com/python-doc/teams/5390/ "
@@ -151,24 +151,20 @@ msgstr ""
151
151
"キー *key* が存在しない場合には ``NULL`` を返しますが、例外をセット *しません"
152
152
"*。"
153
153
154
- #: ../../c-api/dict.rst:101
154
+ #: ../../c-api/dict.rst:103
155
155
msgid ""
156
- "Note that exceptions which occur while calling :meth:`__hash__` and :meth:"
157
- "`__eq__` methods will get suppressed. To get error reporting use :c:func:"
158
- "`PyDict_GetItemWithError()` instead."
156
+ "Exceptions that occur while this calls :meth:`~object. __hash__` and :meth:"
157
+ "`~object. __eq__` methods are silently ignored. Prefer the :c:func:"
158
+ "`PyDict_GetItemWithError` function instead."
159
159
msgstr ""
160
- ":meth:`__hash__` メソッドや :meth:`__eq__` メソッドの呼び出し中に起こる例外は"
161
- "抑制されることに注意してください。\n"
162
- "エラーを報告させるには、代わりに :c:func:`PyDict_GetItemWithError()` を使って"
163
- "ください。"
164
160
165
- #: ../../c-api/dict.rst:105
161
+ #: ../../c-api/dict.rst:107
166
162
msgid ""
167
163
"Calling this API without :term:`GIL` held had been allowed for historical "
168
164
"reason. It is no longer allowed."
169
165
msgstr ""
170
166
171
- #: ../../c-api/dict.rst:112
167
+ #: ../../c-api/dict.rst:114
172
168
msgid ""
173
169
"Variant of :c:func:`PyDict_GetItem` that does not suppress exceptions. "
174
170
"Return ``NULL`` **with** an exception set if an exception occurred. Return "
@@ -178,26 +174,23 @@ msgstr ""
178
174
"例外が発生した場合は、例外をセット **した上で** ``NULL`` を返します。\n"
179
175
"キーが存在しなかった場合は、例外をセット **せずに** ``NULL`` を返します。"
180
176
181
- #: ../../c-api/dict.rst:120
177
+ #: ../../c-api/dict.rst:122
182
178
msgid ""
183
179
"This is the same as :c:func:`PyDict_GetItem`, but *key* is specified as a :c:"
184
180
"expr:`const char*`, rather than a :c:expr:`PyObject*`."
185
181
msgstr ""
186
182
":c:func:`PyDict_GetItem` と同じですが、 *key* は :c:expr:`PyObject*` ではな"
187
183
"く :c:expr:`const char*` で指定します。"
188
184
189
- #: ../../c-api/dict.rst:123
185
+ #: ../../c-api/dict.rst:127
190
186
msgid ""
191
- "Note that exceptions which occur while calling :meth:`__hash__` and :meth:"
192
- "`__eq__` methods and creating a temporary string object will get suppressed. "
193
- "To get error reporting use :c:func:`PyDict_GetItemWithError()` instead."
187
+ "Exceptions that occur while this calls :meth:`~object.__hash__` and :meth:"
188
+ "`~object.__eq__` methods or while creating the temporary :class:`str` object "
189
+ "are silently ignored. Prefer using the :c:func:`PyDict_GetItemWithError` "
190
+ "function with your own :c:func:`PyUnicode_FromString` *key* instead."
194
191
msgstr ""
195
- ":meth:`__hash__` メソッドや :meth:`__eq__` メソッドの呼び出し中や、一時的な文"
196
- "字列オブジェクトの作成中に起こる例外は抑制されることに注意してください。\n"
197
- "エラーを報告させるには、代わりに :c:func:`PyDict_GetItemWithError()` を使って"
198
- "ください。"
199
192
200
- #: ../../c-api/dict.rst:131
193
+ #: ../../c-api/dict.rst:136
201
194
msgid ""
202
195
"This is the same as the Python-level :meth:`dict.setdefault`. If present, "
203
196
"it returns the value corresponding to *key* from the dictionary *p*. If the "
@@ -212,30 +205,30 @@ msgstr ""
212
205
"この関数は、 *key* のハッシュ値を検索と挿入ごとに別々に評価するのではなく、一"
213
206
"度だけしか評価しません。"
214
207
215
- #: ../../c-api/dict.rst:141
208
+ #: ../../c-api/dict.rst:146
216
209
msgid ""
217
210
"Return a :c:type:`PyListObject` containing all the items from the dictionary."
218
211
msgstr "辞書内の全ての要素対が入った :c:type:`PyListObject` を返します。"
219
212
220
- #: ../../c-api/dict.rst:146
213
+ #: ../../c-api/dict.rst:151
221
214
msgid ""
222
215
"Return a :c:type:`PyListObject` containing all the keys from the dictionary."
223
216
msgstr "辞書内の全てのキーが入った :c:type:`PyListObject` を返します。"
224
217
225
- #: ../../c-api/dict.rst:151
218
+ #: ../../c-api/dict.rst:156
226
219
msgid ""
227
220
"Return a :c:type:`PyListObject` containing all the values from the "
228
221
"dictionary *p*."
229
222
msgstr "辞書 *p* 内の全ての値が入った :c:type:`PyListObject` を返します。"
230
223
231
- #: ../../c-api/dict.rst:159
224
+ #: ../../c-api/dict.rst:164
232
225
msgid ""
233
226
"Return the number of items in the dictionary. This is equivalent to "
234
227
"``len(p)`` on a dictionary."
235
228
msgstr ""
236
229
"辞書内の要素の数を返します。辞書に対して ``len(p)`` を実行するのと同じです。"
237
230
238
- #: ../../c-api/dict.rst:165
231
+ #: ../../c-api/dict.rst:170
239
232
msgid ""
240
233
"Iterate over all key-value pairs in the dictionary *p*. The :c:type:"
241
234
"`Py_ssize_t` referred to by *ppos* must be initialized to ``0`` prior to the "
@@ -261,11 +254,11 @@ msgstr ""
261
254
"この値は内部的な辞書構造体のオフセットを表現しており、構造体はスパースなの"
262
255
"で、オフセットの値に一貫性がないためです。"
263
256
264
- #: ../../c-api/dict.rst:176
257
+ #: ../../c-api/dict.rst:181
265
258
msgid "For example::"
266
259
msgstr "例えば::"
267
260
268
- #: ../../c-api/dict.rst:186
261
+ #: ../../c-api/dict.rst:191
269
262
msgid ""
270
263
"The dictionary *p* should not be mutated during iteration. It is safe to "
271
264
"modify the values of the keys as you iterate over the dictionary, but only "
@@ -275,7 +268,7 @@ msgstr ""
275
268
"応する値を変更しても大丈夫になりましたが、キーの集合を変更しないことが前提で"
276
269
"す。以下に例を示します::"
277
270
278
- #: ../../c-api/dict.rst:211
271
+ #: ../../c-api/dict.rst:216
279
272
msgid ""
280
273
"Iterate over mapping object *b* adding key-value pairs to dictionary *a*. "
281
274
"*b* may be a dictionary, or any object supporting :c:func:`PyMapping_Keys` "
@@ -292,7 +285,7 @@ msgstr ""
292
285
"行います。成功した場合には ``0`` を返し、例外が送出された場合には ``-1`` を返"
293
286
"します。"
294
287
295
- #: ../../c-api/dict.rst:221
288
+ #: ../../c-api/dict.rst:226
296
289
msgid ""
297
290
"This is the same as ``PyDict_Merge(a, b, 1)`` in C, and is similar to ``a."
298
291
"update(b)`` in Python except that :c:func:`PyDict_Update` doesn't fall back "
@@ -305,7 +298,7 @@ msgstr ""
305
298
"性を持たない場合にキー/値ペアのシーケンスを反復することはありません。成功した"
306
299
"場合には ``0`` を返し、例外が送出された場合には ``-1`` を返します。"
307
300
308
- #: ../../c-api/dict.rst:230
301
+ #: ../../c-api/dict.rst:235
309
302
msgid ""
310
303
"Update or merge into dictionary *a*, from the key-value pairs in *seq2*. "
311
304
"*seq2* must be an iterable object producing iterable objects of length 2, "
@@ -321,49 +314,49 @@ msgstr ""
321
314
"は ``-1`` を返します。(戻り値以外は) 等価な Python コードを書くと、以下のよう"
322
315
"になります::"
323
316
324
- #: ../../c-api/dict.rst:244
317
+ #: ../../c-api/dict.rst:249
325
318
msgid ""
326
319
"Register *callback* as a dictionary watcher. Return a non-negative integer "
327
320
"id which must be passed to future calls to :c:func:`PyDict_Watch`. In case "
328
321
"of error (e.g. no more watcher IDs available), return ``-1`` and set an "
329
322
"exception."
330
323
msgstr ""
331
324
332
- #: ../../c-api/dict.rst:253
325
+ #: ../../c-api/dict.rst:258
333
326
msgid ""
334
327
"Clear watcher identified by *watcher_id* previously returned from :c:func:"
335
328
"`PyDict_AddWatcher`. Return ``0`` on success, ``-1`` on error (e.g. if the "
336
329
"given *watcher_id* was never registered.)"
337
330
msgstr ""
338
331
339
- #: ../../c-api/dict.rst:261
332
+ #: ../../c-api/dict.rst:266
340
333
msgid ""
341
334
"Mark dictionary *dict* as watched. The callback granted *watcher_id* by :c:"
342
335
"func:`PyDict_AddWatcher` will be called when *dict* is modified or "
343
336
"deallocated. Return ``0`` on success or ``-1`` on error."
344
337
msgstr ""
345
338
346
- #: ../../c-api/dict.rst:269
339
+ #: ../../c-api/dict.rst:274
347
340
msgid ""
348
341
"Mark dictionary *dict* as no longer watched. The callback granted "
349
342
"*watcher_id* by :c:func:`PyDict_AddWatcher` will no longer be called when "
350
343
"*dict* is modified or deallocated. The dict must previously have been "
351
344
"watched by this watcher. Return ``0`` on success or ``-1`` on error."
352
345
msgstr ""
353
346
354
- #: ../../c-api/dict.rst:278
347
+ #: ../../c-api/dict.rst:283
355
348
msgid ""
356
349
"Enumeration of possible dictionary watcher events: ``PyDict_EVENT_ADDED``, "
357
350
"``PyDict_EVENT_MODIFIED``, ``PyDict_EVENT_DELETED``, "
358
351
"``PyDict_EVENT_CLONED``, ``PyDict_EVENT_CLEARED``, or "
359
352
"``PyDict_EVENT_DEALLOCATED``."
360
353
msgstr ""
361
354
362
- #: ../../c-api/dict.rst:286
355
+ #: ../../c-api/dict.rst:291
363
356
msgid "Type of a dict watcher callback function."
364
357
msgstr ""
365
358
366
- #: ../../c-api/dict.rst:288
359
+ #: ../../c-api/dict.rst:293
367
360
msgid ""
368
361
"If *event* is ``PyDict_EVENT_CLEARED`` or ``PyDict_EVENT_DEALLOCATED``, both "
369
362
"*key* and *new_value* will be ``NULL``. If *event* is ``PyDict_EVENT_ADDED`` "
@@ -372,22 +365,22 @@ msgid ""
372
365
"dictionary and *new_value* will be ``NULL``."
373
366
msgstr ""
374
367
375
- #: ../../c-api/dict.rst:294
368
+ #: ../../c-api/dict.rst:299
376
369
msgid ""
377
370
"``PyDict_EVENT_CLONED`` occurs when *dict* was previously empty and another "
378
371
"dict is merged into it. To maintain efficiency of this operation, per-key "
379
372
"``PyDict_EVENT_ADDED`` events are not issued in this case; instead a single "
380
373
"``PyDict_EVENT_CLONED`` is issued, and *key* will be the source dictionary."
381
374
msgstr ""
382
375
383
- #: ../../c-api/dict.rst:300
376
+ #: ../../c-api/dict.rst:305
384
377
msgid ""
385
378
"The callback may inspect but must not modify *dict*; doing so could have "
386
379
"unpredictable effects, including infinite recursion. Do not trigger Python "
387
380
"code execution in the callback, as it could modify the dict as a side effect."
388
381
msgstr ""
389
382
390
- #: ../../c-api/dict.rst:304
383
+ #: ../../c-api/dict.rst:309
391
384
msgid ""
392
385
"If *event* is ``PyDict_EVENT_DEALLOCATED``, taking a new reference in the "
393
386
"callback to the about-to-be-destroyed dictionary will resurrect it and "
@@ -396,20 +389,20 @@ msgid ""
396
389
"again."
397
390
msgstr ""
398
391
399
- #: ../../c-api/dict.rst:310
392
+ #: ../../c-api/dict.rst:315
400
393
msgid ""
401
394
"Callbacks occur before the notified modification to *dict* takes place, so "
402
395
"the prior state of *dict* can be inspected."
403
396
msgstr ""
404
397
405
- #: ../../c-api/dict.rst:313
398
+ #: ../../c-api/dict.rst:318
406
399
msgid ""
407
400
"If the callback sets an exception, it must return ``-1``; this exception "
408
401
"will be printed as an unraisable exception using :c:func:"
409
402
"`PyErr_WriteUnraisable`. Otherwise it should return ``0``."
410
403
msgstr ""
411
404
412
- #: ../../c-api/dict.rst:317
405
+ #: ../../c-api/dict.rst:322
413
406
msgid ""
414
407
"There may already be a pending exception set on entry to the callback. In "
415
408
"this case, the callback should return ``0`` with the same exception still "
@@ -430,10 +423,10 @@ msgstr "dictionary"
430
423
msgid "PyUnicode_FromString()"
431
424
msgstr "PyUnicode_FromString()"
432
425
433
- #: ../../c-api/dict.rst:157
426
+ #: ../../c-api/dict.rst:162
434
427
msgid "built-in function"
435
428
msgstr "組み込み関数"
436
429
437
- #: ../../c-api/dict.rst:157
430
+ #: ../../c-api/dict.rst:162
438
431
msgid "len"
439
432
msgstr "len"
0 commit comments