|
1 | 1 | # SOME DESCRIPTIVE TITLE.
|
2 |
| -# Copyright (C) 2001-2023, Python Software Foundation |
| 2 | +# Copyright (C) 2001-2024, Python Software Foundation |
3 | 3 | # This file is distributed under the same license as the Python package.
|
4 | 4 | # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
|
5 | 5 | #
|
6 | 6 | # Translators:
|
7 |
| -# Rafael Fontenelle <[email protected]>, 2023 |
8 | 7 | # Freesand Leo <[email protected]>, 2023
|
| 8 | +# Rafael Fontenelle <[email protected]>, 2024 |
9 | 9 | #
|
10 | 10 | #, fuzzy
|
11 | 11 | msgid ""
|
12 | 12 | msgstr ""
|
13 | 13 | "Project-Id-Version: Python 3.10\n"
|
14 | 14 | "Report-Msgid-Bugs-To: \n"
|
15 |
| -"POT-Creation-Date: 2023-12-08 18:45+0000\n" |
| 15 | +"POT-Creation-Date: 2024-01-19 19:10+0000\n" |
16 | 16 | "PO-Revision-Date: 2022-11-05 17:21+0000\n"
|
17 |
| -"Last-Translator: Freesand Leo <yuqinju@163.com>, 2023\n" |
| 17 | +"Last-Translator: Rafael Fontenelle <rffontenelle@gmail.com>, 2024\n" |
18 | 18 | "Language-Team: Chinese (China) (https://app.transifex.com/python-doc/teams/5390/zh_CN/)\n"
|
19 | 19 | "MIME-Version: 1.0\n"
|
20 | 20 | "Content-Type: text/plain; charset=UTF-8\n"
|
@@ -1041,7 +1041,7 @@ msgstr "高阶 API"
|
1041 | 1041 | msgid ""
|
1042 | 1042 | "These are the most commonly used types and functions when writing C "
|
1043 | 1043 | "extension code, or when embedding the Python interpreter:"
|
1044 |
| -msgstr "" |
| 1044 | +msgstr "这些是在编写 C 扩展代码或在嵌入 Python 解释器时最常用的类型和函数:" |
1045 | 1045 |
|
1046 | 1046 | #: ../../c-api/init.rst:856
|
1047 | 1047 | msgid ""
|
@@ -1088,18 +1088,20 @@ msgstr "该函数现在由 :c:func:`Py_Initialize()` 调用,因此你无需再
|
1088 | 1088 | #: ../../c-api/init.rst:893
|
1089 | 1089 | msgid ""
|
1090 | 1090 | "This function cannot be called before :c:func:`Py_Initialize()` anymore."
|
1091 |
| -msgstr "" |
| 1091 | +msgstr "此函数已不再被允许在 :c:func:`Py_Initialize()` 之前调用。" |
1092 | 1092 |
|
1093 | 1093 | #: ../../c-api/init.rst:903
|
1094 | 1094 | msgid ""
|
1095 | 1095 | "Returns a non-zero value if :c:func:`PyEval_InitThreads` has been called. "
|
1096 | 1096 | "This function can be called without holding the GIL, and therefore can be "
|
1097 | 1097 | "used to avoid calls to the locking API when running single-threaded."
|
1098 | 1098 | msgstr ""
|
| 1099 | +"如果 :c:func:`PyEval_InitThreads` 已经被调用则返回非零值。 此函数可在不持有 GIL " |
| 1100 | +"的情况下被调用,因而可被用来避免在单线程运行时对加锁 API 的调用。" |
1099 | 1101 |
|
1100 | 1102 | #: ../../c-api/init.rst:907
|
1101 | 1103 | msgid "The :term:`GIL` is now initialized by :c:func:`Py_Initialize()`."
|
1102 |
| -msgstr "" |
| 1104 | +msgstr "现在 :term:`GIL` 将由 :c:func:`Py_Initialize()` 来初始化。" |
1103 | 1105 |
|
1104 | 1106 | #: ../../c-api/init.rst:915
|
1105 | 1107 | msgid ""
|
@@ -1257,30 +1259,31 @@ msgstr "底层级 API"
|
1257 | 1259 | #: ../../c-api/init.rst:1050
|
1258 | 1260 | msgid ""
|
1259 | 1261 | "All of the following functions must be called after :c:func:`Py_Initialize`."
|
1260 |
| -msgstr "" |
| 1262 | +msgstr "下列所有函数都必须在 :c:func:`Py_Initialize` 之后被调用。" |
1261 | 1263 |
|
1262 | 1264 | #: ../../c-api/init.rst:1052
|
1263 | 1265 | msgid ":c:func:`Py_Initialize()` now initializes the :term:`GIL`."
|
1264 |
| -msgstr "" |
| 1266 | +msgstr ":c:func:`Py_Initialize()` 现在会初始化 :term:`GIL`。" |
1265 | 1267 |
|
1266 | 1268 | #: ../../c-api/init.rst:1058
|
1267 | 1269 | msgid ""
|
1268 | 1270 | "Create a new interpreter state object. The global interpreter lock need not"
|
1269 | 1271 | " be held, but may be held if it is necessary to serialize calls to this "
|
1270 | 1272 | "function."
|
1271 |
| -msgstr "" |
| 1273 | +msgstr "创建一个新的解释器状态对象。 不需要持有全局解释器锁,但如果有必要序列化对此函数的调用则可能会持有。" |
1272 | 1274 |
|
1273 | 1275 | #: ../../c-api/init.rst:1062
|
1274 | 1276 | msgid ""
|
1275 | 1277 | "Raises an :ref:`auditing event <auditing>` "
|
1276 | 1278 | "``cpython.PyInterpreterState_New`` with no arguments."
|
1277 | 1279 | msgstr ""
|
| 1280 | +"引发一个 :ref:`审计事件 <auditing>` ``cpython.PyInterpreterState_New``,不附带任何参数。" |
1278 | 1281 |
|
1279 | 1282 | #: ../../c-api/init.rst:1067
|
1280 | 1283 | msgid ""
|
1281 | 1284 | "Reset all information in an interpreter state object. The global "
|
1282 | 1285 | "interpreter lock must be held."
|
1283 |
| -msgstr "" |
| 1286 | +msgstr "重置解释器状态对象中的所有信息。 必须持有全局解释器锁。" |
1284 | 1287 |
|
1285 | 1288 | #: ../../c-api/init.rst:1070
|
1286 | 1289 | msgid ""
|
@@ -1904,13 +1907,13 @@ msgstr "高级调试器支持"
|
1904 | 1907 | #: ../../c-api/init.rst:1617
|
1905 | 1908 | msgid ""
|
1906 | 1909 | "These functions are only intended to be used by advanced debugging tools."
|
1907 |
| -msgstr "" |
| 1910 | +msgstr "这些函数仅供高级调试工具使用。" |
1908 | 1911 |
|
1909 | 1912 | #: ../../c-api/init.rst:1622
|
1910 | 1913 | msgid ""
|
1911 | 1914 | "Return the interpreter state object at the head of the list of all such "
|
1912 | 1915 | "objects."
|
1913 |
| -msgstr "" |
| 1916 | +msgstr "将解释器状态对象返回到由所有此类对象组成的列表的开头。" |
1914 | 1917 |
|
1915 | 1918 | #: ../../c-api/init.rst:1627
|
1916 | 1919 | msgid "Return the main interpreter state object."
|
|
0 commit comments