@@ -270,25 +270,27 @@ msgstr "添加了 MSVC 支持。"
270270msgid ""
271271"Creates a variable with name ``name`` that can be used in docstrings. If "
272272"Python is built without docstrings, the value will be empty."
273- msgstr ""
273+ msgstr "创建一个可以在文档字符串中使用的,名字为 ``name`` 的变量。如果不和文档字符串一起构建 Python,该值将为空。 "
274274
275275#: ../../c-api/intro.rst:182
276276msgid ""
277277"Use :c:macro:`PyDoc_STRVAR` for docstrings to support building Python "
278278"without docstrings, as specified in :pep:`7`."
279279msgstr ""
280+ "如 :pep:`7` 所述,使用 :c:macro:`PyDoc_STRVAR` 作为文档字符串,以支持在没有文档字符串的情况下构建 Python。"
280281
281282#: ../../c-api/intro.rst:197
282283msgid ""
283284"Creates a docstring for the given input string or an empty string if "
284285"docstrings are disabled."
285- msgstr ""
286+ msgstr "为给定的字符串输入创建一个文档字符串,或者当文档字符串被禁用时,创建一个空字符串。 "
286287
287288#: ../../c-api/intro.rst:200
288289msgid ""
289290"Use :c:macro:`PyDoc_STR` in specifying docstrings to support building Python"
290291" without docstrings, as specified in :pep:`7`."
291292msgstr ""
293+ "如 :pep:`7` 所述,使用 :c:macro:`PyDoc_STR` 指定文档字符串,以支持不和文档字符串一起构建 Python 的情况。"
292294
293295#: ../../c-api/intro.rst:214
294296msgid "Objects, Types and Reference Counts"
@@ -308,6 +310,11 @@ msgid ""
308310"objects; since these must never be deallocated, they are typically static "
309311":c:type:`PyTypeObject` objects."
310312msgstr ""
313+ "多数 Python/C API 有一个或多个参数,以及一个 :c:type:`PyObject*` 类型的返回值。这种类型是指向任意 Python "
314+ "对象的不透明数据类型的指针。所有 Python 对象类型在大多数情况下都被 Python "
315+ "语言由相同的方式处理(例如,赋值,作用域规则,和参数传递),因此将它们由单个 C 类型表示才合适。几乎所有 Python "
316+ "对象存放在堆中:你不能声明一个类型为 :c:type:`PyObject` 的自动或静态的变量,只能声明类型为 :c:type:`PyObject*` "
317+ "的指针。type 对象是唯一的例外,因为它们永远不能被释放,所以它们通常是静态的 :c:type:`PyTypeObject` 对象。"
311318
312319#: ../../c-api/intro.rst:229
313320msgid ""
0 commit comments