@@ -11,15 +11,16 @@ msgstr ""
1111"Project-Id-Version : Python 3.8\n "
1212"Report-Msgid-Bugs-To : \n "
1313"POT-Creation-Date : 2021-10-16 21:42+0200\n "
14- "PO-Revision-Date : 2020-08-15 22:56+0200 \n "
14+ "PO-Revision-Date : 2021-11-26 15:23+0100 \n "
1515"Last-Translator : Cristián Maureira-Fredes <cmaureirafredes@gmail.com>\n "
1616"Language : es\n "
1717"Language-Team : python-doc-es\n "
18- "Plural-Forms : nplurals=2; plural=(n != 1)\n "
18+ "Plural-Forms : nplurals=2; plural=(n != 1); \n "
1919"MIME-Version : 1.0\n "
2020"Content-Type : text/plain; charset=utf-8\n "
2121"Content-Transfer-Encoding : 8bit\n "
2222"Generated-By : Babel 2.9.1\n "
23+ "X-Generator : Poedit 3.0\n "
2324
2425#: ../Doc/howto/clinic.rst:5
2526msgid "Argument Clinic How-To"
@@ -2295,9 +2296,8 @@ msgstr ""
22952296"``self_converter`` pero sobrescribiendo el miembro `` type``:"
22962297
22972298#: ../Doc/howto/clinic.rst:1210
2298- #, fuzzy
22992299msgid "Using a \" defining class\" converter"
2300- msgstr "Usando un convertidor de retorno "
2300+ msgstr "Usando un convertidor de \" clase definitoria \" (*defining class*) "
23012301
23022302#: ../Doc/howto/clinic.rst:1212
23032303msgid ""
@@ -2308,24 +2308,36 @@ msgid ""
23082308"`PyType_GetModuleState` on the defining class to fetch the module state, for "
23092309"example from a module method."
23102310msgstr ""
2311+ "Argument Clinic facilita el acceso a la clase definitoria de un método. Esto "
2312+ "es útil para método de tipo heap (:ref:`heap type <heap-types>`) que "
2313+ "necesitan obtener el estado del nivel del módulo. Utilice :c:func:"
2314+ "`PyType_FromModuleAndSpec` para asociar un nuevo tipo de pila con un módulo. "
2315+ "Ahora puede usar :c:func:`PyType_GetModuleState` en la clase de definición "
2316+ "para obtener el estado del módulo, por ejemplo, de un método de módulo."
23112317
23122318#: ../Doc/howto/clinic.rst:1218
23132319msgid ""
23142320"Example from ``Modules/zlibmodule.c``. First, ``defining_class`` is added "
23152321"to the clinic input::"
23162322msgstr ""
2323+ "Ejemplo de ``Modules/zlibmodule.c``. Primero, se agrega ``definition_class`` "
2324+ "a la entrada de la clínica::"
23172325
23182326#: ../Doc/howto/clinic.rst:1230
23192327msgid ""
23202328"After running the Argument Clinic tool, the following function signature is "
23212329"generated::"
23222330msgstr ""
2331+ "Después de ejecutar la herramienta Argument Clinic, se genera la siguiente "
2332+ "firma de función::"
23232333
23242334#: ../Doc/howto/clinic.rst:1240
23252335msgid ""
23262336"The following code can now use ``PyType_GetModuleState(cls)`` to fetch the "
23272337"module state::"
23282338msgstr ""
2339+ "El siguiente código ahora puede usar ``PyType_GetModuleState(cls)`` para "
2340+ "obtener el estado del módulo::"
23292341
23302342#: ../Doc/howto/clinic.rst:1246
23312343msgid ""
@@ -2334,12 +2346,18 @@ msgid ""
23342346"The argument will be of type ``PyTypeObject *``. The argument will not "
23352347"appear in the ``__text_signature__``."
23362348msgstr ""
2349+ "Cada método solo puede tener un argumento usando este convertidor, y debe "
2350+ "aparecer después de ``self`` o, si no se usa ``self``, como primer "
2351+ "argumento. El argumento será de tipo ``PyTypeObject *``. El argumento no "
2352+ "aparecerá en el ``__text_signature__``."
23372353
23382354#: ../Doc/howto/clinic.rst:1251
23392355msgid ""
23402356"The ``defining_class`` converter is not compatible with ``__init__`` and "
23412357"``__new__`` methods, which cannot use the ``METH_METHOD`` convention."
23422358msgstr ""
2359+ "El convertidor ``definition_class`` no es compatible con los métodos "
2360+ "``__init__`` y ``__new__``, que no pueden usar la convención ``METH_METHOD``."
23432361
23442362#: ../Doc/howto/clinic.rst:1254
23452363msgid ""
@@ -2349,10 +2367,15 @@ msgid ""
23492367"state. Example from the ``setattro`` slot method in ``Modules/_threadmodule."
23502368"c``::"
23512369msgstr ""
2370+ "No es posible usar ``defining_class`` con métodos de ranura (*slot*). Para "
2371+ "obtener el estado del módulo de dichos métodos, use "
2372+ "``_PyType_GetModuleByDef`` para buscar el módulo y luego :c:func:"
2373+ "`PyModule_GetState` para buscar el estado del módulo. Ejemplo del método de "
2374+ "ranura ``setattro`` en ``Modules/_threadmodule.c``:"
23522375
23532376#: ../Doc/howto/clinic.rst:1269
23542377msgid "See also :pep:`573`."
2355- msgstr ""
2378+ msgstr "Vea también :pep:`573`. "
23562379
23572380#: ../Doc/howto/clinic.rst:1273
23582381msgid "Writing a custom converter"
0 commit comments