GitHub Viewer
# SOME DESCRIPTIVE TITLE.
# Copyright (C) 2001 Python Software Foundation
# This file is distributed under the same license as the Python package.
# FIRST AUTHOR , YEAR.
#
# Translators:
# python-doc bot, 2025
# Inada Naoki , 2026
#
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: Python 3.15\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2026-10-25 17:19+0000\n"
"PO-Revision-Date: 2025-09-16 00:00+0000\n"
"Last-Translator: Inada Naoki , 2026\n"
"Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/"
"ja/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Language: ja\n"
"Plural-Forms: nplurals=1; plural=0;\n"
msgid "Allocating objects on the heap"
msgstr "ヒープ上でのオブジェクトの割り当て"
msgid ""
"Initialize a newly allocated object *op* with its type and initial "
"reference. Returns the initialized object. Other fields of the object are "
"not initialized. Despite its name, this function is unrelated to the "
"object's :meth:`~object.__init__` method (:c:member:`~PyTypeObject.tp_init` "
"slot). Specifically, this function does **not** call the object's :meth:`!"
"__init__` method."
msgstr ""
"新しく割り当てたオブジェクト *op* の型と初期の参照を設定し、初期化したオブ"
"ジェクトを返します。\n"
"オブジェクトの他のフィールドは初期化しません。\n"
"名前に反して、この関数はオブジェクトの :meth:`~object.__init__` メソッド (:c:"
"member:`~PyTypeObject.tp_init` スロット) とは無関係です。\n"
"特に、この関数はオブジェクトの :meth:`!__init__` メソッドを呼び出し **ません"
"**。"
msgid ""
"In general, consider this function to be a low-level routine. Use :c:member:"
"`~PyTypeObject.tp_alloc` where possible. For implementing :c:member:`!"
"tp_alloc` for your type, prefer :c:func:`PyType_GenericAlloc` or :c:func:"
"`PyObject_New`."
msgstr ""
"一般に、この関数は低レベルのルーチンとして扱ってください。\n"
"可能な場合は :c:member:`~PyTypeObject.tp_alloc` を使ってください。\n"
"自分の型の :c:member:`!tp_alloc` を実装する場合は、:c:func:"
"`PyType_GenericAlloc` または :c:func:`PyObject_New` を優先してください。"
msgid ""
"This function only initializes the object's memory corresponding to the "
"initial :c:type:`PyObject` structure. It does not zero the rest."
msgstr ""
"この関数が初期化するのは、オブジェクトのメモリのうち先頭の :c:type:"
"`PyObject` 構造体に対応する部分だけです。\n"
"残りの部分をゼロで埋めることはありません。"
#: ../../c-api/allocation.rst:37
msgid ""
"This does everything :c:func:`PyObject_Init` does, and also initializes the "
"length information for a variable-size object."
msgstr ""
":c:func:`PyObject_Init` の全ての処理を行い、可変サイズオブジェクトの場合には"
"長さ情報も初期化します。"
msgid ""
"This function only initializes some of the object's memory. It does not "
"zero the rest."
msgstr ""
"この関数が初期化するのは、オブジェクトのメモリの一部だけです。\n"
"残りの部分をゼロで埋めることはありません。"
msgid ""
"Allocates a new Python object using the C structure type *TYPE* and the "
"Python type object *typeobj* (``PyTypeObject*``) by calling :c:func:"
"`PyObject_Malloc` to allocate memory and initializing it like :c:func:"
"`PyObject_Init`. The caller will own the only reference to the object (i.e. "
"its reference count will be one)."
msgstr ""
"C の構造体型 *TYPE* と Python の型オブジェクト *typeobj* (``PyTypeObject*``) "
"を使って、新しい Python オブジェクトを割り当てます。\n"
":c:func:`PyObject_Malloc` を呼び出してメモリを割り当て、:c:func:"
"`PyObject_Init` と同じように初期化します。\n"
"呼び出し側がオブジェクトへの唯一の参照を所有します (つまり参照カウントは 1 に"
"なります)。"
msgid ""
"Avoid calling this directly to allocate memory for an object; call the "
"type's :c:member:`~PyTypeObject.tp_alloc` slot instead."
msgstr ""
"オブジェクトのメモリを割り当てるためにこれを直接呼び出すのは避け、代わりに型"
"の :c:member:`~PyTypeObject.tp_alloc` スロットを呼び出してください。"
msgid ""
"When populating a type's :c:member:`~PyTypeObject.tp_alloc` slot, :c:func:"
"`PyType_GenericAlloc` is preferred over a custom function that simply calls "
"this macro."
msgstr ""
"型の :c:member:`~PyTypeObject.tp_alloc` スロットには、このマクロを呼び出すだ"
"けの独自の関数よりも :c:func:`PyType_GenericAlloc` を設定することが推奨されま"
"す。"
msgid ""
"This macro does not call :c:member:`~PyTypeObject.tp_alloc`, :c:member:"
"`~PyTypeObject.tp_new` (:meth:`~object.__new__`), or :c:member:"
"`~PyTypeObject.tp_init` (:meth:`~object.__init__`)."
msgstr ""
"このマクロは :c:member:`~PyTypeObject.tp_alloc`、:c:member:`~PyTypeObject."
"tp_new` (:meth:`~object.__new__`)、:c:member:`~PyTypeObject.tp_init` (:meth:"
"`~object.__init__`) を呼び出しません。"
msgid ""
"This cannot be used for objects with :c:macro:`Py_TPFLAGS_HAVE_GC` set in :c:"
"member:`~PyTypeObject.tp_flags`; use :c:macro:`PyObject_GC_New` instead."
msgstr ""
":c:member:`~PyTypeObject.tp_flags` に :c:macro:`Py_TPFLAGS_HAVE_GC` が設定さ"
"れたオブジェクトには使えません。\n"
"代わりに :c:macro:`PyObject_GC_New` を使ってください。"
msgid ""
"Memory allocated by this macro must be freed with :c:func:`PyObject_Free` "
"(usually called via the object's :c:member:`~PyTypeObject.tp_free` slot)."
msgstr ""
"このマクロで割り当てたメモリは :c:func:`PyObject_Free` で解放しなければなりま"
"せん (通常はオブジェクトの :c:member:`~PyTypeObject.tp_free` スロットを介して"
"呼び出します)。"
msgid ""
"The returned memory is not guaranteed to have been completely zeroed before "
"it was initialized."
msgstr "返されるメモリが初期化前にすべてゼロで埋められているとは限りません。"
msgid ""
"This macro does not construct a fully initialized object of the given type; "
"it merely allocates memory and prepares it for further initialization by :c:"
"member:`~PyTypeObject.tp_init`. To construct a fully initialized object, "
"call *typeobj* instead. For example::"
msgstr ""
"このマクロは指定された型の完全に初期化されたオブジェクトを構築するものではあ"
"りません。\n"
"メモリを割り当て、:c:member:`~PyTypeObject.tp_init` によるさらなる初期化の準"
"備をするだけです。\n"
"完全に初期化されたオブジェクトを構築するには、代わりに *typeobj* を呼び出して"
"ください。\n"
"例えば次のようにします。 ::"
msgid "PyObject *foo = PyObject_CallNoArgs((PyObject *)&PyFoo_Type);"
msgstr "PyObject *foo = PyObject_CallNoArgs((PyObject *)&PyFoo_Type);"
#: ../../c-api/allocation.rst:87 ../../c-api/allocation.rst:137
#: ../../c-api/allocation.rst:184 ../../c-api/allocation.rst:186
#: ../../c-api/allocation.rst:188
msgid ":c:func:`PyObject_Free`"
msgstr ":c:func:`PyObject_Free`"
msgid ":c:macro:`PyObject_GC_New`"
msgstr ":c:macro:`PyObject_GC_New`"
msgid ":c:func:`PyType_GenericAlloc`"
msgstr ":c:func:`PyType_GenericAlloc`"
#: ../../c-api/allocation.rst:90 ../../c-api/allocation.rst:140
msgid ":c:member:`~PyTypeObject.tp_alloc`"
msgstr ":c:member:`~PyTypeObject.tp_alloc`"
msgid "Like :c:macro:`PyObject_New` except:"
msgstr ":c:macro:`PyObject_New` と同じですが、次の点が異なります。"
msgid ""
"It allocates enough memory for the *TYPE* structure plus *size* "
"(``Py_ssize_t``) fields of the size given by the :c:member:`~PyTypeObject."
"tp_itemsize` field of *typeobj*."
msgstr ""
"*TYPE* 構造体に加え、*typeobj* の :c:member:`~PyTypeObject.tp_itemsize` "
"フィールドが指定するサイズのフィールド *size* 個分 (``Py_ssize_t``) のメモリ"
"を割り当てます。"
msgid "The memory is initialized like :c:func:`PyObject_InitVar`."
msgstr "メモリは :c:func:`PyObject_InitVar` と同じように初期化されます。"
msgid ""
"This is useful for implementing objects like tuples, which are able to "
"determine their size at construction time. Embedding the array of fields "
"into the same allocation decreases the number of allocations, improving the "
"memory management efficiency."
msgstr ""
"これはタプルのように構築時にサイズを決定できるオブジェクトの実装に役立ちま"
"す。\n"
"フィールドの配列を同じ割り当て領域に埋め込むことで、割り当て回数を減らし、メ"
"モリ管理の効率を高められます。"
msgid ""
"This cannot be used for objects with :c:macro:`Py_TPFLAGS_HAVE_GC` set in :c:"
"member:`~PyTypeObject.tp_flags`; use :c:macro:`PyObject_GC_NewVar` instead."
msgstr ""
":c:member:`~PyTypeObject.tp_flags` に :c:macro:`Py_TPFLAGS_HAVE_GC` が設定さ"
"れたオブジェクトには使えません。\n"
"代わりに :c:macro:`PyObject_GC_NewVar` を使ってください。"
msgid ""
"Memory allocated by this function must be freed with :c:func:`PyObject_Free` "
"(usually called via the object's :c:member:`~PyTypeObject.tp_free` slot)."
msgstr ""
"この関数で割り当てたメモリは :c:func:`PyObject_Free` で解放しなければなりませ"
"ん (通常はオブジェクトの :c:member:`~PyTypeObject.tp_free` スロットを介して呼"
"び出します)。"
msgid ""
"PyObject *list_instance = PyObject_CallNoArgs((PyObject *)&PyList_Type);"
msgstr ""
"PyObject *list_instance = PyObject_CallNoArgs((PyObject *)&PyList_Type);"
msgid ":c:macro:`PyObject_GC_NewVar`"
msgstr ":c:macro:`PyObject_GC_NewVar`"
#: ../../c-api/allocation.rst:145
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 "
"object."
msgstr ""
"Python からは ``None`` に見えるオブジェクトです。この値へのアクセスは、このオ"
"ブジェクトへのポインタを評価する :c:macro:`Py_None` マクロを使わなければなり"
"ません。"
msgid ":ref:`moduleobjects`"
msgstr ":ref:`moduleobjects`"
#: ../../c-api/allocation.rst:153
msgid "To allocate and create extension modules."
msgstr "拡張モジュールのアロケートと生成。"
msgid "Soft-deprecated aliases"
msgstr "緩やかに非推奨となった別名"
msgid ""
"These are aliases to existing functions and macros. They exist solely for "
"backwards compatibility."
msgstr ""
"これらは既存の関数やマクロの別名です。\n"
"後方互換性のためだけに残されています。"
msgid "Soft-deprecated alias"
msgstr "緩やかに非推奨となった別名"
#: ../../c-api/allocation.rst:170
msgid "Function"
msgstr "関数"
msgid ":c:macro:`PyObject_New`"
msgstr ":c:macro:`PyObject_New`"
msgid ":c:macro:`PyObject_NewVar`"
msgstr ":c:macro:`PyObject_NewVar`"
msgid ":c:func:`PyObject_Init`"
msgstr ":c:func:`PyObject_Init`"
msgid ":c:func:`PyObject_InitVar`"
msgstr ":c:func:`PyObject_InitVar`"
#: ../../c-api/allocation.rst:180
msgid ":c:func:`PyObject_Malloc`"
msgstr ":c:func:`PyObject_Malloc`"
#: ../../c-api/allocation.rst:182
msgid ":c:func:`PyObject_Realloc`"
msgstr ":c:func:`PyObject_Realloc`"