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

Skip to content

Commit f7134a9

Browse files
[po] auto sync
1 parent b88f077 commit f7134a9

3 files changed

Lines changed: 15 additions & 4 deletions

File tree

c-api/exceptions.po

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -573,7 +573,7 @@ msgid ""
573573
"This function is normally only used by code that needs to save and restore "
574574
"the error indicator temporarily. Use :c:func:`PyErr_Fetch` to save the "
575575
"current error indicator."
576-
msgstr ""
576+
msgstr "此函数通常只被需要临时保存和恢复错误指示符的代码所使用。 请使用 :c:func:`PyErr_Fetch` 来保存当前的错误指示符。"
577577

578578
#: ../../c-api/exceptions.rst:446
579579
msgid ""
@@ -584,13 +584,15 @@ msgid ""
584584
"normalized, nothing happens. The delayed normalization is implemented to "
585585
"improve performance."
586586
msgstr ""
587+
"在特定情况下,下面 :c:func:`PyErr_Fetch` 所返回的值可以是“非正规化的”,即 ``*exc`` 是一个类对象而 ``*val`` "
588+
"不是同一个类的实例。 在这种情况下此函数可以被用来实例化类。 如果值已经是正规化的,则不做任何操作。 实现这种延迟正规化是为了提升性能。"
587589

588590
#: ../../c-api/exceptions.rst:454
589591
msgid ""
590592
"This function *does not* implicitly set the ``__traceback__`` attribute on "
591593
"the exception value. If setting the traceback appropriately is desired, the "
592594
"following additional snippet is needed::"
593-
msgstr ""
595+
msgstr "此函数 *不会* 显式地在异常值上设置 ``__traceback__`` 属性。 如果想要适当地设置回溯,还需要以下附加代码片段::"
594596

595597
#: ../../c-api/exceptions.rst:465
596598
msgid ""

c-api/module.po

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,39 +77,48 @@ msgid ""
7777
"object. If *module* is not a module object (or a subtype of a module "
7878
"object), :exc:`SystemError` is raised and ``NULL`` is returned."
7979
msgstr ""
80+
"返回实现 *module* 的命名空间的字典对象;此对象与模块对象的 :attr:`~object.__dict__` 属性相同。 如果 "
81+
"*module* 不是一个模块对象(或模块对象的子类型),则会引发 :exc:`SystemError` 并返回 ``NULL``。"
8082

8183
#: ../../c-api/module.rst:67
8284
msgid ""
8385
"It is recommended extensions use other :c:func:`PyModule_\\*` and "
8486
":c:func:`PyObject_\\*` functions rather than directly manipulate a module's "
8587
":attr:`~object.__dict__`."
8688
msgstr ""
89+
"建议扩展使用其他 :c:func:`PyModule_\\*` and :c:func:`PyObject_\\*` 函数而不是直接操纵模块的 "
90+
":attr:`~object.__dict__`。"
8791

8892
#: ../../c-api/module.rst:78
8993
msgid ""
9094
"Return *module*'s :attr:`__name__` value. If the module does not provide "
9195
"one, or if it is not a string, :exc:`SystemError` is raised and ``NULL`` is "
9296
"returned."
9397
msgstr ""
98+
"返回 *module* 的 :attr:`__name__` 值。 如果模块未提供该值,或者如果它不是一个字符串,则会引发 "
99+
":exc:`SystemError` 并返回 ``NULL``。"
94100

95101
#: ../../c-api/module.rst:86
96102
msgid ""
97103
"Similar to :c:func:`PyModule_GetNameObject` but return the name encoded to "
98104
"``'utf-8'``."
99-
msgstr ""
105+
msgstr "类似于 :c:func:`PyModule_GetNameObject` 但返回 ``'utf-8'`` 编码的名称。"
100106

101107
#: ../../c-api/module.rst:91
102108
msgid ""
103109
"Return the \"state\" of the module, that is, a pointer to the block of "
104110
"memory allocated at module creation time, or ``NULL``. See "
105111
":c:member:`PyModuleDef.m_size`."
106112
msgstr ""
113+
"返回模块的“状态”,也就是说,返回指向在模块创建时分配的内存块的指针,或者 ``NULL``。 参见 "
114+
":c:member:`PyModuleDef.m_size`。"
107115

108116
#: ../../c-api/module.rst:98
109117
msgid ""
110118
"Return a pointer to the :c:type:`PyModuleDef` struct from which the module "
111119
"was created, or ``NULL`` if the module wasn't created from a definition."
112120
msgstr ""
121+
"返回指向模块创建所使用的 :c:type:`PyModuleDef` 结构体的指针,或者如果模块不是使用结构体定义创建的则返回 ``NULL``。"
113122

114123
#: ../../c-api/module.rst:108
115124
msgid ""

library/inspect.po

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2010,7 +2010,7 @@ msgstr "代码对象拥有一个变长位置形参(类似 ``*args``)。"
20102010

20112011
#: ../../library/inspect.rst:1446
20122012
msgid "The code object has a variable keyword parameter (``**kwargs``-like)."
2013-
msgstr "代码对象拥有一个可变关键字形惨死(类似 ``**kwrags``。"
2013+
msgstr "代码对象拥有一个可变关键字形参 (类似 ``**kwrags``)。"
20142014

20152015
#: ../../library/inspect.rst:1450
20162016
msgid "The flag is set when the code object is a nested function."

0 commit comments

Comments
 (0)