@@ -12,7 +12,7 @@ msgid ""
1212msgstr ""
1313"Project-Id-Version : Python 3.12\n "
1414"Report-Msgid-Bugs-To : \n "
15- "POT-Creation-Date : 2023-07-21 14:13+0000\n "
15+ "POT-Creation-Date : 2023-07-28 14:13+0000\n "
1616"PO-Revision-Date : 2021-06-28 00:47+0000\n "
1717"Last-Translator : 菊池 健志, 2023\n "
1818"Language-Team : Japanese (https://app.transifex.com/python-doc/teams/5390/ "
@@ -52,52 +52,35 @@ msgstr ""
5252#: ../../c-api/allocation.rst:32
5353msgid ""
5454"Allocate a new Python object using the C structure type *TYPE* and the "
55- "Python type object *type*. Fields not defined by the Python object header "
56- "are not initialized; the object's reference count will be one. The size of "
57- "the memory allocation is determined from the :c:member:`~PyTypeObject. "
58- "tp_basicsize` field of the type object."
55+ "Python type object *typeobj* (``PyTypeObject*``). Fields not defined by the "
56+ "Python object header are not initialized; the object's reference count will "
57+ "be one. The size of the memory allocation is determined from the :c:member:"
58+ "`~PyTypeObject. tp_basicsize` field of the type object."
5959msgstr ""
60- "C 構造体型 *TYPE* と Python型オブジェクト *type* を使って、新しい Python オブ"
61- "ジェクトをメモリ上に確保します。Pythonオブジェクトヘッダで定義されていない"
62- "フィールドは初期化されません; オブジェクトの参照カウントは 1 になります。確保"
63- "するメモリのサイズは型オブジェクトの :c:member:`~PyTypeObject.tp_basicsize` "
64- "フィールドで決まります。"
6560
66- #: ../../c-api/allocation.rst:41
61+ #: ../../c-api/allocation.rst:42
6762msgid ""
6863"Allocate a new Python object using the C structure type *TYPE* and the "
69- "Python type object *type*. Fields not defined by the Python object header "
70- "are not initialized. The allocated memory allows for the *TYPE* structure "
71- "plus *size* fields of the size given by the :c:member:`~PyTypeObject."
72- "tp_itemsize` field of *type*. This is useful for implementing objects like "
73- "tuples, which are able to determine their size at construction time. "
74- "Embedding the array of fields into the same allocation decreases the number "
75- "of allocations, improving the memory management efficiency."
64+ "Python type object *typeobj* (``PyTypeObject*``). Fields not defined by the "
65+ "Python object header are not initialized. The allocated memory allows for "
66+ "the *TYPE* structure plus *size* (``Py_ssize_t``) fields of the size given "
67+ "by the :c:member:`~PyTypeObject.tp_itemsize` field of *typeobj*. This is "
68+ "useful for implementing objects like tuples, which are able to determine "
69+ "their size at construction time. Embedding the array of fields into the "
70+ "same allocation decreases the number of allocations, improving the memory "
71+ "management efficiency."
7672msgstr ""
77- "C 構造体型 *TYPE* と Python 型オブジェクト *type* を使って新しい Python オブ"
78- "ジェクトをメモリ上に確保します。 Python オブジェクトヘッダで定義されていない"
79- "フィールドは初期化されません。確保されたメモリは、 *TYPE* 構造体に加え、"
80- "*type* の :c:member:`~PyTypeObject.tp_itemsize` フィールドで指定されているサ"
81- "イズを *size* 個分の大きさを格納できます。この関数は、例えばタプルのように生"
82- "成時にサイズを決定できるオブジェクトを実装する際に便利です。一連の複数の"
83- "フィールドのメモリ割り当てを一度で行うことでアロケーション回数を減らし、メモ"
84- "リ管理の効率が向上します。"
8573
86- #: ../../c-api/allocation.rst:53
74+ #: ../../c-api/allocation.rst:56
8775msgid ""
88- "Releases memory allocated to an object using :c:func :`PyObject_New` or :c:"
89- "func :`PyObject_NewVar`. This is normally called from the :c:member:"
76+ "Releases memory allocated to an object using :c:macro :`PyObject_New` or :c:"
77+ "macro :`PyObject_NewVar`. This is normally called from the :c:member:"
9078"`~PyTypeObject.tp_dealloc` handler specified in the object's type. The "
9179"fields of the object should not be accessed after this call as the memory is "
9280"no longer a valid Python object."
9381msgstr ""
94- ":c:func:`PyObject_New` や :c:func:`PyObject_NewVar` で 確保したメモリを解放し"
95- "ます。通常、この関数はオブジェクトの型に指定されている :c:member:"
96- "`~PyTypeObject.tp_dealloc` ハンドラから呼び出されます。 この関数を呼び出した"
97- "後は、メモリ領域はもはや有効な Python オブジェクトを表現していないので、オブ"
98- "ジェクトのフィールド に対してアクセスしてはなりません。"
9982
100- #: ../../c-api/allocation.rst:62
83+ #: ../../c-api/allocation.rst:65
10184msgid ""
10285"Object which is visible in Python as ``None``. This should only be accessed "
10386"using the :c:macro:`Py_None` macro, which evaluates to a pointer to this "
@@ -107,10 +90,10 @@ msgstr ""
10790"ブジェクトへのポインタを評価する :c:macro:`Py_None` マクロを使わなければなり"
10891"ません。"
10992
110- #: ../../c-api/allocation.rst:69
93+ #: ../../c-api/allocation.rst:72
11194msgid ":c:func:`PyModule_Create`"
11295msgstr ":c:func:`PyModule_Create`"
11396
114- #: ../../c-api/allocation.rst:70
97+ #: ../../c-api/allocation.rst:73
11598msgid "To allocate and create extension modules."
11699msgstr "拡張モジュールのアロケートと生成。"
0 commit comments