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

Commitb129428

Browse files
cmaureiraroquega
andauthored
Finalizando library/collections.abc (#1760)
* Finalizando library/collections.abc* Apply suggestions from code reviewCo-authored-by: Adolfo Hristo David Roque Gámez <42866358+aroquega@users.noreply.github.com>* powrapSigned-off-by: Cristián Maureira-Fredes <Cristian.Maureira-Fredes@qt.io>Co-authored-by: Adolfo Hristo David Roque Gámez <42866358+aroquega@users.noreply.github.com>
1 parentd831b87 commitb129428

File tree

1 file changed

+53
-39
lines changed

1 file changed

+53
-39
lines changed

‎library/collections.abc.po

Lines changed: 53 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,12 @@ msgstr ""
1313
"POT-Creation-Date:2021-10-16 21:42+0200\n"
1414
"PO-Revision-Date:2021-08-07 10:29+0200\n"
1515
"Last-Translator:Cristián Maureira-Fredes <cmaureirafredes@gmail.com>\n"
16-
"Language:es_AR\n"
1716
"Language-Team:python-doc-es\n"
18-
"Plural-Forms:nplurals=2; plural=(n != 1)\n"
17+
"Language:es_AR\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.9.1\n"
2323

2424
#:../Doc/library/collections.abc.rst:2
@@ -49,6 +49,8 @@ msgid ""
4949
"An :func:`issubclass` or :func:`isinstance` test for an interface works in "
5050
"one of three ways."
5151
msgstr""
52+
"Una prueba :func:`issubclass` o :func:`isinstance` para una interfaz "
53+
"funciona de tres formas."
5254

5355
#:../Doc/library/collections.abc.rst:30
5456
msgid""
@@ -57,6 +59,10 @@ msgid ""
5759
"remaining mixin methods come from inheritance and can be overridden if "
5860
"desired. Other methods may be added as needed:"
5961
msgstr""
62+
"1) Una clase recién escrita puede heredar directamente de una de las clases "
63+
"base abstractas. La clase debe proporcionar los métodos abstractos "
64+
"requeridos. Los métodos mixin restantes provienen de la herencia y se pueden "
65+
"anular si se desea. Se pueden agregar otros métodos según sea necesario:"
6066

6167
#:../Doc/library/collections.abc.rst:50
6268
msgid""
@@ -67,6 +73,13 @@ msgid ""
6773
"determine whether the full interface is supported. The exception to this "
6874
"rule is for methods that are automatically inferred from the rest of the API:"
6975
msgstr""
76+
"2) Las clases existentes y las clases integradas se pueden registrar como "
77+
"\"subclases virtuales\" de los ABC. Esas clases deben definir la API "
78+
"completa, incluidos todos los métodos abstractos y todos los métodos mixin. "
79+
"Esto permite a los usuarios confiar en las pruebas :func:`issubclass` o :"
80+
"func:`isinstance` para determinar si se admite la interfaz completa. La "
81+
"excepción a esta regla es para los métodos que se infieren automáticamente "
82+
"del resto de la API:"
7083

7184
#:../Doc/library/collections.abc.rst:76
7285
msgid""
@@ -76,12 +89,19 @@ msgid ""
7689
"`reversed` function automatically fall back to using ``__getitem__`` and "
7790
"``__len__``."
7891
msgstr""
92+
"En este ejemplo, la clase :class:`D` no necesita definir ``__contains__``, "
93+
"``__iter__`` y ``__reversed__`` porque el :ref:`operador in <comparisons>`, "
94+
"la lógica de :term:`iteración <iterable>` y la función :func:`reversed` "
95+
"recurren automáticamente al uso de ``__getitem__`` y ``__len__``."
7996

8097
#:../Doc/library/collections.abc.rst:82
8198
msgid""
8299
"3) Some simple interfaces are directly recognizable by the presence of the "
83100
"required methods (unless those methods have been set to :const:`None`):"
84101
msgstr""
102+
"3) Algunas interfaces simples son directamente reconocibles por la presencia "
103+
"de los métodos requeridos (a menos que esos métodos se hayan configurado en :"
104+
"const:`None`):"
85105

86106
#:../Doc/library/collections.abc.rst:99
87107
msgid""
@@ -92,6 +112,13 @@ msgid ""
92112
"class supplies ``__getitem__``, ``__len__``, and ``__iter__`` is "
93113
"insufficient for distinguishing a :class:`Sequence` from a :class:`Mapping`."
94114
msgstr""
115+
"Las interfaces complejas no admiten esta última técnica porque una interfaz "
116+
"es más que la simple presencia de nombres de métodos. Las interfaces "
117+
"especifican la semántica y las relaciones entre métodos que no se pueden "
118+
"inferir únicamente de la presencia de nombres de métodos específicos. Por "
119+
"ejemplo, saber que una clase proporciona ``__getitem__``, ``__len__`` y "
120+
"``__iter__`` no es suficiente para distinguir un :class:`Sequence` de un :"
121+
"class:`Mapping`."
95122

96123
#:../Doc/library/collections.abc.rst:111
97124
msgid"Collections Abstract Base Classes"
@@ -122,37 +149,33 @@ msgid "Mixin Methods"
122149
msgstr"Métodos Mixin"
123150

124151
#:../Doc/library/collections.abc.rst:120
125-
#,fuzzy
126152
msgid":class:`Container` [1]_"
127-
msgstr":class:`Container`"
153+
msgstr":class:`Container` [1]_"
128154

129155
#:../Doc/library/collections.abc.rst:120
130156
msgid"``__contains__``"
131157
msgstr"``__contains__``"
132158

133159
#:../Doc/library/collections.abc.rst:121
134-
#,fuzzy
135160
msgid":class:`Hashable` [1]_"
136-
msgstr":class:`Hashable`"
161+
msgstr":class:`Hashable` [1]_"
137162

138163
#:../Doc/library/collections.abc.rst:121
139164
msgid"``__hash__``"
140165
msgstr"``__hash__``"
141166

142167
#:../Doc/library/collections.abc.rst:122
143-
#,fuzzy
144168
msgid":class:`Iterable` [1]_ [2]_"
145-
msgstr":class:`Iterable`"
169+
msgstr":class:`Iterable` [1]_ [2]_"
146170

147171
#:../Doc/library/collections.abc.rst:122
148172
#:../Doc/library/collections.abc.rst:123
149173
msgid"``__iter__``"
150174
msgstr"``__iter__``"
151175

152176
#:../Doc/library/collections.abc.rst:123
153-
#,fuzzy
154177
msgid":class:`Iterator` [1]_"
155-
msgstr":class:`Iterator`"
178+
msgstr":class:`Iterator` [1]_"
156179

157180
#:../Doc/library/collections.abc.rst:123
158181
#:../Doc/library/collections.abc.rst:124
@@ -164,18 +187,16 @@ msgid "``__next__``"
164187
msgstr"``__next__``"
165188

166189
#:../Doc/library/collections.abc.rst:124
167-
#,fuzzy
168190
msgid":class:`Reversible` [1]_"
169-
msgstr":class:`Reversible`"
191+
msgstr":class:`Reversible` [1]_"
170192

171193
#:../Doc/library/collections.abc.rst:124
172194
msgid"``__reversed__``"
173195
msgstr"``__reversed__``"
174196

175197
#:../Doc/library/collections.abc.rst:125
176-
#,fuzzy
177198
msgid":class:`Generator` [1]_"
178-
msgstr":class:`Generator`"
199+
msgstr":class:`Generator` [1]_"
179200

180201
#:../Doc/library/collections.abc.rst:125
181202
msgid":class:`Iterator`"
@@ -191,28 +212,25 @@ msgid "``close``, ``__iter__``, ``__next__``"
191212
msgstr"``close``, ``__iter__``, ``__next__``"
192213

193214
#:../Doc/library/collections.abc.rst:126
194-
#,fuzzy
195215
msgid":class:`Sized` [1]_"
196-
msgstr":class:`Sized`"
216+
msgstr":class:`Sized` [1]_"
197217

198218
#:../Doc/library/collections.abc.rst:126
199219
#:../Doc/library/collections.abc.rst:165
200220
msgid"``__len__``"
201221
msgstr"``__len__``"
202222

203223
#:../Doc/library/collections.abc.rst:127
204-
#,fuzzy
205224
msgid":class:`Callable` [1]_"
206-
msgstr":class:`Callable`"
225+
msgstr":class:`Callable` [1]_"
207226

208227
#:../Doc/library/collections.abc.rst:127
209228
msgid"``__call__``"
210229
msgstr"``__call__``"
211230

212231
#:../Doc/library/collections.abc.rst:128
213-
#,fuzzy
214232
msgid":class:`Collection` [1]_"
215-
msgstr":class:`Collection`"
233+
msgstr":class:`Collection` [1]_"
216234

217235
#:../Doc/library/collections.abc.rst:128
218236
msgid":class:`Sized`, :class:`Iterable`, :class:`Container`"
@@ -375,18 +393,16 @@ msgid ":class:`MappingView`, :class:`Collection`"
375393
msgstr":class:`MappingView`, :class:`Collection`"
376394

377395
#:../Doc/library/collections.abc.rst:172
378-
#,fuzzy
379396
msgid":class:`Awaitable` [1]_"
380-
msgstr":class:`Awaitable`"
397+
msgstr":class:`Awaitable` [1]_"
381398

382399
#:../Doc/library/collections.abc.rst:172
383400
msgid"``__await__``"
384401
msgstr"``__await__``"
385402

386403
#:../Doc/library/collections.abc.rst:173
387-
#,fuzzy
388404
msgid":class:`Coroutine` [1]_"
389-
msgstr":class:`Coroutine`"
405+
msgstr":class:`Coroutine` [1]_"
390406

391407
#:../Doc/library/collections.abc.rst:173
392408
msgid":class:`Awaitable`"
@@ -397,19 +413,17 @@ msgid "``close``"
397413
msgstr"``close``"
398414

399415
#:../Doc/library/collections.abc.rst:174
400-
#,fuzzy
401416
msgid":class:`AsyncIterable` [1]_"
402-
msgstr":class:`AsyncIterable`"
417+
msgstr":class:`AsyncIterable` [1]_"
403418

404419
#:../Doc/library/collections.abc.rst:174
405420
#:../Doc/library/collections.abc.rst:175
406421
msgid"``__aiter__``"
407422
msgstr"``__aiter__``"
408423

409424
#:../Doc/library/collections.abc.rst:175
410-
#,fuzzy
411425
msgid":class:`AsyncIterator` [1]_"
412-
msgstr":class:`AsyncIterator`"
426+
msgstr":class:`AsyncIterator` [1]_"
413427

414428
#:../Doc/library/collections.abc.rst:175
415429
msgid":class:`AsyncIterable`"
@@ -420,9 +434,8 @@ msgid "``__anext__``"
420434
msgstr"``__anext__``"
421435

422436
#:../Doc/library/collections.abc.rst:176
423-
#,fuzzy
424437
msgid":class:`AsyncGenerator` [1]_"
425-
msgstr":class:`AsyncGenerator`"
438+
msgstr":class:`AsyncGenerator` [1]_"
426439

427440
#:../Doc/library/collections.abc.rst:176
428441
msgid":class:`AsyncIterator`"
@@ -438,7 +451,7 @@ msgstr "``aclose``, ``__aiter__``, ``__anext__``"
438451

439452
#:../Doc/library/collections.abc.rst:181
440453
msgid"Footnotes"
441-
msgstr""
454+
msgstr"Notas al pie"
442455

443456
#:../Doc/library/collections.abc.rst:182
444457
msgid""
@@ -447,26 +460,28 @@ msgid ""
447460
"set to :const:`None`. This only works for simple interfaces. More complex "
448461
"interfaces require registration or direct subclassing."
449462
msgstr""
463+
"Estos ABC anulan :meth:`object.__subclasshook__` para admitir la prueba de "
464+
"una interfaz verificando que los métodos requeridos estén presentes y no se "
465+
"hayan configurado en :const:`None`. Esto solo funciona para interfaces "
466+
"simples. Las interfaces más complejas requieren registro o herencia directa."
450467

451468
#:../Doc/library/collections.abc.rst:188
452-
#,fuzzy
453469
msgid""
454470
"Checking ``isinstance(obj, Iterable)`` detects classes that are registered "
455471
"as :class:`Iterable` or that have an :meth:`__iter__` method, but it does "
456472
"not detect classes that iterate with the :meth:`__getitem__` method. The "
457473
"only reliable way to determine whether an object is :term:`iterable` is to "
458474
"call ``iter(obj)``."
459475
msgstr""
460-
"Al marcar``isinstance(obj, Iterable)``se detectan las clases que están "
476+
"La verificación de``isinstance(obj, Iterable)``detecta clases que están "
461477
"registradas como :class:`Iterable` o que tienen un método :meth:`__iter__`, "
462478
"pero no detecta clases que iteran con el método :meth:`__getitem__`. La "
463479
"única forma confiable de determinar si un objeto es :term:`iterable` es "
464480
"llamar a ``iter(obj)``."
465481

466482
#:../Doc/library/collections.abc.rst:196
467-
#,fuzzy
468483
msgid"Collections Abstract Base Classes -- Detailed Descriptions"
469-
msgstr"Colecciones ClasesBase Abstractas"
484+
msgstr"Colecciones Clasesbase abstractas - Descripciones detalladas"
470485

471486
#:../Doc/library/collections.abc.rst:201
472487
msgid"ABC for classes that provide the :meth:`__contains__` method."
@@ -661,16 +676,15 @@ msgstr ""
661676

662677
#:../Doc/library/collections.abc.rst:347
663678
msgid"Examples and Recipes"
664-
msgstr""
679+
msgstr"Ejemplos y Recetas"
665680

666681
#:../Doc/library/collections.abc.rst:349
667-
#,fuzzy
668682
msgid""
669683
"ABCs allow us to ask classes or instances if they provide particular "
670684
"functionality, for example::"
671685
msgstr""
672-
"Estos ABC nos permiten preguntar a clases o instancias siproporcionan una "
673-
"funcionalidad particular, por ejemplo::"
686+
"Los ABC nos permiten preguntar alasclases o instancias sibrindan una "
687+
"funcionalidad particular, por ejemplo:"
674688

675689
#:../Doc/library/collections.abc.rst:356
676690
msgid""

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp