33# This file is distributed under the same license as the Python package.
44# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
55#
6+ # Translators:
7+ # Henrique Branco, 2022
8+ #
69#, fuzzy
710msgid ""
811msgstr ""
912"Project-Id-Version : Python 3.10\n "
1013"Report-Msgid-Bugs-To : \n "
1114"POT-Creation-Date : 2022-06-16 06:28+0000\n "
1215"PO-Revision-Date : 2021-06-28 00:54+0000\n "
16+ "Last-Translator : Henrique Branco, 2022\n "
1317"Language-Team : Portuguese (Brazil) (https://www.transifex.com/python-doc/ "
1418"teams/5390/pt_BR/)\n "
1519"MIME-Version : 1.0\n "
@@ -21,23 +25,27 @@ msgstr ""
2125
2226#: ../../library/__main__.rst:2
2327msgid ":mod:`__main__` --- Top-level code environment"
24- msgstr ""
28+ msgstr ":mod:`__main__` --- Ambiente de codificação principal "
2529
2630#: ../../library/__main__.rst:10
2731msgid ""
2832"In Python, the special name ``__main__`` is used for two important "
2933"constructs:"
3034msgstr ""
35+ "Em Python, o nome especial ``__main__`` é usado em duas construções "
36+ "importantes:"
3137
3238#: ../../library/__main__.rst:12
3339msgid ""
3440"the name of the top-level environment of the program, which can be checked "
3541"using the ``__name__ == '__main__'`` expression; and"
3642msgstr ""
43+ "O nome do ambiente principal do programa, que pode ser verificado usando a "
44+ "expressão ``__name__ == '__main__'``; e"
3745
3846#: ../../library/__main__.rst:14
3947msgid "the ``__main__.py`` file in Python packages."
40- msgstr ""
48+ msgstr "o arquivo ``__main__.py`` em pacotes Python "
4149
4250#: ../../library/__main__.rst:16
4351msgid ""
@@ -46,33 +54,44 @@ msgid ""
4654"detail below. If you're new to Python modules, see the tutorial section :"
4755"ref:`tut-modules` for an introduction."
4856msgstr ""
57+ "Ambas as formas estão relacionadas aos módulos Python; como os usuários "
58+ "interagem com eles e como eles interagem entre si. Eles serão explicados em "
59+ "detalhes abaixo. Se você ainda não conhece módulos Python, veja a seção do "
60+ "\\ :ref\\ :`tut-modules` para uma introdução"
4961
5062#: ../../library/__main__.rst:25
5163msgid "``__name__ == '__main__'``"
52- msgstr ""
64+ msgstr "``__name__ == '__main__'`` "
5365
5466#: ../../library/__main__.rst:27
5567msgid ""
5668"When a Python module or package is imported, ``__name__`` is set to the "
5769"module's name. Usually, this is the name of the Python file itself without "
5870"the ``.py`` extension::"
5971msgstr ""
72+ "Quando um pacote ou módulo Python é importado, ``__name__`` é definido como "
73+ "o nome do módulo. Normalmente, este é o nome do próprio arquivo Python sem a "
74+ "extensão ``.py``:"
6075
6176#: ../../library/__main__.rst:35
6277msgid ""
6378"If the file is part of a package, ``__name__`` will also include the parent "
6479"package's path::"
6580msgstr ""
81+ "Caso o arquivo seja parte de um pacote, ``__name__``também incluirá o nome "
82+ "da pasta raiz do pacote."
6683
6784#: ../../library/__main__.rst:42
6885msgid ""
6986"However, if the module is executed in the top-level code environment, its "
7087"``__name__`` is set to the string ``'__main__'``."
7188msgstr ""
89+ "Porém, se o módulo for executado como o código principal, ``__name__`` passa "
90+ "a ser definido como a string ``'__main__'``"
7291
7392#: ../../library/__main__.rst:46
7493msgid "What is the \" top-level code environment\" ?"
75- msgstr ""
94+ msgstr "O que é o \" ambiente de códificação principal \" ? "
7695
7796#: ../../library/__main__.rst:48
7897msgid ""
@@ -82,39 +101,54 @@ msgid ""
82101"program needs. Sometimes \" top-level code\" is called an *entry point* to "
83102"the application."
84103msgstr ""
104+ "``__main__`` é o nome do ambiente principal no qual o código roda. "
105+ "\" Ambiente de códificação principal\" é o primeiro módulo Python definido "
106+ "pelo usuário que começa a rodar. É considerado principal porque ele importa "
107+ "todos os outros módulos que o programa precisa. As vezes, \" ambiente "
108+ "principal\" também pode ser chamado de \" ponto de entrada\" da aplicação."
85109
86110#: ../../library/__main__.rst:53
87111msgid "The top-level code environment can be:"
88- msgstr ""
112+ msgstr "O ambiente principal de codificação pode ser: "
89113
90114#: ../../library/__main__.rst:55
91115msgid "the scope of an interactive prompt::"
92- msgstr ""
116+ msgstr "o escopo de um prompt de comando interativo: "
93117
94118#: ../../library/__main__.rst:60
95119msgid "the Python module passed to the Python interpreter as a file argument:"
96120msgstr ""
121+ "o módulo Python passado ao interpretador do Python como um argumento "
122+ "correspondente ao nome do arquivo:"
97123
98124#: ../../library/__main__.rst:67
99125msgid ""
100126"the Python module or package passed to the Python interpreter with the :"
101127"option:`-m` argument:"
102128msgstr ""
129+ "o módulo ou pacote Python passado ao interpretador do Python com o "
130+ "argumento :option:`-m`"
103131
104132#: ../../library/__main__.rst:75
105133msgid "Python code read by the Python interpreter from standard input:"
106134msgstr ""
135+ "código Python lido pelo interpretador através da entrada padrão de linha de "
136+ "comando:"
107137
108138#: ../../library/__main__.rst:86
109139msgid ""
110140"Python code passed to the Python interpreter with the :option:`-c` argument:"
111141msgstr ""
142+ "código Python passado ao interpretador do Python com o argumento :option:`-"
143+ "c`"
112144
113145#: ../../library/__main__.rst:97
114146msgid ""
115147"In each of these situations, the top-level module's ``__name__`` is set to "
116148"``'__main__'``."
117149msgstr ""
150+ "Em cada uma destas situações, a variável especial ``__name__``passa a ser "
151+ "definida como ``'__main__'``."
118152
119153#: ../../library/__main__.rst:100
120154msgid ""
0 commit comments