@@ -12,7 +12,7 @@ msgstr ""
1212"Report-Msgid-Bugs-To : \n "
1313"POT-Creation-Date : 2024-11-21 16:38-0300\n "
1414"PO-Revision-Date : 2022-10-31 19:22-0300\n "
15- "Last-Translator : Sofía Denner <sofi.denner @gmail.com>\n "
15+ "Last-Translator : Erick G. Islas-Osuna <erickisos653 @gmail.com>\n "
1616"Language : es\n "
1717"Language-Team : python-doc-es\n "
1818"Plural-Forms : nplurals=2; plural=(n != 1);\n "
@@ -27,27 +27,27 @@ msgstr "Protocolo de objeto"
2727
2828#: ../Doc/c-api/object.rst:11
2929msgid "Get a :term:`strong reference` to a constant."
30- msgstr ""
30+ msgstr "Obtiene una :term:`referencia fuerte` a una constante. "
3131
3232#: ../Doc/c-api/object.rst:13
3333msgid "Set an exception and return ``NULL`` if *constant_id* is invalid."
34- msgstr ""
34+ msgstr "Establece una excepción y retorna ``NULL`` si *constant_id* es inválido. "
3535
3636#: ../Doc/c-api/object.rst:15
3737msgid "*constant_id* must be one of these constant identifiers:"
38- msgstr ""
38+ msgstr "*constant_id* debe ser uno de estos identificadores constantes: "
3939
4040#: ../Doc/c-api/object.rst:20
4141msgid "Constant Identifier"
42- msgstr ""
42+ msgstr "Identificador de constante "
4343
4444#: ../Doc/c-api/object.rst:20
4545msgid "Value"
46- msgstr ""
46+ msgstr "Valor "
4747
4848#: ../Doc/c-api/object.rst:20
4949msgid "Returned object"
50- msgstr ""
50+ msgstr "Objeto retornado "
5151
5252#: ../Doc/c-api/object.rst:22 ../Doc/c-api/object.rst:27
5353msgid "``0``"
@@ -126,27 +126,34 @@ msgid ""
126126"Numeric values are only given for projects which cannot use the constant "
127127"identifiers."
128128msgstr ""
129+ "Los valores numéricos solo se proporcionan para proyectos que no pueden usar "
130+ "los identificadores constantes."
129131
130132#: ../Doc/c-api/object.rst:42
131133msgid "In CPython, all of these constants are :term:`immortal`."
132- msgstr ""
134+ msgstr "En CPython, todas estas constantes son :term:`inmortales <immortal>`. "
133135
134136#: ../Doc/c-api/object.rst:47
135137msgid ""
136138"Similar to :c:func:`Py_GetConstant`, but return a :term:`borrowed reference`."
137139msgstr ""
140+ "Similar a :c:func:`Py_GetConstant`, pero retorna una :term:`referencia prestada`."
138141
139142#: ../Doc/c-api/object.rst:50
140143msgid ""
141144"This function is primarily intended for backwards compatibility: using :c:"
142145"func:`Py_GetConstant` is recommended for new code."
143146msgstr ""
147+ "Esta función está destinada principalmente para compatibilidad hacia atrás: "
148+ "se recomienda usar :c:func:`Py_GetConstant` para código nuevo."
144149
145150#: ../Doc/c-api/object.rst:53
146151msgid ""
147152"The reference is borrowed from the interpreter, and is valid until the "
148153"interpreter finalization."
149154msgstr ""
155+ "La referencia es prestada del intérprete, y es válida hasta la finalización "
156+ "del intérprete."
150157
151158#: ../Doc/c-api/object.rst:61
152159msgid ""
@@ -157,25 +164,26 @@ msgstr ""
157164"está implementada para la combinación de tipos dada."
158165
159166#: ../Doc/c-api/object.rst:67
160- #, fuzzy
161167msgid ""
162168"Properly handle returning :c:data:`Py_NotImplemented` from within a C "
163169"function (that is, create a new :term:`strong reference` to :const:"
164170"`NotImplemented` and return it)."
165171msgstr ""
166- "Maneja adecuadamente el retorno :c:data:`Py_NotImplemented` desde una "
167- "función C (es decir, incremente el recuento de referencias de "
168- "* NotImplemented* y lo retorna)."
172+ "Maneja adecuadamente el retorno de :c:data:`Py_NotImplemented` desde una "
173+ "función C (es decir, crea una nueva :term:`referencia fuerte` a :const: "
174+ "` NotImplemented` y lo retorna)."
169175
170176#: ../Doc/c-api/object.rst:74
171177msgid ""
172178"Flag to be used with multiple functions that print the object (like :c:func:"
173179"`PyObject_Print` and :c:func:`PyFile_WriteObject`). If passed, these "
174180"function would use the :func:`str` of the object instead of the :func:`repr`."
175181msgstr ""
182+ "Bandera (*flag*) para usar con múltiples funciones que imprimen el objeto "
183+ "(como :c:func:`PyObject_Print` y :c:func:`PyFile_WriteObject`). Si se pasa, "
184+ "estas funciones usarían el :func:`str` del objeto en lugar del :func:`repr`."
176185
177186#: ../Doc/c-api/object.rst:82
178- #, fuzzy
179187msgid ""
180188"Print an object *o*, on file *fp*. Returns ``-1`` on error. The flags "
181189"argument is used to enable certain printing options. The only option "
@@ -184,19 +192,18 @@ msgid ""
184192msgstr ""
185193"Imprime un objeto *o*, en el archivo *fp*. Retorna ``-1`` en caso de error. "
186194"El argumento de las banderas se usa para habilitar ciertas opciones de "
187- "impresión. La única opción actualmente admitida es :const :`Py_PRINT_RAW`; si "
195+ "impresión. La única opción actualmente admitida es :c:macro :`Py_PRINT_RAW`; si "
188196"se proporciona, se escribe :func:`str` del objeto en lugar de :func:`repr`."
189197
190198#: ../Doc/c-api/object.rst:90
191- #, fuzzy
192199msgid ""
193200"Returns ``1`` if *o* has the attribute *attr_name*, and ``0`` otherwise. "
194201"This is equivalent to the Python expression ``hasattr(o, attr_name)``. On "
195202"failure, return ``-1``."
196203msgstr ""
197204"Retorna ``1`` si *o* tiene el atributo *attr_name*, y ``0`` en caso "
198205"contrario. Esto es equivalente a la expresión de Python ``hasattr(o, "
199- "attr_name)``. Esta función siempre finaliza exitosamente ."
206+ "attr_name)``. En caso de error, retorna ``-1`` ."
200207
201208#: ../Doc/c-api/object.rst:99
202209msgid ""
@@ -206,26 +213,25 @@ msgid ""
206213msgstr ""
207214
208215#: ../Doc/c-api/object.rst:108
209- #, fuzzy
210216msgid ""
211217"Returns ``1`` if *o* has the attribute *attr_name*, and ``0`` otherwise. "
212218"This function always succeeds."
213219msgstr ""
214220"Retorna ``1`` si *o* tiene el atributo *attr_name*, y ``0`` en caso "
215- "contrario. Esto es equivalente a la expresión de Python ``hasattr(o, "
216- "attr_name)``. Esta función siempre finaliza exitosamente."
221+ "contrario. Esta función siempre tiene éxito."
217222
218223#: ../Doc/c-api/object.rst:113
219- #, fuzzy
220224msgid ""
221225"Exceptions that occur when this calls :meth:`~object.__getattr__` and :meth:"
222226"`~object.__getattribute__` methods are silently ignored. For proper error "
223227"handling, use :c:func:`PyObject_HasAttrWithError`, :c:func:"
224228"`PyObject_GetOptionalAttr` or :c:func:`PyObject_GetAttr` instead."
225229msgstr ""
226- "Tenga en cuenta que las excepciones que se producen al llamar a los métodos "
227- "a :meth:`__getattr__` y :meth:`__getattribute__` se suprimirán. Para obtener "
228- "informe de errores, utilice :c:func:`PyObject_GetAttr()` alternativamente."
230+ "Las excepciones que ocurren cuando esto llama a los métodos :meth:"
231+ "`~object.__getattr__` y :meth:`~object.__getattribute__` se ignoran "
232+ "silenciosamente. Para un manejo adecuado de errores, use :c:func:"
233+ "`PyObject_HasAttrWithError`, :c:func:`PyObject_GetOptionalAttr` o :c:func:"
234+ "`PyObject_GetAttr` en su lugar."
229235
230236#: ../Doc/c-api/object.rst:121
231237msgid ""
0 commit comments