@@ -11,7 +11,7 @@ msgid ""
11
11
msgstr ""
12
12
"Project-Id-Version : Python 3.6\n "
13
13
"Report-Msgid-Bugs-To : \n "
14
- "POT-Creation-Date : 2018-01-05 15:01+0000 \n "
14
+ "POT-Creation-Date : 2018-12-21 15:16+0900 \n "
15
15
"PO-Revision-Date : 2018-06-29 17:47+0000\n "
16
16
"Last-Translator : tomo, 2018\n "
17
17
"Language-Team : Japanese (https://www.transifex.com/python-doc/teams/5390/ja/)\n "
@@ -126,7 +126,16 @@ msgstr ""
126
126
"辞書 *p* 内で *key* をキーとするオブジェクトを返します。キー *key* が存在しない場合には *NULL* を返しますが、例外をセット "
127
127
"*しません*。"
128
128
129
- #: ../../c-api/dict.rst:101
129
+ #: ../../c-api/dict.rst:98
130
+ msgid ""
131
+ "Note that exceptions which occur while calling :meth:`__hash__` and "
132
+ ":meth:`__eq__` methods will get suppressed. To get error reporting use "
133
+ ":c:func:`PyDict_GetItemWithError()` instead."
134
+ msgstr ""
135
+ ":meth:`__hash__` メソッドや :meth:`__eq__` メソッドの呼び出し中に起こる例外は抑制されることに注意してください。\n"
136
+ "エラーを報告させるには、代わりに :c:func:`PyDict_GetItemWithError()` を使ってください。"
137
+
138
+ #: ../../c-api/dict.rst:105
130
139
msgid ""
131
140
"Variant of :c:func:`PyDict_GetItem` that does not suppress exceptions. "
132
141
"Return *NULL* **with** an exception set if an exception occurred. Return "
@@ -135,15 +144,25 @@ msgstr ""
135
144
":c:func:`PyDict_GetItem` の変種で例外を隠しません。例外が発生した場合は、例外をセット **した上で** *NULL* "
136
145
"を返します。キーが存在しなかった場合は、例外をセット **せずに** *NULL* を返します。"
137
146
138
- #: ../../c-api/dict.rst:109
147
+ #: ../../c-api/dict.rst:113
139
148
msgid ""
140
149
"This is the same as :c:func:`PyDict_GetItem`, but *key* is specified as a "
141
150
":c:type:`char\\ *`, rather than a :c:type:`PyObject\\ *`."
142
151
msgstr ""
143
152
":c:func:`PyDict_GetItem` と同じですが、 *key* は :c:type:`PyObject\\ *` ではなく "
144
153
":c:type:`char\\ *` で指定します。"
145
154
146
- #: ../../c-api/dict.rst:115
155
+ #: ../../c-api/dict.rst:116
156
+ msgid ""
157
+ "Note that exceptions which occur while calling :meth:`__hash__` and "
158
+ ":meth:`__eq__` methods and creating a temporary string object will get "
159
+ "suppressed. To get error reporting use :c:func:`PyDict_GetItemWithError()` "
160
+ "instead."
161
+ msgstr ""
162
+ ":meth:`__hash__` メソッドや :meth:`__eq__` メソッドの呼び出し中や、一時的な文字列オブジェクトの作成中に起こる例外は抑制されることに注意してください。\n"
163
+ "エラーを報告させるには、代わりに :c:func:`PyDict_GetItemWithError()` を使ってください。"
164
+
165
+ #: ../../c-api/dict.rst:124
147
166
msgid ""
148
167
"This is the same as the Python-level :meth:`dict.setdefault`. If present, "
149
168
"it returns the value corresponding to *key* from the dictionary *p*. If the"
@@ -157,30 +176,30 @@ msgstr ""
157
176
"キーが辞書になければ、値 *defaultobj* を挿入し *defaultobj* を返します。\n"
158
177
"この関数は、 *key* のハッシュ値を検索と挿入ごとに別々に評価するのではなく、一度だけしか評価しません。"
159
178
160
- #: ../../c-api/dict.rst:125
179
+ #: ../../c-api/dict.rst:134
161
180
msgid ""
162
181
"Return a :c:type:`PyListObject` containing all the items from the "
163
182
"dictionary."
164
183
msgstr "辞書内の全ての要素対が入った :c:type:`PyListObject` を返します。"
165
184
166
- #: ../../c-api/dict.rst:130
185
+ #: ../../c-api/dict.rst:139
167
186
msgid ""
168
187
"Return a :c:type:`PyListObject` containing all the keys from the dictionary."
169
188
msgstr "辞書内の全てのキーが入った :c:type:`PyListObject` を返します。"
170
189
171
- #: ../../c-api/dict.rst:135
190
+ #: ../../c-api/dict.rst:144
172
191
msgid ""
173
192
"Return a :c:type:`PyListObject` containing all the values from the "
174
193
"dictionary *p*."
175
194
msgstr "辞書 *p* 内の全ての値が入った :c:type:`PyListObject` を返します。"
176
195
177
- #: ../../c-api/dict.rst:143
196
+ #: ../../c-api/dict.rst:152
178
197
msgid ""
179
198
"Return the number of items in the dictionary. This is equivalent to "
180
199
"``len(p)`` on a dictionary."
181
200
msgstr "辞書内の要素の数を返します。辞書に対して ``len(p)`` を実行するのと同じです。"
182
201
183
- #: ../../c-api/dict.rst:149
202
+ #: ../../c-api/dict.rst:158
184
203
msgid ""
185
204
"Iterate over all key-value pairs in the dictionary *p*. The "
186
205
":c:type:`Py_ssize_t` referred to by *ppos* must be initialized to ``0`` "
@@ -200,11 +219,11 @@ msgstr ""
200
219
"が入ります。この関数から返される参照はすべて借用参照になります。反復処理中に *ppos* "
201
220
"を変更してはなりません。この値は内部的な辞書構造体のオフセットを表現しており、構造体はスパースなので、オフセットの値に一貫性がないためです。"
202
221
203
- #: ../../c-api/dict.rst:160
222
+ #: ../../c-api/dict.rst:169
204
223
msgid "For example::"
205
224
msgstr "例えば::"
206
225
207
- #: ../../c-api/dict.rst:170
226
+ #: ../../c-api/dict.rst:179
208
227
msgid ""
209
228
"The dictionary *p* should not be mutated during iteration. It is safe to "
210
229
"modify the values of the keys as you iterate over the dictionary, but only "
@@ -213,7 +232,7 @@ msgstr ""
213
232
"反復処理中に辞書 *p* "
214
233
"を変更してはなりません。辞書を反復処理する際に、キーに対応する値を変更しても大丈夫になりましたが、キーの集合を変更しないことが前提です。以下に例を示します::"
215
234
216
- #: ../../c-api/dict.rst:195
235
+ #: ../../c-api/dict.rst:204
217
236
msgid ""
218
237
"Iterate over mapping object *b* adding key-value pairs to dictionary *a*. "
219
238
"*b* may be a dictionary, or any object supporting :c:func:`PyMapping_Keys` "
@@ -228,7 +247,7 @@ msgstr ""
228
247
"にある際に、既存のペアを置き換えます。それ以外の場合は、 *b* のキーに一致するキーが *a* にないときのみ追加を行います。成功した場合には "
229
248
"``0`` を返し、例外が送出された場合には ``-1`` を返します。"
230
249
231
- #: ../../c-api/dict.rst:205
250
+ #: ../../c-api/dict.rst:214
232
251
msgid ""
233
252
"This is the same as ``PyDict_Merge(a, b, 1)`` in C, and is similar to "
234
253
"``a.update(b)`` in Python except that :c:func:`PyDict_Update` doesn't fall "
@@ -241,7 +260,7 @@ msgstr ""
241
260
"属性を持たない場合にキー/値ペアのシーケンスを反復することはありません。成功した場合には ``0`` を返し、例外が送出された場合には ``-1`` "
242
261
"を返します。"
243
262
244
- #: ../../c-api/dict.rst:214
263
+ #: ../../c-api/dict.rst:223
245
264
msgid ""
246
265
"Update or merge into dictionary *a*, from the key-value pairs in *seq2*. "
247
266
"*seq2* must be an iterable object producing iterable objects of length 2, "
@@ -256,6 +275,6 @@ msgstr ""
256
275
"が真ならば先に出現したキーを使い、そうでない場合は後に出現したキーを使います。成功した場合には ``0`` を返し、例外が送出された場合には "
257
276
"``-1`` を返します。(戻り値以外は) 等価な Python コードを書くと、以下のようになります::"
258
277
259
- #: ../../c-api/dict.rst:229
278
+ #: ../../c-api/dict.rst:238
260
279
msgid "Clear the free list. Return the total number of freed items."
261
280
msgstr "free list をクリアします。解放された要素数を返します。"
0 commit comments