@@ -12,7 +12,7 @@ msgstr ""
12
12
"Report-Msgid-Bugs-To : \n "
13
13
"POT-Creation-Date : 2024-11-21 16:38-0300\n "
14
14
"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 "
16
16
"Language : es\n "
17
17
"Language-Team : python-doc-es\n "
18
18
"Plural-Forms : nplurals=2; plural=(n != 1);\n "
@@ -27,27 +27,27 @@ msgstr "Protocolo de objeto"
27
27
28
28
#: ../Doc/c-api/object.rst:11
29
29
msgid "Get a :term:`strong reference` to a constant."
30
- msgstr ""
30
+ msgstr "Obtiene una :term:`referencia fuerte` a una constante. "
31
31
32
32
#: ../Doc/c-api/object.rst:13
33
33
msgid "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. "
35
35
36
36
#: ../Doc/c-api/object.rst:15
37
37
msgid "*constant_id* must be one of these constant identifiers:"
38
- msgstr ""
38
+ msgstr "*constant_id* debe ser uno de estos identificadores constantes: "
39
39
40
40
#: ../Doc/c-api/object.rst:20
41
41
msgid "Constant Identifier"
42
- msgstr ""
42
+ msgstr "Identificador de constante "
43
43
44
44
#: ../Doc/c-api/object.rst:20
45
45
msgid "Value"
46
- msgstr ""
46
+ msgstr "Valor "
47
47
48
48
#: ../Doc/c-api/object.rst:20
49
49
msgid "Returned object"
50
- msgstr ""
50
+ msgstr "Objeto retornado "
51
51
52
52
#: ../Doc/c-api/object.rst:22 ../Doc/c-api/object.rst:27
53
53
msgid "``0``"
@@ -126,27 +126,34 @@ msgid ""
126
126
"Numeric values are only given for projects which cannot use the constant "
127
127
"identifiers."
128
128
msgstr ""
129
+ "Los valores numéricos solo se proporcionan para proyectos que no pueden usar "
130
+ "los identificadores constantes."
129
131
130
132
#: ../Doc/c-api/object.rst:42
131
133
msgid "In CPython, all of these constants are :term:`immortal`."
132
- msgstr ""
134
+ msgstr "En CPython, todas estas constantes son :term:`inmortales <immortal>`. "
133
135
134
136
#: ../Doc/c-api/object.rst:47
135
137
msgid ""
136
138
"Similar to :c:func:`Py_GetConstant`, but return a :term:`borrowed reference`."
137
139
msgstr ""
140
+ "Similar a :c:func:`Py_GetConstant`, pero retorna una :term:`referencia prestada`."
138
141
139
142
#: ../Doc/c-api/object.rst:50
140
143
msgid ""
141
144
"This function is primarily intended for backwards compatibility: using :c:"
142
145
"func:`Py_GetConstant` is recommended for new code."
143
146
msgstr ""
147
+ "Esta función está destinada principalmente para compatibilidad hacia atrás: "
148
+ "se recomienda usar :c:func:`Py_GetConstant` para código nuevo."
144
149
145
150
#: ../Doc/c-api/object.rst:53
146
151
msgid ""
147
152
"The reference is borrowed from the interpreter, and is valid until the "
148
153
"interpreter finalization."
149
154
msgstr ""
155
+ "La referencia es prestada del intérprete, y es válida hasta la finalización "
156
+ "del intérprete."
150
157
151
158
#: ../Doc/c-api/object.rst:61
152
159
msgid ""
@@ -157,25 +164,26 @@ msgstr ""
157
164
"está implementada para la combinación de tipos dada."
158
165
159
166
#: ../Doc/c-api/object.rst:67
160
- #, fuzzy
161
167
msgid ""
162
168
"Properly handle returning :c:data:`Py_NotImplemented` from within a C "
163
169
"function (that is, create a new :term:`strong reference` to :const:"
164
170
"`NotImplemented` and return it)."
165
171
msgstr ""
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)."
169
175
170
176
#: ../Doc/c-api/object.rst:74
171
177
msgid ""
172
178
"Flag to be used with multiple functions that print the object (like :c:func:"
173
179
"`PyObject_Print` and :c:func:`PyFile_WriteObject`). If passed, these "
174
180
"function would use the :func:`str` of the object instead of the :func:`repr`."
175
181
msgstr ""
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`."
176
185
177
186
#: ../Doc/c-api/object.rst:82
178
- #, fuzzy
179
187
msgid ""
180
188
"Print an object *o*, on file *fp*. Returns ``-1`` on error. The flags "
181
189
"argument is used to enable certain printing options. The only option "
@@ -184,19 +192,18 @@ msgid ""
184
192
msgstr ""
185
193
"Imprime un objeto *o*, en el archivo *fp*. Retorna ``-1`` en caso de error. "
186
194
"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 "
188
196
"se proporciona, se escribe :func:`str` del objeto en lugar de :func:`repr`."
189
197
190
198
#: ../Doc/c-api/object.rst:90
191
- #, fuzzy
192
199
msgid ""
193
200
"Returns ``1`` if *o* has the attribute *attr_name*, and ``0`` otherwise. "
194
201
"This is equivalent to the Python expression ``hasattr(o, attr_name)``. On "
195
202
"failure, return ``-1``."
196
203
msgstr ""
197
204
"Retorna ``1`` si *o* tiene el atributo *attr_name*, y ``0`` en caso "
198
205
"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`` ."
200
207
201
208
#: ../Doc/c-api/object.rst:99
202
209
msgid ""
@@ -206,26 +213,25 @@ msgid ""
206
213
msgstr ""
207
214
208
215
#: ../Doc/c-api/object.rst:108
209
- #, fuzzy
210
216
msgid ""
211
217
"Returns ``1`` if *o* has the attribute *attr_name*, and ``0`` otherwise. "
212
218
"This function always succeeds."
213
219
msgstr ""
214
220
"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."
217
222
218
223
#: ../Doc/c-api/object.rst:113
219
- #, fuzzy
220
224
msgid ""
221
225
"Exceptions that occur when this calls :meth:`~object.__getattr__` and :meth:"
222
226
"`~object.__getattribute__` methods are silently ignored. For proper error "
223
227
"handling, use :c:func:`PyObject_HasAttrWithError`, :c:func:"
224
228
"`PyObject_GetOptionalAttr` or :c:func:`PyObject_GetAttr` instead."
225
229
msgstr ""
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."
229
235
230
236
#: ../Doc/c-api/object.rst:121
231
237
msgid ""
0 commit comments