-
-
Notifications
You must be signed in to change notification settings - Fork 91
Expand file tree
/
Copy pathveryhigh.po
More file actions
495 lines (439 loc) · 26.7 KB
/
veryhigh.po
File metadata and controls
495 lines (439 loc) · 26.7 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
# SOME DESCRIPTIVE TITLE.
# Copyright (C) 2001-2023, Python Software Foundation
# This file is distributed under the same license as the Python package.
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
#
# Translators:
# Dai Xu <daixu61@hotmail.com>, 2021
# Freesand Leo <yuqinju@163.com>, 2022
#
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: Python 3.7\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2023-02-24 14:40+0000\n"
"PO-Revision-Date: 2019-09-01 03:39+0000\n"
"Last-Translator: Freesand Leo <yuqinju@163.com>, 2022\n"
"Language-Team: Chinese (China) (https://www.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"
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/c-api/veryhigh.rst:8
msgid "The Very High Level Layer"
msgstr "极高层级"
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/c-api/veryhigh.rst:10
msgid ""
"The functions in this chapter will let you execute Python source code given "
"in a file or a buffer, but they will not let you interact in a more detailed"
" way with the interpreter."
msgstr "本章节的函数将允许你执行在文件或缓冲区中提供的 Python 源代码,但它们将不允许你在更细节化的方式与解释器进行交互。"
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/c-api/veryhigh.rst:14
msgid ""
"Several of these functions accept a start symbol from the grammar as a "
"parameter. The available start symbols are :const:`Py_eval_input`, "
":const:`Py_file_input`, and :const:`Py_single_input`. These are described "
"following the functions which accept them as parameters."
msgstr ""
"这些函数中有几个接受特定的前缀语法符号作为形参。 可用的前缀符号有 :const:`Py_eval_input`, "
":const:`Py_file_input` 以及 :const:`Py_single_input`。 "
"这些符号会在接受它们作为形参的函数文档中加以说明。"
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/c-api/veryhigh.rst:19
msgid ""
"Note also that several of these functions take :c:type:`FILE\\*` parameters."
" One particular issue which needs to be handled carefully is that the "
":c:type:`FILE` structure for different C libraries can be different and "
"incompatible. Under Windows (at least), it is possible for dynamically "
"linked extensions to actually use different libraries, so care should be "
"taken that :c:type:`FILE\\*` parameters are only passed to these functions "
"if it is certain that they were created by the same library that the Python "
"runtime is using."
msgstr ""
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/c-api/veryhigh.rst:30
msgid ""
"The main program for the standard interpreter. This is made available for "
"programs which embed Python. The *argc* and *argv* parameters should be "
"prepared exactly as those which are passed to a C program's :c:func:`main` "
"function (converted to wchar_t according to the user's locale). It is "
"important to note that the argument list may be modified (but the contents "
"of the strings pointed to by the argument list are not). The return value "
"will be ``0`` if the interpreter exits normally (i.e., without an "
"exception), ``1`` if the interpreter exits due to an exception, or ``2`` if "
"the parameter list does not represent a valid Python command line."
msgstr ""
"针对标准解释器的主程序。 嵌入了 Python 的程序将可使用此程序。 所提供的 *argc* 和 *argv* 形参应当与传给 C 程序的 "
":c:func:`main` 函数的形参相同(将根据用户的语言区域转换为)。 "
"一个重要的注意事项是参数列表可能会被修改(但参数列表中字符串所指向的内容不会被修改)。 如果解释器正常退出(即未引发异常)则返回值将为 "
"``0``,如果解释器因引发异常而退出则返回 ``1``,或者如果形参列表不能表示有效的 Python 命令行则返回 ``2``。"
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/c-api/veryhigh.rst:40
msgid ""
"Note that if an otherwise unhandled :exc:`SystemExit` is raised, this "
"function will not return ``1``, but exit the process, as long as "
"``Py_InspectFlag`` is not set."
msgstr ""
"请注意如果引发了一个在其他场合下未处理的 :exc:`SystemExit`,此函数将不会返回 ``1``,而是退出进程,只要 "
"``Py_InspectFlag`` 还未被设置。"
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/c-api/veryhigh.rst:47
msgid ""
"This is a simplified interface to :c:func:`PyRun_AnyFileExFlags` below, "
"leaving *closeit* set to ``0`` and *flags* set to ``NULL``."
msgstr ""
"这是针对下面 :c:func:`PyRun_AnyFileExFlags` 的简化版接口,将 *closeit* 设为 ``0`` 而将 *flags*"
" 设为 ``NULL``。"
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/c-api/veryhigh.rst:53
msgid ""
"This is a simplified interface to :c:func:`PyRun_AnyFileExFlags` below, "
"leaving the *closeit* argument set to ``0``."
msgstr "这是针对下面 :c:func:`PyRun_AnyFileExFlags` 的简化版接口,将 *closeit* 参数设为 ``0``。"
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/c-api/veryhigh.rst:59
msgid ""
"This is a simplified interface to :c:func:`PyRun_AnyFileExFlags` below, "
"leaving the *flags* argument set to ``NULL``."
msgstr "这是针对下面 :c:func:`PyRun_AnyFileExFlags` 的简化版接口,将 *flags* 参数设为 ``NULL``。"
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/c-api/veryhigh.rst:65
msgid ""
"If *fp* refers to a file associated with an interactive device (console or "
"terminal input or Unix pseudo-terminal), return the value of "
":c:func:`PyRun_InteractiveLoop`, otherwise return the result of "
":c:func:`PyRun_SimpleFile`. *filename* is decoded from the filesystem "
"encoding (:func:`sys.getfilesystemencoding`). If *filename* is ``NULL``, "
"this function uses ``\"???\"`` as the filename."
msgstr ""
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/c-api/veryhigh.rst:75
msgid ""
"This is a simplified interface to :c:func:`PyRun_SimpleStringFlags` below, "
"leaving the :c:type:`PyCompilerFlags`\\* argument set to ``NULL``."
msgstr ""
"这是针对下面 :c:func:`PyRun_SimpleStringFlags` 的简化版接口,将 "
":c:type:`PyCompilerFlags`\\* 参数设为 ``NULL``。"
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/c-api/veryhigh.rst:81
msgid ""
"Executes the Python source code from *command* in the :mod:`__main__` module"
" according to the *flags* argument. If :mod:`__main__` does not already "
"exist, it is created. Returns ``0`` on success or ``-1`` if an exception "
"was raised. If there was an error, there is no way to get the exception "
"information. For the meaning of *flags*, see below."
msgstr ""
"根据 *flags* 参数,在 :mod:`__main__` 模块中执行 Python 源代码。 如果 :mod:`__main__` "
"尚不存在,它将被创建。 成功时返回 ``0``,如果引发异常则返回 ``-1``。 如果发生错误,则将无法获得异常信息。 对于 *flags* "
"的含义,请参阅下文。"
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/c-api/veryhigh.rst:87
msgid ""
"Note that if an otherwise unhandled :exc:`SystemExit` is raised, this "
"function will not return ``-1``, but exit the process, as long as "
"``Py_InspectFlag`` is not set."
msgstr ""
"请注意如果引发了一个在其他场合下未处理的 :exc:`SystemExit`,此函数将不会返回 ``-1``,而是退出进程,只要 "
"``Py_InspectFlag`` 还未被设置。"
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/c-api/veryhigh.rst:94
msgid ""
"This is a simplified interface to :c:func:`PyRun_SimpleFileExFlags` below, "
"leaving *closeit* set to ``0`` and *flags* set to ``NULL``."
msgstr ""
"这是针对下面 :c:func:`PyRun_SimpleFileExFlags` 的简化版接口,将 *closeit* 设为 ``0`` 而将 "
"*flags* 设为 ``NULL``。"
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/c-api/veryhigh.rst:100
msgid ""
"This is a simplified interface to :c:func:`PyRun_SimpleFileExFlags` below, "
"leaving *flags* set to ``NULL``."
msgstr ""
"这是针对下面 :c:func:`PyRun_SimpleFileExFlags` 的简化版接口,将 *flags* 设为 ``NULL``。"
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/c-api/veryhigh.rst:106
msgid ""
"Similar to :c:func:`PyRun_SimpleStringFlags`, but the Python source code is "
"read from *fp* instead of an in-memory string. *filename* should be the name"
" of the file, it is decoded from the filesystem encoding "
"(:func:`sys.getfilesystemencoding`). If *closeit* is true, the file is "
"closed before PyRun_SimpleFileExFlags returns."
msgstr ""
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/c-api/veryhigh.rst:113
msgid ""
"On Windows, *fp* should be opened as binary mode (e.g. ``fopen(filename, "
"\"rb\")``. Otherwise, Python may not handle script file with LF line ending "
"correctly."
msgstr ""
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/c-api/veryhigh.rst:119
msgid ""
"This is a simplified interface to :c:func:`PyRun_InteractiveOneFlags` below,"
" leaving *flags* set to ``NULL``."
msgstr ""
"这是针对下面 :c:func:`PyRun_InteractiveOneFlags` 的简化版接口,将 *flags* 设为 ``NULL``。"
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/c-api/veryhigh.rst:125
msgid ""
"Read and execute a single statement from a file associated with an "
"interactive device according to the *flags* argument. The user will be "
"prompted using ``sys.ps1`` and ``sys.ps2``. *filename* is decoded from the "
"filesystem encoding (:func:`sys.getfilesystemencoding`)."
msgstr ""
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/c-api/veryhigh.rst:130
msgid ""
"Returns ``0`` when the input was executed successfully, ``-1`` if there was "
"an exception, or an error code from the :file:`errcode.h` include file "
"distributed as part of Python if there was a parse error. (Note that "
":file:`errcode.h` is not included by :file:`Python.h`, so must be included "
"specifically if needed.)"
msgstr ""
"当输入被成功执行时返回 ``0``,如果引发异常则返回 ``-1``,或者如果存在解析错误则返回来自作为 Python 的组成部分发布的 "
":file:`errcode.h` 包括文件的错误代码。 (请注意 :file:`errcode.h` 并未被 :file:`Python.h` "
"所包括,因此如果需要则必须专门地包括。)"
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/c-api/veryhigh.rst:139
msgid ""
"This is a simplified interface to :c:func:`PyRun_InteractiveLoopFlags` "
"below, leaving *flags* set to ``NULL``."
msgstr ""
"这是针对下面 :c:func:`PyRun_InteractiveLoopFlags` 的简化版接口,将 *flags* 设为 ``NULL``。"
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/c-api/veryhigh.rst:145
msgid ""
"Read and execute statements from a file associated with an interactive "
"device until EOF is reached. The user will be prompted using ``sys.ps1`` "
"and ``sys.ps2``. *filename* is decoded from the filesystem encoding "
"(:func:`sys.getfilesystemencoding`). Returns ``0`` at EOF or a negative "
"number upon failure."
msgstr ""
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/c-api/veryhigh.rst:154
msgid ""
"Can be set to point to a function with the prototype ``int func(void)``. "
"The function will be called when Python's interpreter prompt is about to "
"become idle and wait for user input from the terminal. The return value is "
"ignored. Overriding this hook can be used to integrate the interpreter's "
"prompt with other event loops, as done in the :file:`Modules/_tkinter.c` in "
"the Python source code."
msgstr ""
"可以被设为指向一个原型为 ``int func(void)`` 的函数。 该函数将在Python 的解释器提示符即将空闲并等待用户从终端输入时被调用。 "
"返回值会被忽略。 重载这个钩子可被用来将解释器的提示符集成到其他事件循环中,就像 Python 码中 "
":file:`Modules/_tkinter.c` 所做的那样。"
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/c-api/veryhigh.rst:165
msgid ""
"Can be set to point to a function with the prototype ``char *func(FILE "
"*stdin, FILE *stdout, char *prompt)``, overriding the default function used "
"to read a single line of input at the interpreter's prompt. The function is"
" expected to output the string *prompt* if it's not ``NULL``, and then read "
"a line of input from the provided standard input file, returning the "
"resulting string. For example, The :mod:`readline` module sets this hook to"
" provide line-editing and tab-completion features."
msgstr ""
"可以被设为指向一个原型为 ``char *func(FILE *stdin, FILE *stdout, char *prompt)`` "
"的函数,重载被用来读取解释器提示符的一行输入的默认函数。 该函数被预期为如果字符串 *prompt* 不为 ``NULL`` "
"就输出它,然后从所提供的标准输入文件读取一行输入,并返回结果字符串。 例如,:mod:`readline` 模块将这个钩子设置为提供行编辑和 tab "
"键补全等功能。"
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/c-api/veryhigh.rst:174
msgid ""
"The result must be a string allocated by :c:func:`PyMem_RawMalloc` or "
":c:func:`PyMem_RawRealloc`, or ``NULL`` if an error occurred."
msgstr ""
"结果必须是一个由 :c:func:`PyMem_RawMalloc` 或 :c:func:`PyMem_RawRealloc` "
"分配的字符串,或者如果发生错误则为 ``NULL``。"
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/c-api/veryhigh.rst:177
msgid ""
"The result must be allocated by :c:func:`PyMem_RawMalloc` or "
":c:func:`PyMem_RawRealloc`, instead of being allocated by "
":c:func:`PyMem_Malloc` or :c:func:`PyMem_Realloc`."
msgstr ""
"结果必须由 :c:func:`PyMem_RawMalloc` 或 :c:func:`PyMem_RawRealloc` 分配,而不是由 "
":c:func:`PyMem_Malloc` 或 :c:func:`PyMem_Realloc` 分配。"
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/c-api/veryhigh.rst:185
msgid ""
"This is a simplified interface to "
":c:func:`PyParser_SimpleParseStringFlagsFilename` below, leaving *filename*"
" set to ``NULL`` and *flags* set to ``0``."
msgstr ""
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/c-api/veryhigh.rst:192
msgid ""
"This is a simplified interface to "
":c:func:`PyParser_SimpleParseStringFlagsFilename` below, leaving *filename*"
" set to ``NULL``."
msgstr ""
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/c-api/veryhigh.rst:199
msgid ""
"Parse Python source code from *str* using the start token *start* according "
"to the *flags* argument. The result can be used to create a code object "
"which can be evaluated efficiently. This is useful if a code fragment must "
"be evaluated many times. *filename* is decoded from the filesystem encoding "
"(:func:`sys.getfilesystemencoding`)."
msgstr ""
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/c-api/veryhigh.rst:208
msgid ""
"This is a simplified interface to :c:func:`PyParser_SimpleParseFileFlags` "
"below, leaving *flags* set to ``0``."
msgstr ""
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/c-api/veryhigh.rst:214
msgid ""
"Similar to :c:func:`PyParser_SimpleParseStringFlagsFilename`, but the Python"
" source code is read from *fp* instead of an in-memory string."
msgstr ""
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/c-api/veryhigh.rst:220
msgid ""
"This is a simplified interface to :c:func:`PyRun_StringFlags` below, leaving"
" *flags* set to ``NULL``."
msgstr "这是针对下面 :c:func:`PyRun_StringFlags` 的简化版接口,将 *flags* 设为 ``NULL``。"
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/c-api/veryhigh.rst:226
msgid ""
"Execute Python source code from *str* in the context specified by the "
"objects *globals* and *locals* with the compiler flags specified by *flags*."
" *globals* must be a dictionary; *locals* can be any object that implements"
" the mapping protocol. The parameter *start* specifies the start token that"
" should be used to parse the source code."
msgstr ""
"在由对象 *globals* 和 *locals* 指定的上下文中执行来自 *str* 的 Python 源代码,并使用以 *flags* "
"指定的编译器旗标。 *globals* 必须是一个字典;*locals* 可以是任何实现了映射协议的对象。 形参 *start* "
"指定了应当被用来解析源代码的起始形符。"
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/c-api/veryhigh.rst:232
msgid ""
"Returns the result of executing the code as a Python object, or ``NULL`` if "
"an exception was raised."
msgstr "返回将代码作为 Python 对象执行的结果,或者如果引发了异常则返回 ``NULL``。"
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/c-api/veryhigh.rst:238
msgid ""
"This is a simplified interface to :c:func:`PyRun_FileExFlags` below, leaving"
" *closeit* set to ``0`` and *flags* set to ``NULL``."
msgstr ""
"这是针对下面 :c:func:`PyRun_FileExFlags` 的简化版接口,将 *closeit* 设为 ``0`` 并将 *flags* 设为"
" ``NULL``。"
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/c-api/veryhigh.rst:244
msgid ""
"This is a simplified interface to :c:func:`PyRun_FileExFlags` below, leaving"
" *flags* set to ``NULL``."
msgstr "这是针对下面 :c:func:`PyRun_FileExFlags` 的简化版接口,将 *flags* 设为 ``NULL``。"
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/c-api/veryhigh.rst:250
msgid ""
"This is a simplified interface to :c:func:`PyRun_FileExFlags` below, leaving"
" *closeit* set to ``0``."
msgstr "这是针对下面 :c:func:`PyRun_FileExFlags` 的简化版接口,将 *closeit* 设为 ``0``。"
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/c-api/veryhigh.rst:256
msgid ""
"Similar to :c:func:`PyRun_StringFlags`, but the Python source code is read "
"from *fp* instead of an in-memory string. *filename* should be the name of "
"the file, it is decoded from the filesystem encoding "
"(:func:`sys.getfilesystemencoding`). If *closeit* is true, the file is "
"closed before :c:func:`PyRun_FileExFlags` returns."
msgstr ""
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/c-api/veryhigh.rst:265
msgid ""
"This is a simplified interface to :c:func:`Py_CompileStringFlags` below, "
"leaving *flags* set to ``NULL``."
msgstr "这是针对下面 :c:func:`Py_CompileStringFlags` 的简化版接口,将 *flags* 设为 ``NULL``。"
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/c-api/veryhigh.rst:271
msgid ""
"This is a simplified interface to :c:func:`Py_CompileStringExFlags` below, "
"with *optimize* set to ``-1``."
msgstr ""
"这是针对下面 :c:func:`Py_CompileStringExFlags` 的简化版接口,将 *optimize* 设为 ``-1``。"
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/c-api/veryhigh.rst:277
msgid ""
"Parse and compile the Python source code in *str*, returning the resulting "
"code object. The start token is given by *start*; this can be used to "
"constrain the code which can be compiled and should be "
":const:`Py_eval_input`, :const:`Py_file_input`, or :const:`Py_single_input`."
" The filename specified by *filename* is used to construct the code object "
"and may appear in tracebacks or :exc:`SyntaxError` exception messages. This"
" returns ``NULL`` if the code cannot be parsed or compiled."
msgstr ""
"解析并编译 *str* 中的 Python 源代码,返回结果代码对象。 开始形符由 *start* 给出;这可被用来限制可被编译的代码并且应为 "
":const:`Py_eval_input`, :const:`Py_file_input` 或 :const:`Py_single_input`。 由"
" *filename* 指定的文件名会被用来构造代码对象并可能出现在回溯信息或 :exc:`SyntaxError` 异常消息中。 "
"如果代码无法被解析或编译则此函数将返回 ``NULL``。"
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/c-api/veryhigh.rst:285
msgid ""
"The integer *optimize* specifies the optimization level of the compiler; a "
"value of ``-1`` selects the optimization level of the interpreter as given "
"by :option:`-O` options. Explicit levels are ``0`` (no optimization; "
"``__debug__`` is true), ``1`` (asserts are removed, ``__debug__`` is false) "
"or ``2`` (docstrings are removed too)."
msgstr ""
"整数 *optimize* 指定编译器的优化级别;值 ``-1`` 将选择与 :option:`-O` 选项相同的解释器优化级别。 显式级别为 "
"``0`` (无优化;``__debug__`` 为真值)、``1`` (断言被移除,``__debug__`` 为假值) 或 ``2`` "
"(文档字符串也被移除)。"
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/c-api/veryhigh.rst:296
msgid ""
"Like :c:func:`Py_CompileStringObject`, but *filename* is a byte string "
"decoded from the filesystem encoding (:func:`os.fsdecode`)."
msgstr ""
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/c-api/veryhigh.rst:303
msgid ""
"This is a simplified interface to :c:func:`PyEval_EvalCodeEx`, with just the"
" code object, and global and local variables. The other arguments are set "
"to ``NULL``."
msgstr ""
"这是针对 :c:func:`PyEval_EvalCodeEx` 的简化版接口,只附带代码对象,以及全局和局部变量。 其他参数均设为 ``NULL``。"
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/c-api/veryhigh.rst:310
msgid ""
"Evaluate a precompiled code object, given a particular environment for its "
"evaluation. This environment consists of a dictionary of global variables, "
"a mapping object of local variables, arrays of arguments, keywords and "
"defaults, a dictionary of default values for :ref:`keyword-only <keyword-"
"only_parameter>` arguments and a closure tuple of cells."
msgstr ""
"对一个预编译的代码对象求值,为其求值给出特定的环境。 此环境由全局变量的字典,局部变量映射对象,参数、关键字和默认值的数组,:ref:`仅限关键字 "
"<keyword-only_parameter>` 参数的默认值的字典和单元的封闭元组构成。"
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/c-api/veryhigh.rst:319
msgid ""
"The C structure of the objects used to describe frame objects. The fields of"
" this type are subject to change at any time."
msgstr "用于描述帧对象的 C 对象结构体。 此类型的字段可能在任何时候被改变。"
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/c-api/veryhigh.rst:325
msgid ""
"Evaluate an execution frame. This is a simplified interface to "
":c:func:`PyEval_EvalFrameEx`, for backward compatibility."
msgstr "对一个执行帧求值。 这是针对 :c:func:`PyEval_EvalFrameEx` 的简化版接口,用于保持向下兼容性。"
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/c-api/veryhigh.rst:331
msgid ""
"This is the main, unvarnished function of Python interpretation. It is "
"literally 2000 lines long. The code object associated with the execution "
"frame *f* is executed, interpreting bytecode and executing calls as needed. "
"The additional *throwflag* parameter can mostly be ignored - if true, then "
"it causes an exception to immediately be thrown; this is used for the "
":meth:`~generator.throw` methods of generator objects."
msgstr ""
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/c-api/veryhigh.rst:338
msgid ""
"This function now includes a debug assertion to help ensure that it does not"
" silently discard an active exception."
msgstr "该函数现在包含一个调试断言,用以确保不会静默地丢弃活动的异常。"
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/c-api/veryhigh.rst:345
msgid ""
"This function changes the flags of the current evaluation frame, and returns"
" true on success, false on failure."
msgstr "此函数会修改当前求值帧的旗标,并在成功时返回真值,失败时返回假值。"
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/c-api/veryhigh.rst:353
msgid ""
"The start symbol from the Python grammar for isolated expressions; for use "
"with :c:func:`Py_CompileString`."
msgstr "Python 语法中用于孤立表达式的开始符号;应当与 :c:func:`Py_CompileString` 一起使用。"
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/c-api/veryhigh.rst:361
msgid ""
"The start symbol from the Python grammar for sequences of statements as read"
" from a file or other source; for use with :c:func:`Py_CompileString`. This"
" is the symbol to use when compiling arbitrarily long Python source code."
msgstr ""
"Python 语法中用于从文件或其他源读取语句序列的起始符号;配合 :c:func:`Py_CompileString` 使用。 这是在编译任意长的 "
"Python 源代码时要使用的符号。"
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/c-api/veryhigh.rst:370
msgid ""
"The start symbol from the Python grammar for a single statement; for use "
"with :c:func:`Py_CompileString`. This is the symbol used for the interactive"
" interpreter loop."
msgstr ""
"Python 语法中用于单独语句的起始符号;配合 :c:func:`Py_CompileString` 使用。 这是用于交互式解释器循环的符号。"
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/c-api/veryhigh.rst:377
msgid ""
"This is the structure used to hold compiler flags. In cases where code is "
"only being compiled, it is passed as ``int flags``, and in cases where code "
"is being executed, it is passed as ``PyCompilerFlags *flags``. In this "
"case, ``from __future__ import`` can modify *flags*."
msgstr ""
"这是用来存放编译器旗标的结构体。 对于代码仅被编译的情况,它将作为 ``int flags`` 传入,而对于代码要被执行的情况,它将作为 "
"``PyCompilerFlags *flags`` 传入。 在这种情况下,``from __future__ import`` 可以修改 "
"*flags*。"
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/c-api/veryhigh.rst:382
msgid ""
"Whenever ``PyCompilerFlags *flags`` is ``NULL``, :attr:`cf_flags` is treated"
" as equal to ``0``, and any modification due to ``from __future__ import`` "
"is discarded. ::"
msgstr ""
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/c-api/veryhigh.rst:393
msgid ""
"This bit can be set in *flags* to cause division operator ``/`` to be "
"interpreted as \"true division\" according to :pep:`238`."
msgstr "这个标志位可在 *flags* 中设置以使得除法运算符 ``/`` 被解读为 :pep:`238` 所规定的“真除法”。"