@@ -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-17 16:40-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,26 @@ 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 *no* un iterador."
360
368
369
+ # No estoy seguro de si es correcto traducir slot por "ranura".
361
370
#: ../Doc/library/dataclasses.rst:201
362
371
msgid ""
363
372
"``weakref_slot``: If true (the default is ``False``), add a slot named "
364
373
"\" __weakref__\" , which is required to make an instance weakref-able. It is "
365
374
"an error to specify ``weakref_slot=True`` without also specifying "
366
375
"``slots=True``."
367
376
msgstr ""
377
+ "``weakref_slot``: Si es verdadero (por defecto es ``False``), añade una "
378
+ "ranura llamada \" __weakref__\" , que es necesaria para generar una instancia "
379
+ "referenciable de forma débil. Es un error especificar ``weakref_slot=True`` "
380
+ "sin especificar también ``slots=True``."
368
381
369
382
#: ../Doc/library/dataclasses.rst:208
370
383
msgid ""
@@ -619,11 +632,14 @@ msgstr ""
619
632
620
633
#: ../Doc/library/dataclasses.rst:347
621
634
msgid "Example of using :func:`asdict` on nested dataclasses::"
622
- msgstr ""
635
+ msgstr "Ejemplo de uso de :func:`asdict` en clases de datos anidadas:: "
623
636
637
+ # No estoy seguro de la traducción shallow copy como copia superficial.
624
638
#: ../Doc/library/dataclasses.rst:364 ../Doc/library/dataclasses.rst:384
639
+ #, fuzzy
625
640
msgid "To create a shallow copy, the following workaround may be used::"
626
641
msgstr ""
642
+ "Para crear una copia superficial, se puede utilizar la siguiente solución::"
627
643
628
644
#: ../Doc/library/dataclasses.rst:368
629
645
#, fuzzy
@@ -1145,39 +1161,52 @@ msgid ""
1145
1161
"Using default factory functions is a way to create new instances of mutable "
1146
1162
"types as default values for fields::"
1147
1163
msgstr ""
1148
- "Usar las funciones fábrica por defecto es una forma de crear nuevas "
1164
+ "Usar las funciones de fábrica por defecto es una forma de crear nuevas "
1149
1165
"instancias de tipos mutables como valores por defecto para campos::"
1150
1166
1167
+ # Creo que no es la mejor traducción pero no se me ocurre otra.
1151
1168
#: ../Doc/library/dataclasses.rst:747
1169
+ #, fuzzy
1152
1170
msgid ""
1153
1171
"Instead of looking for and disallowing objects of type ``list``, ``dict``, "
1154
1172
"or ``set``, unhashable objects are now not allowed as default values. "
1155
1173
"Unhashability is used to approximate mutability."
1156
1174
msgstr ""
1175
+ "En lugar de buscar y desautorizar objetos de tipo ``list``, ``dict``, o "
1176
+ "``set``, ahora no se permiten objetos sin un hash como valores por defecto. "
1177
+ "La Incalculabilidad se utiliza para aproximar la mutabilidad."
1157
1178
1158
1179
#: ../Doc/library/dataclasses.rst:754
1159
1180
msgid "Descriptor-typed fields"
1160
- msgstr ""
1181
+ msgstr "Campos tipo descriptor "
1161
1182
1162
1183
#: ../Doc/library/dataclasses.rst:756
1163
1184
msgid ""
1164
1185
"Fields that are assigned :ref:`descriptor objects <descriptors>` as their "
1165
1186
"default value have the following special behaviors:"
1166
1187
msgstr ""
1188
+ "Los campos a los que se asigna :ref:`objetos descriptor <descriptors>` como "
1189
+ "valor por defecto tienen los siguientes comportamientos especiales:"
1167
1190
1168
1191
#: ../Doc/library/dataclasses.rst:759
1169
1192
msgid ""
1170
1193
"The value for the field passed to the dataclass's ``__init__`` method is "
1171
1194
"passed to the descriptor's ``__set__`` method rather than overwriting the "
1172
1195
"descriptor object."
1173
1196
msgstr ""
1197
+ "El valor del campo pasado al método ``__init__`` de la clase de datos se "
1198
+ "pasa al método ``__set__`` del descriptor en lugar de sobrescribir el objeto "
1199
+ "descriptor."
1174
1200
1175
1201
#: ../Doc/library/dataclasses.rst:762
1176
1202
msgid ""
1177
1203
"Similarly, when getting or setting the field, the descriptor's ``__get__`` "
1178
1204
"or ``__set__`` method is called rather than returning or overwriting the "
1179
1205
"descriptor object."
1180
1206
msgstr ""
1207
+ "Del mismo modo, al obtener o establecer el campo, se llama al método "
1208
+ "``__get__`` o ``__set__`` del descriptor en lugar de retornar o sobrescribir "
1209
+ "el objeto descriptor."
1181
1210
1182
1211
#: ../Doc/library/dataclasses.rst:765
1183
1212
msgid ""
@@ -1188,10 +1217,20 @@ msgid ""
1188
1217
"hand, if the descriptor raises :exc:`AttributeError` in this situation, no "
1189
1218
"default value will be provided for the field."
1190
1219
msgstr ""
1220
+ "Para determinar si un campo contiene un valor por defecto, ``dataclasses`` "
1221
+ "llamará al método ``__get__`` del descriptor utilizando su forma de acceso a "
1222
+ "la clase (es decir, ``descriptor.__get__(obj=None, type=cls)``. Si el "
1223
+ "descriptor devuelve un valor en este caso, se utilizará como valor por "
1224
+ "defecto del campo. Por otro lado, si el descriptor devuelve :exc:"
1225
+ "`AttributeError` en esta situación, no se proporcionará ningún valor por "
1226
+ "defecto para el campo."
1191
1227
1192
1228
#: ../Doc/library/dataclasses.rst:800
1193
1229
msgid ""
1194
1230
"Note that if a field is annotated with a descriptor type, but is not "
1195
1231
"assigned a descriptor object as its default value, the field will act like a "
1196
1232
"normal field."
1197
1233
msgstr ""
1234
+ "Tenga en cuenta que si un campo está anotado con un tipo de descriptor, pero "
1235
+ "no se le asigna un objeto descriptor como valor por defecto, el campo "
1236
+ "actuará como un campo normal."
0 commit comments