Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 7aecce0

Browse files
committed
avance 15%
1 parent 0421580 commit 7aecce0

File tree

1 file changed

+53
-6
lines changed

1 file changed

+53
-6
lines changed

whatsnew/2.6.po

Lines changed: 53 additions & 6 deletions
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: 2021-04-24 16:16-0300\n"
14+
"PO-Revision-Date: 2021-05-23 18:58-0300\n"
1515
"Language-Team: python-doc-es\n"
1616
"MIME-Version: 1.0\n"
1717
"Content-Type: text/plain; charset=UTF-8\n"
@@ -424,7 +424,7 @@ msgstr ""
424424

425425
#: ../Doc/whatsnew/2.6.rst:248
426426
msgid "PEP 343: The 'with' statement"
427-
msgstr "PEP 343: La declaración *'with'*"
427+
msgstr "PEP 343: La sentencia *'with'*"
428428

429429
#: ../Doc/whatsnew/2.6.rst:250
430430
msgid ""
@@ -436,6 +436,14 @@ msgid ""
436436
"from the \"What's New in Python 2.5\" document; if you're familiar with the "
437437
"':keyword:`!with`' statement from Python 2.5, you can skip this section."
438438
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."
439447

440448
#: ../Doc/whatsnew/2.6.rst:259
441449
msgid ""
@@ -445,19 +453,29 @@ msgid ""
445453
"next section, I'll examine the implementation details and show how to write "
446454
"objects for use with this statement."
447455
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."
448461

449462
#: ../Doc/whatsnew/2.6.rst:265
450463
msgid ""
451464
"The ':keyword:`with`' statement is a control-flow structure whose basic "
452465
"structure is::"
453466
msgstr ""
467+
"La sentencia ':keyword:`with`' es una estructura de control de flujo cuya "
468+
"estructura básica es::"
454469

455470
#: ../Doc/whatsnew/2.6.rst:271
456471
msgid ""
457472
"The expression is evaluated, and it should result in an object that supports "
458473
"the context management protocol (that is, has :meth:`__enter__` and :meth:"
459474
"`__exit__` methods)."
460475
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__`)."
461479

462480
#: ../Doc/whatsnew/2.6.rst:275
463481
msgid ""
@@ -466,56 +484,79 @@ msgid ""
466484
"the name *variable*, if given. (Note carefully that *variable* is *not* "
467485
"assigned the result of *expression*.)"
468486
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*)."
469492

470493
#: ../Doc/whatsnew/2.6.rst:280
471494
msgid ""
472495
"After execution of the *with-block* is finished, the object's :meth:"
473496
"`__exit__` method is called, even if the block raised an exception, and can "
474497
"therefore run clean-up code."
475498
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."
476502

477503
#: ../Doc/whatsnew/2.6.rst:284
478504
msgid ""
479505
"Some standard Python objects now support the context management protocol and "
480506
"can be used with the ':keyword:`with`' statement. File objects are one "
481507
"example::"
482508
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::"
483512

484513
#: ../Doc/whatsnew/2.6.rst:292
485514
msgid ""
486515
"After this statement has executed, the file object in *f* will have been "
487516
"automatically closed, even if the :keyword:`for` loop raised an exception "
488517
"part-way through the block."
489518
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."
490522

491523
#: ../Doc/whatsnew/2.6.rst:298
492524
msgid ""
493525
"In this case, *f* is the same object created by :func:`open`, because :meth:"
494526
"`file.__enter__` returns *self*."
495527
msgstr ""
528+
"En este caso, *f* es el mismo objeto creado por :func:`open`, porque :meth:"
529+
"`file.__enter__` retorna *self*."
496530

497531
#: ../Doc/whatsnew/2.6.rst:301
498532
msgid ""
499533
"The :mod:`threading` module's locks and condition variables also support "
500534
"the ':keyword:`with`' statement::"
501535
msgstr ""
536+
"Los *locks* y las condiciones variables del módulo :mod:`threading` también "
537+
"admiten la sentencia ':keyword:`with`'::"
502538

503539
#: ../Doc/whatsnew/2.6.rst:309
504540
msgid ""
505541
"The lock is acquired before the block is executed and always released once "
506542
"the block is complete."
507543
msgstr ""
544+
"El *lock* se adquiere antes de que se ejecute el bloque y siempre se libera "
545+
"una vez que este se completa."
508546

509547
#: ../Doc/whatsnew/2.6.rst:312
510548
msgid ""
511549
"The :func:`localcontext` function in the :mod:`decimal` module makes it easy "
512550
"to save and restore the current decimal context, which encapsulates the "
513551
"desired precision and rounding characteristics for computations::"
514552
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::"
515556

516557
#: ../Doc/whatsnew/2.6.rst:331
517558
msgid "Writing Context Managers"
518-
msgstr ""
559+
msgstr "Escribiendo gestores de contexto"
519560

520561
#: ../Doc/whatsnew/2.6.rst:333
521562
msgid ""
@@ -525,10 +566,16 @@ msgid ""
525566
"if you like. Authors of new objects will need to understand the details of "
526567
"the underlying implementation and should keep reading."
527568
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."
528575

529576
#: ../Doc/whatsnew/2.6.rst:339
530577
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:"
532579

533580
#: ../Doc/whatsnew/2.6.rst:341
534581
msgid ""
@@ -766,7 +813,7 @@ msgstr ""
766813

767814
#: ../Doc/whatsnew/2.6.rst:561
768815
msgid "PEP 371: The ``multiprocessing`` Package"
769-
msgstr ""
816+
msgstr "PEP 371: El paquete ``multiprocessing``"
770817

771818
#: ../Doc/whatsnew/2.6.rst:563
772819
msgid ""
@@ -819,7 +866,7 @@ msgstr ""
819866

820867
#: ../Doc/whatsnew/2.6.rst:642
821868
msgid "This produces the following output::"
822-
msgstr ""
869+
msgstr "Esto produce la siguiente salida::"
823870

824871
#: ../Doc/whatsnew/2.6.rst:651
825872
msgid ""

0 commit comments

Comments
 (0)