8
8
msgstr ""
9
9
"Project-Id-Version : Python 3.6\n "
10
10
"Report-Msgid-Bugs-To : \n "
11
- "POT-Creation-Date : 2018-01-05 15:01+0000 \n "
11
+ "POT-Creation-Date : 2018-03-10 12:44+0900 \n "
12
12
"PO-Revision-Date : YEAR-MO-DA HO:MI+ZONE\n "
13
13
"Last-Translator : cocoatomo, 2017\n "
14
14
"Language-Team : Japanese (https://www.transifex.com/python-doc/teams/5390/ja/)\n "
@@ -181,7 +181,14 @@ msgstr ""
181
181
"*source* を解析して AST ノードにします。``compile(source, filename, mode, "
182
182
"ast.PyCF_ONLY_AST)`` と等価です。"
183
183
184
- #: ../../library/ast.rst:119
184
+ #: ../../library/ast.rst:117 ../../library/ast.rst:135
185
+ msgid ""
186
+ "It is possible to crash the Python interpreter with a sufficiently "
187
+ "large/complex string due to stack depth limitations in Python's AST "
188
+ "compiler."
189
+ msgstr ""
190
+
191
+ #: ../../library/ast.rst:124
185
192
msgid ""
186
193
"Safely evaluate an expression node or a string containing a Python literal "
187
194
"or container display. The string or node provided may only consist of the "
@@ -192,7 +199,7 @@ msgstr ""
192
199
"のリテラルまたはコンテナのディスプレイ表現を表す文字列を安全に評価します。与えられる文字列またはノードは次のリテラルのみからなるものに限られます: "
193
200
"文字列、バイト列、数、タプル、リスト、辞書、集合、ブール値、 ``None`` 。"
194
201
195
- #: ../../library/ast.rst:124
202
+ #: ../../library/ast.rst:129
196
203
msgid ""
197
204
"This can be used for safely evaluating strings containing Python values from"
198
205
" untrusted sources without the need to parse the values oneself. It is not "
@@ -202,11 +209,11 @@ msgstr ""
202
209
"この関数は Python "
203
210
"の式を含んだ信頼出来ない出どころからの文字列を、値自身を解析することなしに安全に評価するのに使えます。この関数は、例えば演算や添え字を含んだ任意の複雑な表現を評価するのには使えません。"
204
211
205
- #: ../../library/ast.rst:129
212
+ #: ../../library/ast.rst:139
206
213
msgid "Now allows bytes and set literals."
207
214
msgstr "バイト列リテラルと集合リテラルが受け取れるようになりました。"
208
215
209
- #: ../../library/ast.rst:135
216
+ #: ../../library/ast.rst:145
210
217
msgid ""
211
218
"Return the docstring of the given *node* (which must be a "
212
219
":class:`FunctionDef`, :class:`ClassDef` or :class:`Module` node), or "
@@ -217,7 +224,7 @@ msgstr ""
217
224
"のいずれかのノードでなければなりません) のドキュメント文字列を返します。もしドキュメント文字列が無ければ ``None`` を返します。 "
218
225
"*clean* が真ならば、ドキュメント文字列のインデントを :func:`inspect.cleandoc` を用いて一掃します。"
219
226
220
- #: ../../library/ast.rst:143
227
+ #: ../../library/ast.rst:153
221
228
msgid ""
222
229
"When you compile a node tree with :func:`compile`, the compiler expects "
223
230
":attr:`lineno` and :attr:`col_offset` attributes for every node that "
@@ -230,37 +237,37 @@ msgstr ""
230
237
"両属性をサポートする全てのノードに対しそれが存在するものと想定します。生成されたノードに対しこれらを埋めて回るのはどちらかというと退屈な作業なので、このヘルパーが再帰的に二つの属性がセットされていないものに親ノードと同じ値をセットしていきます。再帰の出発点が"
231
238
" *node* です。"
232
239
233
- #: ../../library/ast.rst:152
240
+ #: ../../library/ast.rst:162
234
241
msgid ""
235
242
"Increment the line number of each node in the tree starting at *node* by "
236
243
"*n*. This is useful to \" move code\" to a different location in a file."
237
244
msgstr ""
238
245
"*node* から始まるツリーの全てのノードの行番号を *n* ずつ増やします。これはファイルの中で別の場所に「コードを動かす」ときに便利です。"
239
246
240
- #: ../../library/ast.rst:158
247
+ #: ../../library/ast.rst:168
241
248
msgid ""
242
249
"Copy source location (:attr:`lineno` and :attr:`col_offset`) from *old_node*"
243
250
" to *new_node* if possible, and return *new_node*."
244
251
msgstr ""
245
252
"ソースの場所 (:attr:`lineno` と :attr:`col_offset`) を *old_node* から *new_node* "
246
253
"に可能ならばコピーし、 *new_node* を返します。"
247
254
248
- #: ../../library/ast.rst:164
255
+ #: ../../library/ast.rst:174
249
256
msgid ""
250
257
"Yield a tuple of ``(fieldname, value)`` for each field in ``node._fields`` "
251
258
"that is present on *node*."
252
259
msgstr ""
253
260
"*node* にある ``node._fields`` のそれぞれのフィールドを ``(フィールド名, 値)`` のタプルとして yield します。"
254
261
255
- #: ../../library/ast.rst:170
262
+ #: ../../library/ast.rst:180
256
263
msgid ""
257
264
"Yield all direct child nodes of *node*, that is, all fields that are nodes "
258
265
"and all items of fields that are lists of nodes."
259
266
msgstr ""
260
267
"*node* の直接の子ノード全てを yield します。すなわち、yield "
261
268
"されるのは、ノードであるような全てのフィールドおよびノードのリストであるようなフィールドの全てのアイテムです。"
262
269
263
- #: ../../library/ast.rst:176
270
+ #: ../../library/ast.rst:186
264
271
msgid ""
265
272
"Recursively yield all descendant nodes in the tree starting at *node* "
266
273
"(including *node* itself), in no specified order. This is useful if you "
@@ -269,7 +276,7 @@ msgstr ""
269
276
"*node* の全ての子孫ノード(*node* 自体を含む)を再帰的に yield "
270
277
"します。順番は決められていません。この関数はノードをその場で変更するだけで文脈を気にしないような場合に便利です。"
271
278
272
- #: ../../library/ast.rst:183
279
+ #: ../../library/ast.rst:193
273
280
msgid ""
274
281
"A node visitor base class that walks the abstract syntax tree and calls a "
275
282
"visitor function for every node found. This function may return a value "
@@ -278,13 +285,13 @@ msgstr ""
278
285
"抽象構文木を渡り歩いてビジター関数を見つけたノードごとに呼び出すノード・ビジターの基底クラスです。この関数は :meth:`visit` "
279
286
"メソッドに送られる値を返してもかまいません。"
280
287
281
- #: ../../library/ast.rst:187
288
+ #: ../../library/ast.rst:197
282
289
msgid ""
283
290
"This class is meant to be subclassed, with the subclass adding visitor "
284
291
"methods."
285
292
msgstr "このクラスはビジター・メソッドを付け加えたサブクラスを派生させることを意図しています。"
286
293
287
- #: ../../library/ast.rst:192
294
+ #: ../../library/ast.rst:202
288
295
msgid ""
289
296
"Visit a node. The default implementation calls the method called "
290
297
":samp:`self.visit_{classname}` where *classname* is the name of the node "
@@ -293,11 +300,11 @@ msgstr ""
293
300
"ノードを訪れます。デフォルトの実装では :samp:`self.visit_{classname}` というメソッド (ここで *classname* "
294
301
"はノードのクラス名です) を呼び出すか、そのメソッドがなければ :meth:`generic_visit` を呼び出します。"
295
302
296
- #: ../../library/ast.rst:198
303
+ #: ../../library/ast.rst:208
297
304
msgid "This visitor calls :meth:`visit` on all children of the node."
298
305
msgstr "このビジターはノードの全ての子について :meth:`visit` を呼び出します。"
299
306
300
- #: ../../library/ast.rst:200
307
+ #: ../../library/ast.rst:210
301
308
msgid ""
302
309
"Note that child nodes of nodes that have a custom visitor method won't be "
303
310
"visited unless the visitor calls :meth:`generic_visit` or visits them "
<
F438
path d="m8.177.677 2.896 2.896a.25.25 0 0 1-.177.427H8.75v1.25a.75.75 0 0 1-1.5 0V4H5.104a.25.25 0 0 1-.177-.427L7.823.677a.25.25 0 0 1 .354 0ZM7.25 10.75a.75.75 0 0 1 1.5 0V12h2.146a.25.25 0 0 1 .177.427l-2.896 2.896a.25.25 0 0 1-.354 0l-2.896-2.896A.25.25 0 0 1 5.104 12H7.25v-1.25Zm-5-2a.75.75 0 0 0 0-1.5h-.5a.75.75 0 0 0 0 1.5h.5ZM6 8a.75.75 0 0 1-.75.75h-.5a.75.75 0 0 1 0-1.5h.5A.75.75 0 0 1 6 8Zm2.25.75a.75.75 0 0 0 0-1.5h-.5a.75.75 0 0 0 0 1.5h.5ZM12 8a.75.75 0 0 1-.75.75h-.5a.75.75 0 0 1 0-1.5h.5A.75.75 0 0 1 12 8Zm2.25.75a.75.75 0 0 0 0-1.5h-.5a.75.75 0 0 0 0 1.5h.5Z"> @@ -306,7 +313,7 @@ msgstr ""
306
313
"注意して欲しいのは、専用のビジター・メソッドを具えたノードの子ノードは、このビジターが :meth:`generic_visit` "
307
314
"を呼び出すかそれ自身で子ノードを訪れない限り訪れられないということです。"
308
315
309
- #: ../../library/ast.rst:204
316
+ #: ../../library/ast.rst:214
310
317
msgid ""
311
318
"Don't use the :class:`NodeVisitor` if you want to apply changes to nodes "
312
319
"during traversal. For this a special visitor exists "
@@ -315,13 +322,13 @@ msgstr ""
315
322
"トラバースの途中でノードを変化させたいならば :class:`NodeVisitor` "
316
323
"を使ってはいけません。そうした目的のために変更を許す特別なビジター (:class:`NodeTransformer`) があります。"
317
324
318
- #: ../../library/ast.rst:211
325
+ #: ../../library/ast.rst:221
319
326
msgid ""
320
327
"A :class:`NodeVisitor` subclass that walks the abstract syntax tree and "
321
328
"allows modification of nodes."
322
329
msgstr ":class:`NodeVisitor` のサブクラスで抽象構文木を渡り歩きながらノードを変更することを許すものです。"
323
330
324
- #: ../../library/ast.rst:214
331
+ #: ../../library/ast.rst:224
325
332
msgid ""
326
333
"The :class:`NodeTransformer` will walk the AST and use the return value of "
327
334
"the visitor methods to replace or remove the old node. If the return value "
@@ -334,15 +341,15 @@ msgstr ""
334
341
"``None`` "
335
342
"ならば、ノードはその場から取り去られ、そうでなければ戻り値で置き換えられます。置き換えない場合は戻り値が元のノードそのものであってもかまいません。"
336
343
337
- #: ../../library/ast.rst:220
344
+ #: ../../library/ast.rst:230
338
345
msgid ""
339
346
"Here is an example transformer that rewrites all occurrences of name lookups"
340
347
" (``foo``) to ``data['foo']``::"
341
348
msgstr ""
342
349
"それでは例を示しましょう。Name (たとえば ``foo``) を見つけるたび全て ``data['foo']`` に書き換える変換器 "
343
350
"(transformer) です::"
344
351
345
- #: ../../library/ast.rst:232
352
+ #: ../../library/ast.rst:242
346
353
msgid ""
347
354
"Keep in mind that if the node you're operating on has child nodes you must "
348
355
"either transform the child nodes yourself or call the :meth:`generic_visit` "
@@ -351,7 +358,7 @@ msgstr ""
351
358
"操作しようとしているノードが子ノードを持つならば、その子ノードの変形も自分で行うか、またはそのノードに対し最初に "
352
359
":meth:`generic_visit` メソッドを呼び出すか、それを行うのはあなたの責任だということを肝に銘じましょう。"
353
360
354
- #: ../../library/ast.rst:236
361
+ #: ../../library/ast.rst:246
355
362
msgid ""
356
363
"For nodes that were part of a collection of statements (that applies to all "
357
364
"statement nodes), the visitor may also return a list of nodes rather than "
@@ -360,11 +367,11 @@ msgstr ""
360
367
"文のコレクションであるようなノード (全ての文のノードが当てはまります) "
361
368
"に対して、このビジターは単独のノードではなくノードのリストを返すかもしれません。"
362
369
363
- #: ../../library/ast.rst:240
370
+ #: ../../library/ast.rst:250
364
371
msgid "Usually you use the transformer like this::"
365
372
msgstr "たいてい、変換器の使い方は次のようになります::"
366
373
367
- #: ../../library/ast.rst:247
374
+ #: ../../library/ast.rst:257
368
375
msgid ""
369
376
"Return a formatted dump of the tree in *node*. This is mainly useful for "
370
377
"debugging purposes. The returned string will show the names and the values "
@@ -379,7 +386,7 @@ msgstr ""
379
386
"をセットしなければなりません。行番号や列オフセットのような属性はデフォルトではダンプされません。これが欲しければ、*include_attributes*"
380
387
" を ``True`` にセットすることができます。"
381
388
382
- #: ../../library/ast.rst:256
389
+ #: ../../library/ast.rst:266
383
390
msgid ""
384
391
"`Green Tree Snakes <https://greentreesnakes.readthedocs.org/>`_, an external"
385
392
" documentation resource, has good details on working with Python ASTs."
0 commit comments