-
-
Notifications
You must be signed in to change notification settings - Fork 53
Expand file tree
/
Copy pathast.po
More file actions
557 lines (494 loc) · 31.5 KB
/
ast.po
File metadata and controls
557 lines (494 loc) · 31.5 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
# SOME DESCRIPTIVE TITLE.
# Copyright (C) 2001-2017, Python Software Foundation
# This file is distributed under the same license as the Python package.
# FIRST AUTHOR <EMAIL@ADDRESS>, 2017.
#
msgid ""
msgstr ""
"Project-Id-Version: Python 3.6\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2020-09-24 20:44+0900\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: Dong-gweon Oh <flowdas@gmail.com>\n"
"Language-Team: Korean (https://python.flowdas.com)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=utf-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Generated-By: Babel 2.7.0\n"
#: /Users/flowdas/works/docs/python-docs-ko/src/Doc/library/ast.rst:2
msgid ":mod:`ast` --- Abstract Syntax Trees"
msgstr ":mod:`ast` --- 추상 구문 트리"
#: /Users/flowdas/works/docs/python-docs-ko/src/Doc/library/ast.rst:10
msgid "**Source code:** :source:`Lib/ast.py`"
msgstr "**소스 코드:** :source:`Lib/ast.py`"
#: /Users/flowdas/works/docs/python-docs-ko/src/Doc/library/ast.rst:14
msgid ""
"The :mod:`ast` module helps Python applications to process trees of the "
"Python abstract syntax grammar. The abstract syntax itself might change "
"with each Python release; this module helps to find out programmatically "
"what the current grammar looks like."
msgstr ""
":mod:`ast` 모듈은 파이썬 응용 프로그램이 파이썬 추상 구문 문법의 트리를 처리하는 데 도움을 줍니다. 추상 구문 자체는 각"
" 파이썬 릴리스마다 바뀔 수 있습니다; 이 모듈은 프로그래밍 방식으로 현재 문법의 모양을 찾는 데 도움이 됩니다."
#: /Users/flowdas/works/docs/python-docs-ko/src/Doc/library/ast.rst:19
msgid ""
"An abstract syntax tree can be generated by passing "
":data:`ast.PyCF_ONLY_AST` as a flag to the :func:`compile` built-in "
"function, or using the :func:`parse` helper provided in this module. The"
" result will be a tree of objects whose classes all inherit from "
":class:`ast.AST`. An abstract syntax tree can be compiled into a Python "
"code object using the built-in :func:`compile` function."
msgstr ""
":data:`ast.PyCF_ONLY_AST`\\를 플래그로 :func:`compile` 내장 함수에 전달하거나, 이 모듈에서 "
"제공된 :func:`parse` 도우미를 사용하여 추상 구문 트리를 생성할 수 있습니다. 결과는 클래스가 모두 "
":class:`ast.AST`\\에서 상속되는 객체들의 트리가 됩니다. 내장 :func:`compile` 함수를 사용하여 추상 구문"
" 트리를 파이썬 코드 객체로 컴파일할 수 있습니다."
#: /Users/flowdas/works/docs/python-docs-ko/src/Doc/library/ast.rst:27
msgid "Node classes"
msgstr "노드 클래스"
#: /Users/flowdas/works/docs/python-docs-ko/src/Doc/library/ast.rst:31
msgid ""
"This is the base of all AST node classes. The actual node classes are "
"derived from the :file:`Parser/Python.asdl` file, which is reproduced "
":ref:`below <abstract-grammar>`. They are defined in the :mod:`_ast` C "
"module and re-exported in :mod:`ast`."
msgstr ""
"이것은 모든 AST 노드 클래스의 베이스입니다. 실제 노드 클래스는 :file:`Parser/Python.asdl` 파일에서 "
"파생되며, 이 파일의 내용은 :ref:`아래 <abstract-grammar>`\\에서 볼 수 있습니다. :mod:`_ast` C "
"모듈에 정의되어 있으며 :mod:`ast`\\로 다시 내보내 집니다."
#: /Users/flowdas/works/docs/python-docs-ko/src/Doc/library/ast.rst:36
msgid ""
"There is one class defined for each left-hand side symbol in the abstract"
" grammar (for example, :class:`ast.stmt` or :class:`ast.expr`). In "
"addition, there is one class defined for each constructor on the right-"
"hand side; these classes inherit from the classes for the left-hand side "
"trees. For example, :class:`ast.BinOp` inherits from :class:`ast.expr`."
" For production rules with alternatives (aka \"sums\"), the left-hand "
"side class is abstract: only instances of specific constructor nodes are "
"ever created."
msgstr ""
"추상 문법의 각 좌변 심볼마다 하나의 클래스가 정의되어 있습니다 (예를 들어, :class:`ast.stmt`\\나 "
":class:`ast.expr`). 또한, 우변의 생성자마다 하나의 클래스가 정의되어 있습니다; 이 클래스는 좌변 트리의 클래스에서"
" 상속됩니다. 예를 들어, :class:`ast.BinOp`\\는 :class:`ast.expr`\\에서 상속됩니다. 대안을 갖는 "
"생성 규칙(일명 \"합\")의 경우, 좌변 클래스는 추상입니다: 특정 생성자 노드의 인스턴스만 만들어집니다."
#: /Users/flowdas/works/docs/python-docs-ko/src/Doc/library/ast.rst:49
msgid ""
"Each concrete class has an attribute :attr:`_fields` which gives the "
"names of all child nodes."
msgstr "각 구상 클래스에는 모든 자식 노드의 이름을 제공하는 어트리뷰트 :attr:`_fields`\\가 있습니다."
#: /Users/flowdas/works/docs/python-docs-ko/src/Doc/library/ast.rst:52
msgid ""
"Each instance of a concrete class has one attribute for each child node, "
"of the type as defined in the grammar. For example, :class:`ast.BinOp` "
"instances have an attribute :attr:`left` of type :class:`ast.expr`."
msgstr ""
"구상 클래스의 각 인스턴스에는 각 자식 노드마다 문법에 정의된 형의 어트리뷰트가 하나씩 있습니다. 예를 들어, "
":class:`ast.BinOp` 인스턴스는 :class:`ast.expr` 형의 어트리뷰트 :attr:`left`\\를 갖습니다."
#: /Users/flowdas/works/docs/python-docs-ko/src/Doc/library/ast.rst:56
msgid ""
"If these attributes are marked as optional in the grammar (using a "
"question mark), the value might be ``None``. If the attributes can have "
"zero-or-more values (marked with an asterisk), the values are represented"
" as Python lists. All possible attributes must be present and have valid"
" values when compiling an AST with :func:`compile`."
msgstr ""
"문법에서 이러한 어트리뷰트가 선택적으로 표시되면 (물음표를 사용해서), 값은 ``None``\\일 수 있습니다. 어트리뷰트가 0개 "
"이상의 값을 가질 수 있으면 (애스터리스크로 표시됩니다), 값은 파이썬 리스트로 표현됩니다. :func:`compile`\\로 "
"AST를 컴파일할 때 가능한 모든 어트리뷰트가 존재하고 유효한 값을 가져야 합니다."
#: /Users/flowdas/works/docs/python-docs-ko/src/Doc/library/ast.rst:67
msgid ""
"Instances of :class:`ast.expr` and :class:`ast.stmt` subclasses have "
":attr:`lineno`, :attr:`col_offset`, :attr:`lineno`, and "
":attr:`col_offset` attributes. The :attr:`lineno` and :attr:`end_lineno`"
" are the first and last line numbers of source text span (1-indexed so "
"the first line is line 1) and the :attr:`col_offset` and "
":attr:`end_col_offset` are the corresponding UTF-8 byte offsets of the "
"first and last tokens that generated the node. The UTF-8 offset is "
"recorded because the parser uses UTF-8 internally."
msgstr ""
":class:`ast.expr`\\과 :class:`ast.stmt` 서브 클래스의 인스턴스에는 :attr:`lineno`, "
":attr:`col_offset`, :attr:`lineno` 및 :attr:`col_offset` 어트리뷰트가 있습니다. "
":attr:`lineno`\\와 :attr:`end_lineno`\\는 소스 텍스트 스팬의 첫 번째와 마지막 줄 "
"번호(1-인덱싱이라서 첫 번째 줄은 줄 1입니다)이고 :attr:`col_offset`\\과 "
":attr:`end_col_offset`\\은 노드를 생성한 첫 번째와 마지막 토큰의 해당 UTF-8 바이트 오프셋입니다. 구문 "
"분석기가 UTF-8을 내부적으로 사용하기 때문에 UTF-8 오프셋이 기록됩니다."
#: /Users/flowdas/works/docs/python-docs-ko/src/Doc/library/ast.rst:75
msgid ""
"Note that the end positions are not required by the compiler and are "
"therefore optional. The end offset is *after* the last symbol, for "
"example one can get the source segment of a one-line expression node "
"using ``source_line[node.col_offset : node.end_col_offset]``."
msgstr ""
"종료 위치는 컴파일러에 필요하지 않아서 선택 사항입니다. 종료 오프셋은 마지막 심볼 *뒤*\\입니다. 예를 들어 "
"``source_line[node.col_offset : node.end_col_offset]``\\를 사용하여 한 줄 표현식 "
"노드의 소스 세그먼트를 가져올 수 있습니다."
#: /Users/flowdas/works/docs/python-docs-ko/src/Doc/library/ast.rst:80
msgid "The constructor of a class :class:`ast.T` parses its arguments as follows:"
msgstr ":class:`ast.T` 클래스의 생성자는 다음과 같이 인자를 구문 분석합니다:"
#: /Users/flowdas/works/docs/python-docs-ko/src/Doc/library/ast.rst:82
msgid ""
"If there are positional arguments, there must be as many as there are "
"items in :attr:`T._fields`; they will be assigned as attributes of these "
"names."
msgstr ""
"위치 인자가 있으면, :attr:`T._fields`\\에 있는 항목 수만큼 있어야 합니다; 이러한 이름의 어트리뷰트로 대입될 "
"것입니다."
#: /Users/flowdas/works/docs/python-docs-ko/src/Doc/library/ast.rst:84
msgid ""
"If there are keyword arguments, they will set the attributes of the same "
"names to the given values."
msgstr "키워드 인자가 있으면, 같은 이름의 어트리뷰트를 지정된 값으로 설정합니다."
#: /Users/flowdas/works/docs/python-docs-ko/src/Doc/library/ast.rst:87
msgid ""
"For example, to create and populate an :class:`ast.UnaryOp` node, you "
"could use ::"
msgstr "예를 들어, :class:`ast.UnaryOp` 노드를 만들고 채우려면, 다음과 같이 할 수 있습니다 ::"
#: /Users/flowdas/works/docs/python-docs-ko/src/Doc/library/ast.rst:99
msgid "or the more compact ::"
msgstr "또는 더 간결하게 ::"
#: /Users/flowdas/works/docs/python-docs-ko/src/Doc/library/ast.rst:106
msgid "Class :class:`ast.Constant` is now used for all constants."
msgstr ":class:`ast.Constant` 클래스는 이제 모든 상수에 사용됩니다."
#: /Users/flowdas/works/docs/python-docs-ko/src/Doc/library/ast.rst:110
msgid ""
"Old classes :class:`ast.Num`, :class:`ast.Str`, :class:`ast.Bytes`, "
":class:`ast.NameConstant` and :class:`ast.Ellipsis` are still available, "
"but they will be removed in future Python releases. In the meanwhile, "
"instantiating them will return an instance of a different class."
msgstr ""
"이전 클래스 :class:`ast.Num`, :class:`ast.Str`, :class:`ast.Bytes`, "
":class:`ast.NameConstant` 및 :class:`ast.Ellipsis`\\는 계속 사용할 수 있지만, 향후 파이썬"
" 릴리스에서 제거될 예정입니다. 한편, 이들을 인스턴스 화하면 다른 클래스의 인스턴스가 반환됩니다."
#: /Users/flowdas/works/docs/python-docs-ko/src/Doc/library/ast.rst:119
msgid "Abstract Grammar"
msgstr "추상 문법"
#: /Users/flowdas/works/docs/python-docs-ko/src/Doc/library/ast.rst:121
msgid "The abstract grammar is currently defined as follows:"
msgstr "추상 문법은 현재 다음과 같이 정의됩니다:"
#: /Users/flowdas/works/docs/python-docs-ko/src/Doc/library/ast.rst:128
msgid ":mod:`ast` Helpers"
msgstr ":mod:`ast` 도우미"
#: /Users/flowdas/works/docs/python-docs-ko/src/Doc/library/ast.rst:130
msgid ""
"Apart from the node classes, the :mod:`ast` module defines these utility "
"functions and classes for traversing abstract syntax trees:"
msgstr "노드 클래스 외에도, :mod:`ast` 모듈은 추상 구문 트리를 탐색하기 위해 다음 유틸리티 함수와 클래스를 정의합니다:"
#: /Users/flowdas/works/docs/python-docs-ko/src/Doc/library/ast.rst:135
msgid ""
"Parse the source into an AST node. Equivalent to ``compile(source, "
"filename, mode, ast.PyCF_ONLY_AST)``."
msgstr ""
"소스를 AST 노드로 구문 분석합니다. ``compile(source, filename, mode, "
"ast.PyCF_ONLY_AST)``\\와 동등합니다."
#: /Users/flowdas/works/docs/python-docs-ko/src/Doc/library/ast.rst:138
msgid ""
"If ``type_comments=True`` is given, the parser is modified to check and "
"return type comments as specified by :pep:`484` and :pep:`526`. This is "
"equivalent to adding :data:`ast.PyCF_TYPE_COMMENTS` to the flags passed "
"to :func:`compile()`. This will report syntax errors for misplaced type "
"comments. Without this flag, type comments will be ignored, and the "
"``type_comment`` field on selected AST nodes will always be ``None``. In"
" addition, the locations of ``# type: ignore`` comments will be returned "
"as the ``type_ignores`` attribute of :class:`Module` (otherwise it is "
"always an empty list)."
msgstr ""
"``type_comments=True``\\가 제공되면, 구문 분석기는 :pep:`484`\\와 :pep:`526`\\에 지정된 형"
" 주석을 확인하고 반환하도록 수정됩니다. 이는 :func:`compile()`\\에 전달된 플래그에 "
":data:`ast.PyCF_TYPE_COMMENTS`\\를 추가하는 것과 같습니다. 이것은 잘못 배치된 형 주석에 대한 문법 "
"에러를 보고합니다. 이 플래그가 없으면, 형 주석은 무시되고, 선택한 AST 노드의 ``type_comment`` 필드는 항상 "
"``None``\\입니다. 또한, ``# type: ignore`` 주석의 위치는 :class:`Module`\\의 "
"``type_ignores`` 어트리뷰트로 반환됩니다 (그렇지 않으면 항상 빈 리스트입니다)."
#: /Users/flowdas/works/docs/python-docs-ko/src/Doc/library/ast.rst:148
msgid ""
"In addition, if ``mode`` is ``'func_type'``, the input syntax is modified"
" to correspond to :pep:`484` \"signature type comments\", e.g. ``(str, "
"int) -> List[str]``."
msgstr ""
"또한, ``mode``\\가 ``'func_type'``\\이면, 입력 문법은 :pep:`484` \"서명 형 주석\"에 따라 "
"수정됩니다, 예를 들어 ``(str, int) -> List[str]``."
#: /Users/flowdas/works/docs/python-docs-ko/src/Doc/library/ast.rst:152
msgid ""
"Also, setting ``feature_version`` to a tuple ``(major, minor)`` will "
"attempt to parse using that Python version's grammar. Currently ``major``"
" must equal to ``3``. For example, setting ``feature_version=(3, 4)`` "
"will allow the use of ``async`` and ``await`` as variable names. The "
"lowest supported version is ``(3, 4)``; the highest is "
"``sys.version_info[0:2]``."
msgstr ""
"또한, ``feature_version``\\을 튜플 ``(major, minor)``\\로 설정하면 해당 파이썬 버전의 문법을 "
"사용하여 구문 분석을 시도합니다. 현재 ``major``\\는 ``3``\\과 같아야 합니다. 예를 들어, "
"``feature_version=(3, 4)``\\를 설정하면 변수 이름으로 ``async``\\와 ``await``\\를 사용할 "
"수 있습니다. 가장 낮은 지원 버전은 ``(3, 4)``\\입니다; 가장 높은 것은 "
"``sys.version_info[0:2]``\\입니다."
#: /Users/flowdas/works/docs/python-docs-ko/src/Doc/library/ast.rst:160
#: /Users/flowdas/works/docs/python-docs-ko/src/Doc/library/ast.rst:181
msgid ""
"It is possible to crash the Python interpreter with a sufficiently "
"large/complex string due to stack depth limitations in Python's AST "
"compiler."
msgstr "파이썬 AST 컴파일러의 스택 깊이 제한으로 인해 충분히 크고/복잡한 문자열로 파이썬 인터프리터가 충돌하도록 만들 수 있습니다."
#: /Users/flowdas/works/docs/python-docs-ko/src/Doc/library/ast.rst:164
msgid "Added ``type_comments``, ``mode='func_type'`` and ``feature_version``."
msgstr "``type_comments``, ``mode='func_type'`` 및 ``feature_version``\\ 추가했습니다."
#: /Users/flowdas/works/docs/python-docs-ko/src/Doc/library/ast.rst:170
msgid ""
"Safely evaluate an expression node or a string containing a Python "
"literal or container display. The string or node provided may only "
"consist of the following Python literal structures: strings, bytes, "
"numbers, tuples, lists, dicts, sets, booleans, and ``None``."
msgstr ""
"파이썬 리터럴 이나 컨테이너 디스플레이를 포함하는 표현식 노드나 문자열을 안전하게 평가합니다. 제공된 문자열이나 노드는 다음과 같은"
" 파이썬 리터럴 구조로만 구성될 수 있습니다: 문자열, 바이트열, 숫자, 튜플, 리스트, 딕셔너리, 집합, 불리언 및 "
"``None``."
#: /Users/flowdas/works/docs/python-docs-ko/src/Doc/library/ast.rst:175
msgid ""
"This can be used for safely evaluating strings containing Python values "
"from untrusted sources without the need to parse the values oneself. It "
"is not capable of evaluating arbitrarily complex expressions, for example"
" involving operators or indexing."
msgstr ""
"값을 직접 구문 분석할 필요 없이 신뢰할 수 없는 소스의 파이썬 값을 포함하는 문자열을 안전하게 평가하는 데 사용할 수 있습니다. "
"예를 들어 연산자나 인덱싱이 개입한, 임의의 복잡한 표현식을 평가할 수 없습니다."
#: /Users/flowdas/works/docs/python-docs-ko/src/Doc/library/ast.rst:185
msgid "Now allows bytes and set literals."
msgstr "이제 바이트열과 집합 리터럴을 허용합니다."
#: /Users/flowdas/works/docs/python-docs-ko/src/Doc/library/ast.rst:191
msgid ""
"Return the docstring of the given *node* (which must be a "
":class:`FunctionDef`, :class:`AsyncFunctionDef`, :class:`ClassDef`, or "
":class:`Module` node), or ``None`` if it has no docstring. If *clean* is "
"true, clean up the docstring's indentation with :func:`inspect.cleandoc`."
msgstr ""
"주어진 *node*\\(:class:`FunctionDef`, :class:`AsyncFunctionDef`, "
":class:`ClassDef` 또는 :class:`Module` 노드이어야 합니다)의 독스트링이나, 독스트링이 없으면 "
"``None``\\을 반환합니다. *clean*\\이 참이면, :func:`inspect.cleandoc`\\으로 독스트링의 "
"들여쓰기를 정리합니다."
#: /Users/flowdas/works/docs/python-docs-ko/src/Doc/library/ast.rst:197
msgid ":class:`AsyncFunctionDef` is now supported."
msgstr ":class:`AsyncFunctionDef` 가 이제 지원됩니다."
#: /Users/flowdas/works/docs/python-docs-ko/src/Doc/library/ast.rst:203
msgid ""
"Get source code segment of the *source* that generated *node*. If some "
"location information (:attr:`lineno`, :attr:`end_lineno`, "
":attr:`col_offset`, or :attr:`end_col_offset`) is missing, return "
"``None``."
msgstr ""
"*node*\\를 생성한 *source*\\의 소스 코드 세그먼트를 가져옵니다. 일부 위치 정보(:attr:`lineno`, "
":attr:`end_lineno`, :attr:`col_offset` 또는 :attr:`end_col_offset`)가 없으면, "
"``None``\\을 반환합니다."
#: /Users/flowdas/works/docs/python-docs-ko/src/Doc/library/ast.rst:207
msgid ""
"If *padded* is ``True``, the first line of a multi-line statement will be"
" padded with spaces to match its original position."
msgstr "*padded*\\가 ``True``\\이면, 여러 줄 문장의 첫 번째 줄은 원래 위치와 일치하도록 스페이스로 채워집니다."
#: /Users/flowdas/works/docs/python-docs-ko/src/Doc/library/ast.rst:215
msgid ""
"When you compile a node tree with :func:`compile`, the compiler expects "
":attr:`lineno` and :attr:`col_offset` attributes for every node that "
"supports them. This is rather tedious to fill in for generated nodes, so"
" this helper adds these attributes recursively where not already set, by "
"setting them to the values of the parent node. It works recursively "
"starting at *node*."
msgstr ""
":func:`compile`\\로 노드 트리를 컴파일할 때, 컴파일러는 지원하는 모든 노드에 대해 :attr:`lineno`\\와 "
":attr:`col_offset` 어트리뷰트를 기대합니다. 생성된 노드를 채울 때는 이것이 다소 지루하므로, 이 도우미는 이러한 "
"어트리뷰트를 재귀적으로 아직 설정되지 않은 위치에 부모 노드의 값으로 설정하여 추가합니다. *node*\\부터 재귀적으로 "
"작동합니다."
#: /Users/flowdas/works/docs/python-docs-ko/src/Doc/library/ast.rst:224
msgid ""
"Increment the line number and end line number of each node in the tree "
"starting at *node* by *n*. This is useful to \"move code\" to a different"
" location in a file."
msgstr ""
"*node*\\에서 시작하는 트리에서 각 노드의 줄 번호와 끝 줄 번호를 *n*\\만큼 증가시킵니다. 파일의 다른 위치로 \"코드를"
" 이동\"하는 데 유용합니다."
#: /Users/flowdas/works/docs/python-docs-ko/src/Doc/library/ast.rst:231
msgid ""
"Copy source location (:attr:`lineno`, :attr:`col_offset`, "
":attr:`end_lineno`, and :attr:`end_col_offset`) from *old_node* to "
"*new_node* if possible, and return *new_node*."
msgstr ""
"가능하면 소스 위치(:attr:`lineno`, :attr:`col_offset`, :attr:`end_lineno` 및 "
":attr:`end_col_offset`)를 *old_node*\\에서 *new_node*\\로 복사하고, *new_node*\\를"
" 반환합니다."
#: /Users/flowdas/works/docs/python-docs-ko/src/Doc/library/ast.rst:238
msgid ""
"Yield a tuple of ``(fieldname, value)`` for each field in "
"``node._fields`` that is present on *node*."
msgstr ""
"*node*\\에 존재하는 ``node._fields``\\의 각 필드에 대해 ``(fieldname, value)`` 튜플을 "
"산출합니다."
#: /Users/flowdas/works/docs/python-docs-ko/src/Doc/library/ast.rst:244
msgid ""
"Yield all direct child nodes of *node*, that is, all fields that are "
"nodes and all items of fields that are lists of nodes."
msgstr "*node*\\의 모든 직접 자식 노드, 즉 노드인 모든 필드와 노드 리스트인 필드의 모든 항목을 산출합니다."
#: /Users/flowdas/works/docs/python-docs-ko/src/Doc/library/ast.rst:250
msgid ""
"Recursively yield all descendant nodes in the tree starting at *node* "
"(including *node* itself), in no specified order. This is useful if you "
"only want to modify nodes in place and don't care about the context."
msgstr ""
"*node*\\로 시작하는 트리(*node* 자체를 포함합니다)의 모든 자손 노드를 지정된 순서 없이 재귀적으로 산출합니다. 이는 "
"노드를 제자리에서 수정하고 문맥을 신경 쓰지 않을 때 유용합니다."
#: /Users/flowdas/works/docs/python-docs-ko/src/Doc/library/ast.rst:257
msgid ""
"A node visitor base class that walks the abstract syntax tree and calls a"
" visitor function for every node found. This function may return a value"
" which is forwarded by the :meth:`visit` method."
msgstr ""
"추상 구문 트리를 걷고 발견된 모든 노드에 대해 방문자 함수를 호출하는 노드 방문자 베이스 클래스. 이 함수는 "
":meth:`visit` 메서드에 의해 전달되는 값을 반환할 수 있습니다."
#: /Users/flowdas/works/docs/python-docs-ko/src/Doc/library/ast.rst:261
msgid ""
"This class is meant to be subclassed, with the subclass adding visitor "
"methods."
msgstr "이 클래스는 서브 클래싱하고자 하는 것이며, 서브 클래스는 방문자 메서드를 추가합니다."
#: /Users/flowdas/works/docs/python-docs-ko/src/Doc/library/ast.rst:266
msgid ""
"Visit a node. The default implementation calls the method called "
":samp:`self.visit_{classname}` where *classname* is the name of the node "
"class, or :meth:`generic_visit` if that method doesn't exist."
msgstr ""
"노드를 방문합니다. 기본 구현은 :samp:`self.visit_{classname}`\\이라는 메서드를 호출하는데, 여기서 "
"*classname* 은 노드 클래스의 이름입니다. 또는 이 메서드가 없으면 :meth:`generic_visit`\\를 "
"호출합니다."
#: /Users/flowdas/works/docs/python-docs-ko/src/Doc/library/ast.rst:272
msgid "This visitor calls :meth:`visit` on all children of the node."
msgstr "이 방문자는 노드의 자식에 대해 :meth:`visit`\\를 호출합니다."
#: /Users/flowdas/works/docs/python-docs-ko/src/Doc/library/ast.rst:274
msgid ""
"Note that child nodes of nodes that have a custom visitor method won't be"
" visited unless the visitor calls :meth:`generic_visit` or visits them "
"itself."
msgstr ""
"방문자가 :meth:`generic_visit`\\를 호출하거나 직접 방문하지 않는 한, 사용자 정의 방문자 메서드가 있는 노드의 "
"자식 노드는 방문 되지 않음에 유의하십시오."
#: /Users/flowdas/works/docs/python-docs-ko/src/Doc/library/ast.rst:278
msgid ""
"Don't use the :class:`NodeVisitor` if you want to apply changes to nodes "
"during traversal. For this a special visitor exists "
"(:class:`NodeTransformer`) that allows modifications."
msgstr ""
"탐색 중에 노드에 변경 사항을 적용하려면 :class:`NodeVisitor`\\를 사용하지 마십시오. 이를 위해 수정을 허락하는 "
"특수한 방문자(:class:`NodeTransformer`)가 있습니다."
#: /Users/flowdas/works/docs/python-docs-ko/src/Doc/library/ast.rst:284
msgid ""
"Methods :meth:`visit_Num`, :meth:`visit_Str`, :meth:`visit_Bytes`, "
":meth:`visit_NameConstant` and :meth:`visit_Ellipsis` are deprecated now "
"and will not be called in future Python versions. Add the "
":meth:`visit_Constant` method to handle all constant nodes."
msgstr ""
"메서드 :meth:`visit_Num`, :meth:`visit_Str`, :meth:`visit_Bytes`, "
":meth:`visit_NameConstant` 및 :meth:`visit_Ellipsis`\\는 이제 폐지되었고 향후 파이썬 "
"버전에서는 호출되지 않을 것입니다. 모든 상수 노드를 처리하려면 :meth:`visit_Constant` 메서드를 추가하십시오."
#: /Users/flowdas/works/docs/python-docs-ko/src/Doc/library/ast.rst:292
msgid ""
"A :class:`NodeVisitor` subclass that walks the abstract syntax tree and "
"allows modification of nodes."
msgstr "추상 구문 트리를 걷고 노드 수정을 허락하는 :class:`NodeVisitor` 서브 클래스."
#: /Users/flowdas/works/docs/python-docs-ko/src/Doc/library/ast.rst:295
msgid ""
"The :class:`NodeTransformer` will walk the AST and use the return value "
"of the visitor methods to replace or remove the old node. If the return "
"value of the visitor method is ``None``, the node will be removed from "
"its location, otherwise it is replaced with the return value. The return"
" value may be the original node in which case no replacement takes place."
msgstr ""
":class:`NodeTransformer`\\는 AST를 걷고 방문자 메서드의 반환 값을 사용하여 이전 노드를 바꾸거나 "
"제거합니다. 방문자 메서드의 반환 값이 ``None``\\이면, 노드가 그 위치에서 제거되고, 그렇지 않으면 반환 값으로 "
"치환됩니다. 반환 값은 원래 노드일 수 있으며, 이때는 치환이 일어나지 않습니다."
#: /Users/flowdas/works/docs/python-docs-ko/src/Doc/library/ast.rst:301
msgid ""
"Here is an example transformer that rewrites all occurrences of name "
"lookups (``foo``) to ``data['foo']``::"
msgstr "다음은 모든 이름 조회(``foo``)를 ``data['foo']``\\로 다시 쓰는 변환기 예제입니다::"
#: /Users/flowdas/works/docs/python-docs-ko/src/Doc/library/ast.rst:313
msgid ""
"Keep in mind that if the node you're operating on has child nodes you "
"must either transform the child nodes yourself or call the "
":meth:`generic_visit` method for the node first."
msgstr ""
"작업 중인 노드에 자식 노드가 있으면 자식 노드를 직접 변환하거나 노드에 대한 :meth:`generic_visit` 메서드를 먼저"
" 호출해야 함을 염두에 두십시오."
#: /Users/flowdas/works/docs/python-docs-ko/src/Doc/library/ast.rst:317
msgid ""
"For nodes that were part of a collection of statements (that applies to "
"all statement nodes), the visitor may also return a list of nodes rather "
"than just a single node."
msgstr ""
"문장의 컬렉션의 일부인 노드의 경우 (모든 문장 노드에 적용됩니다), 방문자는 단일 노드가 아닌 노드 리스트를 반환 할 수도 "
"있습니다."
#: /Users/flowdas/works/docs/python-docs-ko/src/Doc/library/ast.rst:321
msgid ""
"If :class:`NodeTransformer` introduces new nodes (that weren't part of "
"original tree) without giving them location information (such as "
":attr:`lineno`), :func:`fix_missing_locations` should be called with the "
"new sub-tree to recalculate the location information::"
msgstr ""
":class:`NodeTransformer`\\가 위치 정보(가령 :attr:`lineno`)를 제공하지 않고 (원래 트리의 일부가"
" 아닌) 새 노드를 도입하면, 위치 정보를 다시 계산하려면 :func:`fix_missing_locations`\\를 새 서브 "
"트리로 호출해야 합니다::"
#: /Users/flowdas/works/docs/python-docs-ko/src/Doc/library/ast.rst:329
msgid "Usually you use the transformer like this::"
msgstr "일반적으로 다음과 같이 변환기를 사용합니다::"
#: /Users/flowdas/works/docs/python-docs-ko/src/Doc/library/ast.rst:336
msgid ""
"Return a formatted dump of the tree in *node*. This is mainly useful for"
" debugging purposes. If *annotate_fields* is true (by default), the "
"returned string will show the names and the values for fields. If "
"*annotate_fields* is false, the result string will be more compact by "
"omitting unambiguous field names. Attributes such as line numbers and "
"column offsets are not dumped by default. If this is wanted, "
"*include_attributes* can be set to true."
msgstr ""
"*node*\\에서 포맷된 트리 덤프를 반환합니다. 이것은 주로 디버깅 목적으로 유용합니다. *annotate_fields*\\가 "
"참이면 (기본값), 반환된 문자열에 필드의 이름과 값이 표시됩니다. *annotate_fields*\\가 거짓이면, 모호하지 않은 "
"필드 이름을 생략하여 결과 문자열이 더 간결해집니다. 줄 번호와 열 오프셋과 같은 어트리뷰트는 기본적으로 덤프 되지 않습니다. "
"원한다면, *include_attributes*\\를 참으로 설정할 수 있습니다."
#: /Users/flowdas/works/docs/python-docs-ko/src/Doc/library/ast.rst:346
msgid ""
"`Green Tree Snakes <https://greentreesnakes.readthedocs.io/>`_, an "
"external documentation resource, has good details on working with Python "
"ASTs."
msgstr ""
"`Green Tree Snakes <https://greentreesnakes.readthedocs.io/>`_, 파이썬 AST로 "
"작업하는 것에 대한 자세한 내용이 있는 외부 문서 자원."
#: /Users/flowdas/works/docs/python-docs-ko/src/Doc/library/ast.rst:349
msgid ""
"`ASTTokens <https://asttokens.readthedocs.io/en/latest/user-guide.html>`_"
" annotates Python ASTs with the positions of tokens and text in the "
"source code that generated them. This is helpful for tools that make "
"source code transformations."
msgstr ""
"`ASTTokens <https://asttokens.readthedocs.io/en/latest/user-"
"guide.html>`_\\는 토큰의 위치와 토큰을 생성한 소스 코드의 텍스트로 파이썬 AST에 주석을 추가합니다. 이는 소스 코드"
" 변환을 수행하는 도구에 유용합니다."
#: /Users/flowdas/works/docs/python-docs-ko/src/Doc/library/ast.rst:354
msgid ""
"`leoAst.py <http://leoeditor.com/appendices.html#leoast-py>`_ unifies the"
" token-based and parse-tree-based views of python programs by inserting "
"two-way links between tokens and ast nodes."
msgstr ""
"`leoAst.py <http://leoeditor.com/appendices.html#leoast-py>`_\\는 토큰과 ast "
"노드 사이에 양방향 링크를 삽입하여 파이썬 프로그램의 토큰 기반과 구문 분석 트리 기반 뷰를 통합합니다."
#: /Users/flowdas/works/docs/python-docs-ko/src/Doc/library/ast.rst:358
msgid ""
"`LibCST <https://libcst.readthedocs.io/>`_ parses code as a Concrete "
"Syntax Tree that looks like an ast tree and keeps all formatting details."
" It's useful for building automated refactoring (codemod) applications "
"and linters."
msgstr ""
"`LibCST <https://libcst.readthedocs.io/>`_\\는 코드를 ast 트리처럼 보이고 모든 포매팅 세부 "
"정보를 유지하는 구상 구문 트리(Concrete Syntax Tree)로 구문 분석합니다. 자동화된 리팩토링 (codemod) 응용"
" 프로그램과 린터(linter)를 구축하는 데 유용합니다."
#: /Users/flowdas/works/docs/python-docs-ko/src/Doc/library/ast.rst:363
msgid ""
"`Parso <https://parso.readthedocs.io>`_ is a Python parser that supports "
"error recovery and round-trip parsing for different Python versions (in "
"multiple Python versions). Parso is also able to list multiple syntax "
"errors in your python file."
msgstr ""
"`Parso <https://parso.readthedocs.io>`_\\는 다른 파이썬 버전(여러 Python 버전에서)에 대한 "
"에러 복구와 왕복 구문 분석(round-trip parsing)을 지원하는 파이썬 파서입니다. Parso는 여러분의 파이썬 파일에 "
"있는 여러 구문 에러를 나열 할 수도 있습니다."