8
8
msgstr ""
9
9
"Project-Id-Version : Python 3.7\n "
10
10
"Report-Msgid-Bugs-To : \n "
11
- "POT-Creation-Date : 2018-06-30 05:56 +0900\n "
11
+ "POT-Creation-Date : 2018-10-29 09:36 +0900\n "
12
12
"PO-Revision-Date : YEAR-MO-DA HO:MI+ZONE\n "
13
13
"Last-Translator : tomo🐧, 2017\n "
14
14
"Language-Team : Japanese (https://www.transifex.com/python-doc/teams/5390/ja/)\n "
@@ -82,13 +82,13 @@ msgstr ""
82
82
"rules with alternatives) (別名 \" sums\" ) "
83
83
"の場合、左辺は抽象クラスとなり、特定のコンストラクタ・ノードのインスタンスのみが作成されます。"
84
84
85
- #: ../../library/ast.rst:46
85
+ #: ../../library/ast.rst:49
86
86
msgid ""
87
87
"Each concrete class has an attribute :attr:`_fields` which gives the names "
88
88
"of all child nodes."
89
89
msgstr "各具象クラスは属性 :attr:`_fields` を持っており、すべての子ノードの名前をそこに保持しています。"
90
90
91
- #: ../../library/ast.rst:49
91
+ #: ../../library/ast.rst:52
92
92
msgid ""
93
93
"Each instance of a concrete class has one attribute for each child node, of "
94
94
"the type as defined in the grammar. For example, :class:`ast.BinOp` "
@@ -98,7 +98,7 @@ msgstr ""
98
98
":class:`ast.BinOp` のインスタンスは :attr:`left` という属性を持っており、その型は :class:`ast.expr` "
99
99
"です。"
100
100
101
- #: ../../library/ast.rst:53
101
+ #: ../../library/ast.rst:56
102
102
msgid ""
103
103
"If these attributes are marked as optional in the grammar (using a question "
104
104
"mark), the value might be ``None``. If the attributes can have zero-or-more"
@@ -111,7 +111,7 @@ msgstr ""
111
111
"のリストで表されます。全ての属性は AST を :func:`compile` "
112
112
"でコンパイルする際には存在しなければならず、そして妥当な値でなければなりません。"
113
113
114
- #: ../../library/ast.rst:62
114
+ #: ../../library/ast.rst:65
115
115
msgid ""
116
116
"Instances of :class:`ast.expr` and :class:`ast.stmt` subclasses have "
117
117
":attr:`lineno` and :attr:`col_offset` attributes. The :attr:`lineno` is the"
@@ -125,63 +125,63 @@ msgstr ""
125
125
"から数え始めるので、最初の行の行番号は 1 となります)、そして :attr:`col_offset` はノードが生成した最初のトークンの UTF-8 "
126
126
"バイトオフセットとなります。 UTF-8 オフセットが記録される理由は、パーサが内部で UTF-8 を使用するからです。"
127
127
128
- #: ../../library/ast.rst:69
128
+ #: ../../library/ast.rst:72
129
129
msgid ""
130
130
"The constructor of a class :class:`ast.T` parses its arguments as follows:"
131
131
msgstr "クラス :class:`ast.T` のコンストラクタは引数を次のように解析します:"
132
132
133
- #: ../../library/ast.rst:71
133
+ #: ../../library/ast.rst:74
134
134
msgid ""
135
135
"If there are positional arguments, there must be as many as there are items "
136
136
"in :attr:`T._fields`; they will be assigned as attributes of these names."
137
137
msgstr ""
138
138
"位置引数があるとすれば、 :attr:`T._fields` "
139
139
"にあるのと同じだけの個数が無ければなりません。これらの引数はそこにある名前を持った属性として割り当てられます。"
140
140
141
- #: ../../library/ast.rst:73
141
+ #: ../../library/ast.rst:76
142
142
msgid ""
143
143
"If there are keyword arguments, they will set the attributes of the same "
144
144
"names to the given values."
145
145
msgstr "キーワード引数があるとすれば、それらはその名前の属性にその値を割り当てられます。"
146
146
147
- #: ../../library/ast.rst:76
147
+ #: ../../library/ast.rst:79
148
148
msgid ""
149
149
"For example, to create and populate an :class:`ast.UnaryOp` node, you could "
150
150
"use ::"
151
151
msgstr "たとえば、 :class:`ast.UnaryOp` ノードを生成して属性を埋めるには、次のようにすることができます ::"
152
152
153
- #: ../../library/ast.rst:88
153
+ #: ../../library/ast.rst:91
154
154
msgid "or the more compact ::"
155
155
msgstr "もしくはよりコンパクトにも書けます ::"
156
156
157
- #: ../../library/ast.rst:97
157
+ #: ../../library/ast.rst:100
158
158
msgid "Abstract Grammar"
159
159
msgstr "抽象文法 (Abstract Grammar)"
160
160
161
- #: ../../library/ast.rst:99
161
+ #: ../../library/ast.rst:102
162
162
msgid "The abstract grammar is currently defined as follows:"
163
163
msgstr "抽象文法は、現在次のように定義されています:"
164
164
165
- #: ../../library/ast.rst:106
165
+ #: ../../library/ast.rst:109
166
166
msgid ":mod:`ast` Helpers"
167
167
msgstr ":mod:`ast` ヘルパー"
168
168
169
- #: ../../library/ast.rst:108
169
+ #: ../../library/ast.rst:111
170
170
msgid ""
171
171
"Apart from the node classes, the :mod:`ast` module defines these utility "
172
172
"functions and classes for traversing abstract syntax trees:"
173
173
msgstr ""
174
174
"ノード・クラスの他に、 :mod:`ast` モジュールは以下のような抽象構文木をトラバースするためのユーティリティ関数やクラスも定義しています:"
175
175
176
- #: ../../library/ast.rst:113
176
+ #: ../../library/ast.rst:116
177
177
msgid ""
178
178
"Parse the source into an AST node. Equivalent to ``compile(source, "
179
179
"filename, mode, ast.PyCF_ONLY_AST)``."
180
180
msgstr ""
181
181
"*source* を解析して AST ノードにします。``compile(source, filename, mode, "
182
182
"ast.PyCF_ONLY_AST)`` と等価です。"
183
183
184
- #: ../../library/ast.rst:117 ../../library/ast.rst:135
184
+ #: ../../library/ast.rst:120 ../../library/ast.rst:138
185
185
msgid ""
186
186
"It is possible to crash the Python interpreter with a sufficiently "
187
187
"large/complex string due to stack depth limitations in Python's AST "
@@ -190,7 +190,7 @@ msgstr ""
190
190
"十分に大きい文字列や複雑な文字列によって Python の抽象構文木コンパイラのスタックの深さの限界を越えることで、 Python "
191
191
"インタプリタをクラッシュさせることができます。"
192
192
193
- #: ../../library/ast.rst:124
193
+ #: ../../library/ast.rst:127
194
194
msgid ""
195
195
"Safely evaluate an expression node or a string containing a Python literal "
196
196
"or container display. The string or node provided may only consist of the "
@@ -201,7 +201,7 @@ msgstr ""
201
201
"のリテラルまたはコンテナのディスプレイ表現を表す文字列を安全に評価します。与えられる文字列またはノードは次のリテラルのみからなるものに限られます: "
202
202
"文字列、バイト列、数、タプル、リスト、辞書、集合、ブール値、 ``None`` 。"
203
203
204
- #: ../../library/ast.rst:129
204
+ #: ../../library/ast.rst:132
205
205
msgid ""
206
206
"This can be used for safely evaluating strings containing Python values from"
207
207
" untrusted sources without the need to parse the values oneself. It is not "
@@ -211,23 +211,23 @@ msgstr ""
211
211
"この関数は Python "
212
212
"の式を含んだ信頼出来ない出どころからの文字列を、値自身を解析することなしに安全に評価するのに使えます。この関数は、例えば演算や添え字を含んだ任意の複雑な表現を評価するのには使えません。"
213
213
214
- #: ../../library/ast.rst:139
214
+ #: ../../library/ast.rst:142
215
215
msgid "Now allows bytes and set literals."
216
216
msgstr "バイト列リテラルと集合リテラルが受け取れるようになりました。"
217
217
218
- #: ../../library/ast.rst:145
218
+ #: ../../library/ast.rst:148
219
219
msgid ""
220
220
"Return the docstring of the given *node* (which must be a "
221
221
":class:`FunctionDef`, :class:`AsyncFunctionDef`, :class:`ClassDef`, or "
222
222
":class:`Module` node), or ``None`` if it has no docstring. If *clean* is "
223
223
"true, clean up the docstring's indentation with :func:`inspect.cleandoc`."
224
224
msgstr ""
225
225
226
- #: ../../library/ast.rst:151
226
+ #: ../../library/ast.rst:154
227
227
msgid ":class:`AsyncFunctionDef` is now supported."
228
228
msgstr ""
229
229
230
- #: ../../library/ast.rst:157
230
+ #: ../../library/ast.rst:160
231
231
msgid ""
232
232
"When you compile a node tree with :func:`compile`, the compiler expects "
233
233
":attr:`lineno` and :attr:`col_offset` attributes for every node that "
@@ -240,37 +240,37 @@ msgstr ""
240
240
"両属性をサポートする全てのノードに対しそれが存在するものと想定します。生成されたノードに対しこれらを埋めて回るのはどちらかというと退屈な作業なので、このヘルパーが再帰的に二つの属性がセットされていないものに親ノードと同じ値をセットしていきます。再帰の出発点が"
241
241
" *node* です。"
242
242
243
- #: ../../library/ast.rst:166
243
+ #: ../../library/ast.rst:169
244
244
msgid ""
245
245
"Increment the line number of each node in the tree starting at *node* by "
246
246
"*n*. This is useful to \" move code\" to a different location in a file."
247
247
msgstr ""
248
248
"*node* から始まるツリーの全てのノードの行番号を *n* ずつ増やします。これはファイルの中で別の場所に「コードを動かす」ときに便利です。"
249
249
250
- #: ../../library/ast.rst:172
250
+ #: ../../library/ast.rst:175
251
251
msgid ""
252
252
"Copy source location (:attr:`lineno` and :attr:`col_offset`) from *old_node*"
253
253
" to *new_node* if possible, and return *new_node*."
254
254
msgstr ""
255
255
"ソースの場所 (:attr:`lineno` と :attr:`col_offset`) を *old_node* から *new_node* "
256
256
"に可能ならばコピーし、 *new_node* を返します。"
257
257
258
- #: ../../library/ast.rst:178
258
+ #: ../../library/ast.rst:181
259
259
msgid ""
260
260
"Yield a tuple of ``(fieldname, value)`` for each field in ``node._fields`` "
261
261
"that is present on *node*."
262
262
msgstr ""
263
263
"*node* にある ``node._fields`` のそれぞれのフィールドを ``(フィールド名, 値)`` のタプルとして yield します。"
264
264
265
- #: ../../library/ast.rst:184
265
+ #: ../../library/ast.rst:187
266
266
msgid ""
267
267
"Yield all direct child nodes of *node*, that is, all fields that are nodes "
268
268
"and all items of fields that are lists of nodes."
269
269
msgstr ""
270
270
"*node* の直接の子ノード全てを yield します。すなわち、yield "
271
271
"されるのは、ノードであるような全てのフィールドおよびノードのリストであるようなフィールドの全てのアイテムです。"
272
272
273
- #: ../../library/ast.rst:190
273
+ #: ../../library/ast.rst:193
274
274
msgid ""
275
275
"Recursively yield all descendant nodes in the tree starting at *node* "
276
276
"(including *node* itself), in no specified order. This is useful if you "
@@ -279,7 +279,7 @@ msgstr ""
279
279
"*node* の全ての子孫ノード(*node* 自体を含む)を再帰的に yield "
280
280
"します。順番は決められていません。この関数はノードをその場で変更するだけで文脈を気にしないような場合に便利です。"
281
281
282
- #: ../../library/ast.rst:197
282
+ #: ../../library/ast.rst:200
283
283
msgid ""
284
284
"A node visitor base class that walks the abstract syntax tree and calls a "
285
285
"visitor function for every node found. This function may return a value "
@@ -288,13 +288,13 @@ msgstr ""
288
288
"抽象構文木を渡り歩いてビジター関数を見つけたノードごとに呼び出すノード・ビジターの基底クラスです。この関数は :meth:`visit` "
289
289
"メソッドに送られる値を返してもかまいません。"
290
290
291
- #: ../../library/ast.rst:201
291
+ #: ../../library/ast.rst:204
292
292
msgid ""
293
293
"This class is meant to be subclassed, with the subclass adding visitor "
294
294
"methods."
295
295
msgstr "このクラスはビジター・メソッドを付け加えたサブクラスを派生させることを意図しています。"
296
296
297
- #: ../../library/ast.rst:206
297
+ #: ../../library/ast.rst:209
298
298
msgid ""
299
299
"Visit a node. The default implementation calls the method called "
300
300
":samp:`self.visit_{classname}` where *classname* is the name of the node "
@@ -303,11 +303,11 @@ msgstr ""
303
303
"ノードを訪れます。デフォルトの実装では :samp:`self.visit_{classname}` というメソッド (ここで *classname* "
304
304
"はノードのクラス名です) を呼び出すか、そのメソッドがなければ :meth:`generic_visit` を呼び出します。"
305
305
306
- #: ../../library/ast.rst:212
306
+ #: ../../library/ast.rst:215
307
307
msgid "This visitor calls :meth:`visit` on all children of the node."
308
308
msgstr "このビジターはノードの全ての子について :meth:`visit` を呼び出します。"
309
309
310
- #: ../../library/ast.rst:214
310
+ #: ../../library/ast.rst:217
311
311
msgid ""
312
312
"Note that child nodes of nodes that have a custom visitor method won't be "
313
313
"visited unless the visitor calls :meth:`generic_visit` or visits them "
@@ -316,7 +316,7 @@ msgstr ""
316
316
"注意して欲しいのは、専用のビジター・メソッドを具えたノードの子ノードは、このビジターが :meth:`generic_visit` "
317
317
"を呼び出すかそれ自身で子ノードを訪れない限り訪れられないということです。"
318
318
319
- #: ../../library/ast.rst:218
319
+ #: ../../library/ast.rst:221
320
320
msgid ""
321
321
"Don't use the :class:`NodeVisitor` if you want to apply changes to nodes "
322
322
"during traversal. For this a special visitor exists "
@@ -325,13 +325,13 @@ msgstr ""
325
325
"トラバースの途中でノードを変化させたいならば :class:`NodeVisitor` "
326
326
"を使ってはいけません。そうした目的のために変更を許す特別なビジター (:class:`NodeTransformer`) があります。"
327
327
328
- #: ../../library/ast.rst:225
328
+ #: ../../library/ast.rst:228
329
329
msgid ""
330
330
"A :class:`NodeVisitor` subclass that walks the abstract syntax tree and "
331
331
"allows modification of nodes."
332
332
msgstr ":class:`NodeVisitor` のサブクラスで抽象構文木を渡り歩きながらノードを変更することを許すものです。"
333
333
334
- #: ../../library/ast.rst:228
334
+ #: ../../library/ast.rst:231
335
335
msgid ""
336
336
"The :class:`NodeTransformer` will walk the AST and use the return value of "
337
337
"the visitor methods to replace or remove the old node. If the return value "
@@ -344,15 +344,15 @@ msgstr ""
344
344
"``None`` "
345
345
"ならば、ノードはその場から取り去られ、そうでなければ戻り値で置き換えられます。置き換えない場合は戻り値が元のノードそのものであってもかまいません。"
346
346
347
- #: ../../library/ast.rst:234
347
+ #: ../../library/ast.rst:237
348
348
msgid ""
349
349
"Here is an example transformer that rewrites all occurrences of name lookups"
350
350
" (``foo``) to ``data['foo']``::"
351
351
msgstr ""
352
352
"それでは例を示しましょう。Name (たとえば ``foo``) を見つけるたび全て ``data['foo']`` に書き換える変換器 "
353
353
"(transformer) です::"
354
354
355
- #: ../../library/ast.rst:246
355
+ #: ../../library/ast.rst:249
356
356
msgid ""
357
357
"Keep in mind that if the node you're operating on has child nodes you must "
358
358
"either transform the child nodes yourself or call the :meth:`generic_visit` "
@@ -361,7 +361,7 @@ msgstr ""
361
361
"操作しようとしているノードが子ノードを持つならば、その子ノードの変形も自分で行うか、またはそのノードに対し最初に "
362
362
":meth:`generic_visit` メソッドを呼び出すか、それを行うのはあなたの責任だということを肝に銘じましょう。"
363
363
364
- #: ../../library/ast.rst:250
364
+ #: ../../library/ast.rst:253
365
365
msgid ""
366
366
"For nodes that were part of a collection of statements (that applies to all "
367
367
"statement nodes), the visitor may also return a list of nodes rather than "
@@ -370,11 +370,11 @@ msgstr ""
370
370
"文のコレクションであるようなノード (全ての文のノードが当てはまります) "
371
371
"に対して、このビジターは単独のノードではなくノードのリストを返すかもしれません。"
372
372
373
- #: ../../library/ast.rst:254
373
+ #: ../../library/ast.rst:257
374
374
msgid "Usually you use the transformer like this::"
375
375
msgstr "たいてい、変換器の使い方は次のようになります::"
376
376
377
- #: ../../library/ast.rst:261
377
+ #: ../../library/ast.rst:264
378
378
msgid ""
379
379
"Return a formatted dump of the tree in *node*. This is mainly useful for "
380
380
"debugging purposes. The returned string will show the names and the values "
@@ -389,7 +389,7 @@ msgstr ""
389
389
"をセットしなければなりません。行番号や列オフセットのような属性はデフォルトではダンプされません。これが欲しければ、*include_attributes*"
390
390
" を ``True`` にセットすることができます。"
391
391
392
- #: ../../library/ast.rst:270
392
+ #: ../../library/ast.rst:273
393
393
msgid ""
394
394
"`Green Tree Snakes <https://greentreesnakes.readthedocs.io/>`_, an external "
395
395
"documentation resource, has good details on working with Python ASTs."
0 commit comments