Skip to content

Commit 99374b8

Browse files
committed
[po] auto sync bot
1 parent 6012318 commit 99374b8

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

c-api/intro.po

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,13 +139,17 @@ msgid ""
139139
" :envvar:`prefix` include the platform specific headers from "
140140
":envvar:`exec_prefix`."
141141
msgstr ""
142+
"要包含头文件,请将两个目录(如果不同)全都放在编译器的包含搜索路径上。*不要*将父目录放在搜索路径上,然后使用``#include "
143+
"<pythonX.Y/Python.h>``;这将在跨平台环境中不可用,因为基于平台独立的头文件需要明确指定环境变量:`prefix`,和平台执行环境变量:`exec_prefix`。"
142144

143145
#: ../../c-api/intro.rst:89
144146
msgid ""
145147
"C++ users should note that though the API is defined entirely using C, the "
146148
"header files do properly declare the entry points to be ``extern \"C\"``, so"
147149
" there is no need to do anything special to use the API from C++."
148150
msgstr ""
151+
"C ++用户应该注意,尽管API完全使用C定义,但是头文件正确地将入口点声明为``extern”C“``,因此不需要做任何特殊的事情来使用C "
152+
"++中的API。"
149153

150154
#: ../../c-api/intro.rst:95
151155
msgid "Useful macros"
@@ -209,7 +213,7 @@ msgstr ""
209213

210214
#: ../../c-api/intro.rst:163
211215
msgid "Objects, Types and Reference Counts"
212-
msgstr ""
216+
msgstr "对象,类型和参考计数"
213217

214218
#: ../../c-api/intro.rst:167
215219
msgid ""
@@ -225,6 +229,8 @@ msgid ""
225229
"objects; since these must never be deallocated, they are typically static "
226230
":c:type:`PyTypeObject` objects."
227231
msgstr ""
232+
"大多数Python/C API函数都有一个或多个参数以及类型的返回值:c:type:`PyObject \\ "
233+
"*`。此类型是指向表示任意Python对象的不透明数据类型的指针。由于在大多数情况下(例如,赋值,范围规则和参数传递)Python语言都以相同的方式处理所有Python对象类型,因此它们应该由单个C类型表示。几乎所有的Python对象都存在于堆上:你永远不会声明一个类型为自动或静态变量。只有类型的指针变量可以声明。唯一的例外是类型对象;因为它们永远不能被释放,所以它们通常是静态的。"
228234

229235
#: ../../c-api/intro.rst:178
230236
msgid ""

0 commit comments

Comments
 (0)