Skip to content

Traducido el archivo howto/descriptor #2347

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 9 commits into from
Mar 19, 2023
Merged
Next Next commit
Traducido el archivo howto/descriptor
  • Loading branch information
estuardodev committed Mar 11, 2023
commit ec8a44d0420e3ecd7143f250c2dc522bc05c4c0e
1 change: 1 addition & 0 deletions TRANSLATORS
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ Emmanuel Arias (@eamanu)
Endika Gil (@endikagil)
Enrique Giménez (@fenriquegimenez)
Enrique Zárate (@enrique-zarate)
Estuardo Ramírez (@estuardodev)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

El archivo TRANSLATORS está ordenado alfabéticamente, así que creo que esto va a provocar una falla en los chequeos automáticos de GitHub.

erasmo
Erick G. Islas-Osuna (@erickisos)
Esteban Solórzano (@estebansolo)
Expand Down
20 changes: 14 additions & 6 deletions howto/descriptor.po
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,16 @@ msgstr ""
"Project-Id-Version: Python 3.8\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2022-10-25 19:47+0200\n"
"PO-Revision-Date: 2021-10-30 00:13+0800\n"
"PO-Revision-Date: 2023-03-10 23:18-0600\n"
"Last-Translator: Rodrigo Tobar <rtobarc@gmail.com>\n"
"Language: es\n"
"Language-Team: python-doc-es\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
"Language: es\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=utf-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
"Generated-By: Babel 2.10.3\n"
"X-Generator: Poedit 3.0.1\n"

#: ../Doc/howto/descriptor.rst:5
msgid "Descriptor HowTo Guide"
Expand Down Expand Up @@ -698,6 +699,10 @@ msgid ""
"code. That is why calling :meth:`__getattribute__` directly or with "
"``super().__getattribute__`` will bypass :meth:`__getattr__` entirely."
msgstr ""
"Nota, no hay un gancho :meth:__getattr__ en el código de :meth:"
"__getattribute__. Es por eso que llamar a :meth:__getattribute__ "
"directamente o con super().__getattribute__ evitará completamente a :meth:"
"__getattr__."

#: ../Doc/howto/descriptor.rst:723
msgid ""
Expand All @@ -706,6 +711,10 @@ msgid ""
"`__getattribute__` raises an :exc:`AttributeError`. Their logic is "
"encapsulated in a helper function:"
msgstr ""
"En cambio, es el operador punto (.) y la función :func:getattr los que son "
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No estoy seguro que haga falta agregar la aclaración si la versión en inglés no la tiene.

Suggested change
"En cambio, es el operador punto (.) y la función :func:getattr los que son "
"En cambio, es el operador punto y la función :func:getattr los que son "

"responsables de invocar :meth:__getattr__ cada vez que :meth:"
"__getattribute__ lanza un :exc:AttributeError. Su lógica está encapsulada en "
"una función auxiliar:"

#: ../Doc/howto/descriptor.rst:773
msgid "Invocation from a class"
Expand Down Expand Up @@ -1277,7 +1286,6 @@ msgstr ""
"Python de :func:`classmethod` se vería así:"

#: ../Doc/howto/descriptor.rst:1408
#, fuzzy
msgid ""
"The code path for ``hasattr(type(self.f), '__get__')`` was added in Python "
"3.9 and makes it possible for :func:`classmethod` to support chained "
Expand All @@ -1286,7 +1294,7 @@ msgid ""
msgstr ""
"La ruta de código para ``hasattr(obj, '__get__')`` fue añadida en Python "
"3.9, y hace posible que :func:`classmethod` soporte decoradores encadenados."
"Por ejemplo, un classmethod y un property se puede encadenar:"
"Por ejemplo, un classmethod y un property se puede encadenar."
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Acá faltó agregar la traducción de la frase "In Python 3.11...."


#: ../Doc/howto/descriptor.rst:1428
msgid "Member objects and __slots__"
Expand Down Expand Up @@ -1333,7 +1341,7 @@ msgstr ""
"una gran cantidad de instancias será creada."

#: ../Doc/howto/descriptor.rst:1490
#, python-format
#, fuzzy, python-format
msgid ""
"4. Improves speed. Reading instance variables is 35% faster with "
"``__slots__`` (as measured with Python 3.10 on an Apple M1 processor)."
Expand Down