11# SOME DESCRIPTIVE TITLE.
2- # Copyright (C) 2001-2023 , Python Software Foundation
2+ # Copyright (C) 2001-2024 , Python Software Foundation
33# This file is distributed under the same license as the Python package.
44# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
55#
@@ -11,7 +11,7 @@ msgid ""
1111msgstr ""
1212"Project-Id-Version : Python 3.11\n "
1313"Report-Msgid-Bugs-To : \n "
14- "POT-Creation-Date : 2023-08-11 14:43 +0000\n "
14+ "POT-Creation-Date : 2024-02-09 16:33 +0000\n "
1515"PO-Revision-Date : 2023-05-24 02:08+0000\n "
1616"
Last-Translator :
Rafael Fontenelle <[email protected] >, 2023\n "
1717"Language-Team : Chinese (China) (https://app.transifex.com/python-doc/teams/5390/zh_CN/)\n "
@@ -41,20 +41,20 @@ msgstr "用于描述代码对象的对象的 C 结构。 此类型字段可随
4141#: ../../c-api/code.rst:24
4242msgid ""
4343"This is an instance of :c:type:`PyTypeObject` representing the Python "
44- ":class :`code` type ."
45- msgstr "这是一个 :c:type:`PyTypeObject` 实例,其表示Python的 :class:`code` 类型。 "
44+ ":ref :`code object <code-objects>` ."
45+ msgstr ""
4646
4747#: ../../c-api/code.rst:30
4848msgid ""
49- "Return true if *co* is a :class :`code` object. This function always "
50- "succeeds."
51- msgstr "如果 *co* 是一个 :class:`code` 对象则返回真值。 此函数总是会成功执行。 "
49+ "Return true if *co* is a :ref :`code object <code-objects>`. This function "
50+ "always succeeds."
51+ msgstr ""
5252
53- #: ../../c-api/code.rst:34
53+ #: ../../c-api/code.rst:35
5454msgid "Return the number of free variables in *co*."
5555msgstr "返回 *co* 中的自由变量数。"
5656
57- #: ../../c-api/code.rst:38
57+ #: ../../c-api/code.rst:39
5858msgid ""
5959"Return a new code object. If you need a dummy code object to create a "
6060"frame, use :c:func:`PyCode_NewEmpty` instead. Calling :c:func:`PyCode_New` "
@@ -68,11 +68,11 @@ msgstr ""
6868":c:func:`PyCode_New` 将会绑定一个具体 Python 版本,因为字节码经常会变动。 "
6969"此函数的各种参数存在复杂的相互依赖,这意味着对值的细微改变可能会导致不正确的执行或 VM 的崩溃。 必须非常小心地使用这个函数。"
7070
71- #: ../../c-api/code.rst:45
71+ #: ../../c-api/code.rst:46
7272msgid "Added ``qualname`` and ``exceptiontable`` parameters."
7373msgstr "添加了 ``qualname`` 和 ``exceptiontable`` 形参。"
7474
75- #: ../../c-api/code.rst:50
75+ #: ../../c-api/code.rst:51
7676msgid ""
7777"Similar to :c:func:`PyCode_New`, but with an extra \" posonlyargcount\" for "
7878"positional-only arguments. The same caveats that apply to ``PyCode_New`` "
@@ -81,18 +81,18 @@ msgstr ""
8181"与 :c:func:`PyCode_New` 类似,但还有一个针对仅限位置参数的额外的 \" posonlyargcount\" 。 适用于 "
8282"``PyCode_New`` 的注意事项同样适用于这个函数。"
8383
84- #: ../../c-api/code.rst:55
84+ #: ../../c-api/code.rst:56
8585msgid "Added ``qualname`` and ``exceptiontable`` parameters."
8686msgstr "增加了 ``qualname`` 和 ``exceptiontable`` 形参。"
8787
88- #: ../../c-api/code.rst:60
88+ #: ../../c-api/code.rst:61
8989msgid ""
9090"Return a new empty code object with the specified filename, function name, "
9191"and first line number. The resulting code object will raise an ``Exception``"
9292" if executed."
9393msgstr "返回一个具有指定用户名、函数名和首行行号的空代码对象。 结果代码对象如果被执行则将引发一个 ``Exception``。"
9494
95- #: ../../c-api/code.rst:66
95+ #: ../../c-api/code.rst:67
9696msgid ""
9797"Return the line number of the instruction that occurs on or before "
9898"``byte_offset`` and ends after it. If you just need the line number of a "
@@ -101,7 +101,7 @@ msgstr ""
101101"返回在 ``byte_offset`` 位置或之前以及之后发生的指令的行号。 如果你只需要一个帧的行号,请改用 "
102102":c:func:`PyFrame_GetLineNumber`。"
103103
104- #: ../../c-api/code.rst:69
104+ #: ../../c-api/code.rst:70
105105msgid ""
106106"For efficiently iterating over the line numbers in a code object, use `the "
107107"API described in PEP 626 <https://peps.python.org/pep-0626/#out-of-process-"
@@ -111,19 +111,19 @@ msgstr ""
111111"<https://peps.python.org/pep-0626/#out-of-process-debuggers-and-"
112112"profilers>`_。"
113113
114- #: ../../c-api/code.rst:74
114+ #: ../../c-api/code.rst:75
115115msgid ""
116116"Sets the passed ``int`` pointers to the source code line and column numbers "
117117"for the instruction at ``byte_offset``. Sets the value to ``0`` when "
118118"information is not available for any particular element."
119119msgstr ""
120120"将传入的 ``int`` 指针设为 ``byte_offset`` 处的指令的源代码行编号和列编号。 当没有任何特定元素的信息时则将值设为 ``0``。"
121121
122- #: ../../c-api/code.rst:78
122+ #: ../../c-api/code.rst:79
123123msgid "Returns ``1`` if the function succeeds and 0 otherwise."
124124msgstr "如果函数执行成功则返回 ``1`` 否则返回 0。"
125125
126- #: ../../c-api/code.rst:84
126+ #: ../../c-api/code.rst:85
127127msgid ""
128128"Equivalent to the Python code ``getattr(co, 'co_code')``. Returns a strong "
129129"reference to a :c:type:`PyBytesObject` representing the bytecode in a code "
@@ -132,7 +132,7 @@ msgstr ""
132132"等价于 Python 代码 ``getattr(co, 'co_code')``。 返回一个指向表示代码对象中的字节码的 "
133133":c:type:`PyBytesObject` 的强引用。 当出错时,将返回 ``NULL`` 并引发一个异常。"
134134
135- #: ../../c-api/code.rst:89
135+ #: ../../c-api/code.rst:90
136136msgid ""
137137"This ``PyBytesObject`` may be created on-demand by the interpreter and does "
138138"not necessarily represent the bytecode actually executed by CPython. The "
@@ -141,7 +141,7 @@ msgstr ""
141141"这个 ``PyBytesObject`` 可以由解释器按需创建并且不必代表 CPython 所实际执行的字节码。 "
142142"此函数的主要用途是调试器和性能分析工具。"
143143
144- #: ../../c-api/code.rst:97
144+ #: ../../c-api/code.rst:98
145145msgid ""
146146"Equivalent to the Python code ``getattr(co, 'co_varnames')``. Returns a new "
147147"reference to a :c:type:`PyTupleObject` containing the names of the local "
@@ -150,7 +150,7 @@ msgstr ""
150150"等价于 Python 代码 ``getattr(co, 'co_varnames')``。 返回一个指向包含局部变量名称的 "
151151":c:type:`PyTupleObject` 的新引用。 当出错时,将返回 ``NULL`` 并引发一个异常。"
152152
153- #: ../../c-api/code.rst:106
153+ #: ../../c-api/code.rst:107
154154msgid ""
155155"Equivalent to the Python code ``getattr(co, 'co_cellvars')``. Returns a new "
156156"reference to a :c:type:`PyTupleObject` containing the names of the local "
@@ -160,7 +160,7 @@ msgstr ""
160160"等价于 Python 代码 ``getattr(co, 'co_cellvars')``。 返回一个包含被嵌套的函数所引用的局部变量名称的 "
161161":c:type:`PyTupleObject` 的新引用。 当出错时,将返回 ``NULL`` 并引发一个异常。"
162162
163- #: ../../c-api/code.rst:115
163+ #: ../../c-api/code.rst:116
164164msgid ""
165165"Equivalent to the Python code ``getattr(co, 'co_freevars')``. Returns a new "
166166"reference to a :c:type:`PyTupleObject` containing the names of the free "
0 commit comments