@@ -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 : 2021-04-24 16:16 -0300\n "
14
+ "PO-Revision-Date : 2021-05-23 18:58 -0300\n "
15
15
"Language-Team : python-doc-es\n "
16
16
"MIME-Version : 1.0\n "
17
17
"Content-Type : text/plain; charset=UTF-8\n "
@@ -424,7 +424,7 @@ msgstr ""
424
424
425
425
#: ../Doc/whatsnew/2.6.rst:248
426
426
msgid "PEP 343: The 'with' statement"
427
- msgstr "PEP 343: La declaración *'with'*"
427
+ msgstr "PEP 343: La sentencia *'with'*"
428
428
429
429
#: ../Doc/whatsnew/2.6.rst:250
430
430
msgid ""
@@ -436,6 +436,14 @@ msgid ""
436
436
"from the \" What's New in Python 2.5\" document; if you're familiar with the "
437
437
"':keyword:`!with`' statement from Python 2.5, you can skip this section."
438
438
msgstr ""
439
+ "La versión anterior, Python 2.5, agregó la instrucción ':keyword:`with`' "
440
+ "como una característica opcional, para ser habilitada por una directiva "
441
+ "``from __future__ import with_statement``. En 2.6, la instrucción ya no "
442
+ "necesita estar habilitada especialmente; esto significa que ahora :keyword:`!"
443
+ "with` es siempre una palabra clave. El resto de esta sección es una copia de "
444
+ "la sección correspondiente del documento \" Qué hay de nuevo en Python 2.5\" ; "
445
+ "si está familiarizado con la declaración ':keyword:`!with`' de Python 2.5, "
446
+ "puede omitir esta sección."
439
447
440
448
#: ../Doc/whatsnew/2.6.rst:259
441
449
msgid ""
@@ -445,19 +453,29 @@ msgid ""
445
453
"next section, I'll examine the implementation details and show how to write "
446
454
"objects for use with this statement."
447
455
msgstr ""
456
+ "La sentencia ':keyword:`with`' resuelve el código que anteriormente usaría "
457
+ "bloques `try...finally`` para garantizar que el código de limpieza se "
458
+ "ejecute. En esta sección, discutiré como se usará comúnmente la declaración. "
459
+ "En la siguiente sección, examinaré los detalles de la implementación y "
460
+ "mostraré cómo escribir objetos para usar con esta declaración."
448
461
449
462
#: ../Doc/whatsnew/2.6.rst:265
450
463
msgid ""
451
464
"The ':keyword:`with`' statement is a control-flow structure whose basic "
452
465
"structure is::"
453
466
msgstr ""
467
+ "La sentencia ':keyword:`with`' es una estructura de control de flujo cuya "
468
+ "estructura básica es::"
454
469
455
470
#: ../Doc/whatsnew/2.6.rst:271
456
471
msgid ""
457
472
"The expression is evaluated, and it should result in an object that supports "
458
473
"the context management protocol (that is, has :meth:`__enter__` and :meth:"
459
474
"`__exit__` methods)."
460
475
msgstr ""
476
+ "La expresión se evalúa y debe dar como resultado un objeto que admita el "
477
+ "protocolo de administración de contexto (es decir, tiene los métodos :meth:"
478
+ "`__enter__` y :meth:`__exit__`)."
461
479
462
480
#: ../Doc/whatsnew/2.6.rst:275
463
481
msgid ""
@@ -466,56 +484,79 @@ msgid ""
466
484
"the name *variable*, if given. (Note carefully that *variable* is *not* "
467
485
"assigned the result of *expression*.)"
468
486
msgstr ""
487
+ "El objeto :meth:`__enter__` se llama antes de que se ejecute *with-block* y, "
488
+ "por lo tanto, se puede ejecutar código de configuración. También, si se "
489
+ "proporciona, puede retornar un valor que esté vinculado al nombre "
490
+ "*variable*. (Tenga en cuenta que a la *variable* *no* se le asigna el "
491
+ "resultado de la *expression*)."
469
492
470
493
#: ../Doc/whatsnew/2.6.rst:280
471
494
msgid ""
472
495
"After execution of the *with-block* is finished, the object's :meth:"
473
496
"`__exit__` method is called, even if the block raised an exception, and can "
474
497
"therefore run clean-up code."
475
498
msgstr ""
499
+ "Una vez finalizada la ejecución de *with-block*, se llama al método :meth:"
500
+ "`__exit__` del objeto, incluso si el bloque generó una excepción y, por lo "
501
+ "tanto, puede ejecutar código de limpieza."
476
502
477
503
#: ../Doc/whatsnew/2.6.rst:284
478
504
msgid ""
479
505
"Some standard Python objects now support the context management protocol and "
480
506
"can be used with the ':keyword:`with`' statement. File objects are one "
481
507
"example::"
482
508
msgstr ""
509
+ "Algunos objetos estándar de Python ahora admiten el protocolo de "
510
+ "administración de contexto y se pueden usar con la sentencia ':keyword:"
511
+ "`with`'. Los objetos de archivo son un ejemplo::"
483
512
484
513
#: ../Doc/whatsnew/2.6.rst:292
485
514
msgid ""
486
515
"After this statement has executed, the file object in *f* will have been "
487
516
"automatically closed, even if the :keyword:`for` loop raised an exception "
488
517
"part-way through the block."
489
518
msgstr ""
519
+ "Después de que se haya ejecutado esta sentencia, el objeto de archivo en *f* "
520
+ "se habrá cerrado automáticamente, incluso si el bucle :keyword:`for` generó "
521
+ "una excepción en la mitad del bloque."
490
522
491
523
#: ../Doc/whatsnew/2.6.rst:298
492
524
msgid ""
493
525
"In this case, *f* is the same object created by :func:`open`, because :meth:"
494
526
"`file.__enter__` returns *self*."
495
527
msgstr ""
528
+ "En este caso, *f* es el mismo objeto creado por :func:`open`, porque :meth:"
529
+ "`file.__enter__` retorna *self*."
496
530
497
531
#: ../Doc/whatsnew/2.6.rst:301
498
532
msgid ""
499
533
"The :mod:`threading` module's locks and condition variables also support "
500
534
"the ':keyword:`with`' statement::"
501
535
msgstr ""
536
+ "Los *locks* y las condiciones variables del módulo :mod:`threading` también "
537
+ "admiten la sentencia ':keyword:`with`'::"
502
538
503
539
#: ../Doc/whatsnew/2.6.rst:309
504
540
msgid ""
505
541
"The lock is acquired before the block is executed and always released once "
506
542
"the block is complete."
507
543
msgstr ""
544
+ "El *lock* se adquiere antes de que se ejecute el bloque y siempre se libera "
545
+ "una vez que este se completa."
508
546
509
547
#: ../Doc/whatsnew/2.6.rst:312
510
548
msgid ""
511
549
"The :func:`localcontext` function in the :mod:`decimal` module makes it easy "
512
550
"to save and restore the current decimal context, which encapsulates the "
513
551
"desired precision and rounding characteristics for computations::"
514
552
msgstr ""
553
+ "La función :func:`localcontext` en el módulo :mod:`decimal` facilita guardar "
554
+ "y restaurar el contexto decimal actual, que encapsula la precisión deseada y "
555
+ "las características de redondeo para los cálculos::"
515
556
516
557
#: ../Doc/whatsnew/2.6.rst:331
517
558
msgid "Writing Context Managers"
518
- msgstr ""
559
+ msgstr "Escribiendo gestores de contexto "
519
560
520
561
#: ../Doc/whatsnew/2.6.rst:333
521
562
msgid ""
@@ -525,10 +566,16 @@ msgid ""
525
566
"if you like. Authors of new objects will need to understand the details of "
526
567
"the underlying implementation and should keep reading."
527
568
msgstr ""
569
+ "Por detrás, la sentencia ':keyword:`with`' es bastante complicada. La "
570
+ "mayoría de las personas solo usarán ':keyword:`!with`' en compañía de "
571
+ "objetos existentes y no necesitan conocer estos detalles, por lo que puede "
572
+ "omitir el resto de esta sección si lo desea. Los autores de nuevos objetos "
573
+ "deberán comprender los detalles de la implementación subyacente y deben "
574
+ "seguir leyendo."
528
575
529
576
#: ../Doc/whatsnew/2.6.rst:339
530
577
msgid "A high-level explanation of the context management protocol is:"
531
- msgstr ""
578
+ msgstr "Una explicación de alto nivel del protocolo de gestor de contexto es: "
532
579
533
580
#: ../Doc/whatsnew/2.6.rst:341
534
581
msgid ""
@@ -766,7 +813,7 @@ msgstr ""
766
813
767
814
#: ../Doc/whatsnew/2.6.rst:561
768
815
msgid "PEP 371: The ``multiprocessing`` Package"
769
- msgstr ""
816
+ msgstr "PEP 371: El paquete ``multiprocessing`` "
770
817
771
818
#: ../Doc/whatsnew/2.6.rst:563
772
819
msgid ""
@@ -819,7 +866,7 @@ msgstr ""
819
866
820
867
#: ../Doc/whatsnew/2.6.rst:642
821
868
msgid "This produces the following output::"
822
- msgstr ""
869
+ msgstr "Esto produce la siguiente salida:: "
823
870
824
871
#: ../Doc/whatsnew/2.6.rst:651
825
872
msgid ""
0 commit comments