Skip to content

Commit 858fb8c

Browse files
authored
Traducidas entradas howto/clinic (#1664)
* Traducidas entradas howto/clinic * cambio frase de la revision
1 parent 3cb437f commit 858fb8c

File tree

1 file changed

+28
-5
lines changed

1 file changed

+28
-5
lines changed

howto/clinic.po

+28-5
Original file line numberDiff line numberDiff line change
@@ -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
2526
msgid "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
22992299
msgid "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
23032303
msgid ""
@@ -2308,24 +2308,36 @@ msgid ""
23082308
"`PyType_GetModuleState` on the defining class to fetch the module state, for "
23092309
"example from a module method."
23102310
msgstr ""
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
23132319
msgid ""
23142320
"Example from ``Modules/zlibmodule.c``. First, ``defining_class`` is added "
23152321
"to the clinic input::"
23162322
msgstr ""
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
23192327
msgid ""
23202328
"After running the Argument Clinic tool, the following function signature is "
23212329
"generated::"
23222330
msgstr ""
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
23252335
msgid ""
23262336
"The following code can now use ``PyType_GetModuleState(cls)`` to fetch the "
23272337
"module state::"
23282338
msgstr ""
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
23312343
msgid ""
@@ -2334,12 +2346,18 @@ msgid ""
23342346
"The argument will be of type ``PyTypeObject *``. The argument will not "
23352347
"appear in the ``__text_signature__``."
23362348
msgstr ""
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
23392355
msgid ""
23402356
"The ``defining_class`` converter is not compatible with ``__init__`` and "
23412357
"``__new__`` methods, which cannot use the ``METH_METHOD`` convention."
23422358
msgstr ""
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
23452363
msgid ""
@@ -2349,10 +2367,15 @@ msgid ""
23492367
"state. Example from the ``setattro`` slot method in ``Modules/_threadmodule."
23502368
"c``::"
23512369
msgstr ""
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
23542377
msgid "See also :pep:`573`."
2355-
msgstr ""
2378+
msgstr "Vea también :pep:`573`."
23562379

23572380
#: ../Doc/howto/clinic.rst:1273
23582381
msgid "Writing a custom converter"

0 commit comments

Comments
 (0)