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

Commit999ff5d

Browse files
authored
Merge branch '3.12' into translate-email-charset
2 parents6673674 +b77bd3a commit999ff5d

File tree

100 files changed

+7300
-6945
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

100 files changed

+7300
-6945
lines changed

‎c-api/allocation.po

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ msgid ""
1010
msgstr ""
1111
"Project-Id-Version:Python 3.12\n"
1212
"Report-Msgid-Bugs-To:\n"
13-
"POT-Creation-Date:2023-07-29 00:03+0000\n"
13+
"POT-Creation-Date:2023-08-09 00:03+0000\n"
1414
"PO-Revision-Date:2022-10-16 15:35+0800\n"
1515
"Last-Translator:Matt Wang <mattwang44@gmail.com>\n"
1616
"Language-Team:Chinese - TAIWAN (https://github.com/python/python-docs-zh-"
@@ -50,16 +50,17 @@ msgstr ""
5050
msgid""
5151
"Allocate a new Python object using the C structure type *TYPE* and the "
5252
"Python type object *typeobj* (``PyTypeObject*``). Fields not defined by the "
53-
"Python object header are not initialized; the object's reference count will "
54-
"be one. The size of the memory allocation is determined from the :c:member:"
55-
"`~PyTypeObject.tp_basicsize` field of the type object."
53+
"Python object header are not initialized. The caller will own the only "
54+
"reference to the object (i.e. its reference count will be one). The size of "
55+
"the memory allocation is determined from the :c:member:`~PyTypeObject."
56+
"tp_basicsize` field of the type object."
5657
msgstr""
5758
"使用 C 結構型別 *TYPE* 和 Python 型別物件 *typeobj* (``PyTypeObject*``) 分配"
5859
"一個新的 Python 物件。未在該 Python 物件標頭 (header) 中定義的欄位不會被初始"
59-
"化;物件的參照計數將為一。記憶體分配大小由 type 物件的 :c:member:"
60-
"`~PyTypeObject.tp_basicsize` 欄位來指定。"
60+
"化;呼叫者會擁有那個對於物件的唯一參照(物件的參照計數為一)。記憶體分配大小"
61+
"由 type 物件的 :c:member:`~PyTypeObject.tp_basicsize` 欄位來指定。"
6162

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

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

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

103-
#:../../c-api/allocation.rst:72
104+
#:../../c-api/allocation.rst:73
104105
msgid":c:func:`PyModule_Create`"
105106
msgstr":c:func:`PyModule_Create`"
106107

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

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp