7
7
msgstr ""
8
8
"Project-Id-Version : Python 3.12\n "
9
9
"Report-Msgid-Bugs-To : \n "
10
- "POT-Creation-Date : 2023-07-30 00:03+0000\n "
10
+ "POT-Creation-Date : 2024-02-10 00:03+0000\n "
11
11
"PO-Revision-Date : 2015-12-09 17:51+0000\n "
12
12
"
Last-Translator :
Liang-Bo Wang <[email protected] >\n "
13
13
"Language-Team : Chinese - TAIWAN (https://github.com/python/python-docs-zh- "
@@ -37,181 +37,181 @@ msgstr ""
37
37
38
38
#: ../../c-api/code.rst:24
39
39
msgid ""
40
- "This is an instance of :c:type:`PyTypeObject` representing the Python :class :"
41
- "`code` type ."
40
+ "This is an instance of :c:type:`PyTypeObject` representing the Python :ref :"
41
+ "`code object <code-objects>` ."
42
42
msgstr ""
43
43
44
44
#: ../../c-api/code.rst:30
45
45
msgid ""
46
- "Return true if *co* is a :class :`code` object. This function always "
47
- "succeeds."
46
+ "Return true if *co* is a :ref :`code object <code-objects>`. This function "
47
+ "always succeeds."
48
48
msgstr ""
49
49
50
- #: ../../c-api/code.rst:34
50
+ #: ../../c-api/code.rst:35
51
51
msgid "Return the number of free variables in *co*."
52
52
msgstr ""
53
53
54
- #: ../../c-api/code.rst:38
54
+ #: ../../c-api/code.rst:39
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."
58
58
msgstr ""
59
59
60
- #: ../../c-api/code.rst:41
60
+ #: ../../c-api/code.rst:42
61
61
msgid ""
62
62
"Since the definition of the bytecode changes often, calling :c:func:"
63
63
"`PyUnstable_Code_New` directly can bind you to a precise Python version."
64
64
msgstr ""
65
65
66
- #: ../../c-api/code.rst:44
66
+ #: ../../c-api/code.rst:45
67
67
msgid ""
68
68
"The many arguments of this function are inter-dependent in complex ways, "
69
69
"meaning that subtle changes to values are likely to result in incorrect "
70
70
"execution or VM crashes. Use this function only with extreme care."
71
71
msgstr ""
72
72
73
- #: ../../c-api/code.rst:48
73
+ #: ../../c-api/code.rst:49
74
74
msgid "Added ``qualname`` and ``exceptiontable`` parameters."
75
75
msgstr "新增 ``qualname`` 和 ``exceptiontable`` 參數。"
76
76
77
- #: ../../c-api/code.rst:55
77
+ #: ../../c-api/code.rst:56
78
78
msgid ""
79
79
"Renamed from ``PyCode_New`` as part of :ref:`unstable-c-api`. The old name "
80
80
"is deprecated, but will remain available until the signature changes again."
81
81
msgstr ""
82
82
83
- #: ../../c-api/code.rst:61
83
+ #: ../../c-api/code.rst:62
84
84
msgid ""
85
85
"Similar to :c:func:`PyUnstable_Code_New`, but with an extra "
86
86
"\" posonlyargcount\" for positional-only arguments. The same caveats that "
87
87
"apply to ``PyUnstable_Code_New`` also apply to this function."
88
88
msgstr ""
89
89
90
- #: ../../c-api/code.rst:66
90
+ #: ../../c-api/code.rst:67
91
91
msgid "as ``PyCode_NewWithPosOnlyArgs``"
92
92
msgstr ""
93
93
94
- #: ../../c-api/code.rst:68
94
+ #: ../../c-api/code.rst:69
95
95
msgid "Added ``qualname`` and ``exceptiontable`` parameters."
96
96
msgstr "新增 ``qualname`` 和 ``exceptiontable`` 參數。"
97
97
98
- #: ../../c-api/code.rst:73
98
+ #: ../../c-api/code.rst:74
99
99
msgid ""
100
100
"Renamed to ``PyUnstable_Code_NewWithPosOnlyArgs``. The old name is "
101
101
"deprecated, but will remain available until the signature changes again."
102
102
msgstr ""
103
103
104
- #: ../../c-api/code.rst:79
104
+ #: ../../c-api/code.rst:80
105
105
msgid ""
106
106
"Return a new empty code object with the specified filename, function name, "
107
107
"and first line number. The resulting code object will raise an ``Exception`` "
108
108
"if executed."
109
109
msgstr ""
110
110
111
- #: ../../c-api/code.rst:85
111
+ #: ../../c-api/code.rst:86
112
112
msgid ""
113
113
"Return the line number of the instruction that occurs on or before "
114
114
"``byte_offset`` and ends after it. If you just need the line number of a "
115
115
"frame, use :c:func:`PyFrame_GetLineNumber` instead."
116
116
msgstr ""
117
117
118
- #: ../../c-api/code.rst:88
118
+ #: ../../c-api/code.rst:89
119
119
msgid ""
120
120
"For efficiently iterating over the line numbers in a code object, use `the "
121
121
"API described in PEP 626 <https://peps.python.org/pep-0626/#out-of-process-"
122
122
"debuggers-and-profilers>`_."
123
123
msgstr ""
124
124
125
- #: ../../c-api/code.rst:93
125
+ #: ../../c-api/code.rst:94
126
126
msgid ""
127
127
"Sets the passed ``int`` pointers to the source code line and column numbers "
128
128
"for the instruction at ``byte_offset``. Sets the value to ``0`` when "
129
129
"information is not available for any particular element."
130
130
msgstr ""
131
131
132
- #: ../../c-api/code.rst:97
132
+ #: ../../c-api/code.rst:98
133
133
msgid "Returns ``1`` if the function succeeds and 0 otherwise."
134
134
msgstr ""
135
135
136
- #: ../../c-api/code.rst:103
136
+ #: ../../c-api/code.rst:104
137
137
msgid ""
138
138
"Equivalent to the Python code ``getattr(co, 'co_code')``. Returns a strong "
139
139
"reference to a :c:type:`PyBytesObject` representing the bytecode in a code "
140
140
"object. On error, ``NULL`` is returned and an exception is raised."
141
141
msgstr ""
142
142
143
- #: ../../c-api/code.rst:108
143
+ #: ../../c-api/code.rst:109
144
144
msgid ""
145
145
"This ``PyBytesObject`` may be created on-demand by the interpreter and does "
146
146
"not necessarily represent the bytecode actually executed by CPython. The "
147
147
"primary use case for this function is debuggers and profilers."
148
148
msgstr ""
149
149
150
- #: ../../c-api/code.rst:116
150
+ #: ../../c-api/code.rst:117
151
151
msgid ""
152
152
"Equivalent to the Python code ``getattr(co, 'co_varnames')``. Returns a new "
153
153
"reference to a :c:type:`PyTupleObject` containing the names of the local "
154
154
"variables. On error, ``NULL`` is returned and an exception is raised."
155
155
msgstr ""
156
156
157
- #: ../../c-api/code.rst:125
157
+ #: ../../c-api/code.rst:126
158
158
msgid ""
159
159
"Equivalent to the Python code ``getattr(co, 'co_cellvars')``. Returns a new "
160
160
"reference to a :c:type:`PyTupleObject` containing the names of the local "
161
161
"variables that are referenced by nested functions. On error, ``NULL`` is "
162
162
"returned and an exception is raised."
163
163
msgstr ""
164
164
165
- #: ../../c-api/code.rst:134
165
+ #: ../../c-api/code.rst:135
166
166
msgid ""
167
167
"Equivalent to the Python code ``getattr(co, 'co_freevars')``. Returns a new "
168
168
"reference to a :c:type:`PyTupleObject` containing the names of the free "
169
169
"variables. On error, ``NULL`` is returned and an exception is raised."
170
170
msgstr ""
171
171
172
- #: ../../c-api/code.rst:142
172
+ #: ../../c-api/code.rst:143
173
173
msgid ""
174
174
"Register *callback* as a code object watcher for the current interpreter. "
175
175
"Return an ID which may be passed to :c:func:`PyCode_ClearWatcher`. In case "
176
176
"of error (e.g. no more watcher IDs available), return ``-1`` and set an "
177
177
"exception."
178
178
msgstr ""
179
179
180
- #: ../../c-api/code.rst:151
180
+ #: ../../c-api/code.rst:152
181
181
msgid ""
182
182
"Clear watcher identified by *watcher_id* previously returned from :c:func:"
183
183
"`PyCode_AddWatcher` for the current interpreter. Return ``0`` on success, or "
184
184
"``-1`` and set an exception on error (e.g. if the given *watcher_id* was "
185
185
"never registered.)"
186
186
msgstr ""
187
187
188
- #: ../../c-api/code.rst:160
188
+ #: ../../c-api/code.rst:161
189
189
msgid ""
190
190
"Enumeration of possible code object watcher events: - "
191
191
"``PY_CODE_EVENT_CREATE`` - ``PY_CODE_EVENT_DESTROY``"
192
192
msgstr ""
193
193
194
- #: ../../c-api/code.rst:168
194
+ #: ../../c-api/code.rst:169
195
195
msgid "Type of a code object watcher callback function."
196
196
msgstr ""
197
197
198
- #: ../../c-api/code.rst:170
198
+ #: ../../c-api/code.rst:171
199
199
msgid ""
200
200
"If *event* is ``PY_CODE_EVENT_CREATE``, then the callback is invoked after "
201
201
"`co` has been fully initialized. Otherwise, the callback is invoked before "
202
202
"the destruction of *co* takes place, so the prior state of *co* can be "
203
203
"inspected."
204
204
msgstr ""
205
205
206
- #: ../../c-api/code.rst:175
206
+ #: ../../c-api/code.rst:176
207
207
msgid ""
208
208
"If *event* is ``PY_CODE_EVENT_DESTROY``, taking a reference in the callback "
209
209
"to the about-to-be-destroyed code object will resurrect it and prevent it "
210
210
"from being freed at this time. When the resurrected object is destroyed "
211
211
"later, any watcher callbacks active at that time will be called again."
212
212
msgstr ""
213
213
214
- #: ../../c-api/code.rst:180
214
+ #: ../../c-api/code.rst:181
215
215
msgid ""
216
216
"Users of this API should not rely on internal runtime implementation "
217
217
"details. Such details may include, but are not limited to, the exact order "
@@ -221,14 +221,14 @@ msgid ""
221
221
"the Python code being executed."
222
222
msgstr ""
223
223
224
- #: ../../c-api/code.rst:187
224
+ #: ../../c-api/code.rst:188
225
225
msgid ""
226
226
"If the callback sets an exception, it must return ``-1``; this exception "
227
227
"will be printed as an unraisable exception using :c:func:"
228
228
"`PyErr_WriteUnraisable`. Otherwise it should return ``0``."
229
229
msgstr ""
230
230
231
- #: ../../c-api/code.rst:191
231
+ #: ../../c-api/code.rst:192
232
232
msgid ""
233
233
"There may already be a pending exception set on entry to the callback. In "
234
234
"this case, the callback should return ``0`` with the same exception still "
@@ -237,85 +237,85 @@ msgid ""
237
237
"it before returning."
238
238
msgstr ""
239
239
240
- #: ../../c-api/code.rst:201
240
+ #: ../../c-api/code.rst:202
241
241
msgid "Extra information"
242
242
msgstr ""
243
243
244
- #: ../../c-api/code.rst:203
244
+ #: ../../c-api/code.rst:204
245
245
msgid ""
246
246
"To support low-level extensions to frame evaluation, such as external just-"
247
247
"in-time compilers, it is possible to attach arbitrary extra data to code "
248
248
"objects."
249
249
msgstr ""
250
250
251
- #: ../../c-api/code.rst:207
251
+ #: ../../c-api/code.rst:208
252
252
msgid ""
253
253
"These functions are part of the unstable C API tier: this functionality is a "
254
254
"CPython implementation detail, and the API may change without deprecation "
255
255
"warnings."
256
256
msgstr ""
257
257
258
- #: ../../c-api/code.rst:213
258
+ #: ../../c-api/code.rst:214
259
259
msgid "Return a new an opaque index value used to adding data to code objects."
260
260
msgstr ""
261
261
262
- #: ../../c-api/code.rst:215
262
+ #: ../../c-api/code.rst:216
263
263
msgid ""
264
264
"You generally call this function once (per interpreter) and use the result "
265
265
"with ``PyCode_GetExtra`` and ``PyCode_SetExtra`` to manipulate data on "
266
266
"individual code objects."
267
267
msgstr ""
268
268
269
- #: ../../c-api/code.rst:219
269
+ #: ../../c-api/code.rst:220
270
270
msgid ""
271
271
"If *free* is not ``NULL``: when a code object is deallocated, *free* will be "
272
272
"called on non-``NULL`` data stored under the new index. Use :c:func:"
273
273
"`Py_DecRef` when storing :c:type:`PyObject`."
274
274
msgstr ""
275
275
276
- #: ../../c-api/code.rst:225
276
+ #: ../../c-api/code.rst:226
277
277
msgid "as ``_PyEval_RequestCodeExtraIndex``"
278
278
msgstr ""
279
279
280
- #: ../../c-api/code.rst:229
280
+ #: ../../c-api/code.rst:230
281
281
msgid ""
282
282
"Renamed to ``PyUnstable_Eval_RequestCodeExtraIndex``. The old private name "
283
283
"is deprecated, but will be available until the API changes."
284
284
msgstr ""
285
285
286
- #: ../../c-api/code.rst:235
286
+ #: ../../c-api/code.rst:236
287
287
msgid ""
288
288
"Set *extra* to the extra data stored under the given index. Return 0 on "
289
289
"success. Set an exception and return -1 on failure."
290
290
msgstr ""
291
291
292
- #: ../../c-api/code.rst:238
292
+ #: ../../c-api/code.rst:239
293
293
msgid ""
294
294
"If no data was set under the index, set *extra* to ``NULL`` and return 0 "
295
295
"without setting an exception."
296
296
msgstr ""
297
297
298
- #: ../../c-api/code.rst:243
298
+ #: ../../c-api/code.rst:244
299
299
msgid "as ``_PyCode_GetExtra``"
300
300
msgstr ""
301
301
302
- #: ../../c-api/code.rst:247
302
+ #: ../../c-api/code.rst:248
303
303
msgid ""
304
304
"Renamed to ``PyUnstable_Code_GetExtra``. The old private name is deprecated, "
305
305
"but will be available until the API changes."
306
306
msgstr ""
307
307
308
- #: ../../c-api/code.rst:253
308
+ #: ../../c-api/code.rst:254
309
309
msgid ""
310
310
"Set the extra data stored under the given index to *extra*. Return 0 on "
311
311
"success. Set an exception and return -1 on failure."
312
312
msgstr ""
313
313
314
- #: ../../c-api/code.rst:258
314
+ #: ../../c-api/code.rst:259
315
315
msgid "as ``_PyCode_SetExtra``"
316
316
msgstr ""
317
317
318
- #: ../../c-api/code.rst:262
318
+ #: ../../c-api/code.rst:263
319
319
msgid ""
320
320
"Renamed to ``PyUnstable_Code_SetExtra``. The old private name is deprecated, "
321
321
"but will be available until the API changes."
@@ -333,22 +333,22 @@ msgstr "code(程式碼)"
333
333
msgid "code object"
334
334
msgstr "code object(程式碼物件)"
335
335
336
- #: ../../c-api/code.rst:51
336
+ #: ../../c-api/code.rst:52
337
337
msgid "PyCode_New"
338
338
msgstr "PyCode_New"
339
339
340
- #: ../../c-api/code.rst:64
340
+ #: ../../c-api/code.rst:65
341
341
msgid "PyCode_NewWithPosOnlyArgs"
342
342
msgstr "PyCode_NewWithPosOnlyArgs"
343
343
344
- #: ../../c-api/code.rst:223
344
+ #: ../../c-api/code.rst:224
345
345
msgid "_PyEval_RequestCodeExtraIndex"
346
346
msgstr "_PyEval_RequestCodeExtraIndex"
347
347
348
- #: ../../c-api/code.rst:241
348
+ #: ../../c-api/code.rst:242
349
349
msgid "_PyCode_GetExtra"
350
350
msgstr "_PyCode_GetExtra"
351
351
352
- #: ../../c-api/code.rst:256
352
+ #: ../../c-api/code.rst:257
353
353
msgid "_PyCode_SetExtra"
354
354
msgstr "_PyCode_SetExtra"
0 commit comments