@@ -11,15 +11,16 @@ msgstr ""
11
11
"Project-Id-Version : Python 3.8\n "
12
12
"Report-Msgid-Bugs-To : \n "
13
13
"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 "
15
15
"Last-Translator : Cristián Maureira-Fredes <cmaureirafredes@gmail.com>\n "
16
16
"Language : es\n "
17
17
"Language-Team : python-doc-es\n "
18
- "Plural-Forms : nplurals=2; plural=(n != 1)\n "
18
+ "Plural-Forms : nplurals=2; plural=(n != 1); \n "
19
19
"MIME-Version : 1.0\n "
20
20
"Content-Type : text/plain; charset=utf-8\n "
21
21
"Content-Transfer-Encoding : 8bit\n "
22
22
"Generated-By : Babel 2.9.1\n "
23
+ "X-Generator : Poedit 3.0\n "
23
24
24
25
#: ../Doc/howto/clinic.rst:5
25
26
msgid "Argument Clinic How-To"
@@ -2295,9 +2296,8 @@ msgstr ""
2295
2296
"``self_converter`` pero sobrescribiendo el miembro `` type``:"
2296
2297
2297
2298
#: ../Doc/howto/clinic.rst:1210
2298
- #, fuzzy
2299
2299
msgid "Using a \" defining class\" converter"
2300
- msgstr "Usando un convertidor de retorno "
2300
+ msgstr "Usando un convertidor de \" clase definitoria \" (*defining class*) "
2301
2301
2302
2302
#: ../Doc/howto/clinic.rst:1212
2303
2303
msgid ""
@@ -2308,24 +2308,36 @@ msgid ""
2308
2308
"`PyType_GetModuleState` on the defining class to fetch the module state, for "
2309
2309
"example from a module method."
2310
2310
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."
2311
2317
2312
2318
#: ../Doc/howto/clinic.rst:1218
2313
2319
msgid ""
2314
2320
"Example from ``Modules/zlibmodule.c``. First, ``defining_class`` is added "
2315
2321
"to the clinic input::"
2316
2322
msgstr ""
2323
+ "Ejemplo de ``Modules/zlibmodule.c``. Primero, se agrega ``definition_class`` "
2324
+ "a la entrada de la clínica::"
2317
2325
2318
2326
#: ../Doc/howto/clinic.rst:1230
2319
2327
msgid ""
2320
2328
"After running the Argument Clinic tool, the following function signature is "
2321
2329
"generated::"
2322
2330
msgstr ""
2331
+ "Después de ejecutar la herramienta Argument Clinic, se genera la siguiente "
2332
+ "firma de función::"
2323
2333
2324
2334
#: ../Doc/howto/clinic.rst:1240
2325
2335
msgid ""
2326
2336
"The following code can now use ``PyType_GetModuleState(cls)`` to fetch the "
2327
2337
"module state::"
2328
2338
msgstr ""
2339
+ "El siguiente código ahora puede usar ``PyType_GetModuleState(cls)`` para "
2340
+ "obtener el estado del módulo::"
2329
2341
2330
2342
#: ../Doc/howto/clinic.rst:1246
2331
2343
msgid ""
@@ -2334,12 +2346,18 @@ msgid ""
2334
2346
"The argument will be of type ``PyTypeObject *``. The argument will not "
2335
2347
"appear in the ``__text_signature__``."
2336
2348
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__``."
2337
2353
2338
2354
#: ../Doc/howto/clinic.rst:1251
2339
2355
msgid ""
2340
2356
"The ``defining_class`` converter is not compatible with ``__init__`` and "
2341
2357
"``__new__`` methods, which cannot use the ``METH_METHOD`` convention."
2342
2358
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``."
2343
2361
2344
2362
#: ../Doc/howto/clinic.rst:1254
2345
2363
msgid ""
@@ -2349,10 +2367,15 @@ msgid ""
2349
2367
"state. Example from the ``setattro`` slot method in ``Modules/_threadmodule."
2350
2368
"c``::"
2351
2369
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``:"
2352
2375
2353
2376
#: ../Doc/howto/clinic.rst:1269
2354
2377
msgid "See also :pep:`573`."
2355
- msgstr ""
2378
+ msgstr "Vea también :pep:`573`. "
2356
2379
2357
2380
#: ../Doc/howto/clinic.rst:1273
2358
2381
msgid "Writing a custom converter"
0 commit comments