Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Sync with CPython 3.12#807

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
mattwang44 merged 13 commits into3.12fromcron/sync/3.12
Feb 7, 2024
Merged
Show file tree
Hide file tree
Changes fromall commits
Commits
Show all changes
13 commits
Select commitHold shift + click to select a range
be546ae
sync with cpython 205ac6ee
github-actions[bot]Jan 28, 2024
a1e1254
sync with cpython e6043581
github-actions[bot]Jan 29, 2024
59e95f9
sync with cpython 424df31f
github-actions[bot]Jan 30, 2024
0ec266e
sync with cpython b3d01fc5
github-actions[bot]Jan 31, 2024
66e16b6
sync with cpython c8e4c321
github-actions[bot]Feb 1, 2024
03bd4b0
sync with cpython cc5870a1
github-actions[bot]Feb 2, 2024
26583a9
sync with cpython 9c6c40ec
github-actions[bot]Feb 3, 2024
f097133
sync with cpython f7252f68
github-actions[bot]Feb 4, 2024
05b6b65
sync with cpython 49fbb068
github-actions[bot]Feb 5, 2024
3e30a93
sync with cpython 94ad6826
github-actions[bot]Feb 6, 2024
911987b
fix: resolve fuzzy entries
mattwang44Feb 6, 2024
99769a0
sync with cpython d975e791
github-actions[bot]Feb 7, 2024
a78366b
fix: resolve fuzzy entries
mattwang44Feb 7, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 10 additions & 9 deletions.scripts/poetry.lock
View file
Open in desktop

Some generated files are not rendered by default. Learn more abouthow customized files appear on GitHub.

27 changes: 16 additions & 11 deletionsc-api/file.po
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -9,7 +9,7 @@ msgid ""
msgstr ""
"Project-Id-Version: Python 3.12\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date:2023-07-22 00:04+0000\n"
"POT-Creation-Date:2024-02-05 00:03+0000\n"
"PO-Revision-Date: 2023-04-24 20:38+0800\n"
"Last-Translator: Matt Wang <mattwang44@gmail.com>\n"
"Language-Team: Chinese - TAIWAN (https://github.com/python/python-docs-zh-"
Expand DownExpand Up@@ -111,14 +111,19 @@ msgstr ""
"數。"

#: ../../c-api/file.rst:68
msgid "The handler is a function of type:"
msgstr ""

#: ../../c-api/file.rst:72
#, fuzzy
msgid ""
"The handler is a functionoftype:c:expr:`PyObject *(\\*)(PyObject *path, "
"void *userData)`,where *path* is guaranteed to be :c:type:`PyUnicodeObject`."
"Equivalentof :c:expr:`PyObject *(\\*)(PyObject *path, void *userData)`, "
"where *path* is guaranteed to be :c:type:`PyUnicodeObject`."
msgstr ""
"處理程式是 :c:expr:`PyObject *(\\*)(PyObject *path, void *userData)` 型別的函"
"式,其中 *path* 保證為 :c:type:`PyUnicodeObject`。"

#: ../../c-api/file.rst:71
#: ../../c-api/file.rst:76
msgid ""
"The *userData* pointer is passed into the hook function. Since hook "
"functions may be called from different runtimes, this pointer should not "
Expand All@@ -127,7 +132,7 @@ msgstr ""
"*userData* 指標被傳遞到掛鉤函式 (hook function) 中。由於可能會從不同的執行環"
"境 (runtime) 呼叫掛鉤函式,因此該指標不應直接指向 Python 狀態。"

#: ../../c-api/file.rst:75
#: ../../c-api/file.rst:80
msgid ""
"As this hook is intentionally used during import, avoid importing new "
"modules during its execution unless they are known to be frozen or available "
Expand All@@ -136,7 +141,7 @@ msgstr ""
"由於此掛鉤函式是在導入期間有意使用的,因此請避免在其執行期間導入新模組,除非"
"它們已知有被凍結或在 ``sys.modules`` 中可用。"

#: ../../c-api/file.rst:79
#: ../../c-api/file.rst:84
#, fuzzy
msgid ""
"Once a hook has been set, it cannot be removed or replaced, and later calls "
Expand All@@ -147,19 +152,19 @@ msgstr ""
"`PyFile_SetOpenCodeHook` 將失敗。失敗時,函式回傳 -1 並在直譯器已初始化時設定"
"例外。"

#: ../../c-api/file.rst:83
#: ../../c-api/file.rst:88
msgid "This function is safe to call before :c:func:`Py_Initialize`."
msgstr "在 :c:func:`Py_Initialize` 之前呼叫此函式是安全的。"

#: ../../c-api/file.rst:85
#: ../../c-api/file.rst:90
msgid ""
"Raises an :ref:`auditing event <auditing>` ``setopencodehook`` with no "
"arguments."
msgstr ""
"不帶引數地引發一個\\ :ref:`稽核事件 (auditing event) <auditing>` "
"``setopencodehook``\\ 。"

#: ../../c-api/file.rst:95
#: ../../c-api/file.rst:100
msgid ""
"Write object *obj* to file object *p*. The only supported flag for *flags* "
"is :c:macro:`Py_PRINT_RAW`; if given, the :func:`str` of the object is "
Expand All@@ -170,7 +175,7 @@ msgstr ""
"`Py_PRINT_RAW`;如果有給定,則寫入物件的 :func:`str` 而不是 :func:`repr`。在"
"成功回傳 ``0`` 或在失敗回傳 ``-1``;將設定適當的例外。"

#: ../../c-api/file.rst:103
#: ../../c-api/file.rst:108
msgid ""
"Write string *s* to file object *p*. Return ``0`` on success or ``-1`` on "
"failure; the appropriate exception will be set."
Expand All@@ -190,6 +195,6 @@ msgstr "file(檔案)"
msgid "EOFError (built-in exception)"
msgstr "EOFError(內建例外)"

#: ../../c-api/file.rst:93
#: ../../c-api/file.rst:98
msgid "Py_PRINT_RAW"
msgstr "Py_PRINT_RAW"
Loading

[8]ページ先頭

©2009-2025 Movatter.jp