@@ -11,15 +11,16 @@ msgstr ""
11
11
"Project-Id-Version : Python 3.8\n "
12
12
"Report-Msgid-Bugs-To : \n "
13
13
"POT-Creation-Date : 2022-10-25 19:47+0200\n "
14
- "PO-Revision-Date : 2021-08-07 15:43+0200\n "
15
- "Last-Translator : Cristián Maureira-Fredes <cmaureirafredes@gmail.com>\n "
16
- "Language : es_ES\n "
14
+ "PO-Revision-Date : 2023-02-14 15:22-0300\n "
15
+ "Last-Translator : Francisco Mora <fr.morac@duocuc.cl>\n "
17
16
"Language-Team : python-doc-es\n "
18
- "Plural-Forms : nplurals=2; plural=(n != 1); \n "
17
+ "Language : es_ES \n "
19
18
"MIME-Version : 1.0\n "
20
19
"Content-Type : text/plain; charset=utf-8\n "
21
20
"Content-Transfer-Encoding : 8bit\n "
21
+ "Plural-Forms : nplurals=2; plural=(n != 1);\n "
22
22
"Generated-By : Babel 2.10.3\n "
23
+ "X-Generator : Poedit 3.2.2\n "
23
24
24
25
#: ../Doc/library/dataclasses.rst:2
25
26
msgid ":mod:`dataclasses` --- Data Classes"
@@ -357,14 +358,27 @@ msgid ""
357
358
"a dataclass. Use :func:`fields` instead. To be able to determine inherited "
358
359
"slots, base class ``__slots__`` may be any iterable, but *not* an iterator."
359
360
msgstr ""
361
+ "Si un nombre de campo ya está incluido en las ``__slots__`` de una clase "
362
+ "base, no se incluirá en las ``__slots__`` generadas para evitar que se "
363
+ "sobreescriban <https://docs.python.org/3/reference/datamodel.html#notes-on-"
364
+ "using-slots>`_. Por lo tanto, no utilice ``__slots__`` para recuperar los "
365
+ "nombres de campo de una clase de datos. Utilice :func:`fields` en su lugar. "
366
+ "Para poder determinar las ranuras heredadas, la clase base ``__slots__`` "
367
+ "puede ser cualquier iterable, pero *not* un iterador."
360
368
369
+ # No estoy seguro de si es correcto traducir slot por "ranura".
361
370
#: ../Doc/library/dataclasses.rst:201
371
+ #, fuzzy
362
372
msgid ""
363
373
"``weakref_slot``: If true (the default is ``False``), add a slot named "
364
374
"\" __weakref__\" , which is required to make an instance weakref-able. It is "
365
375
"an error to specify ``weakref_slot=True`` without also specifying "
366
376
"``slots=True``."
367
377
msgstr ""
378
+ "``weakref_slot``: Si es verdadero (por defecto es ``False``), añade una "
379
+ "ranura llamada \" __weakref__\" , que es necesaria para generar una instancia "
380
+ "weakref-able. Es un error especificar ``weakref_slot=True`` sin especificar "
381
+ "también ``slots=True``."
368
382
369
383
#: ../Doc/library/dataclasses.rst:208
370
384
msgid ""
@@ -619,11 +633,14 @@ msgstr ""
619
633
620
634
#: ../Doc/library/dataclasses.rst:347
621
635
msgid "Example of using :func:`asdict` on nested dataclasses::"
622
- msgstr ""
636
+ msgstr "Ejemplo de uso de :func:`asdict` en clases de datos anidadas:: "
623
637
638
+ # No estoy seguro de la traducción shallow copy como copia superficial.
624
639
#: ../Doc/library/dataclasses.rst:364 ../Doc/library/dataclasses.rst:384
640
+ #, fuzzy
625
641
msgid "To create a shallow copy, the following workaround may be used::"
626
642
msgstr ""
643
+ "Para crear una copia superficial, se puede utilizar la siguiente solución::"
627
644
628
645
#: ../Doc/library/dataclasses.rst:368
629
646
#, fuzzy
@@ -1148,29 +1165,39 @@ msgstr ""
1148
1165
"Usar las funciones fábrica por defecto es una forma de crear nuevas "
1149
1166
"instancias de tipos mutables como valores por defecto para campos::"
1150
1167
1168
+ # No estoy seguro de la traducción de "Unhashhability". Para La incobrabilidad se utiliza para aproximar la mutabilidad.
1151
1169
#: ../Doc/library/dataclasses.rst:747
1170
+ #, fuzzy
1152
1171
msgid ""
1153
1172
"Instead of looking for and disallowing objects of type ``list``, ``dict``, "
1154
1173
"or ``set``, unhashable objects are now not allowed as default values. "
1155
1174
"Unhashability is used to approximate mutability."
1156
1175
msgstr ""
1176
+ "En lugar de buscar y desautorizar objetos de tipo ``list``, ``dict``, o "
1177
+ "``set``, ahora no se permiten objetos unhashable como valores por defecto. "
1178
+ "La incobrabilidad se utiliza para aproximar la mutabilidad."
1157
1179
1158
1180
#: ../Doc/library/dataclasses.rst:754
1159
1181
msgid "Descriptor-typed fields"
1160
- msgstr ""
1182
+ msgstr "Campos Descriptor-tipo "
1161
1183
1162
1184
#: ../Doc/library/dataclasses.rst:756
1163
1185
msgid ""
1164
1186
"Fields that are assigned :ref:`descriptor objects <descriptors>` as their "
1165
1187
"default value have the following special behaviors:"
1166
1188
msgstr ""
1189
+ "Los campos a los que se asigna :ref:`descriptor objects <descriptors>` como "
1190
+ "valor por defecto tienen los siguientes comportamientos especiales:"
1167
1191
1168
1192
#: ../Doc/library/dataclasses.rst:759
1169
1193
msgid ""
1170
1194
"The value for the field passed to the dataclass's ``__init__`` method is "
1171
1195
"passed to the descriptor's ``__set__`` method rather than overwriting the "
1172
1196
"descriptor object."
1173
1197
msgstr ""
1198
+ "El valor del campo pasado al método ``__init__`` de la clase de datos se "
1199
+ "pasa al método ``__set__`` del descriptor en lugar de sobrescribir el objeto "
1200
+ "descriptor."
1174
1201
1175
1202
#: ../Doc/library/dataclasses.rst:762
1176
1203
msgid ""
@@ -1195,3 +1222,6 @@ msgid ""
1195
1222
"assigned a descriptor object as its default value, the field will act like a "
1196
1223
"normal field."
1197
1224
msgstr ""
1225
+ "Tenga en cuenta que si un campo está anotado con un tipo de descriptor, pero "
1226
+ "no se le asigna un objeto descriptor como valor por defecto, el campo "
1227
+ "actuará como un campo normal."
0 commit comments