55#
66# Translators:
77# python-doc bot, 2025
8+ # Inada Naoki <songofacandy@gmail.com>, 2026
89#
910#, fuzzy
1011msgid ""
1112msgstr ""
1213"Project-Id-Version : Python 3.15\n "
1314"Report-Msgid-Bugs-To : \n "
14- "POT-Creation-Date : 2026-10-01 19:07 +0000\n "
15+ "POT-Creation-Date : 2026-10-25 17:19 +0000\n "
1516"PO-Revision-Date : 2025-09-16 00:00+0000\n "
16- "Last-Translator : python-doc bot, 2025 \n "
17+ "Last-Translator : Inada Naoki <songofacandy@gmail.com>, 2026 \n "
1718"Language-Team : Japanese (https://app.transifex.com/python-doc/teams/5390/ "
1819"ja/)\n "
1920"MIME-Version : 1.0\n "
@@ -22,11 +23,9 @@ msgstr ""
2223"Language : ja\n "
2324"Plural-Forms : nplurals=1; plural=0;\n "
2425
25- #: ../../c-api/allocation.rst:6
2626msgid "Allocating objects on the heap"
27- msgstr ""
27+ msgstr "ヒープ上でのオブジェクトの割り当て "
2828
29- #: ../../c-api/allocation.rst:17
3029msgid ""
3130"Initialize a newly allocated object *op* with its type and initial "
3231"reference. Returns the initialized object. Other fields of the object are "
@@ -35,20 +34,32 @@ msgid ""
3534"slot). Specifically, this function does **not** call the object's :meth:`!"
3635"__init__` method."
3736msgstr ""
37+ "新しく割り当てたオブジェクト *op* の型と初期の参照を設定し、初期化したオブ"
38+ "ジェクトを返します。\n"
39+ "オブジェクトの他のフィールドは初期化しません。\n"
40+ "名前に反して、この関数はオブジェクトの :meth:`~object.__init__` メソッド (:c:"
41+ "member:`~PyTypeObject.tp_init` スロット) とは無関係です。\n"
42+ "特に、この関数はオブジェクトの :meth:`!__init__` メソッドを呼び出し **ません"
43+ "**。"
3844
39- #: ../../c-api/allocation.rst:24
4045msgid ""
4146"In general, consider this function to be a low-level routine. Use :c:member:"
4247"`~PyTypeObject.tp_alloc` where possible. For implementing :c:member:`!"
4348"tp_alloc` for your type, prefer :c:func:`PyType_GenericAlloc` or :c:func:"
4449"`PyObject_New`."
4550msgstr ""
51+ "一般に、この関数は低レベルのルーチンとして扱ってください。\n"
52+ "可能な場合は :c:member:`~PyTypeObject.tp_alloc` を使ってください。\n"
53+ "自分の型の :c:member:`!tp_alloc` を実装する場合は、:c:func:"
54+ "`PyType_GenericAlloc` または :c:func:`PyObject_New` を優先してください。"
4655
47- #: ../../c-api/allocation.rst:31
4856msgid ""
4957"This function only initializes the object's memory corresponding to the "
5058"initial :c:type:`PyObject` structure. It does not zero the rest."
5159msgstr ""
60+ "この関数が初期化するのは、オブジェクトのメモリのうち先頭の :c:type:"
61+ "`PyObject` 構造体に対応する部分だけです。\n"
62+ "残りの部分をゼロで埋めることはありません。"
5263
5364#: ../../c-api/allocation.rst:37
5465msgid ""
@@ -58,132 +69,155 @@ msgstr ""
5869":c:func:`PyObject_Init` の全ての処理を行い、可変サイズオブジェクトの場合には"
5970"長さ情報も初期化します。"
6071
61- #: ../../c-api/allocation.rst:42
6272msgid ""
6373"This function only initializes some of the object's memory. It does not "
6474"zero the rest."
6575msgstr ""
76+ "この関数が初期化するのは、オブジェクトのメモリの一部だけです。\n"
77+ "残りの部分をゼロで埋めることはありません。"
6678
67- #: ../../c-api/allocation.rst:48
6879msgid ""
6980"Allocates a new Python object using the C structure type *TYPE* and the "
7081"Python type object *typeobj* (``PyTypeObject*``) by calling :c:func:"
7182"`PyObject_Malloc` to allocate memory and initializing it like :c:func:"
7283"`PyObject_Init`. The caller will own the only reference to the object (i.e. "
7384"its reference count will be one)."
7485msgstr ""
86+ "C の構造体型 *TYPE* と Python の型オブジェクト *typeobj* (``PyTypeObject*``) "
87+ "を使って、新しい Python オブジェクトを割り当てます。\n"
88+ ":c:func:`PyObject_Malloc` を呼び出してメモリを割り当て、:c:func:"
89+ "`PyObject_Init` と同じように初期化します。\n"
90+ "呼び出し側がオブジェクトへの唯一の参照を所有します (つまり参照カウントは 1 に"
91+ "なります)。"
7592
76- #: ../../c-api/allocation.rst:54 ../../c-api/allocation.rst:107
7793msgid ""
7894"Avoid calling this directly to allocate memory for an object; call the "
7995"type's :c:member:`~PyTypeObject.tp_alloc` slot instead."
8096msgstr ""
97+ "オブジェクトのメモリを割り当てるためにこれを直接呼び出すのは避け、代わりに型"
98+ "の :c:member:`~PyTypeObject.tp_alloc` スロットを呼び出してください。"
8199
82- #: ../../c-api/allocation.rst:57 ../../c-api/allocation.rst:110
83100msgid ""
84101"When populating a type's :c:member:`~PyTypeObject.tp_alloc` slot, :c:func:"
85102"`PyType_GenericAlloc` is preferred over a custom function that simply calls "
86103"this macro."
87104msgstr ""
105+ "型の :c:member:`~PyTypeObject.tp_alloc` スロットには、このマクロを呼び出すだ"
106+ "けの独自の関数よりも :c:func:`PyType_GenericAlloc` を設定することが推奨されま"
107+ "す。"
88108
89- #: ../../c-api/allocation.rst:61
90109msgid ""
91110"This macro does not call :c:member:`~PyTypeObject.tp_alloc`, :c:member:"
92111"`~PyTypeObject.tp_new` (:meth:`~object.__new__`), or :c:member:"
93112"`~PyTypeObject.tp_init` (:meth:`~object.__init__`)."
94113msgstr ""
114+ "このマクロは :c:member:`~PyTypeObject.tp_alloc`、:c:member:`~PyTypeObject."
115+ "tp_new` (:meth:`~object.__new__`)、:c:member:`~PyTypeObject.tp_init` (:meth:"
116+ "`~object.__init__`) を呼び出しません。"
95117
96- #: ../../c-api/allocation.rst:65
97118msgid ""
98119"This cannot be used for objects with :c:macro:`Py_TPFLAGS_HAVE_GC` set in :c:"
99120"member:`~PyTypeObject.tp_flags`; use :c:macro:`PyObject_GC_New` instead."
100121msgstr ""
122+ ":c:member:`~PyTypeObject.tp_flags` に :c:macro:`Py_TPFLAGS_HAVE_GC` が設定さ"
123+ "れたオブジェクトには使えません。\n"
124+ "代わりに :c:macro:`PyObject_GC_New` を使ってください。"
101125
102- #: ../../c-api/allocation.rst:68
103126msgid ""
104127"Memory allocated by this macro must be freed with :c:func:`PyObject_Free` "
105128"(usually called via the object's :c:member:`~PyTypeObject.tp_free` slot)."
106129msgstr ""
130+ "このマクロで割り当てたメモリは :c:func:`PyObject_Free` で解放しなければなりま"
131+ "せん (通常はオブジェクトの :c:member:`~PyTypeObject.tp_free` スロットを介して"
132+ "呼び出します)。"
107133
108- #: ../../c-api/allocation.rst:73 ../../c-api/allocation.rst:123
109134msgid ""
110135"The returned memory is not guaranteed to have been completely zeroed before "
111136"it was initialized."
112- msgstr ""
137+ msgstr "返されるメモリが初期化前にすべてゼロで埋められているとは限りません。 "
113138
114- #: ../../c-api/allocation.rst:78 ../../c-api/allocation.rst:128
115139msgid ""
116140"This macro does not construct a fully initialized object of the given type; "
117141"it merely allocates memory and prepares it for further initialization by :c:"
118142"member:`~PyTypeObject.tp_init`. To construct a fully initialized object, "
119143"call *typeobj* instead. For example::"
120144msgstr ""
145+ "このマクロは指定された型の完全に初期化されたオブジェクトを構築するものではあ"
146+ "りません。\n"
147+ "メモリを割り当て、:c:member:`~PyTypeObject.tp_init` によるさらなる初期化の準"
148+ "備をするだけです。\n"
149+ "完全に初期化されたオブジェクトを構築するには、代わりに *typeobj* を呼び出して"
150+ "ください。\n"
151+ "例えば次のようにします。 ::"
121152
122- #: ../../c-api/allocation.rst:83
123153msgid "PyObject *foo = PyObject_CallNoArgs((PyObject *)&PyFoo_Type);"
124- msgstr ""
154+ msgstr "PyObject *foo = PyObject_CallNoArgs((PyObject *)&PyFoo_Type); "
125155
126156#: ../../c-api/allocation.rst:87 ../../c-api/allocation.rst:137
127157#: ../../c-api/allocation.rst:184 ../../c-api/allocation.rst:186
128158#: ../../c-api/allocation.rst:188
129159msgid ":c:func:`PyObject_Free`"
130160msgstr ":c:func:`PyObject_Free`"
131161
132- #: ../../c-api/allocation.rst:88
133162msgid ":c:macro:`PyObject_GC_New`"
134- msgstr ""
163+ msgstr ":c:macro:`PyObject_GC_New` "
135164
136- #: ../../c-api/allocation.rst:89 ../../c-api/allocation.rst:139
137165msgid ":c:func:`PyType_GenericAlloc`"
138- msgstr ""
166+ msgstr ":c:func:`PyType_GenericAlloc` "
139167
140168#: ../../c-api/allocation.rst:90 ../../c-api/allocation.rst:140
141169msgid ":c:member:`~PyTypeObject.tp_alloc`"
142170msgstr ":c:member:`~PyTypeObject.tp_alloc`"
143171
144- #: ../../c-api/allocation.rst:95
145172msgid "Like :c:macro:`PyObject_New` except:"
146- msgstr ""
173+ msgstr ":c:macro:`PyObject_New` と同じですが、次の点が異なります。 "
147174
148- #: ../../c-api/allocation.rst:97
149175msgid ""
150176"It allocates enough memory for the *TYPE* structure plus *size* "
151177"(``Py_ssize_t``) fields of the size given by the :c:member:`~PyTypeObject."
152178"tp_itemsize` field of *typeobj*."
153179msgstr ""
180+ "*TYPE* 構造体に加え、*typeobj* の :c:member:`~PyTypeObject.tp_itemsize` "
181+ "フィールドが指定するサイズのフィールド *size* 個分 (``Py_ssize_t``) のメモリ"
182+ "を割り当てます。"
154183
155- #: ../../c-api/allocation.rst:100
156184msgid "The memory is initialized like :c:func:`PyObject_InitVar`."
157- msgstr ""
185+ msgstr "メモリは :c:func:`PyObject_InitVar` と同じように初期化されます。 "
158186
159- #: ../../c-api/allocation.rst:102
160187msgid ""
161188"This is useful for implementing objects like tuples, which are able to "
162189"determine their size at construction time. Embedding the array of fields "
163190"into the same allocation decreases the number of allocations, improving the "
164191"memory management efficiency."
165192msgstr ""
193+ "これはタプルのように構築時にサイズを決定できるオブジェクトの実装に役立ちま"
194+ "す。\n"
195+ "フィールドの配列を同じ割り当て領域に埋め込むことで、割り当て回数を減らし、メ"
196+ "モリ管理の効率を高められます。"
166197
167- #: ../../c-api/allocation.rst:114
168198msgid ""
169199"This cannot be used for objects with :c:macro:`Py_TPFLAGS_HAVE_GC` set in :c:"
170200"member:`~PyTypeObject.tp_flags`; use :c:macro:`PyObject_GC_NewVar` instead."
171201msgstr ""
202+ ":c:member:`~PyTypeObject.tp_flags` に :c:macro:`Py_TPFLAGS_HAVE_GC` が設定さ"
203+ "れたオブジェクトには使えません。\n"
204+ "代わりに :c:macro:`PyObject_GC_NewVar` を使ってください。"
172205
173- #: ../../c-api/allocation.rst:118
174206msgid ""
175207"Memory allocated by this function must be freed with :c:func:`PyObject_Free` "
176208"(usually called via the object's :c:member:`~PyTypeObject.tp_free` slot)."
177209msgstr ""
210+ "この関数で割り当てたメモリは :c:func:`PyObject_Free` で解放しなければなりませ"
211+ "ん (通常はオブジェクトの :c:member:`~PyTypeObject.tp_free` スロットを介して呼"
212+ "び出します)。"
178213
179- #: ../../c-api/allocation.rst:133
180214msgid ""
181215"PyObject *list_instance = PyObject_CallNoArgs((PyObject *)&PyList_Type);"
182216msgstr ""
217+ "PyObject *list_instance = PyObject_CallNoArgs((PyObject *)&PyList_Type);"
183218
184- #: ../../c-api/allocation.rst:138
185219msgid ":c:macro:`PyObject_GC_NewVar`"
186- msgstr ""
220+ msgstr ":c:macro:`PyObject_GC_NewVar` "
187221
188222#: ../../c-api/allocation.rst:145
189223msgid ""
@@ -195,47 +229,41 @@ msgstr ""
195229"ブジェクトへのポインタを評価する :c:macro:`Py_None` マクロを使わなければなり"
196230"ません。"
197231
198- #: ../../c-api/allocation.rst:152
199232msgid ":ref:`moduleobjects`"
200- msgstr ""
233+ msgstr ":ref:`moduleobjects` "
201234
202235#: ../../c-api/allocation.rst:153
203236msgid "To allocate and create extension modules."
204237msgstr "拡張モジュールのアロケートと生成。"
205238
206- #: ../../c-api/allocation.rst:157
207239msgid "Soft-deprecated aliases"
208- msgstr ""
240+ msgstr "緩やかに非推奨となった別名 "
209241
210- #: ../../c-api/allocation.rst:161
211242msgid ""
212243"These are aliases to existing functions and macros. They exist solely for "
213244"backwards compatibility."
214245msgstr ""
246+ "これらは既存の関数やマクロの別名です。\n"
247+ "後方互換性のためだけに残されています。"
215248
216- #: ../../c-api/allocation.rst:169
217249msgid "Soft-deprecated alias"
218- msgstr ""
250+ msgstr "緩やかに非推奨となった別名 "
219251
220252#: ../../c-api/allocation.rst:170
221253msgid "Function"
222254msgstr "関数"
223255
224- #: ../../c-api/allocation.rst:172
225256msgid ":c:macro:`PyObject_New`"
226- msgstr ""
257+ msgstr ":c:macro:`PyObject_New` "
227258
228- #: ../../c-api/allocation.rst:174
229259msgid ":c:macro:`PyObject_NewVar`"
230- msgstr ""
260+ msgstr ":c:macro:`PyObject_NewVar` "
231261
232- #: ../../c-api/allocation.rst:176
233262msgid ":c:func:`PyObject_Init`"
234- msgstr ""
263+ msgstr ":c:func:`PyObject_Init` "
235264
236- #: ../../c-api/allocation.rst:178
237265msgid ":c:func:`PyObject_InitVar`"
238- msgstr ""
266+ msgstr ":c:func:`PyObject_InitVar` "
239267
240268#: ../../c-api/allocation.rst:180
241269msgid ":c:func:`PyObject_Malloc`"
0 commit comments