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