@@ -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."
7979msgstr ""
80+ "返回实现 *module* 的命名空间的字典对象;此对象与模块对象的 :attr:`~object.__dict__` 属性相同。 如果 "
81+ "*module* 不是一个模块对象(或模块对象的子类型),则会引发 :exc:`SystemError` 并返回 ``NULL``。"
8082
8183#: ../../c-api/module.rst:67
8284msgid ""
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__`."
8688msgstr ""
89+ "建议扩展使用其他 :c:func:`PyModule_\\ *` and :c:func:`PyObject_\\ *` 函数而不是直接操纵模块的 "
90+ ":attr:`~object.__dict__`。"
8791
8892#: ../../c-api/module.rst:78
8993msgid ""
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."
9397msgstr ""
98+ "返回 *module* 的 :attr:`__name__` 值。 如果模块未提供该值,或者如果它不是一个字符串,则会引发 "
99+ ":exc:`SystemError` 并返回 ``NULL``。"
94100
95101#: ../../c-api/module.rst:86
96102msgid ""
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
102108msgid ""
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`."
106112msgstr ""
113+ "返回模块的“状态”,也就是说,返回指向在模块创建时分配的内存块的指针,或者 ``NULL``。 参见 "
114+ ":c:member:`PyModuleDef.m_size`。"
107115
108116#: ../../c-api/module.rst:98
109117msgid ""
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."
112120msgstr ""
121+ "返回指向模块创建所使用的 :c:type:`PyModuleDef` 结构体的指针,或者如果模块不是使用结构体定义创建的则返回 ``NULL``。"
113122
114123#: ../../c-api/module.rst:108
115124msgid ""
0 commit comments