@@ -9,15 +9,16 @@ msgstr ""
9
9
"Project-Id-Version : Python en Español 3.10\n "
10
10
"Report-Msgid-Bugs-To : \n "
11
11
"POT-Creation-Date : 2024-11-21 16:38-0300\n "
12
- "PO-Revision-Date : 2021-11-16 22:14-0600\n "
13
- "
Last-Translator :
Erick G. Islas Osuna <[email protected] >\n "
14
- "Language : es\n "
12
+ "PO-Revision-Date : 2025-04-09 22:51+0200\n "
13
+ "Last-Translator : David Spindola\n "
15
14
"Language-Team : \n "
16
- "Plural-Forms : nplurals=2; plural=(n != 1); \n "
15
+ "Language : es \n "
17
16
"MIME-Version : 1.0\n "
18
17
"Content-Type : text/plain; charset=utf-8\n "
19
18
"Content-Transfer-Encoding : 8bit\n "
19
+ "Plural-Forms : nplurals=2; plural=(n != 1);\n "
20
20
"Generated-By : Babel 2.16.0\n "
21
+ "X-Generator : Poedit 3.6\n "
21
22
22
23
#: ../Doc/c-api/typehints.rst:6
23
24
msgid "Objects for Type Hinting"
@@ -30,36 +31,35 @@ msgid ""
30
31
"union>`. Only ``GenericAlias`` is exposed to C."
31
32
msgstr ""
32
33
"Se proporcionan varios tipos incorporados para indicaciones de tipado. "
33
- "Actualmente existen dos tipos -- :ref:`GenericAlias <types-genericalias>` y : "
34
- "ref:`Union <types-union>`. Solo ``GenericAlias`` es expuesto a C."
34
+ "Actualmente existen dos tipos -- :ref:`GenericAlias <types-genericalias>` "
35
+ "y : ref:`Union <types-union>`. Solo ``GenericAlias`` es expuesto a C."
35
36
36
37
#: ../Doc/c-api/typehints.rst:14
37
- #, fuzzy
38
38
msgid ""
39
39
"Create a :ref:`GenericAlias <types-genericalias>` object. Equivalent to "
40
40
"calling the Python class :class:`types.GenericAlias`. The *origin* and "
41
41
"*args* arguments set the ``GenericAlias``\\ 's ``__origin__`` and "
42
- "``__args__`` attributes respectively. *origin* should be a :c:expr: "
43
- "`PyTypeObject*`, and *args* can be a :c:expr:`PyTupleObject*` or any "
44
- "``PyObject*``. If *args* passed is not a tuple, a 1-tuple is automatically "
45
- "constructed and ``__args__`` is set to ``(args,)``. Minimal checking is done "
46
- "for the arguments, so the function will succeed even if *origin* is not a "
47
- "type. The ``GenericAlias``\\ 's ``__parameters__`` attribute is constructed "
48
- "lazily from ``__args__``. On failure, an exception is raised and ``NULL`` "
49
- "is returned."
42
+ "``__args__`` attributes respectively. *origin* should be "
43
+ "a :c:expr: `PyTypeObject*`, and *args* can be a :c:expr:`PyTupleObject*` or "
44
+ "any ``PyObject*``. If *args* passed is not a tuple, a 1-tuple is "
45
+ "automatically constructed and ``__args__`` is set to ``(args,)``. Minimal "
46
+ "checking is done for the arguments, so the function will succeed even if "
47
+ "*origin* is not a type. The ``GenericAlias``\\ 's ``__parameters__`` "
48
+ "attribute is constructed lazily from ``__args__``. On failure, an exception "
49
+ "is raised and ``NULL`` is returned."
50
50
msgstr ""
51
51
"Crea un objeto :ref:`GenericAlias <types-genericalias>`. Equivalente a "
52
52
"llamar la clase de Python :class:`types.GenericAlias`. Los argumentos "
53
- "*origin* y *args* configuran los atributos ``__origin__`` y ``__args__`` de "
54
- "``GenericAlias`` respectivamente. *origin* debe ser un :c:type: "
55
- "`PyTypeObject*`, y *args* puede ser un :c:type :`PyTupleObject*` o cualquier "
56
- "``PyObject*``. Si el valor de *args* no es una tupla, un 1-tupla es "
57
- "automáticamente construida y ``__args__`` es configurado como ``(args,)``. "
58
- "Para los argumentos se realiza un chequeo mínimo, de esta manera la función "
59
- "tendrá éxito incluso si *origin* no es un tipo. El atributo "
60
- "``__parameters__`` de ``GenericAlias`` es construido de forma diferida a "
61
- "partir de ``__args__``. Si existe una falla, se levantará una excepción y se "
62
- "retornará ``NULL``."
53
+ "*origin* y *args* establecen los atributos ``__origin__`` y ``__args__`` de "
54
+ "``GenericAlias`` respectivamente. *origin* debe ser "
55
+ "un :c:expr: `PyTypeObject*`, y *args* puede ser un :c:expr :`PyTupleObject*` o "
56
+ "cualquier ``PyObject*``. Si *args* no es una tupla, se construye "
57
+ "automáticamente una tupla de un elemento y ``__args__`` se establece como "
58
+ "``(args,)``. Se realiza una verificación mínima para los argumentos, por lo "
59
+ "que la función tendrá éxito incluso si *origin* no es un tipo. El atributo "
60
+ "``__parameters__`` de ``GenericAlias`` se construye de manera perezosa a "
61
+ "partir de ``__args__``. En caso de falla, se levantará una excepción y "
62
+ "retorna ``NULL``."
63
63
64
64
#: ../Doc/c-api/typehints.rst:28
65
65
msgid "Here's an example of how to make an extension type generic::"
@@ -76,11 +76,18 @@ msgid ""
76
76
" ...\n"
77
77
"}"
78
78
msgstr ""
79
+ "static PyMethodDef my_obj_methods[] = {\n"
80
+ " // Otros Métodos.\n"
81
+ " ...\n"
82
+ " {\" __class_getitem__\" , Py_GenericAlias, METH_O|METH_CLASS, \" Ver PEP "
83
+ "585\" }\n"
84
+ " ...\n"
85
+ "\n"
86
+ "}"
79
87
80
88
#: ../Doc/c-api/typehints.rst:38
81
- #, fuzzy
82
89
msgid "The data model method :meth:`~object.__class_getitem__`."
83
- msgstr "El método del modelo de datos :meth:`__class_getitem__`."
90
+ msgstr "El método del modelo de datos :meth:`~object. __class_getitem__`."
84
91
85
92
#: ../Doc/c-api/typehints.rst:44
86
93
msgid ""
0 commit comments