File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2080,26 +2080,29 @@ msgid ""
20802080"function to be used for the new scope, or ``None`` if the scope shouldn't be"
20812081" traced."
20822082msgstr ""
2083+ "每次进入 trace 函数的新本地作用域,都会调用 trace 函数( *event* 会被设置为 ``'call'`` "
2084+ "),它应该返回一个引用,指向即将用在新作用域上的本地跟踪函数;如果不需要跟踪当前的作用域,则返回 ``None``。"
20832085
20842086#: ../../library/sys.rst:1301
20852087msgid ""
20862088"The local trace function should return a reference to itself (or to another "
20872089"function for further tracing in that scope), or ``None`` to turn off tracing"
20882090" in that scope."
20892091msgstr ""
2092+ "本地跟踪函数应返回对自身的引用(或对另一个函数的引用,用来在其作用范围内进行进一步的跟踪),或者返回 ``None`` 来停止跟踪其作用范围。"
20902093
20912094#: ../../library/sys.rst:1305
20922095msgid ""
20932096"If there is any error occurred in the trace function, it will be unset, just"
20942097" like ``settrace(None)`` is called."
2095- msgstr ""
2098+ msgstr "如果跟踪函数出错,则该跟踪函数将被取消设置,类似于调用 ``settrace(None)``。 "
20962099
20972100#: ../../library/sys.rst:1311
20982101msgid ""
20992102"A function is called (or some other code block entered). The global trace "
21002103"function is called; *arg* is ``None``; the return value specifies the local "
21012104"trace function."
2102- msgstr ""
2105+ msgstr "表示调用了某个函数(或进入了其他的代码块)。全局跟踪函数将被调用,*arg* 为 ``None``。返回值取决于本地跟踪函数。 "
21032106
21042107#: ../../library/sys.rst:1322
21052108msgid "``'line'``"
You can’t perform that action at this time.
0 commit comments