@@ -24,7 +24,7 @@ msgid ""
24
24
msgstr ""
25
25
"Project-Id-Version : Python 3.14\n "
26
26
"Report-Msgid-Bugs-To : \n "
27
- "POT-Creation-Date : 2025-05-08 02:53-0300 \n "
27
+ "POT-Creation-Date : 2025-05-16 14:19+0000 \n "
28
28
"PO-Revision-Date : 2021-06-28 01:19+0000\n "
29
29
"
Last-Translator :
Freesand Leo <[email protected] >, 2025\n "
30
30
"Language-Team : Chinese (China) (https://app.transifex.com/python-doc/teams/5390/zh_CN/)\n "
@@ -265,7 +265,7 @@ msgstr ""
265
265
msgid ""
266
266
"Support for optionally dropping grouping parentheses when using multiple "
267
267
"exception types. See :pep:`758`."
268
- msgstr ""
268
+ msgstr "支持在使用多个异常类型时可以选择略去分组圆括号。 参见 :pep:`758`。 "
269
269
270
270
#: ../../reference/compound_stmts.rst:241
271
271
msgid ":keyword:`!except` clause"
@@ -578,6 +578,11 @@ msgid ""
578
578
" finally:\n"
579
579
" return 42"
580
580
msgstr ""
581
+ "def f():\n"
582
+ " try:\n"
583
+ " 1/0\n"
584
+ " finally:\n"
585
+ " return 42"
581
586
582
587
#: ../../reference/compound_stmts.rst:437
583
588
msgid ""
@@ -613,6 +618,11 @@ msgid ""
613
618
" finally:\n"
614
619
" return 'finally'"
615
620
msgstr ""
621
+ "def foo():\n"
622
+ " try:\n"
623
+ " return 'try'\n"
624
+ " finally:\n"
625
+ " return 'finally'"
616
626
617
627
#: ../../reference/compound_stmts.rst:462
618
628
msgid ""
@@ -1723,7 +1733,7 @@ msgid ":class:`int`"
1723
1733
msgstr ":class:`int`"
1724
1734
1725
1735
#: ../../reference/compound_stmts.rst:1167
1726
- #: ../../reference/compound_stmts.rst:1919
1736
+ #: ../../reference/compound_stmts.rst:1925
1727
1737
msgid ":class:`list`"
1728
1738
msgstr ":class:`list`"
1729
1739
@@ -1736,7 +1746,7 @@ msgid ":class:`str`"
1736
1746
msgstr ":class:`str`"
1737
1747
1738
1748
#: ../../reference/compound_stmts.rst:1170
1739
- #: ../../reference/compound_stmts.rst:1922
1749
+ #: ../../reference/compound_stmts.rst:1928
1740
1750
msgid ":class:`tuple`"
1741
1751
msgstr ":class:`tuple`"
1742
1752
@@ -2848,7 +2858,7 @@ msgstr ""
2848
2858
2849
2859
#: ../../reference/compound_stmts.rst:1867
2850
2860
msgid "Annotations"
2851
- msgstr ""
2861
+ msgstr "标注 "
2852
2862
2853
2863
#: ../../reference/compound_stmts.rst:1869
2854
2864
msgid "Annotations are now lazily evaluated by default."
@@ -2887,7 +2897,7 @@ msgstr ""
2887
2897
2888
2898
#: ../../reference/compound_stmts.rst:1888
2889
2899
msgid ""
2890
- "By default, annotations are lazily evaluated in a :ref:`annotation scope "
2900
+ "By default, annotations are lazily evaluated in an :ref:`annotation scope "
2891
2901
"<annotation-scopes>`. This means that they are not evaluated when the code "
2892
2902
"containing the annotation is evaluated. Instead, the interpreter saves "
2893
2903
"information that can be used to evaluate the annotation later if requested. "
@@ -2908,92 +2918,101 @@ msgid ""
2908
2918
"{'param': 'annotation'}"
2909
2919
msgstr ""
2910
2920
2911
- #: ../../reference/compound_stmts.rst:1903
2921
+ #: ../../reference/compound_stmts.rst:1901
2922
+ msgid ""
2923
+ "This future statement will be deprecated and removed in a future version of "
2924
+ "Python, but not before Python 3.13 reaches its end of life (see :pep:`749`)."
2925
+ " When it is used, introspection tools like "
2926
+ ":func:`annotationlib.get_annotations` and :func:`typing.get_type_hints` are "
2927
+ "less likely to be able to resolve annotations at runtime."
2928
+ msgstr ""
2929
+
2930
+ #: ../../reference/compound_stmts.rst:1909
2912
2931
msgid "Footnotes"
2913
2932
msgstr "备注"
2914
2933
2915
- #: ../../reference/compound_stmts.rst:1904
2934
+ #: ../../reference/compound_stmts.rst:1910
2916
2935
msgid ""
2917
2936
"The exception is propagated to the invocation stack unless there is a "
2918
2937
":keyword:`finally` clause which happens to raise another exception. That new"
2919
2938
" exception causes the old one to be lost."
2920
2939
msgstr "异常会被传播给唤起栈,除非存在一个 :keyword:`finally` 子句正好引发了另一个异常。 新引发的异常将导致旧异常的丢失。"
2921
2940
2922
- #: ../../reference/compound_stmts.rst:1908
2941
+ #: ../../reference/compound_stmts.rst:1914
2923
2942
msgid "In pattern matching, a sequence is defined as one of the following:"
2924
2943
msgstr "在模式匹配中,序列被定义为以下几种之一:"
2925
2944
2926
- #: ../../reference/compound_stmts.rst:1910
2945
+ #: ../../reference/compound_stmts.rst:1916
2927
2946
msgid "a class that inherits from :class:`collections.abc.Sequence`"
2928
2947
msgstr "继承自 :class:`collections.abc.Sequence` 的类"
2929
2948
2930
- #: ../../reference/compound_stmts.rst:1911
2949
+ #: ../../reference/compound_stmts.rst:1917
2931
2950
msgid ""
2932
2951
"a Python class that has been registered as :class:`collections.abc.Sequence`"
2933
2952
msgstr "注册为 :class:`collections.abc.Sequence` 的 Python 类"
2934
2953
2935
- #: ../../reference/compound_stmts.rst:1912
2954
+ #: ../../reference/compound_stmts.rst:1918
2936
2955
msgid ""
2937
2956
"a builtin class that has its (CPython) :c:macro:`Py_TPFLAGS_SEQUENCE` bit "
2938
2957
"set"
2939
2958
msgstr "设置了 (CPython) :c:macro:`Py_TPFLAGS_SEQUENCE` 比特位的内置类"
2940
2959
2941
- #: ../../reference/compound_stmts.rst:1913
2942
- #: ../../reference/compound_stmts.rst:1932
2960
+ #: ../../reference/compound_stmts.rst:1919
2961
+ #: ../../reference/compound_stmts.rst:1938
2943
2962
msgid "a class that inherits from any of the above"
2944
2963
msgstr "继承自上述任何一个类的类"
2945
2964
2946
- #: ../../reference/compound_stmts.rst:1915
2965
+ #: ../../reference/compound_stmts.rst:1921
2947
2966
msgid "The following standard library classes are sequences:"
2948
2967
msgstr "下列标准库中的类都是序列:"
2949
2968
2950
- #: ../../reference/compound_stmts.rst:1917
2969
+ #: ../../reference/compound_stmts.rst:1923
2951
2970
msgid ":class:`array.array`"
2952
2971
msgstr ":class:`array.array`"
2953
2972
2954
- #: ../../reference/compound_stmts.rst:1918
2973
+ #: ../../reference/compound_stmts.rst:1924
2955
2974
msgid ":class:`collections.deque`"
2956
2975
msgstr ":class:`collections.deque`"
2957
2976
2958
- #: ../../reference/compound_stmts.rst:1920
2977
+ #: ../../reference/compound_stmts.rst:1926
2959
2978
msgid ":class:`memoryview`"
2960
2979
msgstr ":class:`memoryview`"
2961
2980
2962
- #: ../../reference/compound_stmts.rst:1921
2981
+ #: ../../reference/compound_stmts.rst:1927
2963
2982
msgid ":class:`range`"
2964
2983
msgstr ":class:`range`"
2965
2984
2966
- #: ../../reference/compound_stmts.rst:1924
2985
+ #: ../../reference/compound_stmts.rst:1930
2967
2986
msgid ""
2968
2987
"Subject values of type ``str``, ``bytes``, and ``bytearray`` do not match "
2969
2988
"sequence patterns."
2970
2989
msgstr "类型为 ``str``, ``bytes`` 和 ``bytearray`` 的目标值不能匹配序列模式。"
2971
2990
2972
- #: ../../reference/compound_stmts.rst:1927
2991
+ #: ../../reference/compound_stmts.rst:1933
2973
2992
msgid "In pattern matching, a mapping is defined as one of the following:"
2974
2993
msgstr "在模式匹配中,映射被定义为以下几种之一:"
2975
2994
2976
- #: ../../reference/compound_stmts.rst:1929
2995
+ #: ../../reference/compound_stmts.rst:1935
2977
2996
msgid "a class that inherits from :class:`collections.abc.Mapping`"
2978
2997
msgstr "继承自 :class:`collections.abc.Mapping` 的类"
2979
2998
2980
- #: ../../reference/compound_stmts.rst:1930
2999
+ #: ../../reference/compound_stmts.rst:1936
2981
3000
msgid ""
2982
3001
"a Python class that has been registered as :class:`collections.abc.Mapping`"
2983
3002
msgstr "注册为 :class:`collections.abc.Mapping` 的 Python 类"
2984
3003
2985
- #: ../../reference/compound_stmts.rst:1931
3004
+ #: ../../reference/compound_stmts.rst:1937
2986
3005
msgid ""
2987
3006
"a builtin class that has its (CPython) :c:macro:`Py_TPFLAGS_MAPPING` bit set"
2988
3007
msgstr "设置了 (CPython) :c:macro:`Py_TPFLAGS_MAPPING` 比特位的内置类"
2989
3008
2990
- #: ../../reference/compound_stmts.rst:1934
3009
+ #: ../../reference/compound_stmts.rst:1940
2991
3010
msgid ""
2992
3011
"The standard library classes :class:`dict` and "
2993
3012
":class:`types.MappingProxyType` are mappings."
2994
3013
msgstr "标准库中的 :class:`dict` 和 :class:`types.MappingProxyType` 类都属于映射。"
2995
3014
2996
- #: ../../reference/compound_stmts.rst:1937
3015
+ #: ../../reference/compound_stmts.rst:1943
2997
3016
msgid ""
2998
3017
"A string literal appearing as the first statement in the function body is "
2999
3018
"transformed into the function's :attr:`~function.__doc__` attribute and "
@@ -3002,7 +3021,7 @@ msgstr ""
3002
3021
"作为函数体的第一条语句出现的字符串字面值会被转换为函数的 :attr:`~function.__doc__` 属性也就是该函数的 "
3003
3022
":term:`docstring`。"
3004
3023
3005
- #: ../../reference/compound_stmts.rst:1941
3024
+ #: ../../reference/compound_stmts.rst:1947
3006
3025
msgid ""
3007
3026
"A string literal appearing as the first statement in the class body is "
3008
3027
"transformed into the namespace's :attr:`~type.__doc__` item and therefore "
0 commit comments