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
1 change: 1 addition & 0 deletions TRANSLATORS
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ Enrique Zárate (@enrique-zarate)
erasmo
Erick G. Islas-Osuna (@erickisos)
Esteban Solórzano (@estebansolo)
Estuardo Ramírez (@estuardodev)
Fabrizio Damicelli (@fabridamicelli)
Facundo Batista (@facundobatista)
Federico Jurío (@FedericoJurio)
Expand Down
23 changes: 15 additions & 8 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-17 17:40-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 "
"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 @@ -877,14 +886,13 @@ msgid "ORM example"
msgstr "Ejemplo de mapeos objeto-relacional (*ORM*)"

#: ../Doc/howto/descriptor.rst:850
#, fuzzy, python-format
msgid ""
"The following code is a simplified skeleton showing how data descriptors "
"could be used to implement an `object relational mapping <https://en."
"wikipedia.org/wiki/Object%E2%80%93relational_mapping>`_."
msgstr ""
"El siguiente código es un esqueleto simplificado que muestra cómo "
"descriptores de datos pueden ser usados para implementar un mapeo objeto-"
"descriptores de datos pueden ser usados para implementar un `mapeo objeto-"
"relacional <https://es.wikipedia.org/wiki/Asignaci%C3%B3n_objeto-"
"relacional>`_."

Expand Down Expand Up @@ -1277,7 +1285,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 +1293,8 @@ 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. En Python "
"3.11, esta funcionalidad fue marcada como obsoleta."

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

#: ../Doc/howto/descriptor.rst:1490
#, 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