# SOME DESCRIPTIVE TITLE. # Copyright (C) 2001-2025, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # # Translators: # python-doc bot, 2025 # #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.9\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2025-01-03 16:35+0000\n" "PO-Revision-Date: 2025-09-22 17:54+0000\n" "Last-Translator: python-doc bot, 2025\n" "Language-Team: Chinese (China) (https://app.transifex.com/python-doc/teams/5390/zh_CN/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Language: zh_CN\n" "Plural-Forms: nplurals=1; plural=0;\n" #: ../../c-api/code.rst:8 msgid "Code Objects" msgstr "代码对象" #: ../../c-api/code.rst:12 msgid "" "Code objects are a low-level detail of the CPython implementation. Each one " "represents a chunk of executable code that hasn't yet been bound into a " "function." msgstr "代码对象是 CPython 实现的低层级细节。 每个代表一块尚未绑定到函数中的可执行代码。" #: ../../c-api/code.rst:18 msgid "" "The C structure of the objects used to describe code objects. The fields of" " this type are subject to change at any time." msgstr "用于描述代码对象的对象的 C 结构。 此类型字段可随时更改。" #: ../../c-api/code.rst:24 msgid "" "This is an instance of :c:type:`PyTypeObject` representing the Python " ":class:`code` type." msgstr "这是一个 :c:type:`PyTypeObject` 实例,其表示Python的 :class:`code` 类型。" #: ../../c-api/code.rst:30 msgid "" "Return true if *co* is a :class:`code` object. This function always " "succeeds." msgstr "如果 *co* 是一个 :class:`code` 对象则返回真值。 此函数总是会成功执行。" #: ../../c-api/code.rst:34 msgid "Return the number of free variables in *co*." msgstr "返回 *co* 中的自由变量数。" #: ../../c-api/code.rst:38 msgid "" "Return a new code object. If you need a dummy code object to create a " "frame, use :c:func:`PyCode_NewEmpty` instead. Calling :c:func:`PyCode_New` " "directly can bind you to a precise Python version since the definition of " "the bytecode changes often." msgstr "" "返回一个新的代码对象。 如果你需要一个虚拟代码对象来创建一个代码帧,请使用 :c:func:`PyCode_NewEmpty`。 调用 " ":c:func:`PyCode_New` 直接可以绑定到准确的 Python 版本,因为字节码的定义经常变化。" #: ../../c-api/code.rst:45 msgid "" "Similar to :c:func:`PyCode_New`, but with an extra \"posonlyargcount\" for " "positional-only arguments." msgstr "类似于 :c:func:`PyCode_New`,但带有一个额外的 \"posonlyargcount\" 用于仅限位置参数。" #: ../../c-api/code.rst:51 msgid "" "Return a new empty code object with the specified filename, function name, " "and first line number. It is illegal to :func:`exec` or :func:`eval` the " "resulting code object." msgstr "" "返回具有指定文件名、函数名和第一行号的新空代码对象。 对于 :func:`exec` 或 :func:`eval` 生成的代码对象是非法的。"