88msgstr ""
99"Project-Id-Version : Python 3.7\n "
1010"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 "
1212"PO-Revision-Date : YEAR-MO-DA HO:MI+ZONE\n "
1313"Last-Translator : tomo🐧, 2017\n "
1414"Language-Team : Japanese (https://www.transifex.com/python-doc/teams/5390/ja/)\n "
@@ -82,13 +82,13 @@ msgstr ""
8282"rules with alternatives) (別名 \" sums\" ) "
8383"の場合、左辺は抽象クラスとなり、特定のコンストラクタ・ノードのインスタンスのみが作成されます。"
8484
85- #: ../../library/ast.rst:46
85+ #: ../../library/ast.rst:49
8686msgid ""
8787"Each concrete class has an attribute :attr:`_fields` which gives the names "
8888"of all child nodes."
8989msgstr "各具象クラスは属性 :attr:`_fields` を持っており、すべての子ノードの名前をそこに保持しています。"
9090
91- #: ../../library/ast.rst:49
91+ #: ../../library/ast.rst:52
9292msgid ""
9393"Each instance of a concrete class has one attribute for each child node, of "
9494"the type as defined in the grammar. For example, :class:`ast.BinOp` "
@@ -98,7 +98,7 @@ msgstr ""
9898":class:`ast.BinOp` のインスタンスは :attr:`left` という属性を持っており、その型は :class:`ast.expr` "
9999"です。"
100100
101- #: ../../library/ast.rst:53
101+ #: ../../library/ast.rst:56
102102msgid ""
103103"If these attributes are marked as optional in the grammar (using a question "
104104"mark), the value might be ``None``. If the attributes can have zero-or-more"
@@ -111,7 +111,7 @@ msgstr ""
111111"のリストで表されます。全ての属性は AST を :func:`compile` "
112112"でコンパイルする際には存在しなければならず、そして妥当な値でなければなりません。"
113113
114- #: ../../library/ast.rst:62
114+ #: ../../library/ast.rst:65
115115msgid ""
116116"Instances of :class:`ast.expr` and :class:`ast.stmt` subclasses have "
117117":attr:`lineno` and :attr:`col_offset` attributes. The :attr:`lineno` is the"
@@ -125,63 +125,63 @@ msgstr ""
125125"から数え始めるので、最初の行の行番号は 1 となります)、そして :attr:`col_offset` はノードが生成した最初のトークンの UTF-8 "
126126"バイトオフセットとなります。 UTF-8 オフセットが記録される理由は、パーサが内部で UTF-8 を使用するからです。"
127127
128- #: ../../library/ast.rst:69
128+ #: ../../library/ast.rst:72
129129msgid ""
130130"The constructor of a class :class:`ast.T` parses its arguments as follows:"
131131msgstr "クラス :class:`ast.T` のコンストラクタは引数を次のように解析します:"
132132
133- #: ../../library/ast.rst:71
133+ #: ../../library/ast.rst:74
134134msgid ""
135135"If there are positional arguments, there must be as many as there are items "
136136"in :attr:`T._fields`; they will be assigned as attributes of these names."
137137msgstr ""
138138"位置引数があるとすれば、 :attr:`T._fields` "
139139"にあるのと同じだけの個数が無ければなりません。これらの引数はそこにある名前を持った属性として割り当てられます。"
140140
141- #: ../../library/ast.rst:73
141+ #: ../../library/ast.rst:76
142142msgid ""
143143"If there are keyword arguments, they will set the attributes of the same "
144144"names to the given values."
145145msgstr "キーワード引数があるとすれば、それらはその名前の属性にその値を割り当てられます。"
146146
147- #: ../../library/ast.rst:76
147+ #: ../../library/ast.rst:79
148148msgid ""
149149"For example, to create and populate an :class:`ast.UnaryOp` node, you could "
150150"use ::"
151151msgstr "たとえば、 :class:`ast.UnaryOp` ノードを生成して属性を埋めるには、次のようにすることができます ::"
152152
153- #: ../../library/ast.rst:88
153+ #: ../../library/ast.rst:91
154154msgid "or the more compact ::"
155155msgstr "もしくはよりコンパクトにも書けます ::"
156156
157- #: ../../library/ast.rst:97
157+ #: ../../library/ast.rst:100
158158msgid "Abstract Grammar"
159159msgstr "抽象文法 (Abstract Grammar)"
160160
161- #: ../../library/ast.rst:99
161+ #: ../../library/ast.rst:102
162162msgid "The abstract grammar is currently defined as follows:"
163163msgstr "抽象文法は、現在次のように定義されています:"
164164
165- #: ../../library/ast.rst:106
165+ #: ../../library/ast.rst:109
166166msgid ":mod:`ast` Helpers"
167167msgstr ":mod:`ast` ヘルパー"
168168
169- #: ../../library/ast.rst:108
169+ #: ../../library/ast.rst:111
170170msgid ""
171171"Apart from the node classes, the :mod:`ast` module defines these utility "
172172"functions and classes for traversing abstract syntax trees:"
173173msgstr ""
174174"ノード・クラスの他に、 :mod:`ast` モジュールは以下のような抽象構文木をトラバースするためのユーティリティ関数やクラスも定義しています:"
175175
176- #: ../../library/ast.rst:113
176+ #: ../../library/ast.rst:116
177177msgid ""
178178"Parse the source into an AST node. Equivalent to ``compile(source, "
179179"filename, mode, ast.PyCF_ONLY_AST)``."
180180msgstr ""
181181"*source* を解析して AST ノードにします。``compile(source, filename, mode, "
182182"ast.PyCF_ONLY_AST)`` と等価です。"
183183
184- #: ../../library/ast.rst:117 ../../library/ast.rst:135
184+ #: ../../library/ast.rst:120 ../../library/ast.rst:138
185185msgid ""
186186"It is possible to crash the Python interpreter with a sufficiently "
187187"large/complex string due to stack depth limitations in Python's AST "
@@ -190,7 +190,7 @@ msgstr ""
190190"十分に大きい文字列や複雑な文字列によって Python の抽象構文木コンパイラのスタックの深さの限界を越えることで、 Python "
191191"インタプリタをクラッシュさせることができます。"
192192
193- #: ../../library/ast.rst:124
193+ #: ../../library/ast.rst:127
194194msgid ""
195195"Safely evaluate an expression node or a string containing a Python literal "
196196"or container display. The string or node provided may only consist of the "
@@ -201,7 +201,7 @@ msgstr ""
201201"のリテラルまたはコンテナのディスプレイ表現を表す文字列を安全に評価します。与えられる文字列またはノードは次のリテラルのみからなるものに限られます: "
202202"文字列、バイト列、数、タプル、リスト、辞書、集合、ブール値、 ``None`` 。"
203203
204- #: ../../library/ast.rst:129
204+ #: ../../library/ast.rst:132
205205msgid ""
206206"This can be used for safely evaluating strings containing Python values from"
207207" untrusted sources without the need to parse the values oneself. It is not "
@@ -211,23 +211,23 @@ msgstr ""
211211"この関数は Python "
212212"の式を含んだ信頼出来ない出どころからの文字列を、値自身を解析することなしに安全に評価するのに使えます。この関数は、例えば演算や添え字を含んだ任意の複雑な表現を評価するのには使えません。"
213213
214- #: ../../library/ast.rst:139
214+ #: ../../library/ast.rst:142
215215msgid "Now allows bytes and set literals."
216216msgstr "バイト列リテラルと集合リテラルが受け取れるようになりました。"
217217
218- #: ../../library/ast.rst:145
218+ #: ../../library/ast.rst:148
219219msgid ""
220220"Return the docstring of the given *node* (which must be a "
221221":class:`FunctionDef`, :class:`AsyncFunctionDef`, :class:`ClassDef`, or "
222222":class:`Module` node), or ``None`` if it has no docstring. If *clean* is "
223223"true, clean up the docstring's indentation with :func:`inspect.cleandoc`."
224224msgstr ""
225225
226- #: ../../library/ast.rst:151
226+ #: ../../library/ast.rst:154
227227msgid ":class:`AsyncFunctionDef` is now supported."
228228msgstr ""
229229
230- #: ../../library/ast.rst:157
230+ #: ../../library/ast.rst:160
231231msgid ""
232232"When you compile a node tree with :func:`compile`, the compiler expects "
233233":attr:`lineno` and :attr:`col_offset` attributes for every node that "
@@ -240,37 +240,37 @@ msgstr ""
240240"両属性をサポートする全てのノードに対しそれが存在するものと想定します。生成されたノードに対しこれらを埋めて回るのはどちらかというと退屈な作業なので、このヘルパーが再帰的に二つの属性がセットされていないものに親ノードと同じ値をセットしていきます。再帰の出発点が"
241241" *node* です。"
242242
243- #: ../../library/ast.rst:166
243+ #: ../../library/ast.rst:169
244244msgid ""
245245"Increment the line number of each node in the tree starting at *node* by "
246246"*n*. This is useful to \" move code\" to a different location in a file."
247247msgstr ""
248248"*node* から始まるツリーの全てのノードの行番号を *n* ずつ増やします。これはファイルの中で別の場所に「コードを動かす」ときに便利です。"
249249
250- #: ../../library/ast.rst:172
250+ #: ../../library/ast.rst:175
251251msgid ""
252252"Copy source location (:attr:`lineno` and :attr:`col_offset`) from *old_node*"
253253" to *new_node* if possible, and return *new_node*."
254254msgstr ""
255255"ソースの場所 (:attr:`lineno` と :attr:`col_offset`) を *old_node* から *new_node* "
256256"に可能ならばコピーし、 *new_node* を返します。"
257257
258- #: ../../library/ast.rst:178
258+ #: ../../library/ast.rst:181
259259msgid ""
260260"Yield a tuple of ``(fieldname, value)`` for each field in ``node._fields`` "
261261"that is present on *node*."
262262msgstr ""
263263"*node* にある ``node._fields`` のそれぞれのフィールドを ``(フィールド名, 値)`` のタプルとして yield します。"
264264
265- #: ../../library/ast.rst:184
265+ #: ../../library/ast.rst:187
266266msgid ""
267267"Yield all direct child nodes of *node*, that is, all fields that are nodes "
268268"and all items of fields that are lists of nodes."
269269msgstr ""
270270"*node* の直接の子ノード全てを yield します。すなわち、yield "
271271"されるのは、ノードであるような全てのフィールドおよびノードのリストであるようなフィールドの全てのアイテムです。"
272272
273- #: ../../library/ast.rst:190
273+ #: ../../library/ast.rst:193
274274msgid ""
275275"Recursively yield all descendant nodes in the tree starting at *node* "
276276"(including *node* itself), in no specified order. This is useful if you "
@@ -279,7 +279,7 @@ msgstr ""
279279"*node* の全ての子孫ノード(*node* 自体を含む)を再帰的に yield "
280280"します。順番は決められていません。この関数はノードをその場で変更するだけで文脈を気にしないような場合に便利です。"
281281
282- #: ../../library/ast.rst:197
282+ #: ../../library/ast.rst:200
283283msgid ""
284284"A node visitor base class that walks the abstract syntax tree and calls a "
285285"visitor function for every node found. This function may return a value "
@@ -288,13 +288,13 @@ msgstr ""
288288"抽象構文木を渡り歩いてビジター関数を見つけたノードごとに呼び出すノード・ビジターの基底クラスです。この関数は :meth:`visit` "
289289"メソッドに送られる値を返してもかまいません。"
290290
291- #: ../../library/ast.rst:201
291+ #: ../../library/ast.rst:204
292292msgid ""
293293"This class is meant to be subclassed, with the subclass adding visitor "
294294"methods."
295295msgstr "このクラスはビジター・メソッドを付け加えたサブクラスを派生させることを意図しています。"
296296
297- #: ../../library/ast.rst:206
297+ #: ../../library/ast.rst:209
298298msgid ""
299299"Visit a node. The default implementation calls the method called "
300300":samp:`self.visit_{classname}` where *classname* is the name of the node "
@@ -303,11 +303,11 @@ msgstr ""
303303"ノードを訪れます。デフォルトの実装では :samp:`self.visit_{classname}` というメソッド (ここで *classname* "
304304"はノードのクラス名です) を呼び出すか、そのメソッドがなければ :meth:`generic_visit` を呼び出します。"
305305
306- #: ../../library/ast.rst:212
306+ #: ../../library/ast.rst:215
307307msgid "This visitor calls :meth:`visit` on all children of the node."
308308msgstr "このビジターはノードの全ての子について :meth:`visit` を呼び出します。"
309309
310- #: ../../library/ast.rst:214
310+ #: ../../library/ast.rst:217
311311msgid ""
312312"Note that child nodes of nodes that have a custom visitor method won't be "
313313"visited unless the visitor calls :meth:`generic_visit` or visits them "
@@ -316,7 +316,7 @@ msgstr ""
316316"注意して欲しいのは、専用のビジター・メソッドを具えたノードの子ノードは、このビジターが :meth:`generic_visit` "
317317"を呼び出すかそれ自身で子ノードを訪れない限り訪れられないということです。"
318318
319- #: ../../library/ast.rst:218
319+ #: ../../library/ast.rst:221
320320msgid ""
321321"Don't use the :class:`NodeVisitor` if you want to apply changes to nodes "
322322"during traversal. For this a special visitor exists "
@@ -325,13 +325,13 @@ msgstr ""
325325"トラバースの途中でノードを変化させたいならば :class:`NodeVisitor` "
326326"を使ってはいけません。そうした目的のために変更を許す特別なビジター (:class:`NodeTransformer`) があります。"
327327
328- #: ../../library/ast.rst:225
328+ #: ../../library/ast.rst:228
329329msgid ""
330330"A :class:`NodeVisitor` subclass that walks the abstract syntax tree and "
331331"allows modification of nodes."
332332msgstr ":class:`NodeVisitor` のサブクラスで抽象構文木を渡り歩きながらノードを変更することを許すものです。"
333333
334- #: ../../library/ast.rst:228
334+ #: ../../library/ast.rst:231
335335msgid ""
336336"The :class:`NodeTransformer` will walk the AST and use the return value of "
337337"the visitor methods to replace or remove the old node. If the return value "
@@ -344,15 +344,15 @@ msgstr ""
344344"``None`` "
345345"ならば、ノードはその場から取り去られ、そうでなければ戻り値で置き換えられます。置き換えない場合は戻り値が元のノードそのものであってもかまいません。"
346346
347- #: ../../library/ast.rst:234
347+ #: ../../library/ast.rst:237
348348msgid ""
349349"Here is an example transformer that rewrites all occurrences of name lookups"
350350" (``foo``) to ``data['foo']``::"
351351msgstr ""
352352"それでは例を示しましょう。Name (たとえば ``foo``) を見つけるたび全て ``data['foo']`` に書き換える変換器 "
353353"(transformer) です::"
354354
355- #: ../../library/ast.rst:246
355+ #: ../../library/ast.rst:249
356356msgid ""
357357"Keep in mind that if the node you're operating on has child nodes you must "
358358"either transform the child nodes yourself or call the :meth:`generic_visit` "
@@ -361,7 +361,7 @@ msgstr ""
361361"操作しようとしているノードが子ノードを持つならば、その子ノードの変形も自分で行うか、またはそのノードに対し最初に "
362362":meth:`generic_visit` メソッドを呼び出すか、それを行うのはあなたの責任だということを肝に銘じましょう。"
363363
364- #: ../../library/ast.rst:250
364+ #: ../../library/ast.rst:253
365365msgid ""
366366"For nodes that were part of a collection of statements (that applies to all "
367367"statement nodes), the visitor may also return a list of nodes rather than "
@@ -370,11 +370,11 @@ msgstr ""
370370"文のコレクションであるようなノード (全ての文のノードが当てはまります) "
371371"に対して、このビジターは単独のノードではなくノードのリストを返すかもしれません。"
372372
373- #: ../../library/ast.rst:254
373+ #: ../../library/ast.rst:257
374374msgid "Usually you use the transformer like this::"
375375msgstr "たいてい、変換器の使い方は次のようになります::"
376376
377- #: ../../library/ast.rst:261
377+ #: ../../library/ast.rst:264
378378msgid ""
379379"Return a formatted dump of the tree in *node*. This is mainly useful for "
380380"debugging purposes. The returned string will show the names and the values "
@@ -389,7 +389,7 @@ msgstr ""
389389"をセットしなければなりません。行番号や列オフセットのような属性はデフォルトではダンプされません。これが欲しければ、*include_attributes*"
390390" を ``True`` にセットすることができます。"
391391
392- #: ../../library/ast.rst:270
392+ #: ../../library/ast.rst:273
393393msgid ""
394394"`Green Tree Snakes <https://greentreesnakes.readthedocs.io/>`_, an external "
395395"documentation resource, has good details on working with Python ASTs."
0 commit comments