@@ -11,7 +11,7 @@ msgid ""
1111msgstr ""
1212"Project-Id-Version : Python 3.12\n "
1313"Report-Msgid-Bugs-To : \n "
14- "POT-Creation-Date : 2024-08-09 17:14 +0000\n "
14+ "POT-Creation-Date : 2024-10-04 14:53 +0000\n "
1515"PO-Revision-Date : 2024-05-11 00:32+0000\n "
1616"
Last-Translator :
Rafael Fontenelle <[email protected] >, 2024\n "
1717"Language-Team : Chinese (China) (https://app.transifex.com/python-doc/teams/5390/zh_CN/)\n "
@@ -101,33 +101,33 @@ msgid ""
101101msgstr "重写 :func:`io.open_code` 的正常行为,将其形参通过所提供的处理程序来传递。"
102102
103103#: ../../c-api/file.rst:68
104- msgid "The handler is a function of type:"
105- msgstr "处理器函数的类型为: "
104+ msgid "The * handler* is a function of type:"
105+ msgstr ""
106106
107- #: ../../c-api/file.rst:72
107+ #: ../../c-api/file.rst:73
108108msgid ""
109109"Equivalent of :c:expr:`PyObject *(\\ *)(PyObject *path, void *userData)`, "
110110"where *path* is guaranteed to be :c:type:`PyUnicodeObject`."
111111msgstr ""
112112"等价于 :c:expr:`PyObject *(\\ *)(PyObject *path, void *userData)`,其中 *path* 会确保为"
113113" :c:type:`PyUnicodeObject`。"
114114
115- #: ../../c-api/file.rst:76
115+ #: ../../c-api/file.rst:77
116116msgid ""
117117"The *userData* pointer is passed into the hook function. Since hook "
118118"functions may be called from different runtimes, this pointer should not "
119119"refer directly to Python state."
120120msgstr "*userData* 指针会被传入钩子函数。 因于钩子函数可能由不同的运行时调用,该指针不应直接指向 Python 状态。"
121121
122- #: ../../c-api/file.rst:80
122+ #: ../../c-api/file.rst:81
123123msgid ""
124124"As this hook is intentionally used during import, avoid importing new "
125125"modules during its execution unless they are known to be frozen or available"
126126" in ``sys.modules``."
127127msgstr ""
128128"鉴于这个钩子专门在导入期间使用的,请避免在新模块执行期间进行导入操作,除非已知它们为冻结状态或者是在 ``sys.modules`` 中可用。"
129129
130- #: ../../c-api/file.rst:84
130+ #: ../../c-api/file.rst:85
131131msgid ""
132132"Once a hook has been set, it cannot be removed or replaced, and later calls "
133133"to :c:func:`PyFile_SetOpenCodeHook` will fail. On failure, the function "
@@ -136,17 +136,17 @@ msgstr ""
136136"一旦钩子被设定,它就不能被移除或替换,之后对 :c:func:`PyFile_SetOpenCodeHook` "
137137"的调用也将失败,如果解释器已经被初始化,函数将返回 -1 并设置一个异常。"
138138
139- #: ../../c-api/file.rst:88
139+ #: ../../c-api/file.rst:89
140140msgid "This function is safe to call before :c:func:`Py_Initialize`."
141141msgstr "此函数可以安全地在 :c:func:`Py_Initialize` 之前调用。"
142142
143- #: ../../c-api/file.rst:90
143+ #: ../../c-api/file.rst:91
144144msgid ""
145145"Raises an :ref:`auditing event <auditing>` ``setopencodehook`` with no "
146146"arguments."
147147msgstr "引发一个不带参数的 :ref:`审计事件 <auditing>` ``setopencodehook``。"
148148
149- #: ../../c-api/file.rst:100
149+ #: ../../c-api/file.rst:101
150150msgid ""
151151"Write object *obj* to file object *p*. The only supported flag for *flags* "
152152"is :c:macro:`Py_PRINT_RAW`; if given, the :func:`str` of the object is "
@@ -156,7 +156,7 @@ msgstr ""
156156"将对象 *obj* 写入文件对象 *p*。 *flags* 唯一支持的旗标是 :c:macro:`Py_PRINT_RAW`;如果给定,则写入对象的 "
157157":func:`str` 而不是 :func:`repr`。 成功时返回 ``0``,失败时返回 ``-1``;将设置适当的异常。"
158158
159- #: ../../c-api/file.rst:108
159+ #: ../../c-api/file.rst:109
160160msgid ""
161161"Write string *s* to file object *p*. Return ``0`` on success or ``-1`` on "
162162"failure; the appropriate exception will be set."
@@ -174,6 +174,6 @@ msgstr "文件"
174174msgid "EOFError (built-in exception)"
175175msgstr "EOFError (内置异常)"
176176
177- #: ../../c-api/file.rst:98
177+ #: ../../c-api/file.rst:99
178178msgid "Py_PRINT_RAW (C macro)"
179179msgstr "Py_PRINT_RAW (C 宏)"
0 commit comments