You signed in with another tab or window.Reload to refresh your session.You signed out in another tab or window.Reload to refresh your session.You switched accounts on another tab or window.Reload to refresh your session.Dismiss alert
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
"`PyTypeObject*`, y *args* puede ser un :c:type:`PyTupleObject*` o cualquier "
"``PyObject*``. Siel valor de*args* no es una tupla,un 1-tupla es "
"automáticamenteconstruiday ``__args__``es configurado como ``(args,)``. "
"Para los argumentos serealizaun chequeo mínimo, de esta manera la función "
"tendrá éxito incluso si *origin* no es un tipo. El atributo "
"``__parameters__`` de ``GenericAlias``es construido deforma diferida a "
"partir de ``__args__``.Si existe una falla, se levantará una excepción y se "
"retornará ``NULL``."
"*origin* y *args*establecen los atributos ``__origin__`` y ``__args__`` de "
"``GenericAlias`` respectivamente. *origin* debe ser "
"un :c:expr:`PyTypeObject*`, y *args* puede ser un :c:expr:`PyTupleObject*` o "
"cualquier``PyObject*``. Si *args* no es una tupla,se construye "
"automáticamenteuna tupla de un elementoy ``__args__``se establece como "
"``(args,)``. Serealizauna verificación mínima para los argumentos, por lo "
"que la funcióntendrá éxito incluso si *origin* no es un tipo. El atributo "
"``__parameters__`` de ``GenericAlias``se construye demanera perezosa a "
"partir de ``__args__``.En caso de falla, se levantará una excepción y "
"retorna ``NULL``."
#: ../Doc/c-api/typehints.rst:28
msgid "Here's an example of how to make an extension type generic::"
Expand All
@@ -76,11 +76,18 @@ msgid ""
" ...\n"
"}"
msgstr ""
"static PyMethodDef my_obj_methods[] = {\n"
" // Otros Métodos.\n"
" ...\n"
" {\"__class_getitem__\", Py_GenericAlias, METH_O|METH_CLASS, \"Ver PEP "
"585\"}\n"
" ...\n"
"\n"
"}"
#: ../Doc/c-api/typehints.rst:38
#, fuzzy
msgid "The data model method :meth:`~object.__class_getitem__`."
msgstr "El método del modelo de datos :meth:`__class_getitem__`."
msgstr "El método del modelo de datos :meth:`~object.__class_getitem__`."
#: ../Doc/c-api/typehints.rst:44
msgid ""
Expand Down
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.