@@ -15,7 +15,7 @@ msgid ""
15
15
msgstr ""
16
16
"Project-Id-Version : Python 3.13\n "
17
17
"Report-Msgid-Bugs-To : \n "
18
- "POT-Creation-Date : 2025-02-21 14:16 +0000\n "
18
+ "POT-Creation-Date : 2025-03-07 14:18 +0000\n "
19
19
"PO-Revision-Date : 2021-06-28 01:16+0000\n "
20
20
"Last-Translator : Freesand Leo <yuqinju@163.com>, 2025\n "
21
21
"Language-Team : Chinese (China) (https://app.transifex.com/python-doc/teams/5390/zh_CN/)\n "
@@ -671,7 +671,7 @@ msgstr ""
671
671
":class:`!FrameSummary` 对象表示 :ref:`回溯 <traceback-objects>` 中的某一个 :ref:`帧 "
672
672
"<frame-objects>`。"
673
673
674
- #: ../../library/traceback.rst:504
674
+ #: ../../library/traceback.rst:506
675
675
msgid ""
676
676
"Represents a single :ref:`frame <frame-objects>` in the :ref:`traceback "
677
677
"<traceback-objects>` or stack that is being formatted or printed. It may "
@@ -690,11 +690,11 @@ msgstr ""
690
690
":class:`tuple` 时发生)。 :attr:`~FrameSummary.line` 可能会被直接提供,并将完全阻止行查找的发生。 "
691
691
"*locals* 是一个可选的局部变量映射,如果有提供的话这些变量的表示形式将被存储在概要中以便随后显示。"
692
692
693
- #: ../../library/traceback.rst:515
693
+ #: ../../library/traceback.rst:517
694
694
msgid ":class:`!FrameSummary` instances have the following attributes:"
695
695
msgstr ":class:`!FrameSummary` 实例具有以下属性:"
696
696
697
- #: ../../library/traceback.rst:519
697
+ #: ../../library/traceback.rst:521
698
698
msgid ""
699
699
"The filename of the source code for this frame. Equivalent to accessing "
700
700
":attr:`f.f_code.co_filename <codeobject.co_filename>` on a :ref:`frame "
@@ -703,30 +703,52 @@ msgstr ""
703
703
"对应于该帧的源代码的文件名。 等价于访问 :ref:`帧对象 <frame-objects>` *f* 上的 "
704
704
":attr:`f.f_code.co_filename <codeobject.co_filename>`。"
705
705
706
- #: ../../library/traceback.rst:525
706
+ #: ../../library/traceback.rst:527
707
707
msgid "The line number of the source code for this frame."
708
708
msgstr "对应于该帧的源代码的行号。"
709
709
710
- #: ../../library/traceback.rst:529
710
+ #: ../../library/traceback.rst:531
711
711
msgid ""
712
712
"Equivalent to accessing :attr:`f.f_code.co_name <codeobject.co_name>` on a "
713
713
":ref:`frame object <frame-objects>` *f*."
714
714
msgstr ""
715
715
"等价于访问 :ref:`帧对象 <frame-objects>` *f* 上的 :attr:`f.f_code.co_name "
716
716
"<codeobject.co_name>`。"
717
717
718
- #: ../../library/traceback.rst:534
718
+ #: ../../library/traceback.rst:536
719
719
msgid ""
720
720
"A string representing the source code for this frame, with leading and "
721
721
"trailing whitespace stripped. If the source is not available, it is "
722
722
"``None``."
723
723
msgstr "代表该帧的源代码的字符串,开头和末尾的空白将被去除。 如果源代码不可用,它将为 ``None``。"
724
724
725
- #: ../../library/traceback.rst:541
725
+ #: ../../library/traceback.rst:542
726
+ msgid ""
727
+ "The last line number of the source code for this frame. By default, it is "
728
+ "set to ``lineno`` and indexation starts from 1."
729
+ msgstr "该帧源代码的末尾行号。 在默认情况下,它将被设为 ``lineno`` 且索引号从 1 开始。"
730
+
731
+ #: ../../library/traceback.rst:545
732
+ msgid "The default value changed from ``None`` to ``lineno``."
733
+ msgstr "默认值从 ``None`` 改为 ``lineno``。"
734
+
735
+ #: ../../library/traceback.rst:550
736
+ msgid ""
737
+ "The column number of the source code for this frame. By default, it is "
738
+ "``None`` and indexation starts from 0."
739
+ msgstr "该帧源代码的列号。 在默认情况下,它将为 ``None`` 且索引号从 0 开始。"
740
+
741
+ #: ../../library/traceback.rst:555
742
+ msgid ""
743
+ "The last column number of the source code for this frame. By default, it is "
744
+ "``None`` and indexation starts from 0."
745
+ msgstr "该帧源代码的末尾列号。 在默认情况下,它将为 ``None`` 且索引号从 0 开始。"
746
+
747
+ #: ../../library/traceback.rst:562
726
748
msgid "Examples of Using the Module-Level Functions"
727
749
msgstr "使用模块级函数的例子"
728
750
729
- #: ../../library/traceback.rst:543
751
+ #: ../../library/traceback.rst:564
730
752
msgid ""
731
753
"This simple example implements a basic read-eval-print loop, similar to (but"
732
754
" less useful than) the standard Python interactive interpreter loop. For a "
@@ -736,7 +758,7 @@ msgstr ""
736
758
"这个简单示例是一个基本的读取-求值-打印循环,类似于(但实用性小于)标准 Python 交互式解释器循环。 对于解释器循环的更完整实现,请参阅 "
737
759
":mod:`code` 模块。 ::"
738
760
739
- #: ../../library/traceback.rst:548
761
+ #: ../../library/traceback.rst:569
740
762
msgid ""
741
763
"import sys, traceback\n"
742
764
"\n"
@@ -770,13 +792,13 @@ msgstr ""
770
792
"while True:\n"
771
793
" run_user_code(envdir)"
772
794
773
- #: ../../library/traceback.rst:565
795
+ #: ../../library/traceback.rst:586
774
796
msgid ""
775
797
"The following example demonstrates the different ways to print and format "
776
798
"the exception and traceback:"
777
799
msgstr "下面的例子演示了打印和格式化异常与回溯的不同方式:"
778
800
779
- #: ../../library/traceback.rst:568
801
+ #: ../../library/traceback.rst:589
780
802
msgid ""
781
803
"import sys, traceback\n"
782
804
"\n"
@@ -836,11 +858,11 @@ msgstr ""
836
858
" print(repr(traceback.format_tb(exc.__traceback__)))\n"
837
859
" print(\" *** tb_lineno:\" , exc.__traceback__.tb_lineno)"
838
860
839
- #: ../../library/traceback.rst:599
861
+ #: ../../library/traceback.rst:620
840
862
msgid "The output for the example would look similar to this:"
841
863
msgstr "该示例的输出看起来像是这样的:"
842
864
843
- #: ../../library/traceback.rst:601
865
+ #: ../../library/traceback.rst:622
844
866
msgid ""
845
867
"*** print_tb:\n"
846
868
" File \" <doctest...>\" , line 10, in <module>\n"
@@ -924,13 +946,13 @@ msgstr ""
924
946
" ' File \" <doctest default[0]>\" , line 7, in bright_side_of_life\\ n return tuple()[0]\\ n ~~~~~~~^^^\\ n']\n"
925
947
"*** tb_lineno: 10"
926
948
927
- #: ../../library/traceback.rst:646
949
+ #: ../../library/traceback.rst:667
928
950
msgid ""
929
951
"The following example shows the different ways to print and format the "
930
952
"stack::"
931
953
msgstr "下面的例子演示了打印和格式化栈的不同方式::"
932
954
933
- #: ../../library/traceback.rst:648
955
+ #: ../../library/traceback.rst:669
934
956
msgid ""
935
957
">>> import traceback\n"
936
958
">>> def another_function():\n"
@@ -978,11 +1000,11 @@ msgstr ""
978
1000
" ' File \" <doctest>\" , line 3, in another_function\\ n lumberstack()\\ n',\n"
979
1001
" ' File \" <doctest>\" , line 8, in lumberstack\\ n print(repr(traceback.format_stack()))\\ n']"
980
1002
981
- #: ../../library/traceback.rst:672
1003
+ #: ../../library/traceback.rst:693
982
1004
msgid "This last example demonstrates the final few formatting functions:"
983
1005
msgstr "最后这个例子演示了最后几个格式化函数:"
984
1006
985
- #: ../../library/traceback.rst:674
1007
+ #: ../../library/traceback.rst:695
986
1008
msgid ""
987
1009
">>> import traceback\n"
988
1010
">>> traceback.format_list([('spam.py', 3, '<module>', 'spam.eggs()'),\n"
@@ -1002,15 +1024,15 @@ msgstr ""
1002
1024
">>> traceback.format_exception_only(an_error)\n"
1003
1025
"['IndexError: tuple index out of range\\ n']"
1004
1026
1005
- #: ../../library/traceback.rst:688
1027
+ #: ../../library/traceback.rst:709
1006
1028
msgid "Examples of Using :class:`TracebackException`"
1007
1029
msgstr "使用 :class:`TracebackException` 的示例"
1008
1030
1009
- #: ../../library/traceback.rst:690
1031
+ #: ../../library/traceback.rst:711
1010
1032
msgid "With the helper class, we have more options::"
1011
1033
msgstr "使用辅助类,我们将有更多的选项::"
1012
1034
1013
- #: ../../library/traceback.rst:692
1035
+ #: ../../library/traceback.rst:713
1014
1036
msgid ""
1015
1037
">>> import sys\n"
1016
1038
">>> from traceback import TracebackException\n"
0 commit comments