@@ -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-08-04 14:13 +0000\n "
16+ "POT-Creation-Date : 2023-08-25 20:17 +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/ "
@@ -110,15 +110,10 @@ msgstr ""
110110#: ../../c-api/dict.rst:75
111111msgid ""
112112"Insert *val* into the dictionary *p* using *key* as a key. *key* should be "
113- "a :c:expr:`const char*`. The key object is created using "
114- "``PyUnicode_FromString(key)``. Return ``0`` on success or ``-1`` on "
115- "failure. This function *does not* steal a reference to *val*."
113+ "a :c:expr:`const char*` UTF-8 encoded bytes string . The key object is "
114+ "created using ``PyUnicode_FromString(key)``. Return ``0`` on success or "
115+ "``-1`` on failure. This function *does not* steal a reference to *val*."
116116msgstr ""
117- "辞書 *p* に、 *key* をキーとして値 *val* を挿入します。\n"
118- "*key* は :c:expr:`const char*` 型でなければなりません。\n"
119- "キーオブジェクトは ``PyUnicode_FromString(key)`` で生成されます。\n"
120- "成功した場合には ``0`` を、失敗した場合には ``-1`` を返します。\n"
121- "この関数は *val* への参照を盗み取り *ません*。"
122117
123118#: ../../c-api/dict.rst:83
124119msgid ""
@@ -134,15 +129,12 @@ msgstr ""
134129
135130#: ../../c-api/dict.rst:91
136131msgid ""
137- "Remove the entry in dictionary *p* which has a key specified by the string "
138- "*key*. If *key* is not in the dictionary, :exc:`KeyError` is raised. Return "
139- "``0`` on success or ``-1`` on failure."
132+ "Remove the entry in dictionary *p* which has a key specified by the UTF-8 "
133+ "encoded bytes string *key*. If *key* is not in the dictionary, :exc:"
134+ "`KeyError` is raised. Return ` `0`` on success or ``-1`` on failure."
140135msgstr ""
141- "辞書 *p* から文字列 *key* をキーとするエントリを除去します。*key* が辞書にな"
142- "ければ、:exc:`KeyError` を送出します。成功した場合には ``0`` を、失敗した場合"
143- "には ``-1`` を返します。"
144136
145- #: ../../c-api/dict.rst:98
137+ #: ../../c-api/dict.rst:99
146138msgid ""
147139"Return the object from dictionary *p* which has a key *key*. Return "
148140"``NULL`` if the key *key* is not present, but *without* setting an exception."
@@ -151,20 +143,20 @@ msgstr ""
151143"キー *key* が存在しない場合には ``NULL`` を返しますが、例外をセット *しません"
152144"*。"
153145
154- #: ../../c-api/dict.rst:103
146+ #: ../../c-api/dict.rst:104
155147msgid ""
156148"Exceptions that occur while this calls :meth:`~object.__hash__` and :meth:"
157149"`~object.__eq__` methods are silently ignored. Prefer the :c:func:"
158150"`PyDict_GetItemWithError` function instead."
159151msgstr ""
160152
161- #: ../../c-api/dict.rst:107
153+ #: ../../c-api/dict.rst:108
162154msgid ""
163155"Calling this API without :term:`GIL` held had been allowed for historical "
164156"reason. It is no longer allowed."
165157msgstr ""
166158
167- #: ../../c-api/dict.rst:114
159+ #: ../../c-api/dict.rst:115
168160msgid ""
169161"Variant of :c:func:`PyDict_GetItem` that does not suppress exceptions. "
170162"Return ``NULL`` **with** an exception set if an exception occurred. Return "
@@ -174,23 +166,22 @@ msgstr ""
174166"例外が発生した場合は、例外をセット **した上で** ``NULL`` を返します。\n"
175167"キーが存在しなかった場合は、例外をセット **せずに** ``NULL`` を返します。"
176168
177- #: ../../c-api/dict.rst:122
169+ #: ../../c-api/dict.rst:123
178170msgid ""
179171"This is the same as :c:func:`PyDict_GetItem`, but *key* is specified as a :c:"
180- "expr:`const char*`, rather than a :c:expr:`PyObject*`."
172+ "expr:`const char*` UTF-8 encoded bytes string, rather than a :c:expr:"
173+ "`PyObject*`."
181174msgstr ""
182- ":c:func:`PyDict_GetItem` と同じですが、 *key* は :c:expr:`PyObject*` ではな"
183- "く :c:expr:`const char*` で指定します。"
184175
185- #: ../../c-api/dict.rst:127
176+ #: ../../c-api/dict.rst:129
186177msgid ""
187178"Exceptions that occur while this calls :meth:`~object.__hash__` and :meth:"
188179"`~object.__eq__` methods or while creating the temporary :class:`str` object "
189180"are silently ignored. Prefer using the :c:func:`PyDict_GetItemWithError` "
190181"function with your own :c:func:`PyUnicode_FromString` *key* instead."
191182msgstr ""
192183
193- #: ../../c-api/dict.rst:136
184+ #: ../../c-api/dict.rst:138
194185msgid ""
195186"This is the same as the Python-level :meth:`dict.setdefault`. If present, "
196187"it returns the value corresponding to *key* from the dictionary *p*. If the "
@@ -205,30 +196,30 @@ msgstr ""
205196"この関数は、 *key* のハッシュ値を検索と挿入ごとに別々に評価するのではなく、一"
206197"度だけしか評価しません。"
207198
208- #: ../../c-api/dict.rst:146
199+ #: ../../c-api/dict.rst:148
209200msgid ""
210201"Return a :c:type:`PyListObject` containing all the items from the dictionary."
211202msgstr "辞書内の全ての要素対が入った :c:type:`PyListObject` を返します。"
212203
213- #: ../../c-api/dict.rst:151
204+ #: ../../c-api/dict.rst:153
214205msgid ""
215206"Return a :c:type:`PyListObject` containing all the keys from the dictionary."
216207msgstr "辞書内の全てのキーが入った :c:type:`PyListObject` を返します。"
217208
218- #: ../../c-api/dict.rst:156
209+ #: ../../c-api/dict.rst:158
219210msgid ""
220211"Return a :c:type:`PyListObject` containing all the values from the "
221212"dictionary *p*."
222213msgstr "辞書 *p* 内の全ての値が入った :c:type:`PyListObject` を返します。"
223214
224- #: ../../c-api/dict.rst:164
215+ #: ../../c-api/dict.rst:166
225216msgid ""
226217"Return the number of items in the dictionary. This is equivalent to "
227218"``len(p)`` on a dictionary."
228219msgstr ""
229220"辞書内の要素の数を返します。辞書に対して ``len(p)`` を実行するのと同じです。"
230221
231- #: ../../c-api/dict.rst:170
222+ #: ../../c-api/dict.rst:172
232223msgid ""
233224"Iterate over all key-value pairs in the dictionary *p*. The :c:type:"
234225"`Py_ssize_t` referred to by *ppos* must be initialized to ``0`` prior to the "
@@ -254,11 +245,11 @@ msgstr ""
254245"この値は内部的な辞書構造体のオフセットを表現しており、構造体はスパースなの"
255246"で、オフセットの値に一貫性がないためです。"
256247
257- #: ../../c-api/dict.rst:181
248+ #: ../../c-api/dict.rst:183
258249msgid "For example::"
259250msgstr "例えば::"
260251
261- #: ../../c-api/dict.rst:191
252+ #: ../../c-api/dict.rst:193
262253msgid ""
263254"The dictionary *p* should not be mutated during iteration. It is safe to "
264255"modify the values of the keys as you iterate over the dictionary, but only "
@@ -268,7 +259,7 @@ msgstr ""
268259"応する値を変更しても大丈夫になりましたが、キーの集合を変更しないことが前提で"
269260"す。以下に例を示します::"
270261
271- #: ../../c-api/dict.rst:216
262+ #: ../../c-api/dict.rst:218
272263msgid ""
273264"Iterate over mapping object *b* adding key-value pairs to dictionary *a*. "
274265"*b* may be a dictionary, or any object supporting :c:func:`PyMapping_Keys` "
@@ -285,7 +276,7 @@ msgstr ""
285276"行います。成功した場合には ``0`` を返し、例外が送出された場合には ``-1`` を返"
286277"します。"
287278
288- #: ../../c-api/dict.rst:226
279+ #: ../../c-api/dict.rst:228
289280msgid ""
290281"This is the same as ``PyDict_Merge(a, b, 1)`` in C, and is similar to ``a."
291282"update(b)`` in Python except that :c:func:`PyDict_Update` doesn't fall back "
@@ -298,7 +289,7 @@ msgstr ""
298289"性を持たない場合にキー/値ペアのシーケンスを反復することはありません。成功した"
299290"場合には ``0`` を返し、例外が送出された場合には ``-1`` を返します。"
300291
301- #: ../../c-api/dict.rst:235
292+ #: ../../c-api/dict.rst:237
302293msgid ""
303294"Update or merge into dictionary *a*, from the key-value pairs in *seq2*. "
304295"*seq2* must be an iterable object producing iterable objects of length 2, "
@@ -314,49 +305,49 @@ msgstr ""
314305"は ``-1`` を返します。(戻り値以外は) 等価な Python コードを書くと、以下のよう"
315306"になります::"
316307
317- #: ../../c-api/dict.rst:249
308+ #: ../../c-api/dict.rst:251
318309msgid ""
319310"Register *callback* as a dictionary watcher. Return a non-negative integer "
320311"id which must be passed to future calls to :c:func:`PyDict_Watch`. In case "
321312"of error (e.g. no more watcher IDs available), return ``-1`` and set an "
322313"exception."
323314msgstr ""
324315
325- #: ../../c-api/dict.rst:258
316+ #: ../../c-api/dict.rst:260
326317msgid ""
327318"Clear watcher identified by *watcher_id* previously returned from :c:func:"
328319"`PyDict_AddWatcher`. Return ``0`` on success, ``-1`` on error (e.g. if the "
329320"given *watcher_id* was never registered.)"
330321msgstr ""
331322
332- #: ../../c-api/dict.rst:266
323+ #: ../../c-api/dict.rst:268
333324msgid ""
334325"Mark dictionary *dict* as watched. The callback granted *watcher_id* by :c:"
335326"func:`PyDict_AddWatcher` will be called when *dict* is modified or "
336327"deallocated. Return ``0`` on success or ``-1`` on error."
337328msgstr ""
338329
339- #: ../../c-api/dict.rst:274
330+ #: ../../c-api/dict.rst:276
340331msgid ""
341332"Mark dictionary *dict* as no longer watched. The callback granted "
342333"*watcher_id* by :c:func:`PyDict_AddWatcher` will no longer be called when "
343334"*dict* is modified or deallocated. The dict must previously have been "
344335"watched by this watcher. Return ``0`` on success or ``-1`` on error."
345336msgstr ""
346337
347- #: ../../c-api/dict.rst:283
338+ #: ../../c-api/dict.rst:285
348339msgid ""
349340"Enumeration of possible dictionary watcher events: ``PyDict_EVENT_ADDED``, "
350341"``PyDict_EVENT_MODIFIED``, ``PyDict_EVENT_DELETED``, "
351342"``PyDict_EVENT_CLONED``, ``PyDict_EVENT_CLEARED``, or "
352343"``PyDict_EVENT_DEALLOCATED``."
353344msgstr ""
354345
355- #: ../../c-api/dict.rst:291
346+ #: ../../c-api/dict.rst:293
356347msgid "Type of a dict watcher callback function."
357348msgstr ""
358349
359- #: ../../c-api/dict.rst:293
350+ #: ../../c-api/dict.rst:295
360351msgid ""
361352"If *event* is ``PyDict_EVENT_CLEARED`` or ``PyDict_EVENT_DEALLOCATED``, both "
362353"*key* and *new_value* will be ``NULL``. If *event* is ``PyDict_EVENT_ADDED`` "
@@ -365,22 +356,22 @@ msgid ""
365356"dictionary and *new_value* will be ``NULL``."
366357msgstr ""
367358
368- #: ../../c-api/dict.rst:299
359+ #: ../../c-api/dict.rst:301
369360msgid ""
370361"``PyDict_EVENT_CLONED`` occurs when *dict* was previously empty and another "
371362"dict is merged into it. To maintain efficiency of this operation, per-key "
372363"``PyDict_EVENT_ADDED`` events are not issued in this case; instead a single "
373364"``PyDict_EVENT_CLONED`` is issued, and *key* will be the source dictionary."
374365msgstr ""
375366
376- #: ../../c-api/dict.rst:305
367+ #: ../../c-api/dict.rst:307
377368msgid ""
378369"The callback may inspect but must not modify *dict*; doing so could have "
379370"unpredictable effects, including infinite recursion. Do not trigger Python "
380371"code execution in the callback, as it could modify the dict as a side effect."
381372msgstr ""
382373
383- #: ../../c-api/dict.rst:309
374+ #: ../../c-api/dict.rst:311
384375msgid ""
385376"If *event* is ``PyDict_EVENT_DEALLOCATED``, taking a new reference in the "
386377"callback to the about-to-be-destroyed dictionary will resurrect it and "
@@ -389,20 +380,20 @@ msgid ""
389380"again."
390381msgstr ""
391382
392- #: ../../c-api/dict.rst:315
383+ #: ../../c-api/dict.rst:317
393384msgid ""
394385"Callbacks occur before the notified modification to *dict* takes place, so "
395386"the prior state of *dict* can be inspected."
396387msgstr ""
397388
398- #: ../../c-api/dict.rst:318
389+ #: ../../c-api/dict.rst:320
399390msgid ""
400391"If the callback sets an exception, it must return ``-1``; this exception "
401392"will be printed as an unraisable exception using :c:func:"
402393"`PyErr_WriteUnraisable`. Otherwise it should return ``0``."
403394msgstr ""
404395
405- #: ../../c-api/dict.rst:322
396+ #: ../../c-api/dict.rst:324
406397msgid ""
407398"There may already be a pending exception set on entry to the callback. In "
408399"this case, the callback should return ``0`` with the same exception still "
@@ -423,10 +414,10 @@ msgstr "dictionary"
423414msgid "PyUnicode_FromString()"
424415msgstr "PyUnicode_FromString()"
425416
426- #: ../../c-api/dict.rst:162
417+ #: ../../c-api/dict.rst:164
427418msgid "built-in function"
428419msgstr "組み込み関数"
429420
430- #: ../../c-api/dict.rst:162
421+ #: ../../c-api/dict.rst:164
431422msgid "len"
432423msgstr "len"
0 commit comments