@@ -12,7 +12,7 @@ msgid ""
1212msgstr ""
1313"Project-Id-Version : Python 3.14\n "
1414"Report-Msgid-Bugs-To : \n "
15- "POT-Creation-Date : 2025-11-17 14:14+0000\n "
15+ "POT-Creation-Date : 2025-11-21 14:14+0000\n "
1616"PO-Revision-Date : 2025-09-16 00:00+0000\n "
1717"Last-Translator : Rafael Fontenelle <rffontenelle@gmail.com>, 2025\n "
1818"Language-Team : Portuguese (Brazil) (https://app.transifex.com/python-doc/ "
@@ -558,16 +558,22 @@ msgid ""
558558"Return the current dictionary of :option:`-X` options, similarly to :data:"
559559"`sys._xoptions`. On error, ``NULL`` is returned and an exception is set."
560560msgstr ""
561+ "Retorna o dicionário atual de opções :option:`-X`, de forma semelhante a :"
562+ "data:`sys._xoptions`. Em caso de erro, retorna ``NULL`` e uma exceção é "
563+ "definida."
561564
562565#: ../../c-api/sys.rst:345
563566msgid ""
564567"Raise an auditing event with any active hooks. Return zero for success and "
565568"non-zero with an exception set on failure."
566569msgstr ""
570+ "Levanta um evento de auditoria com todos os ganchos ativos. Retorna zero em "
571+ "caso de sucesso e um valor diferente de zero com uma exceção definida em "
572+ "caso de falha."
567573
568574#: ../../c-api/sys.rst:348
569575msgid "The *event* string argument must not be *NULL*."
570- msgstr ""
576+ msgstr "O argumento de string *event* não pode ser *NULL*. "
571577
572578#: ../../c-api/sys.rst:350
573579msgid ""
@@ -576,39 +582,55 @@ msgid ""
576582"used in :c:func:`Py_BuildValue` are available. If the built value is not a "
577583"tuple, it will be added into a single-element tuple."
578584msgstr ""
585+ "Se algum gancho tiver sido adicionado, o argumento *format* e outros serão "
586+ "usados para construir uma tupla a ser passada. Além de ``N``, os mesmos "
587+ "caracteres de formatação usados em :c:func:`Py_BuildValue` estão "
588+ "disponíveis. Se o valor construído não for uma tupla, ele será adicionado a "
589+ "uma tupla de um único elemento."
579590
580591#: ../../c-api/sys.rst:355
581592msgid ""
582593"The ``N`` format option must not be used. It consumes a reference, but since "
583594"there is no way to know whether arguments to this function will be consumed, "
584595"using it may cause reference leaks."
585596msgstr ""
597+ "A opção de formato ``N`` não deve ser usada. Ela consome uma referência, mas "
598+ "como não há como saber se os argumentos dessa função serão consumidos, usá-"
599+ "la pode causar vazamentos de referência."
586600
587601#: ../../c-api/sys.rst:359
588602msgid ""
589603"Note that ``#`` format characters should always be treated as :c:type:"
590604"`Py_ssize_t`, regardless of whether ``PY_SSIZE_T_CLEAN`` was defined."
591605msgstr ""
606+ "Observe que os caracteres de formato ``#`` devem sempre ser tratados como :c:"
607+ "type:`Py_ssize_t`, independentemente de ``PY_SSIZE_T_CLEAN`` ter sido "
608+ "definido."
592609
593610#: ../../c-api/sys.rst:362
594611msgid ":func:`sys.audit` performs the same function from Python code."
595- msgstr ""
612+ msgstr ":func:`sys.audit` executa a mesma função a partir do código Python. "
596613
597614#: ../../c-api/sys.rst:364
598615msgid "See also :c:func:`PySys_AuditTuple`."
599- msgstr ""
616+ msgstr "Veja também :c:func:`PySys_AuditTuple`. "
600617
601618#: ../../c-api/sys.rst:370
602619msgid ""
603620"Require :c:type:`Py_ssize_t` for ``#`` format characters. Previously, an "
604621"unavoidable deprecation warning was raised."
605622msgstr ""
623+ "É necessário o tipo :c:type:`Py_ssize_t` para caracteres de formato ``#``. "
624+ "Anteriormente, um aviso de descontinuação era levantado."
606625
607626#: ../../c-api/sys.rst:376
608627msgid ""
609628"Similar to :c:func:`PySys_Audit`, but pass arguments as a Python object. "
610629"*args* must be a :class:`tuple`. To pass no arguments, *args* can be *NULL*."
611630msgstr ""
631+ "Semelhante a :c:func:`PySys_Audit`, mas passa argumentos como um objeto "
632+ "Python. *args* deve ser uma :class:`tuple`. Para não passar argumentos, "
633+ "*args* pode ser *NULL*."
612634
613635#: ../../c-api/sys.rst:384
614636msgid ""
@@ -617,6 +639,11 @@ msgid ""
617639"also set an error on failure. Hooks added through this API are called for "
618640"all interpreters created by the runtime."
619641msgstr ""
642+ "Adiciona o *gancho* chamável à lista de ganchos de auditoria ativos. Retorna "
643+ "zero em caso de sucesso e um valor diferente de zero em caso de falha. Se o "
644+ "ambiente de execução já tiver sido inicializado, também define um erro em "
645+ "caso de falha. Os ganchos adicionados por meio desta API são chamados para "
646+ "todos os interpretadores criados pelo ambiente de execução."
620647
621648#: ../../c-api/sys.rst:390
622649msgid ""
@@ -635,19 +662,30 @@ msgid ""
635662"silently abort the operation by raising an error subclassed from :class:"
636663"`Exception` (other errors will not be silenced)."
637664msgstr ""
665+ "Esta função pode ser chamada com segurança antes de :c:func:`Py_Initialize`. "
666+ "Quando chamada após a inicialização em tempo de execução, os ganchos de "
667+ "auditoria existentes são notificados e podem abortar silenciosamente a "
668+ "operação, levantando um erro da classe :class:`Exception` (outros erros não "
669+ "serão silenciados)."
638670
639671#: ../../c-api/sys.rst:399
640672msgid ""
641673"The hook function is always called with an :term:`attached thread state` by "
642674"the Python interpreter that raised the event."
643675msgstr ""
676+ "A função de gancho é sempre chamada com um :term:`estado de thread anexado` "
677+ "pelo interpretador Python que levantou o evento."
644678
645679#: ../../c-api/sys.rst:402
646680msgid ""
647681"See :pep:`578` for a detailed description of auditing. Functions in the "
648682"runtime and standard library that raise events are listed in the :ref:`audit "
649683"events table <audit-events>`. Details are in each function's documentation."
650684msgstr ""
685+ "Consulte a :pep:`578` para uma descrição detalhada da auditoria. As funções "
686+ "no ambiente de execução e na biblioteca padrão que levantam eventos estão "
687+ "listadas na :ref:`tabela de eventos de auditoria <audit-events>`. Os "
688+ "detalhes estão na documentação de cada função."
651689
652690#: ../../c-api/sys.rst:407 ../../c-api/sys.rst:409
653691msgid ""
@@ -657,6 +695,12 @@ msgid ""
657695"and the exception is cleared. As a result, callers cannot assume that their "
658696"hook has been added unless they control all existing hooks."
659697msgstr ""
698+ "Se o interpretador estiver inicializado, esta função levanta um evento de "
699+ "auditoria ``sys.addaudithook`` sem argumentos. Se algum gancho existente "
700+ "levantar uma exceção derivada de :class:`Exception`, o novo gancho não será "
701+ "adicionado e a exceção será tratada. Consequentemente, os chamadores não "
702+ "podem presumir que seu gancho foi adicionado, a menos que controlem todos os "
703+ "ganchos existentes."
660704
661705#: ../../c-api/sys.rst:418
662706msgid ""
@@ -665,10 +709,14 @@ msgid ""
665709"to be a :c:type:`PyTupleObject`. *userData* is the argument passed to "
666710"PySys_AddAuditHook()."
667711msgstr ""
712+ "O tipo da função de gancho. *event* é o argumento de evento em string C "
713+ "passado para :c:func:`PySys_Audit` ou :c:func:`PySys_AuditTuple`. *args* tem "
714+ "a garantia de ser um :c:type:`PyTupleObject`. *userData* é o argumento "
715+ "passado para PySys_AddAuditHook()."
668716
669717#: ../../c-api/sys.rst:430
670718msgid "Process Control"
671- msgstr ""
719+ msgstr "Controle de processos "
672720
673721#: ../../c-api/sys.rst:437
674722msgid ""
@@ -679,28 +727,41 @@ msgid ""
679727"library function :c:func:`!abort` is called which will attempt to produce a :"
680728"file:`core` file."
681729msgstr ""
730+ "Exibe uma mensagem de erro fatal e encerra forçadamente o processo. Nenhuma "
731+ "limpeza é realizada. Esta função só deve ser invocada quando uma condição "
732+ "for detectada que torne perigoso continuar usando o interpretador Python; "
733+ "por exemplo, quando a administração de objetos parecer estar corrompida. No "
734+ "Unix, a função da biblioteca padrão C :c:func:`!abort` é chamada, que "
735+ "tentará produzir um arquivo :file:`core`."
682736
683737#: ../../c-api/sys.rst:444
684738msgid ""
685739"The ``Py_FatalError()`` function is replaced with a macro which logs "
686740"automatically the name of the current function, unless the "
687741"``Py_LIMITED_API`` macro is defined."
688742msgstr ""
743+ "A função ``Py_FatalError()`` é substituída por uma macro que registra "
744+ "automaticamente o nome da função atual, a menos que a macro "
745+ "``Py_LIMITED_API`` esteja definida."
689746
690747#: ../../c-api/sys.rst:448
691748msgid "Log the function name automatically."
692- msgstr ""
749+ msgstr "Registra o nome da função automaticamente. "
693750
694751#: ../../c-api/sys.rst:458
695752msgid ""
696753"Exit the current process. This calls :c:func:`Py_FinalizeEx` and then calls "
697754"the standard C library function ``exit(status)``. If :c:func:"
698755"`Py_FinalizeEx` indicates an error, the exit status is set to 120."
699756msgstr ""
757+ "Encerra o processo atual. Isso chama :c:func:`Py_FinalizeEx` e, em seguida, "
758+ "chama a função da biblioteca padrão C ``exit(status)``. Se :c:func:"
759+ "`Py_FinalizeEx` indicar um erro, o código de status de saída será definido "
760+ "como 120."
700761
701762#: ../../c-api/sys.rst:462
702763msgid "Errors from finalization no longer ignored."
703- msgstr ""
764+ msgstr "Erros da finalização não são mais ignorados. "
704765
705766#: ../../c-api/sys.rst:472
706767msgid ""
@@ -713,27 +774,35 @@ msgid ""
713774"finalization will have completed before the cleanup function, no Python APIs "
714775"should be called by *func*."
715776msgstr ""
777+ "Registra uma função de limpeza para ser chamada por :c:func:`Py_FinalizeEx`. "
778+ "A função de limpeza será chamada sem argumentos e não deve retornar nenhum "
779+ "valor. No máximo 32 funções de limpeza podem ser registradas. Quando o "
780+ "registro for bem-sucedido, :c:func:`Py_AtExit` retorna ``0``; em caso de "
781+ "falha, retorna ``-1``. A última função de limpeza registrada é chamada "
782+ "primeiro. Cada função de limpeza será chamada no máximo uma vez. Como a "
783+ "finalização interna do Python terá sido concluída antes da função de "
784+ "limpeza, nenhuma API do Python deve ser chamada por *func*."
716785
717786#: ../../c-api/sys.rst:482
718787msgid ":c:func:`PyUnstable_AtExit` for passing a ``void *data`` argument."
719- msgstr ""
788+ msgstr ":c:func:`PyUnstable_AtExit` para passar um argumento ``void *data``. "
720789
721790#: ../../c-api/sys.rst:101
722791msgid "USE_STACKCHECK (C macro)"
723- msgstr ""
792+ msgstr "USE_STACKCHECK (macro C) "
724793
725794#: ../../c-api/sys.rst:435
726795msgid "abort (C function)"
727- msgstr ""
796+ msgstr "abort (função C) "
728797
729798#: ../../c-api/sys.rst:454 ../../c-api/sys.rst:468
730799msgid "Py_FinalizeEx (C function)"
731- msgstr ""
800+ msgstr "Py_FinalizeEx (função C) "
732801
733802#: ../../c-api/sys.rst:454
734803msgid "exit (C function)"
735- msgstr ""
804+ msgstr "exit (função C) "
736805
737806#: ../../c-api/sys.rst:468
738807msgid "cleanup functions"
739- msgstr ""
808+ msgstr "funções de limpeza "
0 commit comments