@@ -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-06-07 14:15+0000\n "
16
+ "POT-Creation-Date : 2024-06-28 14:15+0000\n "
17
17
"PO-Revision-Date : 2021-06-28 00:48+0000\n "
18
18
"Last-Translator : tomo, 2024\n "
19
19
"Language-Team : Japanese (https://app.transifex.com/python-doc/teams/5390/ "
@@ -344,7 +344,14 @@ msgstr ""
344
344
"応する値を変更しても大丈夫になりましたが、キーの集合を変更しないことが前提で"
345
345
"す。以下に例を示します::"
346
346
347
- #: ../../c-api/dict.rst:296
347
+ #: ../../c-api/dict.rst:293
348
+ msgid ""
349
+ "The function is not thread-safe in the :term:`free-threaded <free "
350
+ "threading>` build without external synchronization. You can use :c:macro:"
351
+ "`Py_BEGIN_CRITICAL_SECTION` to lock the dictionary while iterating over it::"
352
+ msgstr ""
353
+
354
+ #: ../../c-api/dict.rst:307
348
355
msgid ""
349
356
"Iterate over mapping object *b* adding key-value pairs to dictionary *a*. "
350
357
"*b* may be a dictionary, or any object supporting :c:func:`PyMapping_Keys` "
@@ -361,7 +368,7 @@ msgstr ""
361
368
"行います。成功した場合には ``0`` を返し、例外が送出された場合には ``-1`` を返"
362
369
"します。"
363
370
364
- #: ../../c-api/dict.rst:306
371
+ #: ../../c-api/dict.rst:317
365
372
msgid ""
366
373
"This is the same as ``PyDict_Merge(a, b, 1)`` in C, and is similar to ``a."
367
374
"update(b)`` in Python except that :c:func:`PyDict_Update` doesn't fall back "
@@ -374,7 +381,7 @@ msgstr ""
374
381
"性を持たない場合にキー/値ペアのシーケンスを反復することはありません。成功した"
375
382
"場合には ``0`` を返し、例外が送出された場合には ``-1`` を返します。"
376
383
377
- #: ../../c-api/dict.rst:315
384
+ #: ../../c-api/dict.rst:326
378
385
msgid ""
379
386
"Update or merge into dictionary *a*, from the key-value pairs in *seq2*. "
380
387
"*seq2* must be an iterable object producing iterable objects of length 2, "
@@ -390,49 +397,49 @@ msgstr ""
390
397
"は ``-1`` を返します。(戻り値以外は) 等価な Python コードを書くと、以下のよう"
391
398
"になります::"
392
399
393
- #: ../../c-api/dict.rst:329
400
+ #: ../../c-api/dict.rst:340
394
401
msgid ""
395
402
"Register *callback* as a dictionary watcher. Return a non-negative integer "
396
403
"id which must be passed to future calls to :c:func:`PyDict_Watch`. In case "
397
404
"of error (e.g. no more watcher IDs available), return ``-1`` and set an "
398
405
"exception."
399
406
msgstr ""
400
407
401
- #: ../../c-api/dict.rst:338
408
+ #: ../../c-api/dict.rst:349
402
409
msgid ""
403
410
"Clear watcher identified by *watcher_id* previously returned from :c:func:"
404
411
"`PyDict_AddWatcher`. Return ``0`` on success, ``-1`` on error (e.g. if the "
405
412
"given *watcher_id* was never registered.)"
406
413
msgstr ""
407
414
408
- #: ../../c-api/dict.rst:346
415
+ #: ../../c-api/dict.rst:357
409
416
msgid ""
410
417
"Mark dictionary *dict* as watched. The callback granted *watcher_id* by :c:"
411
418
"func:`PyDict_AddWatcher` will be called when *dict* is modified or "
412
419
"deallocated. Return ``0`` on success or ``-1`` on error."
413
420
msgstr ""
414
421
415
- #: ../../c-api/dict.rst:354
422
+ #: ../../c-api/dict.rst:365
416
423
msgid ""
417
424
"Mark dictionary *dict* as no longer watched. The callback granted "
418
425
"*watcher_id* by :c:func:`PyDict_AddWatcher` will no longer be called when "
419
426
"*dict* is modified or deallocated. The dict must previously have been "
420
427
"watched by this watcher. Return ``0`` on success or ``-1`` on error."
421
428
msgstr ""
422
429
423
- #: ../../c-api/dict.rst:363
430
+ #: ../../c-api/dict.rst:374
424
431
msgid ""
425
432
"Enumeration of possible dictionary watcher events: ``PyDict_EVENT_ADDED``, "
426
433
"``PyDict_EVENT_MODIFIED``, ``PyDict_EVENT_DELETED``, "
427
434
"``PyDict_EVENT_CLONED``, ``PyDict_EVENT_CLEARED``, or "
428
435
"``PyDict_EVENT_DEALLOCATED``."
429
436
msgstr ""
430
437
431
- #: ../../c-api/dict.rst:371
438
+ #: ../../c-api/dict.rst:382
432
439
msgid "Type of a dict watcher callback function."
433
440
msgstr ""
434
441
435
- #: ../../c-api/dict.rst:373
442
+ #: ../../c-api/dict.rst:384
436
443
msgid ""
437
444
"If *event* is ``PyDict_EVENT_CLEARED`` or ``PyDict_EVENT_DEALLOCATED``, both "
438
445
"*key* and *new_value* will be ``NULL``. If *event* is ``PyDict_EVENT_ADDED`` "
@@ -441,22 +448,22 @@ msgid ""
441
448
"dictionary and *new_value* will be ``NULL``."
442
449
msgstr ""
443
450
444
- #: ../../c-api/dict.rst:379
451
+ #: ../../c-api/dict.rst:390
445
452
msgid ""
446
453
"``PyDict_EVENT_CLONED`` occurs when *dict* was previously empty and another "
447
454
"dict is merged into it. To maintain efficiency of this operation, per-key "
448
455
"``PyDict_EVENT_ADDED`` events are not issued in this case; instead a single "
449
456
"``PyDict_EVENT_CLONED`` is issued, and *key* will be the source dictionary."
450
457
msgstr ""
451
458
452
- #: ../../c-api/dict.rst:385
459
+ #: ../../c-api/dict.rst:396
453
460
msgid ""
454
461
"The callback may inspect but must not modify *dict*; doing so could have "
455
462
"unpredictable effects, including infinite recursion. Do not trigger Python "
456
463
"code execution in the callback, as it could modify the dict as a side effect."
457
464
msgstr ""
458
465
459
- #: ../../c-api/dict.rst:389
466
+ #: ../../c-api/dict.rst:400
460
467
msgid ""
461
468
"If *event* is ``PyDict_EVENT_DEALLOCATED``, taking a new reference in the "
462
469
"callback to the about-to-be-destroyed dictionary will resurrect it and "
@@ -465,20 +472,20 @@ msgid ""
465
472
"again."
466
473
msgstr ""
467
474
468
- #: ../../c-api/dict.rst:395
475
+ #: ../../c-api/dict.rst:406
469
476
msgid ""
470
477
"Callbacks occur before the notified modification to *dict* takes place, so "
471
478
"the prior state of *dict* can be inspected."
472
479
msgstr ""
473
480
474
- #: ../../c-api/dict.rst:398
481
+ #: ../../c-api/dict.rst:409
475
482
msgid ""
476
483
"If the callback sets an exception, it must return ``-1``; this exception "
477
484
"will be printed as an unraisable exception using :c:func:"
478
485
"`PyErr_WriteUnraisable`. Otherwise it should return ``0``."
479
486
msgstr ""
480
487
481
- #: ../../c-api/dict.rst:402
488
+ #: ../../c-api/dict.rst:413
482
489
msgid ""
483
490
"There may already be a pending exception set on entry to the callback. In "
484
491
"this case, the callback should return ``0`` with the same exception still "
0 commit comments