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#511

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 19 commits into3.12fromcron/sync/3.12
Aug 20, 2023
Merged
Show file tree
Hide file tree
Changes fromall commits
Commits
Show all changes
19 commits
Select commitHold shift + click to select a range
8964b59
sync with cpython e3b5ed7b
github-actions[bot]Jul 30, 2023
0e8c319
sync with cpython 0b3d6381
github-actions[bot]Jul 31, 2023
8cf1497
sync with cpython 54aaaade
github-actions[bot]Jul 31, 2023
e75abc4
sync with cpython fc4532a5
github-actions[bot]Aug 1, 2023
1c8653a
sync with cpython 0e7a4f73
github-actions[bot]Aug 5, 2023
98d6898
sync with cpython ab1988d5
github-actions[bot]Aug 7, 2023
9d1ce4b
sync with cpython e5582bdb
github-actions[bot]Aug 8, 2023
f4347ae
sync with cpython aa2ecef2
github-actions[bot]Aug 9, 2023
420d750
sync with cpython d20d52bc
github-actions[bot]Aug 12, 2023
829c80d
sync with cpython ba8ab4e8
github-actions[bot]Aug 14, 2023
24c9cd7
resolve fuzzy entries
mattwang44Aug 14, 2023
758b578
sync with cpython e8963a86
github-actions[bot]Aug 15, 2023
6508ccc
sync with cpython 91d935b4
github-actions[bot]Aug 16, 2023
ff5df51
sync with cpython 931df0a4
github-actions[bot]Aug 17, 2023
52d4434
sync with cpython 9342ac31
github-actions[bot]Aug 18, 2023
e9ec8e9
sync with cpython af6e5fa7
github-actions[bot]Aug 18, 2023
728263c
sync with cpython 0e5eee01
github-actions[bot]Aug 20, 2023
cb73f1a
sync with cpython 7f5a741a
github-actions[bot]Aug 20, 2023
b516077
resolve fuzzy entries
mattwang44Aug 20, 2023
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
23 changes: 12 additions & 11 deletionsc-api/allocation.po
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -10,7 +10,7 @@ msgid ""
msgstr ""
"Project-Id-Version: Python 3.12\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2023-07-29 00:03+0000\n"
"POT-Creation-Date: 2023-08-09 00:03+0000\n"
"PO-Revision-Date: 2022-10-16 15:35+0800\n"
"Last-Translator: Matt Wang <mattwang44@gmail.com>\n"
"Language-Team: Chinese - TAIWAN (https://github.com/python/python-docs-zh-"
Expand DownExpand Up@@ -50,16 +50,17 @@ msgstr ""
msgid ""
"Allocate a new Python object using the C structure type *TYPE* and the "
"Python type object *typeobj* (``PyTypeObject*``). Fields not defined by the "
"Python object header are not initialized; the object's reference count will "
"be one. The size of the memory allocation is determined from the :c:member:"
"`~PyTypeObject.tp_basicsize` field of the type object."
"Python object header are not initialized. The caller will own the only "
"reference to the object (i.e. its reference count will be one). The size of "
"the memory allocation is determined from the :c:member:`~PyTypeObject."
"tp_basicsize` field of the type object."
msgstr ""
"使用 C 結構型別 *TYPE* 和 Python 型別物件 *typeobj* (``PyTypeObject*``) 分配"
"一個新的 Python 物件。未在該 Python 物件標頭 (header) 中定義的欄位不會被初始"
"化;物件的參照計數將為一。記憶體分配大小由 type 物件的 :c:member:"
"`~PyTypeObject.tp_basicsize` 欄位來指定。"
"化;呼叫者會擁有那個對於物件的唯一參照(物件的參照計數為一)。記憶體分配大小"
"由 type 物件的 :c:member:`~PyTypeObject.tp_basicsize` 欄位來指定。"

#: ../../c-api/allocation.rst:42
#: ../../c-api/allocation.rst:43
msgid ""
"Allocate a new Python object using the C structure type *TYPE* and the "
"Python type object *typeobj* (``PyTypeObject*``). Fields not defined by the "
Expand All@@ -78,7 +79,7 @@ msgstr ""
"於實現如 tuple 這種能夠在建立期間決定自己大小的物件是很實用的。將欄位的陣列嵌"
"入到相同的記憶體分配中可以減少記憶體分配的次數,這提高了記憶體管理的效率。"

#: ../../c-api/allocation.rst:56
#: ../../c-api/allocation.rst:57
msgid ""
"Releases memory allocated to an object using :c:macro:`PyObject_New` or :c:"
"macro:`PyObject_NewVar`. This is normally called from the :c:member:"
Expand All@@ -91,7 +92,7 @@ msgstr ""
"handler 中呼叫。呼叫這個函式以後,物件的各欄位都不可以被存取,因為原本分配的"
"記憶體已不再是一個有效的 Python 物件。"

#: ../../c-api/allocation.rst:65
#: ../../c-api/allocation.rst:66
msgid ""
"Object which is visible in Python as ``None``. This should only be accessed "
"using the :c:macro:`Py_None` macro, which evaluates to a pointer to this "
Expand All@@ -100,10 +101,10 @@ msgstr ""
"這個物件像是 Python 中的 ``None``。它只應該透過 :c:macro:`Py_None` 巨集來存"
"取,該巨集的拿到指向該物件的指標。"

#: ../../c-api/allocation.rst:72
#: ../../c-api/allocation.rst:73
msgid ":c:func:`PyModule_Create`"
msgstr ":c:func:`PyModule_Create`"

#: ../../c-api/allocation.rst:73
#: ../../c-api/allocation.rst:74
msgid "To allocate and create extension modules."
msgstr "分配記憶體和建立擴充模組。"
Loading

[8]ページ先頭

©2009-2025 Movatter.jp