Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitf25acb7

Browse files
cmaureirrtobar
andauthored
Finalizando c-api/type (#1729)
* Finalizando c-api/type* Apply suggestions from code reviewCo-authored-by: rtobar <rtobar@icrar.org>Co-authored-by: rtobar <rtobar@icrar.org>
1 parent4a63870 commitf25acb7

File tree

1 file changed

+20
-6
lines changed

1 file changed

+20
-6
lines changed

‎c-api/type.po

Lines changed: 20 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,12 @@ msgstr ""
1313
"POT-Creation-Date:2021-10-16 21:42+0200\n"
1414
"PO-Revision-Date:2021-08-02 01:37+0200\n"
1515
"Last-Translator:Cristián Maureira-Fredes <cmaureirafredes@gmail.com>\n"
16-
"Language:es\n"
1716
"Language-Team:python-doc-es\n"
18-
"Plural-Forms:nplurals=2; plural=(n != 1)\n"
17+
"Language:es\n"
1918
"MIME-Version:1.0\n"
2019
"Content-Type:text/plain; charset=utf-8\n"
2120
"Content-Transfer-Encoding:8bit\n"
21+
"Plural-Forms:nplurals=2; plural=(n != 1)\n"
2222
"Generated-By:Babel 2.9.1\n"
2323

2424
#:../Doc/c-api/type.rst:6
@@ -165,6 +165,13 @@ msgid ""
165165
"in its flags then it **must** implement the GC protocol itself by at least "
166166
"implementing the :c:member:`~PyTypeObject.tp_traverse` handle."
167167
msgstr""
168+
"Si algunas de las clases base implementan el protocolo GC y el tipo "
169+
"proporcionado no incluye el :const:`Py_TPFLAGS_HAVE_GC` en sus banderas, "
170+
"entonces el protocolo GC se implementará automáticamente desde sus padres. "
171+
"Por el contrario, si el tipo que se está creando incluye :const:"
172+
"`Py_TPFLAGS_HAVE_GC` en sus banderas, entonces **debe** implementar el "
173+
"protocolo GC por sí mismo al implementar al menos el identificador :c:member:"
174+
"`~PyTypeObject.tp_traverse`."
168175

169176
#:../Doc/c-api/type.rst:111
170177
msgid""
@@ -190,6 +197,8 @@ msgid ""
190197
":c:func:`PyType_GetSlot` can now accept all types. Previously, it was "
191198
"limited to :ref:`heap types <heap-types>`."
192199
msgstr""
200+
":c:func:`PyType_GetSlot` ahora puede aceptar todos los tipos. Anteriormente, "
201+
"estaba limitado a :ref:`heap types <heap-types>`."
193202

194203
#:../Doc/c-api/type.rst:127
195204
msgid""
@@ -255,12 +264,11 @@ msgstr ""
255264
"types <heap-types>`."
256265

257266
#:../Doc/c-api/type.rst:165
258-
#,fuzzy
259267
msgid""
260268
"Creates and returns a :ref:`heap type <heap-types>` from the *spec* (:const:"
261269
"`Py_TPFLAGS_HEAPTYPE`)."
262270
msgstr""
263-
"Crea y retorna unobjeto montículo (*heap*) a partirde *spec* (:const:"
271+
"Crea y retorna un:ref:`tipo heap <heap-types>` a partirdel *spec* (:const:"
264272
"`Py_TPFLAGS_HEAPTYPE`)."
265273

266274
#:../Doc/c-api/type.rst:168
@@ -271,9 +279,13 @@ msgid ""
271279
"*Py_tp_base* slot is used instead. If that also is ``NULL``, the new type "
272280
"derives from :class:`object`."
273281
msgstr""
282+
"El argumento *bases* se puede utilizar para especificar clases base; puede "
283+
"ser solo una clase o una tupla de clases. Si *bases* es ``NULL``, en su "
284+
"lugar se utiliza la ranura *Py_tp_bases*. Si esa también es ``NULL``, se usa "
285+
"la ranura *Py_tp_base* en su lugar. Si también es ``NULL``, el nuevo tipo se "
286+
"deriva de :class:`object`."
274287

275288
#:../Doc/c-api/type.rst:174
276-
#,fuzzy
277289
msgid""
278290
"The *module* argument can be used to record the module in which the new "
279291
"class is defined. It must be a module object or ``NULL``. If not ``NULL``, "
@@ -296,6 +308,8 @@ msgid ""
296308
"The function now accepts a single class as the *bases* argument and ``NULL`` "
297309
"as the ``tp_doc`` slot."
298310
msgstr""
311+
"La función ahora acepta una sola clase como argumento *bases* y ``NULL`` "
312+
"como ranura ``tp_doc``."
299313

300314
#:../Doc/c-api/type.rst:192
301315
msgid"Equivalent to ``PyType_FromModuleAndSpec(NULL, spec, bases)``."
@@ -479,7 +493,7 @@ msgstr ""
479493

480494
#:../Doc/c-api/type.rst:282
481495
msgid"Slots other than ``Py_tp_doc`` may not be ``NULL``."
482-
msgstr""
496+
msgstr"Las ranuras que no sean ``Py_tp_doc`` pueden no ser ``NULL``."
483497

484498
#~ msgid ":c:member:`~PyTypeObject.tp_print`"
485499
#~ msgstr ":c:member:`~PyTypeObject.tp_print`"

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp