@@ -12,7 +12,7 @@ msgid ""
1212msgstr ""
1313"Project-Id-Version : Python 3.11\n "
1414"Report-Msgid-Bugs-To : \n "
15- "POT-Creation-Date : 2025-11-27 16:29 +0000\n "
15+ "POT-Creation-Date : 2025-12-31 16:36 +0000\n "
1616"PO-Revision-Date : 2025-09-22 16:49+0000\n "
1717"Last-Translator : Rainer Terroso, 2025\n "
1818"Language-Team : Portuguese (Brazil) (https://app.transifex.com/python-doc/ "
@@ -167,22 +167,27 @@ msgid ""
167167"a callback. If there's a need for such code to call a low-level asyncio "
168168"API, the :meth:`loop.call_soon_threadsafe` method should be used, e.g.::"
169169msgstr ""
170- "A maioria dos objetos do asyncio não é thread-safe , o que normalmente não é "
171- "um problema, a menos que exista código que interaja com eles fora de uma "
172- "Task ou de uma função de retorno . Se houver necessidade de tal código chamar "
173- "uma API de baixo nível do asyncio, deve-se usar o método :meth:`loop. "
174- "call_soon_threadsafe`, por exemplo::"
170+ "Quase todos os objetos do asyncio não são seguros para threads , o que "
171+ "normalmente não é um problema, a menos que exista código que funcione com "
172+ "eles fora de uma Task ou de um callback . Se houver a necessidade de esse "
173+ "tipo de código chamar uma API de baixo nível do asyncio, o método :meth:"
174+ "`loop. call_soon_threadsafe` deve ser usado , por exemplo::"
175175
176176#: ../../library/asyncio-dev.rst:89
177177msgid ""
178178"To schedule a coroutine object from a different OS thread, the :func:"
179179"`run_coroutine_threadsafe` function should be used. It returns a :class:"
180180"`concurrent.futures.Future` to access the result::"
181181msgstr ""
182+ "Para agendar um objeto corrotina a partir de uma thread diferente do sistema "
183+ "operacional, a função :func:`run_coroutine_threadsafe` deve ser usada. Ela "
184+ "retorna um :class:`concurrent.futures.Future`. para acessar o resultado::"
182185
183186#: ../../library/asyncio-dev.rst:102
184187msgid "To handle signals the event loop must be run in the main thread."
185188msgstr ""
189+ "Para manipular sinais, o laço de eventos deve ser executado na thread "
190+ "principal."
186191
187192#: ../../library/asyncio-dev.rst:105
188193msgid ""
@@ -215,6 +220,10 @@ msgid ""
215220"function performs a CPU-intensive calculation for 1 second, all concurrent "
216221"asyncio Tasks and IO operations would be delayed by 1 second."
217222msgstr ""
223+ "O código bloqueante (vinculada à CPU) não deve ser chamado diretamente. Por "
224+ "exemplo, se uma função executa um cálculo pesado de CPU durante 1 segundo, "
225+ "todas as Tasks concorrentes do asyncio e as operações de E/S serão atrasadas "
226+ "por 1 segundo."
218227
219228#: ../../library/asyncio-dev.rst:131
220229msgid ""
@@ -240,42 +249,52 @@ msgid ""
240249"The default log level is :py:const:`logging.INFO`, which can be easily "
241250"adjusted::"
242251msgstr ""
252+ "O nível padrão de log é :py:const:`logging.INFO`, que pode ser facilmente "
253+ "ajustado::"
243254
244255#: ../../library/asyncio-dev.rst:151
245256msgid ""
246257"Network logging can block the event loop. It is recommended to use a "
247258"separate thread for handling logs or use non-blocking IO. For example, see :"
248259"ref:`blocking-handlers`."
249260msgstr ""
261+ "Logging de rede pode bloquear o laço de eventos. Recomenda-se usar uma "
262+ "thread separada para lidar com os logs ou usar E/S não bloqueante. Por "
263+ "exemplo, veja :ref:`blocking-handlers`."
250264
251265#: ../../library/asyncio-dev.rst:159
252266msgid "Detect never-awaited coroutines"
253- msgstr ""
267+ msgstr "Detectar corrotinas nunca aguardadas "
254268
255269#: ../../library/asyncio-dev.rst:161
256270msgid ""
257271"When a coroutine function is called, but not awaited (e.g. ``coro()`` "
258272"instead of ``await coro()``) or the coroutine is not scheduled with :meth:"
259273"`asyncio.create_task`, asyncio will emit a :exc:`RuntimeWarning`::"
260274msgstr ""
275+ "Quando uma função de corrotina é chamada, mas não é aguardada (por exemplo, "
276+ "``coro()`` em vez de ``await coro()``) ou a corrotina não é agendada com :"
277+ "meth:`asyncio.create_task`, o asyncio emitirá um :exc:`RuntimeWarning`::"
261278
262279#: ../../library/asyncio-dev.rst:176 ../../library/asyncio-dev.rst:221
263280msgid "Output::"
264281msgstr "Saída::"
265282
266283#: ../../library/asyncio-dev.rst:181 ../../library/asyncio-dev.rst:237
267284msgid "Output in debug mode::"
268- msgstr ""
285+ msgstr "Saída no modo de depuração:: "
269286
270287#: ../../library/asyncio-dev.rst:194
271288msgid ""
272289"The usual fix is to either await the coroutine or call the :meth:`asyncio."
273290"create_task` function::"
274291msgstr ""
292+ "A correção usual é aguardar a corrotina ou chamar a função :meth:`asyncio."
293+ "create_task`::"
275294
276295#: ../../library/asyncio-dev.rst:202
277296msgid "Detect never-retrieved exceptions"
278- msgstr ""
297+ msgstr "Detectar exceções nunca recuperadas "
279298
280299#: ../../library/asyncio-dev.rst:204
281300msgid ""
@@ -284,6 +303,10 @@ msgid ""
284303"this case, asyncio would emit a log message when the Future object is "
285304"garbage collected."
286305msgstr ""
306+ "Se um :meth:`Future.set_exception` é chamado, mas o objeto Future nunca é "
307+ "aguardado, a exceção nunca será propagada para o código do usuário. Nesse "
308+ "caso, o asyncio emitirá uma mensagem de log quando o objeto Future for "
309+ "coletado pela coleta de lixo."
287310
288311#: ../../library/asyncio-dev.rst:209
289312msgid "Example of an unhandled exception::"
0 commit comments