@@ -63,10 +63,11 @@ msgid ""
6363"and Stable ABI work the same way for all uses of the API – for example, "
6464"embedding Python."
6565msgstr ""
66+ "简单起见,本文档只讨论了 *扩展*,但受限 API 和稳定 ABI 对于 API 的所有用法都能发挥相同的作用 – 例如嵌入版的 Python 等。"
6667
6768#: ../../c-api/stable.rst:35
6869msgid "Limited C API"
69- msgstr ""
70+ msgstr "受限 C API "
7071
7172#: ../../c-api/stable.rst:37
7273msgid ""
@@ -75,6 +76,8 @@ msgid ""
7576"multiple versions of Python. Contents of the Limited API are :ref:`listed "
7677"below <limited-api-list>`."
7778msgstr ""
79+ "Python 3.2 引入了 *受限 API*,它是 Python 的 C API 的一个子集。 只使用受限 API 扩展可以一次编译即适用于多个 "
80+ "Python 版本。 受限 API 的内容 :ref:`如下所示 <limited-api-list>`。"
7881
7982#: ../../c-api/stable.rst:44
8083msgid ""
@@ -112,20 +115,22 @@ msgstr ""
112115
113116#: ../../c-api/stable.rst:64
114117msgid "Stable ABI"
115- msgstr ""
118+ msgstr "稳定 ABI "
116119
117120#: ../../c-api/stable.rst:66
118121msgid ""
119122"To enable this, Python provides a *Stable ABI*: a set of symbols that will "
120123"remain compatible across Python 3.x versions."
121- msgstr ""
124+ msgstr "为启用此特性,Python 提供了一个 *稳定 ABI*: 将能跨 Python 3.x 版本保持兼容的一组符号。 "
122125
123126#: ../../c-api/stable.rst:69
124127msgid ""
125128"The Stable ABI contains symbols exposed in the :ref:`Limited API <limited-c-"
126129"api>`, but also other ones – for example, functions necessary to support "
127130"older versions of the Limited API."
128131msgstr ""
132+ "稳定 ABI 包含在 :ref:`受限 API <limited-c-api>` 中对外公开的符号,但还包含其他符号 – 例如,为支持旧版本受限 API"
133+ " 所需的函数。"
129134
130135#: ../../c-api/stable.rst:73
131136msgid ""
@@ -208,6 +213,9 @@ msgid ""
208213":ref:`Stable ABI <stable-abi>`. ``Py_LIMITED_API`` only covers definitions, "
209214"but an API also includes other issues, such as expected semantics."
210215msgstr ""
216+ "请注意使用 ``Py_LIMITED_API`` 进行编译 *无法* 完全保证代码能够兼容 :ref:`受限 API <limited-c-api>` "
217+ "或 :ref:`稳定 ABI <stable-abi>`。 ``Py_LIMITED_API`` 仅仅涵盖定义部分,但一个 API "
218+ "还包括其他因素,如预期的语义等。"
211219
212220#: ../../c-api/stable.rst:121
213221msgid ""
@@ -268,6 +276,8 @@ msgid ""
268276":ref:`Stable ABI <stable-abi>`, these details define a “platform”. They "
269277"usually depend on the OS type and processor architecture"
270278msgstr ""
279+ "ABI 的稳定性不仅取决于 Python,取决于所使用的编译器、低层级库和编译器选项等。 对于 :ref:`稳定 ABI <stable-abi>` "
280+ "的目标来说,这些细节定义了一个 “平台”。 它们通常会依赖于 OS 类型和处理器架构等。"
271281
272282#: ../../c-api/stable.rst:156
273283msgid ""
@@ -287,4 +297,4 @@ msgstr "受限 API 的内容"
287297msgid ""
288298"Currently, the :ref:`Limited API <limited-c-api>` includes the following "
289299"items:"
290- msgstr ""
300+ msgstr "目前 :ref:`受限 API <limited-c-api>` 包括下面这些项: "
0 commit comments