Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 866957b commit 4a69abfCopy full SHA for 4a69abf
1 file changed
library/contextlib.po
@@ -580,6 +580,8 @@ msgid ""
580
" By using :class:`ExitStack` the steps in the context management protocol "
581
"can be separated slightly in order to allow this::"
582
msgstr ""
583
+"有时人们会想要从 ``__enter__`` 方法的实现中捕获异常,而 *不会* 无意中捕获来自 :keyword:`with` 语句体或上下文管理器的"
584
+" ``__exit__`` 方法的异常。 通过使用 :class:`ExitStack` 可以将上下文管理协议中的步骤稍微分开以允许这样做::"
585
586
#: ../../library/contextlib.rst:545
587
msgid ""
0 commit comments