Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit900a2a6

Browse files
cmaureirmmmarcos
andauthored
Traducido reference/simple_stmts (#2337)
Closes#1905---------Co-authored-by: Marcos Medrano <786907+mmmarcos@users.noreply.github.com>
1 parent8a3b909 commit900a2a6

File tree

1 file changed

+21
-9
lines changed

1 file changed

+21
-9
lines changed

‎reference/simple_stmts.po

Lines changed: 21 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,12 @@ msgstr ""
1313
"POT-Creation-Date:2022-10-25 19:47+0200\n"
1414
"PO-Revision-Date:2021-08-02 19:21+0200\n"
1515
"Last-Translator:Cristián Maureira-Fredes <cmaureirafredes@gmail.com>\n"
16-
"Language:es\n"
1716
"Language-Team:python-doc-es\n"
18-
"Plural-Forms:nplurals=2; plural=(n != 1);\n"
17+
"Language:es\n"
1918
"MIME-Version:1.0\n"
2019
"Content-Type:text/plain; charset=utf-8\n"
2120
"Content-Transfer-Encoding:8bit\n"
21+
"Plural-Forms:nplurals=2; plural=(n != 1);\n"
2222
"Generated-By:Babel 2.10.3\n"
2323

2424
#:../Doc/reference/simple_stmts.rst:6
@@ -143,7 +143,7 @@ msgstr ""
143143

144144
#:../Doc/reference/simple_stmts.rst:127
145145
msgid"Else:"
146-
msgstr""
146+
msgstr"Sino:"
147147

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

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

827831
#:../Doc/reference/simple_stmts.rst:579
828-
#,fuzzy
829832
msgid""
830833
"A traceback object is normally created automatically when an exception is "
831834
"raised and attached to it as the :attr:`__traceback__` attribute, which is "
@@ -835,11 +838,11 @@ msgid ""
835838
"argument), like so::"
836839
msgstr""
837840
"Normalmente, un objeto de rastreo se crea automáticamente cuando se lanza "
838-
"una excepción y se le adjunta como atributo :attr:`__traceback__`, que se "
839-
"puede escribir. Puede crear una excepción yestablecer su propio rastreo en "
840-
"un solo pasoutilizando el método de excepción :meth:`with_traceback` (que"
841-
"retorna la misma instancia de excepción, con su rastreo establecido en su "
842-
"argumento), así::"
841+
"una excepción y se le adjunta comoelatributo :attr:`__traceback__`, que se "
842+
"puede escribir. Puede crear una excepción yconfigurar su propio rastreo en "
843+
"un solo pasousando el método de excepción :meth:`~BaseException."
844+
"with_traceback` (queretorna la misma instancia de excepción, con su rastreo "
845+
"establecido en suargumento), así:"
843846

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

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

911923
#:../Doc/reference/simple_stmts.rst:667
912924
msgid"The :keyword:`!break` statement"

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp