-
-
Notifications
You must be signed in to change notification settings - Fork 41
Expand file tree
/
Copy pathast.po
More file actions
1588 lines (1395 loc) · 65 KB
/
Copy pathast.po
File metadata and controls
1588 lines (1395 loc) · 65 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
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
# SOME DESCRIPTIVE TITLE.
# Copyright (C) 2001-2025, Python Software Foundation
# This file is distributed under the same license as the Python package.
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
#
# Translators:
# python-doc bot, 2025
#
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: Python 3.9\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2025-09-22 21:56+0000\n"
"PO-Revision-Date: 2025-09-22 17:54+0000\n"
"Last-Translator: python-doc bot, 2025\n"
"Language-Team: Portuguese (Brazil) (https://app.transifex.com/python-doc/"
"teams/5390/pt_BR/)\n"
"Language: pt_BR\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=3; plural=(n == 0 || n == 1) ? 0 : n != 0 && n % "
"1000000 == 0 ? 1 : 2;\n"
#: ../../library/ast.rst:2
msgid ":mod:`ast` --- Abstract Syntax Trees"
msgstr ":mod:`ast` --- Árvores de Sintaxe Abstrata"
#: ../../library/ast.rst:14
msgid "**Source code:** :source:`Lib/ast.py`"
msgstr "**Código-fonte:** :source:`Lib/ast.py`"
#: ../../library/ast.rst:18
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 ""
"O módulo :mod:`ast` ajuda as aplicações Python a processar árvores da "
"gramática de sintaxe abstrata do Python. A sintaxe abstrata em si pode mudar "
"em cada lançamento do Python; este módulo ajuda a descobrir "
"programaticamente como é a gramática atual."
#: ../../library/ast.rst:23
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 ""
"Uma árvore de sintaxe abstrata pode ser gerada passando :data:`ast."
"PyCF_ONLY_AST` como um sinalizador para a função embutida :func:`compile`, "
"ou usando o auxiliar :func:`parse` fornecido neste módulo. O resultado será "
"uma árvore de objetos cujas classes herdam de :class:`ast.AST`. Uma árvore "
"de sintaxe abstrata pode ser compilada em um objeto código Python usando a "
"função embutida :func:`compile`."
#: ../../library/ast.rst:33
msgid "Abstract Grammar"
msgstr "Gramática Abstrata"
#: ../../library/ast.rst:35
msgid "The abstract grammar is currently defined as follows:"
msgstr "A gramática abstrata está atualmente definida da seguinte forma:"
#: ../../library/ast.rst:42
msgid "Node classes"
msgstr "Classes de nós"
#: ../../library/ast.rst:46
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 ""
"Esta é a base de todas as classes de nós AST. As classes de nós reais são "
"derivadas do arquivo :file:`Parser/Python.asdl`, o qual é reproduzido :ref:"
"`abaixo <abstract-grammar>`. Elas são definidas no módulo C :mod:`_ast` e "
"reexportadas em :mod:`ast`."
#: ../../library/ast.rst:51
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 ""
"Há uma classe definida para cada símbolo do lado esquerdo na gramática "
"abstrata (por exemplo, :class:`ast.stmt` ou :class:`ast.expr`). Além disso, "
"existe uma classe definida para cada construtor no lado direito; essas "
"classes herdam das classes para as árvores do lado esquerdo. Por exemplo, :"
"class:`ast.BinOp` herda de :class:`ast.expr`. Para regras de produção com "
"alternativas (\"somas\"), a classe do lado esquerdo é abstrata: apenas "
"instâncias de nós construtores específicos são criadas."
#: ../../library/ast.rst:64
msgid ""
"Each concrete class has an attribute :attr:`_fields` which gives the names "
"of all child nodes."
msgstr ""
"Cada classe concreta possui um atributo :attr:`_fields` que fornece os nomes "
"de todos os nós filhos."
#: ../../library/ast.rst:67
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 ""
"Cada instância de uma classe concreta tem um atributo para cada nó filho, do "
"tipo definido na gramática. Por exemplo, as instâncias :class:`ast.BinOp` "
"possuem um atributo :attr:`left` do tipo :class:`ast.expr`."
#: ../../library/ast.rst:71
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 ""
"Se estes atributos estiverem marcados como opcionais na gramática (usando um "
"ponto de interrogação), o valor pode ser ``None``. Se os atributos puderem "
"ter valor zero ou mais (marcados com um asterisco), os valores serão "
"representados como listas do Python. Todos os atributos possíveis devem "
"estar presentes e ter valores válidos ao compilar uma AST com :func:"
"`compile`."
#: ../../library/ast.rst:82
msgid ""
"Instances of :class:`ast.expr` and :class:`ast.stmt` subclasses have :attr:"
"`lineno`, :attr:`col_offset`, :attr:`end_lineno`, and :attr:`end_col_offset` "
"attributes. The :attr:`lineno` and :attr:`end_lineno` are the first and "
"last line numbers of the 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 ""
#: ../../library/ast.rst:91
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 ""
"Observe que as posições finais não são exigidas pelo compilador e, portanto, "
"são opcionais. O deslocamento final está *após* o último símbolo, por "
"exemplo, é possível obter o segmento de origem de um nó de expressão de uma "
"linha usando ``source_line[node.col_offset : node.end_col_offset]``."
#: ../../library/ast.rst:96
msgid ""
"The constructor of a class :class:`ast.T` parses its arguments as follows:"
msgstr ""
"O construtor de uma classe :class:`ast.T` analisa seus argumentos da "
"seguinte forma:"
#: ../../library/ast.rst:98
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 ""
"Se houver argumentos posicionais, deve haver tantos quanto houver itens em :"
"attr:`T._fields`; eles serão atribuídos como atributos desses nomes."
#: ../../library/ast.rst:100
msgid ""
"If there are keyword arguments, they will set the attributes of the same "
"names to the given values."
msgstr ""
"Se houver argumentos nomeados, eles definirão os atributos dos mesmos nomes "
"para os valores fornecidos."
#: ../../library/ast.rst:103
msgid ""
"For example, to create and populate an :class:`ast.UnaryOp` node, you could "
"use ::"
msgstr ""
"Por exemplo, para criar e popular um nó :class:`ast.UnaryOp`, você poderia "
"usar ::"
#: ../../library/ast.rst:115
msgid "or the more compact ::"
msgstr "ou a forma mais compacta ::"
#: ../../library/ast.rst:122
msgid "Class :class:`ast.Constant` is now used for all constants."
msgstr "A classe :class:`ast.Constant` é agora usada para todas as constantes."
#: ../../library/ast.rst:126
msgid ""
"Simple indices are represented by their value, extended slices are "
"represented as tuples."
msgstr ""
"Os índices simples são representados por seus valores, as fatias estendidas "
"são representadas como tuplas."
#: ../../library/ast.rst:131
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 meantime, instantiating "
"them will return an instance of a different class."
msgstr ""
#: ../../library/ast.rst:138
msgid ""
"Old classes :class:`ast.Index` and :class:`ast.ExtSlice` are still "
"available, but they will be removed in future Python releases. In the "
"meantime, instantiating them will return an instance of a different class."
msgstr ""
#: ../../library/ast.rst:144
msgid ""
"The descriptions of the specific node classes displayed here were initially "
"adapted from the fantastic `Green Tree Snakes <https://greentreesnakes."
"readthedocs.io/en/latest/>`__ project and all its contributors."
msgstr ""
"As descrições das classes de nós específicas exibidas aqui foram "
"inicialmente adaptadas do fantástico projeto `Green Tree Snakes <https://"
"greentreesnakes.readthedocs.io/en/latest/>`__ e de todos os seus "
"contribuidores."
#: ../../library/ast.rst:150
msgid "Literals"
msgstr "Literais"
#: ../../library/ast.rst:154
msgid ""
"A constant value. The ``value`` attribute of the ``Constant`` literal "
"contains the Python object it represents. The values represented can be "
"simple types such as a number, string or ``None``, but also immutable "
"container types (tuples and frozensets) if all of their elements are "
"constant."
msgstr ""
"Um valor constante. O atributo ``value`` do literal ``Constant`` contém o "
"objeto Python que ele representa. Os valores representados podem ser tipos "
"simples como um número, string ou ``None``, mas também tipos de contêineres "
"imutáveis (tuplas e frozensets) se todos os seus elementos forem constantes."
#: ../../library/ast.rst:168
msgid ""
"Node representing a single formatting field in an f-string. If the string "
"contains a single formatting field and nothing else the node can be isolated "
"otherwise it appears in :class:`JoinedStr`."
msgstr ""
"Nó que representa um único campo de formatação em uma f-string. Se a string "
"contiver um único campo de formatação e nada mais, o nó poderá ser isolado, "
"caso contrário ele aparecerá em :class:`JoinedStr`."
#: ../../library/ast.rst:172
msgid ""
"``value`` is any expression node (such as a literal, a variable, or a "
"function call)."
msgstr ""
"``value`` é qualquer nó de expressão (como um literal, uma variável ou uma "
"chamada de função)."
#: ../../library/ast.rst:174
msgid "``conversion`` is an integer:"
msgstr "``conversion`` é um inteiro:"
#: ../../library/ast.rst:176
msgid "-1: no formatting"
msgstr "-1: sem formatação"
#: ../../library/ast.rst:177
msgid "115: ``!s`` string formatting"
msgstr "115: ``!s`` formatação de string"
#: ../../library/ast.rst:178
msgid "114: ``!r`` repr formatting"
msgstr "114: ``!r`` formatação de repr"
#: ../../library/ast.rst:179
msgid "97: ``!a`` ascii formatting"
msgstr "97: ``!a`` formatação ascii"
#: ../../library/ast.rst:181
msgid ""
"``format_spec`` is a :class:`JoinedStr` node representing the formatting of "
"the value, or ``None`` if no format was specified. Both ``conversion`` and "
"``format_spec`` can be set at the same time."
msgstr ""
"``format_spec`` é um nó :class:`JoinedStr` que representa a formatação do "
"valor, ou ``None`` se nenhum formato foi especificado. Tanto ``conversion`` "
"quanto ``format_spec`` podem ser configurados ao mesmo tempo."
#: ../../library/ast.rst:188
msgid ""
"An f-string, comprising a series of :class:`FormattedValue` and :class:"
"`Constant` nodes."
msgstr ""
"Uma f-string, compreendendo uma série de nós :class:`FormattedValue` e :"
"class:`Constant`."
#: ../../library/ast.rst:217
msgid ""
"A list or tuple. ``elts`` holds a list of nodes representing the elements. "
"``ctx`` is :class:`Store` if the container is an assignment target (i.e. "
"``(x,y)=something``), and :class:`Load` otherwise."
msgstr ""
"Uma lista ou tupla. ``elts`` contém uma lista de nós que representam os "
"elementos. ``ctx`` é :class:`Store` se o contêiner for um alvo de atribuição "
"(ou seja, ``(x,y)=algumacoisa``), e :class:`Load` caso contrário."
#: ../../library/ast.rst:243
msgid "A set. ``elts`` holds a list of nodes representing the set's elements."
msgstr ""
"Um conjunto. ``elts`` contém uma lista de nós que representam os elementos "
"do conjunto."
#: ../../library/ast.rst:258
msgid ""
"A dictionary. ``keys`` and ``values`` hold lists of nodes representing the "
"keys and the values respectively, in matching order (what would be returned "
"when calling :code:`dictionary.keys()` and :code:`dictionary.values()`)."
msgstr ""
"Um dicionário. ``keys`` e ``values`` contêm listas de nós que representam as "
"chaves e os valores respectivamente, em ordem correspondente (o que seria "
"retornado ao chamar :code:`dictionary.keys()` e :code:`dictionary.values()`)."
#: ../../library/ast.rst:262
msgid ""
"When doing dictionary unpacking using dictionary literals the expression to "
"be expanded goes in the ``values`` list, with a ``None`` at the "
"corresponding position in ``keys``."
msgstr ""
"Ao desempacotar o dicionário usando literais de dicionário, a expressão a "
"ser expandida vai para a lista ``values``, com um ``None`` na posição "
"correspondente em ``keys``."
#: ../../library/ast.rst:280
msgid "Variables"
msgstr "Variáveis"
#: ../../library/ast.rst:284
msgid ""
"A variable name. ``id`` holds the name as a string, and ``ctx`` is one of "
"the following types."
msgstr ""
"Um nome de variável. ``id`` contém o nome como uma string e ``ctx`` é um dos "
"seguintes tipos."
#: ../../library/ast.rst:292
msgid ""
"Variable references can be used to load the value of a variable, to assign a "
"new value to it, or to delete it. Variable references are given a context to "
"distinguish these cases."
msgstr ""
"As referências de variáveis podem ser usadas para carregar o valor de uma "
"variável, para atribuir um novo valor a ela ou para excluí-la. As "
"referências de variáveis recebem um contexto para distinguir esses casos."
#: ../../library/ast.rst:325
msgid ""
"A ``*var`` variable reference. ``value`` holds the variable, typically a :"
"class:`Name` node. This type must be used when building a :class:`Call` node "
"with ``*args``."
msgstr ""
"Uma referência de variável ``*var``. ``value`` contém a variável, "
"normalmente um nó :class:`Name`. Este tipo deve ser usado ao construir um "
"nó :class:`Call` com ``*args``."
#: ../../library/ast.rst:348
msgid "Expressions"
msgstr "Expressões"
#: ../../library/ast.rst:352
msgid ""
"When an expression, such as a function call, appears as a statement by "
"itself with its return value not used or stored, it is wrapped in this "
"container. ``value`` holds one of the other nodes in this section, a :class:"
"`Constant`, a :class:`Name`, a :class:`Lambda`, a :class:`Yield` or :class:"
"`YieldFrom` node."
msgstr ""
"Quando uma expressão, como uma chamada de função, aparece como uma instrução "
"por si só com seu valor de retorno não usado ou armazenado, ela é "
"encapsulada neste contêiner. ``value`` contém um dos outros nós nesta seção, "
"um nó :class:`Constant`, um :class:`Name`, um :class:`Lambda`, um :class:"
"`Yield` ou :class:`YieldFrom`."
#: ../../library/ast.rst:371
msgid ""
"A unary operation. ``op`` is the operator, and ``operand`` any expression "
"node."
msgstr ""
"Uma operação unária. ``op`` é o operador e ``operand`` qualquer nó de "
"expressão."
#: ../../library/ast.rst:380
msgid ""
"Unary operator tokens. :class:`Not` is the ``not`` keyword, :class:`Invert` "
"is the ``~`` operator."
msgstr ""
"Tokens de operador unário. :class:`Not` é a palavra reservada ``not``, :"
"class:`Invert` é o operador ``~``."
#: ../../library/ast.rst:394
msgid ""
"A binary operation (like addition or division). ``op`` is the operator, and "
"``left`` and ``right`` are any expression nodes."
msgstr ""
"Uma operação binária (como adição ou divisão). ``op`` é o operador, e "
"``left`` e ``right`` são quaisquer nós de expressão."
#: ../../library/ast.rst:421
msgid "Binary operator tokens."
msgstr "Tokens de operador binário."
#: ../../library/ast.rst:426
msgid ""
"A boolean operation, 'or' or 'and'. ``op`` is :class:`Or` or :class:`And`. "
"``values`` are the values involved. Consecutive operations with the same "
"operator, such as ``a or b or c``, are collapsed into one node with several "
"values."
msgstr ""
"Uma operação booleana, 'or' ou 'and'. ``op`` é :class:`Or` ou :class:`And`. "
"``values`` são os valores envolvidos. Operações consecutivas com o mesmo "
"operador, como ``a or b or c``, são recolhidas em um nó com vários valores."
#: ../../library/ast.rst:431
msgid "This doesn't include ``not``, which is a :class:`UnaryOp`."
msgstr "Isso não inclui ``not``, que é um :class:`UnaryOp`."
#: ../../library/ast.rst:447
msgid "Boolean operator tokens."
msgstr "Tokens de operador booleano."
#: ../../library/ast.rst:452
msgid ""
"A comparison of two or more values. ``left`` is the first value in the "
"comparison, ``ops`` the list of operators, and ``comparators`` the list of "
"values after the first element in the comparison."
msgstr ""
"Uma comparação de dois ou mais valores. ``left`` é o primeiro valor na "
"comparação, ``ops`` a lista de operadores e ``comparators`` a lista de "
"valores após o primeiro elemento na comparação."
#: ../../library/ast.rst:481
msgid "Comparison operator tokens."
msgstr "Tokens de operador de comparação."
#: ../../library/ast.rst:486
msgid ""
"A function call. ``func`` is the function, which will often be a :class:"
"`Name` or :class:`Attribute` object. Of the arguments:"
msgstr ""
"Uma chamada de função. ``func`` é a função, que geralmente será um objeto :"
"class:`Name` ou :class:`Attribute`. Dos argumentos:"
#: ../../library/ast.rst:489
msgid "``args`` holds a list of the arguments passed by position."
msgstr "``args`` contém uma lista dos argumentos passados por posição."
#: ../../library/ast.rst:490
msgid ""
"``keywords`` holds a list of :class:`keyword` objects representing arguments "
"passed by keyword."
msgstr ""
#: ../../library/ast.rst:493
msgid ""
"When creating a ``Call`` node, ``args`` and ``keywords`` are required, but "
"they can be empty lists. ``starargs`` and ``kwargs`` are optional."
msgstr ""
#: ../../library/ast.rst:517
msgid ""
"A keyword argument to a function call or class definition. ``arg`` is a raw "
"string of the parameter name, ``value`` is a node to pass in."
msgstr ""
"Um argumento nomeado para uma chamada de função ou definição de classe. "
"``arg`` é uma string bruta do nome do parâmetro, ``value`` é um nó para "
"passar."
#: ../../library/ast.rst:523
msgid ""
"An expression such as ``a if b else c``. Each field holds a single node, so "
"in the following example, all three are :class:`Name` nodes."
msgstr ""
"Uma expressão como ``a if b else c``. Cada campo contém um único nó, "
"portanto, no exemplo a seguir, todos os três são nós :class:`Name`."
#: ../../library/ast.rst:538
msgid ""
"Attribute access, e.g. ``d.keys``. ``value`` is a node, typically a :class:"
"`Name`. ``attr`` is a bare string giving the name of the attribute, and "
"``ctx`` is :class:`Load`, :class:`Store` or :class:`Del` according to how "
"the attribute is acted on."
msgstr ""
"Acesso a atributo como, por exemplo, ``d.keys``. ``value`` é um nó, "
"normalmente um :class:`Name`. ``attr`` é uma string simples fornecendo o "
"nome do atributo, e ``ctx`` é :class:`Load`, :class:`Store` ou :class:`Del` "
"de acordo com como o atributo é acionado sobre."
#: ../../library/ast.rst:555
msgid ""
"A named expression. This AST node is produced by the assignment expressions "
"operator (also known as the walrus operator). As opposed to the :class:"
"`Assign` node in which the first argument can be multiple nodes, in this "
"case both ``target`` and ``value`` must be single nodes."
msgstr ""
"Uma expressão nomeada. Este nó de AST é produzido pelo operador de "
"expressões de atribuição (também conhecido como operador morsa). Ao "
"contrário do nó :class:`Assign` no qual o primeiro argumento pode ser "
"múltiplos nós, neste caso ambos ``target`` e ``value`` devem ser nós únicos."
#: ../../library/ast.rst:570
msgid "Subscripting"
msgstr "Subscrição"
#: ../../library/ast.rst:574
msgid ""
"A subscript, such as ``l[1]``. ``value`` is the subscripted object (usually "
"sequence or mapping). ``slice`` is an index, slice or key. It can be a :"
"class:`Tuple` and contain a :class:`Slice`. ``ctx`` is :class:`Load`, :class:"
"`Store` or :class:`Del` according to the action performed with the subscript."
msgstr ""
"Um subscrito, como ``l[1]``. ``value`` é o objeto subscrito (geralmente "
"sequência ou mapeamento). ``slice`` é um índice, fatia ou chave. Pode ser "
"uma :class:`Tuple` e conter uma :class:`Slice`. ``ctx`` é :class:`Load`, :"
"class:`Store` ou :class:`Del` de acordo com a ação realizada com o subscrito."
#: ../../library/ast.rst:598
msgid ""
"Regular slicing (on the form ``lower:upper`` or ``lower:upper:step``). Can "
"occur only inside the *slice* field of :class:`Subscript`, either directly "
"or as an element of :class:`Tuple`."
msgstr ""
"Fatiamento regular (no formato ``lower:upper`` ou ``lower:upper:step``). "
"Pode ocorrer apenas dentro do campo *slice* de :class:`Subscript`, "
"diretamente ou como um elemento de :class:`Tuple`."
#: ../../library/ast.rst:615
msgid "Comprehensions"
msgstr "Compreensões"
#: ../../library/ast.rst:622
msgid ""
"List and set comprehensions, generator expressions, and dictionary "
"comprehensions. ``elt`` (or ``key`` and ``value``) is a single node "
"representing the part that will be evaluated for each item."
msgstr ""
"Lista e define compreensões, expressões geradoras e compreensões de "
"dicionário. ``elt`` (ou ``key`` e ``value``) é um único nó que representa a "
"parte que será avaliada para cada item."
#: ../../library/ast.rst:626
msgid "``generators`` is a list of :class:`comprehension` nodes."
msgstr "``generators`` é uma lista de nós de :class:`comprehension`."
#: ../../library/ast.rst:668
msgid ""
"One ``for`` clause in a comprehension. ``target`` is the reference to use "
"for each element - typically a :class:`Name` or :class:`Tuple` node. "
"``iter`` is the object to iterate over. ``ifs`` is a list of test "
"expressions: each ``for`` clause can have multiple ``ifs``."
msgstr ""
"Uma cláusula ``for`` em uma compreensão. ``target`` é a referência a ser "
"usada para cada elemento - normalmente um nó :class:`Name` ou :class:"
"`Tuple`. ``iter`` é o objeto sobre o qual iterar. ``ifs`` é uma lista de "
"expressões de teste: cada cláusula ``for`` pode ter múltiplos ``ifs``."
#: ../../library/ast.rst:673
msgid ""
"``is_async`` indicates a comprehension is asynchronous (using an ``async "
"for`` instead of ``for``). The value is an integer (0 or 1)."
msgstr ""
"``is_async`` indica que uma compreensão é assíncrona (usando um ``async "
"for`` em vez de ``for``). O valor é um número inteiro (0 ou 1)."
#: ../../library/ast.rst:739
msgid "Statements"
msgstr "Instruções"
#: ../../library/ast.rst:743
msgid ""
"An assignment. ``targets`` is a list of nodes, and ``value`` is a single "
"node."
msgstr ""
"Uma atribuição. ``targets`` é uma lista de nós e ``value`` é um único nó."
#: ../../library/ast.rst:745
msgid ""
"Multiple nodes in ``targets`` represents assigning the same value to each. "
"Unpacking is represented by putting a :class:`Tuple` or :class:`List` within "
"``targets``."
msgstr ""
"Vários nós em ``targets`` representam a atribuição do mesmo valor a cada um. "
"O desempacotamento é representada colocando uma :class:`Tuple` ou :class:"
"`List` dentro de ``targets``."
#: ../../library/ast.rst:751 ../../library/ast.rst:1038
#: ../../library/ast.rst:1211 ../../library/ast.rst:1264
msgid ""
"``type_comment`` is an optional string with the type annotation as a comment."
msgstr ""
"``type_comment`` é uma string opcional com a anotação de tipo como "
"comentário."
#: ../../library/ast.rst:781
msgid ""
"An assignment with a type annotation. ``target`` is a single node and can be "
"a :class:`Name`, a :class:`Attribute` or a :class:`Subscript`. "
"``annotation`` is the annotation, such as a :class:`Constant` or :class:"
"`Name` node. ``value`` is a single optional node. ``simple`` is a boolean "
"integer set to True for a :class:`Name` node in ``target`` that do not "
"appear in between parenthesis and are hence pure names and not expressions."
msgstr ""
"Uma atribuição com uma anotação de tipo. ``target`` é um nó único e pode ser "
"um :class:`Name`, um :class:`Attribute` ou um :class:`Subscript`. "
"``annotation`` é a anotação, como um nó de :class:`Constant` ou :class:"
"`Name`. ``value`` é um único nó opcional. ``simple`` é um inteiro booleano "
"definido como True para um nó :class:`Name` em ``target`` que não aparece "
"entre parênteses e são, portanto, nomes puros e não expressões."
#: ../../library/ast.rst:836
msgid ""
"Augmented assignment, such as ``a += 1``. In the following example, "
"``target`` is a :class:`Name` node for ``x`` (with the :class:`Store` "
"context), ``op`` is :class:`Add`, and ``value`` is a :class:`Constant` with "
"value for 1."
msgstr ""
"Atribuição aumentada, como ``a += 1``. No exemplo a seguir, ``target`` é um "
"nó :class:`Name` para ``x`` (com o contexto :class:`Store`), ``op`` é :class:"
"`Add`, e ``value`` é uma :class:`Constant` com valor para 1."
#: ../../library/ast.rst:841
msgid ""
"The ``target`` attribute connot be of class :class:`Tuple` or :class:`List`, "
"unlike the targets of :class:`Assign`."
msgstr ""
#: ../../library/ast.rst:858
msgid ""
"A ``raise`` statement. ``exc`` is the exception object to be raised, "
"normally a :class:`Call` or :class:`Name`, or ``None`` for a standalone "
"``raise``. ``cause`` is the optional part for ``y`` in ``raise x from y``."
msgstr ""
"Uma instrução ``raise``. ``exc`` é o objeto de exceção a ser levantado, "
"normalmente uma :class:`Call` ou :class:`Name`, ou ``None`` para um "
"``raise`` independente. ``cause`` é a parte opcional para ``y`` em ``raise x "
"from y``."
#: ../../library/ast.rst:875
msgid ""
"An assertion. ``test`` holds the condition, such as a :class:`Compare` node. "
"``msg`` holds the failure message."
msgstr ""
"Uma asserção. ``test`` contém a condição, como um nó :class:`Compare`. "
"``msg`` contém a mensagem de falha."
#: ../../library/ast.rst:891
msgid ""
"Represents a ``del`` statement. ``targets`` is a list of nodes, such as :"
"class:`Name`, :class:`Attribute` or :class:`Subscript` nodes."
msgstr ""
"Representa uma instrução ``del``. ``targets`` é uma lista de nós, como nós :"
"class:`Name`, :class:`Attribute` ou :class:`Subscript`."
#: ../../library/ast.rst:909
msgid "A ``pass`` statement."
msgstr "Uma instrução ``pass``."
#: ../../library/ast.rst:920
msgid ""
"Other statements which are only applicable inside functions or loops are "
"described in other sections."
msgstr ""
"Outras instruções que são aplicáveis apenas dentro de funções ou laços são "
"descritas em outras seções."
#: ../../library/ast.rst:924
msgid "Imports"
msgstr "Importações"
#: ../../library/ast.rst:928
msgid "An import statement. ``names`` is a list of :class:`alias` nodes."
msgstr ""
"Uma instrução de importação. ``names`` é uma lista de nós de :class:`alias`."
#: ../../library/ast.rst:945
msgid ""
"Represents ``from x import y``. ``module`` is a raw string of the 'from' "
"name, without any leading dots, or ``None`` for statements such as ``from . "
"import foo``. ``level`` is an integer holding the level of the relative "
"import (0 means absolute import)."
msgstr ""
"Representa ``from x import y``. ``module`` é uma string bruta do nome "
"'from', sem quaisquer pontos iniciais, ou ``None`` para instruções como "
"``from . import foo``. ``level`` é um número inteiro que contém o nível da "
"importação relativa (0 significa importação absoluta)."
#: ../../library/ast.rst:967
msgid ""
"Both parameters are raw strings of the names. ``asname`` can be ``None`` if "
"the regular name is to be used."
msgstr ""
"Ambos os parâmetros são strings brutas dos nomes. ``asname`` pode ser "
"``None`` se o nome normal for usado."
#: ../../library/ast.rst:984
msgid "Control flow"
msgstr "Fluxo de controle"
#: ../../library/ast.rst:987
msgid ""
"Optional clauses such as ``else`` are stored as an empty list if they're not "
"present."
msgstr ""
"Cláusulas opcionais como ``else`` são armazenadas como uma lista vazia se "
"não estiverem presentes."
#: ../../library/ast.rst:992
msgid ""
"An ``if`` statement. ``test`` holds a single node, such as a :class:"
"`Compare` node. ``body`` and ``orelse`` each hold a list of nodes."
msgstr ""
"Uma instrução ``if``. ``test`` contém um único nó, como um nó :class:"
"`Compare`. ``body`` e ``orelse`` contêm, cada um, uma lista de nós."
#: ../../library/ast.rst:995
msgid ""
"``elif`` clauses don't have a special representation in the AST, but rather "
"appear as extra :class:`If` nodes within the ``orelse`` section of the "
"previous one."
msgstr ""
"As cláusulas ``elif`` não têm uma representação especial no AST, mas "
"aparecem como nós extras de :class:`If` dentro da seção ``orelse`` da "
"cláusula anterior."
#: ../../library/ast.rst:1030
msgid ""
"A ``for`` loop. ``target`` holds the variable(s) the loop assigns to, as a "
"single :class:`Name`, :class:`Tuple` or :class:`List` node. ``iter`` holds "
"the item to be looped over, again as a single node. ``body`` and ``orelse`` "
"contain lists of nodes to execute. Those in ``orelse`` are executed if the "
"loop finishes normally, rather than via a ``break`` statement."
msgstr ""
#: ../../library/ast.rst:1064
msgid ""
"A ``while`` loop. ``test`` holds the condition, such as a :class:`Compare` "
"node."
msgstr ""
"Um laço ``while``. ``test`` contém a condição, como um nó de :class:"
"`Compare`."
#: ../../library/ast.rst:1091
msgid "The ``break`` and ``continue`` statements."
msgstr "As instruções ``break`` e ``continue``."
#: ../../library/ast.rst:1126
msgid ""
"``try`` blocks. All attributes are list of nodes to execute, except for "
"``handlers``, which is a list of :class:`ExceptHandler` nodes."
msgstr ""
"Blocos ``try``. Todos os atributos são uma lista de nós a serem executados, "
"exceto ``handlers``, que é uma lista de nós de :class:`ExceptHandler`."
#: ../../library/ast.rst:1172
msgid ""
"A single ``except`` clause. ``type`` is the exception type it will match, "
"typically a :class:`Name` node (or ``None`` for a catch-all ``except:`` "
"clause). ``name`` is a raw string for the name to hold the exception, or "
"``None`` if the clause doesn't have ``as foo``. ``body`` is a list of nodes."
msgstr ""
"Uma única cláusula ``except``. ``type`` é o tipo de exceção que irá "
"corresponder, normalmente um nó de :class:`Name` (ou ``None`` para uma "
"cláusula abrangente ``except:``). ``name`` é uma string bruta para o nome "
"conter a exceção, ou ``None`` se a cláusula não tiver ``as foo``. ``body`` é "
"uma lista de nós."
#: ../../library/ast.rst:1206
msgid ""
"A ``with`` block. ``items`` is a list of :class:`withitem` nodes "
"representing the context managers, and ``body`` is the indented block inside "
"the context."
msgstr ""
"Um bloco ``with``. ``items`` é uma lista de nós :class:`withitem` "
"representando os gerenciadores de contexto, e ``body`` é o bloco indentado "
"dentro do contexto."
#: ../../library/ast.rst:1216
msgid ""
"A single context manager in a ``with`` block. ``context_expr`` is the "
"context manager, often a :class:`Call` node. ``optional_vars`` is a :class:"
"`Name`, :class:`Tuple` or :class:`List` for the ``as foo`` part, or ``None`` "
"if that isn't used."
msgstr ""
"Um único gerenciador de contexto em um bloco ``with``. ``context_expr`` é o "
"gerenciador de contexto, geralmente um nó de :class:`Call`. "
"``optional_vars`` é um :class:`Name`, :class:`Tuple` ou :class:`List` para a "
"parte ``as foo``, ou ``None`` se não for usado."
#: ../../library/ast.rst:1249
msgid "Function and class definitions"
msgstr "Definições de função e classe"
#: ../../library/ast.rst:1253
msgid "A function definition."
msgstr "Uma definição de função"
#: ../../library/ast.rst:1255
msgid "``name`` is a raw string of the function name."
msgstr "``name`` é uma string bruta do nome da função."
#: ../../library/ast.rst:1256
msgid "``args`` is an :class:`arguments` node."
msgstr "``args`` é um nó :class:`arguments`."
#: ../../library/ast.rst:1257
msgid "``body`` is the list of nodes inside the function."
msgstr "``body`` é a lista de nós dentro da função."
#: ../../library/ast.rst:1258
msgid ""
"``decorator_list`` is the list of decorators to be applied, stored outermost "
"first (i.e. the first in the list will be applied last)."
msgstr ""
"``decorator_list`` é a lista de decoradores a serem aplicados, armazenados "
"primeiro na parte externa (ou seja, o primeiro da lista será aplicado por "
"último)."
#: ../../library/ast.rst:1260
msgid "``returns`` is the return annotation."
msgstr "``returns`` é a anotação de retorno."
#: ../../library/ast.rst:1269
msgid ""
"``lambda`` is a minimal function definition that can be used inside an "
"expression. Unlike :class:`FunctionDef`, ``body`` holds a single node."
msgstr ""
"``lambda`` é uma definição mínima de função que pode ser usada dentro de uma "
"expressão. Ao contrário de :class:`FunctionDef`, ``body`` contém um único nó."
#: ../../library/ast.rst:1293
msgid "The arguments for a function."
msgstr "Os argumentos para uma função."
#: ../../library/ast.rst:1295
msgid ""
"``posonlyargs``, ``args`` and ``kwonlyargs`` are lists of :class:`arg` nodes."
msgstr ""
"``posonlyargs``, ``args`` e ``kwonlyargs`` são listas de nós :class:`arg`."
#: ../../library/ast.rst:1296
msgid ""
"``vararg`` and ``kwarg`` are single :class:`arg` nodes, referring to the "
"``*args, **kwargs`` parameters."
msgstr ""
"``vararg`` e ``kwarg`` são nós :class:`arg` únicos, referindo-se aos "
"parâmetros ``*args, **kwargs``."
#: ../../library/ast.rst:1298
msgid ""
"``kw_defaults`` is a list of default values for keyword-only arguments. If "
"one is ``None``, the corresponding argument is required."
msgstr ""
"``kw_defaults`` é uma lista de valores padrão para argumentos somente-"
"nomeados. Se um for ``None``, o argumento correspondente é necessário."
#: ../../library/ast.rst:1300
msgid ""
"``defaults`` is a list of default values for arguments that can be passed "
"positionally. If there are fewer defaults, they correspond to the last n "
"arguments."
msgstr ""
"``defaults`` é uma lista de valores padrão para argumentos que podem ser "
"passados posicionalmente. Se houver menos padrões, eles corresponderão aos "
"últimos n argumentos."
#: ../../library/ast.rst:1307
msgid ""
"A single argument in a list. ``arg`` is a raw string of the argument name, "
"``annotation`` is its annotation, such as a :class:`Str` or :class:`Name` "
"node."
msgstr ""
#: ../../library/ast.rst:1313
msgid ""
"``type_comment`` is an optional string with the type annotation as a comment"
msgstr ""
"``type_comment`` é uma string opcional com a anotação de tipo como comentário"
#: ../../library/ast.rst:1357
msgid "A ``return`` statement."
msgstr "Uma instrução ``return``."
#: ../../library/ast.rst:1372
msgid ""
"A ``yield`` or ``yield from`` expression. Because these are expressions, "
"they must be wrapped in a :class:`Expr` node if the value sent back is not "
"used."
msgstr ""
"Uma expressão ``yield`` ou ``yield from``. Por serem expressões, elas devem "
"ser agrupadas em um nó :class:`Expr` se o valor enviado de volta não for "
"usado."
#: ../../library/ast.rst:1397
msgid ""
"``global`` and ``nonlocal`` statements. ``names`` is a list of raw strings."
msgstr ""
"Instruções ``global`` e ``nonlocal``. ``names`` é uma lista de strings "
"brutas."
#: ../../library/ast.rst:1424
msgid "A class definition."
msgstr "Uma definição de classe"
#: ../../library/ast.rst:1426
msgid "``name`` is a raw string for the class name"
msgstr "``name`` é uma string bruta para o nome da classe"
#: ../../library/ast.rst:1427
msgid "``bases`` is a list of nodes for explicitly specified base classes."
msgstr ""
"``bases`` é uma lista de nós para classes base especificadas explicitamente."
#: ../../library/ast.rst:1428
msgid ""
"``keywords`` is a list of :class:`keyword` nodes, principally for "
"'metaclass'. Other keywords will be passed to the metaclass, as per "
"`PEP-3115 <https://www.python.org/dev/peps/pep-3115/>`_."
msgstr ""
#: ../../library/ast.rst:1431
msgid ""
"``starargs`` and ``kwargs`` are each a single node, as in a function call. "
"starargs will be expanded to join the list of base classes, and kwargs will "
"be passed to the metaclass."
msgstr ""
#: ../../library/ast.rst:1434
msgid ""
"``body`` is a list of nodes representing the code within the class "
"definition."
msgstr ""
"``body`` é uma lista de nós que representam o código dentro da definição de "
"classe."
#: ../../library/ast.rst:1436
msgid "``decorator_list`` is a list of nodes, as in :class:`FunctionDef`."
msgstr "``decorator_list`` é uma lista de nós, como em :class:`FunctionDef`."
#: ../../library/ast.rst:1465
msgid "Async and await"
msgstr "Async e await"
#: ../../library/ast.rst:1469
msgid ""
"An ``async def`` function definition. Has the same fields as :class:"
"`FunctionDef`."
msgstr ""
"Uma definição de função ``async def``. Possui os mesmos campos que :class:"
"`FunctionDef`."
#: ../../library/ast.rst:1475
msgid ""
"An ``await`` expression. ``value`` is what it waits for. Only valid in the "
"body of an :class:`AsyncFunctionDef`."
msgstr ""
"Uma expressão ``await``. ``value`` é o que ela espera. Válido apenas no "
"corpo de um :class:`AsyncFunctionDef`."
#: ../../library/ast.rst:1508
msgid ""
"``async for`` loops and ``async with`` context managers. They have the same "
"fields as :class:`For` and :class:`With`, respectively. Only valid in the "
"body of an :class:`AsyncFunctionDef`."
msgstr ""
"Laços ``async for`` e gerenciadores de contexto ``async with``. Eles têm os "
"mesmos campos que :class:`For` e :class:`With`, respectivamente. Válido "
"apenas no corpo de :class:`AsyncFunctionDef`."
#: ../../library/ast.rst:1513
msgid ""
"When a string is parsed by :func:`ast.parse`, operator nodes (subclasses of :"
"class:`ast.operator`, :class:`ast.unaryop`, :class:`ast.cmpop`, :class:`ast."
"boolop` and :class:`ast.expr_context`) on the returned tree will be "
"singletons. Changes to one will be reflected in all other occurrences of the "
"same value (e.g. :class:`ast.Add`)."
msgstr ""
"Quando uma string é analisada por :func:`ast.parse`, os nós operadores "
"(subclasses de :class:`ast.operator`, :class:`ast.unaryop`, :class:`ast."
"cmpop`, :class:`ast.boolop` e :class:`ast.expr_context`) na árvore retornada "
"serão singletons. As alterações em um serão refletidas em todas as outras "
"ocorrências do mesmo valor (por exemplo, :class:`ast.Add`)."