Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 44c44e1

Browse files
[po] auto sync
1 parent e76089f commit 44c44e1

1 file changed

Lines changed: 23 additions & 4 deletions

File tree

c-api/sys.po

Lines changed: 23 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -326,25 +326,30 @@ msgid ""
326326
"thread's :mod:`sys` module's dict, which is contained in the internal thread"
327327
" state structure."
328328
msgstr ""
329+
"这些是使来自 :mod:`sys` 模块的功能可以让 C 代码访问的工具函数。 它们都可用于当前解释器线程的 :mod:`sys` "
330+
"模块的字典,该字典包含在内部线程状态结构体中。"
329331

330332
#: ../../c-api/sys.rst:224
331333
msgid ""
332334
"Return the object *name* from the :mod:`sys` module or ``NULL`` if it does "
333335
"not exist, without setting an exception."
334-
msgstr ""
336+
msgstr "返回来自 :mod:`sys` 模块的对象 *name* 或者如果它不存在则返回 ``NULL``,并且不会设置异常。"
335337

336338
#: ../../c-api/sys.rst:229
337339
msgid ""
338340
"Set *name* in the :mod:`sys` module to *v* unless *v* is ``NULL``, in which "
339341
"case *name* is deleted from the sys module. Returns ``0`` on success, ``-1``"
340342
" on error."
341343
msgstr ""
344+
"将 :mod:`sys` 模块中的 *name* 设为 *v* 除非 *v* 为 ``NULL``,在此情况下 *name* 将从 sys "
345+
"模块中被删除。 成功时返回 ``0``,发生错误时返回 ``-1``。"
342346

343347
#: ../../c-api/sys.rst:235
344348
msgid ""
345349
"Reset :data:`sys.warnoptions` to an empty list. This function may be called "
346350
"prior to :c:func:`Py_Initialize`."
347351
msgstr ""
352+
"将 :data:`sys.warnoptions` 重置为空列表。 此函数可在 :c:func:`Py_Initialize` 之前被调用。"
348353

349354
#: ../../c-api/sys.rst:240
350355
msgid ""
@@ -366,19 +371,23 @@ msgid ""
366371
"called until enough of the runtime has been initialized to permit the "
367372
"creation of Unicode objects."
368373
msgstr ""
374+
"注意:目前此函数不可在 CPython 实现之外使用,因为它必须在 :c:func:`Py_Initialize` 中的 :mod:`warnings`"
375+
" 显式导入之前被调用,但是要等运行时已初始化到足以允许创建 Unicode 对象时才能被调用。"
369376

370377
#: ../../c-api/sys.rst:255
371378
msgid ""
372379
"Set :data:`sys.path` to a list object of paths found in *path* which should "
373380
"be a list of paths separated with the platform's search path delimiter "
374381
"(``:`` on Unix, ``;`` on Windows)."
375382
msgstr ""
383+
"将 :data:`sys.path` 设为由在 *path* 中找到的路径组成的列表对象,该参数应为使用特定平台的搜索路径分隔符 (在 Unix 上为 "
384+
"``:``,在 Windows 上为 ``;``) 分隔的路径的列表。"
376385

377386
#: ../../c-api/sys.rst:261
378387
msgid ""
379388
"Write the output string described by *format* to :data:`sys.stdout`. No "
380389
"exceptions are raised, even if truncation occurs (see below)."
381-
msgstr ""
390+
msgstr "将以 *format* 描述的输出字符串写入到 :data:`sys.stdout`。 不会引发任何异常,即使发生了截断(见下文)。"
382391

383392
#: ../../c-api/sys.rst:264
384393
msgid ""
@@ -390,12 +399,15 @@ msgid ""
390399
"not exceed 1000 bytes. Also watch out for \"%f\", which can print hundreds "
391400
"of digits for very large numbers."
392401
msgstr ""
402+
"*format* 应当将已格式化的输出字符串的总大小限制在 1000 字节以下 -- 超过 1000 字节后,输出字符串会被截断。 "
403+
"特别地,这意味着不应出现不受限制的 \"%s\" 格式;它们应当使用 \"%.<N>s\" 来限制,其中 <N> 是一个经计算使得 <N> "
404+
"与其他已格式化文本的最大尺寸之和不会超过 1000 字节的十进制数字。 还要注意 \"%f\",它可能为非常大的数字打印出数以百计的数位。"
393405

394406
#: ../../c-api/sys.rst:272
395407
msgid ""
396408
"If a problem occurs, or :data:`sys.stdout` is unset, the formatted message "
397409
"is written to the real (C level) *stdout*."
398-
msgstr ""
410+
msgstr "如果发生了错误,:data:`sys.stdout` 会被清空,已格式化的消息将被写入到真正的 (C 层级) *stdout*。"
399411

400412
#: ../../c-api/sys.rst:277
401413
msgid ""
@@ -424,19 +436,23 @@ msgid ""
424436
"options mapping as returned by :c:func:`PySys_GetXOptions`. This function "
425437
"may be called prior to :c:func:`Py_Initialize`."
426438
msgstr ""
439+
"将 *s* 解析为一个由 :option:`-X` 选项组成的集合并将它们添加到 :c:func:`PySys_GetXOptions` "
440+
"所返回的当前选项映射。 此函数可以在 :c:func:`Py_Initialize` 之前被调用。"
427441

428442
#: ../../c-api/sys.rst:305
429443
msgid ""
430444
"Return the current dictionary of :option:`-X` options, similarly to "
431445
":data:`sys._xoptions`. On error, ``NULL`` is returned and an exception is "
432446
"set."
433447
msgstr ""
448+
"返回当前 :option:`-X` 选项的字典,类似于 :data:`sys._xoptions`。 发生错误时,将返回 ``NULL`` "
449+
"并设置一个异常。"
434450

435451
#: ../../c-api/sys.rst:314
436452
msgid ""
437453
"Raise an auditing event with any active hooks. Return zero for success and "
438454
"non-zero with an exception set on failure."
439-
msgstr ""
455+
msgstr "引发一个审计事件并附带任何激活的钩子。 成功时返回零值或在失败时返回非零值并设置一个异常。"
440456

441457
#: ../../c-api/sys.rst:317
442458
msgid ""
@@ -448,6 +464,9 @@ msgid ""
448464
"arguments to this function will be consumed, using it may cause reference "
449465
"leaks.)"
450466
msgstr ""
467+
"如果已添加了任何钩子,则将使用 *format* 和其他参数来构造一个用入传入的元组。 除 ``N`` 以外,在 "
468+
":c:func:`Py_BuildValue` 中使用的格式字符均可使用。 如果构建的值不是一个元组,它将被添加到一个单元素元组中。 (格式选项 "
469+
"``N`` 会消耗一个引用,但是由于没有办法知道此函数的参数是否将被消耗,因此使用它可能导致引用泄漏。)"
451470

452471
#: ../../c-api/sys.rst:325
453472
msgid ""

0 commit comments

Comments
 (0)