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

Commitc98c7ee

Browse files
Traducido archivo c-api/typehints (#3381)
Closes#3244
1 parent6071c2f commitc98c7ee

File tree

1 file changed

+34
-27
lines changed

1 file changed

+34
-27
lines changed

‎c-api/typehints.po

Lines changed: 34 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,16 @@ msgstr ""
99
"Project-Id-Version:Python en Español 3.10\n"
1010
"Report-Msgid-Bugs-To:\n"
1111
"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 <erickisos653@gmail.com>\n"
14-
"Language:es\n"
12+
"PO-Revision-Date:2025-04-09 22:51+0200\n"
13+
"Last-Translator:David Spindola\n"
1514
"Language-Team:\n"
16-
"Plural-Forms:nplurals=2; plural=(n != 1);\n"
15+
"Language:es\n"
1716
"MIME-Version:1.0\n"
1817
"Content-Type:text/plain; charset=utf-8\n"
1918
"Content-Transfer-Encoding:8bit\n"
19+
"Plural-Forms:nplurals=2; plural=(n != 1);\n"
2020
"Generated-By:Babel 2.16.0\n"
21+
"X-Generator:Poedit 3.6\n"
2122

2223
#:../Doc/c-api/typehints.rst:6
2324
msgid"Objects for Type Hinting"
@@ -30,36 +31,35 @@ msgid ""
3031
"union>`. Only ``GenericAlias`` is exposed to C."
3132
msgstr""
3233
"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."
3536

3637
#:../Doc/c-api/typehints.rst:14
37-
#,fuzzy
3838
msgid""
3939
"Create a :ref:`GenericAlias <types-genericalias>` object. Equivalent to "
4040
"calling the Python class :class:`types.GenericAlias`. The *origin* and "
4141
"*args* arguments set the ``GenericAlias``\\ 's ``__origin__`` and "
42-
"``__args__`` attributes respectively. *origin* should bea :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+
"automaticallyconstructed and ``__args__`` is set to ``(args,)``. Minimal "
46+
"checking is donefor the arguments, so the function will succeed even if "
47+
"*origin* is not atype. The ``GenericAlias``\\ 's ``__parameters__`` "
48+
"attribute is constructedlazily from ``__args__``. On failure, an exception "
49+
"israised and ``NULL`` isreturned."
5050
msgstr""
5151
"Crea un objeto :ref:`GenericAlias <types-genericalias>`. Equivalente a "
5252
"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 serun :c:type:"
55-
"`PyTypeObject*`, y *args* puede ser un :c:type:`PyTupleObject*` o cualquier "
56-
"``PyObject*``. Siel valor de*args* no es una tupla,un 1-tupla es "
57-
"automáticamenteconstruiday ``__args__``es configurado como ``(args,)``. "
58-
"Para los argumentos serealizaun 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 deforma 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áticamenteuna tupla de un elementoy ``__args__``se establece como "
58+
"``(args,)``. Serealizauna verificación mínima para los argumentos, por lo "
59+
"que la funcióntendrá éxito incluso si *origin* no es un tipo. El atributo "
60+
"``__parameters__`` de ``GenericAlias``se construye demanera perezosa a "
61+
"partir de ``__args__``.En caso de falla, se levantará una excepción y "
62+
"retorna ``NULL``."
6363

6464
#:../Doc/c-api/typehints.rst:28
6565
msgid"Here's an example of how to make an extension type generic::"
@@ -76,11 +76,18 @@ msgid ""
7676
" ...\n"
7777
"}"
7878
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+
"}"
7987

8088
#:../Doc/c-api/typehints.rst:38
81-
#,fuzzy
8289
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__`."
8491

8592
#:../Doc/c-api/typehints.rst:44
8693
msgid""

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp