@@ -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-06-09 22 :44+0100\n "
14
+ "PO-Revision-Date : 2020-06-11 23 :44+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 "
@@ -5461,64 +5461,91 @@ msgid ""
5461
5461
"'b' or 'c' are also hashable. The hash is defined as ``hash(m) == hash(m."
5462
5462
"tobytes())``::"
5463
5463
msgstr ""
5464
+ "Los objetos *memoryviews* de una única dimensión que contienen tipos de "
5465
+ "datos *hashables* (De solo lectura) con formatos ``'B'``, ``'b'`` o ``'c'`` "
5466
+ "son también *hashables*. El *hash* se define como ``hash(m) == hash(m."
5467
+ "tobytes())``::"
5464
5468
5465
5469
#: ../Doc/library/stdtypes.rst:3575
5466
5470
msgid ""
5467
5471
"One-dimensional memoryviews can now be sliced. One-dimensional memoryviews "
5468
5472
"with formats 'B', 'b' or 'c' are now hashable."
5469
5473
msgstr ""
5474
+ "Los objetos *memoryviews* de una única dimensión pueden ahora ser usados con "
5475
+ "operaciones de rebanado. Los objetos *memoryviews* de una única dimensión "
5476
+ "con formatos ``'B'``, ``'b'`` o ``'c'`` son ahora *hashables*."
5470
5477
5471
5478
#: ../Doc/library/stdtypes.rst:3579
5472
5479
msgid ""
5473
5480
"memoryview is now registered automatically with :class:`collections.abc."
5474
5481
"Sequence`"
5475
5482
msgstr ""
5483
+ "Los objetos *memoryview* son registrados automáticamente con la clase :class:"
5484
+ "`collections.abc.Sequence`"
5476
5485
5477
5486
#: ../Doc/library/stdtypes.rst:3583
5478
5487
msgid "memoryviews can now be indexed with tuple of integers."
5479
5488
msgstr ""
5489
+ "Los objetos *memoryviews* se pueden ahora acceder usando como índices una "
5490
+ "tupla de números enteros."
5480
5491
5481
5492
#: ../Doc/library/stdtypes.rst:3586
5482
5493
msgid ":class:`memoryview` has several methods:"
5483
- msgstr ""
5494
+ msgstr "La clase :class:`memoryview` tiene varios métodos: "
5484
5495
5485
5496
#: ../Doc/library/stdtypes.rst:3590
5486
5497
msgid ""
5487
5498
"A memoryview and a :pep:`3118` exporter are equal if their shapes are "
5488
5499
"equivalent and if all corresponding values are equal when the operands' "
5489
5500
"respective format codes are interpreted using :mod:`struct` syntax."
5490
5501
msgstr ""
5502
+ "Un objeto *memoryview* y un exportador :pep:`3118` son iguales si sus formas "
5503
+ "son equivalentes y todos los valores correspondientes son iguales cuando los "
5504
+ "formatos respectivos de los operandos son interpretados usando la sintaxis "
5505
+ "de :mod:`struct`."
5491
5506
5492
5507
#: ../Doc/library/stdtypes.rst:3594
5493
5508
msgid ""
5494
5509
"For the subset of :mod:`struct` format strings currently supported by :meth:"
5495
5510
"`tolist`, ``v`` and ``w`` are equal if ``v.tolist() == w.tolist()``::"
5496
5511
msgstr ""
5512
+ "Para el subconjunto de formatos de :mod:`struct` soportados actualmente por :"
5513
+ "meth:`tolist`, ``v`` y ``w`` son iguales si ``v.tolist() == w.tolist()``::"
5497
5514
5498
5515
#: ../Doc/library/stdtypes.rst:3613
5499
5516
msgid ""
5500
5517
"If either format string is not supported by the :mod:`struct` module, then "
5501
5518
"the objects will always compare as unequal (even if the format strings and "
5502
5519
"buffer contents are identical)::"
5503
5520
msgstr ""
5521
+ "Si cualquiera de las cadenas de formato no es soportada por el módulo :mod:"
5522
+ "`struct`, entonces la comparación de los objetos siempre los considerará "
5523
+ "diferentes (Incluso si las cadenas de formato y el contenido del *buffer* "
5524
+ "son idénticos)::"
5504
5525
5505
5526
#: ../Doc/library/stdtypes.rst:3629
5506
5527
msgid ""
5507
5528
"Note that, as with floating point numbers, ``v is w`` does *not* imply ``v "
5508
5529
"== w`` for memoryview objects."
5509
5530
msgstr ""
5531
+ "Nótese que, al igual que con los números en coma flotante, ``v is w`` *no* "
5532
+ "implica que ``v == w`` para objetos del tipo *memoryview*."
5510
5533
5511
5534
#: ../Doc/library/stdtypes.rst:3632
5512
5535
msgid ""
5513
5536
"Previous versions compared the raw memory disregarding the item format and "
5514
5537
"the logical array structure."
5515
5538
msgstr ""
5539
+ "Versiones previas comparaban la memoria directamente, sin considerar ni el "
5540
+ "formato de los elementos ni la estructura lógica de *array*."
5516
5541
5517
5542
#: ../Doc/library/stdtypes.rst:3638
5518
5543
msgid ""
5519
5544
"Return the data in the buffer as a bytestring. This is equivalent to "
5520
5545
"calling the :class:`bytes` constructor on the memoryview. ::"
5521
5546
msgstr ""
5547
+ "Devuelve los datos en el *buffer* en forma de cadena de bytes. Equivale a "
5548
+ "llamar al constructor de la clase :class:`bytes` en el objeto *memoryview*::"
5522
5549
5523
5550
#: ../Doc/library/stdtypes.rst:3647
5524
5551
msgid ""
@@ -5527,6 +5554,10 @@ msgid ""
5527
5554
"supports all format strings, including those that are not in :mod:`struct` "
5528
5555
"module syntax."
5529
5556
msgstr ""
5557
+ "Para *arrays* no contiguos el resultado es igual a la representación en "
5558
+ "forma de lista aplanada, con todos los elementos convertidos a bytes. El "
5559
+ "método :meth:`tobytes` soporta todos los formatos de texto, incluidos "
5560
+ "aquellos que no se encuentran en la sintaxis del módulo :mod:`struct`."
5530
5561
5531
5562
#: ../Doc/library/stdtypes.rst:3652
5532
5563
msgid ""
@@ -5536,35 +5567,51 @@ msgid ""
5536
5567
"Fortran order is preserved. For non-contiguous views, the data is converted "
5537
5568
"to C first. *order=None* is the same as *order='C'*."
5538
5569
msgstr ""
5570
+ "El valor de *order* puede ser {'C', 'F', 'A'}. Cuando *order* es 'C' o 'F', "
5571
+ "los datos en el *array* original se convierten al orden de C o Fortran. Para "
5572
+ "vistas contiguas, 'A' devuelve una copia exacta de la memoria física. En "
5573
+ "particular, el orden en memoria de Fortran se mantiene inalterado. Para "
5574
+ "vista no contiguas, los datos se convierten primero a C. Definir "
5575
+ "*order=None* es lo mismo que *order='C'*."
5539
5576
5540
5577
#: ../Doc/library/stdtypes.rst:3661
5541
5578
msgid ""
5542
5579
"Return a string object containing two hexadecimal digits for each byte in "
5543
5580
"the buffer. ::"
5544
5581
msgstr ""
5582
+ "Devuelve una cadena de caracteres que contiene dos dígitos hexadecimales por "
5583
+ "cada byte en el *buffer*::"
5545
5584
5546
5585
#: ../Doc/library/stdtypes.rst:3670
5547
5586
msgid ""
5548
5587
"Similar to :meth:`bytes.hex`, :meth:`memoryview.hex` now supports optional "
5549
5588
"*sep* and *bytes_per_sep* parameters to insert separators between bytes in "
5550
5589
"the hex output."
5551
5590
msgstr ""
5591
+ "De forma similar a :meth:`bytes.hex`, :meth:`memoryview.hex` soporta ahora "
5592
+ "los parámetros opcionales *sep* y *bytes_per_sep* para insertar separadores "
5593
+ "entre los bytes en la cadena hexadecimal de salida."
5552
5594
5553
5595
#: ../Doc/library/stdtypes.rst:3677
5554
5596
msgid "Return the data in the buffer as a list of elements. ::"
5555
- msgstr ""
5597
+ msgstr "Devuelve los datos en el *buffer* como una lista de elementos:: "
5556
5598
5557
5599
#: ../Doc/library/stdtypes.rst:3687
5558
5600
msgid ""
5559
5601
":meth:`tolist` now supports all single character native formats in :mod:"
5560
5602
"`struct` module syntax as well as multi-dimensional representations."
5561
5603
msgstr ""
5604
+ "El método :meth:`tolist` soporta ahora todos los formatos nativos de un solo "
5605
+ "carácter definidos en el módulo :mod:`struct`, así como las representaciones "
5606
+ "de múltiples dimensiones."
5562
5607
5563
5608
#: ../Doc/library/stdtypes.rst:3694
5564
5609
msgid ""
5565
5610
"Return a readonly version of the memoryview object. The original memoryview "
5566
5611
"object is unchanged. ::"
5567
5612
msgstr ""
5613
+ "Devuelve una versión de solo lectura del objeto *memoryview*. El objeto "
5614
+ "original permanece inalterado::"
5568
5615
5569
5616
#: ../Doc/library/stdtypes.rst:3713
5570
5617
msgid ""
@@ -5574,19 +5621,31 @@ msgid ""
5574
5621
"release() is handy to remove these restrictions (and free any dangling "
5575
5622
"resources) as soon as possible."
5576
5623
msgstr ""
5624
+ "Libera el buffer subyacente expuesto por el objeto *memoryview*. Muchos "
5625
+ "objetos realizan operaciones especiales cuando una vista los está "
5626
+ "conteniendo (Por ejemplo, un objeto :class:`bytearray` temporalmente prohíbe "
5627
+ "el cambio de tamaño); la llamada a *release()* sirve para eliminar estas "
5628
+ "restricciones (Así como para tratar con los recursos pendientes) lo más "
5629
+ "pronto posible."
5577
5630
5578
5631
#: ../Doc/library/stdtypes.rst:3719
5579
5632
msgid ""
5580
5633
"After this method has been called, any further operation on the view raises "
5581
5634
"a :class:`ValueError` (except :meth:`release()` itself which can be called "
5582
5635
"multiple times)::"
5583
5636
msgstr ""
5637
+ "Después de que se ha llamado a este método, cualquier operación posterior "
5638
+ "sobre la vista producirá una excepción de tipo :class:`ValueError`(Excepto "
5639
+ "por el propio método :meth:`release()`, que puede ser llamado las veces que "
5640
+ "se quiera)::"
5584
5641
5585
5642
#: ../Doc/library/stdtypes.rst:3730
5586
5643
msgid ""
5587
5644
"The context management protocol can be used for a similar effect, using the "
5588
5645
"``with`` statement::"
5589
5646
msgstr ""
5647
+ "El protocolo de gestión de contexto puede ser usado para obtener un efecto "
5648
+ "similar, usando la sentencia ``with``::"
5590
5649
5591
5650
#: ../Doc/library/stdtypes.rst:3746
5592
5651
msgid ""
0 commit comments