@@ -15,7 +15,7 @@ msgid ""
15
15
msgstr ""
16
16
"Project-Id-Version :Python 3.8\n "
17
17
"Report-Msgid-Bugs-To :\n "
18
- "POT-Creation-Date :2020-01-01 12:19 +0000\n "
18
+ "POT-Creation-Date :2020-01-29 12:34 +0000\n "
19
19
"PO-Revision-Date :2017-02-16 17:35+0000\n "
20
20
"Last-Translator :tomo, 2020\n "
21
21
"Language-Team :Japanese (https://www.transifex.com/python-doc/teams/5390/ja/)\n "
@@ -89,26 +89,21 @@ msgstr "*p* と同じキーと値のペアが入った新たな辞書を返し
89
89
90
90
#: /home/travis/build/python/cpython-doc-catalog/Doc/c-api/dict.rst:65
91
91
msgid ""
92
- "Insert *value * into the dictionary *p* with a key of *key*. *key* must be "
92
+ "Insert *val * into the dictionary *p* with a key of *key*. *key* must be "
93
93
":term:`hashable`; if it isn't, :exc:`TypeError` will be raised. Return ``0``"
94
- " on success or ``-1`` on failure."
94
+ " on success or ``-1`` on failure. This function *does not* steal a "
95
+ "reference to *val*."
95
96
msgstr ""
96
- "辞書 *p* に、 *key* をキーとして値 *value* を挿入します。 *key* は :term:`ハッシュ可能 <hashable>` "
97
- "でなければなりません; ハッシュ可能でない場合、 :exc:`TypeError` を送出します。成功した場合には ``0`` を、失敗した場合には "
98
- "``-1`` を返します。"
99
97
100
- #: /home/travis/build/python/cpython-doc-catalog/Doc/c-api/dict.rst:74
98
+ #: /home/travis/build/python/cpython-doc-catalog/Doc/c-api/dict.rst:75
101
99
msgid ""
102
- "Insert *value * into the dictionary *p* using *key* as a key. *key* should be"
103
- "a :c:type:`const char\\ *`. The key object is created using "
100
+ "Insert *val * into the dictionary *p* using *key* as a key. *key* should be a "
101
+ " :c:type:`const char\\ *`. The key object is created using "
104
102
"``PyUnicode_FromString(key)``. Return ``0`` on success or ``-1`` on "
105
- "failure."
103
+ "failure. This function *does not* steal a reference to *val*. "
106
104
msgstr ""
107
- "辞書 *p* に、 *key* をキーとして値 *value* を挿入します。 *key* は :c:type:`const char\\ *` "
108
- "型でなければなりません。キーオブジェクトは ``PyUnicode_FromString(key)`` で生成されます。成功した場合には ``0`` "
109
- "を、失敗した場合には ``-1`` を返します。"
110
105
111
- #: /home/travis/build/python/cpython-doc-catalog/Doc/c-api/dict.rst:82
106
+ #: /home/travis/build/python/cpython-doc-catalog/Doc/c-api/dict.rst:83
112
107
msgid ""
113
108
"Remove the entry in dictionary *p* with key *key*. *key* must be hashable; "
114
109
"if it isn't, :exc:`TypeError` is raised. Return ``0`` on success or ``-1`` "
@@ -117,14 +112,14 @@ msgstr ""
117
112
"辞書 *p* から *key* をキーとするエントリを除去します。 *key* はハッシュ可能でなければなりません; ハッシュ可能でない場合、 "
118
113
":exc:`TypeError` を送出します。成功した場合には ``0`` を、失敗した場合には ``-1`` を返します。"
119
114
120
- #: /home/travis/build/python/cpython-doc-catalog/Doc/c-api/dict.rst:89
115
+ #: /home/travis/build/python/cpython-doc-catalog/Doc/c-api/dict.rst:90
121
116
msgid ""
122
117
"Remove the entry in dictionary *p* which has a key specified by the string "
123
118
"*key*. Return ``0`` on success or ``-1`` on failure."
124
119
msgstr ""
125
120
"辞書 *p* から文字列 *key* をキーとするエントリを除去します。成功した場合には ``0`` を、失敗した場合には ``-1`` を返します。"
126
121
127
- #: /home/travis/build/python/cpython-doc-catalog/Doc/c-api/dict.rst:95
122
+ #: /home/travis/build/python/cpython-doc-catalog/Doc/c-api/dict.rst:96
128
123
msgid ""
129
124
"Return the object from dictionary *p* which has a key *key*. Return "
130
125
"``NULL`` if the key *key* is not present, but *without* setting an "
@@ -133,7 +128,7 @@ msgstr ""
133
128
"辞書 *p* 内で *key* をキーとするオブジェクトを返します。\n"
134
129
"キー *key* が存在しない場合には ``NULL`` を返しますが、例外をセット *しません*。"
135
130
136
- #: /home/travis/build/python/cpython-doc-catalog/Doc/c-api/dict.rst:98
131
+ #: /home/travis/build/python/cpython-doc-catalog/Doc/c-api/dict.rst:99
137
132
msgid ""
138
133
"Note that exceptions which occur while calling :meth:`__hash__` and "
139
134
":meth:`__eq__` methods will get suppressed. To get error reporting use "
@@ -142,7 +137,7 @@ msgstr ""
142
137
":meth:`__hash__` メソッドや :meth:`__eq__` メソッドの呼び出し中に起こる例外は抑制されることに注意してください。\n"
143
138
"エラーを報告させるには、代わりに :c:func:`PyDict_GetItemWithError()` を使ってください。"
144
139
145
- #: /home/travis/build/python/cpython-doc-catalog/Doc/c-api/dict.rst:105
140
+ #: /home/travis/build/python/cpython-doc-catalog/Doc/c-api/dict.rst:106
146
141
msgid ""
147
142
"Variant of :c:func:`PyDict_GetItem` that does not suppress exceptions. "
148
143
"Return ``NULL`` **with** an exception set if an exception occurred. Return "
@@ -152,15 +147,15 @@ msgstr ""
152
147
"例外が発生した場合は、例外をセット **した上で** ``NULL`` を返します。\n"
153
148
"キーが存在しなかった場合は、例外をセット **せずに** ``NULL`` を返します。"
154
149
155
- #: /home/travis/build/python/cpython-doc-catalog/Doc/c-api/dict.rst:113
150
+ #: /home/travis/build/python/cpython-doc-catalog/Doc/c-api/dict.rst:114
156
151
msgid ""
157
152
"This is the same as :c:func:`PyDict_GetItem`, but *key* is specified as a "
158
153
":c:type:`const char\\ *`, rather than a :c:type:`PyObject\\ *`."
159
154
msgstr ""
160
155
":c:func:`PyDict_GetItem` と同じですが、 *key* は :c:type:`PyObject\\ *` ではなく "
161
156
":c:type:`const char\\ *` で指定します。"
162
157
163
- #: /home/travis/build/python/cpython-doc-catalog/Doc/c-api/dict.rst:116
158
+ #: /home/travis/build/python/cpython-doc-catalog/Doc/c-api/dict.rst:117
164
159
msgid ""
165
160
"Note that exceptions which occur while calling :meth:`__hash__` and "
166
161
":meth:`__eq__` methods and creating a temporary string object will get "
@@ -170,7 +165,7 @@ msgstr ""
170
165
":meth:`__hash__` メソッドや :meth:`__eq__` メソッドの呼び出し中や、一時的な文字列オブジェクトの作成中に起こる例外は抑制されることに注意してください。\n"
171
166
"エラーを報告させるには、代わりに :c:func:`PyDict_GetItemWithError()` を使ってください。"
172
167
173
- #: /home/travis/build/python/cpython-doc-catalog/Doc/c-api/dict.rst:124
168
+ #: /home/travis/build/python/cpython-doc-catalog/Doc/c-api/dict.rst:125
174
169
msgid ""
175
170
"This is the same as the Python-level :meth:`dict.setdefault`. If present, "
176
171
"it returns the value corresponding to *key* from the dictionary *p*. If the"
@@ -184,30 +179,30 @@ msgstr ""
184
179
"キーが辞書になければ、値 *defaultobj* を挿入し *defaultobj* を返します。\n"
185
180
"この関数は、 *key* のハッシュ値を検索と挿入ごとに別々に評価するのではなく、一度だけしか評価しません。"
186
181
187
- #: /home/travis/build/python/cpython-doc-catalog/Doc/c-api/dict.rst:134
182
+ #: /home/travis/build/python/cpython-doc-catalog/Doc/c-api/dict.rst:135
188
183
msgid ""
189
184
"Return a :c:type:`PyListObject` containing all the items from the "
190
185
"dictionary."
191
186
msgstr "辞書内の全ての要素対が入った :c:type:`PyListObject` を返します。"
192
187
193
- #: /home/travis/build/python/cpython-doc-catalog/Doc/c-api/dict.rst:139
188
+ #: /home/travis/build/python/cpython-doc-catalog/Doc/c-api/dict.rst:140
194
189
msgid ""
195
190
"Return a :c:type:`PyListObject` containing all the keys from the dictionary."
196
191
msgstr "辞書内の全てのキーが入った :c:type:`PyListObject` を返します。"
197
192
198
- #: /home/travis/build/python/cpython-doc-catalog/Doc/c-api/dict.rst:144
193
+ #: /home/travis/build/python/cpython-doc-catalog/Doc/c-api/dict.rst:145
199
194
msgid ""
200
195
"Return a :c:type:`PyListObject` containing all the values from the "
201
196
"dictionary *p*."
202
197
msgstr "辞書 *p* 内の全ての値が入った :c:type:`PyListObject` を返します。"
203
198
204
- #: /home/travis/build/python/cpython-doc-catalog/Doc/c-api/dict.rst:152
199
+ #: /home/travis/build/python/cpython-doc-catalog/Doc/c-api/dict.rst:153
205
200
msgid ""
206
201
"Return the number of items in the dictionary. This is equivalent to "
207
202
"``len(p)`` on a dictionary."
208
203
msgstr "辞書内の要素の数を返します。辞書に対して ``len(p)`` を実行するのと同じです。"
209
204
210
- #: /home/travis/build/python/cpython-doc-catalog/Doc/c-api/dict.rst:158
205
+ #: /home/travis/build/python/cpython-doc-catalog/Doc/c-api/dict.rst:159
211
206
msgid ""
212
207
"Iterate over all key-value pairs in the dictionary *p*. The "
213
208
":c:type:`Py_ssize_t` referred to by *ppos* must be initialized to ``0`` "
@@ -227,11 +222,11 @@ msgstr ""
227
222
"反復処理中に *ppos* を変更してはなりません。\n"
228
223
"この値は内部的な辞書構造体のオフセットを表現しており、構造体はスパースなので、オフセットの値に一貫性がないためです。"
229
224
230
- #: /home/travis/build/python/cpython-doc-catalog/Doc/c-api/dict.rst:169
225
+ #: /home/travis/build/python/cpython-doc-catalog/Doc/c-api/dict.rst:170
231
226
msgid "For example::"
232
227
msgstr "例えば::"
233
228
234
- #: /home/travis/build/python/cpython-doc-catalog/Doc/c-api/dict.rst:179
229
+ #: /home/travis/build/python/cpython-doc-catalog/Doc/c-api/dict.rst:180
235
230
msgid ""
236
231
"The dictionary *p* should not be mutated during iteration. It is safe to "
237
232
"modify the values of the keys as you iterate over the dictionary, but only "
@@ -240,7 +235,7 @@ msgstr ""
240
235
"反復処理中に辞書 *p* "
241
236
"を変更してはなりません。辞書を反復処理する際に、キーに対応する値を変更しても大丈夫になりましたが、キーの集合を変更しないことが前提です。以下に例を示します::"
242
237
243
- #: /home/travis/build/python/cpython-doc-catalog/Doc/c-api/dict.rst:204
238
+ #: /home/travis/build/python/cpython-doc-catalog/Doc/c-api/dict.rst:205
244
239
msgid ""
245
240
"Iterate over mapping object *b* adding key-value pairs to dictionary *a*. "
246
241
"*b* may be a dictionary, or any object supporting :c:func:`PyMapping_Keys` "
@@ -255,7 +250,7 @@ msgstr ""
255
250
"にある際に、既存のペアを置き換えます。それ以外の場合は、 *b* のキーに一致するキーが *a* にないときのみ追加を行います。成功した場合には "
256
251
"``0`` を返し、例外が送出された場合には ``-1`` を返します。"
257
252
258
- #: /home/travis/build/python/cpython-doc-catalog/Doc/c-api/dict.rst:214
253
+ #: /home/travis/build/python/cpython-doc-catalog/Doc/c-api/dict.rst:215
259
254
msgid ""
260
255
"This is the same as ``PyDict_Merge(a, b, 1)`` in C, and is similar to "
261
256
"``a.update(b)`` in Python except that :c:func:`PyDict_Update` doesn't fall "
@@ -268,7 +263,7 @@ msgstr ""
268
263
"属性を持たない場合にキー/値ペアのシーケンスを反復することはありません。成功した場合には ``0`` を返し、例外が送出された場合には ``-1`` "
269
264
"を返します。"
270
265
271
- #: /home/travis/build/python/cpython-doc-catalog/Doc/c-api/dict.rst:223
266
+ #: /home/travis/build/python/cpython-doc-catalog/Doc/c-api/dict.rst:224
272
267
msgid ""
273
268
"Update or merge into dictionary *a*, from the key-value pairs in *seq2*. "
274
269
"*seq2* must be an iterable object producing iterable objects of length 2, "
@@ -283,6 +278,6 @@ msgstr ""
283
278
"が真ならば先に出現したキーを使い、そうでない場合は後に出現したキーを使います。成功した場合には ``0`` を返し、例外が送出された場合には "
284
279
"``-1`` を返します。(戻り値以外は) 等価な Python コードを書くと、以下のようになります::"
285
280
286
- #: /home/travis/build/python/cpython-doc-catalog/Doc/c-api/dict.rst:238
281
+ #: /home/travis/build/python/cpython-doc-catalog/Doc/c-api/dict.rst:239
287
282
msgid "Clear the free list. Return the total number of freed items."
288
283
msgstr "free list をクリアします。解放された要素数を返します。"