@@ -37,46 +37,65 @@ msgid ""
37
37
":meth:`__getitem__` method since in general case it is impossible to "
38
38
"determine what the type of keys it supports. This function always succeeds."
39
39
msgstr ""
40
+ "オブジェクトがマップ型プロトコルを提供しているか、スライスをサポートしている場合は ``1`` を、そうでない場合は ``0`` を返します。\n"
41
+ ":meth:`__getitem__` メソッドを持つ Python クラスについては ``1`` を返すのに注意してください。そうなる理由は、一般的なケースではオブジェクトがどの種類のキーをサポートしているかを判別するのが不可能だからです。"
40
42
41
43
#: ../../c-api/mapping.rst:26
42
44
msgid ""
43
45
"Returns the number of keys in object *o* on success, and ``-1`` on failure. "
44
46
"This is equivalent to the Python expression ``len(o)``."
45
47
msgstr ""
48
+ "成功するとオブジェクト *o* 中のキーの数を返し、失敗すると ``-1`` を返します。これは、Python の式 ``len(o)`` "
49
+ "と同じになります。"
46
50
47
51
#: ../../c-api/mapping.rst:32
48
52
msgid ""
49
53
"Return element of *o* corresponding to the string *key* or *NULL* on "
50
54
"failure. This is the equivalent of the Python expression ``o[key]``. See "
51
55
"also :c:func:`PyObject_GetItem`."
52
56
msgstr ""
57
+ "文字列 *key* に対応する *o* の要素を返します。失敗すると *NULL* を返します。\n"
58
+ "Python の式 ``o[key]`` と同じです。\n"
59
+ ":c:func:`PyObject_GetItem` も参照してください。"
53
60
54
61
#: ../../c-api/mapping.rst:39
55
62
msgid ""
56
63
"Map the string *key* to the value *v* in object *o*. Returns ``-1`` on "
57
64
"failure. This is the equivalent of the Python statement ``o[key] = v``. See"
58
65
" also :c:func:`PyObject_SetItem`."
59
66
msgstr ""
67
+ "オブジェクト *o* 上で文字列 *key* を値 *v* に対応付けます。失敗すると ``-1`` を返します。\n"
68
+ "Python の文 ``o[key] = v`` と同じです。\n"
69
+ ":c:func:`PyObject_SetItem` も参照してください。"
60
70
61
71
#: ../../c-api/mapping.rst:46
62
72
msgid ""
63
73
"Remove the mapping for the object *key* from the object *o*. Return ``-1`` "
64
74
"on failure. This is equivalent to the Python statement ``del o[key]``. This"
65
75
" is an alias of :c:func:`PyObject_DelItem`."
66
76
msgstr ""
77
+ "オブジェクト *o* から、オブジェクト *key* に関する対応付けを削除します。\n"
78
+ "失敗すると ``-1`` を返します。\n"
79
+ "Python の文 ``del o[key]`` と同じです。\n"
80
+ "この関数は :c:func:`PyObject_DelItem` の別名です。"
67
81
68
82
#: ../../c-api/mapping.rst:53
69
83
msgid ""
70
84
"Remove the mapping for the string *key* from the object *o*. Return ``-1`` "
71
85
"on failure. This is equivalent to the Python statement ``del o[key]``."
72
86
msgstr ""
87
+ "オブジェクト *o* から、文字列 *key* に関する対応付けを削除します。\n"
88
+ "失敗すると ``-1`` を返します。\n"
89
+ "Python の文 ``del o[key]`` と同じです。"
73
90
74
91
#: ../../c-api/mapping.rst:59 ../../c-api/mapping.rst:66
75
92
msgid ""
76
93
"Return ``1`` if the mapping object has the key *key* and ``0`` otherwise. "
77
94
"This is equivalent to the Python expression ``key in o``. This function "
78
95
"always succeeds."
79
96
msgstr ""
97
+ "マップ型オブジェクトがキー *key* を持つ場合に ``1`` を返し、そうでないときには ``0`` を返します。これは、Python の式 "
98
+ "``key in o`` と等価です。この関数呼び出しは常に成功します。"
80
99
81
100
#: ../../c-api/mapping.rst:73
82
101
msgid ""
0 commit comments