@@ -3783,19 +3783,30 @@ msgid ""
37833783"functions allow to activate, deactivate and query the state of the garbage "
37843784"collector from C code without having to import the :mod:`gc` module."
37853785msgstr ""
3786+ "Adiciona novas funções para controlar o coletor de lixo do código C: :c:func:"
3787+ "`PyGC_Enable()`, :c:func:`PyGC_Disable()`, :c:func:`PyGC_IsEnabled()`. Estas "
3788+ "funções permitem ativar, desativar e consultar o estado do coletor de lixo "
3789+ "do código C sem precisar importar o módulo :mod:`gc`."
37863790
37873791#: ../../whatsnew/3.10.rst:2133
37883792msgid ""
37893793"Add a new :c:data:`Py_TPFLAGS_DISALLOW_INSTANTIATION` type flag to disallow "
37903794"creating type instances. (Contributed by Victor Stinner in :issue:`43916`.)"
37913795msgstr ""
3796+ "Adiciona um novo sinalizador de tipo :c:data:"
3797+ "`Py_TPFLAGS_DISALLOW_INSTANTIATION` para impedir a criação de instâncias de "
3798+ "tipo. (Contribuição de Victor Stinner em :issue:`43916`.)"
37923799
37933800#: ../../whatsnew/3.10.rst:2137
37943801msgid ""
37953802"Add a new :c:data:`Py_TPFLAGS_IMMUTABLETYPE` type flag for creating "
37963803"immutable type objects: type attributes cannot be set nor deleted. "
37973804"(Contributed by Victor Stinner and Erlend E. Aasland in :issue:`43908`.)"
37983805msgstr ""
3806+ "Adiciona um novo sinalizador de tipo :c:data:`Py_TPFLAGS_IMMUTABLETYPE` para "
3807+ "criar objetos de tipo imutável: atributos de tipo não podem ser definidos "
3808+ "nem excluídos. (Contribuição de Victor Stinner e Erlend E. Aasland em :issue:"
3809+ "`43908`.)"
37993810
38003811#: ../../whatsnew/3.10.rst:2144
38013812msgid ""
@@ -3805,6 +3816,11 @@ msgid ""
38053816"ref:`Parsing arguments and building values <arg-parsing>` and the :pep:"
38063817"`353`. (Contributed by Victor Stinner in :issue:`40943`.)"
38073818msgstr ""
3819+ "A macro ``PY_SSIZE_T_CLEAN`` deve agora ser definida para usar os formatos :"
3820+ "c:func:`PyArg_ParseTuple` e :c:func:`Py_BuildValue` que usam ``#``: ``es#``, "
3821+ "``et# ``, ``s#``, ``u#``, ``y#``, ``z#``, ``U#`` e ``Z#``. Veja :ref:"
3822+ "`Análise de argumentos e construção de valores <arg-parsing>` e o :pep:"
3823+ "`353`. (Contribuição de Victor Stinner em :issue:`40943`.)"
38083824
38093825#: ../../whatsnew/3.10.rst:2151
38103826msgid ""
@@ -3813,17 +3829,25 @@ msgid ""
38133829"new_refcnt)``: see :c:func:`Py_SET_REFCNT()` (available since Python 3.9). "
38143830"For backward compatibility, this macro can be used::"
38153831msgstr ""
3832+ "Como :c:func:`Py_REFCNT()` é alterado para a função estática em linha, "
3833+ "``Py_REFCNT(obj) = new_refcnt`` deve ser substituído por "
3834+ "``Py_SET_REFCNT(obj, new_refcnt)``: veja :c:func: `Py_SET_REFCNT()` "
3835+ "(disponível desde o Python 3.9). Para compatibilidade com versões "
3836+ "anteriores, esta macro pode ser usada::"
38163837
38173838#: ../../whatsnew/3.10.rst:2160
38183839msgid "(Contributed by Victor Stinner in :issue:`39573`.)"
3819- msgstr ""
3840+ msgstr "(Contribuição de Victor Stinner em :issue:`39573`.) "
38203841
38213842#: ../../whatsnew/3.10.rst:2162
38223843msgid ""
38233844"Calling :c:func:`PyDict_GetItem` without :term:`GIL` held had been allowed "
38243845"for historical reason. It is no longer allowed. (Contributed by Victor "
38253846"Stinner in :issue:`40839`.)"
38263847msgstr ""
3848+ "A chamada de :c:func:`PyDict_GetItem` sem :term:`GIL` retido era permitido "
3849+ "por razões históricas. Isso não é mais permitido. (Contribuição de Victor "
3850+ "Stinner em :issue:`40839`.)"
38273851
38283852#: ../../whatsnew/3.10.rst:2166
38293853msgid ""
@@ -3832,13 +3856,20 @@ msgid ""
38323856"now. Use :c:func:`PyUnicode_New` to allocate Unicode object without initial "
38333857"data. (Contributed by Inada Naoki in :issue:`36346`.)"
38343858msgstr ""
3859+ "``PyUnicode_FromUnicode(NULL, size)`` e ``PyUnicode_FromStringAndSize(NULL, "
3860+ "size)`` levantam ``DeprecationWarning`` agora. Use :c:func:`PyUnicode_New` "
3861+ "para alocar objeto Unicode sem dados iniciais. (Contribuição de Inada Naoki "
3862+ "em :issue:`36346`.)"
38353863
38363864#: ../../whatsnew/3.10.rst:2171
38373865msgid ""
38383866"The private ``_PyUnicode_Name_CAPI`` structure of the PyCapsule API "
38393867"``unicodedata.ucnhash_CAPI`` has been moved to the internal C API. "
38403868"(Contributed by Victor Stinner in :issue:`42157`.)"
38413869msgstr ""
3870+ "A estrutura privada ``_PyUnicode_Name_CAPI`` da API PyCapsule ``unicodedata."
3871+ "ucnhash_CAPI`` foi movida para a API C interna. (Contribuição de Victor "
3872+ "Stinner em :issue:`42157`.)"
38423873
38433874#: ../../whatsnew/3.10.rst:2175
38443875msgid ""
@@ -3850,6 +3881,13 @@ msgid ""
38503881"Configuration. <init-path-config>`. (Contributed by Victor Stinner in :"
38513882"issue:`42260`.)"
38523883msgstr ""
3884+ "As funções :c:func:`Py_GetPath`, :c:func:`Py_GetPrefix`, :c:func:"
3885+ "`Py_GetExecPrefix`, :c:func:`Py_GetProgramFullPath`, :c:func:"
3886+ "`Py_GetPythonHome` e :c:func:`Py_GetProgramName` agora retornam ``NULL`` se "
3887+ "chamadas antes de :c:func:`Py_Initialize` (antes do Python ser "
3888+ "inicializado). Use a nova :ref:`API de configuração de inicialização do "
3889+ "Python <init-config>` para obter a :ref:`Configuração de caminho do Python "
3890+ "<init-path-config>`. (Contribuição de Victor Stinner em :issue:`42260`.)"
38533891
38543892#: ../../whatsnew/3.10.rst:2183
38553893msgid ""
@@ -3860,6 +3898,12 @@ msgid ""
38603898"(PyList_SET_ITEM (a, b, c) < 0) ...`` test. (Contributed by Zackery Spytz "
38613899"and Victor Stinner in :issue:`30459`.)"
38623900msgstr ""
3901+ "As macros :c:func:`PyList_SET_ITEM`, :c:func:`PyTuple_SET_ITEM` e :c:func:"
3902+ "`PyCell_SET` não podem mais ser usadas como valor-l ou valor-r. Por exemplo, "
3903+ "``x = PyList_SET_ITEM(a, b, c)`` e ``PyList_SET_ITEM(a, b, c) = x`` agora "
3904+ "falham com um erro do compilador. Isso previne bugs como o teste ``if "
3905+ "(PyList_SET_ITEM (a, b, c) < 0) ...``. (Contribuição de Zackery Spytz e "
3906+ "Victor Stinner em :issue:`30459`.)"
38633907
38643908#: ../../whatsnew/3.10.rst:2190
38653909msgid ""
@@ -3871,6 +3915,13 @@ msgid ""
38713915"included directly, consider including ``Python.h`` instead. (Contributed by "
38723916"Nicholas Sim in :issue:`35134`)"
38733917msgstr ""
3918+ "Os arquivos de API não limitada ``odictobject.h``, ``parser_interface.h``, "
3919+ "``piclebufobject.h``, ``pyarena.h``, ``pyctype.h``, ``pydebug. h``, ``pyfpe."
3920+ "h`` e ``pytime.h`` foram movidos para o diretório ``Include/cpython``. Esses "
3921+ "arquivos não devem ser incluídos diretamente, pois já estão incluídos em "
3922+ "``Python.h``: :ref:`Arquivos de inclusão <api-includes>`. Se eles foram "
3923+ "incluídos diretamente, considere incluir ``Python.h`` em vez disso. "
3924+ "(Contribuição de Nicholas Sim em :issue:`35134`)"
38743925
38753926#: ../../whatsnew/3.10.rst:2198
38763927msgid ""
@@ -3880,77 +3931,105 @@ msgid ""
38803931"is set instead. (Contributed by Victor Stinner and Erlend E. Aasland in :"
38813932"issue:`43908`.)"
38823933msgstr ""
3934+ "Use o sinalizador de tipo :c:data:`Py_TPFLAGS_IMMUTABLETYPE` para criar "
3935+ "objetos de tipo imutável. Não confie em :c:data:`Py_TPFLAGS_HEAPTYPE` para "
3936+ "decidir se um objeto de tipo é mutável ou não; verifique se :c:data:"
3937+ "`Py_TPFLAGS_IMMUTABLETYPE` está definido. (Contribuição de Victor Stinner e "
3938+ "Erlend E. Aasland em :issue:`43908`.)"
38833939
38843940#: ../../whatsnew/3.10.rst:2204
38853941msgid ""
38863942"The undocumented function ``Py_FrozenMain`` has been removed from the "
38873943"limited API. The function is mainly useful for custom builds of Python. "
38883944"(Contributed by Petr Viktorin in :issue:`26241`)"
38893945msgstr ""
3946+ "A função não documentada ``Py_FrozenMain`` foi removida da API limitada. A "
3947+ "função é útil principalmente para compilações personalizadas do Python. "
3948+ "(Contribuição de Petr Viktorin em :issue:`26241`)"
38903949
38913950#: ../../whatsnew/3.10.rst:2211
38923951msgid ""
38933952"The ``PyUnicode_InternImmortal()`` function is now deprecated and will be "
38943953"removed in Python 3.12: use :c:func:`PyUnicode_InternInPlace` instead. "
38953954"(Contributed by Victor Stinner in :issue:`41692`.)"
38963955msgstr ""
3956+ "A função ``PyUnicode_InternImmortal()`` agora foi descontinuada e será "
3957+ "removida no Python 3.12: use :c:func:`PyUnicode_InternInPlace` em vez disso. "
3958+ "(Contribuição de Victor Stinner em :issue:`41692`.)"
38973959
38983960#: ../../whatsnew/3.10.rst:2219
38993961msgid ""
39003962"Removed ``Py_UNICODE_str*`` functions manipulating ``Py_UNICODE*`` strings. "
39013963"(Contributed by Inada Naoki in :issue:`41123`.)"
39023964msgstr ""
3965+ "Removidas as funções ``Py_UNICODE_str*`` que manipulam strings "
3966+ "``Py_UNICODE*``. (Contribuição de Inada Naoki em :issue:`41123`.)"
39033967
39043968#: ../../whatsnew/3.10.rst:2222
39053969msgid ""
39063970"``Py_UNICODE_strlen``: use :c:func:`PyUnicode_GetLength` or :c:macro:"
39073971"`PyUnicode_GET_LENGTH`"
39083972msgstr ""
3973+ "``Py_UNICODE_strlen``: use :c:func:`PyUnicode_GetLength` ou :c:macro:"
3974+ "`PyUnicode_GET_LENGTH`"
39093975
39103976#: ../../whatsnew/3.10.rst:2224
39113977msgid ""
39123978"``Py_UNICODE_strcat``: use :c:func:`PyUnicode_CopyCharacters` or :c:func:"
39133979"`PyUnicode_FromFormat`"
39143980msgstr ""
3981+ "``Py_UNICODE_strcat``: use :c:func:`PyUnicode_CopyCharacters` ou :c:func:"
3982+ "`PyUnicode_FromFormat`"
39153983
39163984#: ../../whatsnew/3.10.rst:2226
39173985msgid ""
39183986"``Py_UNICODE_strcpy``, ``Py_UNICODE_strncpy``: use :c:func:"
39193987"`PyUnicode_CopyCharacters` or :c:func:`PyUnicode_Substring`"
39203988msgstr ""
3989+ "``Py_UNICODE_strcpy``, ``Py_UNICODE_strncpy``: use :c:func:"
3990+ "`PyUnicode_CopyCharacters` ou :c:func:`PyUnicode_Substring`"
39213991
39223992#: ../../whatsnew/3.10.rst:2228
39233993msgid "``Py_UNICODE_strcmp``: use :c:func:`PyUnicode_Compare`"
3924- msgstr ""
3994+ msgstr "``Py_UNICODE_strcmp``: use :c:func:`PyUnicode_Compare` "
39253995
39263996#: ../../whatsnew/3.10.rst:2229
39273997msgid "``Py_UNICODE_strncmp``: use :c:func:`PyUnicode_Tailmatch`"
3928- msgstr ""
3998+ msgstr "``Py_UNICODE_strncmp``: use :c:func:`PyUnicode_Tailmatch` "
39293999
39304000#: ../../whatsnew/3.10.rst:2230
39314001msgid ""
39324002"``Py_UNICODE_strchr``, ``Py_UNICODE_strrchr``: use :c:func:"
39334003"`PyUnicode_FindChar`"
39344004msgstr ""
4005+ "``Py_UNICODE_strchr``, ``Py_UNICODE_strrchr``: use :c:func:"
4006+ "`PyUnicode_FindChar`"
39354007
39364008#: ../../whatsnew/3.10.rst:2233
39374009msgid ""
39384010"Removed ``PyUnicode_GetMax()``. Please migrate to new (:pep:`393`) APIs. "
39394011"(Contributed by Inada Naoki in :issue:`41103`.)"
39404012msgstr ""
4013+ "Removida ``PyUnicode_GetMax()``. Migre para as novas APIs (:pep:`393`). "
4014+ "(Contribuição de Inada Naoki em :issue:`41103`.)"
39414015
39424016#: ../../whatsnew/3.10.rst:2236
39434017msgid ""
39444018"Removed ``PyLong_FromUnicode()``. Please migrate to :c:func:"
39454019"`PyLong_FromUnicodeObject`. (Contributed by Inada Naoki in :issue:`41103`.)"
39464020msgstr ""
4021+ "Removida ``PyLong_FromUnicode()``. Migre para :c:func:"
4022+ "`PyLong_FromUnicodeObject`. (Contribuição de Inada Naoki em :issue:`41103`.)"
39474023
39484024#: ../../whatsnew/3.10.rst:2239
39494025msgid ""
39504026"Removed ``PyUnicode_AsUnicodeCopy()``. Please use :c:func:"
39514027"`PyUnicode_AsUCS4Copy` or :c:func:`PyUnicode_AsWideCharString` (Contributed "
39524028"by Inada Naoki in :issue:`41103`.)"
39534029msgstr ""
4030+ "Removida ``PyUnicode_AsUnicodeCopy()``. Use :c:func:`PyUnicode_AsUCS4Copy` "
4031+ "ou :c:func:`PyUnicode_AsWideCharString` (Contribuição de Inada Naoki em :"
4032+ "issue:`41103`.)"
39544033
39554034#: ../../whatsnew/3.10.rst:2243
39564035msgid ""
0 commit comments