44# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
55#
66# Translators:
7- # Alpha Du <[email protected] >, 20218- # Bryan不可思议, 2023
9- # Freesand Leo <[email protected] >, 20247+ # Rafael Fontenelle <[email protected] >, 2024108#
119#, fuzzy
1210msgid ""
1311msgstr ""
14- "Project-Id-Version : Python 3.13 \n "
12+ "Project-Id-Version : Python 3.12 \n "
1513"Report-Msgid-Bugs-To : \n "
16- "POT-Creation-Date : 2024-05-10 22:05-0300 \n "
17- "PO-Revision-Date : 2021-06-28 00:48 +0000\n "
18- "Last-Translator : Freesand Leo <yuqinju@163 .com>, 2024\n "
14+ "POT-Creation-Date : 2024-08-02 14:51+0000 \n "
15+ "PO-Revision-Date : 2024-05-11 00:32 +0000\n "
16+ "Last-Translator : Rafael Fontenelle <rffontenelle@gmail .com>, 2024\n "
1917"Language-Team : Chinese (China) (https://app.transifex.com/python-doc/teams/5390/zh_CN/)\n "
2018"MIME-Version : 1.0\n "
2119"Content-Type : text/plain; charset=UTF-8\n "
@@ -103,33 +101,33 @@ msgid ""
103101msgstr "重写 :func:`io.open_code` 的正常行为,将其形参通过所提供的处理程序来传递。"
104102
105103#: ../../c-api/file.rst:68
106- msgid "The * handler* is a function of type:"
107- msgstr ""
104+ msgid "The handler is a function of type:"
105+ msgstr "处理器函数的类型为: "
108106
109- #: ../../c-api/file.rst:73
107+ #: ../../c-api/file.rst:72
110108msgid ""
111109"Equivalent of :c:expr:`PyObject *(\\ *)(PyObject *path, void *userData)`, "
112110"where *path* is guaranteed to be :c:type:`PyUnicodeObject`."
113111msgstr ""
114112"等价于 :c:expr:`PyObject *(\\ *)(PyObject *path, void *userData)`,其中 *path* 会确保为"
115113" :c:type:`PyUnicodeObject`。"
116114
117- #: ../../c-api/file.rst:77
115+ #: ../../c-api/file.rst:76
118116msgid ""
119117"The *userData* pointer is passed into the hook function. Since hook "
120118"functions may be called from different runtimes, this pointer should not "
121119"refer directly to Python state."
122120msgstr "*userData* 指针会被传入钩子函数。 因于钩子函数可能由不同的运行时调用,该指针不应直接指向 Python 状态。"
123121
124- #: ../../c-api/file.rst:81
122+ #: ../../c-api/file.rst:80
125123msgid ""
126124"As this hook is intentionally used during import, avoid importing new "
127125"modules during its execution unless they are known to be frozen or available"
128126" in ``sys.modules``."
129127msgstr ""
130128"鉴于这个钩子专门在导入期间使用的,请避免在新模块执行期间进行导入操作,除非已知它们为冻结状态或者是在 ``sys.modules`` 中可用。"
131129
132- #: ../../c-api/file.rst:85
130+ #: ../../c-api/file.rst:84
133131msgid ""
134132"Once a hook has been set, it cannot be removed or replaced, and later calls "
135133"to :c:func:`PyFile_SetOpenCodeHook` will fail. On failure, the function "
@@ -138,17 +136,15 @@ msgstr ""
138136"一旦钩子被设定,它就不能被移除或替换,之后对 :c:func:`PyFile_SetOpenCodeHook` "
139137"的调用也将失败,如果解释器已经被初始化,函数将返回 -1 并设置一个异常。"
140138
141- #: ../../c-api/file.rst:89
139+ #: ../../c-api/file.rst:88
142140msgid "This function is safe to call before :c:func:`Py_Initialize`."
143141msgstr "此函数可以安全地在 :c:func:`Py_Initialize` 之前调用。"
144142
145- #: ../../c-api/file.rst:91
146- msgid ""
147- "Raises an :ref:`auditing event <auditing>` ``setopencodehook`` with no "
148- "arguments."
149- msgstr "引发一个 :ref:`审计事件 <auditing>` ``setopencodehook``,不附带任何参数。"
143+ #: ../../c-api/file.rst:90
144+ msgid "Raises an auditing event setopencodehook with no arguments."
145+ msgstr ""
150146
151- #: ../../c-api/file.rst:101
147+ #: ../../c-api/file.rst:100
152148msgid ""
153149"Write object *obj* to file object *p*. The only supported flag for *flags* "
154150"is :c:macro:`Py_PRINT_RAW`; if given, the :func:`str` of the object is "
@@ -158,7 +154,7 @@ msgstr ""
158154"将对象 *obj* 写入文件对象 *p*。 *flags* 唯一支持的旗标是 :c:macro:`Py_PRINT_RAW`;如果给定,则写入对象的 "
159155":func:`str` 而不是 :func:`repr`。 成功时返回 ``0``,失败时返回 ``-1``;将设置适当的异常。"
160156
161- #: ../../c-api/file.rst:109
157+ #: ../../c-api/file.rst:108
162158msgid ""
163159"Write string *s* to file object *p*. Return ``0`` on success or ``-1`` on "
164160"failure; the appropriate exception will be set."
@@ -176,6 +172,6 @@ msgstr "文件"
176172msgid "EOFError (built-in exception)"
177173msgstr "EOFError (内置异常)"
178174
179- #: ../../c-api/file.rst:99
175+ #: ../../c-api/file.rst:98
180176msgid "Py_PRINT_RAW (C macro)"
181177msgstr "Py_PRINT_RAW (C 宏)"
0 commit comments