55#
66# Translators:
77# tomo, 2021
8+ # Arihiro TAKASE, 2023
89#
910#, fuzzy
1011msgid ""
1112msgstr ""
1213"Project-Id-Version : Python 3.11\n "
1314"Report-Msgid-Bugs-To : \n "
14- "POT-Creation-Date : 2023-04-14 14:13+0000\n "
15+ "POT-Creation-Date : 2023-04-28 14:13+0000\n "
1516"PO-Revision-Date : 2021-06-28 00:48+0000\n "
16- "Last-Translator : tomo, 2021 \n "
17+ "Last-Translator : Arihiro TAKASE, 2023 \n "
1718"Language-Team : Japanese (https://app.transifex.com/python-doc/teams/5390/ "
1819"ja/)\n "
1920"MIME-Version : 1.0\n "
@@ -46,12 +47,16 @@ msgid ""
4647"Return true if *p* is a dict object or an instance of a subtype of the dict "
4748"type. This function always succeeds."
4849msgstr ""
50+ "*p* が辞書オブジェクトか辞書型のサブタイプのインスタンスである場合に真を返し"
51+ "ます。この関数は常に成功します。"
4952
5053#: ../../c-api/dict.rst:30
5154msgid ""
5255"Return true if *p* is a dict object, but not an instance of a subtype of the "
5356"dict type. This function always succeeds."
5457msgstr ""
58+ "*p* が辞書オブジェクトだが辞書型のサブタイプのインスタンスでない場合に真を返"
59+ "します。この関数は常に成功します。"
5560
5661#: ../../c-api/dict.rst:36
5762msgid "Return a new empty dictionary, or ``NULL`` on failure."
@@ -108,6 +113,11 @@ msgid ""
108113"``PyUnicode_FromString(key)``. Return ``0`` on success or ``-1`` on "
109114"failure. This function *does not* steal a reference to *val*."
110115msgstr ""
116+ "辞書 *p* に、 *key* をキーとして値 *val* を挿入します。\n"
117+ "*key* は :c:expr:`const char*` 型でなければなりません。\n"
118+ "キーオブジェクトは ``PyUnicode_FromString(key)`` で生成されます。\n"
119+ "成功した場合には ``0`` を、失敗した場合には ``-1`` を返します。\n"
120+ "この関数は *val* への参照を盗み取り *ません*。"
111121
112122#: ../../c-api/dict.rst:83
113123msgid ""
@@ -116,13 +126,20 @@ msgid ""
116126"dictionary, :exc:`KeyError` is raised. Return ``0`` on success or ``-1`` on "
117127"failure."
118128msgstr ""
129+ "辞書 *p* から *key* をキーとするエントリを除去します。 *key* は :term:`ハッ"
130+ "シュ可能 <hashable>` でなければなりません; ハッシュ可能でない場合、 :exc:"
131+ "`TypeError` を送出します。*key* が辞書になければ、:exc:`KeyError` を送出しま"
132+ "す。成功した場合には ``0`` を、失敗した場合には ``-1`` を返します。"
119133
120134#: ../../c-api/dict.rst:91
121135msgid ""
122136"Remove the entry in dictionary *p* which has a key specified by the string "
123137"*key*. If *key* is not in the dictionary, :exc:`KeyError` is raised. Return "
124138"``0`` on success or ``-1`` on failure."
125139msgstr ""
140+ "辞書 *p* から文字列 *key* をキーとするエントリを除去します。*key* が辞書にな"
141+ "ければ、:exc:`KeyError` を送出します。成功した場合には ``0`` を、失敗した場合"
142+ "には ``-1`` を返します。"
126143
127144#: ../../c-api/dict.rst:98
128145msgid ""
@@ -165,6 +182,8 @@ msgid ""
165182"This is the same as :c:func:`PyDict_GetItem`, but *key* is specified as a :c:"
166183"expr:`const char*`, rather than a :c:expr:`PyObject*`."
167184msgstr ""
185+ ":c:func:`PyDict_GetItem` と同じですが、 *key* は :c:expr:`PyObject*` ではな"
186+ "く :c:expr:`const char*` で指定します。"
168187
169188#: ../../c-api/dict.rst:123
170189msgid ""
@@ -228,6 +247,18 @@ msgid ""
228247"represents offsets within the internal dictionary structure, and since the "
229248"structure is sparse, the offsets are not consecutive."
230249msgstr ""
250+ "辞書 *p* 内の全てのキー/値のペアにわたる反復処理を行います。\n"
251+ "*ppos* が参照している :c:type:`Py_ssize_t` 型は、この関数で反復処理を開始する"
252+ "際に、最初に関数を呼び出すよりも前に ``0`` に初期化しておかなければなりませ"
253+ "ん。この関数は辞書内の各ペアを取り上げるごとに真を返し、全てのペアを取り上げ"
254+ "たことが分かると偽を返します。\n"
255+ "パラメーター *pkey* および *pvalue* には、それぞれ辞書の各々のキーと値が埋め"
256+ "られた :c:expr:`PyObject*` 変数を指すポインタか、または ``NULL`` が入りま"
257+ "す。\n"
258+ "この関数から返される参照はすべて借用参照になります。\n"
259+ "反復処理中に *ppos* を変更してはなりません。\n"
260+ "この値は内部的な辞書構造体のオフセットを表現しており、構造体はスパースなの"
261+ "で、オフセットの値に一貫性がないためです。"
231262
232263#: ../../c-api/dict.rst:176
233264msgid "For example::"
0 commit comments