Skip to content

Commit d628ce7

Browse files
authored
Traducido el archivo howto/descriptor (#2347)
Closes #1889
1 parent c99afc9 commit d628ce7

File tree

2 files changed

+16
-8
lines changed

2 files changed

+16
-8
lines changed

TRANSLATORS

+1
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ Enrique Zárate (@enrique-zarate)
7373
erasmo
7474
Erick G. Islas-Osuna (@erickisos)
7575
Esteban Solórzano (@estebansolo)
76+
Estuardo Ramírez (@estuardodev)
7677
Fabrizio Damicelli (@fabridamicelli)
7778
Facundo Batista (@facundobatista)
7879
Federico Jurío (@FedericoJurio)

howto/descriptor.po

+15-8
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,16 @@ msgstr ""
1111
"Project-Id-Version: Python 3.8\n"
1212
"Report-Msgid-Bugs-To: \n"
1313
"POT-Creation-Date: 2022-10-25 19:47+0200\n"
14-
"PO-Revision-Date: 2021-10-30 00:13+0800\n"
14+
"PO-Revision-Date: 2023-03-17 17:40-0600\n"
1515
"Last-Translator: Rodrigo Tobar <rtobarc@gmail.com>\n"
16-
"Language: es\n"
1716
"Language-Team: python-doc-es\n"
18-
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
17+
"Language: es\n"
1918
"MIME-Version: 1.0\n"
2019
"Content-Type: text/plain; charset=utf-8\n"
2120
"Content-Transfer-Encoding: 8bit\n"
21+
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
2222
"Generated-By: Babel 2.10.3\n"
23+
"X-Generator: Poedit 3.0.1\n"
2324

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

702707
#: ../Doc/howto/descriptor.rst:723
703708
msgid ""
@@ -706,6 +711,10 @@ msgid ""
706711
"`__getattribute__` raises an :exc:`AttributeError`. Their logic is "
707712
"encapsulated in a helper function:"
708713
msgstr ""
714+
"En cambio, es el operador punto y la función :func:`getattr` los que son "
715+
"responsables de invocar :meth:`__getattr__` cada vez que :meth:"
716+
"`__getattribute__` lanza un :exc:`AttributeError`. Su lógica está "
717+
"encapsulada en una función auxiliar:"
709718

710719
#: ../Doc/howto/descriptor.rst:773
711720
msgid "Invocation from a class"
@@ -877,14 +886,13 @@ msgid "ORM example"
877886
msgstr "Ejemplo de mapeos objeto-relacional (*ORM*)"
878887

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

@@ -1277,7 +1285,6 @@ msgstr ""
12771285
"Python de :func:`classmethod` se vería así:"
12781286

12791287
#: ../Doc/howto/descriptor.rst:1408
1280-
#, fuzzy
12811288
msgid ""
12821289
"The code path for ``hasattr(type(self.f), '__get__')`` was added in Python "
12831290
"3.9 and makes it possible for :func:`classmethod` to support chained "
@@ -1286,7 +1293,8 @@ msgid ""
12861293
msgstr ""
12871294
"La ruta de código para ``hasattr(obj, '__get__')`` fue añadida en Python "
12881295
"3.9, y hace posible que :func:`classmethod` soporte decoradores encadenados."
1289-
"Por ejemplo, un classmethod y un property se puede encadenar:"
1296+
"Por ejemplo, un classmethod y un property se puede encadenar. En Python "
1297+
"3.11, esta funcionalidad fue marcada como obsoleta."
12901298

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

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

0 commit comments

Comments
 (0)