9
9
msgstr ""
10
10
"Project-Id-Version : Python 3.12\n "
11
11
"Report-Msgid-Bugs-To : \n "
12
- "POT-Creation-Date : 2023-07-22 00:04 +0000\n "
12
+ "POT-Creation-Date : 2024-02-05 00:03 +0000\n "
13
13
"PO-Revision-Date : 2023-04-24 20:38+0800\n "
14
14
"
Last-Translator :
Matt Wang <[email protected] >\n "
15
15
"Language-Team : Chinese - TAIWAN (https://github.com/python/python-docs-zh- "
@@ -111,14 +111,19 @@ msgstr ""
111
111
"數。"
112
112
113
113
#: ../../c-api/file.rst:68
114
+ msgid "The handler is a function of type:"
115
+ msgstr ""
116
+
117
+ #: ../../c-api/file.rst:72
118
+ #, fuzzy
114
119
msgid ""
115
- "The handler is a function of type :c:expr:`PyObject *(\\ *)(PyObject *path, "
116
- "void *userData)`, where *path* is guaranteed to be :c:type:`PyUnicodeObject`."
120
+ "Equivalent of :c:expr:`PyObject *(\\ *)(PyObject *path, void *userData)` , "
121
+ "where *path* is guaranteed to be :c:type:`PyUnicodeObject`."
117
122
msgstr ""
118
123
"處理程式是 :c:expr:`PyObject *(\\ *)(PyObject *path, void *userData)` 型別的函"
119
124
"式,其中 *path* 保證為 :c:type:`PyUnicodeObject`。"
120
125
121
- #: ../../c-api/file.rst:71
126
+ #: ../../c-api/file.rst:76
122
127
msgid ""
123
128
"The *userData* pointer is passed into the hook function. Since hook "
124
129
"functions may be called from different runtimes, this pointer should not "
@@ -127,7 +132,7 @@ msgstr ""
127
132
"*userData* 指標被傳遞到掛鉤函式 (hook function) 中。由於可能會從不同的執行環"
128
133
"境 (runtime) 呼叫掛鉤函式,因此該指標不應直接指向 Python 狀態。"
129
134
130
- #: ../../c-api/file.rst:75
135
+ #: ../../c-api/file.rst:80
131
136
msgid ""
132
137
"As this hook is intentionally used during import, avoid importing new "
133
138
"modules during its execution unless they are known to be frozen or available "
@@ -136,7 +141,7 @@ msgstr ""
136
141
"由於此掛鉤函式是在導入期間有意使用的,因此請避免在其執行期間導入新模組,除非"
137
142
"它們已知有被凍結或在 ``sys.modules`` 中可用。"
138
143
139
- #: ../../c-api/file.rst:79
144
+ #: ../../c-api/file.rst:84
140
145
#, fuzzy
141
146
msgid ""
142
147
"Once a hook has been set, it cannot be removed or replaced, and later calls "
@@ -147,19 +152,19 @@ msgstr ""
147
152
"`PyFile_SetOpenCodeHook` 將失敗。失敗時,函式回傳 -1 並在直譯器已初始化時設定"
148
153
"例外。"
149
154
150
- #: ../../c-api/file.rst:83
155
+ #: ../../c-api/file.rst:88
151
156
msgid "This function is safe to call before :c:func:`Py_Initialize`."
152
157
msgstr "在 :c:func:`Py_Initialize` 之前呼叫此函式是安全的。"
153
158
154
- #: ../../c-api/file.rst:85
159
+ #: ../../c-api/file.rst:90
155
160
msgid ""
156
161
"Raises an :ref:`auditing event <auditing>` ``setopencodehook`` with no "
157
162
"arguments."
158
163
msgstr ""
159
164
"不帶引數地引發一個\\ :ref:`稽核事件 (auditing event) <auditing>` "
160
165
"``setopencodehook``\\ 。"
161
166
162
- #: ../../c-api/file.rst:95
167
+ #: ../../c-api/file.rst:100
163
168
msgid ""
164
169
"Write object *obj* to file object *p*. The only supported flag for *flags* "
165
170
"is :c:macro:`Py_PRINT_RAW`; if given, the :func:`str` of the object is "
@@ -170,7 +175,7 @@ msgstr ""
170
175
"`Py_PRINT_RAW`;如果有給定,則寫入物件的 :func:`str` 而不是 :func:`repr`。在"
171
176
"成功回傳 ``0`` 或在失敗回傳 ``-1``;將設定適當的例外。"
172
177
173
- #: ../../c-api/file.rst:103
178
+ #: ../../c-api/file.rst:108
174
179
msgid ""
175
180
"Write string *s* to file object *p*. Return ``0`` on success or ``-1`` on "
176
181
"failure; the appropriate exception will be set."
@@ -190,6 +195,6 @@ msgstr "file(檔案)"
190
195
msgid "EOFError (built-in exception)"
191
196
msgstr "EOFError(內建例外)"
192
197
193
- #: ../../c-api/file.rst:93
198
+ #: ../../c-api/file.rst:98
194
199
msgid "Py_PRINT_RAW"
195
200
msgstr "Py_PRINT_RAW"
0 commit comments