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