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