@@ -13,7 +13,7 @@ msgid ""
1313msgstr ""
1414"Project-Id-Version : Python 3.12\n "
1515"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 "
1717"PO-Revision-Date : 2021-06-28 00:48+0000\n "
1818"Last-Translator : Nozomu Kaneko <nozom.kaneko@gmail.com>, 2023\n "
1919"Language-Team : Japanese (https://app.transifex.com/python-doc/teams/5390/ "
@@ -151,24 +151,20 @@ msgstr ""
151151"キー *key* が存在しない場合には ``NULL`` を返しますが、例外をセット *しません"
152152"*。"
153153
154- #: ../../c-api/dict.rst:101
154+ #: ../../c-api/dict.rst:103
155155msgid ""
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."
159159msgstr ""
160- ":meth:`__hash__` メソッドや :meth:`__eq__` メソッドの呼び出し中に起こる例外は"
161- "抑制されることに注意してください。\n"
162- "エラーを報告させるには、代わりに :c:func:`PyDict_GetItemWithError()` を使って"
163- "ください。"
164160
165- #: ../../c-api/dict.rst:105
161+ #: ../../c-api/dict.rst:107
166162msgid ""
167163"Calling this API without :term:`GIL` held had been allowed for historical "
168164"reason. It is no longer allowed."
169165msgstr ""
170166
171- #: ../../c-api/dict.rst:112
167+ #: ../../c-api/dict.rst:114
172168msgid ""
173169"Variant of :c:func:`PyDict_GetItem` that does not suppress exceptions. "
174170"Return ``NULL`` **with** an exception set if an exception occurred. Return "
@@ -178,26 +174,23 @@ msgstr ""
178174"例外が発生した場合は、例外をセット **した上で** ``NULL`` を返します。\n"
179175"キーが存在しなかった場合は、例外をセット **せずに** ``NULL`` を返します。"
180176
181- #: ../../c-api/dict.rst:120
177+ #: ../../c-api/dict.rst:122
182178msgid ""
183179"This is the same as :c:func:`PyDict_GetItem`, but *key* is specified as a :c:"
184180"expr:`const char*`, rather than a :c:expr:`PyObject*`."
185181msgstr ""
186182":c:func:`PyDict_GetItem` と同じですが、 *key* は :c:expr:`PyObject*` ではな"
187183"く :c:expr:`const char*` で指定します。"
188184
189- #: ../../c-api/dict.rst:123
185+ #: ../../c-api/dict.rst:127
190186msgid ""
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."
194191msgstr ""
195- ":meth:`__hash__` メソッドや :meth:`__eq__` メソッドの呼び出し中や、一時的な文"
196- "字列オブジェクトの作成中に起こる例外は抑制されることに注意してください。\n"
197- "エラーを報告させるには、代わりに :c:func:`PyDict_GetItemWithError()` を使って"
198- "ください。"
199192
200- #: ../../c-api/dict.rst:131
193+ #: ../../c-api/dict.rst:136
201194msgid ""
202195"This is the same as the Python-level :meth:`dict.setdefault`. If present, "
203196"it returns the value corresponding to *key* from the dictionary *p*. If the "
@@ -212,30 +205,30 @@ msgstr ""
212205"この関数は、 *key* のハッシュ値を検索と挿入ごとに別々に評価するのではなく、一"
213206"度だけしか評価しません。"
214207
215- #: ../../c-api/dict.rst:141
208+ #: ../../c-api/dict.rst:146
216209msgid ""
217210"Return a :c:type:`PyListObject` containing all the items from the dictionary."
218211msgstr "辞書内の全ての要素対が入った :c:type:`PyListObject` を返します。"
219212
220- #: ../../c-api/dict.rst:146
213+ #: ../../c-api/dict.rst:151
221214msgid ""
222215"Return a :c:type:`PyListObject` containing all the keys from the dictionary."
223216msgstr "辞書内の全てのキーが入った :c:type:`PyListObject` を返します。"
224217
225- #: ../../c-api/dict.rst:151
218+ #: ../../c-api/dict.rst:156
226219msgid ""
227220"Return a :c:type:`PyListObject` containing all the values from the "
228221"dictionary *p*."
229222msgstr "辞書 *p* 内の全ての値が入った :c:type:`PyListObject` を返します。"
230223
231- #: ../../c-api/dict.rst:159
224+ #: ../../c-api/dict.rst:164
232225msgid ""
233226"Return the number of items in the dictionary. This is equivalent to "
234227"``len(p)`` on a dictionary."
235228msgstr ""
236229"辞書内の要素の数を返します。辞書に対して ``len(p)`` を実行するのと同じです。"
237230
238- #: ../../c-api/dict.rst:165
231+ #: ../../c-api/dict.rst:170
239232msgid ""
240233"Iterate over all key-value pairs in the dictionary *p*. The :c:type:"
241234"`Py_ssize_t` referred to by *ppos* must be initialized to ``0`` prior to the "
@@ -261,11 +254,11 @@ msgstr ""
261254"この値は内部的な辞書構造体のオフセットを表現しており、構造体はスパースなの"
262255"で、オフセットの値に一貫性がないためです。"
263256
264- #: ../../c-api/dict.rst:176
257+ #: ../../c-api/dict.rst:181
265258msgid "For example::"
266259msgstr "例えば::"
267260
268- #: ../../c-api/dict.rst:186
261+ #: ../../c-api/dict.rst:191
269262msgid ""
270263"The dictionary *p* should not be mutated during iteration. It is safe to "
271264"modify the values of the keys as you iterate over the dictionary, but only "
@@ -275,7 +268,7 @@ msgstr ""
275268"応する値を変更しても大丈夫になりましたが、キーの集合を変更しないことが前提で"
276269"す。以下に例を示します::"
277270
278- #: ../../c-api/dict.rst:211
271+ #: ../../c-api/dict.rst:216
279272msgid ""
280273"Iterate over mapping object *b* adding key-value pairs to dictionary *a*. "
281274"*b* may be a dictionary, or any object supporting :c:func:`PyMapping_Keys` "
@@ -292,7 +285,7 @@ msgstr ""
292285"行います。成功した場合には ``0`` を返し、例外が送出された場合には ``-1`` を返"
293286"します。"
294287
295- #: ../../c-api/dict.rst:221
288+ #: ../../c-api/dict.rst:226
296289msgid ""
297290"This is the same as ``PyDict_Merge(a, b, 1)`` in C, and is similar to ``a."
298291"update(b)`` in Python except that :c:func:`PyDict_Update` doesn't fall back "
@@ -305,7 +298,7 @@ msgstr ""
305298"性を持たない場合にキー/値ペアのシーケンスを反復することはありません。成功した"
306299"場合には ``0`` を返し、例外が送出された場合には ``-1`` を返します。"
307300
308- #: ../../c-api/dict.rst:230
301+ #: ../../c-api/dict.rst:235
309302msgid ""
310303"Update or merge into dictionary *a*, from the key-value pairs in *seq2*. "
311304"*seq2* must be an iterable object producing iterable objects of length 2, "
@@ -321,49 +314,49 @@ msgstr ""
321314"は ``-1`` を返します。(戻り値以外は) 等価な Python コードを書くと、以下のよう"
322315"になります::"
323316
324- #: ../../c-api/dict.rst:244
317+ #: ../../c-api/dict.rst:249
325318msgid ""
326319"Register *callback* as a dictionary watcher. Return a non-negative integer "
327320"id which must be passed to future calls to :c:func:`PyDict_Watch`. In case "
328321"of error (e.g. no more watcher IDs available), return ``-1`` and set an "
329322"exception."
330323msgstr ""
331324
332- #: ../../c-api/dict.rst:253
325+ #: ../../c-api/dict.rst:258
333326msgid ""
334327"Clear watcher identified by *watcher_id* previously returned from :c:func:"
335328"`PyDict_AddWatcher`. Return ``0`` on success, ``-1`` on error (e.g. if the "
336329"given *watcher_id* was never registered.)"
337330msgstr ""
338331
339- #: ../../c-api/dict.rst:261
332+ #: ../../c-api/dict.rst:266
340333msgid ""
341334"Mark dictionary *dict* as watched. The callback granted *watcher_id* by :c:"
342335"func:`PyDict_AddWatcher` will be called when *dict* is modified or "
343336"deallocated. Return ``0`` on success or ``-1`` on error."
344337msgstr ""
345338
346- #: ../../c-api/dict.rst:269
339+ #: ../../c-api/dict.rst:274
347340msgid ""
348341"Mark dictionary *dict* as no longer watched. The callback granted "
349342"*watcher_id* by :c:func:`PyDict_AddWatcher` will no longer be called when "
350343"*dict* is modified or deallocated. The dict must previously have been "
351344"watched by this watcher. Return ``0`` on success or ``-1`` on error."
352345msgstr ""
353346
354- #: ../../c-api/dict.rst:278
347+ #: ../../c-api/dict.rst:283
355348msgid ""
356349"Enumeration of possible dictionary watcher events: ``PyDict_EVENT_ADDED``, "
357350"``PyDict_EVENT_MODIFIED``, ``PyDict_EVENT_DELETED``, "
358351"``PyDict_EVENT_CLONED``, ``PyDict_EVENT_CLEARED``, or "
359352"``PyDict_EVENT_DEALLOCATED``."
360353msgstr ""
361354
362- #: ../../c-api/dict.rst:286
355+ #: ../../c-api/dict.rst:291
363356msgid "Type of a dict watcher callback function."
364357msgstr ""
365358
366- #: ../../c-api/dict.rst:288
359+ #: ../../c-api/dict.rst:293
367360msgid ""
368361"If *event* is ``PyDict_EVENT_CLEARED`` or ``PyDict_EVENT_DEALLOCATED``, both "
369362"*key* and *new_value* will be ``NULL``. If *event* is ``PyDict_EVENT_ADDED`` "
@@ -372,22 +365,22 @@ msgid ""
372365"dictionary and *new_value* will be ``NULL``."
373366msgstr ""
374367
375- #: ../../c-api/dict.rst:294
368+ #: ../../c-api/dict.rst:299
376369msgid ""
377370"``PyDict_EVENT_CLONED`` occurs when *dict* was previously empty and another "
378371"dict is merged into it. To maintain efficiency of this operation, per-key "
379372"``PyDict_EVENT_ADDED`` events are not issued in this case; instead a single "
380373"``PyDict_EVENT_CLONED`` is issued, and *key* will be the source dictionary."
381374msgstr ""
382375
383- #: ../../c-api/dict.rst:300
376+ #: ../../c-api/dict.rst:305
384377msgid ""
385378"The callback may inspect but must not modify *dict*; doing so could have "
386379"unpredictable effects, including infinite recursion. Do not trigger Python "
387380"code execution in the callback, as it could modify the dict as a side effect."
388381msgstr ""
389382
390- #: ../../c-api/dict.rst:304
383+ #: ../../c-api/dict.rst:309
391384msgid ""
392385"If *event* is ``PyDict_EVENT_DEALLOCATED``, taking a new reference in the "
393386"callback to the about-to-be-destroyed dictionary will resurrect it and "
@@ -396,20 +389,20 @@ msgid ""
396389"again."
397390msgstr ""
398391
399- #: ../../c-api/dict.rst:310
392+ #: ../../c-api/dict.rst:315
400393msgid ""
401394"Callbacks occur before the notified modification to *dict* takes place, so "
402395"the prior state of *dict* can be inspected."
403396msgstr ""
404397
405- #: ../../c-api/dict.rst:313
398+ #: ../../c-api/dict.rst:318
406399msgid ""
407400"If the callback sets an exception, it must return ``-1``; this exception "
408401"will be printed as an unraisable exception using :c:func:"
409402"`PyErr_WriteUnraisable`. Otherwise it should return ``0``."
410403msgstr ""
411404
412- #: ../../c-api/dict.rst:317
405+ #: ../../c-api/dict.rst:322
413406msgid ""
414407"There may already be a pending exception set on entry to the callback. In "
415408"this case, the callback should return ``0`` with the same exception still "
@@ -430,10 +423,10 @@ msgstr "dictionary"
430423msgid "PyUnicode_FromString()"
431424msgstr "PyUnicode_FromString()"
432425
433- #: ../../c-api/dict.rst:157
426+ #: ../../c-api/dict.rst:162
434427msgid "built-in function"
435428msgstr "組み込み関数"
436429
437- #: ../../c-api/dict.rst:157
430+ #: ../../c-api/dict.rst:162
438431msgid "len"
439432msgstr "len"
0 commit comments