@@ -87,6 +87,11 @@ msgid ""
8787"open :term:`file <file object>` or :term:`file-like object` to receive the "
8888"output."
8989msgstr ""
90+ "如果 *limit* 为正值则打印来自 :ref:`回溯对象 <traceback-objects>` *tb* 的至多 *limit* "
91+ "个栈回溯条目(从调用方的帧开始)。 否则,打印最后 ``abs(limit)`` 个条目。 如果 *limit* 被省略或为 "
92+ "``None``,则打印所有条目。 如果 *file* 被省略或为 ``None``,则会输出到 "
93+ ":data:`sys.stderr`;在其他情况下它应当是一个打开的 :term:`文件 <file object>` 或 :term:`file-"
94+ "like object` 用来接受输出。"
9095
9196#: ../../library/traceback.rst:45 ../../library/traceback.rst:110
9297msgid "Added negative *limit* support."
@@ -98,6 +103,8 @@ msgid ""
98103"object <traceback-objects>` *tb* to *file*. This differs from "
99104":func:`print_tb` in the following ways:"
100105msgstr ""
106+ "将来自 :ref:`回溯对象 <traceback-objects>` *tb* 的异常信息与栈跟踪条目打印到 *file*。 这与 "
107+ ":func:`print_tb` 相比有以下几方面的区别:"
101108
102109#: ../../library/traceback.rst:57
103110msgid ""
@@ -429,6 +436,7 @@ msgid ""
429436"If *chain* is not ``True``, :attr:`__cause__` and :attr:`__context__` will "
430437"not be formatted."
431438msgstr ""
439+ "如果 *chain* 不为 ``True``,则 :attr:`__cause__` 和 :attr:`__context__` 将不会被格式化。"
432440
433441#: ../../library/traceback.rst:355
434442msgid ""
@@ -461,11 +469,11 @@ msgstr ""
461469msgid ""
462470"The exception's :attr:`notes <BaseException.__notes__>` are now included in "
463471"the output."
464- msgstr ""
472+ msgstr "异常的 :attr:`注释 <BaseException.__notes__>` 现在将被包括在输出中。 "
465473
466474#: ../../library/traceback.rst:378
467475msgid ":class:`!StackSummary` Objects"
468- msgstr ""
476+ msgstr ":class:`!StackSummary` 对象 "
469477
470478#: ../../library/traceback.rst:382
471479msgid ""
0 commit comments