10000 Traducido reference/simple_stmts by cmaureir · Pull Request #2337 · python/python-docs-es · GitHub
[go: up one dir, main page]

Skip to content

Traducido reference/simple_stmts #2337

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Mar 3, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 21 additions & 9 deletions reference/simple_stmts.po
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@ msgstr ""
"POT-Creation-Date: 2022-10-25 19:47+0200\n"
"PO-Revision-Date: 2021-08-02 19:21+0200\n"
"Last-Translator: Cristián Maureira-Fredes <cmaureirafredes@gmail.com>\n"
"Language: es\n"
"Language-Team: python-doc-es\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
"Language: es\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=utf-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
"Generated-By: Babel 2.10.3\n"

#: ../Doc/reference/simple_stmts.rst:6
Expand Down Expand Up @@ -143,7 +143,7 @@ msgstr ""

#: ../Doc/reference/simple_stmts.rst:127
msgid "Else:"
msgstr ""
msgstr "Sino:"

#: ../Doc/reference/simple_stmts.rst:129
msgid ""
Expand Down Expand Up @@ -803,6 +803,10 @@ msgid ""
"If there isn't currently an active exception, a :exc:`RuntimeError` "
"exception is raised indicating that this is an error."
msgstr ""
"Si no hay expresiones presentes, :keyword:`raise` vuelve a lanzar la "
"excepción que se está manejando actualmente, que también se conoce como "
"*excepción activa*. Si actualmente no hay una excepción activa, se lanza una "
"excepción :exc:`RuntimeError` que indica que se trata de un error."

#: ../Doc/reference/simple_stmts.rst:569
msgid ""
Expand All @@ -825,7 +829,6 @@ msgstr ""
"dfn:`value` es la propia instancia."

#: ../Doc/reference/simple_stmts.rst:579
#, fuzzy
msgid ""
"A traceback object is normally created automatically when an exception is "
"raised and attached to it as the :attr:`__traceback__` attribute, which is "
Expand All @@ -835,11 +838,11 @@ msgid ""
"argument), like so::"
msgstr ""
"Normalmente, un objeto de rastreo se crea automáticamente cuando se lanza "
"una excepción y se le adjunta como atributo :attr:`__traceback__`, que se "
"puede escribir. Puede crear una excepción y establecer su propio rastreo en "
"un solo paso utilizando el método de excepción :meth:`with_traceback` (que "
"retorna la misma instancia de excepción, con su rastreo establecido en su "
"argumento), así::"
"una excepción y se le adjunta como el atributo :attr:`__traceback__`, que se "
"puede escribir. Puede crear una excepción y configurar su propio rastreo en "
"un solo paso usando el método de excepción :meth:`~BaseException."
"with_traceback` (que retorna la misma instancia de excepción, con su rastreo "
"establecido en su argumento), así:"

#: ../Doc/reference/simple_stmts.rst:591
msgid ""
Expand Down Expand Up @@ -869,6 +872,11 @@ msgid ""
"statement, is used. The previous exception is then attached as the new "
"exception's :attr:`__context__` attribute::"
msgstr ""
"Un mecanismo similar funciona implícitamente si se genera una nueva "
"excepción cuando ya se está manejando una excepción. Se puede manejar una "
"excepción cuando se usa una cláusula :keyword:`except` o :keyword:`finally`, "
"o una declaración :keyword:`with`. La excepción anterior se adjunta como el "
"atributo :attr:`__context__` de la nueva excepción:"

#: ../Doc/reference/simple_stmts.rst:636
msgid ""
Expand Down Expand Up @@ -907,6 +915,10 @@ msgid ""
"modified traceback. Previously, the exception was re-raised with the "
"traceback it had when it was caught."
msgstr ""
"Si el rastreo de la excepción activa se modifica en una cláusula :keyword:"
"`except`, una instrucción ``raise`` posterior vuelve a generar la excepción "
"con el rastreo modificado. Anteriormente, la excepción se volvía a generar "
"con el rastreo que tenía cuando se detectó."

#: ../Doc/reference/simple_stmts.rst:667
msgid "The :keyword:`!break` statement"
Expand Down
0