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

Skip to content

Commit c88f637

Browse files
[po] auto sync
1 parent 2551a82 commit c88f637

1 file changed

Lines changed: 12 additions & 1 deletion

File tree

library/sys.po

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2117,6 +2117,10 @@ msgid ""
21172117
"works. Per-line events may be disabled for a frame by setting "
21182118
":attr:`f_trace_lines` to :const:`False` on that frame."
21192119
msgstr ""
2120+
"表示解释器即将执行新一行代码或重新执行循环条件。局部跟踪函数将被调用,*arg* 为 "
2121+
"``None``,其返回值将指定新的局部跟踪函数。关于其工作原理的详细说明,请参见 "
2122+
":file:`Objects/lnotab_notes.txt`。要在该堆栈帧禁用每行触发事件,可以在堆栈帧上将 "
2123+
":attr:`f_trace_lines` 设置为 :const:`False`。"
21202124

21212125
#: ../../library/sys.rst:1325
21222126
msgid ""
@@ -2125,6 +2129,8 @@ msgid ""
21252129
" the event is caused by an exception being raised. The trace function's "
21262130
"return value is ignored."
21272131
msgstr ""
2132+
"表示某个函数(或别的代码块)即将返回。局部跟踪函数将被调用,*arg* 是即将返回的值,如果此次返回事件是由于抛出异常,*arg* 为 "
2133+
"``None``。跟踪函数的返回值将被忽略。"
21282134

21292135
#: ../../library/sys.rst:1333
21302136
msgid "``'exception'``"
@@ -2136,6 +2142,8 @@ msgid ""
21362142
"tuple ``(exception, value, traceback)``; the return value specifies the new "
21372143
"local trace function."
21382144
msgstr ""
2145+
"表示发生了某个异常。局部跟踪函数将被调用,*arg* 是一个 ``(exception, value, traceback)`` "
2146+
"元组,返回值将指定新的局部跟踪函数。"
21392147

21402148
#: ../../library/sys.rst:1341
21412149
msgid "``'opcode'``"
@@ -2149,12 +2157,15 @@ msgid ""
21492157
"emitted by default: they must be explicitly requested by setting "
21502158
":attr:`f_trace_opcodes` to :const:`True` on the frame."
21512159
msgstr ""
2160+
"表示解释器即将执行一个新的操作码(操作码的详情请参阅 :mod:`dis` )。局部跟踪函数将被调用,*arg* 为 "
2161+
"``None``,其返回值将指定新的局部跟踪函数。每操作码触发事件默认情况下都不发出:必须在堆栈帧上将 :attr:`f_trace_opcodes` "
2162+
"显式地设置为 :const:`True` 来请求这些事件。"
21522163

21532164
#: ../../library/sys.rst:1343
21542165
msgid ""
21552166
"Note that as an exception is propagated down the chain of callers, an "
21562167
"``'exception'`` event is generated at each level."
2157-
msgstr ""
2168+
msgstr "注意,由于异常是在链式调用中传播的,所以每一级都会产生一个 ``'exception'`` 事件。"
21582169

21592170
#: ../../library/sys.rst:1346
21602171
msgid ""

0 commit comments

Comments
 (0)