88msgstr ""
99"Project-Id-Version : Python 3.6\n "
1010"Report-Msgid-Bugs-To : \n "
11- "POT-Creation-Date : 2018-01-05 15:01+0000 \n "
11+ "POT-Creation-Date : 2018-05-23 13:22+0900 \n "
1212"PO-Revision-Date : YEAR-MO-DA HO:MI+ZONE\n "
13- "Last-Translator : cocoatomo , 2017\n "
13+ "Last-Translator : Arihiro TAKASE <artakase@gmail.com> , 2017\n "
1414"Language-Team : Japanese (https://www.transifex.com/python-doc/teams/5390/ja/)\n "
1515"MIME-Version : 1.0\n "
1616"Content-Type : text/plain; charset=UTF-8\n "
@@ -22,84 +22,80 @@ msgstr ""
2222msgid "Mapping Protocol"
2323msgstr "マップ型プロトコル (mapping protocol)"
2424
25- #: ../../c-api/mapping.rst:11
25+ #: ../../c-api/mapping.rst:8
2626msgid ""
27- "Return ``1`` if the object provides mapping protocol, and ``0`` otherwise. "
28- "This function always succeeds ."
27+ "See also :c:func:`PyObject_GetItem`, :c:func:`PyObject_SetItem` and "
28+ ":c:func:`PyObject_DelItem` ."
2929msgstr ""
30- "オブジェクトがマップ型プロトコルを提供している場合に ``1`` を返し、そうでないときには ``0`` を返します。この関数呼び出しは常に成功します。"
3130
32- #: ../../c-api/mapping.rst:20
31+ #: ../../c-api/mapping.rst:14
3332msgid ""
34- "Returns the number of keys in object *o* on success, and ``-1`` on failure."
35- " For objects that do not provide mapping protocol, this is equivalent to "
36- "the Python expression ``len(o)``."
33+ "Return ``1`` if the object provides mapping protocol or supports slicing, "
34+ "and ``0`` otherwise. Note that it returns ``1`` for Python classes with a "
35+ ":meth:`__getitem__` method since in general case it is impossible to "
36+ "determine what the type of keys it supports. This function always succeeds."
3737msgstr ""
38- "成功するとオブジェクト *o* 中のキーの数を返し、失敗すると ``-1`` "
39- "を返します。マップ型プロトコルを提供していないオブジェクトに対しては、Python の式 ``len(o)`` と同じになります。"
4038
41- #: ../../c-api/mapping.rst:27 ../../c-api/mapping.rst:33
39+ #: ../../c-api/mapping.rst:26
4240msgid ""
43- "Remove the mapping for object *key* from the object *o*. Return ``-1`` on "
44- "failure. This is equivalent to the Python statement ``del o[key]``."
41+ "Returns the number of keys in object *o* on success, and ``-1`` on failure. "
42+ "This is equivalent to the Python expression ``len(o)``."
43+ msgstr ""
44+
45+ #: ../../c-api/mapping.rst:32
46+ msgid ""
47+ "Return element of *o* corresponding to the string *key* or *NULL* on "
48+ "failure. This is the equivalent of the Python expression ``o[key]``. See "
49+ "also :c:func:`PyObject_GetItem`."
4550msgstr ""
46- "オブジェクト *o* から *key* に関する対応付けを削除します。失敗すると ``-1`` を返します。Python の文 ``del "
47- "o[key]`` と同じです。"
4851
4952#: ../../c-api/mapping.rst:39
5053msgid ""
51- "On success, return ``1`` if the mapping object has the key *key* and ``0`` "
52- "otherwise . This is equivalent to the Python expression ``key in o ``. This "
53- "function always succeeds ."
54+ "Map the string *key* to the value *v* in object *o*. Returns ``-1`` on "
55+ "failure . This is the equivalent of the Python statement ``o[ key] = v ``. See "
56+ " also :c:func:`PyObject_SetItem` ."
5457msgstr ""
55- "成功すると、マップ型オブジェクトがキー *key* を持つ場合に ``1`` を返し、そうでないときには ``0`` を返します。これは、Python "
56- "式 ``key in o`` と等価です。この関数呼び出しは常に成功します。"
5758
5859#: ../../c-api/mapping.rst:46
5960msgid ""
60- "Return ``1`` if the mapping object has the key *key* and ``0`` otherwise. "
61- "This is equivalent to the Python expression ``key in o ``. This function "
62- "always succeeds ."
61+ "Remove the mapping for the object *key* from the object *o*. Return ``-1`` "
62+ "on failure. This is equivalent to the Python statement ``del o[key] ``. This"
63+ " is an alias of :c:func:`PyObject_DelItem` ."
6364msgstr ""
64- "マップ型オブジェクトがキー *key* を持つ場合に ``1`` を返し、そうでないときには ``0`` を返します。これは、Python 式 "
65- "``key in o`` と等価です。この関数呼び出しは常に成功します。"
6665
6766#: ../../c-api/mapping.rst:53
6867msgid ""
68+ "Remove the mapping for the string *key* from the object *o*. Return ``-1`` "
69+ "on failure. This is equivalent to the Python statement ``del o[key]``."
70+ msgstr ""
71+
72+ #: ../../c-api/mapping.rst:59 ../../c-api/mapping.rst:66
73+ msgid ""
74+ "Return ``1`` if the mapping object has the key *key* and ``0`` otherwise. "
75+ "This is equivalent to the Python expression ``key in o``. This function "
76+ "always succeeds."
77+ msgstr ""
78+
79+ #: ../../c-api/mapping.rst:73
80+ msgid ""
6981"On success, return a list or tuple of the keys in object *o*. On failure, "
7082"return *NULL*."
7183msgstr ""
7284"成功するとオブジェクト *o* のキーからなるリストもしくはタプルを返します。\n"
7385"失敗すると *NULL* を返します。"
7486
75- #: ../../c-api/mapping.rst:59
87+ #: ../../c-api/mapping.rst:79
7688msgid ""
7789"On success, return a list or tuple of the values in object *o*. On failure,"
7890" return *NULL*."
7991msgstr ""
8092"成功するとオブジェクト *o* の値からなるリストもしくはタプルを返します。\n"
8193"失敗すると *NULL* を返します。"
8294
83- #: ../../c-api/mapping.rst:65
95+ #: ../../c-api/mapping.rst:85
8496msgid ""
8597"On success, return a list or tuple of the items in object *o*, where each "
8698"item is a tuple containing a key-value pair. On failure, return *NULL*."
8799msgstr ""
88100"成功するとオブジェクト *o* の要素からなるリストもしくはタプルを返し、各要素はキーと値のペアが入ったタプルになっています。\n"
89101"失敗すると *NULL* を返します。"
90-
91- #: ../../c-api/mapping.rst:71
92- msgid ""
93- "Return element of *o* corresponding to the object *key* or *NULL* on "
94- "failure. This is the equivalent of the Python expression ``o[key]``."
95- msgstr ""
96- "オブジェクト *key* に対応する *o* の要素を返します。失敗すると *NULL* を返します。Python の式 ``o[key]`` "
97- "と同じです。"
98-
99- #: ../../c-api/mapping.rst:77
100- msgid ""
101- "Map the object *key* to the value *v* in object *o*. Returns ``-1`` on "
102- "failure. This is the equivalent of the Python statement ``o[key] = v``."
103- msgstr ""
104- "オブジェクト *o* で *key* を値 *v* に対応付けます。失敗すると ``-1`` を返します。Python の文 ``o[key] = "
105- "v`` と同じです。"
0 commit comments