Skip to content

Commit 0b6008d

Browse files
committed
Progreso hasta el 60%
1 parent aa38a43 commit 0b6008d

File tree

1 file changed

+72
-6
lines changed

1 file changed

+72
-6
lines changed

library/stdtypes.po

+72-6
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ msgstr ""
1111
"Project-Id-Version: Python 3.8\n"
1212
"Report-Msgid-Bugs-To: \n"
1313
"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"
1515
"Last-Translator: Juan Ignacio Rodríguez de León <euribates@gmail.com>\n"
1616
"Language-Team: python-doc-es\n"
1717
"MIME-Version: 1.0\n"
@@ -4177,28 +4177,44 @@ msgid ""
41774177
"text processing algorithms to binary data formats that are not ASCII "
41784178
"compatible will usually lead to data corruption)."
41794179
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."
41804191

41814192
#: ../Doc/library/stdtypes.rst:2375
41824193
msgid ""
41834194
"In addition to the literal forms, bytes objects can be created in a number "
41844195
"of other ways:"
41854196
msgstr ""
4197+
"Además de con literales, se pueden crear objetos de tipo *byte* de las "
4198+
"siguientes maneras:"
41864199

41874200
#: ../Doc/library/stdtypes.rst:2378
41884201
msgid "A zero-filled bytes object of a specified length: ``bytes(10)``"
41894202
msgstr ""
4203+
"Un secuencia de una longitud especificada rellena con ceros: ``bytes(10)``"
41904204

41914205
#: ../Doc/library/stdtypes.rst:2379
41924206
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))``"
41944208

41954209
#: ../Doc/library/stdtypes.rst:2380
41964210
msgid "Copying existing binary data via the buffer protocol: ``bytes(obj)``"
41974211
msgstr ""
4212+
"Copiando datos binarios ya existentes mediante el protocolo *buffer*: "
4213+
"``bytes(obj)``"
41984214

41994215
#: ../Doc/library/stdtypes.rst:2382
42004216
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>`."
42024218

42034219
#: ../Doc/library/stdtypes.rst:2384
42044220
msgid ""
@@ -4207,31 +4223,45 @@ msgid ""
42074223
"Accordingly, the bytes type has an additional class method to read data in "
42084224
"that format:"
42094225
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:"
42104230

42114231
#: ../Doc/library/stdtypes.rst:2390
42124232
msgid ""
42134233
"This :class:`bytes` class method returns a bytes object, decoding the given "
42144234
"string object. The string must contain two hexadecimal digits per byte, "
42154235
"with ASCII whitespace being ignored."
42164236
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."
42174241

42184242
#: ../Doc/library/stdtypes.rst:2397
42194243
msgid ""
42204244
":meth:`bytes.fromhex` now skips all ASCII whitespace in the string, not just "
42214245
"spaces."
42224246
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."
42234249

42244250
#: ../Doc/library/stdtypes.rst:2401
42254251
msgid ""
42264252
"A reverse conversion function exists to transform a bytes object into its "
42274253
"hexadecimal representation."
42284254
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."
42294257

42304258
#: ../Doc/library/stdtypes.rst:2406 ../Doc/library/stdtypes.rst:2500
42314259
msgid ""
42324260
"Return a string object containing two hexadecimal digits for each byte in "
42334261
"the instance."
42344262
msgstr ""
4263+
"Devuelve una cadena de texto que contiene dos dígitos hexadecimales por cada "
4264+
"byte de la instancia."
42354265

42364266
#: ../Doc/library/stdtypes.rst:2412
42374267
msgid ""
@@ -4241,12 +4271,20 @@ msgid ""
42414271
"spacing. Positive values calculate the separator position from the right, "
42424272
"negative values from the left."
42434273
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."
42444279

42454280
#: ../Doc/library/stdtypes.rst:2428
42464281
msgid ""
42474282
":meth:`bytes.hex` now supports optional *sep* and *bytes_per_sep* parameters "
42484283
"to insert separators between bytes in the hex output."
42494284
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."
42504288

42514289
#: ../Doc/library/stdtypes.rst:2432
42524290
msgid ""
@@ -4255,13 +4293,23 @@ msgid ""
42554293
"object of length 1. (This contrasts with text strings, where both indexing "
42564294
"and slicing will produce a string of length 1)"
42574295
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)."
42584302

42594303
#: ../Doc/library/stdtypes.rst:2437
42604304
msgid ""
42614305
"The representation of bytes objects uses the literal format (``b'...'``) "
42624306
"since it is often more useful than e.g. ``bytes([46, 46, 46])``. You can "
42634307
"always convert a bytes object into a list of integers using ``list(b)``."
42644308
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)``."
42654313

42664314
#: ../Doc/library/stdtypes.rst:2442
42674315
msgid ""
@@ -4274,39 +4322,57 @@ msgid ""
42744322
"bit binary data and Unicode text must be explicit, and bytes and string "
42754323
"objects will always compare unequal."
42764324
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."
42774335

42784336
#: ../Doc/library/stdtypes.rst:2455
42794337
msgid "Bytearray Objects"
4280-
msgstr ""
4338+
msgstr "Objetos de tipo *Bytearray*"
42814339

42824340
#: ../Doc/library/stdtypes.rst:2459
42834341
msgid ""
42844342
":class:`bytearray` objects are a mutable counterpart to :class:`bytes` "
42854343
"objects."
42864344
msgstr ""
4345+
"Los objetos de tipo :class:`bytearray` son versiones mutables de los objetos "
4346+
"de tipo *bytes*"
42874347

42884348
#: ../Doc/library/stdtypes.rst:2464
42894349
msgid ""
42904350
"There is no dedicated literal syntax for bytearray objects, instead they are "
42914351
"always created by calling the constructor:"
42924352
msgstr ""
4353+
"No existe una sintaxis específica para crear objetos de tipo *bytearray*, "
4354+
"hay que crearlos siempre llamando a su constructor:"
42934355

42944356
#: ../Doc/library/stdtypes.rst:2467
42954357
msgid "Creating an empty instance: ``bytearray()``"
4296-
msgstr ""
4358+
msgstr "Creando una secuencia vacía: ``bytearray()``"
42974359

42984360
#: ../Doc/library/stdtypes.rst:2468
42994361
msgid "Creating a zero-filled instance with a given length: ``bytearray(10)``"
43004362
msgstr ""
4363+
"Creando una instancia de una longitud determinada, rellena con ceros: "
4364+
"``bytearray(10)``"
43014365

43024366
#: ../Doc/library/stdtypes.rst:2469
43034367
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))``"
43054369

43064370
#: ../Doc/library/stdtypes.rst:2470
43074371
msgid ""
43084372
"Copying existing binary data via the buffer protocol: ``bytearray(b'Hi!')``"
43094373
msgstr ""
4374+
"Copiando datos binarios ya existentes mediante el protocolo *buffer*: "
4375+
"``bytearray(b'Hi!')``"
43104376

43114377
#: ../Doc/library/stdtypes.rst:2472
43124378
msgid ""

0 commit comments

Comments
 (0)