@@ -37,46 +37,65 @@ msgid ""
3737":meth:`__getitem__` method since in general case it is impossible to "
3838"determine what the type of keys it supports. This function always succeeds."
3939msgstr ""
40+ "オブジェクトがマップ型プロトコルを提供しているか、スライスをサポートしている場合は ``1`` を、そうでない場合は ``0`` を返します。\n"
41+ ":meth:`__getitem__` メソッドを持つ Python クラスについては ``1`` を返すのに注意してください。そうなる理由は、一般的なケースではオブジェクトがどの種類のキーをサポートしているかを判別するのが不可能だからです。"
4042
4143#: ../../c-api/mapping.rst:26
4244msgid ""
4345"Returns the number of keys in object *o* on success, and ``-1`` on failure. "
4446"This is equivalent to the Python expression ``len(o)``."
4547msgstr ""
48+ "成功するとオブジェクト *o* 中のキーの数を返し、失敗すると ``-1`` を返します。これは、Python の式 ``len(o)`` "
49+ "と同じになります。"
4650
4751#: ../../c-api/mapping.rst:32
4852msgid ""
4953"Return element of *o* corresponding to the string *key* or *NULL* on "
5054"failure. This is the equivalent of the Python expression ``o[key]``. See "
5155"also :c:func:`PyObject_GetItem`."
5256msgstr ""
57+ "文字列 *key* に対応する *o* の要素を返します。失敗すると *NULL* を返します。\n"
58+ "Python の式 ``o[key]`` と同じです。\n"
59+ ":c:func:`PyObject_GetItem` も参照してください。"
5360
5461#: ../../c-api/mapping.rst:39
5562msgid ""
5663"Map the string *key* to the value *v* in object *o*. Returns ``-1`` on "
5764"failure. This is the equivalent of the Python statement ``o[key] = v``. See"
5865" also :c:func:`PyObject_SetItem`."
5966msgstr ""
67+ "オブジェクト *o* 上で文字列 *key* を値 *v* に対応付けます。失敗すると ``-1`` を返します。\n"
68+ "Python の文 ``o[key] = v`` と同じです。\n"
69+ ":c:func:`PyObject_SetItem` も参照してください。"
6070
6171#: ../../c-api/mapping.rst:46
6272msgid ""
6373"Remove the mapping for the object *key* from the object *o*. Return ``-1`` "
6474"on failure. This is equivalent to the Python statement ``del o[key]``. This"
6575" is an alias of :c:func:`PyObject_DelItem`."
6676msgstr ""
77+ "オブジェクト *o* から、オブジェクト *key* に関する対応付けを削除します。\n"
78+ "失敗すると ``-1`` を返します。\n"
79+ "Python の文 ``del o[key]`` と同じです。\n"
80+ "この関数は :c:func:`PyObject_DelItem` の別名です。"
6781
6882#: ../../c-api/mapping.rst:53
6983msgid ""
7084"Remove the mapping for the string *key* from the object *o*. Return ``-1`` "
7185"on failure. This is equivalent to the Python statement ``del o[key]``."
7286msgstr ""
87+ "オブジェクト *o* から、文字列 *key* に関する対応付けを削除します。\n"
88+ "失敗すると ``-1`` を返します。\n"
89+ "Python の文 ``del o[key]`` と同じです。"
7390
7491#: ../../c-api/mapping.rst:59 ../../c-api/mapping.rst:66
7592msgid ""
7693"Return ``1`` if the mapping object has the key *key* and ``0`` otherwise. "
7794"This is equivalent to the Python expression ``key in o``. This function "
7895"always succeeds."
7996msgstr ""
97+ "マップ型オブジェクトがキー *key* を持つ場合に ``1`` を返し、そうでないときには ``0`` を返します。これは、Python の式 "
98+ "``key in o`` と等価です。この関数呼び出しは常に成功します。"
8099
81100#: ../../c-api/mapping.rst:73
82101msgid ""
0 commit comments