Skip to content

Commit 5e6a4a8

Browse files
author
github-actions
committed
Merge 3.13 into 3.10
1 parent 948372e commit 5e6a4a8

File tree

135 files changed

+12533
-1595
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

135 files changed

+12533
-1595
lines changed

c-api/exceptions.po

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,10 @@ msgid ""
102102
"still propagating), while the latter returns an exception after it is caught "
103103
"(and has therefore stopped propagating)."
104104
msgstr ""
105+
"O indicador de erro **not** é resultado de :func:`sys.exc_info()`. O "
106+
"primeiro corresponde a uma exceção que ainda não foi capturada (e, portanto, "
107+
"ainda está se propagando), enquanto o segundo retorna uma exceção após ser "
108+
"capturada (e, portanto, parou de se propagar)."
105109

106110
#: ../../c-api/exceptions.rst:44
107111
msgid "Printing and clearing"
@@ -582,7 +586,7 @@ msgstr "Tratamento de sinal"
582586

583587
#: ../../c-api/exceptions.rst:509
584588
msgid "This function interacts with Python's signal handling."
585-
msgstr ""
589+
msgstr "Essa função interage com o manipulador de sinais do Python."
586590

587591
#: ../../c-api/exceptions.rst:511
588592
msgid ""
@@ -1514,7 +1518,7 @@ msgstr ":exc:`Warning`"
15141518

15151519
#: ../../c-api/exceptions.rst:1070
15161520
msgid "[3]_"
1517-
msgstr ""
1521+
msgstr "[3]_"
15181522

15191523
#: ../../c-api/exceptions.rst:1072
15201524
msgid ":c:data:`PyExc_BytesWarning`"

c-api/float.po

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,8 @@ msgid ""
9191
"Return a C :c:expr:`double` representation of the contents of *pyfloat*, but "
9292
"without error checking."
9393
msgstr ""
94+
"Retorna uma representação C :c:expr:`double` do conteúdo de *pyfloat*, mas "
95+
"sem verificação de erro."
9496

9597
#: ../../c-api/float.rst:66
9698
msgid ""
@@ -107,8 +109,12 @@ msgid ""
107109
"Return the maximum representable finite float *DBL_MAX* as C :c:expr:"
108110
"`double`."
109111
msgstr ""
112+
"Retorna o ponto flutuante finito máximo representável *DBL_MAX* como :c:expr:"
113+
"`double` do C."
110114

111115
#: ../../c-api/float.rst:78
112116
msgid ""
113117
"Return the minimum normalized positive float *DBL_MIN* as C :c:expr:`double`."
114118
msgstr ""
119+
"Retorna o ponto flutuante positivo mínimo normalizado *DBL_MIN* como :c:expr:"
120+
"`double` do C."

c-api/init.po

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -564,6 +564,8 @@ msgid ""
564564
"Raises an :ref:`auditing event <auditing>` ``cpython."
565565
"_PySys_ClearAuditHooks`` with no arguments."
566566
msgstr ""
567+
"Levanta um :ref:`evento de auditoria <auditing>` ``cpython."
568+
"_PySys_ClearAuditHooks`` sem argumentos."
567569

568570
#: ../../c-api/init.rst:311
569571
msgid ""
@@ -986,6 +988,8 @@ msgid ""
986988
"hidden local variable; the :c:macro:`Py_END_ALLOW_THREADS` macro closes the "
987989
"block."
988990
msgstr ""
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
991995
msgid "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."
12291233
msgstr ""
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
12321245
msgid ""
@@ -1290,6 +1303,10 @@ msgid ""
12901303
"following :c:macro:`Py_END_ALLOW_THREADS` macro. See above for further "
12911304
"discussion of this macro."
12921305
msgstr ""
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
12951312
msgid ""
@@ -1298,19 +1315,28 @@ msgid ""
12981315
"`Py_BEGIN_ALLOW_THREADS` macro. See above for further discussion of this "
12991316
"macro."
13001317
msgstr ""
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
13031324
msgid ""
13041325
"This macro expands to ``PyEval_RestoreThread(_save);``: it is equivalent to :"
13051326
"c:macro:`Py_END_ALLOW_THREADS` without the closing brace."
13061327
msgstr ""
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
13091332
msgid ""
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."
13131336
msgstr ""
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
13161342
msgid "Low-level API"
@@ -1337,6 +1363,8 @@ msgid ""
13371363
"Raises an :ref:`auditing event <auditing>` ``cpython."
13381364
"PyInterpreterState_New`` with no arguments."
13391365
msgstr ""
1366+
"Levanta um :ref:`evento de auditoria <auditing>` ``cpython."
1367+
"PyInterpreterState_New`` sem argumentos."
13401368

13411369
#: ../../c-api/init.rst:1067
13421370
msgid ""
@@ -1349,6 +1377,8 @@ msgid ""
13491377
"Raises an :ref:`auditing event <auditing>` ``cpython."
13501378
"PyInterpreterState_Clear`` with no arguments."
13511379
msgstr ""
1380+
"Levanta um :ref:`evento de auditoria <auditing>` ``cpython."
1381+
"PyInterpreterState_Clear`` sem argumentos."
13521382

13531383
#: ../../c-api/init.rst:1075
13541384
msgid ""
@@ -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."
20582088
msgstr ""
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
20612093
msgid ""
@@ -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."
20812113
msgstr ""
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
20842118
msgid ""
@@ -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."
21202154
msgstr ""
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
21232162
msgid ""

0 commit comments

Comments
 (0)