@@ -85,6 +85,10 @@ msgid ""
8585"formats (``s#``, ``y#``, etc.) explained below. This is not necessary on "
8686"Python 3.13 and later."
8787msgstr ""
88+ "En Python 3.12 y versiones anteriores, la macro :c:macro:`!PY_SSIZE_T_CLEAN` "
89+ "debe estar definida antes de incluir :file:`Python.h` para usar todas las "
90+ "variantes ``#`` de formatos (``s#``, ``y#``, etc.) explicadas a continuación. "
91+ "Esto no es necesario en Python 3.13 y versiones posteriores."
8892
8993#: ../Doc/c-api/arg.rst:42
9094msgid ""
@@ -103,7 +107,7 @@ msgstr ""
103107
104108#: ../Doc/c-api/arg.rst:48
105109msgid "There are three ways strings and buffers can be converted to C:"
106- msgstr ""
110+ msgstr "Hay tres formas en que las cadenas de caracteres y los búferes pueden convertirse a C: "
107111
108112#: ../Doc/c-api/arg.rst:50
109113#, fuzzy
@@ -129,6 +133,9 @@ msgid ""
129133"**You have to call** :c:func:`PyMem_Free` after you have finished processing "
130134"the data (or in any early abort case)."
131135msgstr ""
136+ "Los formatos ``es``, ``es#``, ``et`` y ``et#`` asignan el búfer de resultado. "
137+ "**Debe llamar** :c:func:`PyMem_Free` después de haber terminado de procesar "
138+ "los datos (o en cualquier caso de aborto temprano)."
132139
133140#: ../Doc/c-api/arg.rst:63
134141msgid ""
@@ -138,6 +145,12 @@ msgid ""
138145"corresponding Python object, and shares the lifetime of this object. You "
139146"won't have to release any memory yourself."
140147msgstr ""
148+ "Otros formatos toman un :class:`str` o un :term:`objeto de tipo bytes <bytes-"
149+ "like object>` de solo lectura, como :class:`bytes`, y proporcionan un "
150+ "puntero ``const char *`` a su búfer. En este caso el búfer es \" prestado\" "
151+ "(*borrowed*): es gestionado por el objeto Python correspondiente y comparte "
152+ "el tiempo de vida de este objeto. No tendrá que liberar ninguna memoria "
153+ "usted mismo."
141154
142155#: ../Doc/c-api/arg.rst:70
143156msgid ""
@@ -146,13 +159,21 @@ msgid ""
146159"disallows common mutable objects such as :class:`bytearray`, but also some "
147160"read-only objects such as :class:`memoryview` of :class:`bytes`."
148161msgstr ""
162+ "Para asegurar que el búfer subyacente pueda ser prestado de forma segura, el "
163+ "campo :c:member:`PyBufferProcs.bf_releasebuffer` del objeto debe ser ``NULL``. "
164+ "Esto desautoriza objetos mutables comunes como :class:`bytearray`, pero "
165+ "también algunos objetos de solo lectura como :class:`memoryview` de :class:"
166+ "`bytes`."
149167
150168#: ../Doc/c-api/arg.rst:76
151169msgid ""
152170"Besides this ``bf_releasebuffer`` requirement, there is no check to verify "
153171"whether the input object is immutable (e.g. whether it would honor a request "
154172"for a writable buffer, or whether another thread can mutate the data)."
155173msgstr ""
174+ "Además de este requisito de ``bf_releasebuffer``, no hay verificación para "
175+ "comprobar si el objeto de entrada es inmutable (por ejemplo, si respetaría "
176+ "una solicitud de un búfer escribible, o si otro hilo puede mutar los datos)."
156177
157178#: ../Doc/c-api/arg.rst:98
158179msgid "``s`` (:class:`str`) [const char \\ *]"
@@ -564,6 +585,8 @@ msgid ""
564585"``u``, ``u#``, ``Z``, and ``Z#`` are removed because they used a legacy "
565586"``Py_UNICODE*`` representation."
566587msgstr ""
588+ "``u``, ``u#``, ``Z`` y ``Z#`` fueron eliminados porque usaban una "
589+ "representación heredada ``Py_UNICODE*``."
567590
568591#: ../Doc/c-api/arg.rst:230
569592msgid "Numbers"
0 commit comments