Skip to content

Commit c210755

Browse files
sync with cpython 8e7c62b4
1 parent 88fbe15 commit c210755

File tree

3 files changed

+150
-119
lines changed

3 files changed

+150
-119
lines changed

c-api/file.po

Lines changed: 27 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ msgid ""
99
msgstr ""
1010
"Project-Id-Version: Python 3.14\n"
1111
"Report-Msgid-Bugs-To: \n"
12-
"POT-Creation-Date: 2026-01-15 00:15+0000\n"
12+
"POT-Creation-Date: 2026-03-23 00:22+0000\n"
1313
"PO-Revision-Date: 2023-04-24 20:38+0800\n"
1414
"Last-Translator: Matt Wang <mattwang44@gmail.com>\n"
1515
"Language-Team: Chinese - TAIWAN (https://github.com/python/python-docs-zh-"
@@ -192,52 +192,66 @@ msgstr ""
192192
"`const char*`。"
193193

194194
#: ../../c-api/file.rst:124
195+
#, fuzzy
195196
msgid ""
196197
"Write object *obj* to file object *p*. The only supported flag for *flags* "
197198
"is :c:macro:`Py_PRINT_RAW`; if given, the :func:`str` of the object is "
198-
"written instead of the :func:`repr`. Return ``0`` on success or ``-1`` on "
199-
"failure; the appropriate exception will be set."
199+
"written instead of the :func:`repr`."
200200
msgstr ""
201201
"將物件 *obj* 寫入檔案物件 *p*。 *flags* 唯一支援的旗標是 :c:macro:"
202202
"`Py_PRINT_RAW`;如果有給定,則寫入物件的 :func:`str` 而不是 :func:`repr`。在"
203203
"成功回傳 ``0`` 或在失敗回傳 ``-1``;將設定適當的例外。"
204204

205-
#: ../../c-api/file.rst:132
205+
#: ../../c-api/file.rst:128
206+
msgid "If *obj* is ``NULL``, write the string ``\"<NULL>\"``."
207+
msgstr ""
208+
209+
#: ../../c-api/file.rst:130
210+
#, fuzzy
211+
msgid ""
212+
"Return ``0`` on success or ``-1`` on failure; the appropriate exception will "
213+
"be set."
214+
msgstr ""
215+
"寫入字串 *s* 到 檔案物件 *p*。當成功時回傳 0,而當失敗時回傳 -1,並會設定合適"
216+
"的例外狀況。"
217+
218+
#: ../../c-api/file.rst:135
206219
msgid ""
207220
"Write string *s* to file object *p*. Return ``0`` on success or ``-1`` on "
208221
"failure; the appropriate exception will be set."
209222
msgstr ""
210223
"寫入字串 *s* 到 檔案物件 *p*。當成功時回傳 0,而當失敗時回傳 -1,並會設定合適"
211224
"的例外狀況。"
212225

213-
#: ../../c-api/file.rst:137
226+
#: ../../c-api/file.rst:140
214227
msgid "Deprecated API"
215228
msgstr "已棄用的 API"
216229

217-
#: ../../c-api/file.rst:140
230+
#: ../../c-api/file.rst:143
218231
msgid ""
219232
"These are :term:`soft deprecated` APIs that were included in Python's C API "
220233
"by mistake. They are documented solely for completeness; use other "
221234
"``PyFile*`` APIs instead."
222235
msgstr ""
223-
"這些是被錯誤地包含在 Python C API 中的\\ :term:`軟性棄用 <soft deprecated>` API。它們僅為"
224-
"了完整性而記錄於文件中;請改用其他 ``PyFile*`` API。"
236+
"這些是被錯誤地包含在 Python C API 中的\\ :term:`軟性棄用 <soft deprecated>` "
237+
"API。它們僅為了完整性而記錄於文件中;請改用其他 ``PyFile*`` API。"
225238

226-
#: ../../c-api/file.rst:146
239+
#: ../../c-api/file.rst:149
227240
msgid ""
228241
"Use :c:func:`PyFile_FromFd` with defaults (``fd, NULL, \"w\", -1, NULL, "
229242
"NULL, NULL, 0``) instead."
230243
msgstr ""
231-
"請改用帶有預設值 (``fd, NULL, \"w\", -1, NULL, NULL, NULL, 0``) 的 :c:func:`PyFile_FromFd`。"
244+
"請改用帶有預設值 (``fd, NULL, \"w\", -1, NULL, NULL, NULL, 0``) 的 :c:func:"
245+
"`PyFile_FromFd`。"
232246

233-
#: ../../c-api/file.rst:150
247+
#: ../../c-api/file.rst:153
234248
msgid ""
235249
"Type of file-like objects used internally at Python startup when :py:mod:"
236250
"`io` is not yet available. Use Python :py:func:`open` or :c:func:"
237251
"`PyFile_FromFd` to create file objects instead."
238252
msgstr ""
239-
"在 Python 啟動期間,當 :py:mod:`io` 尚不可用時會在內部使用的類檔案物件的型別。請改用 "
240-
"Python :py:func:`open` 或 :c:func:`PyFile_FromFd` 來建立檔案物件。"
253+
"在 Python 啟動期間,當 :py:mod:`io` 尚不可用時會在內部使用的類檔案物件的型"
254+
"別。請改用 Python :py:func:`open` 或 :c:func:`PyFile_FromFd` 來建立檔案物件。"
241255

242256
#: ../../c-api/file.rst:8
243257
msgid "object"

0 commit comments

Comments
 (0)