# SOME DESCRIPTIVE TITLE. # Copyright (C) 2001-2022, Python Software Foundation # This file is distributed under the same license as the Python package. # # Translators: msgid "" msgstr "" "Project-Id-Version: Python 3.10\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2021-10-26 16:47+0000\n" "PO-Revision-Date: 2015-12-09 17:51+0000\n" "Last-Translator: Liang-Bo Wang \n" "Language-Team: Chinese - TAIWAN (https://github.com/python/python-docs-zh-" "tw)\n" "Language: zh_TW\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\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 "" #: ../../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-api/code.rst:24 msgid "" "This is an instance of :c:type:`PyTypeObject` representing the Python :class:" "`code` type." msgstr "" #: ../../c-api/code.rst:30 msgid "" "Return true if *co* is a :class:`code` object. This function always " "succeeds." msgstr "" #: ../../c-api/code.rst:34 msgid "Return the number of free variables in *co*." msgstr "" #: ../../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-api/code.rst:45 msgid "" "Similar to :c:func:`PyCode_New`, but with an extra \"posonlyargcount\" for " "positional-only arguments." msgstr "" #: ../../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 "" #: ../../c-api/code.rst:57 msgid "" "Return the line number of the instruction that occurs on or before " "``byte_offset`` and ends after it. If you just need the line number of a " "frame, use :c:func:`PyFrame_GetLineNumber` instead." msgstr "" #: ../../c-api/code.rst:60 msgid "" "For efficiently iterating over the line numbers in a code object, use `the " "API described in PEP 626 `_." msgstr ""