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

Skip to content

Commit 153bb02

Browse files
committed
avance
1 parent e101b96 commit 153bb02

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

whatsnew/2.6.po

Lines changed: 13 additions & 2 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-06-12 19:34-0300\n"
14+
"PO-Revision-Date: 2021-06-25 09:04-0300\n"
1515
"Language-Team: python-doc-es\n"
1616
"MIME-Version: 1.0\n"
1717
"Content-Type: text/plain; charset=UTF-8\n"
@@ -714,13 +714,15 @@ msgstr ""
714714

715715
#: ../Doc/whatsnew/2.6.rst:431
716716
msgid "The contextlib module"
717-
msgstr ""
717+
msgstr "El módulo contextlib"
718718

719719
#: ../Doc/whatsnew/2.6.rst:433
720720
msgid ""
721721
"The :mod:`contextlib` module provides some functions and a decorator that "
722722
"are useful when writing objects for use with the ':keyword:`with`' statement."
723723
msgstr ""
724+
"El módulo :mod:`contextlib` proporciona algunas funciones y un decorador que "
725+
"son útiles al escribir objetos para usar con la sentencia ':keyword:`with`'."
724726

725727
#: ../Doc/whatsnew/2.6.rst:436
726728
msgid ""
@@ -734,6 +736,15 @@ msgid ""
734736
"exception raised in the block will be raised by the :keyword:`!yield` "
735737
"statement."
736738
msgstr ""
739+
"El decorador se llama :func:`contextmanager`, y te permite escribir una "
740+
"única función generadora en lugar de definir una clase nueva. El generador "
741+
"debería producir exactamente un valor. El código hasta :keyword:`yield` se "
742+
"ejecutará como el método :meth:`__enter__`, y el valor obtenido será el "
743+
"valor de retorno del método que se vinculará a la variable en la clausula :"
744+
"keyword:`!as` (si la hay) de la sentencia ':keyword:`with`'. El código "
745+
"después de :keyword:`!yield` se ejecutará en el método :meth:`__exit__` . "
746+
"Cualquier excepción lanzada en el bloque será generada por la sentencia :"
747+
"keyword:`!yield`."
737748

738749
#: ../Doc/whatsnew/2.6.rst:445
739750
msgid ""

0 commit comments

Comments
 (0)