@@ -11,7 +11,7 @@ msgstr ""
11
11
"Project-Id-Version : Python 3.8\n "
12
12
"Report-Msgid-Bugs-To : \n "
13
13
"POT-Creation-Date : 2020-05-05 12:54+0200\n "
14
- "PO-Revision-Date : 2020-05-25 17:56 +0100\n "
14
+ "PO-Revision-Date : 2020-05-28 00:28 +0100\n "
15
15
"Last-Translator : Juan Ignacio Rodríguez de León <euribates@gmail.com>\n "
16
16
"Language-Team : python-doc-es\n "
17
17
"MIME-Version : 1.0\n "
@@ -4177,28 +4177,44 @@ msgid ""
4177
4177
"text processing algorithms to binary data formats that are not ASCII "
4178
4178
"compatible will usually lead to data corruption)."
4179
4179
msgstr ""
4180
+ "Aunque las secuencias de bytes y sus representaciones se basen en texto "
4181
+ "ASCII, los objetos *bytes* se comportan más como secuencias inmutables de "
4182
+ "números enteros, donde cada elemento de la secuencia está restringido a los "
4183
+ "valores de *x* tal que ``0 <= x < 256`` (Si se intenta violar esta "
4184
+ "restricción se elevará una excepción de tipo :exc:`ValueError`). Esto se ha "
4185
+ "hecho de forma intencionada para enfatizar que, aunque muchos formatos "
4186
+ "binarios incluyen elementos basados en caracteres ASCII y pueden ser "
4187
+ "manipulados mediante algunas técnicas de procesado de textos, este no es el "
4188
+ "caso general para los datos binarios (Aplicar algoritmos pensados para "
4189
+ "proceso de textos a datos binarios que no se compatibles con ASCII "
4190
+ "normalmente corromperán dichos datos."
4180
4191
4181
4192
#: ../Doc/library/stdtypes.rst:2375
4182
4193
msgid ""
4183
4194
"In addition to the literal forms, bytes objects can be created in a number "
4184
4195
"of other ways:"
4185
4196
msgstr ""
4197
+ "Además de con literales, se pueden crear objetos de tipo *byte* de las "
4198
+ "siguientes maneras:"
4186
4199
4187
4200
#: ../Doc/library/stdtypes.rst:2378
4188
4201
msgid "A zero-filled bytes object of a specified length: ``bytes(10)``"
4189
4202
msgstr ""
4203
+ "Un secuencia de una longitud especificada rellena con ceros: ``bytes(10)``"
4190
4204
4191
4205
#: ../Doc/library/stdtypes.rst:2379
4192
4206
msgid "From an iterable of integers: ``bytes(range(20))``"
4193
- msgstr ""
4207
+ msgstr "A partir de un iterable de números enteros: ``bytes(range(20))`` "
4194
4208
4195
4209
#: ../Doc/library/stdtypes.rst:2380
4196
4210
msgid "Copying existing binary data via the buffer protocol: ``bytes(obj)``"
4197
4211
msgstr ""
4212
+ "Copiando datos binarios ya existentes mediante el protocolo *buffer*: "
4213
+ "``bytes(obj)``"
4198
4214
4199
4215
#: ../Doc/library/stdtypes.rst:2382
4200
4216
msgid "Also see the :ref:`bytes <func-bytes>` built-in."
4201
- msgstr ""
4217
+ msgstr "Véase además la función básica :ref:`bytes <func-bytes>`. "
4202
4218
4203
4219
#: ../Doc/library/stdtypes.rst:2384
4204
4220
msgid ""
@@ -4207,31 +4223,45 @@ msgid ""
4207
4223
"Accordingly, the bytes type has an additional class method to read data in "
4208
4224
"that format:"
4209
4225
msgstr ""
4226
+ "Como dos dígitos hexadecimales se corresponden exactamente con un byte, "
4227
+ "suelen usase números hexadecimales para describir datos binarios. Por ello, "
4228
+ "los objetos de tipo *byte* disponen de un método adicional para leer datos "
4229
+ "en ese formato:"
4210
4230
4211
4231
#: ../Doc/library/stdtypes.rst:2390
4212
4232
msgid ""
4213
4233
"This :class:`bytes` class method returns a bytes object, decoding the given "
4214
4234
"string object. The string must contain two hexadecimal digits per byte, "
4215
4235
"with ASCII whitespace being ignored."
4216
4236
msgstr ""
4237
+ "Este método de clase de :class:`bytes` devuelve un objeto binario, "
4238
+ "decodificado a partir de la cadena suministrada como parámetro. La cadena de "
4239
+ "texto debe consistir en dos dígitos hexadecimales por cada byte, ignorándose "
4240
+ "los caracteres ASCII de espacio en blanco, si los hubiera."
4217
4241
4218
4242
#: ../Doc/library/stdtypes.rst:2397
4219
4243
msgid ""
4220
4244
":meth:`bytes.fromhex` now skips all ASCII whitespace in the string, not just "
4221
4245
"spaces."
4222
4246
msgstr ""
4247
+ "El método :meth:`bytes.fromhex` ignora ahora todos los caracteres ASCII de "
4248
+ "espacio en blanco, no solo el carácter espacio."
4223
4249
4224
4250
#: ../Doc/library/stdtypes.rst:2401
4225
4251
msgid ""
4226
4252
"A reverse conversion function exists to transform a bytes object into its "
4227
4253
"hexadecimal representation."
4228
4254
msgstr ""
4255
+ "Existe una función que realiza la operación inversa, es decir, transforma un "
4256
+ "objeto binario en una representación textual usando hexadecimal."
4229
4257
4230
4258
#: ../Doc/library/stdtypes.rst:2406 ../Doc/library/stdtypes.rst:2500
4231
4259
msgid ""
4232
4260
"Return a string object containing two hexadecimal digits for each byte in "
4233
4261
"the instance."
4234
4262
msgstr ""
4263
+ "Devuelve una cadena de texto que contiene dos dígitos hexadecimales por cada "
4264
+ "byte de la instancia."
4235
4265
4236
4266
#: ../Doc/library/stdtypes.rst:2412
4237
4267
msgid ""
@@ -4241,12 +4271,20 @@ msgid ""
4241
4271
"spacing. Positive values calculate the separator position from the right, "
4242
4272
"negative values from the left."
4243
4273
msgstr ""
4274
+ "Si quieres que la cadena en hexadecimal sea más fácil de leer, se puede "
4275
+ "especificar un único carácter separador con el parámetro *sep* para que se "
4276
+ "añada a la salida. Un segundo parámetro opcional, *bytes_per_sep*, controla "
4277
+ "los espacios. Valores positivos calculan la posición del separador desde la "
4278
+ "derecha, los negativos lo hacen desde la izquierda."
4244
4279
4245
4280
#: ../Doc/library/stdtypes.rst:2428
4246
4281
msgid ""
4247
4282
":meth:`bytes.hex` now supports optional *sep* and *bytes_per_sep* parameters "
4248
4283
"to insert separators between bytes in the hex output."
4249
4284
msgstr ""
4285
+ "El método :meth:`bytes.hex` ahora soporta los parámetros opcionales *sep* y "
4286
+ "*bytes_per_sep*, que permiten insertar separadores entre los bytes de la "
4287
+ "cadena de salida."
4250
4288
4251
4289
#: ../Doc/library/stdtypes.rst:2432
4252
4290
msgid ""
@@ -4255,13 +4293,23 @@ msgid ""
4255
4293
"object of length 1. (This contrasts with text strings, where both indexing "
4256
4294
"and slicing will produce a string of length 1)"
4257
4295
msgstr ""
4296
+ "Como los objetos de tipo *bytes* son secuencias de números enteros "
4297
+ "(Similares a tuplas), para un objeto binario *b*, ``b[0]`` devuelve un "
4298
+ "entero, mientras que ``b[0:1]`` devuelve un objeto de tipo *bytes* de "
4299
+ "longitud 1 (Mientras que las cadenas de texto siempre devuelven una cadena "
4300
+ "de longitud 1, ya sea accediendo por índice o mediante una operación de "
4301
+ "rebanada)."
4258
4302
4259
4303
#: ../Doc/library/stdtypes.rst:2437
4260
4304
msgid ""
4261
4305
"The representation of bytes objects uses the literal format (``b'...'``) "
4262
4306
"since it is often more useful than e.g. ``bytes([46, 46, 46])``. You can "
4263
4307
"always convert a bytes object into a list of integers using ``list(b)``."
4264
4308
msgstr ""
4309
+ "La representación de los objetos tipo *bytes* usan el formato literal "
4310
+ "(``b'...'``) ya que es, por lo general, más útil que, digamos, ``bytes([46, "
4311
+ "46, 46])``. Siempre se puede convertir un objeto binario en una lista de "
4312
+ "enteros usando ``list(b)``."
4265
4313
4266
4314
#: ../Doc/library/stdtypes.rst:2442
4267
4315
msgid ""
@@ -4274,39 +4322,57 @@ msgid ""
4274
4322
"bit binary data and Unicode text must be explicit, and bytes and string "
4275
4323
"objects will always compare unequal."
4276
4324
msgstr ""
4325
+ "Para usuarios de Python 2.x: En la serie Python 2.x, se permitía una "
4326
+ "variedad de conversiones implícitas entre cadenas de caracteres de 8 bits "
4327
+ "(El tipo de datos más cercano que se podía usar en estas versiones) y "
4328
+ "cadenas de caracteres Unicode. Esto se implemento como una forma de "
4329
+ "compatibilidad hacia atrás para reflejar el hecho de que originalmente "
4330
+ "Python solo soportaba textos de 8 bits, siendo el texto Unicode un añadido "
4331
+ "posterior. En Python 3.x, estas conversiones implícitas se han eliminado: "
4332
+ "Todas las conversiones entre datos binarios y textos Unicode deben ser "
4333
+ "explícitas, y objetos de tipo *bytes* y objetos de tipo cadena de caracteres "
4334
+ "siempre serán considerados diferentes."
4277
4335
4278
4336
#: ../Doc/library/stdtypes.rst:2455
4279
4337
msgid "Bytearray Objects"
4280
- msgstr ""
4338
+ msgstr "Objetos de tipo *Bytearray* "
4281
4339
4282
4340
#: ../Doc/library/stdtypes.rst:2459
4283
4341
msgid ""
4284
4342
":class:`bytearray` objects are a mutable counterpart to :class:`bytes` "
4285
4343
"objects."
4286
4344
msgstr ""
4345
+ "Los objetos de tipo :class:`bytearray` son versiones mutables de los objetos "
4346
+ "de tipo *bytes*"
4287
4347
4288
4348
#: ../Doc/library/stdtypes.rst:2464
4289
4349
msgid ""
4290
4350
"There is no dedicated literal syntax for bytearray objects, instead they are "
4291
4351
"always created by calling the constructor:"
4292
4352
msgstr ""
4353
+ "No existe una sintaxis específica para crear objetos de tipo *bytearray*, "
4354
+ "hay que crearlos siempre llamando a su constructor:"
4293
4355
4294
4356
#: ../Doc/library/stdtypes.rst:2467
4295
4357
msgid "Creating an empty instance: ``bytearray()``"
4296
- msgstr ""
4358
+ msgstr "Creando una secuencia vacía: ``bytearray()`` "
4297
4359
4298
4360
#: ../Doc/library/stdtypes.rst:2468
4299
4361
msgid "Creating a zero-filled instance with a given length: ``bytearray(10)``"
4300
4362
msgstr ""
4363
+ "Creando una instancia de una longitud determinada, rellena con ceros: "
4364
+ "``bytearray(10)``"
4301
4365
4302
4366
#: ../Doc/library/stdtypes.rst:2469
4303
4367
msgid "From an iterable of integers: ``bytearray(range(20))``"
4304
- msgstr ""
4368
+ msgstr "A partir de un iterable de números enteros: ``bytearray(range(20))`` "
4305
4369
4306
4370
#: ../Doc/library/stdtypes.rst:2470
4307
4371
msgid ""
4308
4372
"Copying existing binary data via the buffer protocol: ``bytearray(b'Hi!')``"
4309
4373
msgstr ""
4374
+ "Copiando datos binarios ya existentes mediante el protocolo *buffer*: "
4375
+ "``bytearray(b'Hi!')``"
4310
4376
4311
4377
#: ../Doc/library/stdtypes.rst:2472
4312
4378
msgid ""
0 commit comments