|
7 | 7 | msgstr ""
|
8 | 8 | "Project-Id-Version: Python 3.11\n"
|
9 | 9 | "Report-Msgid-Bugs-To: \n"
|
10 |
| -"POT-Creation-Date: 2021-10-26 16:47+0000\n" |
| 10 | +"POT-Creation-Date: 2022-10-15 20:43+0000\n" |
11 | 11 | "PO-Revision-Date: 2015-12-09 17:51+0000\n"
|
12 | 12 | "Last-Translator: Liang-Bo Wang <me@liang2.tw>\n"
|
13 | 13 | "Language-Team: Chinese - TAIWAN (https://github.com/python/python-docs-zh-"
|
@@ -55,33 +55,88 @@ msgstr ""
|
55 | 55 | msgid ""
|
56 | 56 | "Return a new code object. If you need a dummy code object to create a "
|
57 | 57 | "frame, use :c:func:`PyCode_NewEmpty` instead. Calling :c:func:`PyCode_New` "
|
58 |
| -"directly can bind you to a precise Python version since the definition of " |
59 |
| -"the bytecode changes often." |
| 58 | +"directly will bind you to a precise Python version since the definition of " |
| 59 | +"the bytecode changes often. The many arguments of this function are inter-" |
| 60 | +"dependent in complex ways, meaning that subtle changes to values are likely " |
| 61 | +"to result in incorrect execution or VM crashes. Use this function only with " |
| 62 | +"extreme care." |
60 | 63 | msgstr ""
|
61 | 64 |
|
62 |
| -#: ../../c-api/code.rst:45 |
| 65 | +#: ../../c-api/code.rst:45 ../../c-api/code.rst:55 |
| 66 | +msgid "Added ``exceptiontable`` parameter." |
| 67 | +msgstr "" |
| 68 | + |
| 69 | +#: ../../c-api/code.rst:50 |
63 | 70 | msgid ""
|
64 | 71 | "Similar to :c:func:`PyCode_New`, but with an extra \"posonlyargcount\" for "
|
65 |
| -"positional-only arguments." |
| 72 | +"positional-only arguments. The same caveats that apply to ``PyCode_New`` " |
| 73 | +"also apply to this function." |
66 | 74 | msgstr ""
|
67 | 75 |
|
68 |
| -#: ../../c-api/code.rst:51 |
| 76 | +#: ../../c-api/code.rst:60 |
69 | 77 | msgid ""
|
70 | 78 | "Return a new empty code object with the specified filename, function name, "
|
71 |
| -"and first line number. It is illegal to :func:`exec` or :func:`eval` the " |
72 |
| -"resulting code object." |
| 79 | +"and first line number. The resulting code object will raise an ``Exception`` " |
| 80 | +"if executed." |
73 | 81 | msgstr ""
|
74 | 82 |
|
75 |
| -#: ../../c-api/code.rst:57 |
| 83 | +#: ../../c-api/code.rst:66 |
76 | 84 | msgid ""
|
77 | 85 | "Return the line number of the instruction that occurs on or before "
|
78 | 86 | "``byte_offset`` and ends after it. If you just need the line number of a "
|
79 | 87 | "frame, use :c:func:`PyFrame_GetLineNumber` instead."
|
80 | 88 | msgstr ""
|
81 | 89 |
|
82 |
| -#: ../../c-api/code.rst:60 |
| 90 | +#: ../../c-api/code.rst:69 |
83 | 91 | msgid ""
|
84 | 92 | "For efficiently iterating over the line numbers in a code object, use `the "
|
85 |
| -"API described in PEP 626 <https://www.python.org/dev/peps/pep-0626/#out-of-" |
86 |
| -"process-debuggers-and-profilers>`_." |
| 93 | +"API described in PEP 626 <https://peps.python.org/pep-0626/#out-of-process-" |
| 94 | +"debuggers-and-profilers>`_." |
| 95 | +msgstr "" |
| 96 | + |
| 97 | +#: ../../c-api/code.rst:74 |
| 98 | +msgid "" |
| 99 | +"Sets the passed ``int`` pointers to the source code line and column numbers " |
| 100 | +"for the instruction at ``byte_offset``. Sets the value to ``0`` when " |
| 101 | +"information is not available for any particular element." |
| 102 | +msgstr "" |
| 103 | + |
| 104 | +#: ../../c-api/code.rst:78 |
| 105 | +msgid "Returns ``1`` if the function succeeds and 0 otherwise." |
| 106 | +msgstr "" |
| 107 | + |
| 108 | +#: ../../c-api/code.rst:82 |
| 109 | +msgid "" |
| 110 | +"Equivalent to the Python code ``getattr(co, 'co_code')``. Returns a strong " |
| 111 | +"reference to a :c:type:`PyBytesObject` representing the bytecode in a code " |
| 112 | +"object. On error, ``NULL`` is returned and an exception is raised." |
| 113 | +msgstr "" |
| 114 | + |
| 115 | +#: ../../c-api/code.rst:87 |
| 116 | +msgid "" |
| 117 | +"This ``PyBytesObject`` may be created on-demand by the interpreter and does " |
| 118 | +"not necessarily represent the bytecode actually executed by CPython. The " |
| 119 | +"primary use case for this function is debuggers and profilers." |
| 120 | +msgstr "" |
| 121 | + |
| 122 | +#: ../../c-api/code.rst:95 |
| 123 | +msgid "" |
| 124 | +"Equivalent to the Python code ``getattr(co, 'co_varnames')``. Returns a new " |
| 125 | +"reference to a :c:type:`PyTupleObject` containing the names of the local " |
| 126 | +"variables. On error, ``NULL`` is returned and an exception is raised." |
| 127 | +msgstr "" |
| 128 | + |
| 129 | +#: ../../c-api/code.rst:104 |
| 130 | +msgid "" |
| 131 | +"Equivalent to the Python code ``getattr(co, 'co_cellvars')``. Returns a new " |
| 132 | +"reference to a :c:type:`PyTupleObject` containing the names of the local " |
| 133 | +"variables that are referenced by nested functions. On error, ``NULL`` is " |
| 134 | +"returned and an exception is raised." |
| 135 | +msgstr "" |
| 136 | + |
| 137 | +#: ../../c-api/code.rst:113 |
| 138 | +msgid "" |
| 139 | +"Equivalent to the Python code ``getattr(co, 'co_freevars')``. Returns a new " |
| 140 | +"reference to a :c:type:`PyTupleObject` containing the names of the free " |
| 141 | +"variables. On error, ``NULL`` is returned and an exception is raised." |
87 | 142 | msgstr ""
|
0 commit comments