@@ -564,6 +564,8 @@ msgid ""
564564"Raises an :ref:`auditing event <auditing>` ``cpython."
565565"_PySys_ClearAuditHooks`` with no arguments."
566566msgstr ""
567+ "Levanta um :ref:`evento de auditoria <auditing>` ``cpython."
568+ "_PySys_ClearAuditHooks`` sem argumentos."
567569
568570#: ../../c-api/init.rst:311
569571msgid ""
@@ -986,6 +988,8 @@ msgid ""
986988"hidden local variable; the :c:macro:`Py_END_ALLOW_THREADS` macro closes the "
987989"block."
988990msgstr ""
991+ "A macro :c:macro:`Py_BEGIN_ALLOW_THREADS` abre um novo bloco e declara uma "
992+ "variável local oculta; a macro :c:macro:`Py_END_ALLOW_THREADS` fecha o bloco."
989993
990994#: ../../c-api/init.rst:740
991995msgid "The block above expands to the following code::"
@@ -1227,6 +1231,15 @@ msgid ""
12271231"c:macro:`Py_BEGIN_ALLOW_THREADS` and :c:macro:`Py_END_ALLOW_THREADS` macros "
12281232"is acceptable."
12291233msgstr ""
1234+ "Certifique-se de que a thread atual esteja pronta para chamar a API Python "
1235+ "C, independentemente do estado atual do Python ou da trava global do "
1236+ "interpretador (GIL). Isso pode ser chamado quantas vezes desejar por uma "
1237+ "thread, desde que cada chamada corresponda a uma chamada para :c:func:"
1238+ "`PyGILState_Release`. Em geral, outras APIs relacionadas a threads podem ser "
1239+ "usadas entre chamadas :c:func:`PyGILState_Ensure` e :c:func:"
1240+ "`PyGILState_Release` desde que o estado da thread seja restaurado ao seu "
1241+ "estado anterior antes de Release(). Por exemplo, o uso normal das macros :c:"
1242+ "macro:`Py_BEGIN_ALLOW_THREADS` e :c:macro:`Py_END_ALLOW_THREADS` é aceitável."
12301243
12311244#: ../../c-api/init.rst:964
12321245msgid ""
@@ -1290,6 +1303,10 @@ msgid ""
12901303"following :c:macro:`Py_END_ALLOW_THREADS` macro. See above for further "
12911304"discussion of this macro."
12921305msgstr ""
1306+ "Esta macro se expande para ``{ PyThreadState *_save; _save = "
1307+ "PyEval_SaveThread();``. Observe que ele contém uma chave de abertura; ele "
1308+ "deve ser combinado com a seguinte macro :c:macro:`Py_END_ALLOW_THREADS`. "
1309+ "Veja acima para uma discussão mais aprofundada desta macro."
12931310
12941311#: ../../c-api/init.rst:1028
12951312msgid ""
@@ -1298,19 +1315,28 @@ msgid ""
12981315"`Py_BEGIN_ALLOW_THREADS` macro. See above for further discussion of this "
12991316"macro."
13001317msgstr ""
1318+ "Esta macro se expande para ``PyEval_RestoreThread(_save); }``. Observe que "
1319+ "ele contém uma chave de fechamento; ele deve ser combinado com uma macro :c:"
1320+ "macro:`Py_BEGIN_ALLOW_THREADS` anterior. Veja acima para uma discussão mais "
1321+ "aprofundada desta macro."
13011322
13021323#: ../../c-api/init.rst:1036
13031324msgid ""
13041325"This macro expands to ``PyEval_RestoreThread(_save);``: it is equivalent to :"
13051326"c:macro:`Py_END_ALLOW_THREADS` without the closing brace."
13061327msgstr ""
1328+ "Esta macro se expande para ``PyEval_RestoreThread(_save);``: é equivalente "
1329+ "a :c:macro:`Py_END_ALLOW_THREADS` sem a chave de fechamento."
13071330
13081331#: ../../c-api/init.rst:1042
13091332msgid ""
13101333"This macro expands to ``_save = PyEval_SaveThread();``: it is equivalent to :"
13111334"c:macro:`Py_BEGIN_ALLOW_THREADS` without the opening brace and variable "
13121335"declaration."
13131336msgstr ""
1337+ "Esta macro se expande para ``_save = PyEval_SaveThread();``: é equivalente "
1338+ "a :c:macro:`Py_BEGIN_ALLOW_THREADS` sem a chave de abertura e declaração de "
1339+ "variável."
13141340
13151341#: ../../c-api/init.rst:1048
13161342msgid "Low-level API"
@@ -1337,6 +1363,8 @@ msgid ""
13371363"Raises an :ref:`auditing event <auditing>` ``cpython."
13381364"PyInterpreterState_New`` with no arguments."
13391365msgstr ""
1366+ "Levanta um :ref:`evento de auditoria <auditing>` ``cpython."
1367+ "PyInterpreterState_New`` sem argumentos."
13401368
13411369#: ../../c-api/init.rst:1067
13421370msgid ""
@@ -1349,6 +1377,8 @@ msgid ""
13491377"Raises an :ref:`auditing event <auditing>` ``cpython."
13501378"PyInterpreterState_Clear`` with no arguments."
13511379msgstr ""
1380+ "Levanta um :ref:`evento de auditoria <auditing>` ``cpython."
1381+ "PyInterpreterState_Clear`` sem argumentos."
13521382
13531383#: ../../c-api/init.rst:1075
13541384msgid ""
@@ -2056,6 +2086,8 @@ msgid ""
20562086"When :ref:`Py_LIMITED_API <stable>` is not defined, static allocation of "
20572087"this type by :c:macro:`Py_tss_NEEDS_INIT` is allowed."
20582088msgstr ""
2089+ "Quando :ref:`Py_LIMITED_API <stable>` não é definido, a alocação estática "
2090+ "deste tipo por :c:macro:`Py_tss_NEEDS_INIT` é permitida."
20592091
20602092#: ../../c-api/init.rst:1701
20612093msgid ""
@@ -2079,6 +2111,8 @@ msgid ""
20792111"Return a value which is the same state as a value initialized with :c:macro:"
20802112"`Py_tss_NEEDS_INIT`, or ``NULL`` in the case of dynamic allocation failure."
20812113msgstr ""
2114+ "Retorna um valor que é o mesmo estado de um valor inicializado com :c:macro:"
2115+ "`Py_tss_NEEDS_INIT`, ou ``NULL`` no caso de falha de alocação dinâmica."
20822116
20832117#: ../../c-api/init.rst:1722
20842118msgid ""
@@ -2118,6 +2152,11 @@ msgid ""
21182152"repeatedly on the same key -- calling it on an already initialized key is a "
21192153"no-op and immediately returns success."
21202154msgstr ""
2155+ "Retorna um valor zero na inicialização bem-sucedida de uma chave TSS. O "
2156+ "comportamento é indefinido se o valor apontado pelo argumento *key* não for "
2157+ "inicializado por :c:macro:`Py_tss_NEEDS_INIT`. Essa função pode ser chamada "
2158+ "repetidamente na mesma tecla -- chamá-la em uma tecla já inicializada não "
2159+ "funciona e retorna imediatamente com sucesso."
21212160
21222161#: ../../c-api/init.rst:1758
21232162msgid ""