@@ -11,7 +11,7 @@ msgid ""
11
11
msgstr ""
12
12
"Project-Id-Version : Python 3.12\n "
13
13
"Report-Msgid-Bugs-To : \n "
14
- "POT-Creation-Date : 2025-01-24 14:52+0000\n "
14
+ "POT-Creation-Date : 2025-02-07 14:52+0000\n "
15
15
"PO-Revision-Date : 2024-05-11 00:32+0000\n "
16
16
"
Last-Translator :
Rafael Fontenelle <[email protected] >, 2025\n "
17
17
"Language-Team : Portuguese (Brazil) (https://app.transifex.com/python-doc/ "
@@ -4567,7 +4567,7 @@ msgstr ""
4567
4567
4568
4568
#: ../../faq/programming.rst:2145
4569
4569
msgid "How can I have modules that mutually import each other?"
4570
- msgstr ""
4570
+ msgstr "Como posso ter módulos que se importam mutuamente? "
4571
4571
4572
4572
#: ../../faq/programming.rst:2147
4573
4573
msgid "Suppose you have the following modules:"
@@ -4582,6 +4582,8 @@ msgid ""
4582
4582
"from bar import bar_var\n"
4583
4583
"foo_var = 1"
4584
4584
msgstr ""
4585
+ "from bar importar bar_var\n"
4586
+ "foo_var = 1"
4585
4587
4586
4588
#: ../../faq/programming.rst:2154
4587
4589
msgid ":file:`bar.py`::"
@@ -4592,62 +4594,73 @@ msgid ""
4592
4594
"from foo import foo_var\n"
4593
4595
"bar_var = 2"
4594
4596
msgstr ""
4597
+ "from foo import foo_var\n"
4598
+ "bar_var = 2"
4595
4599
4596
4600
#: ../../faq/programming.rst:2159
4597
4601
msgid "The problem is that the interpreter will perform the following steps:"
4598
4602
msgstr "O problema é que o interpretador vai realizar os seguintes passos:"
4599
4603
4600
4604
#: ../../faq/programming.rst:2161
4601
4605
msgid "main imports ``foo``"
4602
- msgstr ""
4606
+ msgstr "programa principal importa ``foo`` "
4603
4607
4604
4608
#: ../../faq/programming.rst:2162
4605
4609
msgid "Empty globals for ``foo`` are created"
4606
- msgstr ""
4610
+ msgstr "São criados globais vazios para ``foo`` "
4607
4611
4608
4612
#: ../../faq/programming.rst:2163
4609
4613
msgid "``foo`` is compiled and starts executing"
4610
- msgstr ""
4614
+ msgstr "``foo`` é compilado e começa a ser executado "
4611
4615
4612
4616
#: ../../faq/programming.rst:2164
4613
4617
msgid "``foo`` imports ``bar``"
4614
- msgstr ""
4618
+ msgstr "``foo`` importa ``bar`` "
4615
4619
4616
4620
#: ../../faq/programming.rst:2165
4617
4621
msgid "Empty globals for ``bar`` are created"
4618
- msgstr ""
4622
+ msgstr "São criados globais vazios para ``bar`` "
4619
4623
4620
4624
#: ../../faq/programming.rst:2166
4621
4625
msgid "``bar`` is compiled and starts executing"
4622
- msgstr ""
4626
+ msgstr "``bar`` é compilado e começa a ser executado "
4623
4627
4624
4628
#: ../../faq/programming.rst:2167
4625
4629
msgid ""
4626
4630
"``bar`` imports ``foo`` (which is a no-op since there already is a module "
4627
4631
"named ``foo``)"
4628
4632
msgstr ""
4633
+ "``bar`` importa ``foo`` (o que não é executado de fato, pois já existe um "
4634
+ "módulo chamado ``foo``)"
4629
4635
4630
4636
#: ../../faq/programming.rst:2168
4631
4637
msgid ""
4632
4638
"The import mechanism tries to read ``foo_var`` from ``foo`` globals, to set "
4633
4639
"``bar.foo_var = foo.foo_var``"
4634
4640
msgstr ""
4641
+ "O mecanismo de importação tenta ler ``foo_var`` do ``foo`` em globais, para "
4642
+ "definir ``bar.foo_var = foo.foo_var``"
4635
4643
4636
4644
#: ../../faq/programming.rst:2170
4637
4645
msgid ""
4638
4646
"The last step fails, because Python isn't done with interpreting ``foo`` yet "
4639
4647
"and the global symbol dictionary for ``foo`` is still empty."
4640
4648
msgstr ""
4649
+ "A última etapa falha, pois Python ainda não terminou de interpretar ``foo`` "
4650
+ "e o dicionário de símbolos global para ``foo`` ainda está vazio."
4641
4651
4642
4652
#: ../../faq/programming.rst:2173
4643
4653
msgid ""
4644
4654
"The same thing happens when you use ``import foo``, and then try to access "
4645
4655
"``foo.foo_var`` in global code."
4646
4656
msgstr ""
4657
+ "O mesmo acontece quando você usa ``import foo`` e, em seguida, tenta acessar "
4658
+ "``foo.foo_var`` no código global."
4647
4659
4648
4660
#: ../../faq/programming.rst:2176
4649
4661
msgid "There are (at least) three possible workarounds for this problem."
4650
4662
msgstr ""
4663
+ "Há (pelo menos) três possíveis soluções alternativas para esse problema."
4651
4664
4652
4665
#: ../../faq/programming.rst:2178
4653
4666
msgid ""
@@ -4657,21 +4670,29 @@ msgid ""
4657
4670
"only. This means everything from an imported module is referenced as "
4658
4671
"``<module>.<name>``."
4659
4672
msgstr ""
4673
+ "Guido van Rossum recomenda evitar todos os usos de ``from <module> import ..."
4674
+ "`` e colocar todo o código dentro de funções. As inicializações de "
4675
+ "variáveis globais e variáveis de classe devem usar apenas constantes ou "
4676
+ "funções embutidas. Isso significa que tudo de um módulo importado é "
4677
+ "referenciado como ``<module>.<name>``."
4660
4678
4661
4679
#: ../../faq/programming.rst:2183
4662
4680
msgid ""
4663
4681
"Jim Roskind suggests performing steps in the following order in each module:"
4664
4682
msgstr ""
4683
+ "Jim Roskind sugere a execução das etapas na seguinte ordem em cada módulo:"
4665
4684
4666
4685
#: ../../faq/programming.rst:2185
4667
4686
msgid ""
4668
4687
"exports (globals, functions, and classes that don't need imported base "
4669
4688
"classes)"
4670
4689
msgstr ""
4690
+ "exportações (globais, função e classes que não precisam de classes base "
4691
+ "importadas)"
4671
4692
4672
4693
#: ../../faq/programming.rst:2187
4673
4694
msgid "``import`` statements"
4674
- msgstr "Declaração ``import``"
4695
+ msgstr "instruções ``import``"
4675
4696
4676
4697
#: ../../faq/programming.rst:2188
4677
4698
msgid ""
@@ -4684,16 +4705,20 @@ msgid ""
4684
4705
"Van Rossum doesn't like this approach much because the imports appear in a "
4685
4706
"strange place, but it does work."
4686
4707
msgstr ""
4708
+ "Van Rossum não gosta muito dessa abordagem porque a importação aparece em um "
4709
+ "lugar estranho, mas ela funciona."
4687
4710
4688
4711
#: ../../faq/programming.rst:2193
4689
4712
msgid ""
4690
4713
"Matthias Urlichs recommends restructuring your code so that the recursive "
4691
4714
"import is not necessary in the first place."
4692
4715
msgstr ""
4716
+ "Matthias Urlichs recomenda reestruturar seu código para que importação "
4717
+ "recursiva não seja necessária em primeiro lugar."
4693
4718
4694
4719
#: ../../faq/programming.rst:2196
4695
4720
msgid "These solutions are not mutually exclusive."
4696
- msgstr "Essas soluções não são mutualmente exclusivas."
4721
+ msgstr "Essas soluções não são mutuamente exclusivas."
4697
4722
4698
4723
#: ../../faq/programming.rst:2200
4699
4724
msgid "__import__('x.y.z') returns <module 'x'>; how do I get z?"
0 commit comments