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

Commitd628ce7

Browse files
authored
Traducido el archivo howto/descriptor (#2347)
Closes#1889
1 parentc99afc9 commitd628ce7

File tree

2 files changed

+16
-8
lines changed

2 files changed

+16
-8
lines changed

‎TRANSLATORS

Lines changed: 1 addition & 0 deletions
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

Lines changed: 15 additions & 8 deletions
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)

[8]ページ先頭

©2009-2025 Movatter.jp