diff --git a/about.po b/about.po index 6a1d95e17..9fa76130c 100644 --- a/about.po +++ b/about.po @@ -1,21 +1,21 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2025, Python Software Foundation +# Copyright (C) 2001 Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # # Translators: # tomo, 2021 # yaakiyu, 2022 -# souma987, 2022 +# Inada Naoki , 2025 # #, fuzzy msgid "" msgstr "" -"Project-Id-Version: Python 3.13\n" +"Project-Id-Version: Python 3.14\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2025-05-02 14:19+0000\n" +"POT-Creation-Date: 2025-05-23 14:20+0000\n" "PO-Revision-Date: 2021-06-28 00:47+0000\n" -"Last-Translator: souma987, 2022\n" +"Last-Translator: Inada Naoki , 2025\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" "MIME-Version: 1.0\n" @@ -26,7 +26,7 @@ msgstr "" #: ../../about.rst:3 msgid "About this documentation" -msgstr "" +msgstr "このドキュメントについて" #: ../../about.rst:6 msgid "" @@ -34,6 +34,9 @@ msgid "" "`Sphinx`_, a documentation generator originally created for Python and now " "maintained as an independent project." msgstr "" +"Pythonのドキュメントは、`Sphinx`_ を使って、`reStructuredText`_ のソースから" +"生成されています。 Sphinx はもともとPythonのために作られ、現在は独立したプロ" +"ジェクトとして保守されています。" #: ../../about.rst:16 msgid "" @@ -58,13 +61,15 @@ msgid "" "Fred L. Drake, Jr., the creator of the original Python documentation toolset " "and author of much of the content;" msgstr "" +"Fred L. Drake, Jr., オリジナルの Python ドキュメントツールセットの作成者で、" +"ドキュメントの多くを書きました。" #: ../../about.rst:25 msgid "" "the `Docutils `_ project for creating " "reStructuredText and the Docutils suite;" msgstr "" -"`Docutils `_ プロジェクト " +"`Docutils `_ プロジェクトは、 " "reStructuredText と Docutils ツールセットを作成しました。" #: ../../about.rst:27 @@ -77,7 +82,7 @@ msgstr "" #: ../../about.rst:32 msgid "Contributors to the Python documentation" -msgstr "" +msgstr "Pythonドキュメントへの貢献者" #: ../../about.rst:34 msgid "" @@ -94,5 +99,5 @@ msgid "" "It is only with the input and contributions of the Python community that " "Python has such wonderful documentation -- Thank You!" msgstr "" -"Python コミュニティからの情報提供と貢献がなければこの素晴らしいドキュメンテー" -"ションは生まれませんでした -- ありがとう!" +"Python コミュニティからの情報提供と貢献がなければこの素晴らしいドキュメントは" +"生まれませんでした -- ありがとう!" diff --git a/c-api/abstract.po b/c-api/abstract.po index 80d086a6c..afc90f98e 100644 --- a/c-api/abstract.po +++ b/c-api/abstract.po @@ -1,5 +1,5 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2025, Python Software Foundation +# Copyright (C) 2001 Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # @@ -10,17 +10,17 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: Python 3.13\n" +"Project-Id-Version: Python 3.14\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2025-04-25 14:19+0000\n" +"POT-Creation-Date: 2025-05-16 14:19+0000\n" "PO-Revision-Date: 2021-06-28 00:47+0000\n" "Last-Translator: Taichi Haradaguchi, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../c-api/abstract.rst:7 diff --git a/c-api/allocation.po b/c-api/allocation.po index 337eedd79..670afafb7 100644 --- a/c-api/allocation.po +++ b/c-api/allocation.po @@ -4,23 +4,22 @@ # FIRST AUTHOR , YEAR. # # Translators: -# tomo, 2021 -# souma987, 2023 +# tomo, 2025 # #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.14\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2025-05-08 02:53-0300\n" +"POT-Creation-Date: 2025-05-23 14:20+0000\n" "PO-Revision-Date: 2021-06-28 00:47+0000\n" -"Last-Translator: souma987, 2023\n" +"Last-Translator: tomo, 2025\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../c-api/allocation.rst:6 @@ -31,74 +30,164 @@ 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 affected." +"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 "" #: ../../c-api/allocation.rst:24 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 "" + +#: ../../c-api/allocation.rst:31 +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-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` の全ての処理を行い、可変サイズオブジェクトの場合には" "長さ情報も初期化します。" -#: ../../c-api/allocation.rst:30 +#: ../../c-api/allocation.rst:42 +msgid "" +"This function only initializes some of the object's memory. It does not " +"zero the rest." +msgstr "" + +#: ../../c-api/allocation.rst:48 +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-api/allocation.rst:54 ../../c-api/allocation.rst:107 +msgid "" +"Avoid calling this directly to allocate memory for an object; call the " +"type's :c:member:`~PyTypeObject.tp_alloc` slot instead." +msgstr "" + +#: ../../c-api/allocation.rst:57 ../../c-api/allocation.rst:110 +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-api/allocation.rst:61 +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-api/allocation.rst:65 +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-api/allocation.rst:68 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 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." +"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 の構造体型 *TYPE* と Python の型オブジェクト *typeobj* " -"( ``PyTypeObject*`` ) を用いて Python オブジェクトの領域を新規確保します。" -"Python のオブジェクトヘッダに定義されていないフィールドは初期化されません。呼" -"び出し元がオブジェクトへの唯一の参照を持ちます(つまり、参照カウントは1にな" -"ります)。メモリ割り当ての大きさは型オブジェクトの :c:member:`~PyTypeObject." -"tp_basicsize` フィールドによって定められます。" -#: ../../c-api/allocation.rst:38 +#: ../../c-api/allocation.rst:73 ../../c-api/allocation.rst:123 msgid "" -"Note that this function is unsuitable if *typeobj* has :c:macro:" -"`Py_TPFLAGS_HAVE_GC` set. For such objects, use :c:func:`PyObject_GC_New` " -"instead." +"The returned memory is not guaranteed to have been completely zeroed before " +"it was initialized." msgstr "" -#: ../../c-api/allocation.rst:45 +#: ../../c-api/allocation.rst:78 ../../c-api/allocation.rst:128 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 allocated memory allows for " -"the *TYPE* structure plus *size* (``Py_ssize_t``) fields of the size given " -"by the :c:member:`~PyTypeObject.tp_itemsize` field of *typeobj*. 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." +"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 "" -"C の構造体型 *TYPE* と Python の型オブジェクト *typeobj* " -"( ``PyTypeObject*`` ) を用いて Python オブジェクトの領域を新規確保します。" -"Python のオブジェクトヘッダに定義されていないフィールドは初期化されません。確" -"保されたメモリには、 *TYPE* 構造体に加え、 *typeobj* の :c:member:" -"`~PyTypeObject.tp_itemsize` フィールドによって定められた大きさのフィールドを " -"*size* ( ``Py_ssize_t`` ) 個分格納できます。これはタプルなどの、生成時に大き" -"さを決定できるオブジェクトを実装する際に便利です。同じメモリ割当にフィールド" -"の配列も埋め込むことで、メモリ割当の回数を減らし、メモリ管理効率を上げること" -"ができます。" -#: ../../c-api/allocation.rst:56 +#: ../../c-api/allocation.rst:83 +msgid "PyObject *foo = PyObject_CallNoArgs((PyObject *)&PyFoo_Type);" +msgstr "" + +#: ../../c-api/allocation.rst:87 ../../c-api/allocation.rst:137 +msgid ":c:func:`PyObject_Free`" +msgstr ":c:func:`PyObject_Free`" + +#: ../../c-api/allocation.rst:88 +msgid ":c:macro:`PyObject_GC_New`" +msgstr "" + +#: ../../c-api/allocation.rst:89 ../../c-api/allocation.rst:139 +msgid ":c:func:`PyType_GenericAlloc`" +msgstr "" + +#: ../../c-api/allocation.rst:90 ../../c-api/allocation.rst:140 +msgid ":c:member:`~PyTypeObject.tp_alloc`" +msgstr ":c:member:`~PyTypeObject.tp_alloc`" + +#: ../../c-api/allocation.rst:95 +msgid "Like :c:macro:`PyObject_New` except:" +msgstr "" + +#: ../../c-api/allocation.rst:97 +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 "" + +#: ../../c-api/allocation.rst:100 +msgid "The memory is initialized like :c:func:`PyObject_InitVar`." +msgstr "" + +#: ../../c-api/allocation.rst:102 msgid "" -"Note that this function is unsuitable if *typeobj* has :c:macro:" -"`Py_TPFLAGS_HAVE_GC` set. For such objects, use :c:func:`PyObject_GC_NewVar` " -"instead." +"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 "" + +#: ../../c-api/allocation.rst:114 +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-api/allocation.rst:118 +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-api/allocation.rst:133 +msgid "" +"PyObject *list_instance = PyObject_CallNoArgs((PyObject *)&PyList_Type);" +msgstr "" + +#: ../../c-api/allocation.rst:138 +msgid ":c:macro:`PyObject_GC_NewVar`" msgstr "" -#: ../../c-api/allocation.rst:63 +#: ../../c-api/allocation.rst:145 msgid "Same as :c:func:`PyObject_Free`." msgstr "" -#: ../../c-api/allocation.rst:67 +#: ../../c-api/allocation.rst:149 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 " @@ -108,10 +197,10 @@ msgstr "" "ブジェクトへのポインタを評価する :c:macro:`Py_None` マクロを使わなければなり" "ません。" -#: ../../c-api/allocation.rst:74 +#: ../../c-api/allocation.rst:156 msgid ":c:func:`PyModule_Create`" msgstr ":c:func:`PyModule_Create`" -#: ../../c-api/allocation.rst:75 +#: ../../c-api/allocation.rst:157 msgid "To allocate and create extension modules." msgstr "拡張モジュールのアロケートと生成。" diff --git a/c-api/apiabiversion.po b/c-api/apiabiversion.po index 85debddcc..a909598eb 100644 --- a/c-api/apiabiversion.po +++ b/c-api/apiabiversion.po @@ -17,10 +17,10 @@ msgstr "" "Last-Translator: tomo, 2025\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../c-api/apiabiversion.rst:7 diff --git a/c-api/arg.po b/c-api/arg.po index f7ba191bf..5cf07f378 100644 --- a/c-api/arg.po +++ b/c-api/arg.po @@ -19,10 +19,10 @@ msgstr "" "Last-Translator: Taichi Haradaguchi, 2025\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../c-api/arg.rst:6 diff --git a/c-api/bool.po b/c-api/bool.po index b14dfacbf..c02b2ef13 100644 --- a/c-api/bool.po +++ b/c-api/bool.po @@ -1,5 +1,5 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2025, Python Software Foundation +# Copyright (C) 2001 Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # @@ -12,17 +12,17 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: Python 3.13\n" +"Project-Id-Version: Python 3.14\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2025-05-02 14:19+0000\n" +"POT-Creation-Date: 2025-05-23 14:20+0000\n" "PO-Revision-Date: 2021-06-28 00:47+0000\n" "Last-Translator: 石井明久, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../c-api/bool.rst:6 diff --git a/c-api/buffer.po b/c-api/buffer.po index c4dd75d72..8c902994c 100644 --- a/c-api/buffer.po +++ b/c-api/buffer.po @@ -1,5 +1,5 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2025, Python Software Foundation +# Copyright (C) 2001 Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # @@ -15,17 +15,17 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: Python 3.13\n" +"Project-Id-Version: Python 3.14\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2025-05-02 14:19+0000\n" +"POT-Creation-Date: 2025-05-16 14:19+0000\n" "PO-Revision-Date: 2021-06-28 00:47+0000\n" "Last-Translator: 石井明久, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../c-api/buffer.rst:11 diff --git a/c-api/bytearray.po b/c-api/bytearray.po index 42de00ecc..9f64a5c73 100644 --- a/c-api/bytearray.po +++ b/c-api/bytearray.po @@ -18,10 +18,10 @@ msgstr "" "Last-Translator: tomo, 2023\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../c-api/bytearray.rst:6 diff --git a/c-api/bytes.po b/c-api/bytes.po index b0c0a4656..be8e5210b 100644 --- a/c-api/bytes.po +++ b/c-api/bytes.po @@ -18,10 +18,10 @@ msgstr "" "Last-Translator: Taichi Haradaguchi, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../c-api/bytes.rst:6 diff --git a/c-api/call.po b/c-api/call.po index 856d51434..5b04cfc5b 100644 --- a/c-api/call.po +++ b/c-api/call.po @@ -1,5 +1,5 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2025, Python Software Foundation +# Copyright (C) 2001 Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # @@ -14,17 +14,17 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: Python 3.13\n" +"Project-Id-Version: Python 3.14\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2025-05-02 14:19+0000\n" +"POT-Creation-Date: 2025-05-23 14:20+0000\n" "PO-Revision-Date: 2021-06-28 00:47+0000\n" "Last-Translator: Taichi Haradaguchi, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../c-api/call.rst:6 diff --git a/c-api/capsule.po b/c-api/capsule.po index be2d83a54..7d70f1d85 100644 --- a/c-api/capsule.po +++ b/c-api/capsule.po @@ -1,5 +1,5 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2025, Python Software Foundation +# Copyright (C) 2001 Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # @@ -11,17 +11,17 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: Python 3.13\n" +"Project-Id-Version: Python 3.14\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2025-05-02 14:19+0000\n" +"POT-Creation-Date: 2025-05-23 14:20+0000\n" "PO-Revision-Date: 2021-06-28 00:47+0000\n" "Last-Translator: tomo, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../c-api/capsule.rst:6 @@ -266,7 +266,7 @@ msgstr "" #: ../../c-api/capsule.rst:8 msgid "object" -msgstr "オブジェクト" +msgstr "object" #: ../../c-api/capsule.rst:8 msgid "Capsule" diff --git a/c-api/cell.po b/c-api/cell.po index e1185e88c..297b343a7 100644 --- a/c-api/cell.po +++ b/c-api/cell.po @@ -1,5 +1,5 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2025, Python Software Foundation +# Copyright (C) 2001 Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # @@ -10,17 +10,17 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: Python 3.13\n" +"Project-Id-Version: Python 3.14\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2025-04-25 14:19+0000\n" +"POT-Creation-Date: 2025-05-16 14:19+0000\n" "PO-Revision-Date: 2021-06-28 00:47+0000\n" "Last-Translator: tomo, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../c-api/cell.rst:6 diff --git a/c-api/code.po b/c-api/code.po index 66749ee5b..a4b32bae1 100644 --- a/c-api/code.po +++ b/c-api/code.po @@ -1,5 +1,5 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2025, Python Software Foundation +# Copyright (C) 2001 Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # @@ -12,17 +12,17 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: Python 3.13\n" +"Project-Id-Version: Python 3.14\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2025-05-02 14:19+0000\n" +"POT-Creation-Date: 2025-05-23 14:20+0000\n" "PO-Revision-Date: 2021-06-28 00:48+0000\n" "Last-Translator: Taichi Haradaguchi, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../c-api/code.rst:8 @@ -349,7 +349,7 @@ msgstr "" #: ../../c-api/code.rst:3 msgid "object" -msgstr "オブジェクト" +msgstr "object" #: ../../c-api/code.rst:3 msgid "code" diff --git a/c-api/codec.po b/c-api/codec.po index fd74c9a01..a3b950101 100644 --- a/c-api/codec.po +++ b/c-api/codec.po @@ -17,10 +17,10 @@ msgstr "" "Last-Translator: tomo, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../c-api/codec.rst:4 diff --git a/c-api/complex.po b/c-api/complex.po index 9d7ceae70..de4c5cb1b 100644 --- a/c-api/complex.po +++ b/c-api/complex.po @@ -18,10 +18,10 @@ msgstr "" "Last-Translator: Taichi Haradaguchi, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../c-api/complex.rst:6 diff --git a/c-api/concrete.po b/c-api/concrete.po index d5afb86ae..de12c71a4 100644 --- a/c-api/concrete.po +++ b/c-api/concrete.po @@ -17,10 +17,10 @@ msgstr "" "Last-Translator: tomo, 2023\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../c-api/concrete.rst:8 diff --git a/c-api/contextvars.po b/c-api/contextvars.po index e4b4ab7ee..67e48caa3 100644 --- a/c-api/contextvars.po +++ b/c-api/contextvars.po @@ -18,10 +18,10 @@ msgstr "" "Last-Translator: Arihiro TAKASE, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../c-api/contextvars.rst:6 diff --git a/c-api/conversion.po b/c-api/conversion.po index f525e64b3..f0d7d808b 100644 --- a/c-api/conversion.po +++ b/c-api/conversion.po @@ -17,10 +17,10 @@ msgstr "" "Last-Translator: Arihiro TAKASE, 2023\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../c-api/conversion.rst:6 diff --git a/c-api/coro.po b/c-api/coro.po index c89de45e7..2ed3e75a8 100644 --- a/c-api/coro.po +++ b/c-api/coro.po @@ -17,10 +17,10 @@ msgstr "" "Last-Translator: Takanori Suzuki , 2021\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../c-api/coro.rst:6 diff --git a/c-api/datetime.po b/c-api/datetime.po index 74460520c..c05280358 100644 --- a/c-api/datetime.po +++ b/c-api/datetime.po @@ -19,10 +19,10 @@ msgstr "" "Last-Translator: Taichi Haradaguchi, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../c-api/datetime.rst:6 diff --git a/c-api/descriptor.po b/c-api/descriptor.po index ccfca1517..d995b9c04 100644 --- a/c-api/descriptor.po +++ b/c-api/descriptor.po @@ -16,10 +16,10 @@ msgstr "" "Last-Translator: tomo, 2021\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../c-api/descriptor.rst:6 diff --git a/c-api/dict.po b/c-api/dict.po index 99b13adaf..726b64874 100644 --- a/c-api/dict.po +++ b/c-api/dict.po @@ -18,10 +18,10 @@ msgstr "" "Last-Translator: tomo, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../c-api/dict.rst:6 diff --git a/c-api/exceptions.po b/c-api/exceptions.po index 26792fea2..a509b7798 100644 --- a/c-api/exceptions.po +++ b/c-api/exceptions.po @@ -21,10 +21,10 @@ msgstr "" "Last-Translator: 石井明久, 2025\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../c-api/exceptions.rst:8 diff --git a/c-api/file.po b/c-api/file.po index 52301cbd6..791d8113c 100644 --- a/c-api/file.po +++ b/c-api/file.po @@ -1,5 +1,5 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2025, Python Software Foundation +# Copyright (C) 2001 Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # @@ -15,17 +15,17 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: Python 3.13\n" +"Project-Id-Version: Python 3.14\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2025-05-02 14:19+0000\n" +"POT-Creation-Date: 2025-05-23 14:20+0000\n" "PO-Revision-Date: 2021-06-28 00:48+0000\n" "Last-Translator: Takanori Suzuki , 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../c-api/file.rst:6 diff --git a/c-api/float.po b/c-api/float.po index 176ab81de..21a48b085 100644 --- a/c-api/float.po +++ b/c-api/float.po @@ -19,10 +19,10 @@ msgstr "" "Last-Translator: Takeshi Nakazato, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../c-api/float.rst:6 diff --git a/c-api/frame.po b/c-api/frame.po index 98dad24ea..84d0b94df 100644 --- a/c-api/frame.po +++ b/c-api/frame.po @@ -1,5 +1,5 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2025, Python Software Foundation +# Copyright (C) 2001 Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # @@ -10,17 +10,17 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: Python 3.13\n" +"Project-Id-Version: Python 3.14\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2025-05-02 14:19+0000\n" +"POT-Creation-Date: 2025-05-23 14:20+0000\n" "PO-Revision-Date: 2022-11-05 19:48+0000\n" "Last-Translator: Arihiro TAKASE, 2023\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../c-api/frame.rst:4 diff --git a/c-api/function.po b/c-api/function.po index b64df67ec..1bbc9f9d7 100644 --- a/c-api/function.po +++ b/c-api/function.po @@ -17,10 +17,10 @@ msgstr "" "Last-Translator: Taichi Haradaguchi, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../c-api/function.rst:6 diff --git a/c-api/gcsupport.po b/c-api/gcsupport.po index 4f2a9f51b..e1475ae90 100644 --- a/c-api/gcsupport.po +++ b/c-api/gcsupport.po @@ -4,22 +4,22 @@ # FIRST AUTHOR , YEAR. # # Translators: -# tomo, 2021 +# tomo, 2025 # #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.14\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2025-05-08 02:53-0300\n" +"POT-Creation-Date: 2025-05-23 14:20+0000\n" "PO-Revision-Date: 2021-06-28 00:48+0000\n" -"Last-Translator: tomo, 2021\n" +"Last-Translator: tomo, 2025\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../c-api/gcsupport.rst:6 @@ -130,13 +130,53 @@ msgid "" "macro:`Py_TPFLAGS_HAVE_GC` flag set." msgstr "" -#: ../../c-api/gcsupport.rst:62 +#: ../../c-api/gcsupport.rst:60 ../../c-api/gcsupport.rst:84 +msgid "" +"Do not call this directly to allocate memory for an object; call the type's :" +"c:member:`~PyTypeObject.tp_alloc` slot instead." +msgstr "" + +#: ../../c-api/gcsupport.rst:63 ../../c-api/gcsupport.rst:87 +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-api/gcsupport.rst:67 ../../c-api/gcsupport.rst:91 +msgid "" +"Memory allocated by this macro must be freed with :c:func:`PyObject_GC_Del` " +"(usually called via the object's :c:member:`~PyTypeObject.tp_free` slot)." +msgstr "" + +#: ../../c-api/gcsupport.rst:73 ../../c-api/gcsupport.rst:97 +msgid ":c:func:`PyObject_GC_Del`" +msgstr "" + +#: ../../c-api/gcsupport.rst:74 +msgid ":c:macro:`PyObject_New`" +msgstr "" + +#: ../../c-api/gcsupport.rst:75 ../../c-api/gcsupport.rst:99 +#: ../../c-api/gcsupport.rst:193 +msgid ":c:func:`PyType_GenericAlloc`" +msgstr "" + +#: ../../c-api/gcsupport.rst:76 ../../c-api/gcsupport.rst:100 +msgid ":c:member:`~PyTypeObject.tp_alloc`" +msgstr ":c:member:`~PyTypeObject.tp_alloc`" + +#: ../../c-api/gcsupport.rst:81 msgid "" "Analogous to :c:macro:`PyObject_NewVar` but for container objects with the :" "c:macro:`Py_TPFLAGS_HAVE_GC` flag set." msgstr "" -#: ../../c-api/gcsupport.rst:67 +#: ../../c-api/gcsupport.rst:98 +msgid ":c:macro:`PyObject_NewVar`" +msgstr "" + +#: ../../c-api/gcsupport.rst:105 msgid "" "Analogous to :c:macro:`PyObject_GC_New` but allocates *extra_size* bytes at " "the end of the object (at offset :c:member:`~PyTypeObject.tp_basicsize`). " @@ -144,13 +184,20 @@ msgid "" "object header `." msgstr "" -#: ../../c-api/gcsupport.rst:73 +#: ../../c-api/gcsupport.rst:111 msgid "" "The extra data will be deallocated with the object, but otherwise it is not " "managed by Python." msgstr "" -#: ../../c-api/gcsupport.rst:77 +#: ../../c-api/gcsupport.rst:114 +msgid "" +"Memory allocated by this function must be freed with :c:func:" +"`PyObject_GC_Del` (usually called via the object's :c:member:`~PyTypeObject." +"tp_free` slot)." +msgstr "" + +#: ../../c-api/gcsupport.rst:119 msgid "" "The function is marked as unstable because the final mechanism for reserving " "extra data after an instance is not yet decided. For allocating a variable " @@ -158,20 +205,20 @@ msgid "" "`~PyTypeObject.tp_itemsize` instead." msgstr "" -#: ../../c-api/gcsupport.rst:88 +#: ../../c-api/gcsupport.rst:130 msgid "" "Resize an object allocated by :c:macro:`PyObject_NewVar`. Returns the " "resized object of type ``TYPE*`` (refers to any C type) or ``NULL`` on " "failure." msgstr "" -#: ../../c-api/gcsupport.rst:92 +#: ../../c-api/gcsupport.rst:134 msgid "" "*op* must be of type :c:expr:`PyVarObject *` and must not be tracked by the " "collector yet. *newsize* must be of type :c:type:`Py_ssize_t`." msgstr "" -#: ../../c-api/gcsupport.rst:99 +#: ../../c-api/gcsupport.rst:141 msgid "" "Adds the object *op* to the set of container objects tracked by the " "collector. The collector can run at unexpected times so objects must be " @@ -185,45 +232,74 @@ msgstr "" "対象となる全てのフィールドが正しい状態になってすぐに、たいていはコンストラク" "タの末尾付近で、呼び出すべきです。" -#: ../../c-api/gcsupport.rst:108 +#: ../../c-api/gcsupport.rst:150 msgid "" "Returns non-zero if the object implements the garbage collector protocol, " "otherwise returns 0." msgstr "" -#: ../../c-api/gcsupport.rst:111 +#: ../../c-api/gcsupport.rst:153 msgid "" "The object cannot be tracked by the garbage collector if this function " "returns 0." msgstr "" -#: ../../c-api/gcsupport.rst:116 +#: ../../c-api/gcsupport.rst:158 msgid "" "Returns 1 if the object type of *op* implements the GC protocol and *op* is " "being currently tracked by the garbage collector and 0 otherwise." msgstr "" -#: ../../c-api/gcsupport.rst:119 +#: ../../c-api/gcsupport.rst:161 msgid "This is analogous to the Python function :func:`gc.is_tracked`." msgstr "" -#: ../../c-api/gcsupport.rst:126 +#: ../../c-api/gcsupport.rst:168 msgid "" "Returns 1 if the object type of *op* implements the GC protocol and *op* has " "been already finalized by the garbage collector and 0 otherwise." msgstr "" -#: ../../c-api/gcsupport.rst:129 +#: ../../c-api/gcsupport.rst:171 msgid "This is analogous to the Python function :func:`gc.is_finalized`." msgstr "" -#: ../../c-api/gcsupport.rst:136 +#: ../../c-api/gcsupport.rst:178 msgid "" "Releases memory allocated to an object using :c:macro:`PyObject_GC_New` or :" "c:macro:`PyObject_GC_NewVar`." msgstr "" -#: ../../c-api/gcsupport.rst:142 +#: ../../c-api/gcsupport.rst:181 +msgid "" +"Do not call this directly to free an object's memory; call the type's :c:" +"member:`~PyTypeObject.tp_free` slot instead." +msgstr "" + +#: ../../c-api/gcsupport.rst:184 +msgid "" +"Do not use this for memory allocated by :c:macro:`PyObject_New`, :c:macro:" +"`PyObject_NewVar`, or related allocation functions; use :c:func:" +"`PyObject_Free` instead." +msgstr "" + +#: ../../c-api/gcsupport.rst:190 +msgid ":c:func:`PyObject_Free` is the non-GC equivalent of this function." +msgstr "" + +#: ../../c-api/gcsupport.rst:191 +msgid ":c:macro:`PyObject_GC_New`" +msgstr "" + +#: ../../c-api/gcsupport.rst:192 +msgid ":c:macro:`PyObject_GC_NewVar`" +msgstr "" + +#: ../../c-api/gcsupport.rst:194 +msgid ":c:member:`~PyTypeObject.tp_free`" +msgstr ":c:member:`~PyTypeObject.tp_free`" + +#: ../../c-api/gcsupport.rst:199 msgid "" "Remove the object *op* from the set of container objects tracked by the " "collector. Note that :c:func:`PyObject_GC_Track` can be called again on " @@ -239,13 +315,13 @@ msgstr "" "ケータ (:c:member:`~PyTypeObject.tp_dealloc` ハンドラ) はオブジェクトに対し" "て、この関数を呼び出すべきです。" -#: ../../c-api/gcsupport.rst:151 +#: ../../c-api/gcsupport.rst:208 msgid "" "The :c:func:`!_PyObject_GC_TRACK` and :c:func:`!_PyObject_GC_UNTRACK` macros " "have been removed from the public C API." msgstr "" -#: ../../c-api/gcsupport.rst:154 +#: ../../c-api/gcsupport.rst:211 msgid "" "The :c:member:`~PyTypeObject.tp_traverse` handler accepts a function " "parameter of this type:" @@ -253,7 +329,7 @@ msgstr "" ":c:member:`~PyTypeObject.tp_traverse` ハンドラはこの型の関数パラメータを受け" "取ります:" -#: ../../c-api/gcsupport.rst:159 +#: ../../c-api/gcsupport.rst:216 msgid "" "Type of the visitor function passed to the :c:member:`~PyTypeObject." "tp_traverse` handler. The function should be called with an object to " @@ -269,7 +345,7 @@ msgstr "" "循環参照を検出する仕組みを実装します; ユーザが自身のためにビジター関数を書く" "必要が出てくることはないでしょう。" -#: ../../c-api/gcsupport.rst:166 +#: ../../c-api/gcsupport.rst:223 msgid "" "The :c:member:`~PyTypeObject.tp_traverse` handler must have the following " "type:" @@ -277,7 +353,7 @@ msgstr "" ":c:member:`~PyTypeObject.tp_traverse` ハンドラは次の型を持っていなければなり" "ません:" -#: ../../c-api/gcsupport.rst:171 +#: ../../c-api/gcsupport.rst:228 msgid "" "Traversal function for a container object. Implementations must call the " "*visit* function for each object directly contained by *self*, with the " @@ -295,7 +371,7 @@ msgstr "" "*visit* が非ゼロの値を返す場合、エラーが発生し、戻り値をそのまま返すようにし" "なければなりません。" -#: ../../c-api/gcsupport.rst:178 +#: ../../c-api/gcsupport.rst:235 msgid "" "To simplify writing :c:member:`~PyTypeObject.tp_traverse` handlers, a :c:" "func:`Py_VISIT` macro is provided. In order to use this macro, the :c:" @@ -307,19 +383,15 @@ msgstr "" "`~PyTypeObject.tp_traverse` の実装関数の引数は、一文字も違わず *visit* と " "*arg* でなければなりません:" -#: ../../c-api/gcsupport.rst:185 +#: ../../c-api/gcsupport.rst:242 msgid "" -"If *o* is not ``NULL``, call the *visit* callback, with arguments *o* and " -"*arg*. If *visit* returns a non-zero value, then return it. Using this " -"macro, :c:member:`~PyTypeObject.tp_traverse` handlers look like::" +"If the :c:expr:`PyObject *` *o* is not ``NULL``, call the *visit* callback, " +"with arguments *o* and *arg*. If *visit* returns a non-zero value, then " +"return it. Using this macro, :c:member:`~PyTypeObject.tp_traverse` handlers " +"look like::" msgstr "" -"*o* が ``NULL`` でなければ、 *o* と *arg* を引数にして *visit* コールバックを" -"呼び出します。\n" -"*visit* がゼロでない値を返した場合、その値を返します。\n" -"このマクロを使うと、 :c:member:`~PyTypeObject.tp_traverse` ハンドラは次のよう" -"になります::" -#: ../../c-api/gcsupport.rst:190 +#: ../../c-api/gcsupport.rst:247 msgid "" "static int\n" "my_traverse(Noddy *self, visitproc visit, void *arg)\n" @@ -330,7 +402,7 @@ msgid "" "}" msgstr "" -#: ../../c-api/gcsupport.rst:198 +#: ../../c-api/gcsupport.rst:255 msgid "" "The :c:member:`~PyTypeObject.tp_clear` handler must be of the :c:type:" "`inquiry` type, or ``NULL`` if the object is immutable." @@ -338,7 +410,7 @@ msgstr "" ":c:member:`~PyTypeObject.tp_clear` ハンドラは :c:type:`inquiry` 型であるか、" "オブジェクトが不変 (immutable) な場合は ``NULL`` でなければなりません。" -#: ../../c-api/gcsupport.rst:204 +#: ../../c-api/gcsupport.rst:261 msgid "" "Drop references that may have created reference cycles. Immutable objects " "do not have to define this method since they can never directly create " @@ -354,23 +426,23 @@ msgstr "" "ください)。ガベージコレクタは、オブジェクトが循環参照を形成していることを検出" "した際にこのメソッドを呼び出します。" -#: ../../c-api/gcsupport.rst:213 +#: ../../c-api/gcsupport.rst:270 msgid "Controlling the Garbage Collector State" msgstr "" -#: ../../c-api/gcsupport.rst:215 +#: ../../c-api/gcsupport.rst:272 msgid "" "The C-API provides the following functions for controlling garbage " "collection runs." msgstr "" -#: ../../c-api/gcsupport.rst:220 +#: ../../c-api/gcsupport.rst:277 msgid "" "Perform a full garbage collection, if the garbage collector is enabled. " "(Note that :func:`gc.collect` runs it unconditionally.)" msgstr "" -#: ../../c-api/gcsupport.rst:223 +#: ../../c-api/gcsupport.rst:280 msgid "" "Returns the number of collected + unreachable objects which cannot be " "collected. If the garbage collector is disabled or already collecting, " @@ -378,54 +450,54 @@ msgid "" "data:`sys.unraisablehook`. This function does not raise exceptions." msgstr "" -#: ../../c-api/gcsupport.rst:233 +#: ../../c-api/gcsupport.rst:290 msgid "" "Enable the garbage collector: similar to :func:`gc.enable`. Returns the " "previous state, 0 for disabled and 1 for enabled." msgstr "" -#: ../../c-api/gcsupport.rst:241 +#: ../../c-api/gcsupport.rst:298 msgid "" "Disable the garbage collector: similar to :func:`gc.disable`. Returns the " "previous state, 0 for disabled and 1 for enabled." msgstr "" -#: ../../c-api/gcsupport.rst:249 +#: ../../c-api/gcsupport.rst:306 msgid "" "Query the state of the garbage collector: similar to :func:`gc.isenabled`. " "Returns the current state, 0 for disabled and 1 for enabled." msgstr "" -#: ../../c-api/gcsupport.rst:256 +#: ../../c-api/gcsupport.rst:313 msgid "Querying Garbage Collector State" msgstr "" -#: ../../c-api/gcsupport.rst:258 +#: ../../c-api/gcsupport.rst:315 msgid "" "The C-API provides the following interface for querying information about " "the garbage collector." msgstr "" -#: ../../c-api/gcsupport.rst:263 +#: ../../c-api/gcsupport.rst:320 msgid "" "Run supplied *callback* on all live GC-capable objects. *arg* is passed " "through to all invocations of *callback*." msgstr "" -#: ../../c-api/gcsupport.rst:267 +#: ../../c-api/gcsupport.rst:324 msgid "" "If new objects are (de)allocated by the callback it is undefined if they " "will be visited." msgstr "" -#: ../../c-api/gcsupport.rst:270 +#: ../../c-api/gcsupport.rst:327 msgid "" "Garbage collection is disabled during operation. Explicitly running a " "collection in the callback may lead to undefined behaviour e.g. visiting the " "same objects multiple times or not at all." msgstr "" -#: ../../c-api/gcsupport.rst:278 +#: ../../c-api/gcsupport.rst:335 msgid "" "Type of the visitor function to be passed to :c:func:" "`PyUnstable_GC_VisitObjects`. *arg* is the same as the *arg* passed to " diff --git a/c-api/gen.po b/c-api/gen.po index 55a798bec..be25c4188 100644 --- a/c-api/gen.po +++ b/c-api/gen.po @@ -16,10 +16,10 @@ msgstr "" "Last-Translator: tomo, 2021\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../c-api/gen.rst:6 diff --git a/c-api/hash.po b/c-api/hash.po index 21bda2972..aa4f1314b 100644 --- a/c-api/hash.po +++ b/c-api/hash.po @@ -16,10 +16,10 @@ msgstr "" "Last-Translator: Taichi Haradaguchi, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../c-api/hash.rst:4 diff --git a/c-api/import.po b/c-api/import.po index 5c0fd874e..bc6fb3bc3 100644 --- a/c-api/import.po +++ b/c-api/import.po @@ -23,10 +23,10 @@ msgstr "" "Last-Translator: Masato HASHIMOTO , 2023\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../c-api/import.rst:6 diff --git a/c-api/index.po b/c-api/index.po index 35ea1575d..28fef3d33 100644 --- a/c-api/index.po +++ b/c-api/index.po @@ -16,10 +16,10 @@ msgstr "" "Last-Translator: tomo, 2021\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../c-api/index.rst:5 diff --git a/c-api/init.po b/c-api/init.po index e2c7cb9d6..167dd54c1 100644 --- a/c-api/init.po +++ b/c-api/init.po @@ -19,15 +19,15 @@ msgid "" msgstr "" "Project-Id-Version: Python 3.14\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2025-05-08 02:53-0300\n" +"POT-Creation-Date: 2025-05-23 14:20+0000\n" "PO-Revision-Date: 2021-06-28 00:49+0000\n" "Last-Translator: Takanori Suzuki , 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../c-api/init.rst:8 @@ -1555,20 +1555,55 @@ msgid "" "interpreter (created automatically by :c:func:`Py_Initialize`). Python " "supports the creation of additional interpreters (using :c:func:" "`Py_NewInterpreter`), but mixing multiple interpreters and the " -"``PyGILState_*`` API is unsupported." +"``PyGILState_*`` API is unsupported. This is because :c:func:" +"`PyGILState_Ensure` and similar functions default to :term:`attaching " +"` a :term:`thread state` for the main interpreter, " +"meaning that the thread can't safely interact with the calling " +"subinterpreter." msgstr "" -"``PyGILState_*`` 関数は、(:c:func:`Py_Initialize` によって自動的に作られる) " -"グローバルインタプリタ1つだけが存在すると仮定する事に気をつけて下さい。 " -"Python は (:c:func:`Py_NewInterpreter` を使って) 追加のインタプリタを作成でき" -"ることに変わりはありませんが、複数インタプリタと ``PyGILState_*`` API を混ぜ" -"て使うことはサポートされていません。" #: ../../c-api/init.rst:1092 -msgid "Cautions about fork()" +msgid "Supporting subinterpreters in non-Python threads" msgstr "" #: ../../c-api/init.rst:1094 msgid "" +"If you would like to support subinterpreters with non-Python created " +"threads, you must use the ``PyThreadState_*`` API instead of the traditional " +"``PyGILState_*`` API." +msgstr "" + +#: ../../c-api/init.rst:1098 +msgid "" +"In particular, you must store the interpreter state from the calling " +"function and pass it to :c:func:`PyThreadState_New`, which will ensure that " +"the :term:`thread state` is targeting the correct interpreter::" +msgstr "" + +#: ../../c-api/init.rst:1102 +msgid "" +"/* The return value of PyInterpreterState_Get() from the\n" +" function that created this thread. */\n" +"PyInterpreterState *interp = ThreadData->interp;\n" +"PyThreadState *tstate = PyThreadState_New(interp);\n" +"PyThreadState_Swap(tstate);\n" +"\n" +"/* GIL of the subinterpreter is now held.\n" +" Perform Python actions here. */\n" +"result = CallSomeFunction();\n" +"/* evaluate result or handle exception */\n" +"\n" +"/* Destroy the thread state. No Python API allowed beyond this point. */\n" +"PyThreadState_Clear(tstate);\n" +"PyThreadState_DeleteCurrent();" +msgstr "" + +#: ../../c-api/init.rst:1120 +msgid "Cautions about fork()" +msgstr "" + +#: ../../c-api/init.rst:1122 +msgid "" "Another important thing to note about threads is their behaviour in the face " "of the C :c:func:`fork` call. On most systems with :c:func:`fork`, after a " "process forks only the thread that issued the fork will exist. This has a " @@ -1576,7 +1611,7 @@ msgid "" "CPython's runtime." msgstr "" -#: ../../c-api/init.rst:1100 +#: ../../c-api/init.rst:1128 msgid "" "The fact that only the \"current\" thread remains means any locks held by " "other threads will never be released. Python solves this for :func:`os.fork` " @@ -1593,7 +1628,7 @@ msgid "" "locks, but is not always able to." msgstr "" -#: ../../c-api/init.rst:1115 +#: ../../c-api/init.rst:1143 msgid "" "The fact that all other threads go away also means that CPython's runtime " "state there must be cleaned up properly, which :func:`os.fork` does. This " @@ -1606,11 +1641,11 @@ msgid "" "called immediately after." msgstr "" -#: ../../c-api/init.rst:1129 +#: ../../c-api/init.rst:1157 msgid "Cautions regarding runtime finalization" msgstr "" -#: ../../c-api/init.rst:1131 +#: ../../c-api/init.rst:1159 msgid "" "In the late stage of :term:`interpreter shutdown`, after attempting to wait " "for non-daemon threads to exit (though this can be interrupted by :class:" @@ -1621,7 +1656,7 @@ msgid "" "acquire the :term:`GIL`." msgstr "" -#: ../../c-api/init.rst:1139 +#: ../../c-api/init.rst:1167 msgid "" "If any thread, other than the finalization thread, attempts to attach a :" "term:`thread state` during finalization, either explicitly or implicitly, " @@ -1631,7 +1666,7 @@ msgid "" "by the blocked thread, or otherwise waits on the blocked thread." msgstr "" -#: ../../c-api/init.rst:1146 +#: ../../c-api/init.rst:1174 msgid "" "Gross? Yes. This prevents random crashes and/or unexpectedly skipped C++ " "finalizations further up the call stack when such threads were forcibly " @@ -1643,11 +1678,11 @@ msgid "" "error handling." msgstr "" -#: ../../c-api/init.rst:1156 +#: ../../c-api/init.rst:1184 msgid "High-level API" msgstr "高レベルAPI" -#: ../../c-api/init.rst:1158 +#: ../../c-api/init.rst:1186 msgid "" "These are the most commonly used types and functions when writing C " "extension code, or when embedding the Python interpreter:" @@ -1655,7 +1690,7 @@ msgstr "" "C拡張を書いたりPythonインタプリタを埋め込むときに最も一般的に使われる型や関数" "は次のとおりです:" -#: ../../c-api/init.rst:1163 +#: ../../c-api/init.rst:1191 msgid "" "This data structure represents the state shared by a number of cooperating " "threads. Threads belonging to the same interpreter share their module " @@ -1667,7 +1702,7 @@ msgstr "" "内部的な情報を共有しています。この構造体には公開 (public) のメンバはありませ" "ん。" -#: ../../c-api/init.rst:1168 +#: ../../c-api/init.rst:1196 msgid "" "Threads belonging to different interpreters initially share nothing, except " "process state like available memory, open file descriptors and such. The " @@ -1679,30 +1714,30 @@ msgstr "" "いません。GILもまた、スレッドがどのインタプリタに属しているかに関わらずすべて" "のスレッドで共有されています。" -#: ../../c-api/init.rst:1176 +#: ../../c-api/init.rst:1204 msgid "" "This data structure represents the state of a single thread. The only " "public data member is:" msgstr "" -#: ../../c-api/init.rst:1181 +#: ../../c-api/init.rst:1209 msgid "This thread's interpreter state." msgstr "" -#: ../../c-api/init.rst:1192 +#: ../../c-api/init.rst:1220 msgid "Deprecated function which does nothing." msgstr "" -#: ../../c-api/init.rst:1194 +#: ../../c-api/init.rst:1222 msgid "" "In Python 3.6 and older, this function created the GIL if it didn't exist." msgstr "" -#: ../../c-api/init.rst:1196 +#: ../../c-api/init.rst:1224 msgid "The function now does nothing." msgstr "" -#: ../../c-api/init.rst:1199 +#: ../../c-api/init.rst:1227 msgid "" "This function is now called by :c:func:`Py_Initialize()`, so you don't have " "to call it yourself anymore." @@ -1710,28 +1745,27 @@ msgstr "" "この関数は :c:func:`Py_Initialize()` から呼び出されるようになり、わざわざ呼び" "出す必要はもう無くなりました。" -#: ../../c-api/init.rst:1203 +#: ../../c-api/init.rst:1231 msgid "" "This function cannot be called before :c:func:`Py_Initialize()` anymore." msgstr "" "この関数は :c:func:`Py_Initialize()` より前に呼び出すことができなくなりまし" "た。" -#: ../../c-api/init.rst:1213 +#: ../../c-api/init.rst:1241 msgid "" "Detach the :term:`attached thread state` and return it. The thread will have " "no :term:`thread state` upon returning." msgstr "" -#: ../../c-api/init.rst:1219 +#: ../../c-api/init.rst:1247 msgid "" "Set the :term:`attached thread state` to *tstate*. The passed :term:`thread " "state` **should not** be :term:`attached `, otherwise " "deadlock ensues. *tstate* will be attached upon returning." msgstr "" -#: ../../c-api/init.rst:1224 ../../c-api/init.rst:1291 -#: ../../c-api/init.rst:1582 +#: ../../c-api/init.rst:1252 ../../c-api/init.rst:1623 msgid "" "Calling this function from a thread when the runtime is finalizing will hang " "the thread until the program exits, even if the thread was not created by " @@ -1739,14 +1773,14 @@ msgid "" "details." msgstr "" -#: ../../c-api/init.rst:1229 ../../c-api/init.rst:1296 -#: ../../c-api/init.rst:1592 +#: ../../c-api/init.rst:1257 ../../c-api/init.rst:1328 +#: ../../c-api/init.rst:1633 msgid "" "Hangs the current thread, rather than terminating it, if called while the " "interpreter is finalizing." msgstr "" -#: ../../c-api/init.rst:1235 +#: ../../c-api/init.rst:1263 msgid "" "Return the :term:`attached thread state`. If the thread has no attached " "thread state, (such as when inside of :c:macro:`Py_BEGIN_ALLOW_THREADS` " @@ -1754,36 +1788,42 @@ msgid "" "``NULL``)." msgstr "" -#: ../../c-api/init.rst:1240 +#: ../../c-api/init.rst:1268 msgid "See also :c:func:`PyThreadState_GetUnchecked`." msgstr "" -#: ../../c-api/init.rst:1244 +#: ../../c-api/init.rst:1272 msgid "" "Similar to :c:func:`PyThreadState_Get`, but don't kill the process with a " "fatal error if it is NULL. The caller is responsible to check if the result " "is NULL." msgstr "" -#: ../../c-api/init.rst:1248 +#: ../../c-api/init.rst:1276 msgid "" "In Python 3.5 to 3.12, the function was private and known as " "``_PyThreadState_UncheckedGet()``." msgstr "" -#: ../../c-api/init.rst:1255 +#: ../../c-api/init.rst:1283 msgid "" "Set the :term:`attached thread state` to *tstate*, and return the :term:" "`thread state` that was attached prior to calling." msgstr "" -#: ../../c-api/init.rst:1258 +#: ../../c-api/init.rst:1286 msgid "" "This function is safe to call without an :term:`attached thread state`; it " "will simply return ``NULL`` indicating that there was no prior thread state." msgstr "" -#: ../../c-api/init.rst:1265 +#: ../../c-api/init.rst:1293 +msgid "" +"Similar to :c:func:`PyGILState_Ensure`, this function will hang the thread " +"if the runtime is finalizing." +msgstr "" + +#: ../../c-api/init.rst:1297 msgid "" "The following functions use thread-local storage, and are not compatible " "with sub-interpreters:" @@ -1791,7 +1831,7 @@ msgstr "" "以下の関数はスレッドローカルストレージを利用していて、サブインタプリタとの互" "換性がありません:" -#: ../../c-api/init.rst:1270 +#: ../../c-api/init.rst:1302 msgid "" "Ensure that the current thread is ready to call the Python C API regardless " "of the current state of Python, or of the :term:`attached thread state`. " @@ -1804,7 +1844,7 @@ msgid "" "is acceptable." msgstr "" -#: ../../c-api/init.rst:1280 +#: ../../c-api/init.rst:1312 msgid "" "The return value is an opaque \"handle\" to the :term:`attached thread " "state` when :c:func:`PyGILState_Ensure` was called, and must be passed to :c:" @@ -1814,14 +1854,22 @@ msgid "" "to :c:func:`PyGILState_Release`." msgstr "" -#: ../../c-api/init.rst:1287 +#: ../../c-api/init.rst:1319 msgid "" "When the function returns, there will be an :term:`attached thread state` " "and the thread will be able to call arbitrary Python code. Failure is a " "fatal error." msgstr "" -#: ../../c-api/init.rst:1302 +#: ../../c-api/init.rst:1323 +msgid "" +"Calling this function when the runtime is finalizing is unsafe. Doing so " +"will either hang the thread until the program ends, or fully crash the " +"interpreter in rare cases. Refer to :ref:`cautions-regarding-runtime-" +"finalization` for more details." +msgstr "" + +#: ../../c-api/init.rst:1334 msgid "" "Release any resources previously acquired. After this call, Python's state " "will be the same as it was prior to the corresponding :c:func:" @@ -1833,7 +1881,7 @@ msgstr "" "態は呼び出し元でははわかりませんので、GILState APIを利用するようにしてくださ" "い)。" -#: ../../c-api/init.rst:1307 +#: ../../c-api/init.rst:1339 msgid "" "Every call to :c:func:`PyGILState_Ensure` must be matched by a call to :c:" "func:`PyGILState_Release` on the same thread." @@ -1841,7 +1889,7 @@ msgstr "" ":c:func:`PyGILState_Ensure` を呼び出す場合は、必ず同一スレッド内で対応する :" "c:func:`PyGILState_Release` を呼び出してください。" -#: ../../c-api/init.rst:1313 +#: ../../c-api/init.rst:1344 msgid "" "Get the :term:`attached thread state` for this thread. May return ``NULL`` " "if no GILState API has been used on the current thread. Note that the main " @@ -1849,18 +1897,34 @@ msgid "" "been made on the main thread. This is mainly a helper/diagnostic function." msgstr "" -#: ../../c-api/init.rst:1323 +#: ../../c-api/init.rst:1350 +msgid "" +"This function does not account for :term:`thread states ` " +"created by something other than :c:func:`PyGILState_Ensure` (such as :c:func:" +"`PyThreadState_New`). Prefer :c:func:`PyThreadState_Get` or :c:func:" +"`PyThreadState_GetUnchecked` for most cases." +msgstr "" + +#: ../../c-api/init.rst:1359 msgid "" "Return ``1`` if the current thread is holding the :term:`GIL` and ``0`` " "otherwise. This function can be called from any thread at any time. Only if " -"it has had its Python thread state initialized and currently is holding the :" -"term:`GIL` will it return ``1``. This is mainly a helper/diagnostic " -"function. It can be useful for example in callback contexts or memory " -"allocation functions when knowing that the :term:`GIL` is locked can allow " -"the caller to perform sensitive actions or otherwise behave differently." +"it has had its :term:`thread state ` initialized via :" +"c:func:`PyGILState_Ensure` will it return ``1``. This is mainly a helper/" +"diagnostic function. It can be useful for example in callback contexts or " +"memory allocation functions when knowing that the :term:`GIL` is locked can " +"allow the caller to perform sensitive actions or otherwise behave " +"differently." msgstr "" -#: ../../c-api/init.rst:1335 +#: ../../c-api/init.rst:1369 +msgid "" +"If the current Python process has ever created a subinterpreter, this " +"function will *always* return ``1``. Prefer :c:func:" +"`PyThreadState_GetUnchecked` for most cases." +msgstr "" + +#: ../../c-api/init.rst:1376 msgid "" "The following macros are normally used without a trailing semicolon; look " "for example usage in the Python source distribution." @@ -1868,7 +1932,7 @@ msgstr "" "以下のマクロは、通常末尾にセミコロンを付けずに使います; Python ソース配布物内" "の使用例を見てください。" -#: ../../c-api/init.rst:1341 +#: ../../c-api/init.rst:1382 msgid "" "This macro expands to ``{ PyThreadState *_save; _save = PyEval_SaveThread();" "``. Note that it contains an opening brace; it must be matched with a " @@ -1880,7 +1944,7 @@ msgstr "" "弧は後で :c:macro:`Py_END_ALLOW_THREADS` マクロと対応させなければなりません。" "マクロについての詳しい議論は上記を参照してください。" -#: ../../c-api/init.rst:1349 +#: ../../c-api/init.rst:1390 msgid "" "This macro expands to ``PyEval_RestoreThread(_save); }``. Note that it " "contains a closing brace; it must be matched with an earlier :c:macro:" @@ -1892,7 +1956,7 @@ msgstr "" "`Py_BEGIN_ALLOW_THREADS` マクロと対応していなければなりません。マクロについて" "の詳しい議論は上記を参照してください。" -#: ../../c-api/init.rst:1357 +#: ../../c-api/init.rst:1398 msgid "" "This macro expands to ``PyEval_RestoreThread(_save);``: it is equivalent to :" "c:macro:`Py_END_ALLOW_THREADS` without the closing brace." @@ -1900,7 +1964,7 @@ msgstr "" "このマクロを展開すると ``PyEval_RestoreThread(_save);`` になります: 閉じ波括" "弧のない :c:macro:`Py_END_ALLOW_THREADS` と同じです。" -#: ../../c-api/init.rst:1363 +#: ../../c-api/init.rst:1404 msgid "" "This macro expands to ``_save = PyEval_SaveThread();``: it is equivalent to :" "c:macro:`Py_BEGIN_ALLOW_THREADS` without the opening brace and variable " @@ -1909,30 +1973,30 @@ msgstr "" "このマクロを展開すると ``_save = PyEval_SaveThread();`` になります: 開き波括" "弧のない :c:macro:`Py_BEGIN_ALLOW_THREADS` と同じです。" -#: ../../c-api/init.rst:1369 +#: ../../c-api/init.rst:1410 msgid "Low-level API" msgstr "低レベルAPI" -#: ../../c-api/init.rst:1371 +#: ../../c-api/init.rst:1412 msgid "" "All of the following functions must be called after :c:func:`Py_Initialize`." msgstr "" "次の全ての関数は :c:func:`Py_Initialize` の後に呼び出さなければなりません。" -#: ../../c-api/init.rst:1373 +#: ../../c-api/init.rst:1414 msgid "" ":c:func:`Py_Initialize()` now initializes the :term:`GIL` and sets an :term:" "`attached thread state`." msgstr "" -#: ../../c-api/init.rst:1380 +#: ../../c-api/init.rst:1421 msgid "" "Create a new interpreter state object. An :term:`attached thread state` is " "not needed, but may optionally exist if it is necessary to serialize calls " "to this function." msgstr "" -#: ../../c-api/init.rst:1384 +#: ../../c-api/init.rst:1425 msgid "" "Raises an :ref:`auditing event ` ``cpython." "PyInterpreterState_New`` with no arguments." @@ -1940,13 +2004,13 @@ msgstr "" "引数無しで :ref:`監査イベント ` ``cpython.PyInterpreterState_New`` " "を送出します。 " -#: ../../c-api/init.rst:1389 +#: ../../c-api/init.rst:1430 msgid "" "Reset all information in an interpreter state object. There must be an :" "term:`attached thread state` for the the interpreter." msgstr "" -#: ../../c-api/init.rst:1392 +#: ../../c-api/init.rst:1433 msgid "" "Raises an :ref:`auditing event ` ``cpython." "PyInterpreterState_Clear`` with no arguments." @@ -1954,7 +2018,7 @@ msgstr "" "引数無しで :ref:`監査イベント ` ``cpython." "PyInterpreterState_Clear`` を送出します。 " -#: ../../c-api/init.rst:1397 +#: ../../c-api/init.rst:1438 msgid "" "Destroy an interpreter state object. There **should not** be an :term:" "`attached thread state` for the target interpreter. The interpreter state " @@ -1962,108 +2026,108 @@ msgid "" "`PyInterpreterState_Clear`." msgstr "" -#: ../../c-api/init.rst:1404 +#: ../../c-api/init.rst:1445 msgid "" "Create a new thread state object belonging to the given interpreter object. " "An :term:`attached thread state` is not needed." msgstr "" -#: ../../c-api/init.rst:1409 +#: ../../c-api/init.rst:1450 msgid "" "Reset all information in a :term:`thread state` object. *tstate* must be :" "term:`attached `" msgstr "" -#: ../../c-api/init.rst:1412 +#: ../../c-api/init.rst:1453 msgid "" "This function now calls the :c:member:`PyThreadState.on_delete` callback. " "Previously, that happened in :c:func:`PyThreadState_Delete`." msgstr "" -#: ../../c-api/init.rst:1416 +#: ../../c-api/init.rst:1457 msgid "The :c:member:`PyThreadState.on_delete` callback was removed." msgstr "" -#: ../../c-api/init.rst:1422 +#: ../../c-api/init.rst:1463 msgid "" "Destroy a :term:`thread state` object. *tstate* should not be :term:" "`attached ` to any thread. *tstate* must have been " "reset with a previous call to :c:func:`PyThreadState_Clear`." msgstr "" -#: ../../c-api/init.rst:1430 +#: ../../c-api/init.rst:1471 msgid "" "Detach the :term:`attached thread state` (which must have been reset with a " "previous call to :c:func:`PyThreadState_Clear`) and then destroy it." msgstr "" -#: ../../c-api/init.rst:1433 +#: ../../c-api/init.rst:1474 msgid "" "No :term:`thread state` will be :term:`attached ` " "upon returning." msgstr "" -#: ../../c-api/init.rst:1438 +#: ../../c-api/init.rst:1479 msgid "Get the current frame of the Python thread state *tstate*." msgstr "" -#: ../../c-api/init.rst:1440 +#: ../../c-api/init.rst:1481 msgid "" "Return a :term:`strong reference`. Return ``NULL`` if no frame is currently " "executing." msgstr "" -#: ../../c-api/init.rst:1443 +#: ../../c-api/init.rst:1484 msgid "See also :c:func:`PyEval_GetFrame`." msgstr "" -#: ../../c-api/init.rst:1445 ../../c-api/init.rst:1454 -#: ../../c-api/init.rst:1463 +#: ../../c-api/init.rst:1486 ../../c-api/init.rst:1495 +#: ../../c-api/init.rst:1504 msgid "" "*tstate* must not be ``NULL``, and must be :term:`attached `." msgstr "" -#: ../../c-api/init.rst:1452 +#: ../../c-api/init.rst:1493 msgid "" "Get the unique :term:`thread state` identifier of the Python thread state " "*tstate*." msgstr "" -#: ../../c-api/init.rst:1461 +#: ../../c-api/init.rst:1502 msgid "Get the interpreter of the Python thread state *tstate*." msgstr "" -#: ../../c-api/init.rst:1470 +#: ../../c-api/init.rst:1511 msgid "Suspend tracing and profiling in the Python thread state *tstate*." msgstr "" -#: ../../c-api/init.rst:1472 +#: ../../c-api/init.rst:1513 msgid "Resume them using the :c:func:`PyThreadState_LeaveTracing` function." msgstr "" -#: ../../c-api/init.rst:1479 +#: ../../c-api/init.rst:1520 msgid "" "Resume tracing and profiling in the Python thread state *tstate* suspended " "by the :c:func:`PyThreadState_EnterTracing` function." msgstr "" -#: ../../c-api/init.rst:1482 +#: ../../c-api/init.rst:1523 msgid "" "See also :c:func:`PyEval_SetTrace` and :c:func:`PyEval_SetProfile` functions." msgstr "" -#: ../../c-api/init.rst:1490 +#: ../../c-api/init.rst:1531 msgid "Get the current interpreter." msgstr "" -#: ../../c-api/init.rst:1492 +#: ../../c-api/init.rst:1533 msgid "" "Issue a fatal error if there no :term:`attached thread state`. It cannot " "return NULL." msgstr "" -#: ../../c-api/init.rst:1500 +#: ../../c-api/init.rst:1541 msgid "" "Return the interpreter's unique ID. If there was any error in doing so then " "``-1`` is returned and an error is set." @@ -2071,13 +2135,13 @@ msgstr "" "インタプリタの一意な ID を返します。\n" "処理中に何かエラーが起きたら、 ``-1`` が返され、エラーがセットされます。" -#: ../../c-api/init.rst:1503 ../../c-api/init.rst:2090 -#: ../../c-api/init.rst:2097 ../../c-api/init.rst:2116 -#: ../../c-api/init.rst:2123 +#: ../../c-api/init.rst:1544 ../../c-api/init.rst:2131 +#: ../../c-api/init.rst:2138 ../../c-api/init.rst:2157 +#: ../../c-api/init.rst:2164 msgid "The caller must have an :term:`attached thread state`." msgstr "" -#: ../../c-api/init.rst:1510 +#: ../../c-api/init.rst:1551 msgid "" "Return a dictionary in which interpreter-specific data may be stored. If " "this function returns ``NULL`` then no exception has been raised and the " @@ -2087,7 +2151,7 @@ msgstr "" "この関数が ``NULL`` を返した場合は、ここまでで例外は送出されておらず、呼び出" "し側はインタプリタ固有の辞書は利用できないと考えなければなりません。" -#: ../../c-api/init.rst:1514 +#: ../../c-api/init.rst:1555 msgid "" "This is not a replacement for :c:func:`PyModule_GetState()`, which " "extensions should use to store interpreter-specific state information." @@ -2095,39 +2159,39 @@ msgstr "" "この関数は :c:func:`PyModule_GetState()` を置き換えるものではなく、拡張モ" "ジュールがインタプリタ固有の状態情報を格納するのに使うべきものです。" -#: ../../c-api/init.rst:1522 +#: ../../c-api/init.rst:1563 msgid "Type of a frame evaluation function." msgstr "" -#: ../../c-api/init.rst:1524 +#: ../../c-api/init.rst:1565 msgid "" "The *throwflag* parameter is used by the ``throw()`` method of generators: " "if non-zero, handle the current exception." msgstr "" -#: ../../c-api/init.rst:1527 +#: ../../c-api/init.rst:1568 msgid "The function now takes a *tstate* parameter." msgstr "" -#: ../../c-api/init.rst:1530 +#: ../../c-api/init.rst:1571 msgid "" "The *frame* parameter changed from ``PyFrameObject*`` to " "``_PyInterpreterFrame*``." msgstr "" -#: ../../c-api/init.rst:1535 +#: ../../c-api/init.rst:1576 msgid "Get the frame evaluation function." msgstr "" -#: ../../c-api/init.rst:1537 ../../c-api/init.rst:1545 +#: ../../c-api/init.rst:1578 ../../c-api/init.rst:1586 msgid "See the :pep:`523` \"Adding a frame evaluation API to CPython\"." msgstr "" -#: ../../c-api/init.rst:1543 +#: ../../c-api/init.rst:1584 msgid "Set the frame evaluation function." msgstr "" -#: ../../c-api/init.rst:1552 +#: ../../c-api/init.rst:1593 msgid "" "Return a dictionary in which extensions can store thread-specific state " "information. Each extension should use a unique key to use to store state " @@ -2137,7 +2201,7 @@ msgid "" "thread state is attached." msgstr "" -#: ../../c-api/init.rst:1562 +#: ../../c-api/init.rst:1603 msgid "" "Asynchronously raise an exception in a thread. The *id* argument is the " "thread id of the target thread; *exc* is the exception object to be raised. " @@ -2149,7 +2213,7 @@ msgid "" "is cleared. This raises no exceptions." msgstr "" -#: ../../c-api/init.rst:1570 +#: ../../c-api/init.rst:1611 msgid "" "The type of the *id* parameter changed from :c:expr:`long` to :c:expr:" "`unsigned long`." @@ -2157,25 +2221,25 @@ msgstr "" "*id* 引数の型が :c:expr:`long` から :c:expr:`unsigned long` へ変更されまし" "た。" -#: ../../c-api/init.rst:1576 +#: ../../c-api/init.rst:1617 msgid "" ":term:`Attach ` *tstate* to the current thread, which " "must not be ``NULL`` or already :term:`attached `." msgstr "" -#: ../../c-api/init.rst:1579 +#: ../../c-api/init.rst:1620 msgid "" "The calling thread must not already have an :term:`attached thread state`." msgstr "" -#: ../../c-api/init.rst:1587 +#: ../../c-api/init.rst:1628 msgid "" "Updated to be consistent with :c:func:`PyEval_RestoreThread`, :c:func:" "`Py_END_ALLOW_THREADS`, and :c:func:`PyGILState_Ensure`, and terminate the " "current thread if called while the interpreter is finalizing." msgstr "" -#: ../../c-api/init.rst:1596 +#: ../../c-api/init.rst:1637 msgid "" ":c:func:`PyEval_RestoreThread` is a higher-level function which is always " "available (even when threads have not been initialized)." @@ -2183,14 +2247,14 @@ msgstr "" ":c:func:`PyEval_RestoreThread` はいつでも (スレッドが初期化されたいないときで" "も) 利用可能な高レベル関数です。" -#: ../../c-api/init.rst:1602 +#: ../../c-api/init.rst:1643 msgid "" "Detach the :term:`attached thread state`. The *tstate* argument, which must " "not be ``NULL``, is only used to check that it represents the :term:" "`attached thread state` --- if it isn't, a fatal error is reported." msgstr "" -#: ../../c-api/init.rst:1607 +#: ../../c-api/init.rst:1648 msgid "" ":c:func:`PyEval_SaveThread` is a higher-level function which is always " "available (even when threads have not been initialized)." @@ -2198,11 +2262,11 @@ msgstr "" ":c:func:`PyEval_SaveThread` はより高レベルな関数で常に (スレッドが初期化され" "ていないときでも) 利用できます。" -#: ../../c-api/init.rst:1614 +#: ../../c-api/init.rst:1655 msgid "Sub-interpreter support" msgstr "サブインタプリタサポート" -#: ../../c-api/init.rst:1616 +#: ../../c-api/init.rst:1657 msgid "" "While in most uses, you will only embed a single Python interpreter, there " "are cases where you need to create several independent interpreters in the " @@ -2214,7 +2278,7 @@ msgstr "" "る必要があります。\n" "これを可能にするのがサブインタプリタです。" -#: ../../c-api/init.rst:1621 +#: ../../c-api/init.rst:1662 msgid "" "The \"main\" interpreter is the first one created when the runtime " "initializes. It is usually the only Python interpreter in a process. Unlike " @@ -2233,7 +2297,7 @@ msgstr "" ":c:func:`PyInterpreterState_Main` 関数は、メインインタプリタの状態へのポイン" "タを返します。" -#: ../../c-api/init.rst:1628 +#: ../../c-api/init.rst:1669 msgid "" "You can switch between sub-interpreters using the :c:func:" "`PyThreadState_Swap` function. You can create and destroy them using the " @@ -2242,24 +2306,24 @@ msgstr "" "サブインタプリタを切り替えが :c:func:`PyThreadState_Swap` 関数でできます。\n" "次の関数を使ってサブインタプリタの作成と削除が行えます:" -#: ../../c-api/init.rst:1634 +#: ../../c-api/init.rst:1675 msgid "" "Structure containing most parameters to configure a sub-interpreter. Its " "values are used only in :c:func:`Py_NewInterpreterFromConfig` and never " "modified by the runtime." msgstr "" -#: ../../c-api/init.rst:1640 +#: ../../c-api/init.rst:1681 msgid "Structure fields:" msgstr "構造体フィールド:" -#: ../../c-api/init.rst:1644 +#: ../../c-api/init.rst:1685 msgid "" "If this is ``0`` then the sub-interpreter will use its own \"object\" " "allocator state. Otherwise it will use (share) the main interpreter's." msgstr "" -#: ../../c-api/init.rst:1648 +#: ../../c-api/init.rst:1689 msgid "" "If this is ``0`` then :c:member:`~PyInterpreterConfig." "check_multi_interp_extensions` must be ``1`` (non-zero). If this is ``1`` " @@ -2267,44 +2331,44 @@ msgid "" "`PyInterpreterConfig_OWN_GIL`." msgstr "" -#: ../../c-api/init.rst:1656 +#: ../../c-api/init.rst:1697 msgid "" "If this is ``0`` then the runtime will not support forking the process in " "any thread where the sub-interpreter is currently active. Otherwise fork is " "unrestricted." msgstr "" -#: ../../c-api/init.rst:1660 +#: ../../c-api/init.rst:1701 msgid "" "Note that the :mod:`subprocess` module still works when fork is disallowed." msgstr "" -#: ../../c-api/init.rst:1665 +#: ../../c-api/init.rst:1706 msgid "" "If this is ``0`` then the runtime will not support replacing the current " "process via exec (e.g. :func:`os.execv`) in any thread where the sub-" "interpreter is currently active. Otherwise exec is unrestricted." msgstr "" -#: ../../c-api/init.rst:1670 +#: ../../c-api/init.rst:1711 msgid "" "Note that the :mod:`subprocess` module still works when exec is disallowed." msgstr "" -#: ../../c-api/init.rst:1675 +#: ../../c-api/init.rst:1716 msgid "" "If this is ``0`` then the sub-interpreter's :mod:`threading` module won't " "create threads. Otherwise threads are allowed." msgstr "" -#: ../../c-api/init.rst:1681 +#: ../../c-api/init.rst:1722 msgid "" "If this is ``0`` then the sub-interpreter's :mod:`threading` module won't " "create daemon threads. Otherwise daemon threads are allowed (as long as :c:" "member:`~PyInterpreterConfig.allow_threads` is non-zero)." msgstr "" -#: ../../c-api/init.rst:1688 +#: ../../c-api/init.rst:1729 msgid "" "If this is ``0`` then all extension modules may be imported, including " "legacy (single-phase init) modules, in any thread where the sub-interpreter " @@ -2313,37 +2377,37 @@ msgid "" "`Py_mod_multiple_interpreters`.)" msgstr "" -#: ../../c-api/init.rst:1695 +#: ../../c-api/init.rst:1736 msgid "" "This must be ``1`` (non-zero) if :c:member:`~PyInterpreterConfig." "use_main_obmalloc` is ``0``." msgstr "" -#: ../../c-api/init.rst:1700 +#: ../../c-api/init.rst:1741 msgid "" "This determines the operation of the GIL for the sub-interpreter. It may be " "one of the following:" msgstr "" -#: ../../c-api/init.rst:1707 +#: ../../c-api/init.rst:1748 msgid "Use the default selection (:c:macro:`PyInterpreterConfig_SHARED_GIL`)." msgstr "" -#: ../../c-api/init.rst:1711 +#: ../../c-api/init.rst:1752 msgid "Use (share) the main interpreter's GIL." msgstr "" -#: ../../c-api/init.rst:1715 +#: ../../c-api/init.rst:1756 msgid "Use the sub-interpreter's own GIL." msgstr "" -#: ../../c-api/init.rst:1717 +#: ../../c-api/init.rst:1758 msgid "" "If this is :c:macro:`PyInterpreterConfig_OWN_GIL` then :c:member:" "`PyInterpreterConfig.use_main_obmalloc` must be ``0``." msgstr "" -#: ../../c-api/init.rst:1731 +#: ../../c-api/init.rst:1772 msgid "" "Create a new sub-interpreter. This is an (almost) totally separate " "environment for the execution of Python code. In particular, the new " @@ -2366,13 +2430,13 @@ msgstr "" "stdout``, ``sys.stderr`` を持ちます (とはいえ、これらのストリームは根底にある" "同じファイル記述子を参照しています)。" -#: ../../c-api/init.rst:1741 +#: ../../c-api/init.rst:1782 msgid "" "The given *config* controls the options with which the interpreter is " "initialized." msgstr "" -#: ../../c-api/init.rst:1744 +#: ../../c-api/init.rst:1785 msgid "" "Upon success, *tstate_p* will be set to the first :term:`thread state` " "created in the new sub-interpreter. This thread state is :term:`attached " @@ -2383,7 +2447,7 @@ msgid "" "not exist." msgstr "" -#: ../../c-api/init.rst:1753 +#: ../../c-api/init.rst:1794 msgid "" "Like all other Python/C API functions, an :term:`attached thread state` must " "be present before calling this function, but it might be detached upon " @@ -2396,13 +2460,13 @@ msgid "" "will remain detached." msgstr "" -#: ../../c-api/init.rst:1764 +#: ../../c-api/init.rst:1805 msgid "" "Sub-interpreters are most effective when isolated from each other, with " "certain functionality restricted::" msgstr "" -#: ../../c-api/init.rst:1767 +#: ../../c-api/init.rst:1808 msgid "" "PyInterpreterConfig config = {\n" " .use_main_obmalloc = 0,\n" @@ -2420,7 +2484,7 @@ msgid "" "}" msgstr "" -#: ../../c-api/init.rst:1782 +#: ../../c-api/init.rst:1823 msgid "" "Note that the config is used only briefly and does not get modified. During " "initialization the config's values are converted into various :c:type:" @@ -2428,11 +2492,11 @@ msgid "" "internally on the :c:type:`PyInterpreterState`." msgstr "" -#: ../../c-api/init.rst:1791 +#: ../../c-api/init.rst:1832 msgid "Extension modules are shared between (sub-)interpreters as follows:" msgstr "" -#: ../../c-api/init.rst:1793 +#: ../../c-api/init.rst:1834 msgid "" "For modules using multi-phase initialization, e.g. :c:func:" "`PyModule_FromDefAndSpec`, a separate module object is created and " @@ -2440,7 +2504,7 @@ msgid "" "are shared between these module objects." msgstr "" -#: ../../c-api/init.rst:1799 +#: ../../c-api/init.rst:1840 msgid "" "For modules using single-phase initialization, e.g. :c:func:" "`PyModule_Create`, the first time a particular extension is imported, it is " @@ -2452,7 +2516,7 @@ msgid "" "might cause unwanted behavior (see `Bugs and caveats`_ below)." msgstr "" -#: ../../c-api/init.rst:1810 +#: ../../c-api/init.rst:1851 msgid "" "Note that this is different from what happens when an extension is imported " "after the interpreter has been completely re-initialized by calling :c:func:" @@ -2462,7 +2526,7 @@ msgid "" "shared between these modules." msgstr "" -#: ../../c-api/init.rst:1830 +#: ../../c-api/init.rst:1871 msgid "" "Create a new sub-interpreter. This is essentially just a wrapper around :c:" "func:`Py_NewInterpreterFromConfig` with a config that preserves the existing " @@ -2471,7 +2535,7 @@ msgid "" "single-phase init modules." msgstr "" -#: ../../c-api/init.rst:1842 +#: ../../c-api/init.rst:1883 msgid "" "Destroy the (sub-)interpreter represented by the given :term:`thread state`. " "The given thread state must be :term:`attached `. " @@ -2479,17 +2543,17 @@ msgid "" "thread states associated with this interpreter are destroyed." msgstr "" -#: ../../c-api/init.rst:1847 +#: ../../c-api/init.rst:1888 msgid "" ":c:func:`Py_FinalizeEx` will destroy all sub-interpreters that haven't been " "explicitly destroyed at that point." msgstr "" -#: ../../c-api/init.rst:1852 +#: ../../c-api/init.rst:1893 msgid "A Per-Interpreter GIL" msgstr "" -#: ../../c-api/init.rst:1854 +#: ../../c-api/init.rst:1895 msgid "" "Using :c:func:`Py_NewInterpreterFromConfig` you can create a sub-interpreter " "that is completely isolated from other interpreters, including having its " @@ -2501,7 +2565,7 @@ msgid "" "just using threads. (See :pep:`554`.)" msgstr "" -#: ../../c-api/init.rst:1864 +#: ../../c-api/init.rst:1905 msgid "" "Using an isolated interpreter requires vigilance in preserving that " "isolation. That especially means not sharing any objects or mutable state " @@ -2515,7 +2579,7 @@ msgid "" "builtin objects." msgstr "" -#: ../../c-api/init.rst:1875 +#: ../../c-api/init.rst:1916 msgid "" "If you preserve isolation then you will have access to proper multi-core " "computing without the complications that come with free-threading. Failure " @@ -2523,7 +2587,7 @@ msgid "" "threading, including races and hard-to-debug crashes." msgstr "" -#: ../../c-api/init.rst:1880 +#: ../../c-api/init.rst:1921 msgid "" "Aside from that, one of the main challenges of using multiple isolated " "interpreters is how to communicate between them safely (not break isolation) " @@ -2533,11 +2597,11 @@ msgid "" "sharing) data between interpreters." msgstr "" -#: ../../c-api/init.rst:1891 +#: ../../c-api/init.rst:1932 msgid "Bugs and caveats" msgstr "バグと注意事項" -#: ../../c-api/init.rst:1893 +#: ../../c-api/init.rst:1934 msgid "" "Because sub-interpreters (and the main interpreter) are part of the same " "process, the insulation between them isn't perfect --- for example, using " @@ -2550,7 +2614,7 @@ msgid "" "should be avoided if possible." msgstr "" -#: ../../c-api/init.rst:1903 +#: ../../c-api/init.rst:1944 msgid "" "Special care should be taken to avoid sharing user-defined functions, " "methods, instances or classes between sub-interpreters, since import " @@ -2559,7 +2623,7 @@ msgid "" "objects from which the above are reachable." msgstr "" -#: ../../c-api/init.rst:1909 +#: ../../c-api/init.rst:1950 msgid "" "Also note that combining this functionality with ``PyGILState_*`` APIs is " "delicate, because these APIs assume a bijection between Python thread states " @@ -2579,11 +2643,11 @@ msgstr "" "たスレッドから Pythonコードを実行している拡張モジュールはサブインタプリタを使" "うと壊れる可能性があります。" -#: ../../c-api/init.rst:1920 +#: ../../c-api/init.rst:1961 msgid "Asynchronous Notifications" msgstr "非同期通知" -#: ../../c-api/init.rst:1922 +#: ../../c-api/init.rst:1963 msgid "" "A mechanism is provided to make asynchronous notifications to the main " "interpreter thread. These notifications take the form of a function pointer " @@ -2592,7 +2656,7 @@ msgstr "" "インタプリタのメインスレッドに非同期な通知を行うために提供されている仕組みで" "す。これらの通知は関数ポインタと void ポインタ引数という形態を取ります。" -#: ../../c-api/init.rst:1929 +#: ../../c-api/init.rst:1970 msgid "" "Schedule a function to be called from the main interpreter thread. On " "success, ``0`` is returned and *func* is queued for being called in the main " @@ -2602,7 +2666,7 @@ msgstr "" "``0`` が返り、*func* はメインスレッドの呼び出しキューに詰められます。失敗する" "と、例外をセットせずに ``-1`` が返ります。" -#: ../../c-api/init.rst:1933 +#: ../../c-api/init.rst:1974 msgid "" "When successfully queued, *func* will be *eventually* called from the main " "interpreter thread with the argument *arg*. It will be called " @@ -2614,17 +2678,17 @@ msgstr "" "Python コードに対して非同期に呼び出されますが、次の両方の条件に合致したときに" "呼び出されます:" -#: ../../c-api/init.rst:1938 +#: ../../c-api/init.rst:1979 msgid "on a :term:`bytecode` boundary;" msgstr ":term:`bytecode` 境界上にいるとき、" -#: ../../c-api/init.rst:1939 +#: ../../c-api/init.rst:1980 msgid "" "with the main thread holding an :term:`attached thread state` (*func* can " "therefore use the full C API)." msgstr "" -#: ../../c-api/init.rst:1942 +#: ../../c-api/init.rst:1983 msgid "" "*func* must return ``0`` on success, or ``-1`` on failure with an exception " "set. *func* won't be interrupted to perform another asynchronous " @@ -2632,7 +2696,7 @@ msgid "" "if the :term:`thread state ` is detached." msgstr "" -#: ../../c-api/init.rst:1947 +#: ../../c-api/init.rst:1988 msgid "" "This function doesn't need an :term:`attached thread state`. However, to " "call this function in a subinterpreter, the caller must have an :term:" @@ -2640,7 +2704,7 @@ msgid "" "be called from the wrong interpreter." msgstr "" -#: ../../c-api/init.rst:1952 +#: ../../c-api/init.rst:1993 msgid "" "This is a low-level function, only useful for very special cases. There is " "no guarantee that *func* will be called as quick as possible. If the main " @@ -2656,7 +2720,7 @@ msgstr "" "には **向きません** 。これの代わりに、 :ref:`PyGILState API` を使用" "してください。" -#: ../../c-api/init.rst:1961 +#: ../../c-api/init.rst:2002 msgid "" "If this function is called in a subinterpreter, the function *func* is now " "scheduled to be called from the subinterpreter, rather than being called " @@ -2664,11 +2728,11 @@ msgid "" "scheduled calls." msgstr "" -#: ../../c-api/init.rst:1970 +#: ../../c-api/init.rst:2011 msgid "Profiling and Tracing" msgstr "プロファイルとトレース (profiling and tracing)" -#: ../../c-api/init.rst:1975 +#: ../../c-api/init.rst:2016 msgid "" "The Python interpreter provides some low-level support for attaching " "profiling and execution tracing facilities. These are used for profiling, " @@ -2679,7 +2743,7 @@ msgstr "" "ポートは、プロファイルやデバッグ、適用範囲分析 (coverage analysis) ツールなど" "に使われます。" -#: ../../c-api/init.rst:1979 +#: ../../c-api/init.rst:2020 msgid "" "This C interface allows the profiling or tracing code to avoid the overhead " "of calling through Python-level callable objects, making a direct C function " @@ -2695,7 +2759,7 @@ msgstr "" "ルでき、トレース関数に報告される基本イベント (basic event) は以前のバージョン" "において Python レベルのトレース関数で報告されていたものと同じです。" -#: ../../c-api/init.rst:1989 +#: ../../c-api/init.rst:2030 msgid "" "The type of the trace function registered using :c:func:`PyEval_SetProfile` " "and :c:func:`PyEval_SetTrace`. The first parameter is the object passed to " @@ -2707,68 +2771,68 @@ msgid "" "value of *what*:" msgstr "" -#: ../../c-api/init.rst:1998 +#: ../../c-api/init.rst:2039 msgid "Value of *what*" msgstr "*what* の値" -#: ../../c-api/init.rst:1998 +#: ../../c-api/init.rst:2039 msgid "Meaning of *arg*" msgstr "*arg* の意味" -#: ../../c-api/init.rst:2000 +#: ../../c-api/init.rst:2041 msgid ":c:data:`PyTrace_CALL`" msgstr "" -#: ../../c-api/init.rst:2000 ../../c-api/init.rst:2005 -#: ../../c-api/init.rst:2016 +#: ../../c-api/init.rst:2041 ../../c-api/init.rst:2046 +#: ../../c-api/init.rst:2057 msgid "Always :c:data:`Py_None`." msgstr "常に :c:data:`Py_None` 。" -#: ../../c-api/init.rst:2002 +#: ../../c-api/init.rst:2043 msgid ":c:data:`PyTrace_EXCEPTION`" msgstr "" -#: ../../c-api/init.rst:2002 +#: ../../c-api/init.rst:2043 msgid "Exception information as returned by :func:`sys.exc_info`." msgstr ":func:`sys.exc_info` の返す例外情報です。" -#: ../../c-api/init.rst:2005 +#: ../../c-api/init.rst:2046 msgid ":c:data:`PyTrace_LINE`" msgstr "" -#: ../../c-api/init.rst:2007 +#: ../../c-api/init.rst:2048 msgid ":c:data:`PyTrace_RETURN`" msgstr "" -#: ../../c-api/init.rst:2007 +#: ../../c-api/init.rst:2048 msgid "" "Value being returned to the caller, or ``NULL`` if caused by an exception." msgstr "" "呼び出し側に返される予定の値か、例外によって関数を抜ける場合は ``NULL`` で" "す。" -#: ../../c-api/init.rst:2010 +#: ../../c-api/init.rst:2051 msgid ":c:data:`PyTrace_C_CALL`" msgstr "" -#: ../../c-api/init.rst:2010 ../../c-api/init.rst:2012 -#: ../../c-api/init.rst:2014 +#: ../../c-api/init.rst:2051 ../../c-api/init.rst:2053 +#: ../../c-api/init.rst:2055 msgid "Function object being called." msgstr "呼び出される関数オブジェクト。" -#: ../../c-api/init.rst:2012 +#: ../../c-api/init.rst:2053 msgid ":c:data:`PyTrace_C_EXCEPTION`" msgstr "" -#: ../../c-api/init.rst:2014 +#: ../../c-api/init.rst:2055 msgid ":c:data:`PyTrace_C_RETURN`" msgstr "" -#: ../../c-api/init.rst:2016 +#: ../../c-api/init.rst:2057 msgid ":c:data:`PyTrace_OPCODE`" msgstr "" -#: ../../c-api/init.rst:2021 +#: ../../c-api/init.rst:2062 msgid "" "The value of the *what* parameter to a :c:type:`Py_tracefunc` function when " "a new call to a function or method is being reported, or a new entry into a " @@ -2782,7 +2846,7 @@ msgstr "" "制御の委譲 (control transfer) が起こらないため報告されないので注意してくださ" "い。" -#: ../../c-api/init.rst:2030 +#: ../../c-api/init.rst:2071 msgid "" "The value of the *what* parameter to a :c:type:`Py_tracefunc` function when " "an exception has been raised. The callback function is called with this " @@ -2800,7 +2864,7 @@ msgstr "" "から処理が戻るごとにコールバック関数が呼び出されます。トレース関数だけがこれ" "らのイベントを受け取ります; プロファイラはこの種のイベントを必要としません。" -#: ../../c-api/init.rst:2041 +#: ../../c-api/init.rst:2082 msgid "" "The value passed as the *what* parameter to a :c:type:`Py_tracefunc` " "function (but not a profiling function) when a line-number event is being " @@ -2808,7 +2872,7 @@ msgid "" "f_trace_lines` to *0* on that frame." msgstr "" -#: ../../c-api/init.rst:2049 +#: ../../c-api/init.rst:2090 msgid "" "The value for the *what* parameter to :c:type:`Py_tracefunc` functions when " "a call is about to return." @@ -2816,7 +2880,7 @@ msgstr "" "呼び出しが返るときに :c:type:`Py_tracefunc` 関数に *what* 引数として渡す値で" "す。" -#: ../../c-api/init.rst:2055 +#: ../../c-api/init.rst:2096 msgid "" "The value for the *what* parameter to :c:type:`Py_tracefunc` functions when " "a C function is about to be called." @@ -2824,7 +2888,7 @@ msgstr "" "C関数を呼び出す直前に :c:type:`Py_tracefunc` 関数の *what* 引数として渡す値で" "す。" -#: ../../c-api/init.rst:2061 +#: ../../c-api/init.rst:2102 msgid "" "The value for the *what* parameter to :c:type:`Py_tracefunc` functions when " "a C function has raised an exception." @@ -2832,7 +2896,7 @@ msgstr "" "C関数が例外を送出したときに :c:type:`Py_tracefunc` 関数の *what* 引数として渡" "す値です。" -#: ../../c-api/init.rst:2067 +#: ../../c-api/init.rst:2108 msgid "" "The value for the *what* parameter to :c:type:`Py_tracefunc` functions when " "a C function has returned." @@ -2840,7 +2904,7 @@ msgstr "" "C関数から戻るときに :c:type:`Py_tracefunc` 関数の *what* 引数として渡す値で" "す。" -#: ../../c-api/init.rst:2073 +#: ../../c-api/init.rst:2114 msgid "" "The value for the *what* parameter to :c:type:`Py_tracefunc` functions (but " "not profiling functions) when a new opcode is about to be executed. This " @@ -2848,7 +2912,7 @@ msgid "" "attr:`~frame.f_trace_opcodes` to *1* on the frame." msgstr "" -#: ../../c-api/init.rst:2081 +#: ../../c-api/init.rst:2122 msgid "" "Set the profiler function to *func*. The *obj* parameter is passed to the " "function as its first parameter, and may be any Python object, or ``NULL``. " @@ -2858,24 +2922,24 @@ msgid "" "`PyTrace_LINE` :c:data:`PyTrace_OPCODE` and :c:data:`PyTrace_EXCEPTION`." msgstr "" -#: ../../c-api/init.rst:2088 +#: ../../c-api/init.rst:2129 msgid "See also the :func:`sys.setprofile` function." msgstr ":func:`sys.setprofile` 関数も参照してください。" -#: ../../c-api/init.rst:2094 +#: ../../c-api/init.rst:2135 msgid "" "Like :c:func:`PyEval_SetProfile` but sets the profile function in all " "running threads belonging to the current interpreter instead of the setting " "it only on the current thread." msgstr "" -#: ../../c-api/init.rst:2099 +#: ../../c-api/init.rst:2140 msgid "" "As :c:func:`PyEval_SetProfile`, this function ignores any exceptions raised " "while setting the profile functions in all threads." msgstr "" -#: ../../c-api/init.rst:2107 +#: ../../c-api/init.rst:2148 msgid "" "Set the tracing function to *func*. This is similar to :c:func:" "`PyEval_SetProfile`, except the tracing function does receive line-number " @@ -2886,28 +2950,28 @@ msgid "" "*what* parameter." msgstr "" -#: ../../c-api/init.rst:2114 +#: ../../c-api/init.rst:2155 msgid "See also the :func:`sys.settrace` function." msgstr ":func:`sys.settrace` 関数も参照してください。" -#: ../../c-api/init.rst:2120 +#: ../../c-api/init.rst:2161 msgid "" "Like :c:func:`PyEval_SetTrace` but sets the tracing function in all running " "threads belonging to the current interpreter instead of the setting it only " "on the current thread." msgstr "" -#: ../../c-api/init.rst:2125 +#: ../../c-api/init.rst:2166 msgid "" "As :c:func:`PyEval_SetTrace`, this function ignores any exceptions raised " "while setting the trace functions in all threads." msgstr "" -#: ../../c-api/init.rst:2131 +#: ../../c-api/init.rst:2172 msgid "Reference tracing" msgstr "" -#: ../../c-api/init.rst:2137 +#: ../../c-api/init.rst:2178 msgid "" "The type of the trace function registered using :c:func:" "`PyRefTracer_SetTracer`. The first parameter is a Python object that has " @@ -2917,19 +2981,19 @@ msgid "" "provided when :c:func:`PyRefTracer_SetTracer` was called." msgstr "" -#: ../../c-api/init.rst:2147 +#: ../../c-api/init.rst:2188 msgid "" "The value for the *event* parameter to :c:type:`PyRefTracer` functions when " "a Python object has been created." msgstr "" -#: ../../c-api/init.rst:2152 +#: ../../c-api/init.rst:2193 msgid "" "The value for the *event* parameter to :c:type:`PyRefTracer` functions when " "a Python object has been destroyed." msgstr "" -#: ../../c-api/init.rst:2157 +#: ../../c-api/init.rst:2198 msgid "" "Register a reference tracer function. The function will be called when a new " "Python has been created or when an object is going to be destroyed. If " @@ -2938,7 +3002,7 @@ msgid "" "return ``-1`` on error." msgstr "" -#: ../../c-api/init.rst:2163 +#: ../../c-api/init.rst:2204 msgid "" "Not that tracer functions **must not** create Python objects inside or " "otherwise the call will be re-entrant. The tracer also **must not** clear " @@ -2946,12 +3010,12 @@ msgid "" "active every time the tracer function is called." msgstr "" -#: ../../c-api/init.rst:2168 ../../c-api/init.rst:2179 +#: ../../c-api/init.rst:2209 ../../c-api/init.rst:2220 msgid "" "There must be an :term:`attached thread state` when calling this function." msgstr "" -#: ../../c-api/init.rst:2174 +#: ../../c-api/init.rst:2215 msgid "" "Get the registered reference tracer function and the value of the opaque " "data pointer that was registered when :c:func:`PyRefTracer_SetTracer` was " @@ -2959,27 +3023,27 @@ msgid "" "set the **data** pointer to NULL." msgstr "" -#: ../../c-api/init.rst:2186 +#: ../../c-api/init.rst:2227 msgid "Advanced Debugger Support" msgstr "高度なデバッガサポート (advanced debugger support)" -#: ../../c-api/init.rst:2191 +#: ../../c-api/init.rst:2232 msgid "" "These functions are only intended to be used by advanced debugging tools." msgstr "以下の関数は高度なデバッグツールでの使用のためだけのものです。" -#: ../../c-api/init.rst:2196 +#: ../../c-api/init.rst:2237 msgid "" "Return the interpreter state object at the head of the list of all such " "objects." msgstr "" "インタプリタ状態オブジェクトからなるリストのうち、先頭にあるものを返します。" -#: ../../c-api/init.rst:2201 +#: ../../c-api/init.rst:2242 msgid "Return the main interpreter state object." msgstr "メインインタプリタの状態オブジェクトを返します。" -#: ../../c-api/init.rst:2206 +#: ../../c-api/init.rst:2247 msgid "" "Return the next interpreter state object after *interp* from the list of all " "such objects." @@ -2987,7 +3051,7 @@ msgstr "" "インタプリタ状態オブジェクトからなるリストのうち、*interp* の次にあるものを返" "します。" -#: ../../c-api/init.rst:2212 +#: ../../c-api/init.rst:2253 msgid "" "Return the pointer to the first :c:type:`PyThreadState` object in the list " "of threads associated with the interpreter *interp*." @@ -2995,7 +3059,7 @@ msgstr "" "インタプリタ *interp* に関連付けられているスレッドからなるリストのうち、先頭" "にある :c:type:`PyThreadState` オブジェクトを返します。" -#: ../../c-api/init.rst:2218 +#: ../../c-api/init.rst:2259 msgid "" "Return the next thread state object after *tstate* from the list of all such " "objects belonging to the same :c:type:`PyInterpreterState` object." @@ -3003,11 +3067,11 @@ msgstr "" "*tstate* と同じ :c:type:`PyInterpreterState` オブジェクトに属しているスレッド" "状態オブジェクトのうち、 *tstate* の次にあるものを返します。" -#: ../../c-api/init.rst:2225 +#: ../../c-api/init.rst:2266 msgid "Thread Local Storage Support" msgstr "スレッドローカルストレージのサポート" -#: ../../c-api/init.rst:2229 +#: ../../c-api/init.rst:2270 msgid "" "The Python interpreter provides low-level support for thread-local storage " "(TLS) which wraps the underlying native TLS implementation to support the " @@ -3023,13 +3087,13 @@ msgstr "" "CPython の C レベル API は pthreads や Windows で与えられる TLS と同様です: " "スレッドキーとスレッドごとに :c:expr:`void*` 値を関係付ける関数を使います。" -#: ../../c-api/init.rst:2236 +#: ../../c-api/init.rst:2277 msgid "" "A :term:`thread state` does *not* need to be :term:`attached ` when calling these functions; they suppl their own locking." msgstr "" -#: ../../c-api/init.rst:2239 +#: ../../c-api/init.rst:2280 msgid "" "Note that :file:`Python.h` does not include the declaration of the TLS APIs, " "you need to include :file:`pythread.h` to use thread-local storage." @@ -3038,7 +3102,7 @@ msgstr "" "を使うには :file:`pythread.h` を include する必要があることに注意してくださ" "い。" -#: ../../c-api/init.rst:2243 +#: ../../c-api/init.rst:2284 msgid "" "None of these API functions handle memory management on behalf of the :c:" "expr:`void*` values. You need to allocate and deallocate them yourself. If " @@ -3051,11 +3115,11 @@ msgstr "" ":c:expr:`void*` 値がたまたま :c:expr:`PyObject*` だった場合は、 API 関数はそ" "れぞれの値の参照カウントの操作は行いません。" -#: ../../c-api/init.rst:2251 +#: ../../c-api/init.rst:2292 msgid "Thread Specific Storage (TSS) API" msgstr "スレッド固有ストレージ (Thread Specific Storage, TSS) API" -#: ../../c-api/init.rst:2253 +#: ../../c-api/init.rst:2294 msgid "" "TSS API is introduced to supersede the use of the existing TLS API within " "the CPython interpreter. This API uses a new type :c:type:`Py_tss_t` " @@ -3066,12 +3130,12 @@ msgstr "" "この API は、スレッドキーの表現に :c:expr:`int` の代わりに新しい型 :c:type:" "`Py_tss_t` を使います。" -#: ../../c-api/init.rst:2259 +#: ../../c-api/init.rst:2300 msgid "\"A New C-API for Thread-Local Storage in CPython\" (:pep:`539`)" msgstr "" "\"CPython のスレッドローカルストレージのための新しい C API\" (:pep:`539`)" -#: ../../c-api/init.rst:2264 +#: ../../c-api/init.rst:2305 msgid "" "This data structure represents the state of a thread key, the definition of " "which may depend on the underlying TLS implementation, and it has an " @@ -3082,7 +3146,7 @@ msgstr "" "底の TLS 実装に依存し、キーの初期化状態を表現する内部フィールドを持ちます。\n" "この構造体には公開 (public) のメンバはありません。" -#: ../../c-api/init.rst:2269 +#: ../../c-api/init.rst:2310 msgid "" "When :ref:`Py_LIMITED_API ` is not defined, static allocation of " "this type by :c:macro:`Py_tss_NEEDS_INIT` is allowed." @@ -3090,7 +3154,7 @@ msgstr "" ":ref:`Py_LIMITED_API ` が定義されていないときは、この型の :c:macro:" "`Py_tss_NEEDS_INIT` による静的メモリ確保ができます。" -#: ../../c-api/init.rst:2275 +#: ../../c-api/init.rst:2316 msgid "" "This macro expands to the initializer for :c:type:`Py_tss_t` variables. Note " "that this macro won't be defined with :ref:`Py_LIMITED_API `." @@ -3098,11 +3162,11 @@ msgstr "" "このマクロは :c:type:`Py_tss_t` 変数の初期化子に展開されます。\n" "このマクロは :ref:`Py_LIMITED_API ` があるときは定義されません。" -#: ../../c-api/init.rst:2280 +#: ../../c-api/init.rst:2321 msgid "Dynamic Allocation" msgstr "動的メモリ確保" -#: ../../c-api/init.rst:2282 +#: ../../c-api/init.rst:2323 msgid "" "Dynamic allocation of the :c:type:`Py_tss_t`, required in extension modules " "built with :ref:`Py_LIMITED_API `, where static allocation of this " @@ -3112,29 +3176,29 @@ msgstr "" "ルドされた拡張モジュールで必要になりますが、その実装がビルド時に不透明なため" "に、この型の静的なメモリ確保は不可能です。" -#: ../../c-api/init.rst:2289 +#: ../../c-api/init.rst:2330 msgid "" "Return a value which is the same state as a value initialized with :c:macro:" "`Py_tss_NEEDS_INIT`, or ``NULL`` in the case of dynamic allocation failure." msgstr "" -#: ../../c-api/init.rst:2296 +#: ../../c-api/init.rst:2337 msgid "" "Free the given *key* allocated by :c:func:`PyThread_tss_alloc`, after first " "calling :c:func:`PyThread_tss_delete` to ensure any associated thread locals " "have been unassigned. This is a no-op if the *key* argument is ``NULL``." msgstr "" -#: ../../c-api/init.rst:2302 +#: ../../c-api/init.rst:2343 msgid "" "A freed key becomes a dangling pointer. You should reset the key to ``NULL``." msgstr "" -#: ../../c-api/init.rst:2307 +#: ../../c-api/init.rst:2348 msgid "Methods" msgstr "メソッド" -#: ../../c-api/init.rst:2309 +#: ../../c-api/init.rst:2350 msgid "" "The parameter *key* of these functions must not be ``NULL``. Moreover, the " "behaviors of :c:func:`PyThread_tss_set` and :c:func:`PyThread_tss_get` are " @@ -3142,13 +3206,13 @@ msgid "" "func:`PyThread_tss_create`." msgstr "" -#: ../../c-api/init.rst:2317 +#: ../../c-api/init.rst:2358 msgid "" "Return a non-zero value if the given :c:type:`Py_tss_t` has been initialized " "by :c:func:`PyThread_tss_create`." msgstr "" -#: ../../c-api/init.rst:2323 +#: ../../c-api/init.rst:2364 msgid "" "Return a zero value on successful initialization of a TSS key. The behavior " "is undefined if the value pointed to by the *key* argument is not " @@ -3157,7 +3221,7 @@ msgid "" "no-op and immediately returns success." msgstr "" -#: ../../c-api/init.rst:2332 +#: ../../c-api/init.rst:2373 msgid "" "Destroy a TSS key to forget the values associated with the key across all " "threads, and change the key's initialization state to uninitialized. A " @@ -3166,31 +3230,31 @@ msgid "" "key -- calling it on an already destroyed key is a no-op." msgstr "" -#: ../../c-api/init.rst:2341 +#: ../../c-api/init.rst:2382 msgid "" "Return a zero value to indicate successfully associating a :c:expr:`void*` " "value with a TSS key in the current thread. Each thread has a distinct " "mapping of the key to a :c:expr:`void*` value." msgstr "" -#: ../../c-api/init.rst:2348 +#: ../../c-api/init.rst:2389 msgid "" "Return the :c:expr:`void*` value associated with a TSS key in the current " "thread. This returns ``NULL`` if no value is associated with the key in the " "current thread." msgstr "" -#: ../../c-api/init.rst:2356 +#: ../../c-api/init.rst:2397 msgid "Thread Local Storage (TLS) API" msgstr "スレッドローカルストレージ (TLS) API" -#: ../../c-api/init.rst:2358 +#: ../../c-api/init.rst:2399 msgid "" "This API is superseded by :ref:`Thread Specific Storage (TSS) API `." msgstr "" -#: ../../c-api/init.rst:2363 +#: ../../c-api/init.rst:2404 msgid "" "This version of the API does not support platforms where the native TLS key " "is defined in a way that cannot be safely cast to ``int``. On such " @@ -3199,7 +3263,7 @@ msgid "" "platforms." msgstr "" -#: ../../c-api/init.rst:2368 +#: ../../c-api/init.rst:2409 msgid "" "Due to the compatibility problem noted above, this version of the API should " "not be used in new code." @@ -3207,39 +3271,39 @@ msgstr "" "前述の互換性の問題により、このバージョンのAPIは新規のコードで利用すべきではあ" "りません。" -#: ../../c-api/init.rst:2379 +#: ../../c-api/init.rst:2420 msgid "Synchronization Primitives" msgstr "同期プリミティブ" -#: ../../c-api/init.rst:2381 +#: ../../c-api/init.rst:2422 msgid "The C-API provides a basic mutual exclusion lock." msgstr "" -#: ../../c-api/init.rst:2385 +#: ../../c-api/init.rst:2426 msgid "" "A mutual exclusion lock. The :c:type:`!PyMutex` should be initialized to " "zero to represent the unlocked state. For example::" msgstr "" -#: ../../c-api/init.rst:2388 +#: ../../c-api/init.rst:2429 msgid "PyMutex mutex = {0};" msgstr "" -#: ../../c-api/init.rst:2390 +#: ../../c-api/init.rst:2431 msgid "" "Instances of :c:type:`!PyMutex` should not be copied or moved. Both the " "contents and address of a :c:type:`!PyMutex` are meaningful, and it must " "remain at a fixed, writable location in memory." msgstr "" -#: ../../c-api/init.rst:2396 +#: ../../c-api/init.rst:2437 msgid "" "A :c:type:`!PyMutex` currently occupies one byte, but the size should be " "considered unstable. The size may change in future Python releases without " "a deprecation period." msgstr "" -#: ../../c-api/init.rst:2404 +#: ../../c-api/init.rst:2445 msgid "" "Lock mutex *m*. If another thread has already locked it, the calling thread " "will block until the mutex is unlocked. While blocked, the thread will " @@ -3247,17 +3311,17 @@ msgid "" "exists." msgstr "" -#: ../../c-api/init.rst:2412 +#: ../../c-api/init.rst:2453 msgid "" "Unlock mutex *m*. The mutex must be locked --- otherwise, the function will " "issue a fatal error." msgstr "" -#: ../../c-api/init.rst:2420 +#: ../../c-api/init.rst:2461 msgid "Python Critical Section API" msgstr "" -#: ../../c-api/init.rst:2422 +#: ../../c-api/init.rst:2463 msgid "" "The critical section API provides a deadlock avoidance layer on top of per-" "object locks for :term:`free-threaded ` CPython. They are " @@ -3265,7 +3329,7 @@ msgid "" "no-ops in versions of Python with the global interpreter lock." msgstr "" -#: ../../c-api/init.rst:2427 +#: ../../c-api/init.rst:2468 msgid "" "Critical sections avoid deadlocks by implicitly suspending active critical " "sections and releasing the locks during calls to :c:func:" @@ -3275,7 +3339,7 @@ msgid "" "-- they are useful because their behavior is similar to the :term:`GIL`." msgstr "" -#: ../../c-api/init.rst:2434 +#: ../../c-api/init.rst:2475 msgid "" "The functions and structs used by the macros are exposed for cases where C " "macros are not available. They should only be used as in the given macro " @@ -3283,7 +3347,7 @@ msgid "" "future Python versions." msgstr "" -#: ../../c-api/init.rst:2441 +#: ../../c-api/init.rst:2482 msgid "" "Operations that need to lock two objects at once must use :c:macro:" "`Py_BEGIN_CRITICAL_SECTION2`. You *cannot* use nested critical sections to " @@ -3292,11 +3356,11 @@ msgid "" "lock more than two objects at once." msgstr "" -#: ../../c-api/init.rst:2447 +#: ../../c-api/init.rst:2488 msgid "Example usage::" msgstr "使用例::" -#: ../../c-api/init.rst:2449 +#: ../../c-api/init.rst:2490 msgid "" "static PyObject *\n" "set_field(MyObject *self, PyObject *value)\n" @@ -3308,7 +3372,7 @@ msgid "" "}" msgstr "" -#: ../../c-api/init.rst:2458 +#: ../../c-api/init.rst:2499 msgid "" "In the above example, :c:macro:`Py_SETREF` calls :c:macro:`Py_DECREF`, which " "can call arbitrary code through an object's deallocation function. The " @@ -3318,61 +3382,61 @@ msgid "" "`PyEval_SaveThread`." msgstr "" -#: ../../c-api/init.rst:2466 +#: ../../c-api/init.rst:2507 msgid "" "Acquires the per-object lock for the object *op* and begins a critical " "section." msgstr "" -#: ../../c-api/init.rst:2469 ../../c-api/init.rst:2483 -#: ../../c-api/init.rst:2498 ../../c-api/init.rst:2512 +#: ../../c-api/init.rst:2510 ../../c-api/init.rst:2524 +#: ../../c-api/init.rst:2539 ../../c-api/init.rst:2553 msgid "In the free-threaded build, this macro expands to::" msgstr "" -#: ../../c-api/init.rst:2471 +#: ../../c-api/init.rst:2512 msgid "" "{\n" " PyCriticalSection _py_cs;\n" " PyCriticalSection_Begin(&_py_cs, (PyObject*)(op))" msgstr "" -#: ../../c-api/init.rst:2475 ../../c-api/init.rst:2504 +#: ../../c-api/init.rst:2516 ../../c-api/init.rst:2545 msgid "In the default build, this macro expands to ``{``." msgstr "" -#: ../../c-api/init.rst:2481 +#: ../../c-api/init.rst:2522 msgid "Ends the critical section and releases the per-object lock." msgstr "" -#: ../../c-api/init.rst:2485 +#: ../../c-api/init.rst:2526 msgid "" " PyCriticalSection_End(&_py_cs);\n" "}" msgstr "" -#: ../../c-api/init.rst:2488 ../../c-api/init.rst:2517 +#: ../../c-api/init.rst:2529 ../../c-api/init.rst:2558 msgid "In the default build, this macro expands to ``}``." msgstr "" -#: ../../c-api/init.rst:2494 +#: ../../c-api/init.rst:2535 msgid "" "Acquires the per-objects locks for the objects *a* and *b* and begins a " "critical section. The locks are acquired in a consistent order (lowest " "address first) to avoid lock ordering deadlocks." msgstr "" -#: ../../c-api/init.rst:2500 +#: ../../c-api/init.rst:2541 msgid "" "{\n" " PyCriticalSection2 _py_cs2;\n" " PyCriticalSection2_Begin(&_py_cs2, (PyObject*)(a), (PyObject*)(b))" msgstr "" -#: ../../c-api/init.rst:2510 +#: ../../c-api/init.rst:2551 msgid "Ends the critical section and releases the per-object locks." msgstr "" -#: ../../c-api/init.rst:2514 +#: ../../c-api/init.rst:2555 msgid "" " PyCriticalSection2_End(&_py_cs2);\n" "}" @@ -3390,20 +3454,20 @@ msgstr "modules (in module sys)" msgid "path (in module sys)" msgstr "path (sys モジュール)" -#: ../../c-api/init.rst:350 ../../c-api/init.rst:726 ../../c-api/init.rst:1208 -#: ../../c-api/init.rst:1723 ../../c-api/init.rst:1822 +#: ../../c-api/init.rst:350 ../../c-api/init.rst:726 ../../c-api/init.rst:1236 +#: ../../c-api/init.rst:1764 ../../c-api/init.rst:1863 msgid "module" msgstr "module" -#: ../../c-api/init.rst:350 ../../c-api/init.rst:1723 ../../c-api/init.rst:1822 +#: ../../c-api/init.rst:350 ../../c-api/init.rst:1764 ../../c-api/init.rst:1863 msgid "builtins" msgstr "builtins" -#: ../../c-api/init.rst:350 ../../c-api/init.rst:1723 ../../c-api/init.rst:1822 +#: ../../c-api/init.rst:350 ../../c-api/init.rst:1764 ../../c-api/init.rst:1863 msgid "__main__" msgstr "__main__" -#: ../../c-api/init.rst:350 ../../c-api/init.rst:1723 ../../c-api/init.rst:1822 +#: ../../c-api/init.rst:350 ../../c-api/init.rst:1764 ../../c-api/init.rst:1863 msgid "sys" msgstr "sys" @@ -3415,7 +3479,7 @@ msgstr "検索" msgid "path" msgstr "パス" -#: ../../c-api/init.rst:350 ../../c-api/init.rst:1787 ../../c-api/init.rst:1840 +#: ../../c-api/init.rst:350 ../../c-api/init.rst:1828 ../../c-api/init.rst:1881 msgid "Py_FinalizeEx (C function)" msgstr "" @@ -3491,42 +3555,42 @@ msgstr "" msgid "PyEval_SaveThread (C function)" msgstr "" -#: ../../c-api/init.rst:1186 +#: ../../c-api/init.rst:1214 msgid "PyEval_AcquireThread()" msgstr "PyEval_AcquireThread()" -#: ../../c-api/init.rst:1186 +#: ../../c-api/init.rst:1214 msgid "PyEval_ReleaseThread()" msgstr "PyEval_ReleaseThread()" -#: ../../c-api/init.rst:1186 +#: ../../c-api/init.rst:1214 msgid "PyEval_SaveThread()" msgstr "PyEval_SaveThread()" -#: ../../c-api/init.rst:1186 +#: ../../c-api/init.rst:1214 msgid "PyEval_RestoreThread()" msgstr "PyEval_RestoreThread()" -#: ../../c-api/init.rst:1208 +#: ../../c-api/init.rst:1236 msgid "_thread" msgstr "_thread" -#: ../../c-api/init.rst:1723 ../../c-api/init.rst:1822 +#: ../../c-api/init.rst:1764 ../../c-api/init.rst:1863 msgid "stdout (in module sys)" msgstr "stdout (sys モジュール)" -#: ../../c-api/init.rst:1723 ../../c-api/init.rst:1822 +#: ../../c-api/init.rst:1764 ../../c-api/init.rst:1863 msgid "stderr (in module sys)" msgstr "stderr (sys モジュール)" -#: ../../c-api/init.rst:1723 ../../c-api/init.rst:1822 +#: ../../c-api/init.rst:1764 ../../c-api/init.rst:1863 msgid "stdin (in module sys)" msgstr "stdin (sys モジュール)" -#: ../../c-api/init.rst:1787 +#: ../../c-api/init.rst:1828 msgid "Py_Initialize (C function)" msgstr "" -#: ../../c-api/init.rst:1817 +#: ../../c-api/init.rst:1858 msgid "close (in module os)" msgstr "" diff --git a/c-api/init_config.po b/c-api/init_config.po index 9cab91be1..4c0e356ee 100644 --- a/c-api/init_config.po +++ b/c-api/init_config.po @@ -20,10 +20,10 @@ msgstr "" "Last-Translator: tomo, 2025\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../c-api/init_config.rst:7 diff --git a/c-api/intro.po b/c-api/intro.po index 720c815e0..9713c86d4 100644 --- a/c-api/intro.po +++ b/c-api/intro.po @@ -21,10 +21,10 @@ msgstr "" "Last-Translator: Arihiro TAKASE, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../c-api/intro.rst:8 diff --git a/c-api/iter.po b/c-api/iter.po index 2fa839ed8..ac878ae66 100644 --- a/c-api/iter.po +++ b/c-api/iter.po @@ -16,10 +16,10 @@ msgstr "" "Last-Translator: tomo, 2021\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../c-api/iter.rst:6 diff --git a/c-api/iterator.po b/c-api/iterator.po index c50196264..d4f453c3c 100644 --- a/c-api/iterator.po +++ b/c-api/iterator.po @@ -17,10 +17,10 @@ msgstr "" "Last-Translator: Taichi Haradaguchi, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../c-api/iterator.rst:6 diff --git a/c-api/list.po b/c-api/list.po index c5558b40d..36224a561 100644 --- a/c-api/list.po +++ b/c-api/list.po @@ -1,5 +1,5 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2025, Python Software Foundation +# Copyright (C) 2001 Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # @@ -11,17 +11,17 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: Python 3.13\n" +"Project-Id-Version: Python 3.14\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2025-05-02 14:19+0000\n" +"POT-Creation-Date: 2025-05-23 14:20+0000\n" "PO-Revision-Date: 2021-06-28 00:49+0000\n" "Last-Translator: tomo, 2023\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../c-api/list.rst:6 diff --git a/c-api/long.po b/c-api/long.po index 92f5b8bb9..c54309f04 100644 --- a/c-api/long.po +++ b/c-api/long.po @@ -19,10 +19,10 @@ msgstr "" "Last-Translator: tomo, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../c-api/long.rst:6 diff --git a/c-api/mapping.po b/c-api/mapping.po index 8f765e369..b2d775e22 100644 --- a/c-api/mapping.po +++ b/c-api/mapping.po @@ -1,5 +1,5 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2025, Python Software Foundation +# Copyright (C) 2001 Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # @@ -10,17 +10,17 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: Python 3.13\n" +"Project-Id-Version: Python 3.14\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2025-04-25 14:19+0000\n" +"POT-Creation-Date: 2025-05-16 14:19+0000\n" "PO-Revision-Date: 2021-06-28 00:49+0000\n" "Last-Translator: Nozomu Kaneko , 2023\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../c-api/mapping.rst:6 diff --git a/c-api/marshal.po b/c-api/marshal.po index 04689e3b6..2edc072fd 100644 --- a/c-api/marshal.po +++ b/c-api/marshal.po @@ -18,10 +18,10 @@ msgstr "" "Last-Translator: Taichi Haradaguchi, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../c-api/marshal.rst:6 diff --git a/c-api/memory.po b/c-api/memory.po index f15403b26..529c6c4ed 100644 --- a/c-api/memory.po +++ b/c-api/memory.po @@ -4,25 +4,25 @@ # FIRST AUTHOR , YEAR. # # Translators: -# tomo, 2021 # mollinaca, 2021 # yaakiyu, 2022 # Arihiro TAKASE, 2023 +# tomo, 2025 # #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.14\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2025-05-08 02:53-0300\n" +"POT-Creation-Date: 2025-05-23 14:20+0000\n" "PO-Revision-Date: 2021-06-28 00:49+0000\n" -"Last-Translator: Arihiro TAKASE, 2023\n" +"Last-Translator: tomo, 2025\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../c-api/memory.rst:8 @@ -596,246 +596,280 @@ msgstr "" "`PyObject_Calloc` の返した値でなければなりません。それ以外の場合や " "``PyObject_Free(p)`` を呼び出した後だった場合、未定義の動作になります。" -#: ../../c-api/memory.rst:383 +#: ../../c-api/memory.rst:379 +msgid "" +"Do not call this directly to free an object's memory; call the type's :c:" +"member:`~PyTypeObject.tp_free` slot instead." +msgstr "" + +#: ../../c-api/memory.rst:382 +msgid "" +"Do not use this for memory allocated by :c:macro:`PyObject_GC_New` or :c:" +"macro:`PyObject_GC_NewVar`; use :c:func:`PyObject_GC_Del` instead." +msgstr "" + +#: ../../c-api/memory.rst:387 +msgid "" +":c:func:`PyObject_GC_Del` is the equivalent of this function for memory " +"allocated by types that support garbage collection." +msgstr "" + +#: ../../c-api/memory.rst:389 ../../c-api/memory.rst:486 +msgid ":c:func:`PyObject_Malloc`" +msgstr ":c:func:`PyObject_Malloc`" + +#: ../../c-api/memory.rst:390 ../../c-api/memory.rst:487 +msgid ":c:func:`PyObject_Realloc`" +msgstr ":c:func:`PyObject_Realloc`" + +#: ../../c-api/memory.rst:391 ../../c-api/memory.rst:488 +msgid ":c:func:`PyObject_Calloc`" +msgstr ":c:func:`PyObject_Calloc`" + +#: ../../c-api/memory.rst:392 +msgid ":c:macro:`PyObject_New`" +msgstr "" + +#: ../../c-api/memory.rst:393 +msgid ":c:macro:`PyObject_NewVar`" +msgstr "" + +#: ../../c-api/memory.rst:394 +msgid ":c:func:`PyType_GenericAlloc`" +msgstr "" + +#: ../../c-api/memory.rst:395 +msgid ":c:member:`~PyTypeObject.tp_free`" +msgstr ":c:member:`~PyTypeObject.tp_free`" + +#: ../../c-api/memory.rst:401 msgid "Default Memory Allocators" msgstr "" -#: ../../c-api/memory.rst:385 +#: ../../c-api/memory.rst:403 msgid "Default memory allocators:" msgstr "" -#: ../../c-api/memory.rst:388 +#: ../../c-api/memory.rst:406 msgid "Configuration" msgstr "Configuration" -#: ../../c-api/memory.rst:388 +#: ../../c-api/memory.rst:406 msgid "Name" msgstr "名前" -#: ../../c-api/memory.rst:388 +#: ../../c-api/memory.rst:406 msgid "PyMem_RawMalloc" msgstr "PyMem_RawMalloc" -#: ../../c-api/memory.rst:388 +#: ../../c-api/memory.rst:406 msgid "PyMem_Malloc" msgstr "PyMem_Malloc" -#: ../../c-api/memory.rst:388 +#: ../../c-api/memory.rst:406 msgid "PyObject_Malloc" msgstr "PyObject_Malloc" -#: ../../c-api/memory.rst:390 +#: ../../c-api/memory.rst:408 msgid "Release build" msgstr "リリースビルド" -#: ../../c-api/memory.rst:390 +#: ../../c-api/memory.rst:408 msgid "``\"pymalloc\"``" msgstr "``\"pymalloc\"``" -#: ../../c-api/memory.rst:390 ../../c-api/memory.rst:392 +#: ../../c-api/memory.rst:408 ../../c-api/memory.rst:410 msgid "``malloc``" msgstr "``malloc``" -#: ../../c-api/memory.rst:390 +#: ../../c-api/memory.rst:408 msgid "``pymalloc``" msgstr "``pymalloc``" -#: ../../c-api/memory.rst:391 +#: ../../c-api/memory.rst:409 msgid "Debug build" msgstr "デバッグビルド" -#: ../../c-api/memory.rst:391 +#: ../../c-api/memory.rst:409 msgid "``\"pymalloc_debug\"``" msgstr "``\"pymalloc_debug\"``" -#: ../../c-api/memory.rst:391 ../../c-api/memory.rst:393 +#: ../../c-api/memory.rst:409 ../../c-api/memory.rst:411 msgid "``malloc`` + debug" msgstr "``malloc`` + debug" -#: ../../c-api/memory.rst:391 +#: ../../c-api/memory.rst:409 msgid "``pymalloc`` + debug" msgstr "``pymalloc`` + debug" -#: ../../c-api/memory.rst:392 +#: ../../c-api/memory.rst:410 msgid "Release build, without pymalloc" msgstr "pymalloc 無しのリリースビルド" -#: ../../c-api/memory.rst:392 +#: ../../c-api/memory.rst:410 msgid "``\"malloc\"``" msgstr "``\"malloc\"``" -#: ../../c-api/memory.rst:393 +#: ../../c-api/memory.rst:411 msgid "Debug build, without pymalloc" msgstr "pymalloc 無しのデバッグビルド" -#: ../../c-api/memory.rst:393 +#: ../../c-api/memory.rst:411 msgid "``\"malloc_debug\"``" msgstr "``\"malloc_debug\"``" -#: ../../c-api/memory.rst:396 +#: ../../c-api/memory.rst:414 msgid "Legend:" msgstr "説明:" -#: ../../c-api/memory.rst:398 +#: ../../c-api/memory.rst:416 msgid "Name: value for :envvar:`PYTHONMALLOC` environment variable." msgstr "" -#: ../../c-api/memory.rst:399 +#: ../../c-api/memory.rst:417 msgid "" "``malloc``: system allocators from the standard C library, C functions: :c:" "func:`malloc`, :c:func:`calloc`, :c:func:`realloc` and :c:func:`free`." msgstr "" -#: ../../c-api/memory.rst:401 +#: ../../c-api/memory.rst:419 msgid "``pymalloc``: :ref:`pymalloc memory allocator `." msgstr "" -#: ../../c-api/memory.rst:402 +#: ../../c-api/memory.rst:420 msgid "" "``mimalloc``: :ref:`mimalloc memory allocator `. The pymalloc " "allocator will be used if mimalloc support isn't available." msgstr "" -#: ../../c-api/memory.rst:404 +#: ../../c-api/memory.rst:422 msgid "" "\"+ debug\": with :ref:`debug hooks on the Python memory allocators `." msgstr "" -#: ../../c-api/memory.rst:406 +#: ../../c-api/memory.rst:424 msgid "\"Debug build\": :ref:`Python build in debug mode `." msgstr "" -#: ../../c-api/memory.rst:411 +#: ../../c-api/memory.rst:429 msgid "Customize Memory Allocators" msgstr "メモリアロケータをカスタマイズする" -#: ../../c-api/memory.rst:417 +#: ../../c-api/memory.rst:435 msgid "" "Structure used to describe a memory block allocator. The structure has the " "following fields:" msgstr "" -#: ../../c-api/memory.rst:421 ../../c-api/memory.rst:668 +#: ../../c-api/memory.rst:439 ../../c-api/memory.rst:686 msgid "Field" msgstr "フィールド" -#: ../../c-api/memory.rst:421 ../../c-api/memory.rst:668 +#: ../../c-api/memory.rst:439 ../../c-api/memory.rst:686 msgid "Meaning" msgstr "意味" -#: ../../c-api/memory.rst:423 ../../c-api/memory.rst:670 +#: ../../c-api/memory.rst:441 ../../c-api/memory.rst:688 msgid "``void *ctx``" msgstr "``void *ctx``" -#: ../../c-api/memory.rst:423 ../../c-api/memory.rst:670 +#: ../../c-api/memory.rst:441 ../../c-api/memory.rst:688 msgid "user context passed as first argument" msgstr "第一引数として渡されるユーザコンテキスト" -#: ../../c-api/memory.rst:425 +#: ../../c-api/memory.rst:443 msgid "``void* malloc(void *ctx, size_t size)``" msgstr "``void* malloc(void *ctx, size_t size)``" -#: ../../c-api/memory.rst:425 +#: ../../c-api/memory.rst:443 msgid "allocate a memory block" msgstr "メモリブロックを割り当てます" -#: ../../c-api/memory.rst:427 +#: ../../c-api/memory.rst:445 msgid "``void* calloc(void *ctx, size_t nelem, size_t elsize)``" msgstr "``void* calloc(void *ctx, size_t nelem, size_t elsize)``" -#: ../../c-api/memory.rst:427 +#: ../../c-api/memory.rst:445 msgid "allocate a memory block initialized with zeros" msgstr "0で初期化されたメモリブロックを割り当てます" -#: ../../c-api/memory.rst:430 +#: ../../c-api/memory.rst:448 msgid "``void* realloc(void *ctx, void *ptr, size_t new_size)``" msgstr "``void* realloc(void *ctx, void *ptr, size_t new_size)``" -#: ../../c-api/memory.rst:430 +#: ../../c-api/memory.rst:448 msgid "allocate or resize a memory block" msgstr "メモリブロックを割り当てるかリサイズします" -#: ../../c-api/memory.rst:432 +#: ../../c-api/memory.rst:450 msgid "``void free(void *ctx, void *ptr)``" msgstr "``void free(void *ctx, void *ptr)``" -#: ../../c-api/memory.rst:432 +#: ../../c-api/memory.rst:450 msgid "free a memory block" msgstr "メモリブロックを解放する" -#: ../../c-api/memory.rst:435 +#: ../../c-api/memory.rst:453 msgid "" "The :c:type:`!PyMemAllocator` structure was renamed to :c:type:" "`PyMemAllocatorEx` and a new ``calloc`` field was added." msgstr "" -#: ../../c-api/memory.rst:442 +#: ../../c-api/memory.rst:460 msgid "Enum used to identify an allocator domain. Domains:" msgstr "アロケータドメインを同定するための列挙型です。ドメインは:" -#: ../../c-api/memory.rst:448 ../../c-api/memory.rst:457 -#: ../../c-api/memory.rst:466 +#: ../../c-api/memory.rst:466 ../../c-api/memory.rst:475 +#: ../../c-api/memory.rst:484 msgid "Functions:" msgstr "関数:" -#: ../../c-api/memory.rst:450 +#: ../../c-api/memory.rst:468 msgid ":c:func:`PyMem_RawMalloc`" msgstr ":c:func:`PyMem_RawMalloc`" -#: ../../c-api/memory.rst:451 +#: ../../c-api/memory.rst:469 msgid ":c:func:`PyMem_RawRealloc`" msgstr ":c:func:`PyMem_RawRealloc`" -#: ../../c-api/memory.rst:452 +#: ../../c-api/memory.rst:470 msgid ":c:func:`PyMem_RawCalloc`" msgstr ":c:func:`PyMem_RawCalloc`" -#: ../../c-api/memory.rst:453 +#: ../../c-api/memory.rst:471 msgid ":c:func:`PyMem_RawFree`" msgstr ":c:func:`PyMem_RawFree`" -#: ../../c-api/memory.rst:459 +#: ../../c-api/memory.rst:477 msgid ":c:func:`PyMem_Malloc`," msgstr ":c:func:`PyMem_Malloc`," -#: ../../c-api/memory.rst:460 +#: ../../c-api/memory.rst:478 msgid ":c:func:`PyMem_Realloc`" msgstr ":c:func:`PyMem_Realloc`" -#: ../../c-api/memory.rst:461 +#: ../../c-api/memory.rst:479 msgid ":c:func:`PyMem_Calloc`" msgstr ":c:func:`PyMem_Calloc`" -#: ../../c-api/memory.rst:462 +#: ../../c-api/memory.rst:480 msgid ":c:func:`PyMem_Free`" msgstr ":c:func:`PyMem_Free`" -#: ../../c-api/memory.rst:468 -msgid ":c:func:`PyObject_Malloc`" -msgstr ":c:func:`PyObject_Malloc`" - -#: ../../c-api/memory.rst:469 -msgid ":c:func:`PyObject_Realloc`" -msgstr ":c:func:`PyObject_Realloc`" - -#: ../../c-api/memory.rst:470 -msgid ":c:func:`PyObject_Calloc`" -msgstr ":c:func:`PyObject_Calloc`" - -#: ../../c-api/memory.rst:471 +#: ../../c-api/memory.rst:489 msgid ":c:func:`PyObject_Free`" msgstr ":c:func:`PyObject_Free`" -#: ../../c-api/memory.rst:475 +#: ../../c-api/memory.rst:493 msgid "Get the memory block allocator of the specified domain." msgstr "指定されたドメインのメモリブロックアロケータを取得します。" -#: ../../c-api/memory.rst:480 +#: ../../c-api/memory.rst:498 msgid "Set the memory block allocator of the specified domain." msgstr "指定されたドメインのメモリブロックアロケータを設定します。" -#: ../../c-api/memory.rst:482 +#: ../../c-api/memory.rst:500 msgid "" "The new allocator must return a distinct non-``NULL`` pointer when " "requesting zero bytes." @@ -843,21 +877,21 @@ msgstr "" "新しいアロケータは、0バイトを要求されたときユニークな ``NULL`` でないポインタ" "を返さなければなりません。" -#: ../../c-api/memory.rst:485 +#: ../../c-api/memory.rst:503 msgid "" "For the :c:macro:`PYMEM_DOMAIN_RAW` domain, the allocator must be thread-" "safe: a :term:`thread state` is not :term:`attached ` " "when the allocator is called." msgstr "" -#: ../../c-api/memory.rst:489 +#: ../../c-api/memory.rst:507 msgid "" "For the remaining domains, the allocator must also be thread-safe: the " "allocator may be called in different interpreters that do not share a :term:" "`GIL`." msgstr "" -#: ../../c-api/memory.rst:493 +#: ../../c-api/memory.rst:511 msgid "" "If the new allocator is not a hook (does not call the previous allocator), " "the :c:func:`PyMem_SetupDebugHooks` function must be called to reinstall the " @@ -867,17 +901,17 @@ msgstr "" "func:`PyMem_SetupDebugHooks` 関数を呼び出して、新しいアロケータの上にデバッグ" "フックを再度設置しなければなりません。" -#: ../../c-api/memory.rst:497 +#: ../../c-api/memory.rst:515 msgid "" "See also :c:member:`PyPreConfig.allocator` and :ref:`Preinitialize Python " "with PyPreConfig `." msgstr "" -#: ../../c-api/memory.rst:502 +#: ../../c-api/memory.rst:520 msgid ":c:func:`PyMem_SetAllocator` does have the following contract:" msgstr "" -#: ../../c-api/memory.rst:504 +#: ../../c-api/memory.rst:522 msgid "" "It can be called after :c:func:`Py_PreInitialize` and before :c:func:" "`Py_InitializeFromConfig` to install a custom memory allocator. There are no " @@ -887,7 +921,7 @@ msgid "" "allocator domains ` for more information." msgstr "" -#: ../../c-api/memory.rst:512 +#: ../../c-api/memory.rst:530 msgid "" "If called after Python has finish initializing (after :c:func:" "`Py_InitializeFromConfig` has been called) the allocator **must** wrap the " @@ -895,21 +929,21 @@ msgid "" "arbitrary one is **not supported**." msgstr "" -#: ../../c-api/memory.rst:517 +#: ../../c-api/memory.rst:535 msgid "All allocators must be thread-safe." msgstr "" -#: ../../c-api/memory.rst:523 +#: ../../c-api/memory.rst:541 msgid "" "Setup :ref:`debug hooks in the Python memory allocators ` " "to detect memory errors." msgstr "" -#: ../../c-api/memory.rst:530 +#: ../../c-api/memory.rst:548 msgid "Debug hooks on the Python memory allocators" msgstr "" -#: ../../c-api/memory.rst:532 +#: ../../c-api/memory.rst:550 msgid "" "When :ref:`Python is built in debug mode `, the :c:func:" "`PyMem_SetupDebugHooks` function is called at the :ref:`Python " @@ -917,19 +951,19 @@ msgid "" "allocators to detect memory errors." msgstr "" -#: ../../c-api/memory.rst:537 +#: ../../c-api/memory.rst:555 msgid "" "The :envvar:`PYTHONMALLOC` environment variable can be used to install debug " "hooks on a Python compiled in release mode (ex: ``PYTHONMALLOC=debug``)." msgstr "" -#: ../../c-api/memory.rst:540 +#: ../../c-api/memory.rst:558 msgid "" "The :c:func:`PyMem_SetupDebugHooks` function can be used to set debug hooks " "after calling :c:func:`PyMem_SetAllocator`." msgstr "" -#: ../../c-api/memory.rst:543 +#: ../../c-api/memory.rst:561 msgid "" "These debug hooks fill dynamically allocated memory blocks with special, " "recognizable bit patterns. Newly allocated memory is filled with the byte " @@ -939,25 +973,25 @@ msgid "" "these bytes are unlikely to be valid addresses, floats, or ASCII strings." msgstr "" -#: ../../c-api/memory.rst:550 +#: ../../c-api/memory.rst:568 msgid "Runtime checks:" msgstr "実行時チェック:" -#: ../../c-api/memory.rst:552 +#: ../../c-api/memory.rst:570 msgid "" "Detect API violations. For example, detect if :c:func:`PyObject_Free` is " "called on a memory block allocated by :c:func:`PyMem_Malloc`." msgstr "" -#: ../../c-api/memory.rst:554 +#: ../../c-api/memory.rst:572 msgid "Detect write before the start of the buffer (buffer underflow)." msgstr "" -#: ../../c-api/memory.rst:555 +#: ../../c-api/memory.rst:573 msgid "Detect write after the end of the buffer (buffer overflow)." msgstr "" -#: ../../c-api/memory.rst:556 +#: ../../c-api/memory.rst:574 msgid "" "Check that there is an :term:`attached thread state` when allocator " "functions of :c:macro:`PYMEM_DOMAIN_OBJ` (ex: :c:func:`PyObject_Malloc`) " @@ -965,7 +999,7 @@ msgid "" "called." msgstr "" -#: ../../c-api/memory.rst:561 +#: ../../c-api/memory.rst:579 msgid "" "On error, the debug hooks use the :mod:`tracemalloc` module to get the " "traceback where a memory block was allocated. The traceback is only " @@ -973,7 +1007,7 @@ msgid "" "memory block was traced." msgstr "" -#: ../../c-api/memory.rst:566 +#: ../../c-api/memory.rst:584 msgid "" "Let *S* = ``sizeof(size_t)``. ``2*S`` bytes are added at each end of each " "block of *N* bytes requested. The memory layout is like so, where p " @@ -983,49 +1017,49 @@ msgid "" "from a Python slice):" msgstr "" -#: ../../c-api/memory.rst:572 +#: ../../c-api/memory.rst:590 msgid "``p[-2*S:-S]``" msgstr "" -#: ../../c-api/memory.rst:573 +#: ../../c-api/memory.rst:591 msgid "" "Number of bytes originally asked for. This is a size_t, big-endian (easier " "to read in a memory dump)." msgstr "" -#: ../../c-api/memory.rst:575 +#: ../../c-api/memory.rst:593 msgid "``p[-S]``" msgstr "" -#: ../../c-api/memory.rst:576 +#: ../../c-api/memory.rst:594 msgid "API identifier (ASCII character):" msgstr "" -#: ../../c-api/memory.rst:578 +#: ../../c-api/memory.rst:596 msgid "``'r'`` for :c:macro:`PYMEM_DOMAIN_RAW`." msgstr "" -#: ../../c-api/memory.rst:579 +#: ../../c-api/memory.rst:597 msgid "``'m'`` for :c:macro:`PYMEM_DOMAIN_MEM`." msgstr "" -#: ../../c-api/memory.rst:580 +#: ../../c-api/memory.rst:598 msgid "``'o'`` for :c:macro:`PYMEM_DOMAIN_OBJ`." msgstr "" -#: ../../c-api/memory.rst:582 +#: ../../c-api/memory.rst:600 msgid "``p[-S+1:0]``" msgstr "" -#: ../../c-api/memory.rst:583 +#: ../../c-api/memory.rst:601 msgid "Copies of PYMEM_FORBIDDENBYTE. Used to catch under- writes and reads." msgstr "" -#: ../../c-api/memory.rst:585 +#: ../../c-api/memory.rst:603 msgid "``p[0:N]``" msgstr "" -#: ../../c-api/memory.rst:586 +#: ../../c-api/memory.rst:604 msgid "" "The requested memory, filled with copies of PYMEM_CLEANBYTE, used to catch " "reference to uninitialized memory. When a realloc-like function is called " @@ -1036,25 +1070,25 @@ msgid "" "bytes are also filled with PYMEM_DEADBYTE." msgstr "" -#: ../../c-api/memory.rst:594 +#: ../../c-api/memory.rst:612 msgid "``p[N:N+S]``" msgstr "" -#: ../../c-api/memory.rst:595 +#: ../../c-api/memory.rst:613 msgid "Copies of PYMEM_FORBIDDENBYTE. Used to catch over- writes and reads." msgstr "" -#: ../../c-api/memory.rst:597 +#: ../../c-api/memory.rst:615 msgid "``p[N+S:N+2*S]``" msgstr "" -#: ../../c-api/memory.rst:598 +#: ../../c-api/memory.rst:616 msgid "" "Only used if the ``PYMEM_DEBUG_SERIALNO`` macro is defined (not defined by " "default)." msgstr "" -#: ../../c-api/memory.rst:601 +#: ../../c-api/memory.rst:619 msgid "" "A serial number, incremented by 1 on each call to a malloc-like or realloc-" "like function. Big-endian :c:type:`size_t`. If \"bad memory\" is detected " @@ -1064,7 +1098,7 @@ msgid "" "number is incremented, and exists so you can set such a breakpoint easily." msgstr "" -#: ../../c-api/memory.rst:608 +#: ../../c-api/memory.rst:626 msgid "" "A realloc-like or free-like function first checks that the " "PYMEM_FORBIDDENBYTE bytes at each end are intact. If they've been altered, " @@ -1077,7 +1111,7 @@ msgid "" "getting used)." msgstr "" -#: ../../c-api/memory.rst:617 +#: ../../c-api/memory.rst:635 msgid "" "The :c:func:`PyMem_SetupDebugHooks` function now also works on Python " "compiled in release mode. On error, the debug hooks now use :mod:" @@ -1087,7 +1121,7 @@ msgid "" "domains are called." msgstr "" -#: ../../c-api/memory.rst:625 +#: ../../c-api/memory.rst:643 msgid "" "Byte patterns ``0xCB`` (``PYMEM_CLEANBYTE``), ``0xDB`` (``PYMEM_DEADBYTE``) " "and ``0xFB`` (``PYMEM_FORBIDDENBYTE``) have been replaced with ``0xCD``, " @@ -1095,11 +1129,11 @@ msgid "" "``malloc()`` and ``free()``." msgstr "" -#: ../../c-api/memory.rst:635 +#: ../../c-api/memory.rst:653 msgid "The pymalloc allocator" msgstr "pymalloc アロケータ" -#: ../../c-api/memory.rst:637 +#: ../../c-api/memory.rst:655 msgid "" "Python has a *pymalloc* allocator optimized for small objects (smaller or " "equal to 512 bytes) with a short lifetime. It uses memory mappings called " @@ -1108,76 +1142,76 @@ msgid "" "`PyMem_RawRealloc` for allocations larger than 512 bytes." msgstr "" -#: ../../c-api/memory.rst:643 +#: ../../c-api/memory.rst:661 msgid "" "*pymalloc* is the :ref:`default allocator ` of " "the :c:macro:`PYMEM_DOMAIN_MEM` (ex: :c:func:`PyMem_Malloc`) and :c:macro:" "`PYMEM_DOMAIN_OBJ` (ex: :c:func:`PyObject_Malloc`) domains." msgstr "" -#: ../../c-api/memory.rst:647 +#: ../../c-api/memory.rst:665 msgid "The arena allocator uses the following functions:" msgstr "アリーナアロケータは、次の関数を使います:" -#: ../../c-api/memory.rst:649 +#: ../../c-api/memory.rst:667 msgid ":c:func:`!VirtualAlloc` and :c:func:`!VirtualFree` on Windows," msgstr "" -#: ../../c-api/memory.rst:650 +#: ../../c-api/memory.rst:668 msgid ":c:func:`!mmap` and :c:func:`!munmap` if available," msgstr "" -#: ../../c-api/memory.rst:651 +#: ../../c-api/memory.rst:669 msgid ":c:func:`malloc` and :c:func:`free` otherwise." msgstr "それ以外の場合は :c:func:`malloc` と :c:func:`free`。" -#: ../../c-api/memory.rst:653 +#: ../../c-api/memory.rst:671 msgid "" "This allocator is disabled if Python is configured with the :option:`--" "without-pymalloc` option. It can also be disabled at runtime using the :" "envvar:`PYTHONMALLOC` environment variable (ex: ``PYTHONMALLOC=malloc``)." msgstr "" -#: ../../c-api/memory.rst:658 +#: ../../c-api/memory.rst:676 msgid "Customize pymalloc Arena Allocator" msgstr "pymalloc アリーナアロケータのカスタマイズ" -#: ../../c-api/memory.rst:664 +#: ../../c-api/memory.rst:682 msgid "" "Structure used to describe an arena allocator. The structure has three " "fields:" msgstr "" "アリーナアロケータを記述するための構造体です。3つのフィールドを持ちます:" -#: ../../c-api/memory.rst:672 +#: ../../c-api/memory.rst:690 msgid "``void* alloc(void *ctx, size_t size)``" msgstr "``void* alloc(void *ctx, size_t size)``" -#: ../../c-api/memory.rst:672 +#: ../../c-api/memory.rst:690 msgid "allocate an arena of size bytes" msgstr "size バイトのアリーナを割り当てます" -#: ../../c-api/memory.rst:674 +#: ../../c-api/memory.rst:692 msgid "``void free(void *ctx, void *ptr, size_t size)``" msgstr "" -#: ../../c-api/memory.rst:674 +#: ../../c-api/memory.rst:692 msgid "free an arena" msgstr "アリーナを解放します" -#: ../../c-api/memory.rst:679 +#: ../../c-api/memory.rst:697 msgid "Get the arena allocator." msgstr "アリーナアロケータを取得します。" -#: ../../c-api/memory.rst:683 +#: ../../c-api/memory.rst:701 msgid "Set the arena allocator." msgstr "アリーナアロケータを設定します。" -#: ../../c-api/memory.rst:688 +#: ../../c-api/memory.rst:706 msgid "The mimalloc allocator" msgstr "" -#: ../../c-api/memory.rst:692 +#: ../../c-api/memory.rst:710 msgid "" "Python supports the mimalloc allocator when the underlying platform support " "is available. mimalloc \"is a general purpose allocator with excellent " @@ -1185,39 +1219,39 @@ msgid "" "runtime systems of the Koka and Lean languages.\"" msgstr "" -#: ../../c-api/memory.rst:697 +#: ../../c-api/memory.rst:715 msgid "tracemalloc C API" msgstr "tracemalloc C API" -#: ../../c-api/memory.rst:703 +#: ../../c-api/memory.rst:721 msgid "Track an allocated memory block in the :mod:`tracemalloc` module." msgstr "" -#: ../../c-api/memory.rst:705 +#: ../../c-api/memory.rst:723 msgid "" "Return ``0`` on success, return ``-1`` on error (failed to allocate memory " "to store the trace). Return ``-2`` if tracemalloc is disabled." msgstr "" -#: ../../c-api/memory.rst:708 +#: ../../c-api/memory.rst:726 msgid "If memory block is already tracked, update the existing trace." msgstr "" -#: ../../c-api/memory.rst:712 +#: ../../c-api/memory.rst:730 msgid "" "Untrack an allocated memory block in the :mod:`tracemalloc` module. Do " "nothing if the block was not tracked." msgstr "" -#: ../../c-api/memory.rst:715 +#: ../../c-api/memory.rst:733 msgid "Return ``-2`` if tracemalloc is disabled, otherwise return ``0``." msgstr "" -#: ../../c-api/memory.rst:721 +#: ../../c-api/memory.rst:739 msgid "Examples" msgstr "使用例" -#: ../../c-api/memory.rst:723 +#: ../../c-api/memory.rst:741 msgid "" "Here is the example from section :ref:`memoryoverview`, rewritten so that " "the I/O buffer is allocated from the Python heap by using the first function " @@ -1226,7 +1260,7 @@ msgstr "" "最初に述べた関数セットを使って、 :ref:`memoryoverview` 節の例を Python ヒープ" "に I/O バッファをメモリ確保するように書き換えたものを以下に示します::" -#: ../../c-api/memory.rst:726 +#: ../../c-api/memory.rst:744 msgid "" "PyObject *res;\n" "char *buf = (char *) PyMem_Malloc(BUFSIZ); /* for I/O */\n" @@ -1239,11 +1273,11 @@ msgid "" "return res;" msgstr "" -#: ../../c-api/memory.rst:736 +#: ../../c-api/memory.rst:754 msgid "The same code using the type-oriented function set::" msgstr "同じコードを型対象の関数セットで書いたものを以下に示します::" -#: ../../c-api/memory.rst:738 +#: ../../c-api/memory.rst:756 msgid "" "PyObject *res;\n" "char *buf = PyMem_New(char, BUFSIZ); /* for I/O */\n" @@ -1256,7 +1290,7 @@ msgid "" "return res;" msgstr "" -#: ../../c-api/memory.rst:748 +#: ../../c-api/memory.rst:766 msgid "" "Note that in the two examples above, the buffer is always manipulated via " "functions belonging to the same set. Indeed, it is required to use the same " @@ -1272,7 +1306,7 @@ msgstr "" "操作する別のメモリ操作関数を混用しているので *致命的 (Fatal)* とラベルづけを" "しています。 ::" -#: ../../c-api/memory.rst:755 +#: ../../c-api/memory.rst:773 msgid "" "char *buf1 = PyMem_New(char, BUFSIZ);\n" "char *buf2 = (char *) malloc(BUFSIZ);\n" @@ -1283,14 +1317,14 @@ msgid "" "free(buf1); /* Fatal -- should be PyMem_Free() */" msgstr "" -#: ../../c-api/memory.rst:763 +#: ../../c-api/memory.rst:781 msgid "" "In addition to the functions aimed at handling raw memory blocks from the " "Python heap, objects in Python are allocated and released with :c:macro:" "`PyObject_New`, :c:macro:`PyObject_NewVar` and :c:func:`PyObject_Free`." msgstr "" -#: ../../c-api/memory.rst:767 +#: ../../c-api/memory.rst:785 msgid "" "These will be explained in the next chapter on defining and implementing new " "object types in C." diff --git a/c-api/memoryview.po b/c-api/memoryview.po index 6be7638da..15807b2e2 100644 --- a/c-api/memoryview.po +++ b/c-api/memoryview.po @@ -1,5 +1,5 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2025, Python Software Foundation +# Copyright (C) 2001 Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # @@ -11,17 +11,17 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: Python 3.13\n" +"Project-Id-Version: Python 3.14\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2025-04-25 14:19+0000\n" +"POT-Creation-Date: 2025-05-16 14:19+0000\n" "PO-Revision-Date: 2021-06-28 00:49+0000\n" "Last-Translator: Osamu NAKAMURA, 2023\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../c-api/memoryview.rst:9 diff --git a/c-api/method.po b/c-api/method.po index 9cc3660e5..a0104eef0 100644 --- a/c-api/method.po +++ b/c-api/method.po @@ -1,5 +1,5 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2025, Python Software Foundation +# Copyright (C) 2001 Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # @@ -10,17 +10,17 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: Python 3.13\n" +"Project-Id-Version: Python 3.14\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2025-04-25 14:19+0000\n" +"POT-Creation-Date: 2025-05-16 14:19+0000\n" "PO-Revision-Date: 2021-06-28 00:49+0000\n" "Last-Translator: tomo, 2023\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../c-api/method.rst:6 diff --git a/c-api/module.po b/c-api/module.po index bc8b76c3b..057592022 100644 --- a/c-api/module.po +++ b/c-api/module.po @@ -19,10 +19,10 @@ msgstr "" "Last-Translator: 石井明久, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../c-api/module.rst:6 diff --git a/c-api/none.po b/c-api/none.po index 1a8b4b10e..82060e89a 100644 --- a/c-api/none.po +++ b/c-api/none.po @@ -1,5 +1,5 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2025, Python Software Foundation +# Copyright (C) 2001 Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # @@ -10,17 +10,17 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: Python 3.13\n" +"Project-Id-Version: Python 3.14\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2025-05-02 14:19+0000\n" +"POT-Creation-Date: 2025-05-23 14:20+0000\n" "PO-Revision-Date: 2021-06-28 00:49+0000\n" "Last-Translator: 石井明久, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../c-api/none.rst:6 @@ -57,7 +57,7 @@ msgstr "関数から :c:data:`Py_None` を返します。" #: ../../c-api/none.rst:8 msgid "object" -msgstr "オブジェクト" +msgstr "object" #: ../../c-api/none.rst:8 msgid "None" diff --git a/c-api/number.po b/c-api/number.po index 214e69e21..dd003ebb8 100644 --- a/c-api/number.po +++ b/c-api/number.po @@ -1,5 +1,5 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2025, Python Software Foundation +# Copyright (C) 2001 Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # @@ -11,17 +11,17 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: Python 3.13\n" +"Project-Id-Version: Python 3.14\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2025-05-02 14:19+0000\n" +"POT-Creation-Date: 2025-05-23 14:20+0000\n" "PO-Revision-Date: 2021-06-28 00:49+0000\n" "Last-Translator: tomo, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../c-api/number.rst:6 diff --git a/c-api/objbuffer.po b/c-api/objbuffer.po index fd539e63f..f24e8a3c8 100644 --- a/c-api/objbuffer.po +++ b/c-api/objbuffer.po @@ -17,10 +17,10 @@ msgstr "" "Last-Translator: mollinaca, 2021\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../c-api/objbuffer.rst:4 diff --git a/c-api/object.po b/c-api/object.po index 81747047f..1369b4af9 100644 --- a/c-api/object.po +++ b/c-api/object.po @@ -20,10 +20,10 @@ msgstr "" "Last-Translator: tomo, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../c-api/object.rst:6 diff --git a/c-api/objimpl.po b/c-api/objimpl.po index aef6c69cd..876877bfe 100644 --- a/c-api/objimpl.po +++ b/c-api/objimpl.po @@ -16,10 +16,10 @@ msgstr "" "Last-Translator: tomo, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../c-api/objimpl.rst:7 diff --git a/c-api/refcounting.po b/c-api/refcounting.po index 1e84199db..1d3f3f71b 100644 --- a/c-api/refcounting.po +++ b/c-api/refcounting.po @@ -18,10 +18,10 @@ msgstr "" "Last-Translator: 石井明久, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../c-api/refcounting.rst:8 diff --git a/c-api/reflection.po b/c-api/reflection.po index 525672c97..d0cc92c27 100644 --- a/c-api/reflection.po +++ b/c-api/reflection.po @@ -16,10 +16,10 @@ msgstr "" "Last-Translator: tomo, 2021\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../c-api/reflection.rst:6 diff --git a/c-api/sequence.po b/c-api/sequence.po index 81255b0fa..c9d11af04 100644 --- a/c-api/sequence.po +++ b/c-api/sequence.po @@ -18,10 +18,10 @@ msgstr "" "Last-Translator: Nozomu Kaneko , 2023\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../c-api/sequence.rst:6 diff --git a/c-api/set.po b/c-api/set.po index fbf223cd0..742aceb0b 100644 --- a/c-api/set.po +++ b/c-api/set.po @@ -18,10 +18,10 @@ msgstr "" "Last-Translator: Nozomu Kaneko , 2023\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../c-api/set.rst:6 diff --git a/c-api/slice.po b/c-api/slice.po index 2c4dbdcd2..198ec3d10 100644 --- a/c-api/slice.po +++ b/c-api/slice.po @@ -18,10 +18,10 @@ msgstr "" "Last-Translator: 石井明久, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../c-api/slice.rst:6 diff --git a/c-api/stable.po b/c-api/stable.po index a7e2f6fc1..1bde8e7e0 100644 --- a/c-api/stable.po +++ b/c-api/stable.po @@ -1,5 +1,5 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2025, Python Software Foundation +# Copyright (C) 2001 Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # @@ -11,17 +11,17 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: Python 3.13\n" +"Project-Id-Version: Python 3.14\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2025-04-25 14:19+0000\n" +"POT-Creation-Date: 2025-05-16 14:19+0000\n" "PO-Revision-Date: 2021-06-28 00:50+0000\n" "Last-Translator: 石井明久, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../c-api/stable.rst:7 diff --git a/c-api/structures.po b/c-api/structures.po index 30d57a971..78c04f781 100644 --- a/c-api/structures.po +++ b/c-api/structures.po @@ -20,10 +20,10 @@ msgstr "" "Last-Translator: tomo, 2023\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../c-api/structures.rst:6 diff --git a/c-api/sys.po b/c-api/sys.po index aaa54b511..211f695ef 100644 --- a/c-api/sys.po +++ b/c-api/sys.po @@ -18,10 +18,10 @@ msgstr "" "Last-Translator: tomo, 2023\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../c-api/sys.rst:6 diff --git a/c-api/tuple.po b/c-api/tuple.po index 416da8958..224290e1c 100644 --- a/c-api/tuple.po +++ b/c-api/tuple.po @@ -18,10 +18,10 @@ msgstr "" "Last-Translator: tomo, 2023\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../c-api/tuple.rst:6 diff --git a/c-api/type.po b/c-api/type.po index 69dc5842e..040bdb9b8 100644 --- a/c-api/type.po +++ b/c-api/type.po @@ -12,15 +12,15 @@ msgid "" msgstr "" "Project-Id-Version: Python 3.14\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2025-05-08 02:53-0300\n" +"POT-Creation-Date: 2025-05-23 14:20+0000\n" "PO-Revision-Date: 2021-06-28 00:50+0000\n" "Last-Translator: 石井明久, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../c-api/type.rst:6 @@ -182,24 +182,37 @@ msgstr "" #: ../../c-api/type.rst:154 msgid "" "Generic handler for the :c:member:`~PyTypeObject.tp_alloc` slot of a type " -"object. Use Python's default memory allocation mechanism to allocate a new " -"instance and initialize all its contents to ``NULL``." +"object. Uses Python's default memory allocation mechanism to allocate " +"memory for a new instance, zeros the memory, then initializes the memory as " +"if by calling :c:func:`PyObject_Init` or :c:func:`PyObject_InitVar`." +msgstr "" + +#: ../../c-api/type.rst:159 +msgid "" +"Do not call this directly to allocate memory for an object; call the type's :" +"c:member:`~PyTypeObject.tp_alloc` slot instead." +msgstr "" + +#: ../../c-api/type.rst:162 +msgid "" +"For types that support garbage collection (i.e., the :c:macro:" +"`Py_TPFLAGS_HAVE_GC` flag is set), this function behaves like :c:macro:" +"`PyObject_GC_New` or :c:macro:`PyObject_GC_NewVar` (except the memory is " +"guaranteed to be zeroed before initialization), and should be paired with :c:" +"func:`PyObject_GC_Del` in :c:member:`~PyTypeObject.tp_free`. Otherwise, it " +"behaves like :c:macro:`PyObject_New` or :c:macro:`PyObject_NewVar` (except " +"the memory is guaranteed to be zeroed before initialization) and should be " +"paired with :c:func:`PyObject_Free` in :c:member:`~PyTypeObject.tp_free`." msgstr "" -"型オブジェクトの :c:member:`~PyTypeObject.tp_alloc` に対するジェネリックハン" -"ドラです。 Python のデフォルトのメモリアロケートメカニズムを使って新しいイン" -"スタンスをアロケートし、すべての内容を ``NULL`` で初期化します。" -#: ../../c-api/type.rst:160 +#: ../../c-api/type.rst:174 msgid "" "Generic handler for the :c:member:`~PyTypeObject.tp_new` slot of a type " -"object. Create a new instance using the type's :c:member:`~PyTypeObject." -"tp_alloc` slot." +"object. Creates a new instance using the type's :c:member:`~PyTypeObject." +"tp_alloc` slot and returns the resulting object." msgstr "" -"型オブジェクトの :c:member:`~PyTypeObject.tp_new` に対するジェネリックハンド" -"ラです。型の :c:member:`~PyTypeObject.tp_alloc` スロットを使って新しいインス" -"タンスを作成します。" -#: ../../c-api/type.rst:165 +#: ../../c-api/type.rst:180 msgid "" "Finalize a type object. This should be called on all type objects to finish " "their initialization. This function is responsible for adding inherited " @@ -211,7 +224,7 @@ msgstr "" "継承したスロットを型オブジェクトに追加する役割があります。成功した場合には " "``0`` を返し、エラーの場合には ``-1`` を返して例外情報を設定します。" -#: ../../c-api/type.rst:171 +#: ../../c-api/type.rst:186 msgid "" "If some of the base classes implements the GC protocol and the provided type " "does not include the :c:macro:`Py_TPFLAGS_HAVE_GC` in its flags, then the GC " @@ -222,32 +235,32 @@ msgid "" "handle." msgstr "" -#: ../../c-api/type.rst:181 +#: ../../c-api/type.rst:196 msgid "" "Return the type's name. Equivalent to getting the type's :attr:`~type." "__name__` attribute." msgstr "" -#: ../../c-api/type.rst:188 +#: ../../c-api/type.rst:203 msgid "" "Return the type's qualified name. Equivalent to getting the type's :attr:" "`~type.__qualname__` attribute." msgstr "" -#: ../../c-api/type.rst:195 +#: ../../c-api/type.rst:210 msgid "" "Return the type's fully qualified name. Equivalent to ``f\"{type.__module__}." "{type.__qualname__}\"``, or :attr:`type.__qualname__` if :attr:`type." "__module__` is not a string or is equal to ``\"builtins\"``." msgstr "" -#: ../../c-api/type.rst:203 +#: ../../c-api/type.rst:218 msgid "" "Return the type's module name. Equivalent to getting the :attr:`type." "__module__` attribute." msgstr "" -#: ../../c-api/type.rst:210 +#: ../../c-api/type.rst:225 msgid "" "Return the function pointer stored in the given slot. If the result is " "``NULL``, this indicates that either the slot is ``NULL``, or that the " @@ -258,30 +271,30 @@ msgstr "" "の場合は、スロットが ``NULL`` か、関数が不正な引数で呼ばれたことを示します。" "通常、呼び出し側は返り値のポインタを適切な関数型にキャストします。" -#: ../../c-api/type.rst:216 +#: ../../c-api/type.rst:231 msgid "" "See :c:member:`PyType_Slot.slot` for possible values of the *slot* argument." msgstr "" -#: ../../c-api/type.rst:220 +#: ../../c-api/type.rst:235 msgid "" ":c:func:`PyType_GetSlot` can now accept all types. Previously, it was " "limited to :ref:`heap types `." msgstr "" -#: ../../c-api/type.rst:226 +#: ../../c-api/type.rst:241 msgid "" "Return the module object associated with the given type when the type was " "created using :c:func:`PyType_FromModuleAndSpec`." msgstr "" -#: ../../c-api/type.rst:229 ../../c-api/type.rst:249 +#: ../../c-api/type.rst:244 ../../c-api/type.rst:264 msgid "" "If no module is associated with the given type, sets :py:class:`TypeError` " "and returns ``NULL``." msgstr "" -#: ../../c-api/type.rst:232 +#: ../../c-api/type.rst:247 msgid "" "This function is usually used to get the module in which a method is " "defined. Note that in such a method, ``PyType_GetModule(Py_TYPE(self))`` may " @@ -292,31 +305,31 @@ msgid "" "type:`!PyCMethod` cannot be used." msgstr "" -#: ../../c-api/type.rst:245 +#: ../../c-api/type.rst:260 msgid "" "Return the state of the module object associated with the given type. This " "is a shortcut for calling :c:func:`PyModule_GetState()` on the result of :c:" "func:`PyType_GetModule`." msgstr "" -#: ../../c-api/type.rst:252 +#: ../../c-api/type.rst:267 msgid "" "If the *type* has an associated module but its state is ``NULL``, returns " "``NULL`` without setting an exception." msgstr "" -#: ../../c-api/type.rst:259 +#: ../../c-api/type.rst:274 msgid "" "Find the first superclass whose module was created from the given :c:type:" "`PyModuleDef` *def*, and return that module." msgstr "" -#: ../../c-api/type.rst:262 +#: ../../c-api/type.rst:277 msgid "" "If no module is found, raises a :py:class:`TypeError` and returns ``NULL``." msgstr "" -#: ../../c-api/type.rst:264 +#: ../../c-api/type.rst:279 msgid "" "This function is intended to be used together with :c:func:" "`PyModule_GetState()` to get module state from slot methods (such as :c:" @@ -325,78 +338,78 @@ msgid "" "type:`PyCMethod` calling convention." msgstr "" -#: ../../c-api/type.rst:274 +#: ../../c-api/type.rst:289 msgid "" "Find the first superclass in *type*'s :term:`method resolution order` whose :" "c:macro:`Py_tp_token` token is equal to the given one." msgstr "" -#: ../../c-api/type.rst:277 +#: ../../c-api/type.rst:292 msgid "" "If found, set *\\*result* to a new :term:`strong reference` to it and return " "``1``." msgstr "" -#: ../../c-api/type.rst:279 +#: ../../c-api/type.rst:294 msgid "If not found, set *\\*result* to ``NULL`` and return ``0``." msgstr "" -#: ../../c-api/type.rst:280 +#: ../../c-api/type.rst:295 msgid "" "On error, set *\\*result* to ``NULL`` and return ``-1`` with an exception " "set." msgstr "" -#: ../../c-api/type.rst:283 +#: ../../c-api/type.rst:298 msgid "" "The *result* argument may be ``NULL``, in which case *\\*result* is not set. " "Use this if you need only the return value." msgstr "" -#: ../../c-api/type.rst:286 +#: ../../c-api/type.rst:301 msgid "The *token* argument may not be ``NULL``." msgstr "" -#: ../../c-api/type.rst:292 +#: ../../c-api/type.rst:307 msgid "Attempt to assign a version tag to the given type." msgstr "" -#: ../../c-api/type.rst:294 +#: ../../c-api/type.rst:309 msgid "" "Returns 1 if the type already had a valid version tag or a new one was " "assigned, or 0 if a new tag could not be assigned." msgstr "" -#: ../../c-api/type.rst:301 +#: ../../c-api/type.rst:316 msgid "Creating Heap-Allocated Types" msgstr "" -#: ../../c-api/type.rst:303 +#: ../../c-api/type.rst:318 msgid "" "The following functions and structs are used to create :ref:`heap types " "`." msgstr "" -#: ../../c-api/type.rst:308 +#: ../../c-api/type.rst:323 msgid "" "Create and return a :ref:`heap type ` from the *spec* (see :c:" "macro:`Py_TPFLAGS_HEAPTYPE`)." msgstr "" -#: ../../c-api/type.rst:311 +#: ../../c-api/type.rst:326 msgid "" "The metaclass *metaclass* is used to construct the resulting type object. " "When *metaclass* is ``NULL``, the metaclass is derived from *bases* (or " "*Py_tp_base[s]* slots if *bases* is ``NULL``, see below)." msgstr "" -#: ../../c-api/type.rst:315 +#: ../../c-api/type.rst:330 msgid "" "Metaclasses that override :c:member:`~PyTypeObject.tp_new` are not " "supported, except if ``tp_new`` is ``NULL``." msgstr "" -#: ../../c-api/type.rst:318 +#: ../../c-api/type.rst:333 msgid "" "The *bases* argument can be used to specify base classes; it can either be " "only one class or a tuple of classes. If *bases* is ``NULL``, the " @@ -405,7 +418,7 @@ msgid "" "derives from :class:`object`." msgstr "" -#: ../../c-api/type.rst:324 +#: ../../c-api/type.rst:339 msgid "" "The *module* argument can be used to record the module in which the new " "class is defined. It must be a module object or ``NULL``. If not ``NULL``, " @@ -414,11 +427,11 @@ msgid "" "subclasses; it must be specified for each class individually." msgstr "" -#: ../../c-api/type.rst:331 +#: ../../c-api/type.rst:346 msgid "This function calls :c:func:`PyType_Ready` on the new type." msgstr "" -#: ../../c-api/type.rst:333 +#: ../../c-api/type.rst:348 msgid "" "Note that this function does *not* fully match the behavior of calling :py:" "class:`type() ` or using the :keyword:`class` statement. With user-" @@ -427,108 +440,108 @@ msgid "" "Specifically:" msgstr "" -#: ../../c-api/type.rst:340 +#: ../../c-api/type.rst:355 msgid "" ":py:meth:`~object.__new__` is not called on the new class (and it must be " "set to ``type.__new__``)." msgstr "" -#: ../../c-api/type.rst:342 +#: ../../c-api/type.rst:357 msgid ":py:meth:`~object.__init__` is not called on the new class." msgstr "" -#: ../../c-api/type.rst:343 +#: ../../c-api/type.rst:358 msgid ":py:meth:`~object.__init_subclass__` is not called on any bases." msgstr "" -#: ../../c-api/type.rst:344 +#: ../../c-api/type.rst:359 msgid ":py:meth:`~object.__set_name__` is not called on new descriptors." msgstr "" -#: ../../c-api/type.rst:350 +#: ../../c-api/type.rst:365 msgid "Equivalent to ``PyType_FromMetaclass(NULL, module, spec, bases)``." msgstr "" -#: ../../c-api/type.rst:356 +#: ../../c-api/type.rst:371 msgid "" "The function now accepts a single class as the *bases* argument and ``NULL`` " "as the ``tp_doc`` slot." msgstr "" -#: ../../c-api/type.rst:361 ../../c-api/type.rst:382 +#: ../../c-api/type.rst:376 ../../c-api/type.rst:397 msgid "" "The function now finds and uses a metaclass corresponding to the provided " "base classes. Previously, only :class:`type` instances were returned." msgstr "" -#: ../../c-api/type.rst:364 ../../c-api/type.rst:385 ../../c-api/type.rst:405 +#: ../../c-api/type.rst:379 ../../c-api/type.rst:400 ../../c-api/type.rst:420 msgid "" "The :c:member:`~PyTypeObject.tp_new` of the metaclass is *ignored*. which " "may result in incomplete initialization. Creating classes whose metaclass " "overrides :c:member:`~PyTypeObject.tp_new` is deprecated." msgstr "" -#: ../../c-api/type.rst:371 ../../c-api/type.rst:392 ../../c-api/type.rst:412 +#: ../../c-api/type.rst:386 ../../c-api/type.rst:407 ../../c-api/type.rst:427 msgid "" "Creating classes whose metaclass overrides :c:member:`~PyTypeObject.tp_new` " "is no longer allowed." msgstr "" -#: ../../c-api/type.rst:376 +#: ../../c-api/type.rst:391 msgid "Equivalent to ``PyType_FromMetaclass(NULL, NULL, spec, bases)``." msgstr "" -#: ../../c-api/type.rst:397 +#: ../../c-api/type.rst:412 msgid "Equivalent to ``PyType_FromMetaclass(NULL, NULL, spec, NULL)``." msgstr "" -#: ../../c-api/type.rst:401 +#: ../../c-api/type.rst:416 msgid "" "The function now finds and uses a metaclass corresponding to the base " "classes provided in *Py_tp_base[s]* slots. Previously, only :class:`type` " "instances were returned." msgstr "" -#: ../../c-api/type.rst:417 +#: ../../c-api/type.rst:432 msgid "" "Make a type immutable: set the :c:macro:`Py_TPFLAGS_IMMUTABLETYPE` flag." msgstr "" -#: ../../c-api/type.rst:419 +#: ../../c-api/type.rst:434 msgid "All base classes of *type* must be immutable." msgstr "" -#: ../../c-api/type.rst:421 +#: ../../c-api/type.rst:436 msgid "On success, return ``0``. On error, set an exception and return ``-1``." msgstr "" -#: ../../c-api/type.rst:424 +#: ../../c-api/type.rst:439 msgid "" "The type must not be used before it's made immutable. For example, type " "instances must not be created before the type is made immutable." msgstr "" -#: ../../c-api/type.rst:440 +#: ../../c-api/type.rst:455 msgid "Structure defining a type's behavior." msgstr "" -#: ../../c-api/type.rst:444 +#: ../../c-api/type.rst:459 msgid "Name of the type, used to set :c:member:`PyTypeObject.tp_name`." msgstr "" -#: ../../c-api/type.rst:448 +#: ../../c-api/type.rst:463 msgid "" "If positive, specifies the size of the instance in bytes. It is used to set :" "c:member:`PyTypeObject.tp_basicsize`." msgstr "" -#: ../../c-api/type.rst:451 +#: ../../c-api/type.rst:466 msgid "" "If zero, specifies that :c:member:`~PyTypeObject.tp_basicsize` should be " "inherited." msgstr "" -#: ../../c-api/type.rst:454 +#: ../../c-api/type.rst:469 msgid "" "If negative, the absolute value specifies how much space instances of the " "class need *in addition* to the superclass. Use :c:func:" @@ -538,17 +551,17 @@ msgid "" "requirements." msgstr "" -#: ../../c-api/type.rst:464 +#: ../../c-api/type.rst:479 msgid "Previously, this field could not be negative." msgstr "" -#: ../../c-api/type.rst:468 +#: ../../c-api/type.rst:483 msgid "" "Size of one element of a variable-size type, in bytes. Used to set :c:member:" "`PyTypeObject.tp_itemsize`. See ``tp_itemsize`` documentation for caveats." msgstr "" -#: ../../c-api/type.rst:472 +#: ../../c-api/type.rst:487 msgid "" "If zero, :c:member:`~PyTypeObject.tp_itemsize` is inherited. Extending " "arbitrary variable-sized classes is dangerous, since some types use a fixed " @@ -557,58 +570,58 @@ msgid "" "only possible in the following situations:" msgstr "" -#: ../../c-api/type.rst:479 +#: ../../c-api/type.rst:494 msgid "" "The base is not variable-sized (its :c:member:`~PyTypeObject.tp_itemsize`)." msgstr "" -#: ../../c-api/type.rst:481 +#: ../../c-api/type.rst:496 msgid "" "The requested :c:member:`PyType_Spec.basicsize` is positive, suggesting that " "the memory layout of the base class is known." msgstr "" -#: ../../c-api/type.rst:483 +#: ../../c-api/type.rst:498 msgid "" "The requested :c:member:`PyType_Spec.basicsize` is zero, suggesting that the " "subclass does not access the instance's memory directly." msgstr "" -#: ../../c-api/type.rst:486 +#: ../../c-api/type.rst:501 msgid "With the :c:macro:`Py_TPFLAGS_ITEMS_AT_END` flag." msgstr "" -#: ../../c-api/type.rst:490 +#: ../../c-api/type.rst:505 msgid "Type flags, used to set :c:member:`PyTypeObject.tp_flags`." msgstr "" -#: ../../c-api/type.rst:492 +#: ../../c-api/type.rst:507 msgid "" "If the ``Py_TPFLAGS_HEAPTYPE`` flag is not set, :c:func:" "`PyType_FromSpecWithBases` sets it automatically." msgstr "" -#: ../../c-api/type.rst:497 +#: ../../c-api/type.rst:512 msgid "" "Array of :c:type:`PyType_Slot` structures. Terminated by the special slot " "value ``{0, NULL}``." msgstr "" -#: ../../c-api/type.rst:500 +#: ../../c-api/type.rst:515 msgid "Each slot ID should be specified at most once." msgstr "" -#: ../../c-api/type.rst:510 +#: ../../c-api/type.rst:525 msgid "" "Structure defining optional functionality of a type, containing a slot ID " "and a value pointer." msgstr "" -#: ../../c-api/type.rst:515 +#: ../../c-api/type.rst:530 msgid "A slot ID." msgstr "" -#: ../../c-api/type.rst:517 +#: ../../c-api/type.rst:532 msgid "" "Slot IDs are named like the field names of the structures :c:type:" "`PyTypeObject`, :c:type:`PyNumberMethods`, :c:type:`PySequenceMethods`, :c:" @@ -616,52 +629,52 @@ msgid "" "prefix. For example, use:" msgstr "" -#: ../../c-api/type.rst:523 +#: ../../c-api/type.rst:538 msgid "``Py_tp_dealloc`` to set :c:member:`PyTypeObject.tp_dealloc`" msgstr "" -#: ../../c-api/type.rst:524 +#: ../../c-api/type.rst:539 msgid "``Py_nb_add`` to set :c:member:`PyNumberMethods.nb_add`" msgstr "" -#: ../../c-api/type.rst:525 +#: ../../c-api/type.rst:540 msgid "``Py_sq_length`` to set :c:member:`PySequenceMethods.sq_length`" msgstr "" -#: ../../c-api/type.rst:527 +#: ../../c-api/type.rst:542 msgid "" "An additional slot is supported that does not correspond to a :c:type:`!" "PyTypeObject` struct field:" msgstr "" -#: ../../c-api/type.rst:530 +#: ../../c-api/type.rst:545 msgid ":c:data:`Py_tp_token`" msgstr "" -#: ../../c-api/type.rst:532 +#: ../../c-api/type.rst:547 msgid "" "The following “offset” fields cannot be set using :c:type:`PyType_Slot`:" msgstr "" -#: ../../c-api/type.rst:534 +#: ../../c-api/type.rst:549 msgid "" ":c:member:`~PyTypeObject.tp_weaklistoffset` (use :c:macro:" "`Py_TPFLAGS_MANAGED_WEAKREF` instead if possible)" msgstr "" -#: ../../c-api/type.rst:536 +#: ../../c-api/type.rst:551 msgid "" ":c:member:`~PyTypeObject.tp_dictoffset` (use :c:macro:" "`Py_TPFLAGS_MANAGED_DICT` instead if possible)" msgstr "" -#: ../../c-api/type.rst:538 +#: ../../c-api/type.rst:553 msgid "" ":c:member:`~PyTypeObject.tp_vectorcall_offset` (use " "``\"__vectorcalloffset__\"`` in :ref:`PyMemberDef `)" msgstr "" -#: ../../c-api/type.rst:542 +#: ../../c-api/type.rst:557 msgid "" "If it is not possible to switch to a ``MANAGED`` flag (for example, for " "vectorcall or to support Python older than 3.12), specify the offset in :c:" @@ -669,109 +682,109 @@ msgid "" "documentation ` for details." msgstr "" -#: ../../c-api/type.rst:548 +#: ../../c-api/type.rst:563 msgid "" "The following internal fields cannot be set at all when creating a heap type:" msgstr "" -#: ../../c-api/type.rst:551 +#: ../../c-api/type.rst:566 msgid "" ":c:member:`~PyTypeObject.tp_dict`, :c:member:`~PyTypeObject.tp_mro`, :c:" "member:`~PyTypeObject.tp_cache`, :c:member:`~PyTypeObject.tp_subclasses`, " "and :c:member:`~PyTypeObject.tp_weaklist`." msgstr "" -#: ../../c-api/type.rst:557 +#: ../../c-api/type.rst:572 msgid "" "Setting :c:data:`Py_tp_bases` or :c:data:`Py_tp_base` may be problematic on " "some platforms. To avoid issues, use the *bases* argument of :c:func:" "`PyType_FromSpecWithBases` instead." msgstr "" -#: ../../c-api/type.rst:562 +#: ../../c-api/type.rst:577 msgid "Slots in :c:type:`PyBufferProcs` may be set in the unlimited API." msgstr "" -#: ../../c-api/type.rst:565 +#: ../../c-api/type.rst:580 msgid "" ":c:member:`~PyBufferProcs.bf_getbuffer` and :c:member:`~PyBufferProcs." "bf_releasebuffer` are now available under the :ref:`limited API `." msgstr "" -#: ../../c-api/type.rst:570 +#: ../../c-api/type.rst:585 msgid "" "The field :c:member:`~PyTypeObject.tp_vectorcall` can now set using " "``Py_tp_vectorcall``. See the field's documentation for details." msgstr "" -#: ../../c-api/type.rst:577 +#: ../../c-api/type.rst:592 msgid "" "The desired value of the slot. In most cases, this is a pointer to a " "function." msgstr "" -#: ../../c-api/type.rst:580 +#: ../../c-api/type.rst:595 msgid "*pfunc* values may not be ``NULL``, except for the following slots:" msgstr "" -#: ../../c-api/type.rst:582 +#: ../../c-api/type.rst:597 msgid "``Py_tp_doc``" msgstr "" -#: ../../c-api/type.rst:583 +#: ../../c-api/type.rst:598 msgid "" ":c:data:`Py_tp_token` (for clarity, prefer :c:data:`Py_TP_USE_SPEC` rather " "than ``NULL``)" msgstr "" -#: ../../c-api/type.rst:588 +#: ../../c-api/type.rst:603 msgid "" "A :c:member:`~PyType_Slot.slot` that records a static memory layout ID for a " "class." msgstr "" -#: ../../c-api/type.rst:591 +#: ../../c-api/type.rst:606 msgid "" "If the :c:type:`PyType_Spec` of the class is statically allocated, the token " "can be set to the spec using the special value :c:data:`Py_TP_USE_SPEC`:" msgstr "" -#: ../../c-api/type.rst:595 +#: ../../c-api/type.rst:610 msgid "" "static PyType_Slot foo_slots[] = {\n" " {Py_tp_token, Py_TP_USE_SPEC}," msgstr "" -#: ../../c-api/type.rst:600 +#: ../../c-api/type.rst:615 msgid "It can also be set to an arbitrary pointer, but you must ensure that:" msgstr "" -#: ../../c-api/type.rst:602 +#: ../../c-api/type.rst:617 msgid "" "The pointer outlives the class, so it's not reused for something else while " "the class exists." msgstr "" -#: ../../c-api/type.rst:604 +#: ../../c-api/type.rst:619 msgid "" "It \"belongs\" to the extension module where the class lives, so it will not " "clash with other extensions." msgstr "" -#: ../../c-api/type.rst:607 +#: ../../c-api/type.rst:622 msgid "" "Use :c:func:`PyType_GetBaseByToken` to check if a class's superclass has a " "given token -- that is, check whether the memory layout is compatible." msgstr "" -#: ../../c-api/type.rst:610 +#: ../../c-api/type.rst:625 msgid "" "To get the token for a given class (without considering superclasses), use :" "c:func:`PyType_GetSlot` with ``Py_tp_token``." msgstr "" -#: ../../c-api/type.rst:619 +#: ../../c-api/type.rst:634 msgid "" "Used as a value with :c:data:`Py_tp_token` to set the token to the class's :" "c:type:`PyType_Spec`. Expands to ``NULL``." diff --git a/c-api/typehints.po b/c-api/typehints.po index bfd99b498..0fbb510bd 100644 --- a/c-api/typehints.po +++ b/c-api/typehints.po @@ -1,5 +1,5 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2025, Python Software Foundation +# Copyright (C) 2001 Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # @@ -10,17 +10,17 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: Python 3.13\n" +"Project-Id-Version: Python 3.14\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2025-05-02 14:19+0000\n" +"POT-Creation-Date: 2025-05-23 14:20+0000\n" "PO-Revision-Date: 2021-06-28 00:50+0000\n" "Last-Translator: Arihiro TAKASE, 2023\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../c-api/typehints.rst:6 diff --git a/c-api/typeobj.po b/c-api/typeobj.po index 893272c8c..83d504f0e 100644 --- a/c-api/typeobj.po +++ b/c-api/typeobj.po @@ -8,23 +8,23 @@ # Osamu NAKAMURA, 2021 # 菊池 健志, 2023 # Nozomu Kaneko , 2023 -# tomo, 2023 # Arihiro TAKASE, 2024 +# tomo, 2025 # #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.14\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2025-05-08 02:53-0300\n" +"POT-Creation-Date: 2025-05-23 14:20+0000\n" "PO-Revision-Date: 2021-06-28 00:50+0000\n" -"Last-Translator: Arihiro TAKASE, 2024\n" +"Last-Translator: tomo, 2025\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../c-api/typeobj.rst:6 @@ -151,7 +151,7 @@ msgstr ":c:member:`~PyTypeObject.tp_basicsize`" #: ../../c-api/typeobj.rst:0 ../../c-api/typeobj.rst:46 #: ../../c-api/typeobj.rst:48 ../../c-api/typeobj.rst:52 #: ../../c-api/typeobj.rst:99 ../../c-api/typeobj.rst:120 -#: ../../c-api/typeobj.rst:416 +#: ../../c-api/typeobj.rst:417 msgid ":c:type:`Py_ssize_t`" msgstr "" @@ -164,7 +164,7 @@ msgid ":c:member:`~PyTypeObject.tp_dealloc`" msgstr ":c:member:`~PyTypeObject.tp_dealloc`" #: ../../c-api/typeobj.rst:50 ../../c-api/typeobj.rst:142 -#: ../../c-api/typeobj.rst:146 ../../c-api/typeobj.rst:346 +#: ../../c-api/typeobj.rst:146 ../../c-api/typeobj.rst:347 msgid ":c:type:`destructor`" msgstr ":c:type:`destructor`" @@ -176,7 +176,7 @@ msgstr ":c:member:`~PyTypeObject.tp_vectorcall_offset`" msgid "(:c:member:`~PyTypeObject.tp_getattr`)" msgstr "(:c:member:`~PyTypeObject.tp_getattr`)" -#: ../../c-api/typeobj.rst:54 ../../c-api/typeobj.rst:370 +#: ../../c-api/typeobj.rst:54 ../../c-api/typeobj.rst:371 msgid ":c:type:`getattrfunc`" msgstr ":c:type:`getattrfunc`" @@ -195,7 +195,7 @@ msgstr "G" msgid "(:c:member:`~PyTypeObject.tp_setattr`)" msgstr "(:c:member:`~PyTypeObject.tp_setattr`)" -#: ../../c-api/typeobj.rst:57 ../../c-api/typeobj.rst:375 +#: ../../c-api/typeobj.rst:57 ../../c-api/typeobj.rst:376 msgid ":c:type:`setattrfunc`" msgstr ":c:type:`setattrfunc`" @@ -213,6 +213,7 @@ msgstr ":c:type:`PyAsyncMethods` *" #: ../../c-api/typeobj.rst:60 ../../c-api/typeobj.rst:64 #: ../../c-api/typeobj.rst:66 ../../c-api/typeobj.rst:68 +#: ../../c-api/typeobj.rst:82 msgid ":ref:`sub-slots`" msgstr ":ref:`sub-slots`" @@ -227,7 +228,7 @@ msgid ":c:member:`~PyTypeObject.tp_repr`" msgstr ":c:member:`~PyTypeObject.tp_repr`" #: ../../c-api/typeobj.rst:62 ../../c-api/typeobj.rst:74 -#: ../../c-api/typeobj.rst:368 +#: ../../c-api/typeobj.rst:369 msgid ":c:type:`reprfunc`" msgstr ":c:type:`reprfunc`" @@ -263,7 +264,7 @@ msgstr ":c:type:`PyMappingMethods` *" msgid ":c:member:`~PyTypeObject.tp_hash`" msgstr ":c:member:`~PyTypeObject.tp_hash`" -#: ../../c-api/typeobj.rst:70 ../../c-api/typeobj.rst:404 +#: ../../c-api/typeobj.rst:70 ../../c-api/typeobj.rst:405 msgid ":c:type:`hashfunc`" msgstr ":c:type:`hashfunc`" @@ -276,7 +277,7 @@ msgid ":c:member:`~PyTypeObject.tp_call`" msgstr ":c:member:`~PyTypeObject.tp_call`" #: ../../c-api/typeobj.rst:72 ../../c-api/typeobj.rst:237 -#: ../../c-api/typeobj.rst:240 ../../c-api/typeobj.rst:440 +#: ../../c-api/typeobj.rst:240 ../../c-api/typeobj.rst:441 msgid ":c:type:`ternaryfunc`" msgstr ":c:type:`ternaryfunc`" @@ -296,7 +297,7 @@ msgstr "__str__" msgid ":c:member:`~PyTypeObject.tp_getattro`" msgstr ":c:member:`~PyTypeObject.tp_getattro`" -#: ../../c-api/typeobj.rst:76 ../../c-api/typeobj.rst:381 +#: ../../c-api/typeobj.rst:76 ../../c-api/typeobj.rst:382 msgid ":c:type:`getattrofunc`" msgstr ":c:type:`getattrofunc`" @@ -304,7 +305,7 @@ msgstr ":c:type:`getattrofunc`" msgid ":c:member:`~PyTypeObject.tp_setattro`" msgstr ":c:member:`~PyTypeObject.tp_setattro`" -#: ../../c-api/typeobj.rst:79 ../../c-api/typeobj.rst:386 +#: ../../c-api/typeobj.rst:79 ../../c-api/typeobj.rst:387 msgid ":c:type:`setattrofunc`" msgstr ":c:type:`setattrofunc`" @@ -343,7 +344,7 @@ msgstr "__doc__" msgid ":c:member:`~PyTypeObject.tp_traverse`" msgstr ":c:member:`~PyTypeObject.tp_traverse`" -#: ../../c-api/typeobj.rst:88 ../../c-api/typeobj.rst:350 +#: ../../c-api/typeobj.rst:88 ../../c-api/typeobj.rst:351 msgid ":c:type:`traverseproc`" msgstr ":c:type:`traverseproc`" @@ -352,7 +353,7 @@ msgid ":c:member:`~PyTypeObject.tp_clear`" msgstr ":c:member:`~PyTypeObject.tp_clear`" #: ../../c-api/typeobj.rst:90 ../../c-api/typeobj.rst:130 -#: ../../c-api/typeobj.rst:248 ../../c-api/typeobj.rst:429 +#: ../../c-api/typeobj.rst:248 ../../c-api/typeobj.rst:430 msgid ":c:type:`inquiry`" msgstr ":c:type:`inquiry`" @@ -360,7 +361,7 @@ msgstr ":c:type:`inquiry`" msgid ":c:member:`~PyTypeObject.tp_richcompare`" msgstr ":c:member:`~PyTypeObject.tp_richcompare`" -#: ../../c-api/typeobj.rst:92 ../../c-api/typeobj.rst:406 +#: ../../c-api/typeobj.rst:92 ../../c-api/typeobj.rst:407 msgid ":c:type:`richcmpfunc`" msgstr ":c:type:`richcmpfunc`" @@ -376,7 +377,7 @@ msgstr "" msgid ":c:member:`~PyTypeObject.tp_iter`" msgstr ":c:member:`~PyTypeObject.tp_iter`" -#: ../../c-api/typeobj.rst:101 ../../c-api/typeobj.rst:412 +#: ../../c-api/typeobj.rst:101 ../../c-api/typeobj.rst:413 msgid ":c:type:`getiterfunc`" msgstr ":c:type:`getiterfunc`" @@ -388,7 +389,7 @@ msgstr "__iter__" msgid ":c:member:`~PyTypeObject.tp_iternext`" msgstr ":c:member:`~PyTypeObject.tp_iternext`" -#: ../../c-api/typeobj.rst:103 ../../c-api/typeobj.rst:414 +#: ../../c-api/typeobj.rst:103 ../../c-api/typeobj.rst:415 msgid ":c:type:`iternextfunc`" msgstr ":c:type:`iternextfunc`" @@ -439,15 +440,15 @@ msgstr ":c:member:`~PyTypeObject.tp_dict`" #: ../../c-api/typeobj.rst:0 ../../c-api/typeobj.rst:113 #: ../../c-api/typeobj.rst:132 ../../c-api/typeobj.rst:134 #: ../../c-api/typeobj.rst:136 ../../c-api/typeobj.rst:140 -#: ../../c-api/typeobj.rst:341 ../../c-api/typeobj.rst:346 -#: ../../c-api/typeobj.rst:356 ../../c-api/typeobj.rst:368 -#: ../../c-api/typeobj.rst:370 ../../c-api/typeobj.rst:381 -#: ../../c-api/typeobj.rst:392 ../../c-api/typeobj.rst:404 -#: ../../c-api/typeobj.rst:406 ../../c-api/typeobj.rst:412 -#: ../../c-api/typeobj.rst:414 ../../c-api/typeobj.rst:416 -#: ../../c-api/typeobj.rst:429 ../../c-api/typeobj.rst:431 -#: ../../c-api/typeobj.rst:435 ../../c-api/typeobj.rst:440 -#: ../../c-api/typeobj.rst:446 +#: ../../c-api/typeobj.rst:342 ../../c-api/typeobj.rst:347 +#: ../../c-api/typeobj.rst:357 ../../c-api/typeobj.rst:369 +#: ../../c-api/typeobj.rst:371 ../../c-api/typeobj.rst:382 +#: ../../c-api/typeobj.rst:393 ../../c-api/typeobj.rst:405 +#: ../../c-api/typeobj.rst:407 ../../c-api/typeobj.rst:413 +#: ../../c-api/typeobj.rst:415 ../../c-api/typeobj.rst:417 +#: ../../c-api/typeobj.rst:430 ../../c-api/typeobj.rst:432 +#: ../../c-api/typeobj.rst:436 ../../c-api/typeobj.rst:441 +#: ../../c-api/typeobj.rst:447 msgid ":c:type:`PyObject` *" msgstr ":c:type:`PyObject` *" @@ -459,7 +460,7 @@ msgstr "__dict__" msgid ":c:member:`~PyTypeObject.tp_descr_get`" msgstr ":c:member:`~PyTypeObject.tp_descr_get`" -#: ../../c-api/typeobj.rst:115 ../../c-api/typeobj.rst:392 +#: ../../c-api/typeobj.rst:115 ../../c-api/typeobj.rst:393 msgid ":c:type:`descrgetfunc`" msgstr ":c:type:`descrgetfunc`" @@ -471,7 +472,7 @@ msgstr "__get__" msgid ":c:member:`~PyTypeObject.tp_descr_set`" msgstr ":c:member:`~PyTypeObject.tp_descr_set`" -#: ../../c-api/typeobj.rst:117 ../../c-api/typeobj.rst:398 +#: ../../c-api/typeobj.rst:117 ../../c-api/typeobj.rst:399 msgid ":c:type:`descrsetfunc`" msgstr ":c:type:`descrsetfunc`" @@ -487,7 +488,7 @@ msgstr "" msgid ":c:member:`~PyTypeObject.tp_init`" msgstr ":c:member:`~PyTypeObject.tp_init`" -#: ../../c-api/typeobj.rst:122 ../../c-api/typeobj.rst:362 +#: ../../c-api/typeobj.rst:122 ../../c-api/typeobj.rst:363 msgid ":c:type:`initproc`" msgstr ":c:type:`initproc`" @@ -499,7 +500,7 @@ msgstr "__init__" msgid ":c:member:`~PyTypeObject.tp_alloc`" msgstr ":c:member:`~PyTypeObject.tp_alloc`" -#: ../../c-api/typeobj.rst:124 ../../c-api/typeobj.rst:341 +#: ../../c-api/typeobj.rst:124 ../../c-api/typeobj.rst:342 msgid ":c:type:`allocfunc`" msgstr ":c:type:`allocfunc`" @@ -507,7 +508,7 @@ msgstr ":c:type:`allocfunc`" msgid ":c:member:`~PyTypeObject.tp_new`" msgstr ":c:member:`~PyTypeObject.tp_new`" -#: ../../c-api/typeobj.rst:126 ../../c-api/typeobj.rst:356 +#: ../../c-api/typeobj.rst:126 ../../c-api/typeobj.rst:357 msgid ":c:type:`newfunc`" msgstr ":c:type:`newfunc`" @@ -519,7 +520,7 @@ msgstr "__new__" msgid ":c:member:`~PyTypeObject.tp_free`" msgstr ":c:member:`~PyTypeObject.tp_free`" -#: ../../c-api/typeobj.rst:128 ../../c-api/typeobj.rst:348 +#: ../../c-api/typeobj.rst:128 ../../c-api/typeobj.rst:349 msgid ":c:type:`freefunc`" msgstr ":c:type:`freefunc`" @@ -556,7 +557,7 @@ msgid "[:c:member:`~PyTypeObject.tp_subclasses`]" msgstr "[:c:member:`~PyTypeObject.tp_subclasses`]" #: ../../c-api/typeobj.rst:0 ../../c-api/typeobj.rst:138 -#: ../../c-api/typeobj.rst:279 ../../c-api/typeobj.rst:348 +#: ../../c-api/typeobj.rst:279 ../../c-api/typeobj.rst:349 msgid "void *" msgstr "void *" @@ -690,7 +691,7 @@ msgstr ":c:member:`~PyAsyncMethods.am_await`" #: ../../c-api/typeobj.rst:244 ../../c-api/typeobj.rst:246 #: ../../c-api/typeobj.rst:250 ../../c-api/typeobj.rst:277 #: ../../c-api/typeobj.rst:281 ../../c-api/typeobj.rst:291 -#: ../../c-api/typeobj.rst:431 +#: ../../c-api/typeobj.rst:432 msgid ":c:type:`unaryfunc`" msgstr ":c:type:`unaryfunc`" @@ -740,7 +741,7 @@ msgstr ":c:member:`~PyNumberMethods.nb_add`" #: ../../c-api/typeobj.rst:289 ../../c-api/typeobj.rst:293 #: ../../c-api/typeobj.rst:296 ../../c-api/typeobj.rst:302 #: ../../c-api/typeobj.rst:311 ../../c-api/typeobj.rst:322 -#: ../../c-api/typeobj.rst:435 +#: ../../c-api/typeobj.rst:436 msgid ":c:type:`binaryfunc`" msgstr ":c:type:`binaryfunc`" @@ -1029,7 +1030,7 @@ msgid ":c:member:`~PyMappingMethods.mp_length`" msgstr ":c:member:`~PyMappingMethods.mp_length`" #: ../../c-api/typeobj.rst:300 ../../c-api/typeobj.rst:309 -#: ../../c-api/typeobj.rst:416 +#: ../../c-api/typeobj.rst:417 msgid ":c:type:`lenfunc`" msgstr ":c:type:`lenfunc`" @@ -1049,7 +1050,7 @@ msgstr "__getitem__" msgid ":c:member:`~PyMappingMethods.mp_ass_subscript`" msgstr ":c:member:`~PyMappingMethods.mp_ass_subscript`" -#: ../../c-api/typeobj.rst:304 ../../c-api/typeobj.rst:462 +#: ../../c-api/typeobj.rst:304 ../../c-api/typeobj.rst:463 msgid ":c:type:`objobjargproc`" msgstr ":c:type:`objobjargproc`" @@ -1074,7 +1075,7 @@ msgid ":c:member:`~PySequenceMethods.sq_repeat`" msgstr ":c:member:`~PySequenceMethods.sq_repeat`" #: ../../c-api/typeobj.rst:313 ../../c-api/typeobj.rst:315 -#: ../../c-api/typeobj.rst:324 ../../c-api/typeobj.rst:446 +#: ../../c-api/typeobj.rst:324 ../../c-api/typeobj.rst:447 msgid ":c:type:`ssizeargfunc`" msgstr ":c:type:`ssizeargfunc`" @@ -1090,7 +1091,7 @@ msgstr ":c:member:`~PySequenceMethods.sq_item`" msgid ":c:member:`~PySequenceMethods.sq_ass_item`" msgstr ":c:member:`~PySequenceMethods.sq_ass_item`" -#: ../../c-api/typeobj.rst:317 ../../c-api/typeobj.rst:451 +#: ../../c-api/typeobj.rst:317 ../../c-api/typeobj.rst:452 msgid ":c:type:`ssizeobjargproc`" msgstr ":c:type:`ssizeobjargproc`" @@ -1102,7 +1103,7 @@ msgstr "__setitem__ __delitem__" msgid ":c:member:`~PySequenceMethods.sq_contains`" msgstr ":c:member:`~PySequenceMethods.sq_contains`" -#: ../../c-api/typeobj.rst:320 ../../c-api/typeobj.rst:457 +#: ../../c-api/typeobj.rst:320 ../../c-api/typeobj.rst:458 msgid ":c:type:`objobjproc`" msgstr ":c:type:`objobjproc`" @@ -1126,6 +1127,10 @@ msgstr ":c:member:`~PyBufferProcs.bf_getbuffer`" msgid ":c:func:`getbufferproc`" msgstr ":c:func:`getbufferproc`" +#: ../../c-api/typeobj.rst:328 +msgid "__buffer__" +msgstr "" + #: ../../c-api/typeobj.rst:330 msgid ":c:member:`~PyBufferProcs.bf_releasebuffer`" msgstr ":c:member:`~PyBufferProcs.bf_releasebuffer`" @@ -1134,24 +1139,28 @@ msgstr ":c:member:`~PyBufferProcs.bf_releasebuffer`" msgid ":c:func:`releasebufferproc`" msgstr ":c:func:`releasebufferproc`" -#: ../../c-api/typeobj.rst:336 +#: ../../c-api/typeobj.rst:330 +msgid "__release_\\ buffer\\__" +msgstr "" + +#: ../../c-api/typeobj.rst:337 msgid "slot typedefs" msgstr "スロットの定義型 (typedef)" -#: ../../c-api/typeobj.rst:339 +#: ../../c-api/typeobj.rst:340 msgid "typedef" msgstr "定義型 (typedef)" -#: ../../c-api/typeobj.rst:339 +#: ../../c-api/typeobj.rst:340 msgid "Parameter Types" msgstr "引数型" -#: ../../c-api/typeobj.rst:339 +#: ../../c-api/typeobj.rst:340 msgid "Return Type" msgstr "返り値型" -#: ../../c-api/typeobj.rst:346 ../../c-api/typeobj.rst:348 -#: ../../c-api/typeobj.rst:424 +#: ../../c-api/typeobj.rst:347 ../../c-api/typeobj.rst:349 +#: ../../c-api/typeobj.rst:425 msgid "void" msgstr "void" @@ -1159,20 +1168,20 @@ msgstr "void" msgid ":c:type:`visitproc`" msgstr ":c:type:`visitproc`" -#: ../../c-api/typeobj.rst:0 ../../c-api/typeobj.rst:350 -#: ../../c-api/typeobj.rst:362 ../../c-api/typeobj.rst:375 -#: ../../c-api/typeobj.rst:386 ../../c-api/typeobj.rst:398 -#: ../../c-api/typeobj.rst:418 ../../c-api/typeobj.rst:429 -#: ../../c-api/typeobj.rst:451 ../../c-api/typeobj.rst:457 -#: ../../c-api/typeobj.rst:462 +#: ../../c-api/typeobj.rst:0 ../../c-api/typeobj.rst:351 +#: ../../c-api/typeobj.rst:363 ../../c-api/typeobj.rst:376 +#: ../../c-api/typeobj.rst:387 ../../c-api/typeobj.rst:399 +#: ../../c-api/typeobj.rst:419 ../../c-api/typeobj.rst:430 +#: ../../c-api/typeobj.rst:452 ../../c-api/typeobj.rst:458 +#: ../../c-api/typeobj.rst:463 msgid "int" msgstr "int" -#: ../../c-api/typeobj.rst:404 +#: ../../c-api/typeobj.rst:405 msgid "Py_hash_t" msgstr "Py_hash_t" -#: ../../c-api/typeobj.rst:418 +#: ../../c-api/typeobj.rst:419 msgid ":c:type:`getbufferproc`" msgstr ":c:type:`getbufferproc`" @@ -1180,26 +1189,26 @@ msgstr ":c:type:`getbufferproc`" msgid ":c:type:`Py_buffer` *" msgstr ":c:type:`Py_buffer` *" -#: ../../c-api/typeobj.rst:424 +#: ../../c-api/typeobj.rst:425 msgid ":c:type:`releasebufferproc`" msgstr ":c:type:`releasebufferproc`" -#: ../../c-api/typeobj.rst:469 +#: ../../c-api/typeobj.rst:470 msgid "See :ref:`slot-typedefs` below for more detail." msgstr "" -#: ../../c-api/typeobj.rst:473 +#: ../../c-api/typeobj.rst:474 msgid "PyTypeObject Definition" msgstr "PyTypeObject 定義" -#: ../../c-api/typeobj.rst:475 +#: ../../c-api/typeobj.rst:476 msgid "" "The structure definition for :c:type:`PyTypeObject` can be found in :file:" "`Include/cpython/object.h`. For convenience of reference, this repeats the " "definition found there:" msgstr "" -#: ../../c-api/typeobj.rst:481 +#: ../../c-api/typeobj.rst:482 msgid "" "typedef struct _typeobject {\n" " PyObject_VAR_HEAD\n" @@ -1298,11 +1307,11 @@ msgid "" "} PyTypeObject;\n" msgstr "" -#: ../../c-api/typeobj.rst:485 +#: ../../c-api/typeobj.rst:486 msgid "PyObject Slots" msgstr "PyObject スロット" -#: ../../c-api/typeobj.rst:487 +#: ../../c-api/typeobj.rst:488 msgid "" "The type object structure extends the :c:type:`PyVarObject` structure. The :" "c:member:`~PyVarObject.ob_size` field is used for dynamic types (created by :" @@ -1312,7 +1321,7 @@ msgid "" "the :c:member:`~PyVarObject.ob_size` field." msgstr "" -#: ../../c-api/typeobj.rst:496 +#: ../../c-api/typeobj.rst:497 msgid "" "This is the type object's reference count, initialized to ``1`` by the " "``PyObject_HEAD_INIT`` macro. Note that for :ref:`statically allocated type " @@ -1322,47 +1331,47 @@ msgid "" "instances *do* count as references." msgstr "" -#: ../../c-api/typeobj.rst:503 ../../c-api/typeobj.rst:526 -#: ../../c-api/typeobj.rst:543 ../../c-api/typeobj.rst:587 -#: ../../c-api/typeobj.rst:665 ../../c-api/typeobj.rst:746 -#: ../../c-api/typeobj.rst:787 ../../c-api/typeobj.rst:804 -#: ../../c-api/typeobj.rst:821 ../../c-api/typeobj.rst:839 -#: ../../c-api/typeobj.rst:863 ../../c-api/typeobj.rst:880 -#: ../../c-api/typeobj.rst:892 ../../c-api/typeobj.rst:904 -#: ../../c-api/typeobj.rst:937 ../../c-api/typeobj.rst:959 -#: ../../c-api/typeobj.rst:979 ../../c-api/typeobj.rst:1000 -#: ../../c-api/typeobj.rst:1026 ../../c-api/typeobj.rst:1045 -#: ../../c-api/typeobj.rst:1061 ../../c-api/typeobj.rst:1101 -#: ../../c-api/typeobj.rst:1112 ../../c-api/typeobj.rst:1122 -#: ../../c-api/typeobj.rst:1132 ../../c-api/typeobj.rst:1146 -#: ../../c-api/typeobj.rst:1164 ../../c-api/typeobj.rst:1187 -#: ../../c-api/typeobj.rst:1205 ../../c-api/typeobj.rst:1218 -#: ../../c-api/typeobj.rst:1240 ../../c-api/typeobj.rst:1284 -#: ../../c-api/typeobj.rst:1305 ../../c-api/typeobj.rst:1324 -#: ../../c-api/typeobj.rst:1354 ../../c-api/typeobj.rst:1376 -#: ../../c-api/typeobj.rst:1402 ../../c-api/typeobj.rst:1488 -#: ../../c-api/typeobj.rst:1563 ../../c-api/typeobj.rst:1624 -#: ../../c-api/typeobj.rst:1660 ../../c-api/typeobj.rst:1685 -#: ../../c-api/typeobj.rst:1708 ../../c-api/typeobj.rst:1721 -#: ../../c-api/typeobj.rst:1736 ../../c-api/typeobj.rst:1750 -#: ../../c-api/typeobj.rst:1780 ../../c-api/typeobj.rst:1812 -#: ../../c-api/typeobj.rst:1838 ../../c-api/typeobj.rst:1856 -#: ../../c-api/typeobj.rst:1885 ../../c-api/typeobj.rst:1929 -#: ../../c-api/typeobj.rst:1946 ../../c-api/typeobj.rst:1987 -#: ../../c-api/typeobj.rst:2009 ../../c-api/typeobj.rst:2041 -#: ../../c-api/typeobj.rst:2069 ../../c-api/typeobj.rst:2082 -#: ../../c-api/typeobj.rst:2092 ../../c-api/typeobj.rst:2109 -#: ../../c-api/typeobj.rst:2126 ../../c-api/typeobj.rst:2140 -#: ../../c-api/typeobj.rst:2173 ../../c-api/typeobj.rst:2225 +#: ../../c-api/typeobj.rst:504 ../../c-api/typeobj.rst:527 +#: ../../c-api/typeobj.rst:544 ../../c-api/typeobj.rst:588 +#: ../../c-api/typeobj.rst:666 ../../c-api/typeobj.rst:788 +#: ../../c-api/typeobj.rst:833 ../../c-api/typeobj.rst:850 +#: ../../c-api/typeobj.rst:867 ../../c-api/typeobj.rst:885 +#: ../../c-api/typeobj.rst:909 ../../c-api/typeobj.rst:926 +#: ../../c-api/typeobj.rst:938 ../../c-api/typeobj.rst:950 +#: ../../c-api/typeobj.rst:983 ../../c-api/typeobj.rst:1005 +#: ../../c-api/typeobj.rst:1025 ../../c-api/typeobj.rst:1046 +#: ../../c-api/typeobj.rst:1072 ../../c-api/typeobj.rst:1091 +#: ../../c-api/typeobj.rst:1107 ../../c-api/typeobj.rst:1147 +#: ../../c-api/typeobj.rst:1158 ../../c-api/typeobj.rst:1168 +#: ../../c-api/typeobj.rst:1178 ../../c-api/typeobj.rst:1192 +#: ../../c-api/typeobj.rst:1210 ../../c-api/typeobj.rst:1233 +#: ../../c-api/typeobj.rst:1251 ../../c-api/typeobj.rst:1264 +#: ../../c-api/typeobj.rst:1286 ../../c-api/typeobj.rst:1330 +#: ../../c-api/typeobj.rst:1351 ../../c-api/typeobj.rst:1370 +#: ../../c-api/typeobj.rst:1400 ../../c-api/typeobj.rst:1422 +#: ../../c-api/typeobj.rst:1448 ../../c-api/typeobj.rst:1539 +#: ../../c-api/typeobj.rst:1683 ../../c-api/typeobj.rst:1748 +#: ../../c-api/typeobj.rst:1784 ../../c-api/typeobj.rst:1809 +#: ../../c-api/typeobj.rst:1832 ../../c-api/typeobj.rst:1845 +#: ../../c-api/typeobj.rst:1860 ../../c-api/typeobj.rst:1874 +#: ../../c-api/typeobj.rst:1904 ../../c-api/typeobj.rst:1936 +#: ../../c-api/typeobj.rst:1962 ../../c-api/typeobj.rst:1980 +#: ../../c-api/typeobj.rst:2009 ../../c-api/typeobj.rst:2053 +#: ../../c-api/typeobj.rst:2070 ../../c-api/typeobj.rst:2110 +#: ../../c-api/typeobj.rst:2133 ../../c-api/typeobj.rst:2171 +#: ../../c-api/typeobj.rst:2199 ../../c-api/typeobj.rst:2212 +#: ../../c-api/typeobj.rst:2222 ../../c-api/typeobj.rst:2239 +#: ../../c-api/typeobj.rst:2256 ../../c-api/typeobj.rst:2270 +#: ../../c-api/typeobj.rst:2412 ../../c-api/typeobj.rst:2470 msgid "**Inheritance:**" msgstr "**継承:**" -#: ../../c-api/typeobj.rst:505 ../../c-api/typeobj.rst:545 -#: ../../c-api/typeobj.rst:589 +#: ../../c-api/typeobj.rst:506 ../../c-api/typeobj.rst:546 +#: ../../c-api/typeobj.rst:590 msgid "This field is not inherited by subtypes." msgstr "サブタイプはこのフィールドを継承しません。" -#: ../../c-api/typeobj.rst:510 +#: ../../c-api/typeobj.rst:511 msgid "" "This is the type's type, in other words its metatype. It is initialized by " "the argument to the ``PyObject_HEAD_INIT`` macro, and its value should " @@ -1381,11 +1390,11 @@ msgstr "" "にモジュールの初期化関数で明示的にこのフィールドを初期化することになっていま" "す。この操作は以下のように行います::" -#: ../../c-api/typeobj.rst:519 +#: ../../c-api/typeobj.rst:520 msgid "Foo_Type.ob_type = &PyType_Type;" msgstr "" -#: ../../c-api/typeobj.rst:521 +#: ../../c-api/typeobj.rst:522 msgid "" "This should be done before any instances of the type are created. :c:func:" "`PyType_Ready` checks if :c:member:`~PyObject.ob_type` is ``NULL``, and if " @@ -1393,20 +1402,20 @@ msgid "" "class. :c:func:`PyType_Ready` will not change this field if it is non-zero." msgstr "" -#: ../../c-api/typeobj.rst:528 ../../c-api/typeobj.rst:748 -#: ../../c-api/typeobj.rst:865 ../../c-api/typeobj.rst:961 -#: ../../c-api/typeobj.rst:981 ../../c-api/typeobj.rst:1687 -#: ../../c-api/typeobj.rst:1710 ../../c-api/typeobj.rst:1840 -#: ../../c-api/typeobj.rst:1858 ../../c-api/typeobj.rst:1931 -#: ../../c-api/typeobj.rst:2043 ../../c-api/typeobj.rst:2175 +#: ../../c-api/typeobj.rst:529 ../../c-api/typeobj.rst:790 +#: ../../c-api/typeobj.rst:911 ../../c-api/typeobj.rst:1007 +#: ../../c-api/typeobj.rst:1027 ../../c-api/typeobj.rst:1811 +#: ../../c-api/typeobj.rst:1834 ../../c-api/typeobj.rst:1964 +#: ../../c-api/typeobj.rst:1982 ../../c-api/typeobj.rst:2055 +#: ../../c-api/typeobj.rst:2173 ../../c-api/typeobj.rst:2414 msgid "This field is inherited by subtypes." msgstr "サブタイプはこのフィールドを継承します。" -#: ../../c-api/typeobj.rst:532 +#: ../../c-api/typeobj.rst:533 msgid "PyVarObject Slots" msgstr "PyVarObject スロット" -#: ../../c-api/typeobj.rst:536 +#: ../../c-api/typeobj.rst:537 msgid "" "For :ref:`statically allocated type objects `, this should be " "initialized to zero. For :ref:`dynamically allocated type objects ` の場合、このフィールドは内部使用される特殊な意味を持ちま" "す。" -#: ../../c-api/typeobj.rst:540 +#: ../../c-api/typeobj.rst:541 msgid "" "This field should be accessed using the :c:func:`Py_SIZE()` and :c:func:" "`Py_SET_SIZE()` macros." msgstr "" -#: ../../c-api/typeobj.rst:549 +#: ../../c-api/typeobj.rst:550 msgid "PyTypeObject Slots" msgstr "PyTypeObject スロット" -#: ../../c-api/typeobj.rst:551 +#: ../../c-api/typeobj.rst:552 msgid "" "Each slot has a section describing inheritance. If :c:func:`PyType_Ready` " "may set a value when the field is set to ``NULL`` then there will also be a " @@ -1435,7 +1444,7 @@ msgid "" "`PyBaseObject_Type` and :c:data:`PyType_Type` effectively act as defaults.)" msgstr "" -#: ../../c-api/typeobj.rst:558 +#: ../../c-api/typeobj.rst:559 msgid "" "Pointer to a NUL-terminated string containing the name of the type. For " "types that are accessible as module globals, the string should be the full " @@ -1447,7 +1456,7 @@ msgid "" "tp_name` initializer ``\"P.Q.M.T\"``." msgstr "" -#: ../../c-api/typeobj.rst:566 +#: ../../c-api/typeobj.rst:567 msgid "" "For :ref:`dynamically allocated type objects `, this should just " "be the type name, and the module name explicitly stored in the type dict as " @@ -1457,7 +1466,7 @@ msgstr "" "ドは単に型の名前になり、モジュール名は型の辞書内でキー ``'__module__'`` に対" "する値として明示的に保存されます。" -#: ../../c-api/typeobj.rst:571 +#: ../../c-api/typeobj.rst:572 msgid "" "For :ref:`statically allocated type objects `, the *tp_name* " "field should contain a dot. Everything before the last dot is made " @@ -1465,7 +1474,7 @@ msgid "" "the last dot is made accessible as the :attr:`~type.__name__` attribute." msgstr "" -#: ../../c-api/typeobj.rst:577 +#: ../../c-api/typeobj.rst:578 msgid "" "If no dot is present, the entire :c:member:`~PyTypeObject.tp_name` field is " "made accessible as the :attr:`~type.__name__` attribute, and the :attr:" @@ -1475,20 +1484,20 @@ msgid "" "created with pydoc." msgstr "" -#: ../../c-api/typeobj.rst:583 +#: ../../c-api/typeobj.rst:584 msgid "" "This field must not be ``NULL``. It is the only required field in :c:func:" "`PyTypeObject` (other than potentially :c:member:`~PyTypeObject." "tp_itemsize`)." msgstr "" -#: ../../c-api/typeobj.rst:595 +#: ../../c-api/typeobj.rst:596 msgid "" "These fields allow calculating the size in bytes of instances of the type." msgstr "" "これらのフィールドは、型インスタンスのバイトサイズを計算できるようにします。" -#: ../../c-api/typeobj.rst:597 +#: ../../c-api/typeobj.rst:598 msgid "" "There are two kinds of types: types with fixed-length instances have a zero :" "c:member:`!tp_itemsize` field, types with variable-length instances have a " @@ -1498,7 +1507,7 @@ msgid "" "`PyUnstable_Object_GC_NewWithExtraData`.)" msgstr "" -#: ../../c-api/typeobj.rst:604 +#: ../../c-api/typeobj.rst:605 msgid "" "For a type with variable-length instances, the instances must have an :c:" "member:`~PyVarObject.ob_size` field, and the instance size is :c:member:`!" @@ -1506,7 +1515,7 @@ msgid "" "\"length\" of the object." msgstr "" -#: ../../c-api/typeobj.rst:609 +#: ../../c-api/typeobj.rst:610 msgid "" "Functions like :c:func:`PyObject_NewVar` will take the value of N as an " "argument, and store in the instance's :c:member:`~PyVarObject.ob_size` " @@ -1517,13 +1526,13 @@ msgid "" "`PyLong_Export`." msgstr "" -#: ../../c-api/typeobj.rst:619 +#: ../../c-api/typeobj.rst:620 msgid "" "The :c:member:`~PyVarObject.ob_size` field should be accessed using the :c:" "func:`Py_SIZE()` and :c:func:`Py_SET_SIZE()` macros." msgstr "" -#: ../../c-api/typeobj.rst:622 +#: ../../c-api/typeobj.rst:623 msgid "" "Also, the presence of an :c:member:`~PyVarObject.ob_size` field in the " "instance layout doesn't mean that the instance structure is variable-length. " @@ -1533,13 +1542,13 @@ msgid "" "`PyList_Size` instead.)" msgstr "" -#: ../../c-api/typeobj.rst:629 +#: ../../c-api/typeobj.rst:630 msgid "" "The :c:member:`!tp_basicsize` includes size needed for data of the type's :c:" "member:`~PyTypeObject.tp_base`, plus any extra data needed by each instance." msgstr "" -#: ../../c-api/typeobj.rst:633 +#: ../../c-api/typeobj.rst:634 msgid "" "The correct way to set :c:member:`!tp_basicsize` is to use the ``sizeof`` " "operator on the struct used to declare the instance layout. This struct must " @@ -1548,7 +1557,7 @@ msgid "" "tp_basicsize`." msgstr "" -#: ../../c-api/typeobj.rst:639 +#: ../../c-api/typeobj.rst:640 msgid "" "Since every type is a subtype of :py:type:`object`, this struct must " "include :c:type:`PyObject` or :c:type:`PyVarObject` (depending on whether :c:" @@ -1557,23 +1566,23 @@ msgid "" "respectively." msgstr "" -#: ../../c-api/typeobj.rst:645 +#: ../../c-api/typeobj.rst:646 msgid "" "The basic size does not include the GC header size, as that header is not " "part of :c:macro:`PyObject_HEAD`." msgstr "" -#: ../../c-api/typeobj.rst:648 +#: ../../c-api/typeobj.rst:649 msgid "" "For cases where struct used to declare the base type is unknown, see :c:" "member:`PyType_Spec.basicsize` and :c:func:`PyType_FromMetaclass`." msgstr "" -#: ../../c-api/typeobj.rst:651 +#: ../../c-api/typeobj.rst:652 msgid "Notes about alignment:" msgstr "" -#: ../../c-api/typeobj.rst:653 +#: ../../c-api/typeobj.rst:654 msgid "" ":c:member:`!tp_basicsize` must be a multiple of ``_Alignof(PyObject)``. When " "using ``sizeof`` on a ``struct`` that includes :c:macro:`PyObject_HEAD`, as " @@ -1582,7 +1591,7 @@ msgid "" "you." msgstr "" -#: ../../c-api/typeobj.rst:658 +#: ../../c-api/typeobj.rst:659 msgid "" "If the variable items require a particular alignment, :c:member:`!" "tp_basicsize` and :c:member:`!tp_itemsize` must each be a multiple of that " @@ -1590,14 +1599,14 @@ msgid "" "your responsibility that both fields are a multiple of ``_Alignof(double)``." msgstr "" -#: ../../c-api/typeobj.rst:667 +#: ../../c-api/typeobj.rst:668 msgid "" "These fields are inherited separately by subtypes. (That is, if the field is " "set to zero, :c:func:`PyType_Ready` will copy the value from the base type, " "indicating that the instances do not need additional storage.)" msgstr "" -#: ../../c-api/typeobj.rst:672 +#: ../../c-api/typeobj.rst:673 msgid "" "If the base type has a non-zero :c:member:`~PyTypeObject.tp_itemsize`, it is " "generally not safe to set :c:member:`~PyTypeObject.tp_itemsize` to a " @@ -1605,113 +1614,185 @@ msgid "" "implementation of the base type)." msgstr "" -#: ../../c-api/typeobj.rst:679 +#: ../../c-api/typeobj.rst:680 msgid "" -"A pointer to the instance destructor function. This function must be " -"defined unless the type guarantees that its instances will never be " -"deallocated (as is the case for the singletons ``None`` and ``Ellipsis``). " -"The function signature is::" +"A pointer to the instance destructor function. The function signature is::" msgstr "" -"インスタンスのデストラクタ関数へのポインタです。この関数は (単量子 ``None`` " -"や ``Ellipsis`` の場合のように) インスタンスが決してメモリ解放されない型でな" -"い限り必ず定義しなければなりません。シグネチャは次の通りです::" -#: ../../c-api/typeobj.rst:683 +#: ../../c-api/typeobj.rst:682 msgid "void tp_dealloc(PyObject *self);" msgstr "" -#: ../../c-api/typeobj.rst:685 +#: ../../c-api/typeobj.rst:684 msgid "" -"The destructor function is called by the :c:func:`Py_DECREF` and :c:func:" -"`Py_XDECREF` macros when the new reference count is zero. At this point, " -"the instance is still in existence, but there are no references to it. The " -"destructor function should free all references which the instance owns, free " -"all memory buffers owned by the instance (using the freeing function " -"corresponding to the allocation function used to allocate the buffer), and " -"call the type's :c:member:`~PyTypeObject.tp_free` function. If the type is " -"not subtypable (doesn't have the :c:macro:`Py_TPFLAGS_BASETYPE` flag bit " -"set), it is permissible to call the object deallocator directly instead of " -"via :c:member:`~PyTypeObject.tp_free`. The object deallocator should be the " -"one used to allocate the instance; this is normally :c:func:`PyObject_Free` " -"if the instance was allocated using :c:macro:`PyObject_New` or :c:macro:" -"`PyObject_NewVar`, or :c:func:`PyObject_GC_Del` if the instance was " -"allocated using :c:macro:`PyObject_GC_New` or :c:macro:`PyObject_GC_NewVar`." +"The destructor function should remove all references which the instance owns " +"(e.g., call :c:func:`Py_CLEAR`), free all memory buffers owned by the " +"instance, and call the type's :c:member:`~PyTypeObject.tp_free` function to " +"free the object itself." +msgstr "" + +#: ../../c-api/typeobj.rst:689 +msgid "No guarantees are made about when an object is destroyed, except:" msgstr "" -#: ../../c-api/typeobj.rst:700 +#: ../../c-api/typeobj.rst:691 msgid "" -"If the type supports garbage collection (has the :c:macro:" -"`Py_TPFLAGS_HAVE_GC` flag bit set), the destructor should call :c:func:" -"`PyObject_GC_UnTrack` before clearing any member fields." +"Python will destroy an object immediately or some time after the final " +"reference to the object is deleted, unless its finalizer (:c:member:" +"`~PyTypeObject.tp_finalize`) subsequently resurrects the object." msgstr "" -#: ../../c-api/typeobj.rst:704 +#: ../../c-api/typeobj.rst:695 +msgid "" +"An object will not be destroyed while it is being automatically finalized (:" +"c:member:`~PyTypeObject.tp_finalize`) or automatically cleared (:c:member:" +"`~PyTypeObject.tp_clear`)." +msgstr "" + +#: ../../c-api/typeobj.rst:699 +msgid "" +"CPython currently destroys an object immediately from :c:func:`Py_DECREF` " +"when the new reference count is zero, but this may change in a future " +"version." +msgstr "" + +#: ../../c-api/typeobj.rst:703 +msgid "" +"It is recommended to call :c:func:`PyObject_CallFinalizerFromDealloc` at the " +"beginning of :c:member:`!tp_dealloc` to guarantee that the object is always " +"finalized before destruction." +msgstr "" + +#: ../../c-api/typeobj.rst:707 +msgid "" +"If the type supports garbage collection (the :c:macro:`Py_TPFLAGS_HAVE_GC` " +"flag is set), the destructor should call :c:func:`PyObject_GC_UnTrack` " +"before clearing any member fields." +msgstr "" + +#: ../../c-api/typeobj.rst:711 +msgid "" +"It is permissible to call :c:member:`~PyTypeObject.tp_clear` from :c:member:" +"`!tp_dealloc` to reduce code duplication and to guarantee that the object is " +"always cleared before destruction. Beware that :c:member:`!tp_clear` might " +"have already been called." +msgstr "" + +#: ../../c-api/typeobj.rst:716 +msgid "" +"If the type is heap allocated (:c:macro:`Py_TPFLAGS_HEAPTYPE`), the " +"deallocator should release the owned reference to its type object (via :c:" +"func:`Py_DECREF`) after calling the type deallocator. See the example code " +"below.::" +msgstr "" + +#: ../../c-api/typeobj.rst:721 msgid "" "static void\n" "foo_dealloc(PyObject *op)\n" "{\n" -" foo_object *self = (foo_object *) op;\n" -" PyObject_GC_UnTrack(self);\n" -" Py_CLEAR(self->ref);\n" -" Py_TYPE(self)->tp_free(self);\n" +" foo_object *self = (foo_object *) op;\n" +" PyObject_GC_UnTrack(self);\n" +" Py_CLEAR(self->ref);\n" +" Py_TYPE(self)->tp_free(self);\n" "}" msgstr "" -#: ../../c-api/typeobj.rst:715 +#: ../../c-api/typeobj.rst:730 msgid "" -"Finally, if the type is heap allocated (:c:macro:`Py_TPFLAGS_HEAPTYPE`), the " -"deallocator should release the owned reference to its type object (via :c:" -"func:`Py_DECREF`) after calling the type deallocator. In order to avoid " -"dangling pointers, the recommended way to achieve this is:" +":c:member:`!tp_dealloc` must leave the exception status unchanged. If it " +"needs to call something that might raise an exception, the exception state " +"must be backed up first and restored later (after logging any exceptions " +"with :c:func:`PyErr_WriteUnraisable`)." msgstr "" -#: ../../c-api/typeobj.rst:721 +#: ../../c-api/typeobj.rst:735 +msgid "Example::" +msgstr "以下はプログラム例です::" + +#: ../../c-api/typeobj.rst:737 msgid "" "static void\n" -"foo_dealloc(PyObject *op)\n" +"foo_dealloc(PyObject *self)\n" "{\n" -" PyTypeObject *tp = Py_TYPE(op);\n" -" // free references and buffers here\n" -" tp->tp_free(op);\n" -" Py_DECREF(tp);\n" +" PyObject *exc = PyErr_GetRaisedException();\n" +"\n" +" if (PyObject_CallFinalizerFromDealloc(self) < 0) {\n" +" // self was resurrected.\n" +" goto done;\n" +" }\n" +"\n" +" PyTypeObject *tp = Py_TYPE(self);\n" +"\n" +" if (tp->tp_flags & Py_TPFLAGS_HAVE_GC) {\n" +" PyObject_GC_UnTrack(self);\n" +" }\n" +"\n" +" // Optional, but convenient to avoid code duplication.\n" +" if (tp->tp_clear && tp->tp_clear(self) < 0) {\n" +" PyErr_WriteUnraisable(self);\n" +" }\n" +"\n" +" // Any additional destruction goes here.\n" +"\n" +" tp->tp_free(self);\n" +" self = NULL; // In case PyErr_WriteUnraisable() is called below.\n" +"\n" +" if (tp->tp_flags & Py_TPFLAGS_HEAPTYPE) {\n" +" Py_CLEAR(tp);\n" +" }\n" +"\n" +"done:\n" +" // Optional, if something was called that might have raised an\n" +" // exception.\n" +" if (PyErr_Occurred()) {\n" +" PyErr_WriteUnraisable(self);\n" +" }\n" +" PyErr_SetRaisedException(exc);\n" "}" msgstr "" -#: ../../c-api/typeobj.rst:734 +#: ../../c-api/typeobj.rst:776 +msgid "" +":c:member:`!tp_dealloc` may be called from any Python thread, not just the " +"thread which created the object (if the object becomes part of a refcount " +"cycle, that cycle might be collected by a garbage collection on any " +"thread). This is not a problem for Python API calls, since the thread on " +"which :c:member:`!tp_dealloc` is called with an :term:`attached thread " +"state`. However, if the object being destroyed in turn destroys objects " +"from some other C library, care should be taken to ensure that destroying " +"those objects on the thread which called :c:member:`!tp_dealloc` will not " +"violate any assumptions of the library." +msgstr "" + +#: ../../c-api/typeobj.rst:794 ../../c-api/typeobj.rst:1694 +#: ../../c-api/typeobj.rst:2427 msgid "" -"In a garbage collected Python, :c:member:`!tp_dealloc` may be called from " -"any Python thread, not just the thread which created the object (if the " -"object becomes part of a refcount cycle, that cycle might be collected by a " -"garbage collection on any thread). This is not a problem for Python API " -"calls, since the thread on which :c:member:`!tp_dealloc` is called with an :" -"term:`attached thread state`. However, if the object being destroyed in " -"turn destroys objects from some other C or C++ library, care should be taken " -"to ensure that destroying those objects on the thread which called :c:member:" -"`!tp_dealloc` will not violate any assumptions of the library." +":ref:`life-cycle` for details about how this slot relates to other slots." msgstr "" -#: ../../c-api/typeobj.rst:753 +#: ../../c-api/typeobj.rst:799 msgid "" "An optional offset to a per-instance function that implements calling the " "object using the :ref:`vectorcall protocol `, a more efficient " "alternative of the simpler :c:member:`~PyTypeObject.tp_call`." msgstr "" -#: ../../c-api/typeobj.rst:758 +#: ../../c-api/typeobj.rst:804 msgid "" "This field is only used if the flag :c:macro:`Py_TPFLAGS_HAVE_VECTORCALL` is " "set. If so, this must be a positive integer containing the offset in the " "instance of a :c:type:`vectorcallfunc` pointer." msgstr "" -#: ../../c-api/typeobj.rst:762 +#: ../../c-api/typeobj.rst:808 msgid "" "The *vectorcallfunc* pointer may be ``NULL``, in which case the instance " "behaves as if :c:macro:`Py_TPFLAGS_HAVE_VECTORCALL` was not set: calling the " "instance falls back to :c:member:`~PyTypeObject.tp_call`." msgstr "" -#: ../../c-api/typeobj.rst:766 +#: ../../c-api/typeobj.rst:812 msgid "" "Any class that sets ``Py_TPFLAGS_HAVE_VECTORCALL`` must also set :c:member:" "`~PyTypeObject.tp_call` and make sure its behaviour is consistent with the " @@ -1719,13 +1800,13 @@ msgid "" "`PyVectorcall_Call`." msgstr "" -#: ../../c-api/typeobj.rst:773 +#: ../../c-api/typeobj.rst:819 msgid "" "Before version 3.8, this slot was named ``tp_print``. In Python 2.x, it was " "used for printing to a file. In Python 3.0 to 3.7, it was unused." msgstr "" -#: ../../c-api/typeobj.rst:779 +#: ../../c-api/typeobj.rst:825 msgid "" "Before version 3.12, it was not recommended for :ref:`mutable heap types " "` to implement the vectorcall protocol. When a user sets :attr:" @@ -1735,7 +1816,7 @@ msgid "" "`Py_TPFLAGS_HAVE_VECTORCALL` flag." msgstr "" -#: ../../c-api/typeobj.rst:789 +#: ../../c-api/typeobj.rst:835 msgid "" "This field is always inherited. However, the :c:macro:" "`Py_TPFLAGS_HAVE_VECTORCALL` flag is not always inherited. If it's not set, " @@ -1743,11 +1824,11 @@ msgid "" "func:`PyVectorcall_Call` is explicitly called." msgstr "" -#: ../../c-api/typeobj.rst:798 +#: ../../c-api/typeobj.rst:844 msgid "An optional pointer to the get-attribute-string function." msgstr "オプションのポインタで、get-attribute-string を行う関数を指します。" -#: ../../c-api/typeobj.rst:800 +#: ../../c-api/typeobj.rst:846 msgid "" "This field is deprecated. When it is defined, it should point to a function " "that acts the same as the :c:member:`~PyTypeObject.tp_getattro` function, " @@ -1759,13 +1840,13 @@ msgstr "" "同じように動作し、属性名は Python 文字列 オブジェクトではなく C 文字列で指定" "するような関数を指すようにしなければなりません。" -#: ../../c-api/typeobj.rst:806 ../../c-api/typeobj.rst:1002 +#: ../../c-api/typeobj.rst:852 ../../c-api/typeobj.rst:1048 msgid "" "Group: :c:member:`~PyTypeObject.tp_getattr`, :c:member:`~PyTypeObject." "tp_getattro`" msgstr "" -#: ../../c-api/typeobj.rst:808 +#: ../../c-api/typeobj.rst:854 msgid "" "This field is inherited by subtypes together with :c:member:`~PyTypeObject." "tp_getattro`: a subtype inherits both :c:member:`~PyTypeObject.tp_getattr` " @@ -1779,12 +1860,12 @@ msgstr "" "基底タイプから :c:member:`~PyTypeObject.tp_getattr` と :c:member:" "`~PyTypeObject.tp_getattro` を両方とも継承します。" -#: ../../c-api/typeobj.rst:815 ../../c-api/typeobj.rst:1015 +#: ../../c-api/typeobj.rst:861 ../../c-api/typeobj.rst:1061 msgid "" "An optional pointer to the function for setting and deleting attributes." msgstr "オプションのポインタで、属性の設定と削除を行う関数を指します。" -#: ../../c-api/typeobj.rst:817 +#: ../../c-api/typeobj.rst:863 msgid "" "This field is deprecated. When it is defined, it should point to a function " "that acts the same as the :c:member:`~PyTypeObject.tp_setattro` function, " @@ -1796,13 +1877,13 @@ msgstr "" "同じように動作し、属性名は Python 文字列 オブジェクトではなく C 文字列で指定" "するような関数を指すようにしなければなりません。" -#: ../../c-api/typeobj.rst:823 ../../c-api/typeobj.rst:1028 +#: ../../c-api/typeobj.rst:869 ../../c-api/typeobj.rst:1074 msgid "" "Group: :c:member:`~PyTypeObject.tp_setattr`, :c:member:`~PyTypeObject." "tp_setattro`" msgstr "" -#: ../../c-api/typeobj.rst:825 +#: ../../c-api/typeobj.rst:871 msgid "" "This field is inherited by subtypes together with :c:member:`~PyTypeObject." "tp_setattro`: a subtype inherits both :c:member:`~PyTypeObject.tp_setattr` " @@ -1816,7 +1897,7 @@ msgstr "" "基底タイプから :c:member:`~PyTypeObject.tp_setattr` と :c:member:" "`~PyTypeObject.tp_setattro` を両方とも継承します。" -#: ../../c-api/typeobj.rst:832 +#: ../../c-api/typeobj.rst:878 msgid "" "Pointer to an additional structure that contains fields relevant only to " "objects which implement :term:`awaitable` and :term:`asynchronous iterator` " @@ -1828,11 +1909,11 @@ msgstr "" "す。\n" "詳しいことは :ref:`async-structs` を参照してください。" -#: ../../c-api/typeobj.rst:836 +#: ../../c-api/typeobj.rst:882 msgid "Formerly known as ``tp_compare`` and ``tp_reserved``." msgstr "以前は ``tp_compare`` や ``tp_reserved`` として知られていました。" -#: ../../c-api/typeobj.rst:841 +#: ../../c-api/typeobj.rst:887 msgid "" "The :c:member:`~PyTypeObject.tp_as_async` field is not inherited, but the " "contained fields are inherited individually." @@ -1840,7 +1921,7 @@ msgstr "" ":c:member:`~PyTypeObject.tp_as_async` フィールドは継承されませんが、これに含" "まれるフィールドが個別に継承されます。" -#: ../../c-api/typeobj.rst:849 +#: ../../c-api/typeobj.rst:895 msgid "" "An optional pointer to a function that implements the built-in function :" "func:`repr`." @@ -1848,15 +1929,15 @@ msgstr "" "オプションのポインタで、組み込み関数 :func:`repr` を実装している関数を指しま" "す。" -#: ../../c-api/typeobj.rst:852 +#: ../../c-api/typeobj.rst:898 msgid "The signature is the same as for :c:func:`PyObject_Repr`::" msgstr "" -#: ../../c-api/typeobj.rst:854 +#: ../../c-api/typeobj.rst:900 msgid "PyObject *tp_repr(PyObject *self);" msgstr "" -#: ../../c-api/typeobj.rst:856 +#: ../../c-api/typeobj.rst:902 msgid "" "The function must return a string or a Unicode object. Ideally, this " "function should return a string that, when passed to :func:`eval`, given a " @@ -1870,18 +1951,18 @@ msgstr "" "には、オブジェクトの型と値から導出した内容の入った ``'<'`` から始まって " "``'>'`` で終わる文字列を返さなければなりません。" -#: ../../c-api/typeobj.rst:867 ../../c-api/typeobj.rst:946 -#: ../../c-api/typeobj.rst:983 ../../c-api/typeobj.rst:1008 -#: ../../c-api/typeobj.rst:1034 ../../c-api/typeobj.rst:1076 -#: ../../c-api/typeobj.rst:1633 ../../c-api/typeobj.rst:1667 -#: ../../c-api/typeobj.rst:1784 ../../c-api/typeobj.rst:1817 -#: ../../c-api/typeobj.rst:1892 ../../c-api/typeobj.rst:1933 -#: ../../c-api/typeobj.rst:1951 ../../c-api/typeobj.rst:1993 -#: ../../c-api/typeobj.rst:2014 ../../c-api/typeobj.rst:2045 +#: ../../c-api/typeobj.rst:913 ../../c-api/typeobj.rst:992 +#: ../../c-api/typeobj.rst:1029 ../../c-api/typeobj.rst:1054 +#: ../../c-api/typeobj.rst:1080 ../../c-api/typeobj.rst:1122 +#: ../../c-api/typeobj.rst:1757 ../../c-api/typeobj.rst:1791 +#: ../../c-api/typeobj.rst:1908 ../../c-api/typeobj.rst:1941 +#: ../../c-api/typeobj.rst:2016 ../../c-api/typeobj.rst:2057 +#: ../../c-api/typeobj.rst:2077 ../../c-api/typeobj.rst:2116 +#: ../../c-api/typeobj.rst:2144 ../../c-api/typeobj.rst:2175 msgid "**Default:**" msgstr "**デフォルト**" -#: ../../c-api/typeobj.rst:869 +#: ../../c-api/typeobj.rst:915 msgid "" "When this field is not set, a string of the form ``<%s object at %p>`` is " "returned, where ``%s`` is replaced by the type name, and ``%p`` by the " @@ -1891,7 +1972,7 @@ msgstr "" "列が返されます。 ``%s`` は型の名前に、 ``%p`` はオブジェクトのメモリアドレス" "に置き換えられます。" -#: ../../c-api/typeobj.rst:876 +#: ../../c-api/typeobj.rst:922 msgid "" "Pointer to an additional structure that contains fields relevant only to " "objects which implement the number protocol. These fields are documented " @@ -1900,7 +1981,7 @@ msgstr "" "数値プロトコルを実装した追加の構造体を指すポインタです。これらのフィールドに" "ついては :ref:`number-structs` で説明されています。" -#: ../../c-api/typeobj.rst:882 +#: ../../c-api/typeobj.rst:928 msgid "" "The :c:member:`~PyTypeObject.tp_as_number` field is not inherited, but the " "contained fields are inherited individually." @@ -1908,7 +1989,7 @@ msgstr "" ":c:member:`~PyTypeObject.tp_as_number` フィールドは継承されませんが、そこの含" "まれるフィールドが個別に継承されます。" -#: ../../c-api/typeobj.rst:888 +#: ../../c-api/typeobj.rst:934 msgid "" "Pointer to an additional structure that contains fields relevant only to " "objects which implement the sequence protocol. These fields are documented " @@ -1917,7 +1998,7 @@ msgstr "" "シーケンスプロトコルを実装した追加の構造体を指すポインタです。これらのフィー" "ルドについては :ref:`sequence-structs` で説明されています。" -#: ../../c-api/typeobj.rst:894 +#: ../../c-api/typeobj.rst:940 msgid "" "The :c:member:`~PyTypeObject.tp_as_sequence` field is not inherited, but the " "contained fields are inherited individually." @@ -1925,7 +2006,7 @@ msgstr "" ":c:member:`~PyTypeObject.tp_as_sequence` フィールドは継承されませんが、これに" "含まれるフィールドが個別に継承されます。" -#: ../../c-api/typeobj.rst:900 +#: ../../c-api/typeobj.rst:946 msgid "" "Pointer to an additional structure that contains fields relevant only to " "objects which implement the mapping protocol. These fields are documented " @@ -1934,7 +2015,7 @@ msgstr "" "マッピングプロトコルを実装した追加の構造体を指すポインタです。これらのフィー" "ルドについては :ref:`mapping-structs` で説明されています。" -#: ../../c-api/typeobj.rst:906 +#: ../../c-api/typeobj.rst:952 msgid "" "The :c:member:`~PyTypeObject.tp_as_mapping` field is not inherited, but the " "contained fields are inherited individually." @@ -1942,7 +2023,7 @@ msgstr "" ":c:member:`~PyTypeObject.tp_as_mapping` フィールドは継承されませんが、これに" "含まれるフィールドが個別に継承されます。" -#: ../../c-api/typeobj.rst:914 +#: ../../c-api/typeobj.rst:960 msgid "" "An optional pointer to a function that implements the built-in function :" "func:`hash`." @@ -1950,15 +2031,15 @@ msgstr "" "オプションのポインタで、組み込み関数 :func:`hash` を実装している関数を指しま" "す。" -#: ../../c-api/typeobj.rst:917 +#: ../../c-api/typeobj.rst:963 msgid "The signature is the same as for :c:func:`PyObject_Hash`::" msgstr "" -#: ../../c-api/typeobj.rst:919 +#: ../../c-api/typeobj.rst:965 msgid "Py_hash_t tp_hash(PyObject *);" msgstr "" -#: ../../c-api/typeobj.rst:921 +#: ../../c-api/typeobj.rst:967 msgid "" "The value ``-1`` should not be returned as a normal return value; when an " "error occurs during the computation of the hash value, the function should " @@ -1967,7 +2048,7 @@ msgstr "" "通常時には ``-1`` を戻り値にしてはなりません; ハッシュ値の計算中にエラーが生" "じた場合、関数は例外をセットして ``-1`` を返さねばなりません。" -#: ../../c-api/typeobj.rst:925 +#: ../../c-api/typeobj.rst:971 msgid "" "When this field is not set (*and* :c:member:`~PyTypeObject.tp_richcompare` " "is not set), an attempt to take the hash of the object raises :exc:" @@ -1975,7 +2056,7 @@ msgid "" "`PyObject_HashNotImplemented`." msgstr "" -#: ../../c-api/typeobj.rst:929 +#: ../../c-api/typeobj.rst:975 msgid "" "This field can be set explicitly to :c:func:`PyObject_HashNotImplemented` to " "block inheritance of the hash method from a parent type. This is interpreted " @@ -1993,13 +2074,13 @@ msgstr "" "ことで ``tp_hash`` スロットは :c:func:`PyObject_HashNotImplemented` に設定さ" "れます。" -#: ../../c-api/typeobj.rst:939 ../../c-api/typeobj.rst:1626 +#: ../../c-api/typeobj.rst:985 ../../c-api/typeobj.rst:1750 msgid "" "Group: :c:member:`~PyTypeObject.tp_hash`, :c:member:`~PyTypeObject." "tp_richcompare`" msgstr "" -#: ../../c-api/typeobj.rst:941 +#: ../../c-api/typeobj.rst:987 msgid "" "This field is inherited by subtypes together with :c:member:`~PyTypeObject." "tp_richcompare`: a subtype inherits both of :c:member:`~PyTypeObject." @@ -2013,11 +2094,11 @@ msgstr "" "のとき、サブタイプは基底タイプから :c:member:`~PyTypeObject.tp_richcompare` " "と :c:member:`~PyTypeObject.tp_hash` を両方とも継承します。" -#: ../../c-api/typeobj.rst:948 +#: ../../c-api/typeobj.rst:994 msgid ":c:data:`PyBaseObject_Type` uses :c:func:`PyObject_GenericHash`." msgstr "" -#: ../../c-api/typeobj.rst:953 +#: ../../c-api/typeobj.rst:999 msgid "" "An optional pointer to a function that implements calling the object. This " "should be ``NULL`` if the object is not callable. The signature is the same " @@ -2027,11 +2108,11 @@ msgstr "" "オブジェクトが呼び出し可能でない場合には ``NULL`` にしなければなりません。シ" "グネチャは :c:func:`PyObject_Call` と同じです。" -#: ../../c-api/typeobj.rst:957 +#: ../../c-api/typeobj.rst:1003 msgid "PyObject *tp_call(PyObject *self, PyObject *args, PyObject *kwargs);" msgstr "" -#: ../../c-api/typeobj.rst:966 +#: ../../c-api/typeobj.rst:1012 msgid "" "An optional pointer to a function that implements the built-in operation :" "func:`str`. (Note that :class:`str` is a type now, and :func:`str` calls " @@ -2045,15 +2126,15 @@ msgstr "" "行う上で :c:func:`PyObject_Str` を呼び出し、さらに :c:func:`PyObject_Str` が" "このハンドラを呼び出すことになります。)" -#: ../../c-api/typeobj.rst:971 +#: ../../c-api/typeobj.rst:1017 msgid "The signature is the same as for :c:func:`PyObject_Str`::" msgstr "" -#: ../../c-api/typeobj.rst:973 +#: ../../c-api/typeobj.rst:1019 msgid "PyObject *tp_str(PyObject *self);" msgstr "" -#: ../../c-api/typeobj.rst:975 +#: ../../c-api/typeobj.rst:1021 msgid "" "The function must return a string or a Unicode object. It should be a " "\"friendly\" string representation of the object, as this is the " @@ -2065,7 +2146,7 @@ msgstr "" "ません。というのは、この文字列はとりわけ :func:`print` 関数で使われることにな" "る表記だからです。" -#: ../../c-api/typeobj.rst:985 +#: ../../c-api/typeobj.rst:1031 msgid "" "When this field is not set, :c:func:`PyObject_Repr` is called to return a " "string representation." @@ -2073,19 +2154,19 @@ msgstr "" "このフィールドが設定されていない場合、文字列表現を返すためには :c:func:" "`PyObject_Repr` が呼び出されます。" -#: ../../c-api/typeobj.rst:991 +#: ../../c-api/typeobj.rst:1037 msgid "An optional pointer to the get-attribute function." msgstr "オプションのポインタで、get-attribute を実装している関数を指します。" -#: ../../c-api/typeobj.rst:993 +#: ../../c-api/typeobj.rst:1039 msgid "The signature is the same as for :c:func:`PyObject_GetAttr`::" msgstr "" -#: ../../c-api/typeobj.rst:995 +#: ../../c-api/typeobj.rst:1041 msgid "PyObject *tp_getattro(PyObject *self, PyObject *attr);" msgstr "" -#: ../../c-api/typeobj.rst:997 +#: ../../c-api/typeobj.rst:1043 msgid "" "It is usually convenient to set this field to :c:func:" "`PyObject_GenericGetAttr`, which implements the normal way of looking for " @@ -2094,7 +2175,7 @@ msgstr "" "通常の属性検索を実装している :c:func:`PyObject_GenericGetAttr` をこのフィー" "ルドに設定しておくとたいていの場合は便利です。" -#: ../../c-api/typeobj.rst:1004 +#: ../../c-api/typeobj.rst:1050 msgid "" "This field is inherited by subtypes together with :c:member:`~PyTypeObject." "tp_getattr`: a subtype inherits both :c:member:`~PyTypeObject.tp_getattr` " @@ -2108,19 +2189,19 @@ msgstr "" "基底タイプから :c:member:`~PyTypeObject.tp_getattr` と :c:member:" "`~PyTypeObject.tp_getattro` を両方とも継承します。" -#: ../../c-api/typeobj.rst:1010 +#: ../../c-api/typeobj.rst:1056 msgid ":c:data:`PyBaseObject_Type` uses :c:func:`PyObject_GenericGetAttr`." msgstr "" -#: ../../c-api/typeobj.rst:1017 +#: ../../c-api/typeobj.rst:1063 msgid "The signature is the same as for :c:func:`PyObject_SetAttr`::" msgstr "" -#: ../../c-api/typeobj.rst:1019 +#: ../../c-api/typeobj.rst:1065 msgid "int tp_setattro(PyObject *self, PyObject *attr, PyObject *value);" msgstr "" -#: ../../c-api/typeobj.rst:1021 +#: ../../c-api/typeobj.rst:1067 msgid "" "In addition, setting *value* to ``NULL`` to delete an attribute must be " "supported. It is usually convenient to set this field to :c:func:" @@ -2132,7 +2213,7 @@ msgstr "" "通常のオブジェクト属性設定を実装している :c:func:`PyObject_GenericSetAttr` " "をこのフィールドに設定しておくとたいていの場合は便利です。" -#: ../../c-api/typeobj.rst:1030 +#: ../../c-api/typeobj.rst:1076 msgid "" "This field is inherited by subtypes together with :c:member:`~PyTypeObject." "tp_setattr`: a subtype inherits both :c:member:`~PyTypeObject.tp_setattr` " @@ -2146,11 +2227,11 @@ msgstr "" "基底タイプから :c:member:`~PyTypeObject.tp_setattr` と :c:member:" "`~PyTypeObject.tp_setattro` を両方とも継承します。" -#: ../../c-api/typeobj.rst:1036 +#: ../../c-api/typeobj.rst:1082 msgid ":c:data:`PyBaseObject_Type` uses :c:func:`PyObject_GenericSetAttr`." msgstr "" -#: ../../c-api/typeobj.rst:1041 +#: ../../c-api/typeobj.rst:1087 msgid "" "Pointer to an additional structure that contains fields relevant only to " "objects which implement the buffer interface. These fields are documented " @@ -2160,7 +2241,7 @@ msgstr "" "フィールド群が入った別の構造体を指すポインタです。構造体内の各フィールドは :" "ref:`buffer-structs` で説明します。" -#: ../../c-api/typeobj.rst:1047 +#: ../../c-api/typeobj.rst:1093 msgid "" "The :c:member:`~PyTypeObject.tp_as_buffer` field is not inherited, but the " "contained fields are inherited individually." @@ -2168,7 +2249,7 @@ msgstr "" ":c:member:`~PyTypeObject.tp_as_buffer` フィールド自体は継承されませんが、これ" "に含まれるフィールドは個別に継承されます。" -#: ../../c-api/typeobj.rst:1053 +#: ../../c-api/typeobj.rst:1099 msgid "" "This field is a bit mask of various flags. Some flags indicate variant " "semantics for certain situations; others are used to indicate that certain " @@ -2189,7 +2270,7 @@ msgstr "" "がクリアされていれば、フラグが保護しているフィールドにはアクセスしない代わり" "に、その値はゼロか ``NULL`` になっているとみなさなければなりません。" -#: ../../c-api/typeobj.rst:1063 +#: ../../c-api/typeobj.rst:1109 msgid "" "Inheritance of this field is complicated. Most flag bits are inherited " "individually, i.e. if the base type has a flag bit set, the subtype inherits " @@ -2204,17 +2285,17 @@ msgid "" "the subtype exist and have ``NULL`` values." msgstr "" -#: ../../c-api/typeobj.rst:1078 +#: ../../c-api/typeobj.rst:1124 msgid "" ":c:data:`PyBaseObject_Type` uses ``Py_TPFLAGS_DEFAULT | " "Py_TPFLAGS_BASETYPE``." msgstr "" -#: ../../c-api/typeobj.rst:1081 +#: ../../c-api/typeobj.rst:1127 msgid "**Bit Masks:**" msgstr "" -#: ../../c-api/typeobj.rst:1085 +#: ../../c-api/typeobj.rst:1131 msgid "" "The following bit masks are currently defined; these can be ORed together " "using the ``|`` operator to form the value of the :c:member:`~PyTypeObject." @@ -2227,7 +2308,7 @@ msgstr "" "す。 :c:func:`PyType_HasFeature` マクロは型とフラグ値、 *tp* および *f* をと" "り、 ``tp->tp_flags & f`` が非ゼロかどうか調べます。" -#: ../../c-api/typeobj.rst:1092 +#: ../../c-api/typeobj.rst:1138 msgid "" "This bit is set when the type object itself is allocated on the heap, for " "example, types created dynamically using :c:func:`PyType_FromSpec`. In this " @@ -2240,13 +2321,13 @@ msgid "" "reference cycle with their own module object." msgstr "" -#: ../../c-api/typeobj.rst:1103 ../../c-api/typeobj.rst:1114 -#: ../../c-api/typeobj.rst:1124 ../../c-api/typeobj.rst:1134 -#: ../../c-api/typeobj.rst:1166 +#: ../../c-api/typeobj.rst:1149 ../../c-api/typeobj.rst:1160 +#: ../../c-api/typeobj.rst:1170 ../../c-api/typeobj.rst:1180 +#: ../../c-api/typeobj.rst:1212 msgid "???" msgstr "" -#: ../../c-api/typeobj.rst:1108 +#: ../../c-api/typeobj.rst:1154 msgid "" "This bit is set when the type can be used as the base type of another type. " "If this bit is clear, the type cannot be subtyped (similar to a \"final\" " @@ -2256,7 +2337,7 @@ msgstr "" "クリアならば、この型のサブタイプは生成できません (Java における \"final\" ク" "ラスに似たクラスになります)。" -#: ../../c-api/typeobj.rst:1119 +#: ../../c-api/typeobj.rst:1165 msgid "" "This bit is set when the type object has been fully initialized by :c:func:" "`PyType_Ready`." @@ -2264,7 +2345,7 @@ msgstr "" "型オブジェクトが :c:func:`PyType_Ready` で完全に初期化されるとセットされる" "ビットです。" -#: ../../c-api/typeobj.rst:1129 +#: ../../c-api/typeobj.rst:1175 msgid "" "This bit is set while :c:func:`PyType_Ready` is in the process of " "initializing the type object." @@ -2272,24 +2353,24 @@ msgstr "" ":c:func:`PyType_Ready` による型オブジェクトの初期化処理中にセットされるビット" "です。" -#: ../../c-api/typeobj.rst:1139 +#: ../../c-api/typeobj.rst:1185 msgid "" "This bit is set when the object supports garbage collection. If this bit is " -"set, instances must be created using :c:macro:`PyObject_GC_New` and " -"destroyed using :c:func:`PyObject_GC_Del`. More information in section :ref:" -"`supporting-cycle-detection`. This bit also implies that the GC-related " -"fields :c:member:`~PyTypeObject.tp_traverse` and :c:member:`~PyTypeObject." -"tp_clear` are present in the type object." +"set, memory for new instances (see :c:member:`~PyTypeObject.tp_alloc`) must " +"be allocated using :c:macro:`PyObject_GC_New` or :c:func:" +"`PyType_GenericAlloc` and deallocated (see :c:member:`~PyTypeObject." +"tp_free`) using :c:func:`PyObject_GC_Del`. More information in section :ref:" +"`supporting-cycle-detection`." msgstr "" -#: ../../c-api/typeobj.rst:1148 ../../c-api/typeobj.rst:1490 -#: ../../c-api/typeobj.rst:1565 +#: ../../c-api/typeobj.rst:1194 ../../c-api/typeobj.rst:1541 +#: ../../c-api/typeobj.rst:1685 msgid "" "Group: :c:macro:`Py_TPFLAGS_HAVE_GC`, :c:member:`~PyTypeObject." "tp_traverse`, :c:member:`~PyTypeObject.tp_clear`" msgstr "" -#: ../../c-api/typeobj.rst:1150 +#: ../../c-api/typeobj.rst:1196 msgid "" "The :c:macro:`Py_TPFLAGS_HAVE_GC` flag bit is inherited together with the :c:" "member:`~PyTypeObject.tp_traverse` and :c:member:`~PyTypeObject.tp_clear` " @@ -2299,105 +2380,105 @@ msgid "" "values." msgstr "" -#: ../../c-api/typeobj.rst:1160 +#: ../../c-api/typeobj.rst:1206 msgid "" "This is a bitmask of all the bits that pertain to the existence of certain " "fields in the type object and its extension structures. Currently, it " "includes the following bits: :c:macro:`Py_TPFLAGS_HAVE_STACKLESS_EXTENSION`." msgstr "" -#: ../../c-api/typeobj.rst:1171 +#: ../../c-api/typeobj.rst:1217 msgid "This bit indicates that objects behave like unbound methods." msgstr "" -#: ../../c-api/typeobj.rst:1173 +#: ../../c-api/typeobj.rst:1219 msgid "If this flag is set for ``type(meth)``, then:" msgstr "" -#: ../../c-api/typeobj.rst:1175 +#: ../../c-api/typeobj.rst:1221 msgid "" "``meth.__get__(obj, cls)(*args, **kwds)`` (with ``obj`` not None) must be " "equivalent to ``meth(obj, *args, **kwds)``." msgstr "" -#: ../../c-api/typeobj.rst:1178 +#: ../../c-api/typeobj.rst:1224 msgid "" "``meth.__get__(None, cls)(*args, **kwds)`` must be equivalent to " "``meth(*args, **kwds)``." msgstr "" -#: ../../c-api/typeobj.rst:1181 +#: ../../c-api/typeobj.rst:1227 msgid "" "This flag enables an optimization for typical method calls like ``obj." "meth()``: it avoids creating a temporary \"bound method\" object for ``obj." "meth``." msgstr "" -#: ../../c-api/typeobj.rst:1189 +#: ../../c-api/typeobj.rst:1235 msgid "" "This flag is never inherited by types without the :c:macro:" "`Py_TPFLAGS_IMMUTABLETYPE` flag set. For extension types, it is inherited " "whenever :c:member:`~PyTypeObject.tp_descr_get` is inherited." msgstr "" -#: ../../c-api/typeobj.rst:1195 +#: ../../c-api/typeobj.rst:1241 msgid "" "This bit indicates that instances of the class have a `~object.__dict__` " "attribute, and that the space for the dictionary is managed by the VM." msgstr "" -#: ../../c-api/typeobj.rst:1198 +#: ../../c-api/typeobj.rst:1244 msgid "If this flag is set, :c:macro:`Py_TPFLAGS_HAVE_GC` should also be set." msgstr "" -#: ../../c-api/typeobj.rst:1200 +#: ../../c-api/typeobj.rst:1246 msgid "" "The type traverse function must call :c:func:`PyObject_VisitManagedDict` and " "its clear function must call :c:func:`PyObject_ClearManagedDict`." msgstr "" -#: ../../c-api/typeobj.rst:1207 +#: ../../c-api/typeobj.rst:1253 msgid "" "This flag is inherited unless the :c:member:`~PyTypeObject.tp_dictoffset` " "field is set in a superclass." msgstr "" -#: ../../c-api/typeobj.rst:1213 +#: ../../c-api/typeobj.rst:1259 msgid "" "This bit indicates that instances of the class should be weakly " "referenceable." msgstr "" -#: ../../c-api/typeobj.rst:1220 +#: ../../c-api/typeobj.rst:1266 msgid "" "This flag is inherited unless the :c:member:`~PyTypeObject." "tp_weaklistoffset` field is set in a superclass." msgstr "" -#: ../../c-api/typeobj.rst:1226 +#: ../../c-api/typeobj.rst:1272 msgid "" "Only usable with variable-size types, i.e. ones with non-zero :c:member:" "`~PyTypeObject.tp_itemsize`." msgstr "" -#: ../../c-api/typeobj.rst:1229 +#: ../../c-api/typeobj.rst:1275 msgid "" "Indicates that the variable-sized portion of an instance of this type is at " "the end of the instance's memory area, at an offset of ``Py_TYPE(obj)-" ">tp_basicsize`` (which may be different in each subclass)." msgstr "" -#: ../../c-api/typeobj.rst:1234 +#: ../../c-api/typeobj.rst:1280 msgid "" "When setting this flag, be sure that all superclasses either use this memory " "layout, or are not variable-sized. Python does not check this." msgstr "" -#: ../../c-api/typeobj.rst:1242 +#: ../../c-api/typeobj.rst:1288 msgid "This flag is inherited." msgstr "" -#: ../../c-api/typeobj.rst:1256 +#: ../../c-api/typeobj.rst:1302 msgid "" "These flags are used by functions such as :c:func:`PyLong_Check` to quickly " "determine if a type is a subclass of a built-in type; such specific checks " @@ -2414,7 +2495,7 @@ msgstr "" "設定すべきで、そうしないとその型が関わるコードでは、どんなチェックの方法が使" "われるかによって振る舞いが異なってしまうでしょう。" -#: ../../c-api/typeobj.rst:1267 +#: ../../c-api/typeobj.rst:1313 msgid "" "This bit is set when the :c:member:`~PyTypeObject.tp_finalize` slot is " "present in the type structure." @@ -2422,84 +2503,84 @@ msgstr "" "型構造体に :c:member:`~PyTypeObject.tp_finalize` スロットが存在しているときに" "セットされるビットです。" -#: ../../c-api/typeobj.rst:1272 +#: ../../c-api/typeobj.rst:1318 msgid "" "This flag isn't necessary anymore, as the interpreter assumes the :c:member:" "`~PyTypeObject.tp_finalize` slot is always present in the type structure." msgstr "" -#: ../../c-api/typeobj.rst:1280 +#: ../../c-api/typeobj.rst:1326 msgid "" "This bit is set when the class implements the :ref:`vectorcall protocol " "`. See :c:member:`~PyTypeObject.tp_vectorcall_offset` for " "details." msgstr "" -#: ../../c-api/typeobj.rst:1286 +#: ../../c-api/typeobj.rst:1332 msgid "" "This bit is inherited if :c:member:`~PyTypeObject.tp_call` is also inherited." msgstr "" -#: ../../c-api/typeobj.rst:1293 +#: ../../c-api/typeobj.rst:1339 msgid "" "This flag is now removed from a class when the class's :py:meth:`~object." "__call__` method is reassigned." msgstr "" -#: ../../c-api/typeobj.rst:1296 +#: ../../c-api/typeobj.rst:1342 msgid "This flag can now be inherited by mutable classes." msgstr "" -#: ../../c-api/typeobj.rst:1300 +#: ../../c-api/typeobj.rst:1346 msgid "" "This bit is set for type objects that are immutable: type attributes cannot " "be set nor deleted." msgstr "" -#: ../../c-api/typeobj.rst:1302 +#: ../../c-api/typeobj.rst:1348 msgid "" ":c:func:`PyType_Ready` automatically applies this flag to :ref:`static types " "`." msgstr "" -#: ../../c-api/typeobj.rst:1307 +#: ../../c-api/typeobj.rst:1353 msgid "This flag is not inherited." msgstr "" -#: ../../c-api/typeobj.rst:1313 +#: ../../c-api/typeobj.rst:1359 msgid "" "Disallow creating instances of the type: set :c:member:`~PyTypeObject." "tp_new` to NULL and don't create the ``__new__`` key in the type dictionary." msgstr "" -#: ../../c-api/typeobj.rst:1317 +#: ../../c-api/typeobj.rst:1363 msgid "" "The flag must be set before creating the type, not after. For example, it " "must be set before :c:func:`PyType_Ready` is called on the type." msgstr "" -#: ../../c-api/typeobj.rst:1320 +#: ../../c-api/typeobj.rst:1366 msgid "" "The flag is set automatically on :ref:`static types ` if :c:" "member:`~PyTypeObject.tp_base` is NULL or ``&PyBaseObject_Type`` and :c:" "member:`~PyTypeObject.tp_new` is NULL." msgstr "" -#: ../../c-api/typeobj.rst:1326 +#: ../../c-api/typeobj.rst:1372 msgid "" "This flag is not inherited. However, subclasses will not be instantiable " "unless they provide a non-NULL :c:member:`~PyTypeObject.tp_new` (which is " "only possible via the C API)." msgstr "" -#: ../../c-api/typeobj.rst:1333 +#: ../../c-api/typeobj.rst:1379 msgid "" "To disallow instantiating a class directly but allow instantiating its " "subclasses (e.g. for an :term:`abstract base class`), do not use this flag. " "Instead, make :c:member:`~PyTypeObject.tp_new` only succeed for subclasses." msgstr "" -#: ../../c-api/typeobj.rst:1344 +#: ../../c-api/typeobj.rst:1390 msgid "" "This bit indicates that instances of the class may match mapping patterns " "when used as the subject of a :keyword:`match` block. It is automatically " @@ -2507,23 +2588,23 @@ msgid "" "unset when registering :class:`collections.abc.Sequence`." msgstr "" -#: ../../c-api/typeobj.rst:1351 ../../c-api/typeobj.rst:1373 +#: ../../c-api/typeobj.rst:1397 ../../c-api/typeobj.rst:1419 msgid "" ":c:macro:`Py_TPFLAGS_MAPPING` and :c:macro:`Py_TPFLAGS_SEQUENCE` are " "mutually exclusive; it is an error to enable both flags simultaneously." msgstr "" -#: ../../c-api/typeobj.rst:1356 +#: ../../c-api/typeobj.rst:1402 msgid "" "This flag is inherited by types that do not already set :c:macro:" "`Py_TPFLAGS_SEQUENCE`." msgstr "" -#: ../../c-api/typeobj.rst:1359 ../../c-api/typeobj.rst:1381 +#: ../../c-api/typeobj.rst:1405 ../../c-api/typeobj.rst:1427 msgid ":pep:`634` -- Structural Pattern Matching: Specification" msgstr ":pep:`634` -- 構造的パターンマッチ: 仕様" -#: ../../c-api/typeobj.rst:1366 +#: ../../c-api/typeobj.rst:1412 msgid "" "This bit indicates that instances of the class may match sequence patterns " "when used as the subject of a :keyword:`match` block. It is automatically " @@ -2531,47 +2612,47 @@ msgid "" "unset when registering :class:`collections.abc.Mapping`." msgstr "" -#: ../../c-api/typeobj.rst:1378 +#: ../../c-api/typeobj.rst:1424 msgid "" "This flag is inherited by types that do not already set :c:macro:" "`Py_TPFLAGS_MAPPING`." msgstr "" -#: ../../c-api/typeobj.rst:1388 +#: ../../c-api/typeobj.rst:1434 msgid "" "Internal. Do not set or unset this flag. To indicate that a class has " "changed call :c:func:`PyType_Modified`" msgstr "" -#: ../../c-api/typeobj.rst:1392 +#: ../../c-api/typeobj.rst:1438 msgid "" "This flag is present in header files, but is not be used. It will be removed " "in a future version of CPython" msgstr "" -#: ../../c-api/typeobj.rst:1398 +#: ../../c-api/typeobj.rst:1444 msgid "" "An optional pointer to a NUL-terminated C string giving the docstring for " "this type object. This is exposed as the :attr:`~type.__doc__` attribute on " "the type and instances of the type." msgstr "" -#: ../../c-api/typeobj.rst:1404 +#: ../../c-api/typeobj.rst:1450 msgid "This field is *not* inherited by subtypes." msgstr "サブタイプはこのフィールドを継承 *しません* 。" -#: ../../c-api/typeobj.rst:1409 +#: ../../c-api/typeobj.rst:1455 msgid "" "An optional pointer to a traversal function for the garbage collector. This " "is only used if the :c:macro:`Py_TPFLAGS_HAVE_GC` flag bit is set. The " "signature is::" msgstr "" -#: ../../c-api/typeobj.rst:1412 +#: ../../c-api/typeobj.rst:1458 msgid "int tp_traverse(PyObject *self, visitproc visit, void *arg);" msgstr "" -#: ../../c-api/typeobj.rst:1414 ../../c-api/typeobj.rst:1560 +#: ../../c-api/typeobj.rst:1460 ../../c-api/typeobj.rst:1680 msgid "" "More information about Python's garbage collection scheme can be found in " "section :ref:`supporting-cycle-detection`." @@ -2579,7 +2660,7 @@ msgstr "" "Pythonのガベージコレクションの仕組みについての詳細は、 :ref:`supporting-" "cycle-detection` にあります。" -#: ../../c-api/typeobj.rst:1417 +#: ../../c-api/typeobj.rst:1463 msgid "" "The :c:member:`~PyTypeObject.tp_traverse` pointer is used by the garbage " "collector to detect reference cycles. A typical implementation of a :c:" @@ -2589,7 +2670,7 @@ msgid "" "`!_thread` extension module::" msgstr "" -#: ../../c-api/typeobj.rst:1423 +#: ../../c-api/typeobj.rst:1469 msgid "" "static int\n" "local_traverse(PyObject *op, visitproc visit, void *arg)\n" @@ -2602,7 +2683,7 @@ msgid "" "}" msgstr "" -#: ../../c-api/typeobj.rst:1433 +#: ../../c-api/typeobj.rst:1479 msgid "" "Note that :c:func:`Py_VISIT` is called only on those members that can " "participate in reference cycles. Although there is also a ``self->key`` " @@ -2613,7 +2694,7 @@ msgstr "" "に注目してください。 ``self->key`` メンバもありますが、それは ``NULL`` か " "Python文字列なので、循環参照の一部になることはありません。" -#: ../../c-api/typeobj.rst:1437 +#: ../../c-api/typeobj.rst:1483 msgid "" "On the other hand, even if you know a member can never be part of a cycle, " "as a debugging aid you may want to visit it anyway just so the :mod:`gc` " @@ -2623,40 +2704,40 @@ msgstr "" "たい場合があるかもしれないので、 :mod:`gc` モジュールの :func:`~gc." "get_referents` 関数は循環参照になり得ないメンバも返します。" -#: ../../c-api/typeobj.rst:1441 +#: ../../c-api/typeobj.rst:1487 msgid "" "Heap types (:c:macro:`Py_TPFLAGS_HEAPTYPE`) must visit their type with::" msgstr "" -#: ../../c-api/typeobj.rst:1443 +#: ../../c-api/typeobj.rst:1489 msgid "Py_VISIT(Py_TYPE(self));" msgstr "" -#: ../../c-api/typeobj.rst:1445 +#: ../../c-api/typeobj.rst:1491 msgid "" "It is only needed since Python 3.9. To support Python 3.8 and older, this " "line must be conditional::" msgstr "" -#: ../../c-api/typeobj.rst:1448 +#: ../../c-api/typeobj.rst:1494 msgid "" "#if PY_VERSION_HEX >= 0x03090000\n" " Py_VISIT(Py_TYPE(self));\n" "#endif" msgstr "" -#: ../../c-api/typeobj.rst:1452 +#: ../../c-api/typeobj.rst:1498 msgid "" "If the :c:macro:`Py_TPFLAGS_MANAGED_DICT` bit is set in the :c:member:" "`~PyTypeObject.tp_flags` field, the traverse function must call :c:func:" "`PyObject_VisitManagedDict` like this::" msgstr "" -#: ../../c-api/typeobj.rst:1456 +#: ../../c-api/typeobj.rst:1502 msgid "PyObject_VisitManagedDict((PyObject*)self, visit, arg);" msgstr "" -#: ../../c-api/typeobj.rst:1459 +#: ../../c-api/typeobj.rst:1505 msgid "" "When implementing :c:member:`~PyTypeObject.tp_traverse`, only the members " "that the instance *owns* (by having :term:`strong references ` hold a reference to " "their type. Their traversal function must therefore either visit :c:func:" @@ -2685,14 +2766,20 @@ msgid "" "superclass). If they do not, the type object may not be garbage-collected." msgstr "" -#: ../../c-api/typeobj.rst:1483 +#: ../../c-api/typeobj.rst:1529 +msgid "" +"The :c:member:`~PyTypeObject.tp_traverse` function can be called from any " +"thread." +msgstr "" + +#: ../../c-api/typeobj.rst:1534 msgid "" "Heap-allocated types are expected to visit ``Py_TYPE(self)`` in " "``tp_traverse``. In earlier versions of Python, due to `bug 40217 `_, doing this may lead to crashes in subclasses." msgstr "" -#: ../../c-api/typeobj.rst:1492 +#: ../../c-api/typeobj.rst:1543 msgid "" "This field is inherited by subtypes together with :c:member:`~PyTypeObject." "tp_clear` and the :c:macro:`Py_TPFLAGS_HAVE_GC` flag bit: the flag bit, :c:" @@ -2700,45 +2787,161 @@ msgid "" "are all inherited from the base type if they are all zero in the subtype." msgstr "" -#: ../../c-api/typeobj.rst:1500 -msgid "" -"An optional pointer to a clear function for the garbage collector. This is " -"only used if the :c:macro:`Py_TPFLAGS_HAVE_GC` flag bit is set. The " -"signature is::" +#: ../../c-api/typeobj.rst:1551 +msgid "An optional pointer to a clear function. The signature is::" msgstr "" -#: ../../c-api/typeobj.rst:1503 +#: ../../c-api/typeobj.rst:1553 msgid "int tp_clear(PyObject *);" msgstr "" -#: ../../c-api/typeobj.rst:1505 +#: ../../c-api/typeobj.rst:1555 +msgid "" +"The purpose of this function is to break reference cycles that are causing " +"a :term:`cyclic isolate` so that the objects can be safely destroyed. A " +"cleared object is a partially destroyed object; the object is not obligated " +"to satisfy design invariants held during normal use." +msgstr "" + +#: ../../c-api/typeobj.rst:1560 +msgid "" +":c:member:`!tp_clear` does not need to delete references to objects that " +"can't participate in reference cycles, such as Python strings or Python " +"integers. However, it may be convenient to clear all references, and write " +"the type's :c:member:`~PyTypeObject.tp_dealloc` function to invoke :c:member:" +"`!tp_clear` to avoid code duplication. (Beware that :c:member:`!tp_clear` " +"might have already been called. Prefer calling idempotent functions like :c:" +"func:`Py_CLEAR`.)" +msgstr "" + +#: ../../c-api/typeobj.rst:1568 +msgid "" +"Any non-trivial cleanup should be performed in :c:member:`~PyTypeObject." +"tp_finalize` instead of :c:member:`!tp_clear`." +msgstr "" + +#: ../../c-api/typeobj.rst:1573 +msgid "" +"If :c:member:`!tp_clear` fails to break a reference cycle then the objects " +"in the :term:`cyclic isolate` may remain indefinitely uncollectable " +"(\"leak\"). See :data:`gc.garbage`." +msgstr "" + +#: ../../c-api/typeobj.rst:1579 +msgid "" +"Referents (direct and indirect) might have already been cleared; they are " +"not guaranteed to be in a consistent state." +msgstr "" + +#: ../../c-api/typeobj.rst:1584 +msgid "" +"The :c:member:`~PyTypeObject.tp_clear` function can be called from any " +"thread." +msgstr "" + +#: ../../c-api/typeobj.rst:1589 +msgid "" +"An object is not guaranteed to be automatically cleared before its " +"destructor (:c:member:`~PyTypeObject.tp_dealloc`) is called." +msgstr "" + +#: ../../c-api/typeobj.rst:1592 +msgid "" +"This function differs from the destructor (:c:member:`~PyTypeObject." +"tp_dealloc`) in the following ways:" +msgstr "" + +#: ../../c-api/typeobj.rst:1595 +msgid "" +"The purpose of clearing an object is to remove references to other objects " +"that might participate in a reference cycle. The purpose of the destructor, " +"on the other hand, is a superset: it must release *all* resources it owns, " +"including references to objects that cannot participate in a reference cycle " +"(e.g., integers) as well as the object's own memory (by calling :c:member:" +"`~PyTypeObject.tp_free`)." +msgstr "" + +#: ../../c-api/typeobj.rst:1601 +msgid "" +"When :c:member:`!tp_clear` is called, other objects might still hold " +"references to the object being cleared. Because of this, :c:member:`!" +"tp_clear` must not deallocate the object's own memory (:c:member:" +"`~PyTypeObject.tp_free`). The destructor, on the other hand, is only called " +"when no (strong) references exist, and as such, must safely destroy the " +"object itself by deallocating it." +msgstr "" + +#: ../../c-api/typeobj.rst:1607 +msgid "" +":c:member:`!tp_clear` might never be automatically called. An object's " +"destructor, on the other hand, will be automatically called some time after " +"the object becomes unreachable (i.e., either there are no references to the " +"object or the object is a member of a :term:`cyclic isolate`)." +msgstr "" + +#: ../../c-api/typeobj.rst:1612 +msgid "" +"No guarantees are made about when, if, or how often Python automatically " +"clears an object, except:" +msgstr "" + +#: ../../c-api/typeobj.rst:1615 +msgid "" +"Python will not automatically clear an object if it is reachable, i.e., " +"there is a reference to it and it is not a member of a :term:`cyclic " +"isolate`." +msgstr "" + +#: ../../c-api/typeobj.rst:1618 msgid "" -"The :c:member:`~PyTypeObject.tp_clear` member function is used to break " -"reference cycles in cyclic garbage detected by the garbage collector. Taken " -"together, all :c:member:`~PyTypeObject.tp_clear` functions in the system " -"must combine to break all reference cycles. This is subtle, and if in any " -"doubt supply a :c:member:`~PyTypeObject.tp_clear` function. For example, " -"the tuple type does not implement a :c:member:`~PyTypeObject.tp_clear` " -"function, because it's possible to prove that no reference cycle can be " -"composed entirely of tuples. Therefore the :c:member:`~PyTypeObject." -"tp_clear` functions of other types must be sufficient to break any cycle " +"Python will not automatically clear an object if it has not been " +"automatically finalized (see :c:member:`~PyTypeObject.tp_finalize`). (If " +"the finalizer resurrected the object, the object may or may not be " +"automatically finalized again before it is cleared.)" +msgstr "" + +#: ../../c-api/typeobj.rst:1622 +msgid "" +"If an object is a member of a :term:`cyclic isolate`, Python will not " +"automatically clear it if any member of the cyclic isolate has not yet been " +"automatically finalized (:c:member:`~PyTypeObject.tp_finalize`)." +msgstr "" + +#: ../../c-api/typeobj.rst:1625 +msgid "" +"Python will not destroy an object until after any automatic calls to its :c:" +"member:`!tp_clear` function have returned. This ensures that the act of " +"breaking a reference cycle does not invalidate the ``self`` pointer while :c:" +"member:`!tp_clear` is still executing." +msgstr "" + +#: ../../c-api/typeobj.rst:1629 +msgid "" +"Python will not automatically call :c:member:`!tp_clear` multiple times " +"concurrently." +msgstr "" + +#: ../../c-api/typeobj.rst:1632 +msgid "" +"CPython currently only automatically clears objects as needed to break " +"reference cycles in a :term:`cyclic isolate`, but future versions might " +"clear objects regularly before their destruction." +msgstr "" + +#: ../../c-api/typeobj.rst:1636 +msgid "" +"Taken together, all :c:member:`~PyTypeObject.tp_clear` functions in the " +"system must combine to break all reference cycles. This is subtle, and if " +"in any doubt supply a :c:member:`~PyTypeObject.tp_clear` function. For " +"example, the tuple type does not implement a :c:member:`~PyTypeObject." +"tp_clear` function, because it's possible to prove that no reference cycle " +"can be composed entirely of tuples. Therefore the :c:member:`~PyTypeObject." +"tp_clear` functions of other types are responsible for breaking any cycle " "containing a tuple. This isn't immediately obvious, and there's rarely a " "good reason to avoid implementing :c:member:`~PyTypeObject.tp_clear`." msgstr "" -":c:member:`~PyTypeObject.tp_clear` メンバ関数は GC が検出した循環しているゴミ" -"の循環参照を壊すために用いられます。総合的な視点で考えると、システム内の全て" -"の :c:member:`~PyTypeObject.tp_clear` 関数が連携して、全ての循環参照を破壊し" -"なければなりません。 (訳注: ある型が :c:member:`~PyTypeObject.tp_clear` を実" -"装しなくても全ての循環参照が破壊できるのであれば実装しなくても良い) これはと" -"ても繊細で、もし少しでも不確かな部分があるのであれば、 :c:member:" -"`~PyTypeObject.tp_clear` 関数を提供するべきです。例えば、タプルは :c:member:" -"`~PyTypeObject.tp_clear` を実装しません。なぜなら、タプルだけで構成された循環" -"参照がみつかることは無いからです。従って、タプル以外の型の :c:member:" -"`~PyTypeObject.tp_clear` 関数だけで、タプルを含むどんな循環参照も必ず破壊でき" -"ることになります。これは簡単に判ることではなく、 :c:member:`~PyTypeObject." -"tp_clear` の実装を避ける良い理由はめったにありません。" - -#: ../../c-api/typeobj.rst:1515 + +#: ../../c-api/typeobj.rst:1647 msgid "" "Implementations of :c:member:`~PyTypeObject.tp_clear` should drop the " "instance's references to those of its members that may be Python objects, " @@ -2749,7 +2952,7 @@ msgstr "" "スから Python オブジェクトだと思われるメンバへの参照を外し、それらのメンバへ" "のポインタに ``NULL`` をセットすべきです::" -#: ../../c-api/typeobj.rst:1519 +#: ../../c-api/typeobj.rst:1651 msgid "" "static int\n" "local_clear(PyObject *op)\n" @@ -2763,7 +2966,7 @@ msgid "" "}" msgstr "" -#: ../../c-api/typeobj.rst:1530 +#: ../../c-api/typeobj.rst:1662 msgid "" "The :c:func:`Py_CLEAR` macro should be used, because clearing references is " "delicate: the reference to the contained object must not be released (via :" @@ -2778,42 +2981,18 @@ msgid "" "performs the operations in a safe order." msgstr "" -#: ../../c-api/typeobj.rst:1542 +#: ../../c-api/typeobj.rst:1674 msgid "" "If the :c:macro:`Py_TPFLAGS_MANAGED_DICT` bit is set in the :c:member:" "`~PyTypeObject.tp_flags` field, the traverse function must call :c:func:" "`PyObject_ClearManagedDict` like this::" msgstr "" -#: ../../c-api/typeobj.rst:1546 +#: ../../c-api/typeobj.rst:1678 msgid "PyObject_ClearManagedDict((PyObject*)self);" msgstr "" -#: ../../c-api/typeobj.rst:1548 -msgid "" -"Note that :c:member:`~PyTypeObject.tp_clear` is not *always* called before " -"an instance is deallocated. For example, when reference counting is enough " -"to determine that an object is no longer used, the cyclic garbage collector " -"is not involved and :c:member:`~PyTypeObject.tp_dealloc` is called directly." -msgstr "" - -#: ../../c-api/typeobj.rst:1554 -msgid "" -"Because the goal of :c:member:`~PyTypeObject.tp_clear` functions is to break " -"reference cycles, it's not necessary to clear contained objects like Python " -"strings or Python integers, which can't participate in reference cycles. On " -"the other hand, it may be convenient to clear all contained Python objects, " -"and write the type's :c:member:`~PyTypeObject.tp_dealloc` function to " -"invoke :c:member:`~PyTypeObject.tp_clear`." -msgstr "" -":c:member:`~PyTypeObject.tp_clear` 関数の目的は参照カウントを破壊することなの" -"で、 Python 文字列や Python 整数のような、循環参照に含むことのできないオブ" -"ジェクトをクリアする必要はありません。一方、所有する全ての Python オブジェク" -"トをクリアするようにし、その型の :c:member:`~PyTypeObject.tp_dealloc` 関数" -"が :c:member:`~PyTypeObject.tp_clear` 関数を実行するようにすると実装が楽にな" -"るでしょう。" - -#: ../../c-api/typeobj.rst:1567 +#: ../../c-api/typeobj.rst:1687 msgid "" "This field is inherited by subtypes together with :c:member:`~PyTypeObject." "tp_traverse` and the :c:macro:`Py_TPFLAGS_HAVE_GC` flag bit: the flag bit, :" @@ -2821,23 +3000,23 @@ msgid "" "are all inherited from the base type if they are all zero in the subtype." msgstr "" -#: ../../c-api/typeobj.rst:1575 +#: ../../c-api/typeobj.rst:1699 msgid "" "An optional pointer to the rich comparison function, whose signature is::" msgstr "" "オプションのポインタで、拡張比較関数を指します。シグネチャは次の通りです::" -#: ../../c-api/typeobj.rst:1577 +#: ../../c-api/typeobj.rst:1701 msgid "PyObject *tp_richcompare(PyObject *self, PyObject *other, int op);" msgstr "" -#: ../../c-api/typeobj.rst:1579 +#: ../../c-api/typeobj.rst:1703 msgid "" "The first parameter is guaranteed to be an instance of the type that is " "defined by :c:type:`PyTypeObject`." msgstr "" -#: ../../c-api/typeobj.rst:1582 +#: ../../c-api/typeobj.rst:1706 msgid "" "The function should return the result of the comparison (usually ``Py_True`` " "or ``Py_False``). If the comparison is undefined, it must return " @@ -2848,7 +3027,7 @@ msgstr "" "す。) 比較が未定義の場合は、``Py_NotImplemented`` を、それ以外のエラーが発生" "した場合には例外状態をセットして ``NULL`` を返さなければなりません。" -#: ../../c-api/typeobj.rst:1587 +#: ../../c-api/typeobj.rst:1711 msgid "" "The following constants are defined to be used as the third argument for :c:" "member:`~PyTypeObject.tp_richcompare` and for :c:func:`PyObject_RichCompare`:" @@ -2857,46 +3036,46 @@ msgstr "" "`PyObject_RichCompare` 関数の第三引数に使うための定数としては以下が定義されて" "います:" -#: ../../c-api/typeobj.rst:1593 +#: ../../c-api/typeobj.rst:1717 msgid "Constant" msgstr "定数" -#: ../../c-api/typeobj.rst:1593 +#: ../../c-api/typeobj.rst:1717 msgid "Comparison" msgstr "比較" -#: ../../c-api/typeobj.rst:1595 +#: ../../c-api/typeobj.rst:1719 msgid "``<``" msgstr "``<``" -#: ../../c-api/typeobj.rst:1597 +#: ../../c-api/typeobj.rst:1721 msgid "``<=``" msgstr "``<=``" -#: ../../c-api/typeobj.rst:1599 +#: ../../c-api/typeobj.rst:1723 msgid "``==``" msgstr "``==``" -#: ../../c-api/typeobj.rst:1601 +#: ../../c-api/typeobj.rst:1725 msgid "``!=``" msgstr "``!=``" -#: ../../c-api/typeobj.rst:1603 +#: ../../c-api/typeobj.rst:1727 msgid "``>``" msgstr "``>``" -#: ../../c-api/typeobj.rst:1605 +#: ../../c-api/typeobj.rst:1729 msgid "``>=``" msgstr "``>=``" -#: ../../c-api/typeobj.rst:1608 +#: ../../c-api/typeobj.rst:1732 msgid "" "The following macro is defined to ease writing rich comparison functions:" msgstr "" "拡張比較関数(rich comparison functions)を簡単に記述するためのマクロが定義され" "ています:" -#: ../../c-api/typeobj.rst:1612 +#: ../../c-api/typeobj.rst:1736 msgid "" "Return ``Py_True`` or ``Py_False`` from the function, depending on the " "result of a comparison. VAL_A and VAL_B must be orderable by C comparison " @@ -2908,15 +3087,15 @@ msgstr "" "ばこれらは C言語の整数か浮動小数点数になるでしょう)。三番目の引数には :c:" "func:`PyObject_RichCompare` と同様に要求された演算を指定します。" -#: ../../c-api/typeobj.rst:1618 +#: ../../c-api/typeobj.rst:1742 msgid "The returned value is a new :term:`strong reference`." msgstr "" -#: ../../c-api/typeobj.rst:1620 +#: ../../c-api/typeobj.rst:1744 msgid "On error, sets an exception and returns ``NULL`` from the function." msgstr "エラー時には例外を設定して、関数から ``NULL`` でリターンします。" -#: ../../c-api/typeobj.rst:1628 +#: ../../c-api/typeobj.rst:1752 msgid "" "This field is inherited by subtypes together with :c:member:`~PyTypeObject." "tp_hash`: a subtype inherits :c:member:`~PyTypeObject.tp_richcompare` and :c:" @@ -2929,7 +3108,7 @@ msgstr "" "基底タイプから :c:member:`~PyTypeObject.tp_richcompare` と :c:member:" "`~PyTypeObject.tp_hash` を両方とも継承します。" -#: ../../c-api/typeobj.rst:1635 +#: ../../c-api/typeobj.rst:1759 msgid "" ":c:data:`PyBaseObject_Type` provides a :c:member:`~PyTypeObject." "tp_richcompare` implementation, which may be inherited. However, if only :c:" @@ -2938,13 +3117,13 @@ msgid "" "comparisons." msgstr "" -#: ../../c-api/typeobj.rst:1644 +#: ../../c-api/typeobj.rst:1768 msgid "" "While this field is still supported, :c:macro:`Py_TPFLAGS_MANAGED_WEAKREF` " "should be used instead, if at all possible." msgstr "" -#: ../../c-api/typeobj.rst:1647 +#: ../../c-api/typeobj.rst:1771 msgid "" "If the instances of this type are weakly referenceable, this field is " "greater than zero and contains the offset in the instance structure of the " @@ -2960,7 +3139,7 @@ msgstr "" "ス構造体には、 ``NULL`` に初期化された :c:expr:`PyObject*` 型のフィールドが" "入っていなければなりません。" -#: ../../c-api/typeobj.rst:1654 +#: ../../c-api/typeobj.rst:1778 msgid "" "Do not confuse this field with :c:member:`~PyTypeObject.tp_weaklist`; that " "is the list head for weak references to the type object itself." @@ -2968,13 +3147,13 @@ msgstr "" "このフィールドを :c:member:`~PyTypeObject.tp_weaklist` と混同しないようにして" "ください; これは型オブジェクト自身への弱参照からなるリストの先頭です。" -#: ../../c-api/typeobj.rst:1657 +#: ../../c-api/typeobj.rst:1781 msgid "" "It is an error to set both the :c:macro:`Py_TPFLAGS_MANAGED_WEAKREF` bit " "and :c:member:`~PyTypeObject.tp_weaklistoffset`." msgstr "" -#: ../../c-api/typeobj.rst:1662 +#: ../../c-api/typeobj.rst:1786 msgid "" "This field is inherited by subtypes, but see the rules listed below. A " "subtype may override this offset; this means that the subtype uses a " @@ -2988,7 +3167,7 @@ msgstr "" "に :c:member:`~PyTypeObject.tp_weaklistoffset` で分かるはずなので、このことは" "問題にはならないはずです。" -#: ../../c-api/typeobj.rst:1669 +#: ../../c-api/typeobj.rst:1793 msgid "" "If the :c:macro:`Py_TPFLAGS_MANAGED_WEAKREF` bit is set in the :c:member:" "`~PyTypeObject.tp_flags` field, then :c:member:`~PyTypeObject." @@ -2996,7 +3175,7 @@ msgid "" "unsafe to use this field." msgstr "" -#: ../../c-api/typeobj.rst:1677 +#: ../../c-api/typeobj.rst:1801 msgid "" "An optional pointer to a function that returns an :term:`iterator` for the " "object. Its presence normally signals that the instances of this type are :" @@ -3007,15 +3186,15 @@ msgstr "" "`イテレート可能 ` であることを示しています (しかし、シーケンスはこ" "の関数がなくてもイテレート可能です)。" -#: ../../c-api/typeobj.rst:1681 +#: ../../c-api/typeobj.rst:1805 msgid "This function has the same signature as :c:func:`PyObject_GetIter`::" msgstr "この関数は :c:func:`PyObject_GetIter` と同じシグネチャを持っています::" -#: ../../c-api/typeobj.rst:1683 +#: ../../c-api/typeobj.rst:1807 msgid "PyObject *tp_iter(PyObject *self);" msgstr "" -#: ../../c-api/typeobj.rst:1692 +#: ../../c-api/typeobj.rst:1816 msgid "" "An optional pointer to a function that returns the next item in an :term:" "`iterator`. The signature is::" @@ -3023,11 +3202,11 @@ msgstr "" "オプションのポインタで、:term:`イテレーター ` の次の要素を返す関数" "を指します。シグネチャは次の通りです::" -#: ../../c-api/typeobj.rst:1695 +#: ../../c-api/typeobj.rst:1819 msgid "PyObject *tp_iternext(PyObject *self);" msgstr "" -#: ../../c-api/typeobj.rst:1697 +#: ../../c-api/typeobj.rst:1821 msgid "" "When the iterator is exhausted, it must return ``NULL``; a :exc:" "`StopIteration` exception may or may not be set. When another error occurs, " @@ -3039,7 +3218,7 @@ msgstr "" "が発生したときも、 ``NULL`` を返さなければなりません。このフィールドがある" "と、この型のインスタンスがイテレータであることを示します。" -#: ../../c-api/typeobj.rst:1702 +#: ../../c-api/typeobj.rst:1826 msgid "" "Iterator types should also define the :c:member:`~PyTypeObject.tp_iter` " "function, and that function should return the iterator instance itself (not " @@ -3049,11 +3228,11 @@ msgstr "" "ばならず、その関数は (新たなイテレータインスタンスではなく) イテレータインス" "タンス自体を返さねばなりません。" -#: ../../c-api/typeobj.rst:1706 +#: ../../c-api/typeobj.rst:1830 msgid "This function has the same signature as :c:func:`PyIter_Next`." msgstr "この関数のシグネチャは :c:func:`PyIter_Next` と同じです。" -#: ../../c-api/typeobj.rst:1715 +#: ../../c-api/typeobj.rst:1839 msgid "" "An optional pointer to a static ``NULL``-terminated array of :c:type:" "`PyMethodDef` structures, declaring regular methods of this type." @@ -3062,7 +3241,7 @@ msgstr "" "type:`PyMethodDef` 構造体からなる、 ``NULL`` で終端された静的な配列を指しま" "す。" -#: ../../c-api/typeobj.rst:1718 +#: ../../c-api/typeobj.rst:1842 msgid "" "For each entry in the array, an entry is added to the type's dictionary " "(see :c:member:`~PyTypeObject.tp_dict` below) containing a method descriptor." @@ -3070,7 +3249,7 @@ msgstr "" "配列の各要素ごとに、メソッドデスクリプタの入った、要素が型の辞書 (下記の :c:" "member:`~PyTypeObject.tp_dict` 参照) に追加されます。" -#: ../../c-api/typeobj.rst:1723 +#: ../../c-api/typeobj.rst:1847 msgid "" "This field is not inherited by subtypes (methods are inherited through a " "different mechanism)." @@ -3078,7 +3257,7 @@ msgstr "" "サブタイプはこのフィールドを継承しません (メソッドは別個のメカニズムで継承さ" "れています)。" -#: ../../c-api/typeobj.rst:1729 +#: ../../c-api/typeobj.rst:1853 msgid "" "An optional pointer to a static ``NULL``-terminated array of :c:type:" "`PyMemberDef` structures, declaring regular data members (fields or slots) " @@ -3088,7 +3267,7 @@ msgstr "" "ロット) を宣言している :c:type:`PyMemberDef` 構造体からなる、 ``NULL`` で終端" "された静的な配列を指します。" -#: ../../c-api/typeobj.rst:1733 +#: ../../c-api/typeobj.rst:1857 msgid "" "For each entry in the array, an entry is added to the type's dictionary " "(see :c:member:`~PyTypeObject.tp_dict` below) containing a member descriptor." @@ -3096,7 +3275,7 @@ msgstr "" "配列の各要素ごとに、メンバデスクリプタの入った要素が型の辞書 (下記の :c:" "member:`~PyTypeObject.tp_dict` 参照) に追加されます。" -#: ../../c-api/typeobj.rst:1738 +#: ../../c-api/typeobj.rst:1862 msgid "" "This field is not inherited by subtypes (members are inherited through a " "different mechanism)." @@ -3104,7 +3283,7 @@ msgstr "" "サブタイプはこのフィールドを継承しません (メンバは別個のメカニズムで継承され" "ています)。" -#: ../../c-api/typeobj.rst:1744 +#: ../../c-api/typeobj.rst:1868 msgid "" "An optional pointer to a static ``NULL``-terminated array of :c:type:" "`PyGetSetDef` structures, declaring computed attributes of instances of this " @@ -3114,7 +3293,7 @@ msgstr "" "ている :c:type:`PyGetSetDef` 構造体からなる、 ``NULL`` で終端された静的な配列" "を指します。" -#: ../../c-api/typeobj.rst:1747 +#: ../../c-api/typeobj.rst:1871 msgid "" "For each entry in the array, an entry is added to the type's dictionary " "(see :c:member:`~PyTypeObject.tp_dict` below) containing a getset descriptor." @@ -3122,7 +3301,7 @@ msgstr "" "配列の各要素ごとに、 getter/setter デスクリプタの入った、要素が型の辞書 (下記" "の :c:member:`~PyTypeObject.tp_dict` 参照) に追加されます。" -#: ../../c-api/typeobj.rst:1752 +#: ../../c-api/typeobj.rst:1876 msgid "" "This field is not inherited by subtypes (computed attributes are inherited " "through a different mechanism)." @@ -3130,7 +3309,7 @@ msgstr "" "サブタイプはこのフィールドを継承しません (算出属性は別個のメカニズムで継承さ" "れています)。" -#: ../../c-api/typeobj.rst:1758 +#: ../../c-api/typeobj.rst:1882 msgid "" "An optional pointer to a base type from which type properties are " "inherited. At this level, only single inheritance is supported; multiple " @@ -3142,7 +3321,7 @@ msgstr "" "います; 多重継承はメタタイプの呼び出しによる動的な型オブジェクトの生成を必要" "とします。" -#: ../../c-api/typeobj.rst:1766 +#: ../../c-api/typeobj.rst:1890 msgid "" "Slot initialization is subject to the rules of initializing globals. C99 " "requires the initializers to be \"address constants\". Function designators " @@ -3150,7 +3329,7 @@ msgid "" "valid C99 address constants." msgstr "" -#: ../../c-api/typeobj.rst:1771 +#: ../../c-api/typeobj.rst:1895 msgid "" "However, the unary '&' operator applied to a non-static variable like :c:" "data:`PyBaseObject_Type` is not required to produce an address constant. " @@ -3158,17 +3337,17 @@ msgid "" "strictly standard conforming in this particular behavior." msgstr "" -#: ../../c-api/typeobj.rst:1777 +#: ../../c-api/typeobj.rst:1901 msgid "" "Consequently, :c:member:`~PyTypeObject.tp_base` should be set in the " "extension module's init function." msgstr "" -#: ../../c-api/typeobj.rst:1782 +#: ../../c-api/typeobj.rst:1906 msgid "This field is not inherited by subtypes (obviously)." msgstr "(当たり前ですが) サブタイプはこのフィールドを継承しません。" -#: ../../c-api/typeobj.rst:1786 +#: ../../c-api/typeobj.rst:1910 msgid "" "This field defaults to ``&PyBaseObject_Type`` (which to Python programmers " "is known as the type :class:`object`)." @@ -3176,12 +3355,12 @@ msgstr "" "このフィールドのデフォルト値は (Python プログラマは :class:`object` 型として" "知っている) ``&PyBaseObject_Type`` になります。" -#: ../../c-api/typeobj.rst:1792 +#: ../../c-api/typeobj.rst:1916 msgid "The type's dictionary is stored here by :c:func:`PyType_Ready`." msgstr "" "型の辞書は :c:func:`PyType_Ready` によってこのフィールドに収められます。" -#: ../../c-api/typeobj.rst:1794 +#: ../../c-api/typeobj.rst:1918 msgid "" "This field should normally be initialized to ``NULL`` before PyType_Ready is " "called; it may also be initialized to a dictionary containing initial " @@ -3192,20 +3371,20 @@ msgid "" "be treated as read-only." msgstr "" -#: ../../c-api/typeobj.rst:1802 +#: ../../c-api/typeobj.rst:1926 msgid "" "Some types may not store their dictionary in this slot. Use :c:func:" "`PyType_GetDict` to retrieve the dictionary for an arbitrary type." msgstr "" -#: ../../c-api/typeobj.rst:1808 +#: ../../c-api/typeobj.rst:1932 msgid "" "Internals detail: For static builtin types, this is always ``NULL``. " "Instead, the dict for such types is stored on ``PyInterpreterState``. Use :c:" "func:`PyType_GetDict` to get the dict for an arbitrary type." msgstr "" -#: ../../c-api/typeobj.rst:1814 +#: ../../c-api/typeobj.rst:1938 msgid "" "This field is not inherited by subtypes (though the attributes defined in " "here are inherited through a different mechanism)." @@ -3213,13 +3392,13 @@ msgstr "" "サブタイプはこのフィールドを継承しません (が、この辞書内で定義されている属性" "は異なるメカニズムで継承されます)。" -#: ../../c-api/typeobj.rst:1819 +#: ../../c-api/typeobj.rst:1943 msgid "" "If this field is ``NULL``, :c:func:`PyType_Ready` will assign a new " "dictionary to it." msgstr "" -#: ../../c-api/typeobj.rst:1824 +#: ../../c-api/typeobj.rst:1948 msgid "" "It is not safe to use :c:func:`PyDict_SetItem` on or otherwise modify :c:" "member:`~PyTypeObject.tp_dict` with the dictionary C-API." @@ -3227,42 +3406,42 @@ msgstr "" ":c:member:`~PyTypeObject.tp_dict` に :c:func:`PyDict_SetItem` を使ったり、辞" "書 C-API で編集するのは安全ではありません。" -#: ../../c-api/typeobj.rst:1830 +#: ../../c-api/typeobj.rst:1954 msgid "An optional pointer to a \"descriptor get\" function." msgstr "オプションのポインタで、デスクリプタの get 関数を指します。" -#: ../../c-api/typeobj.rst:1832 ../../c-api/typeobj.rst:1848 -#: ../../c-api/typeobj.rst:1912 ../../c-api/typeobj.rst:1942 -#: ../../c-api/typeobj.rst:1966 +#: ../../c-api/typeobj.rst:1956 ../../c-api/typeobj.rst:1972 +#: ../../c-api/typeobj.rst:2036 ../../c-api/typeobj.rst:2066 +#: ../../c-api/typeobj.rst:2089 msgid "The function signature is::" msgstr "関数のシグネチャは次のとおりです ::" -#: ../../c-api/typeobj.rst:1834 +#: ../../c-api/typeobj.rst:1958 msgid "PyObject * tp_descr_get(PyObject *self, PyObject *obj, PyObject *type);" msgstr "" -#: ../../c-api/typeobj.rst:1845 +#: ../../c-api/typeobj.rst:1969 msgid "" "An optional pointer to a function for setting and deleting a descriptor's " "value." msgstr "" "オプションのポインタで、デスクリプタの値の設定と削除を行う関数を指します。" -#: ../../c-api/typeobj.rst:1850 +#: ../../c-api/typeobj.rst:1974 msgid "int tp_descr_set(PyObject *self, PyObject *obj, PyObject *value);" msgstr "" -#: ../../c-api/typeobj.rst:1852 +#: ../../c-api/typeobj.rst:1976 msgid "The *value* argument is set to ``NULL`` to delete the value." msgstr "値を削除するには、*value* 引数に ``NULL`` を設定します。" -#: ../../c-api/typeobj.rst:1863 +#: ../../c-api/typeobj.rst:1987 msgid "" "While this field is still supported, :c:macro:`Py_TPFLAGS_MANAGED_DICT` " "should be used instead, if at all possible." msgstr "" -#: ../../c-api/typeobj.rst:1866 +#: ../../c-api/typeobj.rst:1990 msgid "" "If the instances of this type have a dictionary containing instance " "variables, this field is non-zero and contains the offset in the instances " @@ -3274,7 +3453,7 @@ msgstr "" "オフセットが入ります; このオフセット値は :c:func:`PyObject_GenericGetAttr` が" "使います。" -#: ../../c-api/typeobj.rst:1871 +#: ../../c-api/typeobj.rst:1995 msgid "" "Do not confuse this field with :c:member:`~PyTypeObject.tp_dict`; that is " "the dictionary for attributes of the type object itself." @@ -3282,13 +3461,13 @@ msgstr "" "このフィールドを :c:member:`~PyTypeObject.tp_dict` と混同しないようにしてくだ" "さい; これは型オブジェクト自身の属性の辞書です。" -#: ../../c-api/typeobj.rst:1874 +#: ../../c-api/typeobj.rst:1998 msgid "" "The value specifies the offset of the dictionary from the start of the " "instance structure." msgstr "" -#: ../../c-api/typeobj.rst:1876 +#: ../../c-api/typeobj.rst:2000 msgid "" "The :c:member:`~PyTypeObject.tp_dictoffset` should be regarded as write-" "only. To get the pointer to the dictionary call :c:func:" @@ -3297,13 +3476,13 @@ msgid "" "to call :c:func:`PyObject_GetAttr` when accessing an attribute on the object." msgstr "" -#: ../../c-api/typeobj.rst:1882 +#: ../../c-api/typeobj.rst:2006 msgid "" "It is an error to set both the :c:macro:`Py_TPFLAGS_MANAGED_DICT` bit and :c:" "member:`~PyTypeObject.tp_dictoffset`." msgstr "" -#: ../../c-api/typeobj.rst:1887 +#: ../../c-api/typeobj.rst:2011 msgid "" "This field is inherited by subtypes. A subtype should not override this " "offset; doing so could be unsafe, if C code tries to access the dictionary " @@ -3311,25 +3490,25 @@ msgid "" "`Py_TPFLAGS_MANAGED_DICT`." msgstr "" -#: ../../c-api/typeobj.rst:1894 +#: ../../c-api/typeobj.rst:2018 msgid "" "This slot has no default. For :ref:`static types `, if the " "field is ``NULL`` then no :attr:`~object.__dict__` gets created for " "instances." msgstr "" -#: ../../c-api/typeobj.rst:1897 +#: ../../c-api/typeobj.rst:2021 msgid "" "If the :c:macro:`Py_TPFLAGS_MANAGED_DICT` bit is set in the :c:member:" "`~PyTypeObject.tp_flags` field, then :c:member:`~PyTypeObject.tp_dictoffset` " "will be set to ``-1``, to indicate that it is unsafe to use this field." msgstr "" -#: ../../c-api/typeobj.rst:1905 +#: ../../c-api/typeobj.rst:2029 msgid "An optional pointer to an instance initialization function." msgstr "オプションのポインタで、インスタンス初期化関数を指します。" -#: ../../c-api/typeobj.rst:1907 +#: ../../c-api/typeobj.rst:2031 msgid "" "This function corresponds to the :meth:`~object.__init__` method of " "classes. Like :meth:`!__init__`, it is possible to create an instance " @@ -3337,18 +3516,18 @@ msgid "" "instance by calling its :meth:`!__init__` method again." msgstr "" -#: ../../c-api/typeobj.rst:1914 +#: ../../c-api/typeobj.rst:2038 msgid "int tp_init(PyObject *self, PyObject *args, PyObject *kwds);" msgstr "" -#: ../../c-api/typeobj.rst:1916 +#: ../../c-api/typeobj.rst:2040 msgid "" "The self argument is the instance to be initialized; the *args* and *kwds* " "arguments represent positional and keyword arguments of the call to :meth:" "`~object.__init__`." msgstr "" -#: ../../c-api/typeobj.rst:1920 +#: ../../c-api/typeobj.rst:2044 msgid "" "The :c:member:`~PyTypeObject.tp_init` function, if not ``NULL``, is called " "when an instance is created normally by calling its type, after the type's :" @@ -3367,53 +3546,53 @@ msgstr "" "`~PyTypeObject.tp_new` が元の型のサブタイプのインスタンスを返す場合、サブタイ" "プの :c:member:`~PyTypeObject.tp_init` が呼び出されます。" -#: ../../c-api/typeobj.rst:1927 +#: ../../c-api/typeobj.rst:2051 msgid "Returns ``0`` on success, ``-1`` and sets an exception on error." msgstr "" "成功のときには ``0`` を、エラー時には例外をセットして ``-1`` を返します。" -#: ../../c-api/typeobj.rst:1935 +#: ../../c-api/typeobj.rst:2059 msgid "" "For :ref:`static types ` this field does not have a default." msgstr "" -#: ../../c-api/typeobj.rst:1940 +#: ../../c-api/typeobj.rst:2064 msgid "An optional pointer to an instance allocation function." msgstr "オプションのポインタで、インスタンスのメモリ確保関数を指します。" -#: ../../c-api/typeobj.rst:1944 +#: ../../c-api/typeobj.rst:2068 msgid "PyObject *tp_alloc(PyTypeObject *self, Py_ssize_t nitems);" msgstr "" -#: ../../c-api/typeobj.rst:1948 +#: ../../c-api/typeobj.rst:2072 msgid "" -"This field is inherited by static subtypes, but not by dynamic subtypes " -"(subtypes created by a class statement)." +"Static subtypes inherit this slot, which will be :c:func:" +"`PyType_GenericAlloc` if inherited from :class:`object`." msgstr "" -#: ../../c-api/typeobj.rst:1953 -msgid "" -"For dynamic subtypes, this field is always set to :c:func:" -"`PyType_GenericAlloc`, to force a standard heap allocation strategy." +#: ../../c-api/typeobj.rst:2075 ../../c-api/typeobj.rst:2142 +msgid ":ref:`Heap subtypes ` do not inherit this slot." msgstr "" -#: ../../c-api/typeobj.rst:1957 +#: ../../c-api/typeobj.rst:2079 msgid "" -"For static subtypes, :c:data:`PyBaseObject_Type` uses :c:func:" -"`PyType_GenericAlloc`. That is the recommended value for all statically " -"defined types." +"For heap subtypes, this field is always set to :c:func:`PyType_GenericAlloc`." msgstr "" -#: ../../c-api/typeobj.rst:1964 +#: ../../c-api/typeobj.rst:2082 ../../c-api/typeobj.rst:2150 +msgid "For static subtypes, this slot is inherited (see above)." +msgstr "" + +#: ../../c-api/typeobj.rst:2087 msgid "An optional pointer to an instance creation function." msgstr "オプションのポインタで、インスタンス生成関数を指します。" -#: ../../c-api/typeobj.rst:1968 +#: ../../c-api/typeobj.rst:2091 msgid "" "PyObject *tp_new(PyTypeObject *subtype, PyObject *args, PyObject *kwds);" msgstr "" -#: ../../c-api/typeobj.rst:1970 +#: ../../c-api/typeobj.rst:2093 msgid "" "The *subtype* argument is the type of the object being created; the *args* " "and *kwds* arguments represent positional and keyword arguments of the call " @@ -3426,7 +3605,7 @@ msgstr "" "`~PyTypeObject.tp_new` 関数を呼び出すときに使う型と同じである必要はないことに" "注意してください; その型の (無関係ではない) サブタイプのこともあります。" -#: ../../c-api/typeobj.rst:1976 +#: ../../c-api/typeobj.rst:2099 msgid "" "The :c:member:`~PyTypeObject.tp_new` function should call ``subtype-" ">tp_alloc(subtype, nitems)`` to allocate space for the object, and then do " @@ -3445,13 +3624,13 @@ msgstr "" "tp_new` で行い、一方、変更可能な型ではほとんどの初期化を :c:member:" "`~PyTypeObject.tp_init` に回すべきです。" -#: ../../c-api/typeobj.rst:1984 +#: ../../c-api/typeobj.rst:2107 msgid "" "Set the :c:macro:`Py_TPFLAGS_DISALLOW_INSTANTIATION` flag to disallow " "creating instances of the type in Python." msgstr "" -#: ../../c-api/typeobj.rst:1989 +#: ../../c-api/typeobj.rst:2112 msgid "" "This field is inherited by subtypes, except it is not inherited by :ref:" "`static types ` whose :c:member:`~PyTypeObject.tp_base` is " @@ -3461,7 +3640,7 @@ msgstr "" "`~PyTypeObject.tp_base` が ``NULL`` か ``&PyBaseObject_Type`` になっている :" "ref:`静的な型 ` では継承しません。" -#: ../../c-api/typeobj.rst:1995 +#: ../../c-api/typeobj.rst:2118 msgid "" "For :ref:`static types ` this field has no default. This means " "if the slot is defined as ``NULL``, the type cannot be called to create new " @@ -3469,48 +3648,45 @@ msgid "" "factory function." msgstr "" -#: ../../c-api/typeobj.rst:2003 +#: ../../c-api/typeobj.rst:2126 msgid "" "An optional pointer to an instance deallocation function. Its signature is::" msgstr "" "オプションのポインタで、インスタンスのメモリ解放関数を指します。シグネチャは" "以下の通りです::" -#: ../../c-api/typeobj.rst:2005 +#: ../../c-api/typeobj.rst:2128 msgid "void tp_free(void *self);" msgstr "" -#: ../../c-api/typeobj.rst:2007 -msgid "" -"An initializer that is compatible with this signature is :c:func:" -"`PyObject_Free`." -msgstr "このシグネチャと互換性のある初期化子は :c:func:`PyObject_Free` です。" - -#: ../../c-api/typeobj.rst:2011 +#: ../../c-api/typeobj.rst:2130 msgid "" -"This field is inherited by static subtypes, but not by dynamic subtypes " -"(subtypes created by a class statement)" +"This function must free the memory allocated by :c:member:`~PyTypeObject." +"tp_alloc`." msgstr "" -#: ../../c-api/typeobj.rst:2016 +#: ../../c-api/typeobj.rst:2135 msgid "" -"In dynamic subtypes, this field is set to a deallocator suitable to match :c:" -"func:`PyType_GenericAlloc` and the value of the :c:macro:" -"`Py_TPFLAGS_HAVE_GC` flag bit." +"Static subtypes inherit this slot, which will be :c:func:`PyObject_Free` if " +"inherited from :class:`object`. Exception: If the type supports garbage " +"collection (i.e., the :c:macro:`Py_TPFLAGS_HAVE_GC` flag is set in :c:member:" +"`~PyTypeObject.tp_flags`) and it would inherit :c:func:`PyObject_Free`, then " +"this slot is not inherited but instead defaults to :c:func:`PyObject_GC_Del`." msgstr "" -#: ../../c-api/typeobj.rst:2020 +#: ../../c-api/typeobj.rst:2146 msgid "" -"For static subtypes, :c:data:`PyBaseObject_Type` uses :c:func:" -"`PyObject_Free`." +"For :ref:`heap subtypes `, this slot defaults to a deallocator " +"suitable to match :c:func:`PyType_GenericAlloc` and the value of the :c:" +"macro:`Py_TPFLAGS_HAVE_GC` flag." msgstr "" -#: ../../c-api/typeobj.rst:2025 +#: ../../c-api/typeobj.rst:2155 msgid "An optional pointer to a function called by the garbage collector." msgstr "" "オプションのポインタで、ガベージコレクタから呼び出される関数を指します。" -#: ../../c-api/typeobj.rst:2027 +#: ../../c-api/typeobj.rst:2157 msgid "" "The garbage collector needs to know whether a particular object is " "collectible or not. Normally, it is sufficient to look at the object's " @@ -3522,11 +3698,11 @@ msgid "" "instance. The signature is::" msgstr "" -#: ../../c-api/typeobj.rst:2035 +#: ../../c-api/typeobj.rst:2165 msgid "int tp_is_gc(PyObject *self);" msgstr "" -#: ../../c-api/typeobj.rst:2037 +#: ../../c-api/typeobj.rst:2167 msgid "" "(The only example of this are types themselves. The metatype, :c:data:" "`PyType_Type`, defines this function to distinguish between statically and :" @@ -3536,43 +3712,43 @@ msgstr "" "`PyType_Type` は、型のメモリ確保が静的か :ref:`動的 ` かを区別す" "るためにこの関数を定義しています。)" -#: ../../c-api/typeobj.rst:2047 +#: ../../c-api/typeobj.rst:2177 msgid "" "This slot has no default. If this field is ``NULL``, :c:macro:" "`Py_TPFLAGS_HAVE_GC` is used as the functional equivalent." msgstr "" -#: ../../c-api/typeobj.rst:2053 +#: ../../c-api/typeobj.rst:2183 msgid "Tuple of base types." msgstr "基底型からなるタプルです。" -#: ../../c-api/typeobj.rst:2055 ../../c-api/typeobj.rst:2079 +#: ../../c-api/typeobj.rst:2185 ../../c-api/typeobj.rst:2209 msgid "" "This field should be set to ``NULL`` and treated as read-only. Python will " "fill it in when the type is :c:func:`initialized `." msgstr "" -#: ../../c-api/typeobj.rst:2058 +#: ../../c-api/typeobj.rst:2188 msgid "" "For dynamically created classes, the ``Py_tp_bases`` :c:type:`slot " "` can be used instead of the *bases* argument of :c:func:" "`PyType_FromSpecWithBases`. The argument form is preferred." msgstr "" -#: ../../c-api/typeobj.rst:2065 +#: ../../c-api/typeobj.rst:2195 msgid "" "Multiple inheritance does not work well for statically defined types. If you " "set ``tp_bases`` to a tuple, Python will not raise an error, but some slots " "will only be inherited from the first base." msgstr "" -#: ../../c-api/typeobj.rst:2071 ../../c-api/typeobj.rst:2094 -#: ../../c-api/typeobj.rst:2111 ../../c-api/typeobj.rst:2128 -#: ../../c-api/typeobj.rst:2142 +#: ../../c-api/typeobj.rst:2201 ../../c-api/typeobj.rst:2224 +#: ../../c-api/typeobj.rst:2241 ../../c-api/typeobj.rst:2258 +#: ../../c-api/typeobj.rst:2272 msgid "This field is not inherited." msgstr "このフィールドは継承されません。" -#: ../../c-api/typeobj.rst:2076 +#: ../../c-api/typeobj.rst:2206 msgid "" "Tuple containing the expanded set of base types, starting with the type " "itself and ending with :class:`object`, in Method Resolution Order." @@ -3581,7 +3757,7 @@ msgstr "" "じまり、 :class:`object` で終わります。メソッド解決順序 (Method Resolution " "Order) に従って並んでいます。" -#: ../../c-api/typeobj.rst:2084 +#: ../../c-api/typeobj.rst:2214 msgid "" "This field is not inherited; it is calculated fresh by :c:func:" "`PyType_Ready`." @@ -3589,34 +3765,34 @@ msgstr "" "このフィールドは継承されません; フィールドの値は :c:func:`PyType_Ready` で毎" "回計算されます。" -#: ../../c-api/typeobj.rst:2090 +#: ../../c-api/typeobj.rst:2220 msgid "Unused. Internal use only." msgstr "未使用のフィールドです。内部でのみ利用されます。" -#: ../../c-api/typeobj.rst:2099 +#: ../../c-api/typeobj.rst:2229 msgid "" "A collection of subclasses. Internal use only. May be an invalid pointer." msgstr "" -#: ../../c-api/typeobj.rst:2101 +#: ../../c-api/typeobj.rst:2231 msgid "" "To get a list of subclasses, call the Python method :py:meth:`~type." "__subclasses__`." msgstr "" -#: ../../c-api/typeobj.rst:2106 +#: ../../c-api/typeobj.rst:2236 msgid "" "For some types, this field does not hold a valid :c:expr:`PyObject*`. The " "type was changed to :c:expr:`void*` to indicate this." msgstr "" -#: ../../c-api/typeobj.rst:2116 +#: ../../c-api/typeobj.rst:2246 msgid "" "Weak reference list head, for weak references to this type object. Not " "inherited. Internal use only." msgstr "この型オブジェクトに対する弱参照からなるリストの先頭です。" -#: ../../c-api/typeobj.rst:2121 +#: ../../c-api/typeobj.rst:2251 msgid "" "Internals detail: For the static builtin types this is always ``NULL``, even " "if weakrefs are added. Instead, the weakrefs for each are stored on " @@ -3624,82 +3800,246 @@ msgid "" "``_PyObject_GET_WEAKREFS_LISTPTR()`` macro to avoid the distinction." msgstr "" -#: ../../c-api/typeobj.rst:2133 +#: ../../c-api/typeobj.rst:2263 msgid "" "This field is deprecated. Use :c:member:`~PyTypeObject.tp_finalize` instead." msgstr "" "このフィールドは廃止されました。:c:member:`~PyTypeObject.tp_finalize` を代わ" "りに利用してください。" -#: ../../c-api/typeobj.rst:2138 +#: ../../c-api/typeobj.rst:2268 msgid "Used to index into the method cache. Internal use only." msgstr "" "メソッドキャッシュへのインデックスとして使われます。内部使用だけのための関数" "です。" -#: ../../c-api/typeobj.rst:2147 +#: ../../c-api/typeobj.rst:2277 msgid "" -"An optional pointer to an instance finalization function. Its signature is::" +"An optional pointer to an instance finalization function. This is the C " +"implementation of the :meth:`~object.__del__` special method. Its signature " +"is::" msgstr "" -"オプションのポインタで、インスタンスの終了処理関数を指します。シグネチャは以" -"下の通りです::" -#: ../../c-api/typeobj.rst:2149 +#: ../../c-api/typeobj.rst:2281 msgid "void tp_finalize(PyObject *self);" msgstr "" -#: ../../c-api/typeobj.rst:2151 +#: ../../c-api/typeobj.rst:2283 +msgid "" +"The primary purpose of finalization is to perform any non-trivial cleanup " +"that must be performed before the object is destroyed, while the object and " +"any other objects it directly or indirectly references are still in a " +"consistent state. The finalizer is allowed to execute arbitrary Python code." +msgstr "" + +#: ../../c-api/typeobj.rst:2289 +msgid "" +"Before Python automatically finalizes an object, some of the object's direct " +"or indirect referents might have themselves been automatically finalized. " +"However, none of the referents will have been automatically cleared (:c:" +"member:`~PyTypeObject.tp_clear`) yet." +msgstr "" + +#: ../../c-api/typeobj.rst:2294 +msgid "" +"Other non-finalized objects might still be using a finalized object, so the " +"finalizer must leave the object in a sane state (e.g., invariants are still " +"met)." +msgstr "" + +#: ../../c-api/typeobj.rst:2300 +msgid "" +"After Python automatically finalizes an object, Python might start " +"automatically clearing (:c:member:`~PyTypeObject.tp_clear`) the object and " +"its referents (direct and indirect). Cleared objects are not guaranteed to " +"be in a consistent state; a finalized object must be able to tolerate " +"cleared referents." +msgstr "" + +#: ../../c-api/typeobj.rst:2308 +msgid "" +"An object is not guaranteed to be automatically finalized before its " +"destructor (:c:member:`~PyTypeObject.tp_dealloc`) is called. It is " +"recommended to call :c:func:`PyObject_CallFinalizerFromDealloc` at the " +"beginning of :c:member:`!tp_dealloc` to guarantee that the object is always " +"finalized before destruction." +msgstr "" + +#: ../../c-api/typeobj.rst:2316 +msgid "" +"The :c:member:`~PyTypeObject.tp_finalize` function can be called from any " +"thread, although the :term:`GIL` will be held." +msgstr "" + +#: ../../c-api/typeobj.rst:2321 +msgid "" +"The :c:member:`!tp_finalize` function can be called during shutdown, after " +"some global variables have been deleted. See the documentation of the :meth:" +"`~object.__del__` method for details." +msgstr "" + +#: ../../c-api/typeobj.rst:2325 +msgid "" +"When Python finalizes an object, it behaves like the following algorithm:" +msgstr "" + +#: ../../c-api/typeobj.rst:2327 msgid "" -"If :c:member:`~PyTypeObject.tp_finalize` is set, the interpreter calls it " -"once when finalizing an instance. It is called either from the garbage " -"collector (if the instance is part of an isolated reference cycle) or just " -"before the object is deallocated. Either way, it is guaranteed to be called " -"before attempting to break reference cycles, ensuring that it finds the " -"object in a sane state." +"Python might mark the object as *finalized*. Currently, Python always marks " +"objects whose type supports garbage collection (i.e., the :c:macro:" +"`Py_TPFLAGS_HAVE_GC` flag is set in :c:member:`~PyTypeObject.tp_flags`) and " +"never marks other types of objects; this might change in a future version." msgstr "" -":c:member:`~PyTypeObject.tp_finalize` が設定されている場合、インスタンスを" -"ファイナライズするときに、インタプリタがこの関数を1回呼び出します。\n" -"ガベージコレクタ (このインスタンスが孤立した循環参照の一部だった場合) やオブ" -"ジェクトが破棄される直前にもこの関数は呼び出されます。\n" -"どちらの場合でも、循環参照を破壊しようとする前に呼び出されることが保証されて" -"いて、確実にオブジェクトが正常な状態にあるようにします。" -#: ../../c-api/typeobj.rst:2158 +#: ../../c-api/typeobj.rst:2332 msgid "" -":c:member:`~PyTypeObject.tp_finalize` should not mutate the current " -"exception status; therefore, a recommended way to write a non-trivial " -"finalizer is::" +"If the object is not marked as *finalized* and its :c:member:`!tp_finalize` " +"finalizer function is non-``NULL``, the finalizer function is called." msgstr "" -":c:member:`~PyTypeObject.tp_finalize` は現在の例外状態を変更すべきではありま" -"せん; 従って、単純でないファイナライザを書くには次の方法が推奨されます::" -#: ../../c-api/typeobj.rst:2161 +#: ../../c-api/typeobj.rst:2335 +msgid "" +"If the finalizer function was called and the finalizer made the object " +"reachable (i.e., there is a reference to the object and it is not a member " +"of a :term:`cyclic isolate`), then the finalizer is said to have " +"*resurrected* the object. It is unspecified whether the finalizer can also " +"resurrect the object by adding a new reference to the object that does not " +"make it reachable, i.e., the object is (still) a member of a cyclic isolate." +msgstr "" + +#: ../../c-api/typeobj.rst:2342 +msgid "" +"If the finalizer resurrected the object, the object's pending destruction is " +"canceled and the object's *finalized* mark might be removed if present. " +"Currently, Python never removes the *finalized* mark; this might change in a " +"future version." +msgstr "" + +#: ../../c-api/typeobj.rst:2347 +msgid "" +"*Automatic finalization* refers to any finalization performed by Python " +"except via calls to :c:func:`PyObject_CallFinalizer` or :c:func:" +"`PyObject_CallFinalizerFromDealloc`. No guarantees are made about when, if, " +"or how often an object is automatically finalized, except:" +msgstr "" + +#: ../../c-api/typeobj.rst:2352 +msgid "" +"Python will not automatically finalize an object if it is reachable, i.e., " +"there is a reference to it and it is not a member of a :term:`cyclic " +"isolate`." +msgstr "" + +#: ../../c-api/typeobj.rst:2355 +msgid "" +"Python will not automatically finalize an object if finalizing it would not " +"mark the object as *finalized*. Currently, this applies to objects whose " +"type does not support garbage collection, i.e., the :c:macro:" +"`Py_TPFLAGS_HAVE_GC` flag is not set. Such objects can still be manually " +"finalized by calling :c:func:`PyObject_CallFinalizer` or :c:func:" +"`PyObject_CallFinalizerFromDealloc`." +msgstr "" + +#: ../../c-api/typeobj.rst:2361 +msgid "" +"Python will not automatically finalize any two members of a :term:`cyclic " +"isolate` concurrently." +msgstr "" + +#: ../../c-api/typeobj.rst:2363 +msgid "" +"Python will not automatically finalize an object after it has automatically " +"cleared (:c:member:`~PyTypeObject.tp_clear`) the object." +msgstr "" + +#: ../../c-api/typeobj.rst:2365 +msgid "" +"If an object is a member of a :term:`cyclic isolate`, Python will not " +"automatically finalize it after automatically clearing (see :c:member:" +"`~PyTypeObject.tp_clear`) any other member." +msgstr "" + +#: ../../c-api/typeobj.rst:2368 +msgid "" +"Python will automatically finalize every member of a :term:`cyclic isolate` " +"before it automatically clears (see :c:member:`~PyTypeObject.tp_clear`) any " +"of them." +msgstr "" + +#: ../../c-api/typeobj.rst:2371 +msgid "" +"If Python is going to automatically clear an object (:c:member:" +"`~PyTypeObject.tp_clear`), it will automatically finalize the object first." +msgstr "" + +#: ../../c-api/typeobj.rst:2375 +msgid "" +"Python currently only automatically finalizes objects that are members of a :" +"term:`cyclic isolate`, but future versions might finalize objects regularly " +"before their destruction." +msgstr "" + +#: ../../c-api/typeobj.rst:2379 +msgid "" +"To manually finalize an object, do not call this function directly; call :c:" +"func:`PyObject_CallFinalizer` or :c:func:`PyObject_CallFinalizerFromDealloc` " +"instead." +msgstr "" + +#: ../../c-api/typeobj.rst:2383 +msgid "" +":c:member:`~PyTypeObject.tp_finalize` should leave the current exception " +"status unchanged. The recommended way to write a non-trivial finalizer is " +"to back up the exception at the beginning by calling :c:func:" +"`PyErr_GetRaisedException` and restore the exception at the end by calling :" +"c:func:`PyErr_SetRaisedException`. If an exception is encountered in the " +"middle of the finalizer, log and clear it with :c:func:" +"`PyErr_WriteUnraisable` or :c:func:`PyErr_FormatUnraisable`. For example::" +msgstr "" + +#: ../../c-api/typeobj.rst:2392 msgid "" "static void\n" -"local_finalize(PyObject *self)\n" +"foo_finalize(PyObject *self)\n" "{\n" -" /* Save the current exception, if any. */\n" +" // Save the current exception, if any.\n" " PyObject *exc = PyErr_GetRaisedException();\n" "\n" -" /* ... */\n" +" // ...\n" +"\n" +" if (do_something_that_might_raise() != success_indicator) {\n" +" PyErr_WriteUnraisable(self);\n" +" goto done;\n" +" }\n" "\n" -" /* Restore the saved exception. */\n" +"done:\n" +" // Restore the saved exception. This silently discards any exception\n" +" // raised above, so be sure to call PyErr_WriteUnraisable first if\n" +" // necessary.\n" " PyErr_SetRaisedException(exc);\n" "}" msgstr "" -#: ../../c-api/typeobj.rst:2181 +#: ../../c-api/typeobj.rst:2420 msgid "" "Before version 3.8 it was necessary to set the :c:macro:" "`Py_TPFLAGS_HAVE_FINALIZE` flags bit in order for this field to be used. " "This is no longer required." msgstr "" -#: ../../c-api/typeobj.rst:2185 -msgid "\"Safe object finalization\" (:pep:`442`)" -msgstr "\"オブジェクトの安全な終了処理\" (:pep:`442`)" +#: ../../c-api/typeobj.rst:2426 +msgid ":pep:`442`: \"Safe object finalization\"" +msgstr "" + +#: ../../c-api/typeobj.rst:2429 +msgid ":c:func:`PyObject_CallFinalizer`" +msgstr "" + +#: ../../c-api/typeobj.rst:2430 +msgid ":c:func:`PyObject_CallFinalizerFromDealloc`" +msgstr "" -#: ../../c-api/typeobj.rst:2190 +#: ../../c-api/typeobj.rst:2435 msgid "" "A :ref:`vectorcall function ` to use for calls of this type " "object (rather than instances). In other words, ``tp_vectorcall`` can be " @@ -3707,13 +4047,13 @@ msgid "" "of *type*." msgstr "" -#: ../../c-api/typeobj.rst:2195 +#: ../../c-api/typeobj.rst:2440 msgid "" "As with any vectorcall function, if ``tp_vectorcall`` is ``NULL``, the " "*tp_call* protocol (``Py_TYPE(type)->tp_call``) is used instead." msgstr "" -#: ../../c-api/typeobj.rst:2200 +#: ../../c-api/typeobj.rst:2445 msgid "" "The :ref:`vectorcall protocol ` requires that the vectorcall " "function has the same behavior as the corresponding ``tp_call``. This means " @@ -3721,27 +4061,27 @@ msgid "" ">tp_call``." msgstr "" -#: ../../c-api/typeobj.rst:2205 +#: ../../c-api/typeobj.rst:2450 msgid "" "Specifically, if *type* uses the default metaclass, ``type->tp_vectorcall`` " "must behave the same as :c:expr:`PyType_Type->tp_call`, which:" msgstr "" -#: ../../c-api/typeobj.rst:2209 +#: ../../c-api/typeobj.rst:2454 msgid "calls ``type->tp_new``," msgstr "" -#: ../../c-api/typeobj.rst:2211 +#: ../../c-api/typeobj.rst:2456 msgid "" "if the result is a subclass of *type*, calls ``type->tp_init`` on the result " "of ``tp_new``, and" msgstr "" -#: ../../c-api/typeobj.rst:2214 +#: ../../c-api/typeobj.rst:2459 msgid "returns the result of ``tp_new``." msgstr "" -#: ../../c-api/typeobj.rst:2216 +#: ../../c-api/typeobj.rst:2461 msgid "" "Typically, ``tp_vectorcall`` is overridden to optimize this process for " "specific :c:member:`~PyTypeObject.tp_new` and :c:member:`~PyTypeObject." @@ -3750,66 +4090,66 @@ msgid "" "__init__`, respectively)." msgstr "" -#: ../../c-api/typeobj.rst:2227 +#: ../../c-api/typeobj.rst:2472 msgid "This field is never inherited." msgstr "このフィールドは決して継承されません。" -#: ../../c-api/typeobj.rst:2229 +#: ../../c-api/typeobj.rst:2474 msgid "(the field exists since 3.8 but it's only used since 3.9)" msgstr "" "(このフィールドは3.8から存在していますが、3.9以降でしか利用できません)" -#: ../../c-api/typeobj.rst:2234 +#: ../../c-api/typeobj.rst:2479 msgid "Internal. Do not use." msgstr "" -#: ../../c-api/typeobj.rst:2242 +#: ../../c-api/typeobj.rst:2487 msgid "Static Types" msgstr "" -#: ../../c-api/typeobj.rst:2244 +#: ../../c-api/typeobj.rst:2489 msgid "" "Traditionally, types defined in C code are *static*, that is, a static :c:" "type:`PyTypeObject` structure is defined directly in code and initialized " "using :c:func:`PyType_Ready`." msgstr "" -#: ../../c-api/typeobj.rst:2248 +#: ../../c-api/typeobj.rst:2493 msgid "" "This results in types that are limited relative to types defined in Python:" msgstr "" -#: ../../c-api/typeobj.rst:2250 +#: ../../c-api/typeobj.rst:2495 msgid "" "Static types are limited to one base, i.e. they cannot use multiple " "inheritance." msgstr "" -#: ../../c-api/typeobj.rst:2252 +#: ../../c-api/typeobj.rst:2497 msgid "" "Static type objects (but not necessarily their instances) are immutable. It " "is not possible to add or modify the type object's attributes from Python." msgstr "" -#: ../../c-api/typeobj.rst:2254 +#: ../../c-api/typeobj.rst:2499 msgid "" "Static type objects are shared across :ref:`sub-interpreters `, so they should not include any subinterpreter-" "specific state." msgstr "" -#: ../../c-api/typeobj.rst:2258 +#: ../../c-api/typeobj.rst:2503 msgid "" "Also, since :c:type:`PyTypeObject` is only part of the :ref:`Limited API " "` as an opaque struct, any extension modules using static " "types must be compiled for a specific Python minor version." msgstr "" -#: ../../c-api/typeobj.rst:2266 +#: ../../c-api/typeobj.rst:2511 msgid "Heap Types" msgstr "" -#: ../../c-api/typeobj.rst:2268 +#: ../../c-api/typeobj.rst:2513 msgid "" "An alternative to :ref:`static types ` is *heap-allocated " "types*, or *heap types* for short, which correspond closely to classes " @@ -3817,18 +4157,18 @@ msgid "" "`Py_TPFLAGS_HEAPTYPE` flag set." msgstr "" -#: ../../c-api/typeobj.rst:2273 +#: ../../c-api/typeobj.rst:2518 msgid "" "This is done by filling a :c:type:`PyType_Spec` structure and calling :c:" "func:`PyType_FromSpec`, :c:func:`PyType_FromSpecWithBases`, :c:func:" "`PyType_FromModuleAndSpec`, or :c:func:`PyType_FromMetaclass`." msgstr "" -#: ../../c-api/typeobj.rst:2281 +#: ../../c-api/typeobj.rst:2526 msgid "Number Object Structures" msgstr "数値オブジェクト構造体" -#: ../../c-api/typeobj.rst:2288 +#: ../../c-api/typeobj.rst:2533 msgid "" "This structure holds pointers to the functions which an object uses to " "implement the number protocol. Each function is used by the function of " @@ -3839,11 +4179,11 @@ msgstr "" "以下のそれぞれの関数は :ref:`number` で解説されている似た名前の関数から利用さ" "れます。" -#: ../../c-api/typeobj.rst:2294 ../../c-api/typeobj.rst:2618 +#: ../../c-api/typeobj.rst:2539 ../../c-api/typeobj.rst:2863 msgid "Here is the structure definition::" msgstr "以下は構造体の定義です::" -#: ../../c-api/typeobj.rst:2296 +#: ../../c-api/typeobj.rst:2541 msgid "" "typedef struct {\n" " binaryfunc nb_add;\n" @@ -3889,7 +4229,7 @@ msgid "" "} PyNumberMethods;" msgstr "" -#: ../../c-api/typeobj.rst:2341 +#: ../../c-api/typeobj.rst:2586 msgid "" "Binary and ternary functions must check the type of all their operands, and " "implement the necessary conversions (at least one of the operands is an " @@ -3904,18 +4244,18 @@ msgstr "" "ば、二項関数と三項関数は ``Py_NotImplemented`` を返さなければならず、他のエ" "ラーが起こった場合は、``NULL`` を返して例外を設定しなければなりません。" -#: ../../c-api/typeobj.rst:2350 +#: ../../c-api/typeobj.rst:2595 msgid "" "The :c:member:`~PyNumberMethods.nb_reserved` field should always be " "``NULL``. It was previously called :c:member:`!nb_long`, and was renamed in " "Python 3.0.1." msgstr "" -#: ../../c-api/typeobj.rst:2395 +#: ../../c-api/typeobj.rst:2640 msgid "Mapping Object Structures" msgstr "マップオブジェクト構造体" -#: ../../c-api/typeobj.rst:2402 +#: ../../c-api/typeobj.rst:2647 msgid "" "This structure holds pointers to the functions which an object uses to " "implement the mapping protocol. It has three members:" @@ -3924,7 +4264,7 @@ msgstr "" "持しています。\n" "以下の3つのメンバを持っています:" -#: ../../c-api/typeobj.rst:2407 +#: ../../c-api/typeobj.rst:2652 msgid "" "This function is used by :c:func:`PyMapping_Size` and :c:func:" "`PyObject_Size`, and has the same signature. This slot may be set to " @@ -3934,7 +4274,7 @@ msgstr "" "それらと同じシグネチャを持っています。オブジェクトが定義された長さを持たない" "場合は、このスロットは ``NULL`` に設定されることがあります。" -#: ../../c-api/typeobj.rst:2413 +#: ../../c-api/typeobj.rst:2658 msgid "" "This function is used by :c:func:`PyObject_GetItem` and :c:func:" "`PySequence_GetSlice`, and has the same signature as :c:func:`!" @@ -3946,7 +4286,7 @@ msgstr "" "スロットは :c:func:`PyMapping_Check` が ``1`` を返すためには必要で、そうでな" "ければ ``NULL`` の場合があります。" -#: ../../c-api/typeobj.rst:2421 +#: ../../c-api/typeobj.rst:2666 msgid "" "This function is used by :c:func:`PyObject_SetItem`, :c:func:" "`PyObject_DelItem`, :c:func:`PySequence_SetSlice` and :c:func:" @@ -3956,11 +4296,11 @@ msgid "" "deletion." msgstr "" -#: ../../c-api/typeobj.rst:2432 +#: ../../c-api/typeobj.rst:2677 msgid "Sequence Object Structures" msgstr "シーケンスオブジェクト構造体" -#: ../../c-api/typeobj.rst:2439 +#: ../../c-api/typeobj.rst:2684 msgid "" "This structure holds pointers to the functions which an object uses to " "implement the sequence protocol." @@ -3968,7 +4308,7 @@ msgstr "" "この構造体はシーケンス型プロトコルを実装するために使われる関数群へのポインタ" "を保持しています。" -#: ../../c-api/typeobj.rst:2444 +#: ../../c-api/typeobj.rst:2689 msgid "" "This function is used by :c:func:`PySequence_Size` and :c:func:" "`PyObject_Size`, and has the same signature. It is also used for handling " @@ -3976,7 +4316,7 @@ msgid "" "member:`~PySequenceMethods.sq_ass_item` slots." msgstr "" -#: ../../c-api/typeobj.rst:2451 +#: ../../c-api/typeobj.rst:2696 msgid "" "This function is used by :c:func:`PySequence_Concat` and has the same " "signature. It is also used by the ``+`` operator, after trying the numeric " @@ -3986,7 +4326,7 @@ msgstr "" "す。また、 ``+`` 演算子でも、 :c:member:`~PyNumberMethods.nb_add` スロットに" "よる数値加算を試した後に利用されます。" -#: ../../c-api/typeobj.rst:2457 +#: ../../c-api/typeobj.rst:2702 msgid "" "This function is used by :c:func:`PySequence_Repeat` and has the same " "signature. It is also used by the ``*`` operator, after trying numeric " @@ -3996,7 +4336,7 @@ msgstr "" "す。また、 ``*`` 演算でも、 :c:member:`~PyNumberMethods.nb_multiply` スロット" "による数値乗算を試したあとに利用されます。" -#: ../../c-api/typeobj.rst:2463 +#: ../../c-api/typeobj.rst:2708 msgid "" "This function is used by :c:func:`PySequence_GetItem` and has the same " "signature. It is also used by :c:func:`PyObject_GetItem`, after trying the " @@ -4005,7 +4345,7 @@ msgid "" "``1``, it can be ``NULL`` otherwise." msgstr "" -#: ../../c-api/typeobj.rst:2469 +#: ../../c-api/typeobj.rst:2714 msgid "" "Negative indexes are handled as follows: if the :c:member:" "`~PySequenceMethods.sq_length` slot is filled, it is called and the sequence " @@ -4014,7 +4354,7 @@ msgid "" "index is passed as is to the function." msgstr "" -#: ../../c-api/typeobj.rst:2476 +#: ../../c-api/typeobj.rst:2721 msgid "" "This function is used by :c:func:`PySequence_SetItem` and has the same " "signature. It is also used by :c:func:`PyObject_SetItem` and :c:func:" @@ -4023,7 +4363,7 @@ msgid "" "``NULL`` if the object does not support item assignment and deletion." msgstr "" -#: ../../c-api/typeobj.rst:2485 +#: ../../c-api/typeobj.rst:2730 msgid "" "This function may be used by :c:func:`PySequence_Contains` and has the same " "signature. This slot may be left to ``NULL``, in this case :c:func:`!" @@ -4034,7 +4374,7 @@ msgstr "" "PySequence_Contains` はシンプルにマッチするオブジェクトを見つけるまでシーケン" "スを巡回します。" -#: ../../c-api/typeobj.rst:2492 +#: ../../c-api/typeobj.rst:2737 msgid "" "This function is used by :c:func:`PySequence_InPlaceConcat` and has the same " "signature. It should modify its first operand, and return it. This slot " @@ -4044,7 +4384,7 @@ msgid "" "c:member:`~PyNumberMethods.nb_inplace_add` slot." msgstr "" -#: ../../c-api/typeobj.rst:2501 +#: ../../c-api/typeobj.rst:2746 msgid "" "This function is used by :c:func:`PySequence_InPlaceRepeat` and has the same " "signature. It should modify its first operand, and return it. This slot " @@ -4054,11 +4394,11 @@ msgid "" "via the :c:member:`~PyNumberMethods.nb_inplace_multiply` slot." msgstr "" -#: ../../c-api/typeobj.rst:2512 +#: ../../c-api/typeobj.rst:2757 msgid "Buffer Object Structures" msgstr "バッファオブジェクト構造体 (buffer object structure)" -#: ../../c-api/typeobj.rst:2520 +#: ../../c-api/typeobj.rst:2765 msgid "" "This structure holds pointers to the functions required by the :ref:`Buffer " "protocol `. The protocol defines how an exporter object can " @@ -4069,17 +4409,17 @@ msgstr "" "そのプロトコルは、エクスポーターオブジェクトが如何にして、その内部データをコ" "ンシューマオブジェクトに渡すかを定義します。" -#: ../../c-api/typeobj.rst:2526 ../../c-api/typeobj.rst:2575 -#: ../../c-api/typeobj.rst:2629 ../../c-api/typeobj.rst:2640 -#: ../../c-api/typeobj.rst:2652 ../../c-api/typeobj.rst:2662 +#: ../../c-api/typeobj.rst:2771 ../../c-api/typeobj.rst:2820 +#: ../../c-api/typeobj.rst:2874 ../../c-api/typeobj.rst:2885 +#: ../../c-api/typeobj.rst:2897 ../../c-api/typeobj.rst:2907 msgid "The signature of this function is::" msgstr "この関数のシグネチャは以下の通りです::" -#: ../../c-api/typeobj.rst:2528 +#: ../../c-api/typeobj.rst:2773 msgid "int (PyObject *exporter, Py_buffer *view, int flags);" msgstr "" -#: ../../c-api/typeobj.rst:2530 +#: ../../c-api/typeobj.rst:2775 msgid "" "Handle a request to *exporter* to fill in *view* as specified by *flags*. " "Except for point (3), an implementation of this function MUST take these " @@ -4089,32 +4429,32 @@ msgstr "" "求を処理します。ステップ(3) を除いて、この関数の実装では以下のステップを行わ" "なければなりません:" -#: ../../c-api/typeobj.rst:2534 +#: ../../c-api/typeobj.rst:2779 msgid "" "Check if the request can be met. If not, raise :exc:`BufferError`, set :c:" "expr:`view->obj` to ``NULL`` and return ``-1``." msgstr "" -#: ../../c-api/typeobj.rst:2537 +#: ../../c-api/typeobj.rst:2782 msgid "Fill in the requested fields." msgstr "要求されたフィールドを埋めます。" -#: ../../c-api/typeobj.rst:2539 +#: ../../c-api/typeobj.rst:2784 msgid "Increment an internal counter for the number of exports." msgstr "エクスポートした回数を保持する内部カウンタをインクリメントします。" -#: ../../c-api/typeobj.rst:2541 +#: ../../c-api/typeobj.rst:2786 msgid "" "Set :c:expr:`view->obj` to *exporter* and increment :c:expr:`view->obj`." msgstr "" ":c:expr:`view->obj` に *exporter* を設定し、 :c:expr:`view->obj` をインクリメ" "ントします。" -#: ../../c-api/typeobj.rst:2543 +#: ../../c-api/typeobj.rst:2788 msgid "Return ``0``." msgstr "``0`` を返します。" -#: ../../c-api/typeobj.rst:2545 +#: ../../c-api/typeobj.rst:2790 msgid "" "If *exporter* is part of a chain or tree of buffer providers, two main " "schemes can be used:" @@ -4122,7 +4462,7 @@ msgstr "" "*exporter* がバッファプロバイダのチェインかツリーの一部であれば、2つの主要な" "方式が使用できます:" -#: ../../c-api/typeobj.rst:2548 +#: ../../c-api/typeobj.rst:2793 msgid "" "Re-export: Each member of the tree acts as the exporting object and sets :c:" "expr:`view->obj` to a new reference to itself." @@ -4130,7 +4470,7 @@ msgstr "" "再エクスポート: ツリーの各要素がエクスポートされるオブジェクトとして振る舞" "い、自身への新しい参照を :c:expr:`view->obj` へセットします。" -#: ../../c-api/typeobj.rst:2551 +#: ../../c-api/typeobj.rst:2796 msgid "" "Redirect: The buffer request is redirected to the root object of the tree. " "Here, :c:expr:`view->obj` will be a new reference to the root object." @@ -4139,7 +4479,7 @@ msgstr "" "す。ここでは、 :c:expr:`view->obj` はルートオブジェクトへの新しい参照になりま" "す。" -#: ../../c-api/typeobj.rst:2555 +#: ../../c-api/typeobj.rst:2800 msgid "" "The individual fields of *view* are described in section :ref:`Buffer " "structure `, the rules how an exporter must react to " @@ -4150,7 +4490,7 @@ msgstr "" "明されており、エクスポートが特定の要求に対しどう対応しなければならないかの規" "則は、 :ref:`バッファ要求のタイプ ` の節にあります。" -#: ../../c-api/typeobj.rst:2560 +#: ../../c-api/typeobj.rst:2805 msgid "" "All memory pointed to in the :c:type:`Py_buffer` structure belongs to the " "exporter and must remain valid until there are no consumers left. :c:member:" @@ -4164,7 +4504,7 @@ msgstr "" "strides` 、 :c:member:`~Py_buffer.suboffsets` 、 :c:member:`~Py_buffer." "internal` はコンシューマからは読み出し専用です。" -#: ../../c-api/typeobj.rst:2567 +#: ../../c-api/typeobj.rst:2812 msgid "" ":c:func:`PyBuffer_FillInfo` provides an easy way of exposing a simple bytes " "buffer while dealing correctly with all request types." @@ -4172,7 +4512,7 @@ msgstr "" ":c:func:`PyBuffer_FillInfo` は、全てのリクエストタイプを正しく扱う際に、単純" "なバイトバッファを公開する簡単な方法を提供します。" -#: ../../c-api/typeobj.rst:2570 +#: ../../c-api/typeobj.rst:2815 msgid "" ":c:func:`PyObject_GetBuffer` is the interface for the consumer that wraps " "this function." @@ -4180,11 +4520,11 @@ msgstr "" ":c:func:`PyObject_GetBuffer` は、この関数をラップするコンシューマ向けのイン" "ターフェースです。" -#: ../../c-api/typeobj.rst:2577 +#: ../../c-api/typeobj.rst:2822 msgid "void (PyObject *exporter, Py_buffer *view);" msgstr "" -#: ../../c-api/typeobj.rst:2579 +#: ../../c-api/typeobj.rst:2824 msgid "" "Handle a request to release the resources of the buffer. If no resources " "need to be released, :c:member:`PyBufferProcs.bf_releasebuffer` may be " @@ -4196,16 +4536,16 @@ msgstr "" "構いません。そうでない場合は、この関数の標準的な実装は、以下の任意の処理手順 " "(optional step) を行います:" -#: ../../c-api/typeobj.rst:2584 +#: ../../c-api/typeobj.rst:2829 msgid "Decrement an internal counter for the number of exports." msgstr "エクスポートした回数を保持する内部カウンタをデクリメントします。" -#: ../../c-api/typeobj.rst:2586 +#: ../../c-api/typeobj.rst:2831 msgid "If the counter is ``0``, free all memory associated with *view*." msgstr "" "カウンタが ``0`` の場合は、*view* に関連付けられた全てのメモリを解放します。" -#: ../../c-api/typeobj.rst:2588 +#: ../../c-api/typeobj.rst:2833 msgid "" "The exporter MUST use the :c:member:`~Py_buffer.internal` field to keep " "track of buffer-specific resources. This field is guaranteed to remain " @@ -4217,7 +4557,7 @@ msgstr "" "コンシューマが *view* 引数としてオリジナルのバッファのコピーを渡しているであ" "ろう間、変わらないことが保証されています。" -#: ../../c-api/typeobj.rst:2594 +#: ../../c-api/typeobj.rst:2839 msgid "" "This function MUST NOT decrement :c:expr:`view->obj`, since that is done " "automatically in :c:func:`PyBuffer_Release` (this scheme is useful for " @@ -4227,7 +4567,7 @@ msgstr "" "は :c:func:`PyBuffer_Release` で自動的に行われるからです(この方式は参照の循環" "を防ぐのに有用です)。" -#: ../../c-api/typeobj.rst:2599 +#: ../../c-api/typeobj.rst:2844 msgid "" ":c:func:`PyBuffer_Release` is the interface for the consumer that wraps this " "function." @@ -4235,11 +4575,11 @@ msgstr "" ":c:func:`PyBuffer_Release` は、この関数をラップするコンシューマ向けのインター" "フェースです。" -#: ../../c-api/typeobj.rst:2607 +#: ../../c-api/typeobj.rst:2852 msgid "Async Object Structures" msgstr "async オブジェクト構造体" -#: ../../c-api/typeobj.rst:2615 +#: ../../c-api/typeobj.rst:2860 msgid "" "This structure holds pointers to the functions required to implement :term:" "`awaitable` and :term:`asynchronous iterator` objects." @@ -4247,7 +4587,7 @@ msgstr "" "この構造体は :term:`awaitable` オブジェクトと :term:`asynchronous iterator` " "オブジェクトを実装するのに必要な関数へのポインタを保持しています。" -#: ../../c-api/typeobj.rst:2620 +#: ../../c-api/typeobj.rst:2865 msgid "" "typedef struct {\n" " unaryfunc am_await;\n" @@ -4257,11 +4597,11 @@ msgid "" "} PyAsyncMethods;" msgstr "" -#: ../../c-api/typeobj.rst:2631 +#: ../../c-api/typeobj.rst:2876 msgid "PyObject *am_await(PyObject *self);" msgstr "" -#: ../../c-api/typeobj.rst:2633 +#: ../../c-api/typeobj.rst:2878 msgid "" "The returned object must be an :term:`iterator`, i.e. :c:func:`PyIter_Check` " "must return ``1`` for it." @@ -4270,24 +4610,24 @@ msgstr "" "つまりこのオブジェクトに対して :c:func:`PyIter_Check` が ``1`` を返さなければ" "なりません。" -#: ../../c-api/typeobj.rst:2636 +#: ../../c-api/typeobj.rst:2881 msgid "" "This slot may be set to ``NULL`` if an object is not an :term:`awaitable`." msgstr "" "オブジェクトが :term:`awaitable` でない場合、このスロットを ``NULL`` に設定し" "ます。" -#: ../../c-api/typeobj.rst:2642 +#: ../../c-api/typeobj.rst:2887 msgid "PyObject *am_aiter(PyObject *self);" msgstr "" -#: ../../c-api/typeobj.rst:2644 +#: ../../c-api/typeobj.rst:2889 msgid "" "Must return an :term:`asynchronous iterator` object. See :meth:`~object." "__anext__` for details." msgstr "" -#: ../../c-api/typeobj.rst:2647 +#: ../../c-api/typeobj.rst:2892 msgid "" "This slot may be set to ``NULL`` if an object does not implement " "asynchronous iteration protocol." @@ -4295,30 +4635,30 @@ msgstr "" "オブジェクトが非同期反復処理のプロトコルを実装していない場合、このスロットを " "``NULL`` に設定します。" -#: ../../c-api/typeobj.rst:2654 +#: ../../c-api/typeobj.rst:2899 msgid "PyObject *am_anext(PyObject *self);" msgstr "" -#: ../../c-api/typeobj.rst:2656 +#: ../../c-api/typeobj.rst:2901 msgid "" "Must return an :term:`awaitable` object. See :meth:`~object.__anext__` for " "details. This slot may be set to ``NULL``." msgstr "" -#: ../../c-api/typeobj.rst:2664 +#: ../../c-api/typeobj.rst:2909 msgid "PySendResult am_send(PyObject *self, PyObject *arg, PyObject **result);" msgstr "" -#: ../../c-api/typeobj.rst:2666 +#: ../../c-api/typeobj.rst:2911 msgid "" "See :c:func:`PyIter_Send` for details. This slot may be set to ``NULL``." msgstr "" -#: ../../c-api/typeobj.rst:2675 +#: ../../c-api/typeobj.rst:2920 msgid "Slot Type typedefs" msgstr "Slot Type typedefs" -#: ../../c-api/typeobj.rst:2679 +#: ../../c-api/typeobj.rst:2924 msgid "" "The purpose of this function is to separate memory allocation from memory " "initialization. It should return a pointer to a block of memory of adequate " @@ -4332,7 +4672,7 @@ msgid "" "length of the block should be :c:member:`~PyTypeObject.tp_basicsize`." msgstr "" -#: ../../c-api/typeobj.rst:2689 +#: ../../c-api/typeobj.rst:2934 msgid "" "This function should not do any other instance initialization, not even to " "allocate additional memory; that should be done by :c:member:`~PyTypeObject." @@ -4342,27 +4682,27 @@ msgstr "" "割り当てすらも行ってはなりません。そのような処理は :c:member:`~PyTypeObject." "tp_new` で行われるべきです。" -#: ../../c-api/typeobj.rst:2696 +#: ../../c-api/typeobj.rst:2941 msgid "See :c:member:`~PyTypeObject.tp_free`." msgstr ":c:member:`~PyTypeObject.tp_free` を参照してください。" -#: ../../c-api/typeobj.rst:2700 +#: ../../c-api/typeobj.rst:2945 msgid "See :c:member:`~PyTypeObject.tp_new`." msgstr ":c:member:`~PyTypeObject.tp_new` を参照してください。" -#: ../../c-api/typeobj.rst:2704 +#: ../../c-api/typeobj.rst:2949 msgid "See :c:member:`~PyTypeObject.tp_init`." msgstr ":c:member:`~PyTypeObject.tp_init` を参照してください。" -#: ../../c-api/typeobj.rst:2708 +#: ../../c-api/typeobj.rst:2953 msgid "See :c:member:`~PyTypeObject.tp_repr`." msgstr ":c:member:`~PyTypeObject.tp_repr` を参照してください。" -#: ../../c-api/typeobj.rst:2712 ../../c-api/typeobj.rst:2721 +#: ../../c-api/typeobj.rst:2957 ../../c-api/typeobj.rst:2966 msgid "Return the value of the named attribute for the object." msgstr "オブジェクトの属性の値を返します。" -#: ../../c-api/typeobj.rst:2716 ../../c-api/typeobj.rst:2727 +#: ../../c-api/typeobj.rst:2961 ../../c-api/typeobj.rst:2972 msgid "" "Set the value of the named attribute for the object. The value argument is " "set to ``NULL`` to delete the attribute." @@ -4370,47 +4710,47 @@ msgstr "" "オブジェクトの属性に値を設定します。属性を削除するには、 value (実) 引数に " "``NULL`` を設定します。" -#: ../../c-api/typeobj.rst:2723 +#: ../../c-api/typeobj.rst:2968 msgid "See :c:member:`~PyTypeObject.tp_getattro`." msgstr ":c:member:`~PyTypeObject.tp_getattro` を参照してください。" -#: ../../c-api/typeobj.rst:2730 +#: ../../c-api/typeobj.rst:2975 msgid "See :c:member:`~PyTypeObject.tp_setattro`." msgstr ":c:member:`~PyTypeObject.tp_setattro` を参照してください。" -#: ../../c-api/typeobj.rst:2734 +#: ../../c-api/typeobj.rst:2979 msgid "See :c:member:`~PyTypeObject.tp_descr_get`." msgstr ":c:member:`~PyTypeObject.tp_descr_get` を参照してください。" -#: ../../c-api/typeobj.rst:2738 +#: ../../c-api/typeobj.rst:2983 msgid "See :c:member:`~PyTypeObject.tp_descr_set`." msgstr ":c:member:`~PyTypeObject.tp_descr_set` を参照してください。" -#: ../../c-api/typeobj.rst:2742 +#: ../../c-api/typeobj.rst:2987 msgid "See :c:member:`~PyTypeObject.tp_hash`." msgstr ":c:member:`~PyTypeObject.tp_hash` を参照してください。" -#: ../../c-api/typeobj.rst:2746 +#: ../../c-api/typeobj.rst:2991 msgid "See :c:member:`~PyTypeObject.tp_richcompare`." msgstr ":c:member:`~PyTypeObject.tp_richcompare` を参照してください。" -#: ../../c-api/typeobj.rst:2750 +#: ../../c-api/typeobj.rst:2995 msgid "See :c:member:`~PyTypeObject.tp_iter`." msgstr ":c:member:`~PyTypeObject.tp_iter` を参照してください。" -#: ../../c-api/typeobj.rst:2754 +#: ../../c-api/typeobj.rst:2999 msgid "See :c:member:`~PyTypeObject.tp_iternext`." msgstr ":c:member:`~PyTypeObject.tp_iternext` を参照してください。" -#: ../../c-api/typeobj.rst:2768 +#: ../../c-api/typeobj.rst:3013 msgid "See :c:member:`~PyAsyncMethods.am_send`." msgstr ":c:member:`~PyAsyncMethods.am_send` を参照してください。" -#: ../../c-api/typeobj.rst:2784 +#: ../../c-api/typeobj.rst:3029 msgid "Examples" msgstr "使用例" -#: ../../c-api/typeobj.rst:2786 +#: ../../c-api/typeobj.rst:3031 msgid "" "The following are simple examples of Python type definitions. They include " "common usage you may encounter. Some demonstrate tricky corner cases. For " @@ -4422,11 +4762,11 @@ msgstr "" "ケースを実演しています。より多くの例や実践的な情報、チュートリアルが必要な" "ら、:ref:`defining-new-types` や :ref:`new-types-topics` を参照してください。" -#: ../../c-api/typeobj.rst:2791 +#: ../../c-api/typeobj.rst:3036 msgid "A basic :ref:`static type `::" msgstr "" -#: ../../c-api/typeobj.rst:2793 +#: ../../c-api/typeobj.rst:3038 msgid "" "typedef struct {\n" " PyObject_HEAD\n" @@ -4444,7 +4784,7 @@ msgid "" "};" msgstr "" -#: ../../c-api/typeobj.rst:2808 +#: ../../c-api/typeobj.rst:3053 msgid "" "You may also find older code (especially in the CPython code base) with a " "more verbose initializer::" @@ -4452,7 +4792,7 @@ msgstr "" "より冗長な初期化子を用いた古いコードを(特にCPythonのコードベース中で)見かけ" "ることがあるかもしれません::" -#: ../../c-api/typeobj.rst:2811 +#: ../../c-api/typeobj.rst:3056 msgid "" "static PyTypeObject MyObject_Type = {\n" " PyVarObject_HEAD_INIT(NULL, 0)\n" @@ -4496,11 +4836,11 @@ msgid "" "};" msgstr "" -#: ../../c-api/typeobj.rst:2852 +#: ../../c-api/typeobj.rst:3097 msgid "A type that supports weakrefs, instance dicts, and hashing::" msgstr "弱参照やインスタンス辞書、ハッシュをサポートする型::" -#: ../../c-api/typeobj.rst:2854 +#: ../../c-api/typeobj.rst:3099 msgid "" "typedef struct {\n" " PyObject_HEAD\n" @@ -4526,14 +4866,14 @@ msgid "" "};" msgstr "" -#: ../../c-api/typeobj.rst:2877 +#: ../../c-api/typeobj.rst:3122 msgid "" "A str subclass that cannot be subclassed and cannot be called to create " "instances (e.g. uses a separate factory func) using :c:macro:" "`Py_TPFLAGS_DISALLOW_INSTANTIATION` flag::" msgstr "" -#: ../../c-api/typeobj.rst:2881 +#: ../../c-api/typeobj.rst:3126 msgid "" "typedef struct {\n" " PyUnicodeObject raw;\n" @@ -4551,12 +4891,12 @@ msgid "" "};" msgstr "" -#: ../../c-api/typeobj.rst:2896 +#: ../../c-api/typeobj.rst:3141 msgid "" "The simplest :ref:`static type ` with fixed-length instances::" msgstr "" -#: ../../c-api/typeobj.rst:2898 +#: ../../c-api/typeobj.rst:3143 msgid "" "typedef struct {\n" " PyObject_HEAD\n" @@ -4568,13 +4908,13 @@ msgid "" "};" msgstr "" -#: ../../c-api/typeobj.rst:2907 +#: ../../c-api/typeobj.rst:3152 msgid "" "The simplest :ref:`static type ` with variable-length " "instances::" msgstr "" -#: ../../c-api/typeobj.rst:2909 +#: ../../c-api/typeobj.rst:3154 msgid "" "typedef struct {\n" " PyObject_VAR_HEAD\n" @@ -4589,14 +4929,14 @@ msgid "" "};" msgstr "" -#: ../../c-api/typeobj.rst:847 ../../c-api/typeobj.rst:912 +#: ../../c-api/typeobj.rst:893 ../../c-api/typeobj.rst:958 msgid "built-in function" msgstr "組み込み関数" -#: ../../c-api/typeobj.rst:847 +#: ../../c-api/typeobj.rst:893 msgid "repr" msgstr "repr" -#: ../../c-api/typeobj.rst:912 +#: ../../c-api/typeobj.rst:958 msgid "hash" msgstr "hash" diff --git a/c-api/unicode.po b/c-api/unicode.po index 4b429bb63..f73dc525d 100644 --- a/c-api/unicode.po +++ b/c-api/unicode.po @@ -15,15 +15,15 @@ msgid "" msgstr "" "Project-Id-Version: Python 3.14\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2025-05-08 02:53-0300\n" +"POT-Creation-Date: 2025-05-16 14:19+0000\n" "PO-Revision-Date: 2021-06-28 00:50+0000\n" "Last-Translator: 石井明久, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../c-api/unicode.rst:6 @@ -997,25 +997,34 @@ msgstr "" #: ../../c-api/unicode.rst:650 msgid "" +"Return a mapping suitable for decoding a custom single-byte encoding. Given " +"a Unicode string *string* of up to 256 characters representing an encoding " +"table, returns either a compact internal mapping object or a dictionary " +"mapping character ordinals to byte values. Raises a :exc:`TypeError` and " +"return ``NULL`` on invalid input." +msgstr "" + +#: ../../c-api/unicode.rst:661 +msgid "" "Return the name of the default string encoding, ``\"utf-8\"``. See :func:" "`sys.getdefaultencoding`." msgstr "" -#: ../../c-api/unicode.rst:653 +#: ../../c-api/unicode.rst:664 msgid "" "The returned string does not need to be freed, and is valid until " "interpreter shutdown." msgstr "" -#: ../../c-api/unicode.rst:659 +#: ../../c-api/unicode.rst:670 msgid "Return the length of the Unicode object, in code points." msgstr "Unicode オブジェクトの長さをコードポイントで返します。" -#: ../../c-api/unicode.rst:661 +#: ../../c-api/unicode.rst:672 msgid "On error, set an exception and return ``-1``." msgstr "" -#: ../../c-api/unicode.rst:672 +#: ../../c-api/unicode.rst:683 msgid "" "Copy characters from one Unicode object into another. This function " "performs character conversion when necessary and falls back to :c:func:`!" @@ -1028,38 +1037,38 @@ msgstr "" "失敗のときには ``-1`` を返し、例外を設定します。そうでない場合は、コピーした" "文字数を返します。" -#: ../../c-api/unicode.rst:677 ../../c-api/unicode.rst:707 -#: ../../c-api/unicode.rst:727 +#: ../../c-api/unicode.rst:688 ../../c-api/unicode.rst:718 +#: ../../c-api/unicode.rst:738 msgid "" "The string must not have been “used” yet. See :c:func:`PyUnicode_New` for " "details." msgstr "" -#: ../../c-api/unicode.rst:685 +#: ../../c-api/unicode.rst:696 msgid "" "Resize a Unicode object *\\*unicode* to the new *length* in code points." msgstr "" -#: ../../c-api/unicode.rst:687 +#: ../../c-api/unicode.rst:698 msgid "" "Try to resize the string in place (which is usually faster than allocating a " "new string and copying characters), or create a new string." msgstr "" -#: ../../c-api/unicode.rst:690 +#: ../../c-api/unicode.rst:701 msgid "" "*\\*unicode* is modified to point to the new (resized) object and ``0`` is " "returned on success. Otherwise, ``-1`` is returned and an exception is set, " "and *\\*unicode* is left untouched." msgstr "" -#: ../../c-api/unicode.rst:694 +#: ../../c-api/unicode.rst:705 msgid "" "The function doesn't check string content, the result may not be a string in " "canonical representation." msgstr "" -#: ../../c-api/unicode.rst:701 +#: ../../c-api/unicode.rst:712 msgid "" "Fill a string with a character: write *fill_char* into ``unicode[start:" "start+length]``." @@ -1067,7 +1076,7 @@ msgstr "" "文字列を文字で埋めます: ``unicode[start:start+length]`` で *fill_char* を埋め" "ることになります。" -#: ../../c-api/unicode.rst:704 +#: ../../c-api/unicode.rst:715 msgid "" "Fail if *fill_char* is bigger than the string maximum character, or if the " "string has more than 1 reference." @@ -1075,20 +1084,20 @@ msgstr "" "*fill_char* が文字列の最大文字よりも大きい場合や、文字列2つ以上の参照を持って" "た場合は失敗します。" -#: ../../c-api/unicode.rst:710 +#: ../../c-api/unicode.rst:721 msgid "" "Return the number of written character, or return ``-1`` and raise an " "exception on error." msgstr "" "書き込んだ文字数を返すか、失敗のときには ``-1`` を返し例外を送出します。" -#: ../../c-api/unicode.rst:719 +#: ../../c-api/unicode.rst:730 msgid "" "Write a *character* to the string *unicode* at the zero-based *index*. " "Return ``0`` on success, ``-1`` on error with an exception set." msgstr "" -#: ../../c-api/unicode.rst:722 +#: ../../c-api/unicode.rst:733 msgid "" "This function checks that *unicode* is a Unicode object, that the index is " "not out of bounds, and that the object's reference count is one). See :c:" @@ -1096,7 +1105,7 @@ msgid "" "your responsibility." msgstr "" -#: ../../c-api/unicode.rst:735 +#: ../../c-api/unicode.rst:746 msgid "" "Read a character from a string. This function checks that *unicode* is a " "Unicode object and the index is not out of bounds, in contrast to :c:func:" @@ -1107,18 +1116,18 @@ msgstr "" "は *unicode* が Unicode オブジェクトであること、インデックスが範囲内であるこ" "とをチェックします。" -#: ../../c-api/unicode.rst:739 +#: ../../c-api/unicode.rst:750 msgid "Return character on success, ``-1`` on error with an exception set." msgstr "" -#: ../../c-api/unicode.rst:747 +#: ../../c-api/unicode.rst:758 msgid "" "Return a substring of *unicode*, from character index *start* (included) to " "character index *end* (excluded). Negative indices are not supported. On " "error, set an exception and return ``NULL``." msgstr "" -#: ../../c-api/unicode.rst:757 +#: ../../c-api/unicode.rst:768 msgid "" "Copy the string *unicode* into a UCS4 buffer, including a null character, if " "*copy_null* is set. Returns ``NULL`` and sets an exception on error (in " @@ -1126,7 +1135,7 @@ msgid "" "*unicode*). *buffer* is returned on success." msgstr "" -#: ../../c-api/unicode.rst:767 +#: ../../c-api/unicode.rst:778 msgid "" "Copy the string *unicode* into a new UCS4 buffer that is allocated using :c:" "func:`PyMem_Malloc`. If this fails, ``NULL`` is returned with a :exc:" @@ -1138,11 +1147,11 @@ msgstr "" "これが失敗した場合は、 ``NULL`` を返し :exc:`MemoryError` をセットします。\n" "返されたバッファは必ず null コードポイントが追加されています。" -#: ../../c-api/unicode.rst:776 +#: ../../c-api/unicode.rst:787 msgid "Locale Encoding" msgstr "ロケールエンコーディング" -#: ../../c-api/unicode.rst:778 +#: ../../c-api/unicode.rst:789 msgid "" "The current locale encoding can be used to decode text from the operating " "system." @@ -1150,7 +1159,7 @@ msgstr "" "現在のロケールエンコーディングはオペレーティングシステムのテキストをデコード" "するのに使えます。" -#: ../../c-api/unicode.rst:785 +#: ../../c-api/unicode.rst:796 msgid "" "Decode a string from UTF-8 on Android and VxWorks, or from the current " "locale encoding on other platforms. The supported error handlers are " @@ -1159,21 +1168,21 @@ msgid "" "null character but cannot contain embedded null characters." msgstr "" -#: ../../c-api/unicode.rst:792 +#: ../../c-api/unicode.rst:803 msgid "" "Use :c:func:`PyUnicode_DecodeFSDefaultAndSize` to decode a string from the :" "term:`filesystem encoding and error handler`." msgstr "" -#: ../../c-api/unicode.rst:795 ../../c-api/unicode.rst:830 +#: ../../c-api/unicode.rst:806 ../../c-api/unicode.rst:841 msgid "This function ignores the :ref:`Python UTF-8 Mode `." msgstr "" -#: ../../c-api/unicode.rst:799 ../../c-api/unicode.rst:915 +#: ../../c-api/unicode.rst:810 ../../c-api/unicode.rst:926 msgid "The :c:func:`Py_DecodeLocale` function." msgstr ":c:func:`Py_DecodeLocale` 関数。" -#: ../../c-api/unicode.rst:803 +#: ../../c-api/unicode.rst:814 msgid "" "The function now also uses the current locale encoding for the " "``surrogateescape`` error handler, except on Android. Previously, :c:func:" @@ -1185,13 +1194,13 @@ msgstr "" "以前は、 :c:func:`Py_DecodeLocale` が ``surrogateescape`` で使われ、現在のロ" "ケールエンコーディングは ``strict`` で使われていました。" -#: ../../c-api/unicode.rst:812 +#: ../../c-api/unicode.rst:823 msgid "" "Similar to :c:func:`PyUnicode_DecodeLocaleAndSize`, but compute the string " "length using :c:func:`!strlen`." msgstr "" -#: ../../c-api/unicode.rst:820 +#: ../../c-api/unicode.rst:831 msgid "" "Encode a Unicode object to UTF-8 on Android and VxWorks, or to the current " "locale encoding on other platforms. The supported error handlers are " @@ -1200,17 +1209,17 @@ msgid "" "`bytes` object. *unicode* cannot contain embedded null characters." msgstr "" -#: ../../c-api/unicode.rst:827 +#: ../../c-api/unicode.rst:838 msgid "" "Use :c:func:`PyUnicode_EncodeFSDefault` to encode a string to the :term:" "`filesystem encoding and error handler`." msgstr "" -#: ../../c-api/unicode.rst:834 ../../c-api/unicode.rst:946 +#: ../../c-api/unicode.rst:845 ../../c-api/unicode.rst:957 msgid "The :c:func:`Py_EncodeLocale` function." msgstr ":c:func:`Py_EncodeLocale` 関数。" -#: ../../c-api/unicode.rst:838 +#: ../../c-api/unicode.rst:849 msgid "" "The function now also uses the current locale encoding for the " "``surrogateescape`` error handler, except on Android. Previously, :c:func:" @@ -1222,24 +1231,24 @@ msgstr "" "以前は、 :c:func:`Py_EncodeLocale` が ``surrogateescape`` で使われ、現在のロ" "ケールエンコーディングは ``strict`` で使われていました。" -#: ../../c-api/unicode.rst:847 +#: ../../c-api/unicode.rst:858 msgid "File System Encoding" msgstr "ファイルシステムエンコーディング" -#: ../../c-api/unicode.rst:849 +#: ../../c-api/unicode.rst:860 msgid "" "Functions encoding to and decoding from the :term:`filesystem encoding and " "error handler` (:pep:`383` and :pep:`529`)." msgstr "" -#: ../../c-api/unicode.rst:852 +#: ../../c-api/unicode.rst:863 msgid "" "To encode file names to :class:`bytes` during argument parsing, the " "``\"O&\"`` converter should be used, passing :c:func:`!" "PyUnicode_FSConverter` as the conversion function:" msgstr "" -#: ../../c-api/unicode.rst:858 +#: ../../c-api/unicode.rst:869 msgid "" ":ref:`PyArg_Parse\\* converter `: encode :class:`str` objects " "-- obtained directly or through the :class:`os.PathLike` interface -- to :" @@ -1252,24 +1261,24 @@ msgid "" "not allowed in the result. On failure, return ``0`` with an exception set." msgstr "" -#: ../../c-api/unicode.rst:870 +#: ../../c-api/unicode.rst:881 msgid "" "If *obj* is ``NULL``, the function releases a strong reference stored in the " "variable referred by *result* and returns ``1``." msgstr "" -#: ../../c-api/unicode.rst:875 ../../c-api/unicode.rst:902 +#: ../../c-api/unicode.rst:886 ../../c-api/unicode.rst:913 msgid "Accepts a :term:`path-like object`." msgstr ":term:`path-like object` を受け入れるようになりました。" -#: ../../c-api/unicode.rst:878 +#: ../../c-api/unicode.rst:889 msgid "" "To decode file names to :class:`str` during argument parsing, the ``\"O&\"`` " "converter should be used, passing :c:func:`!PyUnicode_FSDecoder` as the " "conversion function:" msgstr "" -#: ../../c-api/unicode.rst:884 +#: ../../c-api/unicode.rst:895 msgid "" ":ref:`PyArg_Parse\\* converter `: decode :class:`bytes` objects " "-- obtained either directly or indirectly through the :class:`os.PathLike` " @@ -1283,63 +1292,63 @@ msgid "" "result. On failure, return ``0`` with an exception set." msgstr "" -#: ../../c-api/unicode.rst:897 +#: ../../c-api/unicode.rst:908 msgid "" "If *obj* is ``NULL``, release the strong reference to the object referred to " "by *result* and return ``1``." msgstr "" -#: ../../c-api/unicode.rst:908 +#: ../../c-api/unicode.rst:919 msgid "Decode a string from the :term:`filesystem encoding and error handler`." msgstr "" -#: ../../c-api/unicode.rst:910 +#: ../../c-api/unicode.rst:921 msgid "" "If you need to decode a string from the current locale encoding, use :c:func:" "`PyUnicode_DecodeLocaleAndSize`." msgstr "" -#: ../../c-api/unicode.rst:917 ../../c-api/unicode.rst:930 -#: ../../c-api/unicode.rst:950 +#: ../../c-api/unicode.rst:928 ../../c-api/unicode.rst:941 +#: ../../c-api/unicode.rst:961 msgid "" "The :term:`filesystem error handler ` " "is now used." msgstr "" -#: ../../c-api/unicode.rst:924 +#: ../../c-api/unicode.rst:935 msgid "" "Decode a null-terminated string from the :term:`filesystem encoding and " "error handler`." msgstr "" -#: ../../c-api/unicode.rst:927 +#: ../../c-api/unicode.rst:938 msgid "" "If the string length is known, use :c:func:" "`PyUnicode_DecodeFSDefaultAndSize`." msgstr "" -#: ../../c-api/unicode.rst:937 +#: ../../c-api/unicode.rst:948 msgid "" "Encode a Unicode object to the :term:`filesystem encoding and error " "handler`, and return :class:`bytes`. Note that the resulting :class:`bytes` " "object can contain null bytes." msgstr "" -#: ../../c-api/unicode.rst:941 +#: ../../c-api/unicode.rst:952 msgid "" "If you need to encode a string to the current locale encoding, use :c:func:" "`PyUnicode_EncodeLocale`." msgstr "" -#: ../../c-api/unicode.rst:955 +#: ../../c-api/unicode.rst:966 msgid "wchar_t Support" msgstr "wchar_t サポート" -#: ../../c-api/unicode.rst:957 +#: ../../c-api/unicode.rst:968 msgid ":c:type:`wchar_t` support for platforms which support it:" msgstr ":c:type:`wchar_t` をサポートするプラットフォームでの wchar_t サポート:" -#: ../../c-api/unicode.rst:961 +#: ../../c-api/unicode.rst:972 msgid "" "Create a Unicode object from the :c:type:`wchar_t` buffer *wstr* of the " "given *size*. Passing ``-1`` as the *size* indicates that the function must " @@ -1347,7 +1356,7 @@ msgid "" "failure." msgstr "" -#: ../../c-api/unicode.rst:969 +#: ../../c-api/unicode.rst:980 msgid "" "Copy the Unicode object contents into the :c:type:`wchar_t` buffer *wstr*. " "At most *size* :c:type:`wchar_t` characters are copied (excluding a possibly " @@ -1355,13 +1364,13 @@ msgid "" "`wchar_t` characters copied or ``-1`` in case of an error." msgstr "" -#: ../../c-api/unicode.rst:974 +#: ../../c-api/unicode.rst:985 msgid "" "When *wstr* is ``NULL``, instead return the *size* that would be required to " "store all of *unicode* including a terminating null." msgstr "" -#: ../../c-api/unicode.rst:977 +#: ../../c-api/unicode.rst:988 msgid "" "Note that the resulting :c:expr:`wchar_t*` string may or may not be null-" "terminated. It is the responsibility of the caller to make sure that the :c:" @@ -1371,7 +1380,7 @@ msgid "" "most C functions." msgstr "" -#: ../../c-api/unicode.rst:987 +#: ../../c-api/unicode.rst:998 msgid "" "Convert the Unicode object to a wide character string. The output string " "always ends with a null character. If *size* is not ``NULL``, write the " @@ -1382,24 +1391,24 @@ msgid "" "`wchar_t*` string contains null characters a :exc:`ValueError` is raised." msgstr "" -#: ../../c-api/unicode.rst:995 +#: ../../c-api/unicode.rst:1006 msgid "" "Returns a buffer allocated by :c:macro:`PyMem_New` (use :c:func:`PyMem_Free` " "to free it) on success. On error, returns ``NULL`` and *\\*size* is " "undefined. Raises a :exc:`MemoryError` if memory allocation is failed." msgstr "" -#: ../../c-api/unicode.rst:1002 +#: ../../c-api/unicode.rst:1013 msgid "" "Raises a :exc:`ValueError` if *size* is ``NULL`` and the :c:expr:`wchar_t*` " "string contains null characters." msgstr "" -#: ../../c-api/unicode.rst:1010 +#: ../../c-api/unicode.rst:1021 msgid "Built-in Codecs" msgstr "組み込み codec (built-in codec)" -#: ../../c-api/unicode.rst:1012 +#: ../../c-api/unicode.rst:1023 msgid "" "Python provides a set of built-in codecs which are written in C for speed. " "All of these codecs are directly usable via the following functions." @@ -1407,7 +1416,7 @@ msgstr "" "Python には、処理速度を高めるために C で書かれた codec が揃えてあります。これ" "ら全ての codec は以下の関数を介して直接利用できます。" -#: ../../c-api/unicode.rst:1015 +#: ../../c-api/unicode.rst:1026 msgid "" "Many of the following APIs take two arguments encoding and errors, and they " "have the same semantics as the ones of the built-in :func:`str` string " @@ -1417,7 +1426,7 @@ msgstr "" "らのパラメータは、組み込みの文字列コンストラクタである :func:`str` における同" "名のパラメータと同じ意味を持ちます。" -#: ../../c-api/unicode.rst:1019 +#: ../../c-api/unicode.rst:1030 msgid "" "Setting encoding to ``NULL`` causes the default encoding to be used which is " "UTF-8. The file system calls should use :c:func:`PyUnicode_FSConverter` for " @@ -1425,7 +1434,7 @@ msgid "" "handler` internally." msgstr "" -#: ../../c-api/unicode.rst:1024 +#: ../../c-api/unicode.rst:1035 msgid "" "Error handling is set by errors which may also be set to ``NULL`` meaning to " "use the default handling defined for the codec. Default error handling for " @@ -1436,7 +1445,7 @@ msgstr "" "込み codec で、デフォルトのエラー処理は \"strict\" (:exc:`ValueError` を送出" "する) になっています。" -#: ../../c-api/unicode.rst:1028 +#: ../../c-api/unicode.rst:1039 msgid "" "The codecs all use a similar interface. Only deviations from the following " "generic ones are documented for simplicity." @@ -1445,29 +1454,29 @@ msgstr "" "では、説明を簡単にするために以下の汎用のインターフェースとの違いだけを説明し" "ています。" -#: ../../c-api/unicode.rst:1033 +#: ../../c-api/unicode.rst:1044 msgid "Generic Codecs" msgstr "汎用 codec" -#: ../../c-api/unicode.rst:1035 +#: ../../c-api/unicode.rst:1046 msgid "The following macro is provided:" msgstr "" -#: ../../c-api/unicode.rst:1040 +#: ../../c-api/unicode.rst:1051 msgid "The Unicode code point ``U+FFFD`` (replacement character)." msgstr "" -#: ../../c-api/unicode.rst:1042 +#: ../../c-api/unicode.rst:1053 msgid "" "This Unicode character is used as the replacement character during decoding " "if the *errors* argument is set to \"replace\"." msgstr "" -#: ../../c-api/unicode.rst:1046 +#: ../../c-api/unicode.rst:1057 msgid "These are the generic codec APIs:" msgstr "以下は汎用 codec の API です:" -#: ../../c-api/unicode.rst:1052 +#: ../../c-api/unicode.rst:1063 msgid "" "Create a Unicode object by decoding *size* bytes of the encoded string " "*str*. *encoding* and *errors* have the same meaning as the parameters of " @@ -1476,7 +1485,7 @@ msgid "" "was raised by the codec." msgstr "" -#: ../../c-api/unicode.rst:1062 +#: ../../c-api/unicode.rst:1073 msgid "" "Encode a Unicode object and return the result as Python bytes object. " "*encoding* and *errors* have the same meaning as the parameters of the same " @@ -1491,15 +1500,15 @@ msgstr "" "使用する codec の検索は、 Python の codec レジストリを使って行います。\n" "codec が例外を送出した場合には ``NULL`` を返します。" -#: ../../c-api/unicode.rst:1070 +#: ../../c-api/unicode.rst:1081 msgid "UTF-8 Codecs" msgstr "UTF-8 Codecs" -#: ../../c-api/unicode.rst:1072 +#: ../../c-api/unicode.rst:1083 msgid "These are the UTF-8 codec APIs:" msgstr "以下は UTF-8 codec の APIです:" -#: ../../c-api/unicode.rst:1077 +#: ../../c-api/unicode.rst:1088 msgid "" "Create a Unicode object by decoding *size* bytes of the UTF-8 encoded string " "*str*. Return ``NULL`` if an exception was raised by the codec." @@ -1507,7 +1516,7 @@ msgstr "" "UTF-8 でエンコードされた *size* バイトの文字列 *str* から Unicode オブジェク" "トを生成します。codec が例外を送出した場合には ``NULL`` を返します。" -#: ../../c-api/unicode.rst:1084 +#: ../../c-api/unicode.rst:1095 msgid "" "If *consumed* is ``NULL``, behave like :c:func:`PyUnicode_DecodeUTF8`. If " "*consumed* is not ``NULL``, trailing incomplete UTF-8 byte sequences will " @@ -1519,7 +1528,7 @@ msgstr "" "エラーとみなされません。これらのバイト列はデコードされず、デコードされたバイ" "ト数は *consumed* に格納されます。" -#: ../../c-api/unicode.rst:1092 +#: ../../c-api/unicode.rst:1103 msgid "" "Encode a Unicode object using UTF-8 and return the result as Python bytes " "object. Error handling is \"strict\". Return ``NULL`` if an exception was " @@ -1529,13 +1538,13 @@ msgstr "" "トとして返します。エラー処理は \"strict\" です。 codec が例外を送出した場合に" "は ``NULL`` を返します。" -#: ../../c-api/unicode.rst:1096 ../../c-api/unicode.rst:1111 +#: ../../c-api/unicode.rst:1107 ../../c-api/unicode.rst:1122 msgid "" "The function fails if the string contains surrogate code points (``U+D800`` " "- ``U+DFFF``)." msgstr "" -#: ../../c-api/unicode.rst:1102 +#: ../../c-api/unicode.rst:1113 msgid "" "Return a pointer to the UTF-8 encoding of the Unicode object, and store the " "size of the encoded representation (in bytes) in *size*. The *size* " @@ -1549,13 +1558,13 @@ msgstr "" "返されるバッファには、 null コードポイントがあるかどうかに関わらず、常に " "null バイトが終端に付加されています (これは *size* には勘定されません)。" -#: ../../c-api/unicode.rst:1108 +#: ../../c-api/unicode.rst:1119 msgid "" "On error, set an exception, set *size* to ``-1`` (if it's not NULL) and " "return ``NULL``." msgstr "" -#: ../../c-api/unicode.rst:1114 +#: ../../c-api/unicode.rst:1125 msgid "" "This caches the UTF-8 representation of the string in the Unicode object, " "and subsequent calls will return a pointer to the same buffer. The caller " @@ -1564,20 +1573,20 @@ msgid "" "collected." msgstr "" -#: ../../c-api/unicode.rst:1121 ../../c-api/unicode.rst:1143 +#: ../../c-api/unicode.rst:1132 ../../c-api/unicode.rst:1154 msgid "The return type is now ``const char *`` rather of ``char *``." msgstr "返り値の型が ``char *`` ではなく ``const char *`` になりました。" -#: ../../c-api/unicode.rst:1124 +#: ../../c-api/unicode.rst:1135 msgid "This function is a part of the :ref:`limited API `." msgstr "" -#: ../../c-api/unicode.rst:1130 +#: ../../c-api/unicode.rst:1141 msgid "As :c:func:`PyUnicode_AsUTF8AndSize`, but does not store the size." msgstr "" ":c:func:`PyUnicode_AsUTF8AndSize` とほぼ同じですが、サイズを格納しません。" -#: ../../c-api/unicode.rst:1134 +#: ../../c-api/unicode.rst:1145 msgid "" "This function does not have any special behavior for `null characters " "`_ embedded within *unicode*. " @@ -1587,15 +1596,15 @@ msgid "" "c:func:`PyUnicode_AsUTF8AndSize` instead." msgstr "" -#: ../../c-api/unicode.rst:1148 +#: ../../c-api/unicode.rst:1159 msgid "UTF-32 Codecs" msgstr "UTF-32 Codecs" -#: ../../c-api/unicode.rst:1150 +#: ../../c-api/unicode.rst:1161 msgid "These are the UTF-32 codec APIs:" msgstr "以下は UTF-32 codec API です:" -#: ../../c-api/unicode.rst:1156 +#: ../../c-api/unicode.rst:1167 msgid "" "Decode *size* bytes from a UTF-32 encoded buffer string and return the " "corresponding Unicode object. *errors* (if non-``NULL``) defines the error " @@ -1605,7 +1614,7 @@ msgstr "" "Unicodeオブジェクトとして返します。 *errors* は (``NULL`` でないなら) エラー" "ハンドラを指定します。デフォルトは \"strict\" です。" -#: ../../c-api/unicode.rst:1160 ../../c-api/unicode.rst:1210 +#: ../../c-api/unicode.rst:1171 ../../c-api/unicode.rst:1221 msgid "" "If *byteorder* is non-``NULL``, the decoder starts decoding using the given " "byte order::" @@ -1613,14 +1622,14 @@ msgstr "" "*byteorder* が ``NULL`` でない時、デコーダは与えられたバイトオーダーでデコー" "ドを開始します。 ::" -#: ../../c-api/unicode.rst:1163 ../../c-api/unicode.rst:1213 +#: ../../c-api/unicode.rst:1174 ../../c-api/unicode.rst:1224 msgid "" "*byteorder == -1: little endian\n" "*byteorder == 0: native order\n" "*byteorder == 1: big endian" msgstr "" -#: ../../c-api/unicode.rst:1167 +#: ../../c-api/unicode.rst:1178 msgid "" "If ``*byteorder`` is zero, and the first four bytes of the input data are a " "byte order mark (BOM), the decoder switches to this byte order and the BOM " @@ -1632,7 +1641,7 @@ msgstr "" "コピーされません。 ``*byteorder`` が ``-1`` または ``1`` ならば、全ての byte " "order mark は出力にコピーされます。" -#: ../../c-api/unicode.rst:1172 +#: ../../c-api/unicode.rst:1183 msgid "" "After completion, *\\*byteorder* is set to the current byte order at the end " "of input data." @@ -1640,16 +1649,16 @@ msgstr "" "デコードが完了した後、入力データの終端に来た時点でのバイトオーダーを " "*\\*byteorder* にセットします。" -#: ../../c-api/unicode.rst:1175 ../../c-api/unicode.rst:1226 +#: ../../c-api/unicode.rst:1186 ../../c-api/unicode.rst:1237 msgid "If *byteorder* is ``NULL``, the codec starts in native order mode." msgstr "" "*byteorder* が ``NULL`` のとき、 codec は native order モードで開始します。" -#: ../../c-api/unicode.rst:1177 ../../c-api/unicode.rst:1228 +#: ../../c-api/unicode.rst:1188 ../../c-api/unicode.rst:1239 msgid "Return ``NULL`` if an exception was raised by the codec." msgstr "codec が例外を発生させたときは ``NULL`` を返します。" -#: ../../c-api/unicode.rst:1183 +#: ../../c-api/unicode.rst:1194 msgid "" "If *consumed* is ``NULL``, behave like :c:func:`PyUnicode_DecodeUTF32`. If " "*consumed* is not ``NULL``, :c:func:`PyUnicode_DecodeUTF32Stateful` will not " @@ -1663,7 +1672,7 @@ msgstr "" "ト列などの) UTF-32 バイト列をエラーとして扱いません。末尾の不完全なバイト列は" "デコードされず、デコードされたバイト数が *consumed* に格納されます。" -#: ../../c-api/unicode.rst:1192 +#: ../../c-api/unicode.rst:1203 msgid "" "Return a Python byte string using the UTF-32 encoding in native byte order. " "The string always starts with a BOM mark. Error handling is \"strict\". " @@ -1675,15 +1684,15 @@ msgstr "" "エラーハンドラは \"strict\" です。\n" "codec が例外を発生させたときは ``NULL`` を返します。" -#: ../../c-api/unicode.rst:1198 +#: ../../c-api/unicode.rst:1209 msgid "UTF-16 Codecs" msgstr "UTF-16 Codecs" -#: ../../c-api/unicode.rst:1200 +#: ../../c-api/unicode.rst:1211 msgid "These are the UTF-16 codec APIs:" msgstr "以下は UTF-16 codec の APIです:" -#: ../../c-api/unicode.rst:1206 +#: ../../c-api/unicode.rst:1217 msgid "" "Decode *size* bytes from a UTF-16 encoded buffer string and return the " "corresponding Unicode object. *errors* (if non-``NULL``) defines the error " @@ -1693,7 +1702,7 @@ msgstr "" "果を Unicode オブジェクトで返します。 *errors* は (``NULL`` でない場合) エ" "ラー処理方法を定義します。デフォルト値は \"strict\" です。" -#: ../../c-api/unicode.rst:1217 +#: ../../c-api/unicode.rst:1228 msgid "" "If ``*byteorder`` is zero, and the first two bytes of the input data are a " "byte order mark (BOM), the decoder switches to this byte order and the BOM " @@ -1707,7 +1716,7 @@ msgstr "" "合、すべてのBOMは出力へコピーされます (出力では ``\\ufeff`` か ``\\ufffe`` の" "どちらかになるでしょう)。" -#: ../../c-api/unicode.rst:1223 +#: ../../c-api/unicode.rst:1234 msgid "" "After completion, ``*byteorder`` is set to the current byte order at the end " "of input data." @@ -1715,7 +1724,7 @@ msgstr "" "デコードが完了した後、入力データの終端に来た時点でのバイトオーダーを " "``*byteorder`` にセットします。" -#: ../../c-api/unicode.rst:1234 +#: ../../c-api/unicode.rst:1245 msgid "" "If *consumed* is ``NULL``, behave like :c:func:`PyUnicode_DecodeUTF16`. If " "*consumed* is not ``NULL``, :c:func:`PyUnicode_DecodeUTF16Stateful` will not " @@ -1730,7 +1739,7 @@ msgstr "" "イト列や分割されたサロゲートペア) をエラーとみなしません。これらのバイト列は" "デコードされず、デコードされたバイト数を *consumed* に返します。" -#: ../../c-api/unicode.rst:1243 +#: ../../c-api/unicode.rst:1254 msgid "" "Return a Python byte string using the UTF-16 encoding in native byte order. " "The string always starts with a BOM mark. Error handling is \"strict\". " @@ -1742,21 +1751,21 @@ msgstr "" "エラーハンドラは \"strict\" です。\n" "codec が例外を発生させたときは ``NULL`` を返します。" -#: ../../c-api/unicode.rst:1249 +#: ../../c-api/unicode.rst:1260 msgid "UTF-7 Codecs" msgstr "UTF-7 Codecs" -#: ../../c-api/unicode.rst:1251 +#: ../../c-api/unicode.rst:1262 msgid "These are the UTF-7 codec APIs:" msgstr "以下は UTF-7 codec の API です:" -#: ../../c-api/unicode.rst:1256 +#: ../../c-api/unicode.rst:1267 msgid "" "Create a Unicode object by decoding *size* bytes of the UTF-7 encoded string " "*str*. Return ``NULL`` if an exception was raised by the codec." msgstr "" -#: ../../c-api/unicode.rst:1263 +#: ../../c-api/unicode.rst:1274 msgid "" "If *consumed* is ``NULL``, behave like :c:func:`PyUnicode_DecodeUTF7`. If " "*consumed* is not ``NULL``, trailing incomplete UTF-7 base-64 sections will " @@ -1768,22 +1777,22 @@ msgstr "" "分をエラーとしません。不完全な部分のバイト列はデコードせずに、デコードしたバ" "イト数を *consumed* に格納します。" -#: ../../c-api/unicode.rst:1270 +#: ../../c-api/unicode.rst:1281 msgid "Unicode-Escape Codecs" msgstr "Unicode-Escape Codecs" -#: ../../c-api/unicode.rst:1272 +#: ../../c-api/unicode.rst:1283 msgid "These are the \"Unicode Escape\" codec APIs:" msgstr "以下は \"Unicode Escape\" codec の API です:" -#: ../../c-api/unicode.rst:1278 +#: ../../c-api/unicode.rst:1289 msgid "" "Create a Unicode object by decoding *size* bytes of the Unicode-Escape " "encoded string *str*. Return ``NULL`` if an exception was raised by the " "codec." msgstr "" -#: ../../c-api/unicode.rst:1284 +#: ../../c-api/unicode.rst:1295 msgid "" "Encode a Unicode object using Unicode-Escape and return the result as a " "bytes object. Error handling is \"strict\". Return ``NULL`` if an " @@ -1794,22 +1803,22 @@ msgstr "" "エラー処理は \"strict\" です。\n" "codec が例外を送出した場合には ``NULL`` を返します。" -#: ../../c-api/unicode.rst:1290 +#: ../../c-api/unicode.rst:1301 msgid "Raw-Unicode-Escape Codecs" msgstr "Raw-Unicode-Escape Codecs" -#: ../../c-api/unicode.rst:1292 +#: ../../c-api/unicode.rst:1303 msgid "These are the \"Raw Unicode Escape\" codec APIs:" msgstr "以下は \"Raw Unicode Escape\" codec の APIです:" -#: ../../c-api/unicode.rst:1298 +#: ../../c-api/unicode.rst:1309 msgid "" "Create a Unicode object by decoding *size* bytes of the Raw-Unicode-Escape " "encoded string *str*. Return ``NULL`` if an exception was raised by the " "codec." msgstr "" -#: ../../c-api/unicode.rst:1304 +#: ../../c-api/unicode.rst:1315 msgid "" "Encode a Unicode object using Raw-Unicode-Escape and return the result as a " "bytes object. Error handling is \"strict\". Return ``NULL`` if an " @@ -1820,11 +1829,11 @@ msgstr "" "エラー処理は \"strict\" です。\n" "codec が例外を送出した場合には ``NULL`` を返します。" -#: ../../c-api/unicode.rst:1310 +#: ../../c-api/unicode.rst:1321 msgid "Latin-1 Codecs" msgstr "Latin-1 Codecs" -#: ../../c-api/unicode.rst:1312 +#: ../../c-api/unicode.rst:1323 msgid "" "These are the Latin-1 codec APIs: Latin-1 corresponds to the first 256 " "Unicode ordinals and only these are accepted by the codecs during encoding." @@ -1832,7 +1841,7 @@ msgstr "" "以下は Latin-1 codec の APIです: Latin-1 は、 Unicode 序数の最初の 256 個に対" "応し、エンコード時にはこの 256 個だけを受理します。" -#: ../../c-api/unicode.rst:1318 +#: ../../c-api/unicode.rst:1329 msgid "" "Create a Unicode object by decoding *size* bytes of the Latin-1 encoded " "string *str*. Return ``NULL`` if an exception was raised by the codec." @@ -1840,7 +1849,7 @@ msgstr "" "Latin-1 でエンコードされた *size* バイトの文字列 *str* から Unicode オブジェ" "クトを生成します。codec が例外を送出した場合には ``NULL`` を返します。" -#: ../../c-api/unicode.rst:1324 +#: ../../c-api/unicode.rst:1335 msgid "" "Encode a Unicode object using Latin-1 and return the result as Python bytes " "object. Error handling is \"strict\". Return ``NULL`` if an exception was " @@ -1851,11 +1860,11 @@ msgstr "" "エラー処理は \"strict\" です。 codec が例外を送出した場合には ``NULL`` を返し" "ます。" -#: ../../c-api/unicode.rst:1330 +#: ../../c-api/unicode.rst:1341 msgid "ASCII Codecs" msgstr "ASCII Codecs" -#: ../../c-api/unicode.rst:1332 +#: ../../c-api/unicode.rst:1343 msgid "" "These are the ASCII codec APIs. Only 7-bit ASCII data is accepted. All " "other codes generate errors." @@ -1863,13 +1872,13 @@ msgstr "" "以下は ASCII codec の APIです。 7 ビットの ASCII データだけを受理します。その" "他のコードはエラーになります。" -#: ../../c-api/unicode.rst:1338 +#: ../../c-api/unicode.rst:1349 msgid "" "Create a Unicode object by decoding *size* bytes of the ASCII encoded string " "*str*. Return ``NULL`` if an exception was raised by the codec." msgstr "" -#: ../../c-api/unicode.rst:1344 +#: ../../c-api/unicode.rst:1355 msgid "" "Encode a Unicode object using ASCII and return the result as Python bytes " "object. Error handling is \"strict\". Return ``NULL`` if an exception was " @@ -1880,11 +1889,11 @@ msgstr "" "エラー処理は \"strict\" です。\n" "codec が例外を送出した場合には ``NULL`` を返します。" -#: ../../c-api/unicode.rst:1350 +#: ../../c-api/unicode.rst:1361 msgid "Character Map Codecs" msgstr "Character Map Codecs" -#: ../../c-api/unicode.rst:1352 +#: ../../c-api/unicode.rst:1363 msgid "" "This codec is special in that it can be used to implement many different " "codecs (and this is in fact what was done to obtain most of the standard " @@ -1901,11 +1910,11 @@ msgstr "" "ターフェースをサポートしていなければなりません; 辞書やシーケンスがそれに適し" "ています。" -#: ../../c-api/unicode.rst:1358 +#: ../../c-api/unicode.rst:1369 msgid "These are the mapping codec APIs:" msgstr "以下は mapping codec の APIです:" -#: ../../c-api/unicode.rst:1363 +#: ../../c-api/unicode.rst:1374 msgid "" "Create a Unicode object by decoding *size* bytes of the encoded string *str* " "using the given *mapping* object. Return ``NULL`` if an exception was " @@ -1915,7 +1924,7 @@ msgstr "" "字列 *str* をデコードして Unicode オブジェクトを作成します。\n" "codec が例外を発生させたときは ``NULL`` を返します。" -#: ../../c-api/unicode.rst:1367 +#: ../../c-api/unicode.rst:1378 msgid "" "If *mapping* is ``NULL``, Latin-1 decoding will be applied. Else *mapping* " "must map bytes ordinals (integers in the range from 0 to 255) to Unicode " @@ -1925,7 +1934,7 @@ msgid "" "treated as undefined mappings and cause an error." msgstr "" -#: ../../c-api/unicode.rst:1378 +#: ../../c-api/unicode.rst:1389 msgid "" "Encode a Unicode object using the given *mapping* object and return the " "result as a bytes object. Error handling is \"strict\". Return ``NULL`` if " @@ -1935,7 +1944,7 @@ msgstr "" "し、結果を bytes オブジェクトとして返します。エラー処理は \"strict\" です。 " "codec が例外を送出した場合には ``NULL`` を返します。" -#: ../../c-api/unicode.rst:1382 +#: ../../c-api/unicode.rst:1393 msgid "" "The *mapping* object must map Unicode ordinal integers to bytes objects, " "integers in the range from 0 to 255 or ``None``. Unmapped character " @@ -1943,12 +1952,12 @@ msgid "" "``None`` are treated as \"undefined mapping\" and cause an error." msgstr "" -#: ../../c-api/unicode.rst:1388 +#: ../../c-api/unicode.rst:1399 msgid "The following codec API is special in that maps Unicode to Unicode." msgstr "" "以下の codec API は Unicode から Unicode への対応付けを行う特殊なものです。" -#: ../../c-api/unicode.rst:1392 +#: ../../c-api/unicode.rst:1403 msgid "" "Translate a string by applying a character mapping table to it and return " "the resulting Unicode object. Return ``NULL`` if an exception was raised by " @@ -1957,7 +1966,7 @@ msgstr "" "文字列に文字対応表 *table* を適用して変換し、変換結果を Unicode オブジェクト" "で返します。codec が例外を発行した場合には ``NULL`` を返します。" -#: ../../c-api/unicode.rst:1396 +#: ../../c-api/unicode.rst:1407 msgid "" "The mapping table must map Unicode ordinal integers to Unicode ordinal " "integers or ``None`` (causing deletion of the character)." @@ -1965,14 +1974,14 @@ msgstr "" "対応表は、Unicode 序数を表す整数を Unicode 序数を表す整数または ``None`` (そ" "の文字を削除する) に対応付けなければなりません。" -#: ../../c-api/unicode.rst:1399 +#: ../../c-api/unicode.rst:1410 msgid "" "Mapping tables need only provide the :meth:`~object.__getitem__` interface; " "dictionaries and sequences work well. Unmapped character ordinals (ones " "which cause a :exc:`LookupError`) are left untouched and are copied as-is." msgstr "" -#: ../../c-api/unicode.rst:1403 +#: ../../c-api/unicode.rst:1414 msgid "" "*errors* has the usual meaning for codecs. It may be ``NULL`` which " "indicates to use the default error handling." @@ -1980,11 +1989,11 @@ msgstr "" "*errors* は codecs で通常使われるのと同じ意味を持ちます。 *errors* は " "``NULL`` にしてもよく、デフォルトエラー処理の使用を意味します。" -#: ../../c-api/unicode.rst:1408 +#: ../../c-api/unicode.rst:1419 msgid "MBCS codecs for Windows" msgstr "Windows 用の MBCS codec" -#: ../../c-api/unicode.rst:1410 +#: ../../c-api/unicode.rst:1421 msgid "" "These are the MBCS codec APIs. They are currently only available on Windows " "and use the Win32 MBCS converters to implement the conversions. Note that " @@ -1998,13 +2007,13 @@ msgstr "" "式 (target encoding) は、 codec を動作させているマシン上のユーザ設定で定義さ" "れています。" -#: ../../c-api/unicode.rst:1417 +#: ../../c-api/unicode.rst:1428 msgid "" "Create a Unicode object by decoding *size* bytes of the MBCS encoded string " "*str*. Return ``NULL`` if an exception was raised by the codec." msgstr "" -#: ../../c-api/unicode.rst:1424 +#: ../../c-api/unicode.rst:1435 msgid "" "If *consumed* is ``NULL``, behave like :c:func:`PyUnicode_DecodeMBCS`. If " "*consumed* is not ``NULL``, :c:func:`PyUnicode_DecodeMBCSStateful` will not " @@ -2016,13 +2025,13 @@ msgstr "" "`PyUnicode_DecodeMBCSStateful` は文字列の最後にあるマルチバイト文字の前半バイ" "トをデコードせず、 *consumed* にデコードしたバイト数を格納します。" -#: ../../c-api/unicode.rst:1433 +#: ../../c-api/unicode.rst:1444 msgid "" "Similar to :c:func:`PyUnicode_DecodeMBCSStateful`, except uses the code page " "specified by *code_page*." msgstr "" -#: ../../c-api/unicode.rst:1439 +#: ../../c-api/unicode.rst:1450 msgid "" "Encode a Unicode object using MBCS and return the result as Python bytes " "object. Error handling is \"strict\". Return ``NULL`` if an exception was " @@ -2032,22 +2041,22 @@ msgstr "" "トとして返します。エラー処理は \"strict\" です。 codec が例外を送出した場合に" "は ``NULL`` を返します。" -#: ../../c-api/unicode.rst:1446 +#: ../../c-api/unicode.rst:1457 msgid "" "Encode the Unicode object using the specified code page and return a Python " "bytes object. Return ``NULL`` if an exception was raised by the codec. Use :" "c:macro:`!CP_ACP` code page to get the MBCS encoder." msgstr "" -#: ../../c-api/unicode.rst:1454 +#: ../../c-api/unicode.rst:1465 msgid "Methods & Slots" msgstr "メソッドとスロット" -#: ../../c-api/unicode.rst:1460 +#: ../../c-api/unicode.rst:1471 msgid "Methods and Slot Functions" msgstr "メソッドおよびスロット関数 (slot function)" -#: ../../c-api/unicode.rst:1462 +#: ../../c-api/unicode.rst:1473 msgid "" "The following APIs are capable of handling Unicode objects and strings on " "input (we refer to them as strings in the descriptions) and return Unicode " @@ -2057,17 +2066,17 @@ msgstr "" "も文字列と表記しています)、場合に応じて Unicode オブジェクトか整数を返す機能" "を持っています。" -#: ../../c-api/unicode.rst:1466 +#: ../../c-api/unicode.rst:1477 msgid "They all return ``NULL`` or ``-1`` if an exception occurs." msgstr "" "これらの関数は全て、例外が発生した場合には ``NULL`` または ``-1`` を返しま" "す。" -#: ../../c-api/unicode.rst:1471 +#: ../../c-api/unicode.rst:1482 msgid "Concat two strings giving a new Unicode string." msgstr "二つの文字列を結合して、新たな Unicode 文字列を生成します。" -#: ../../c-api/unicode.rst:1476 +#: ../../c-api/unicode.rst:1487 msgid "" "Split a string giving a list of Unicode strings. If *sep* is ``NULL``, " "splitting will be done at all whitespace substrings. Otherwise, splits " @@ -2081,33 +2090,33 @@ msgstr "" "います。 *maxsplit* が負ならば分割数に制限を設けません。分割結果のリスト内に" "は分割文字は含みません。" -#: ../../c-api/unicode.rst:1481 ../../c-api/unicode.rst:1491 -#: ../../c-api/unicode.rst:1512 ../../c-api/unicode.rst:1525 +#: ../../c-api/unicode.rst:1492 ../../c-api/unicode.rst:1502 +#: ../../c-api/unicode.rst:1523 ../../c-api/unicode.rst:1536 msgid "On error, return ``NULL`` with an exception set." msgstr "" -#: ../../c-api/unicode.rst:1483 +#: ../../c-api/unicode.rst:1494 msgid "Equivalent to :py:meth:`str.split`." msgstr "" -#: ../../c-api/unicode.rst:1488 +#: ../../c-api/unicode.rst:1499 msgid "" "Similar to :c:func:`PyUnicode_Split`, but splitting will be done beginning " "at the end of the string." msgstr "" -#: ../../c-api/unicode.rst:1493 +#: ../../c-api/unicode.rst:1504 msgid "Equivalent to :py:meth:`str.rsplit`." msgstr "" -#: ../../c-api/unicode.rst:1498 +#: ../../c-api/unicode.rst:1509 msgid "" "Split a Unicode string at line breaks, returning a list of Unicode strings. " "CRLF is considered to be one line break. If *keepends* is ``0``, the Line " "break characters are not included in the resulting strings." msgstr "" -#: ../../c-api/unicode.rst:1505 +#: ../../c-api/unicode.rst:1516 msgid "" "Split a Unicode string at the first occurrence of *sep*, and return a 3-" "tuple containing the part before the separator, the separator itself, and " @@ -2115,26 +2124,26 @@ msgid "" "tuple containing the string itself, followed by two empty strings." msgstr "" -#: ../../c-api/unicode.rst:1510 ../../c-api/unicode.rst:1523 +#: ../../c-api/unicode.rst:1521 ../../c-api/unicode.rst:1534 msgid "*sep* must not be empty." msgstr "" -#: ../../c-api/unicode.rst:1514 +#: ../../c-api/unicode.rst:1525 msgid "Equivalent to :py:meth:`str.partition`." msgstr "" -#: ../../c-api/unicode.rst:1519 +#: ../../c-api/unicode.rst:1530 msgid "" "Similar to :c:func:`PyUnicode_Partition`, but split a Unicode string at the " "last occurrence of *sep*. If the separator is not found, return a 3-tuple " "containing two empty strings, followed by the string itself." msgstr "" -#: ../../c-api/unicode.rst:1527 +#: ../../c-api/unicode.rst:1538 msgid "Equivalent to :py:meth:`str.rpartition`." msgstr "" -#: ../../c-api/unicode.rst:1532 +#: ../../c-api/unicode.rst:1543 msgid "" "Join a sequence of strings using the given *separator* and return the " "resulting Unicode string." @@ -2142,14 +2151,14 @@ msgstr "" "指定した *separator* で文字列からなるシーケンスを連結 (join) し、連結結果を " "Unicode 文字列で返します。" -#: ../../c-api/unicode.rst:1539 +#: ../../c-api/unicode.rst:1550 msgid "" "Return ``1`` if *substr* matches ``unicode[start:end]`` at the given tail " "end (*direction* == ``-1`` means to do a prefix match, *direction* == ``1`` " "a suffix match), ``0`` otherwise. Return ``-1`` if an error occurred." msgstr "" -#: ../../c-api/unicode.rst:1547 +#: ../../c-api/unicode.rst:1558 msgid "" "Return the first position of *substr* in ``unicode[start:end]`` using the " "given *direction* (*direction* == ``1`` means to do a forward search, " @@ -2164,7 +2173,7 @@ msgstr "" "チが見つからなかったことを表し、 ``-2`` はエラーが発生して例外情報が設定され" "ていることを表します。" -#: ../../c-api/unicode.rst:1557 +#: ../../c-api/unicode.rst:1568 msgid "" "Return the first position of the character *ch* in ``unicode[start:end]`` " "using the given *direction* (*direction* == ``1`` means to do a forward " @@ -2180,12 +2189,12 @@ msgstr "" "チが見つからなかったことを表し、 ``-2`` はエラーが発生して例外情報が設定され" "ていることを表します。" -#: ../../c-api/unicode.rst:1565 +#: ../../c-api/unicode.rst:1576 msgid "" "*start* and *end* are now adjusted to behave like ``unicode[start:end]``." msgstr "" -#: ../../c-api/unicode.rst:1572 +#: ../../c-api/unicode.rst:1583 msgid "" "Return the number of non-overlapping occurrences of *substr* in " "``unicode[start:end]``. Return ``-1`` if an error occurred." @@ -2193,7 +2202,7 @@ msgstr "" "``unicode[start:end]`` に *substr* が重複することなく出現する回数を返します。" "エラーが発生した場合には ``-1`` を返します。" -#: ../../c-api/unicode.rst:1579 +#: ../../c-api/unicode.rst:1590 msgid "" "Replace at most *maxcount* occurrences of *substr* in *unicode* with " "*replstr* and return the resulting Unicode object. *maxcount* == ``-1`` " @@ -2203,7 +2212,7 @@ msgstr "" "換結果である Unicode オブジェクトを返します。\n" "*maxcount* == ``-1`` にすると、文字列中に現れる全ての *substr* を置換します。" -#: ../../c-api/unicode.rst:1586 +#: ../../c-api/unicode.rst:1597 msgid "" "Compare two strings and return ``-1``, ``0``, ``1`` for less than, equal, " "and greater than, respectively." @@ -2212,7 +2221,7 @@ msgstr "" "左引数が右引数より大きい場合に対して、それぞれ ``-1``, ``0``, ``1`` を返しま" "す。" -#: ../../c-api/unicode.rst:1589 +#: ../../c-api/unicode.rst:1600 msgid "" "This function returns ``-1`` upon failure, so one should call :c:func:" "`PyErr_Occurred` to check for errors." @@ -2220,43 +2229,43 @@ msgstr "" "この関数は、失敗したときに ``-1`` を返すので、 :c:func:`PyErr_Occurred` を呼" "び出して、エラーをチェックすべきです。" -#: ../../c-api/unicode.rst:1594 +#: ../../c-api/unicode.rst:1605 msgid "The :c:func:`PyUnicode_Equal` function." msgstr "" -#: ../../c-api/unicode.rst:1599 +#: ../../c-api/unicode.rst:1610 msgid "Test if two strings are equal:" msgstr "" -#: ../../c-api/unicode.rst:1601 +#: ../../c-api/unicode.rst:1612 msgid "Return ``1`` if *a* is equal to *b*." msgstr "" -#: ../../c-api/unicode.rst:1602 +#: ../../c-api/unicode.rst:1613 msgid "Return ``0`` if *a* is not equal to *b*." msgstr "" -#: ../../c-api/unicode.rst:1603 +#: ../../c-api/unicode.rst:1614 msgid "" "Set a :exc:`TypeError` exception and return ``-1`` if *a* or *b* is not a :" "class:`str` object." msgstr "" -#: ../../c-api/unicode.rst:1606 +#: ../../c-api/unicode.rst:1617 msgid "The function always succeeds if *a* and *b* are :class:`str` objects." msgstr "" -#: ../../c-api/unicode.rst:1608 +#: ../../c-api/unicode.rst:1619 msgid "" "The function works for :class:`str` subclasses, but does not honor custom " "``__eq__()`` method." msgstr "" -#: ../../c-api/unicode.rst:1613 +#: ../../c-api/unicode.rst:1624 msgid "The :c:func:`PyUnicode_Compare` function." msgstr "" -#: ../../c-api/unicode.rst:1620 +#: ../../c-api/unicode.rst:1631 msgid "" "Compare a Unicode object with a char buffer which is interpreted as being " "UTF-8 or ASCII encoded and return true (``1``) if they are equal, or false " @@ -2265,18 +2274,18 @@ msgid "" "is returned." msgstr "" -#: ../../c-api/unicode.rst:1627 ../../c-api/unicode.rst:1648 +#: ../../c-api/unicode.rst:1638 ../../c-api/unicode.rst:1659 msgid "This function does not raise exceptions." msgstr "この関数は例外を送出しません。" -#: ../../c-api/unicode.rst:1634 +#: ../../c-api/unicode.rst:1645 msgid "" "Similar to :c:func:`PyUnicode_EqualToUTF8AndSize`, but compute *string* " "length using :c:func:`!strlen`. If the Unicode object contains null " "characters, false (``0``) is returned." msgstr "" -#: ../../c-api/unicode.rst:1643 +#: ../../c-api/unicode.rst:1654 msgid "" "Compare a Unicode object, *unicode*, with *string* and return ``-1``, ``0``, " "``1`` for less than, equal, and greater than, respectively. It is best to " @@ -2289,31 +2298,31 @@ msgstr "" "ASCII エンコードされた文字列だけを渡すのが最も良いですが、入力文字列に非 " "ASCII 文字が含まれている場合は ISO-8859-1 として解釈します。" -#: ../../c-api/unicode.rst:1653 +#: ../../c-api/unicode.rst:1664 msgid "Rich compare two Unicode strings and return one of the following:" msgstr "二つのUnicode文字列を比較して、下のうちの一つを返します:" -#: ../../c-api/unicode.rst:1655 +#: ../../c-api/unicode.rst:1666 msgid "``NULL`` in case an exception was raised" msgstr "``NULL`` を、例外が発生したときに返します。" -#: ../../c-api/unicode.rst:1656 +#: ../../c-api/unicode.rst:1667 msgid ":c:data:`Py_True` or :c:data:`Py_False` for successful comparisons" msgstr "" ":c:data:`Py_True` もしくは :c:data:`Py_False` を、正しく比較できた時に返しま" "す。" -#: ../../c-api/unicode.rst:1657 +#: ../../c-api/unicode.rst:1668 msgid ":c:data:`Py_NotImplemented` in case the type combination is unknown" msgstr "" -#: ../../c-api/unicode.rst:1659 +#: ../../c-api/unicode.rst:1670 msgid "" "Possible values for *op* are :c:macro:`Py_GT`, :c:macro:`Py_GE`, :c:macro:" "`Py_EQ`, :c:macro:`Py_NE`, :c:macro:`Py_LT`, and :c:macro:`Py_LE`." msgstr "" -#: ../../c-api/unicode.rst:1665 +#: ../../c-api/unicode.rst:1676 msgid "" "Return a new string object from *format* and *args*; this is analogous to " "``format % args``." @@ -2321,14 +2330,14 @@ msgstr "" "新たな文字列オブジェクトを *format* および *args* から生成して返します; この" "メソッドは ``format % args`` のようなものです。" -#: ../../c-api/unicode.rst:1671 +#: ../../c-api/unicode.rst:1682 msgid "" "Check whether *substr* is contained in *unicode* and return true or false " "accordingly." msgstr "" "*substr* が *unicode* 内にあるか調べ、その結果に応じて真または偽を返します。" -#: ../../c-api/unicode.rst:1674 +#: ../../c-api/unicode.rst:1685 msgid "" "*substr* has to coerce to a one element Unicode string. ``-1`` is returned " "if there was an error." @@ -2336,7 +2345,7 @@ msgstr "" "*substr* は単要素の Unicode 文字に型強制できなければなりません。エラーが生じ" "た場合には ``-1`` を返します。" -#: ../../c-api/unicode.rst:1680 +#: ../../c-api/unicode.rst:1691 msgid "" "Intern the argument :c:expr:`*p_unicode` in place. The argument must be the " "address of a pointer variable pointing to a Python Unicode string object. " @@ -2347,7 +2356,7 @@ msgid "" "interns it." msgstr "" -#: ../../c-api/unicode.rst:1687 +#: ../../c-api/unicode.rst:1698 msgid "" "(Clarification: even though there is a lot of talk about references, think " "of this function as reference-neutral. You must own the object you pass in; " @@ -2355,39 +2364,39 @@ msgid "" "the result.)" msgstr "" -#: ../../c-api/unicode.rst:1692 +#: ../../c-api/unicode.rst:1703 msgid "" "This function never raises an exception. On error, it leaves its argument " "unchanged without interning it." msgstr "" -#: ../../c-api/unicode.rst:1695 +#: ../../c-api/unicode.rst:1706 msgid "" "Instances of subclasses of :py:class:`str` may not be interned, that is, :c:" "expr:`PyUnicode_CheckExact(*p_unicode)` must be true. If it is not, then -- " "as with any other error -- the argument is left unchanged." msgstr "" -#: ../../c-api/unicode.rst:1699 +#: ../../c-api/unicode.rst:1710 msgid "" "Note that interned strings are not “immortal”. You must keep a reference to " "the result to benefit from interning." msgstr "" -#: ../../c-api/unicode.rst:1705 +#: ../../c-api/unicode.rst:1716 msgid "" "A combination of :c:func:`PyUnicode_FromString` and :c:func:" "`PyUnicode_InternInPlace`, meant for statically allocated strings." msgstr "" -#: ../../c-api/unicode.rst:1708 +#: ../../c-api/unicode.rst:1719 msgid "" "Return a new (\"owned\") reference to either a new Unicode string object " "that has been interned, or an earlier interned string object with the same " "value." msgstr "" -#: ../../c-api/unicode.rst:1712 +#: ../../c-api/unicode.rst:1723 msgid "" "Python may keep a reference to the result, or make it :term:`immortal`, " "preventing it from being garbage-collected promptly. For interning an " @@ -2396,18 +2405,18 @@ msgid "" "`PyUnicode_InternInPlace` directly." msgstr "" -#: ../../c-api/unicode.rst:1720 +#: ../../c-api/unicode.rst:1731 msgid "Strings interned this way are made :term:`immortal`." msgstr "" -#: ../../c-api/unicode.rst:1725 +#: ../../c-api/unicode.rst:1736 msgid "" "Return a non-zero value if *str* is interned, zero if not. The *str* " "argument must be a string; this is not checked. This function always " "succeeds." msgstr "" -#: ../../c-api/unicode.rst:1731 +#: ../../c-api/unicode.rst:1742 msgid "" "A non-zero return value may carry additional information about *how* the " "string is interned. The meaning of such non-zero values, as well as each " @@ -2415,175 +2424,175 @@ msgid "" "versions." msgstr "" -#: ../../c-api/unicode.rst:1738 +#: ../../c-api/unicode.rst:1749 msgid "PyUnicodeWriter" msgstr "" -#: ../../c-api/unicode.rst:1740 +#: ../../c-api/unicode.rst:1751 msgid "" "The :c:type:`PyUnicodeWriter` API can be used to create a Python :class:" "`str` object." msgstr "" -#: ../../c-api/unicode.rst:1747 +#: ../../c-api/unicode.rst:1758 msgid "A Unicode writer instance." msgstr "" -#: ../../c-api/unicode.rst:1749 +#: ../../c-api/unicode.rst:1760 msgid "" "The instance must be destroyed by :c:func:`PyUnicodeWriter_Finish` on " "success, or :c:func:`PyUnicodeWriter_Discard` on error." msgstr "" -#: ../../c-api/unicode.rst:1754 +#: ../../c-api/unicode.rst:1765 msgid "Create a Unicode writer instance." msgstr "" -#: ../../c-api/unicode.rst:1756 +#: ../../c-api/unicode.rst:1767 msgid "*length* must be greater than or equal to ``0``." msgstr "" -#: ../../c-api/unicode.rst:1758 +#: ../../c-api/unicode.rst:1769 msgid "" "If *length* is greater than ``0``, preallocate an internal buffer of " "*length* characters." msgstr "" -#: ../../c-api/unicode.rst:1761 ../../c-api/unicode.rst:1767 +#: ../../c-api/unicode.rst:1772 ../../c-api/unicode.rst:1778 msgid "Set an exception and return ``NULL`` on error." msgstr "" -#: ../../c-api/unicode.rst:1765 +#: ../../c-api/unicode.rst:1776 msgid "" "Return the final Python :class:`str` object and destroy the writer instance." msgstr "" -#: ../../c-api/unicode.rst:1769 ../../c-api/unicode.rst:1777 +#: ../../c-api/unicode.rst:1780 ../../c-api/unicode.rst:1788 msgid "The writer instance is invalid after this call." msgstr "" -#: ../../c-api/unicode.rst:1773 +#: ../../c-api/unicode.rst:1784 msgid "Discard the internal Unicode buffer and destroy the writer instance." msgstr "" -#: ../../c-api/unicode.rst:1775 +#: ../../c-api/unicode.rst:1786 msgid "If *writer* is ``NULL``, no operation is performed." msgstr "" -#: ../../c-api/unicode.rst:1781 +#: ../../c-api/unicode.rst:1792 msgid "Write the single Unicode character *ch* into *writer*." msgstr "" -#: ../../c-api/unicode.rst:1783 ../../c-api/unicode.rst:1793 -#: ../../c-api/unicode.rst:1805 ../../c-api/unicode.rst:1814 -#: ../../c-api/unicode.rst:1821 ../../c-api/unicode.rst:1828 -#: ../../c-api/unicode.rst:1839 ../../c-api/unicode.rst:1846 -#: ../../c-api/unicode.rst:1865 +#: ../../c-api/unicode.rst:1794 ../../c-api/unicode.rst:1804 +#: ../../c-api/unicode.rst:1816 ../../c-api/unicode.rst:1825 +#: ../../c-api/unicode.rst:1832 ../../c-api/unicode.rst:1839 +#: ../../c-api/unicode.rst:1850 ../../c-api/unicode.rst:1857 +#: ../../c-api/unicode.rst:1876 msgid "" "On success, return ``0``. On error, set an exception, leave the writer " "unchanged, and return ``-1``." msgstr "" -#: ../../c-api/unicode.rst:1788 +#: ../../c-api/unicode.rst:1799 msgid "" "Decode the string *str* from UTF-8 in strict mode and write the output into " "*writer*." msgstr "" -#: ../../c-api/unicode.rst:1790 ../../c-api/unicode.rst:1854 +#: ../../c-api/unicode.rst:1801 ../../c-api/unicode.rst:1865 msgid "" "*size* is the string length in bytes. If *size* is equal to ``-1``, call " "``strlen(str)`` to get the string length." msgstr "" -#: ../../c-api/unicode.rst:1796 +#: ../../c-api/unicode.rst:1807 msgid "See also :c:func:`PyUnicodeWriter_DecodeUTF8Stateful`." msgstr "" -#: ../../c-api/unicode.rst:1800 +#: ../../c-api/unicode.rst:1811 msgid "Writer the wide string *str* into *writer*." msgstr "" -#: ../../c-api/unicode.rst:1802 +#: ../../c-api/unicode.rst:1813 msgid "" "*size* is a number of wide characters. If *size* is equal to ``-1``, call " "``wcslen(str)`` to get the string length." msgstr "" -#: ../../c-api/unicode.rst:1810 +#: ../../c-api/unicode.rst:1821 msgid "Writer the UCS4 string *str* into *writer*." msgstr "" -#: ../../c-api/unicode.rst:1812 +#: ../../c-api/unicode.rst:1823 msgid "*size* is a number of UCS4 characters." msgstr "" -#: ../../c-api/unicode.rst:1819 +#: ../../c-api/unicode.rst:1830 msgid "" "Call :c:func:`PyObject_Str` on *obj* and write the output into *writer*." msgstr "" -#: ../../c-api/unicode.rst:1826 +#: ../../c-api/unicode.rst:1837 msgid "" "Call :c:func:`PyObject_Repr` on *obj* and write the output into *writer*." msgstr "" -#: ../../c-api/unicode.rst:1833 +#: ../../c-api/unicode.rst:1844 msgid "Write the substring ``str[start:end]`` into *writer*." msgstr "" -#: ../../c-api/unicode.rst:1835 +#: ../../c-api/unicode.rst:1846 msgid "" "*str* must be Python :class:`str` object. *start* must be greater than or " "equal to 0, and less than or equal to *end*. *end* must be less than or " "equal to *str* length." msgstr "" -#: ../../c-api/unicode.rst:1844 +#: ../../c-api/unicode.rst:1855 msgid "" "Similar to :c:func:`PyUnicode_FromFormat`, but write the output directly " "into *writer*." msgstr "" -#: ../../c-api/unicode.rst:1851 +#: ../../c-api/unicode.rst:1862 msgid "" "Decode the string *str* from UTF-8 with *errors* error handler and write the " "output into *writer*." msgstr "" -#: ../../c-api/unicode.rst:1857 +#: ../../c-api/unicode.rst:1868 msgid "" "*errors* is an :ref:`error handler ` name, such as " "``\"replace\"``. If *errors* is ``NULL``, use the strict error handler." msgstr "" -#: ../../c-api/unicode.rst:1860 +#: ../../c-api/unicode.rst:1871 msgid "" "If *consumed* is not ``NULL``, set *\\*consumed* to the number of decoded " "bytes on success. If *consumed* is ``NULL``, treat trailing incomplete UTF-8 " "byte sequences as an error." msgstr "" -#: ../../c-api/unicode.rst:1868 +#: ../../c-api/unicode.rst:1879 msgid "See also :c:func:`PyUnicodeWriter_WriteUTF8`." msgstr "" -#: ../../c-api/unicode.rst:1871 +#: ../../c-api/unicode.rst:1882 msgid "Deprecated API" msgstr "" -#: ../../c-api/unicode.rst:1873 +#: ../../c-api/unicode.rst:1884 msgid "The following API is deprecated." msgstr "" -#: ../../c-api/unicode.rst:1877 +#: ../../c-api/unicode.rst:1888 msgid "" "This is a typedef of :c:type:`wchar_t`, which is a 16-bit type or 32-bit " "type depending on the platform. Please use :c:type:`wchar_t` directly " "instead." msgstr "" -#: ../../c-api/unicode.rst:1881 +#: ../../c-api/unicode.rst:1892 msgid "" "In previous versions, this was a 16-bit type or a 32-bit type depending on " "whether you selected a \"narrow\" or \"wide\" Unicode version of Python at " @@ -2593,26 +2602,26 @@ msgstr "" "Unicode バージョンのどちらを選択したかによって、 16ビットか32ビットのどちらか" "の型になっていました。" -#: ../../c-api/unicode.rst:1891 +#: ../../c-api/unicode.rst:1902 msgid "" "Do nothing and return ``0``. This API is kept only for backward " "compatibility, but there are no plans to remove it." msgstr "" -#: ../../c-api/unicode.rst:1897 +#: ../../c-api/unicode.rst:1908 msgid "" "This API does nothing since Python 3.12. Previously, this needed to be " "called for each string created using the old API (:c:func:`!" "PyUnicode_FromUnicode` or similar)." msgstr "" -#: ../../c-api/unicode.rst:1905 +#: ../../c-api/unicode.rst:1916 msgid "" "Do nothing and return ``1``. This API is kept only for backward " "compatibility, but there are no plans to remove it." msgstr "" -#: ../../c-api/unicode.rst:1911 +#: ../../c-api/unicode.rst:1922 msgid "" "This API does nothing since Python 3.12. Previously, this could be called to " "check if :c:func:`PyUnicode_READY` is necessary." diff --git a/c-api/utilities.po b/c-api/utilities.po index f23c283fd..91cac9ac3 100644 --- a/c-api/utilities.po +++ b/c-api/utilities.po @@ -16,10 +16,10 @@ msgstr "" "Last-Translator: tomo, 2021\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../c-api/utilities.rst:7 diff --git a/c-api/veryhigh.po b/c-api/veryhigh.po index e097510d9..ba70d9042 100644 --- a/c-api/veryhigh.po +++ b/c-api/veryhigh.po @@ -19,10 +19,10 @@ msgstr "" "Last-Translator: Arihiro TAKASE, 2023\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../c-api/veryhigh.rst:8 diff --git a/c-api/weakref.po b/c-api/weakref.po index d13366fc2..6b9d55b65 100644 --- a/c-api/weakref.po +++ b/c-api/weakref.po @@ -16,10 +16,10 @@ msgstr "" "Last-Translator: tomo, 2021\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../c-api/weakref.rst:6 diff --git a/distributing/index.po b/distributing/index.po index 562f542b0..c9db0f117 100644 --- a/distributing/index.po +++ b/distributing/index.po @@ -1,5 +1,5 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2025, Python Software Foundation +# Copyright (C) 2001 Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # @@ -10,17 +10,17 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: Python 3.13\n" +"Project-Id-Version: Python 3.14\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2025-04-25 14:19+0000\n" +"POT-Creation-Date: 2025-05-16 14:19+0000\n" "PO-Revision-Date: 2021-06-28 00:50+0000\n" "Last-Translator: TENMYO Masakazu, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../distributing/index.rst:10 diff --git a/distutils/_setuptools_disclaimer.po b/distutils/_setuptools_disclaimer.po index 55cc4fd40..702badb29 100644 --- a/distutils/_setuptools_disclaimer.po +++ b/distutils/_setuptools_disclaimer.po @@ -16,10 +16,10 @@ msgstr "" "Last-Translator: tomo, 2021\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../distutils/_setuptools_disclaimer.rst:3 diff --git a/distutils/apiref.po b/distutils/apiref.po index 599c17489..2e2652469 100644 --- a/distutils/apiref.po +++ b/distutils/apiref.po @@ -21,10 +21,10 @@ msgstr "" "Last-Translator: Transifex Bot <>, 2023\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../distutils/apiref.rst:5 diff --git a/distutils/builtdist.po b/distutils/builtdist.po index 4782154a8..ca6e6b188 100644 --- a/distutils/builtdist.po +++ b/distutils/builtdist.po @@ -20,10 +20,10 @@ msgstr "" "Last-Translator: Transifex Bot <>, 2023\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../distutils/builtdist.rst:5 diff --git a/distutils/commandref.po b/distutils/commandref.po index 2331199f2..fac738db7 100644 --- a/distutils/commandref.po +++ b/distutils/commandref.po @@ -16,10 +16,10 @@ msgstr "" "Last-Translator: tomo, 2021\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../distutils/commandref.rst:5 diff --git a/distutils/configfile.po b/distutils/configfile.po index 2c39db65e..83f124244 100644 --- a/distutils/configfile.po +++ b/distutils/configfile.po @@ -18,10 +18,10 @@ msgstr "" "Last-Translator: Takeshi Nakazato, 2021\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../distutils/configfile.rst:5 diff --git a/distutils/examples.po b/distutils/examples.po index 37087985f..c8ce9c4fb 100644 --- a/distutils/examples.po +++ b/distutils/examples.po @@ -16,10 +16,10 @@ msgstr "" "Last-Translator: tomo, 2021\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../distutils/examples.rst:5 diff --git a/distutils/extending.po b/distutils/extending.po index dd10467dc..270cd2f83 100644 --- a/distutils/extending.po +++ b/distutils/extending.po @@ -17,10 +17,10 @@ msgstr "" "Last-Translator: Arihiro TAKASE, 2023\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../distutils/extending.rst:5 diff --git a/distutils/index.po b/distutils/index.po index 21a6ada1d..f075387ce 100644 --- a/distutils/index.po +++ b/distutils/index.po @@ -17,10 +17,10 @@ msgstr "" "Last-Translator: Shin Saito, 2021\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../distutils/index.rst:5 diff --git a/distutils/introduction.po b/distutils/introduction.po index 0cc9519d7..88f368769 100644 --- a/distutils/introduction.po +++ b/distutils/introduction.po @@ -17,10 +17,10 @@ msgstr "" "Last-Translator: mollinaca, 2021\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../distutils/introduction.rst:5 diff --git a/distutils/packageindex.po b/distutils/packageindex.po index 96e65ef15..2741a2c12 100644 --- a/distutils/packageindex.po +++ b/distutils/packageindex.po @@ -16,10 +16,10 @@ msgstr "" "Last-Translator: tomo, 2021\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../distutils/packageindex.rst:7 diff --git a/distutils/setupscript.po b/distutils/setupscript.po index b5f3d1978..5161cb70d 100644 --- a/distutils/setupscript.po +++ b/distutils/setupscript.po @@ -21,10 +21,10 @@ msgstr "" "Last-Translator: Transifex Bot <>, 2023\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../distutils/setupscript.rst:5 diff --git a/distutils/sourcedist.po b/distutils/sourcedist.po index ac0f74000..af42f4514 100644 --- a/distutils/sourcedist.po +++ b/distutils/sourcedist.po @@ -17,10 +17,10 @@ msgstr "" "Last-Translator: Transifex Bot <>, 2023\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../distutils/sourcedist.rst:5 diff --git a/distutils/uploading.po b/distutils/uploading.po index 601b5e350..379a6fdb2 100644 --- a/distutils/uploading.po +++ b/distutils/uploading.po @@ -16,10 +16,10 @@ msgstr "" "Last-Translator: tomo, 2021\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../distutils/uploading.rst:5 diff --git a/extending/building.po b/extending/building.po index 918b16251..a1db61117 100644 --- a/extending/building.po +++ b/extending/building.po @@ -1,5 +1,5 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2025, Python Software Foundation +# Copyright (C) 2001 Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # @@ -11,17 +11,17 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: Python 3.13\n" +"Project-Id-Version: Python 3.14\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2025-05-02 14:19+0000\n" +"POT-Creation-Date: 2025-05-23 14:20+0000\n" "PO-Revision-Date: 2021-06-28 00:51+0000\n" "Last-Translator: 石井明久, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../extending/building.rst:7 diff --git a/extending/embedding.po b/extending/embedding.po index 3b3fefcaf..53359cd2b 100644 --- a/extending/embedding.po +++ b/extending/embedding.po @@ -19,10 +19,10 @@ msgstr "" "Last-Translator: 石井明久, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../extending/embedding.rst:8 diff --git a/extending/extending.po b/extending/extending.po index cbccc5806..a031f9519 100644 --- a/extending/extending.po +++ b/extending/extending.po @@ -22,10 +22,10 @@ msgstr "" "Last-Translator: Arihiro TAKASE, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../extending/extending.rst:8 diff --git a/extending/index.po b/extending/index.po index c0ecf37e0..b6ad0180a 100644 --- a/extending/index.po +++ b/extending/index.po @@ -18,10 +18,10 @@ msgstr "" "Last-Translator: 菊池 健志, 2023\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../extending/index.rst:5 diff --git a/extending/newtypes.po b/extending/newtypes.po index be08e8875..c2733a913 100644 --- a/extending/newtypes.po +++ b/extending/newtypes.po @@ -18,10 +18,10 @@ msgstr "" "Last-Translator: 石井明久, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../extending/newtypes.rst:7 diff --git a/extending/newtypes_tutorial.po b/extending/newtypes_tutorial.po index c67be0b70..d1e0f8ba7 100644 --- a/extending/newtypes_tutorial.po +++ b/extending/newtypes_tutorial.po @@ -18,10 +18,10 @@ msgstr "" "Last-Translator: 石井明久, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../extending/newtypes_tutorial.rst:7 diff --git a/extending/windows.po b/extending/windows.po index a4e8c9e1e..b84406fd9 100644 --- a/extending/windows.po +++ b/extending/windows.po @@ -16,10 +16,10 @@ msgstr "" "Last-Translator: tomo, 2021\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../extending/windows.rst:8 diff --git a/faq/design.po b/faq/design.po index 5ce0d2d74..e0ffafdcc 100644 --- a/faq/design.po +++ b/faq/design.po @@ -21,10 +21,10 @@ msgstr "" "Last-Translator: TENMYO Masakazu, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../faq/design.rst:3 diff --git a/faq/extending.po b/faq/extending.po index 83e180129..b32d708d9 100644 --- a/faq/extending.po +++ b/faq/extending.po @@ -21,10 +21,10 @@ msgstr "" "Last-Translator: TENMYO Masakazu, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../faq/extending.rst:3 diff --git a/faq/general.po b/faq/general.po index b0b75f39c..c8582653b 100644 --- a/faq/general.po +++ b/faq/general.po @@ -21,10 +21,10 @@ msgstr "" "Last-Translator: TENMYO Masakazu, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../faq/general.rst:5 diff --git a/faq/gui.po b/faq/gui.po index 90302ec36..88eec83ce 100644 --- a/faq/gui.po +++ b/faq/gui.po @@ -1,5 +1,5 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2025, Python Software Foundation +# Copyright (C) 2001 Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # @@ -12,17 +12,17 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: Python 3.13\n" +"Project-Id-Version: Python 3.14\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2025-04-25 14:19+0000\n" +"POT-Creation-Date: 2025-05-16 14:19+0000\n" "PO-Revision-Date: 2021-06-28 00:52+0000\n" "Last-Translator: Arihiro TAKASE, 2023\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../faq/gui.rst:5 diff --git a/faq/index.po b/faq/index.po index 80f850128..c1f9e672e 100644 --- a/faq/index.po +++ b/faq/index.po @@ -16,10 +16,10 @@ msgstr "" "Last-Translator: tomo, 2021\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../faq/index.rst:5 diff --git a/faq/installed.po b/faq/installed.po index 09996c480..af32d28f9 100644 --- a/faq/installed.po +++ b/faq/installed.po @@ -17,10 +17,10 @@ msgstr "" "Last-Translator: 菊池 健志, 2023\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../faq/installed.rst:3 diff --git a/faq/library.po b/faq/library.po index e5129624d..ad28d7aea 100644 --- a/faq/library.po +++ b/faq/library.po @@ -21,10 +21,10 @@ msgstr "" "Last-Translator: TENMYO Masakazu, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../faq/library.rst:5 diff --git a/faq/programming.po b/faq/programming.po index 5d0373947..e48cae8aa 100644 --- a/faq/programming.po +++ b/faq/programming.po @@ -1,5 +1,5 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2025, Python Software Foundation +# Copyright (C) 2001 Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # @@ -14,17 +14,17 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: Python 3.13\n" +"Project-Id-Version: Python 3.14\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2025-04-25 14:19+0000\n" +"POT-Creation-Date: 2025-05-16 14:19+0000\n" "PO-Revision-Date: 2021-06-28 00:52+0000\n" "Last-Translator: TENMYO Masakazu, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../faq/programming.rst:5 diff --git a/faq/windows.po b/faq/windows.po index cfb9e5381..295af934b 100644 --- a/faq/windows.po +++ b/faq/windows.po @@ -1,5 +1,5 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2025, Python Software Foundation +# Copyright (C) 2001 Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # @@ -12,17 +12,17 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: Python 3.13\n" +"Project-Id-Version: Python 3.14\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2025-05-02 14:19+0000\n" +"POT-Creation-Date: 2025-05-23 14:20+0000\n" "PO-Revision-Date: 2021-06-28 00:52+0000\n" "Last-Translator: TENMYO Masakazu, 2023\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../faq/windows.rst:9 diff --git a/glossary.po b/glossary.po index 7e4347738..927e9612d 100644 --- a/glossary.po +++ b/glossary.po @@ -15,15 +15,16 @@ # tomo, 2024 # Hano, 2024 # Nozomu Kaneko , 2025 +# Inada Naoki , 2025 # #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.14\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2025-05-08 02:53-0300\n" +"POT-Creation-Date: 2025-05-23 14:20+0000\n" "PO-Revision-Date: 2021-06-28 00:47+0000\n" -"Last-Translator: Nozomu Kaneko , 2025\n" +"Last-Translator: Inada Naoki , 2025\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" "MIME-Version: 1.0\n" @@ -45,7 +46,7 @@ msgid "" "The default Python prompt of the :term:`interactive` shell. Often seen for " "code examples which can be executed interactively in the interpreter." msgstr "" -"対話型 (:term:`interactive`) シェルにおけるデフォルトの Python プロンプトで" +":term:`対話型 ` シェルにおけるデフォルトの Python プロンプトで" "す。インタープリターで対話的に実行されるコード例でよく見られます。" #: ../../glossary.rst:15 @@ -799,10 +800,23 @@ msgid "" msgstr "" #: ../../glossary.rst:357 +msgid "cyclic isolate" +msgstr "" + +#: ../../glossary.rst:359 +msgid "" +"A subgroup of one or more objects that reference each other in a reference " +"cycle, but are not referenced by objects outside the group. The goal of " +"the :term:`cyclic garbage collector ` is to identify " +"these groups and break the reference cycles so that the memory can be " +"reclaimed." +msgstr "" + +#: ../../glossary.rst:363 msgid "decorator" msgstr "decorator" -#: ../../glossary.rst:359 +#: ../../glossary.rst:365 msgid "" "A function returning another function, usually applied as a function " "transformation using the ``@wrapper`` syntax. Common examples for " @@ -812,7 +826,7 @@ msgstr "" "用されます。デコレータの一般的な利用例は、 :func:`classmethod` と :func:" "`staticmethod` です。" -#: ../../glossary.rst:363 +#: ../../glossary.rst:369 msgid "" "The decorator syntax is merely syntactic sugar, the following two function " "definitions are semantically equivalent::" @@ -820,7 +834,7 @@ msgstr "" "デコレータの文法はシンタックスシュガーです。次の2つの関数定義は意味的に同じも" "のです::" -#: ../../glossary.rst:366 +#: ../../glossary.rst:372 msgid "" "def f(arg):\n" " ...\n" @@ -831,7 +845,7 @@ msgid "" " ..." msgstr "" -#: ../../glossary.rst:374 +#: ../../glossary.rst:380 msgid "" "The same concept exists for classes, but is less commonly used there. See " "the documentation for :ref:`function definitions ` and :ref:`class " @@ -841,11 +855,11 @@ msgstr "" "くは、 :ref:`関数定義 ` および :ref:`クラス定義 ` のドキュメ" "ントを参照してください。" -#: ../../glossary.rst:377 +#: ../../glossary.rst:383 msgid "descriptor" msgstr "descriptor" -#: ../../glossary.rst:379 +#: ../../glossary.rst:385 msgid "" "Any object which defines the methods :meth:`~object.__get__`, :meth:`~object." "__set__`, or :meth:`~object.__delete__`. When a class attribute is a " @@ -858,7 +872,7 @@ msgid "" "methods, static methods, and reference to super classes." msgstr "" -#: ../../glossary.rst:390 +#: ../../glossary.rst:396 msgid "" "For more information about descriptors' methods, see :ref:`descriptors` or " "the :ref:`Descriptor How To Guide `." @@ -866,22 +880,22 @@ msgstr "" "デスクリプタのメソッドに関しての詳細は、 :ref:`descriptors` や :ref:" "`Descriptor How To Guide ` を参照してください。" -#: ../../glossary.rst:392 +#: ../../glossary.rst:398 msgid "dictionary" msgstr "dictionary" -#: ../../glossary.rst:394 +#: ../../glossary.rst:400 msgid "" "An associative array, where arbitrary keys are mapped to values. The keys " "can be any object with :meth:`~object.__hash__` and :meth:`~object.__eq__` " "methods. Called a hash in Perl." msgstr "" -#: ../../glossary.rst:398 +#: ../../glossary.rst:404 msgid "dictionary comprehension" msgstr "dictionary comprehension" -#: ../../glossary.rst:400 +#: ../../glossary.rst:406 msgid "" "A compact way to process all or part of the elements in an iterable and " "return a dictionary with the results. ``results = {n: n ** 2 for n in " @@ -893,11 +907,11 @@ msgstr "" "range(10)}`` とすると、キー ``n`` を値 ``n ** 2`` に対応付ける辞書を生成しま" "す。 :ref:`comprehensions` を参照してください。" -#: ../../glossary.rst:404 +#: ../../glossary.rst:410 msgid "dictionary view" msgstr "dictionary view" -#: ../../glossary.rst:406 +#: ../../glossary.rst:412 msgid "" "The objects returned from :meth:`dict.keys`, :meth:`dict.values`, and :meth:" "`dict.items` are called dictionary views. They provide a dynamic view on the " @@ -914,11 +928,11 @@ msgstr "" "さい。 \n" ":ref:`dict-views` を参照してください。" -#: ../../glossary.rst:412 +#: ../../glossary.rst:418 msgid "docstring" msgstr "docstring" -#: ../../glossary.rst:414 +#: ../../glossary.rst:420 msgid "" "A string literal which appears as the first expression in a class, function " "or module. While ignored when the suite is executed, it is recognized by " @@ -927,11 +941,11 @@ msgid "" "introspection, it is the canonical place for documentation of the object." msgstr "" -#: ../../glossary.rst:420 +#: ../../glossary.rst:426 msgid "duck-typing" msgstr "duck-typing" -#: ../../glossary.rst:422 +#: ../../glossary.rst:428 msgid "" "A programming style which does not look at an object's type to determine if " "it has the right interface; instead, the method or attribute is simply " @@ -953,11 +967,11 @@ msgstr "" "class>` で補完することもできます。) その代わり、典型的に :func:`hasattr` 判定" "や :term:`EAFP` プログラミングを利用します。" -#: ../../glossary.rst:431 +#: ../../glossary.rst:437 msgid "EAFP" msgstr "EAFP" -#: ../../glossary.rst:433 +#: ../../glossary.rst:439 msgid "" "Easier to ask for forgiveness than permission. This common Python coding " "style assumes the existence of valid keys or attributes and catches " @@ -974,22 +988,22 @@ msgstr "" "す。このテクニックは、C のような言語でよく使われている :term:`LBYL` スタイル" "と対照的なものです。" -#: ../../glossary.rst:439 +#: ../../glossary.rst:445 msgid "evaluate function" msgstr "" -#: ../../glossary.rst:441 +#: ../../glossary.rst:447 msgid "" "A function that can be called to evaluate a lazily evaluated attribute of an " "object, such as the value of type aliases created with the :keyword:`type` " "statement." msgstr "" -#: ../../glossary.rst:444 +#: ../../glossary.rst:450 msgid "expression" msgstr "expression" -#: ../../glossary.rst:446 +#: ../../glossary.rst:452 msgid "" "A piece of syntax which can be evaluated to some value. In other words, an " "expression is an accumulation of expression elements like literals, names, " @@ -1005,11 +1019,11 @@ msgstr "" "素が式というわけではありません。 :keyword:`while` のように、式としては使えな" "い :term:`文 ` もあります。代入も式ではなく文です。" -#: ../../glossary.rst:453 +#: ../../glossary.rst:459 msgid "extension module" msgstr "extension module" -#: ../../glossary.rst:455 +#: ../../glossary.rst:461 msgid "" "A module written in C or C++, using Python's C API to interact with the core " "and with user code." @@ -1017,11 +1031,11 @@ msgstr "" "(拡張モジュール) C や C++ で書かれたモジュールで、Python の C API を利用して " "Python コアやユーザーコードとやりとりします。" -#: ../../glossary.rst:457 +#: ../../glossary.rst:463 msgid "f-string" msgstr "f-string" -#: ../../glossary.rst:459 +#: ../../glossary.rst:465 msgid "" "String literals prefixed with ``'f'`` or ``'F'`` are commonly called \"f-" "strings\" which is short for :ref:`formatted string literals `. " @@ -1031,11 +1045,11 @@ msgstr "" "は :ref:`フォーマット済み文字列リテラル ` の短縮形の名称です。\n" ":pep:`498` も参照してください。" -#: ../../glossary.rst:462 +#: ../../glossary.rst:468 msgid "file object" msgstr "file object" -#: ../../glossary.rst:464 +#: ../../glossary.rst:470 msgid "" "An object exposing a file-oriented API (with methods such as :meth:`!read` " "or :meth:`!write`) to an underlying resource. Depending on the way it was " @@ -1045,7 +1059,7 @@ msgid "" "called :dfn:`file-like objects` or :dfn:`streams`." msgstr "" -#: ../../glossary.rst:472 +#: ../../glossary.rst:478 msgid "" "There are actually three categories of file objects: raw :term:`binary files " "`, buffered :term:`binary files ` and :term:`text " @@ -1059,25 +1073,25 @@ msgstr "" "`io` モジュールで定義されています。ファイルオブジェクトを作る標準的な方法は :" "func:`open` 関数を使うことです。" -#: ../../glossary.rst:477 +#: ../../glossary.rst:483 msgid "file-like object" msgstr "file-like object" -#: ../../glossary.rst:479 +#: ../../glossary.rst:485 msgid "A synonym for :term:`file object`." msgstr ":term:`file object` と同義です。" -#: ../../glossary.rst:480 +#: ../../glossary.rst:486 msgid "filesystem encoding and error handler" msgstr "" -#: ../../glossary.rst:482 +#: ../../glossary.rst:488 msgid "" "Encoding and error handler used by Python to decode bytes from the operating " "system and encode Unicode to the operating system." msgstr "" -#: ../../glossary.rst:485 +#: ../../glossary.rst:491 msgid "" "The filesystem encoding must guarantee to successfully decode all bytes " "below 128. If the file system encoding fails to provide this guarantee, API " @@ -1088,14 +1102,14 @@ msgstr "" "でこれが保証されなかった場合は、API 関数が :exc:`UnicodeError` を送出すること" "があります。" -#: ../../glossary.rst:489 +#: ../../glossary.rst:495 msgid "" "The :func:`sys.getfilesystemencoding` and :func:`sys." "getfilesystemencodeerrors` functions can be used to get the filesystem " "encoding and error handler." msgstr "" -#: ../../glossary.rst:493 +#: ../../glossary.rst:499 msgid "" "The :term:`filesystem encoding and error handler` are configured at Python " "startup by the :c:func:`PyConfig_Read` function: see :c:member:`~PyConfig." @@ -1103,15 +1117,15 @@ msgid "" "c:type:`PyConfig`." msgstr "" -#: ../../glossary.rst:498 +#: ../../glossary.rst:504 msgid "See also the :term:`locale encoding`." msgstr "" -#: ../../glossary.rst:499 +#: ../../glossary.rst:505 msgid "finder" msgstr "finder" -#: ../../glossary.rst:501 +#: ../../glossary.rst:507 msgid "" "An object that tries to find the :term:`loader` for a module that is being " "imported." @@ -1120,23 +1134,23 @@ msgstr "" "インポートされているモジュールの :term:`loader` の発見を試行するオブジェクト" "です。" -#: ../../glossary.rst:504 +#: ../../glossary.rst:510 msgid "" "There are two types of finder: :term:`meta path finders ` " "for use with :data:`sys.meta_path`, and :term:`path entry finders ` for use with :data:`sys.path_hooks`." msgstr "" -#: ../../glossary.rst:508 +#: ../../glossary.rst:514 msgid "" "See :ref:`finders-and-loaders` and :mod:`importlib` for much more detail." msgstr "" -#: ../../glossary.rst:509 +#: ../../glossary.rst:515 msgid "floor division" msgstr "floor division" -#: ../../glossary.rst:511 +#: ../../glossary.rst:517 msgid "" "Mathematical division that rounds down to nearest integer. The floor " "division operator is ``//``. For example, the expression ``11 // 4`` " @@ -1152,11 +1166,11 @@ msgstr "" "を行う) ので ``-3`` になることに注意してください。\n" ":pep:`238` を参照してください。" -#: ../../glossary.rst:516 +#: ../../glossary.rst:522 msgid "free threading" msgstr "" -#: ../../glossary.rst:518 +#: ../../glossary.rst:524 msgid "" "A threading model where multiple threads can run Python bytecode " "simultaneously within the same interpreter. This is in contrast to the :" @@ -1164,11 +1178,11 @@ msgid "" "Python bytecode at a time. See :pep:`703`." msgstr "" -#: ../../glossary.rst:522 +#: ../../glossary.rst:528 msgid "free variable" msgstr "" -#: ../../glossary.rst:524 +#: ../../glossary.rst:530 msgid "" "Formally, as defined in the :ref:`language execution model `, a " "free variable is any variable used in a namespace which is not a local " @@ -1178,11 +1192,11 @@ msgid "" "variable`." msgstr "" -#: ../../glossary.rst:529 +#: ../../glossary.rst:535 msgid "function" msgstr "関数" -#: ../../glossary.rst:531 +#: ../../glossary.rst:537 msgid "" "A series of statements which returns some value to a caller. It can also be " "passed zero or more :term:`arguments ` which may be used in the " @@ -1194,16 +1208,16 @@ msgstr "" "す。 :term:`仮引数 `、:term:`メソッド `、:ref:`function` " "を参照してください。" -#: ../../glossary.rst:535 +#: ../../glossary.rst:541 msgid "function annotation" msgstr "function annotation" -#: ../../glossary.rst:537 +#: ../../glossary.rst:543 msgid "An :term:`annotation` of a function parameter or return value." msgstr "" "(関数アノテーション) 関数のパラメータや返り値の :term:`annotation` です。" -#: ../../glossary.rst:539 +#: ../../glossary.rst:545 msgid "" "Function annotations are usually used for :term:`type hints `: " "for example, this function is expected to take two :class:`int` arguments " @@ -1213,17 +1227,17 @@ msgstr "" "す: 例えば、この関数は 2 つの :class:`int` 型の引数を取ると期待され、また :" "class:`int` 型の返り値を持つと期待されています。" -#: ../../glossary.rst:544 +#: ../../glossary.rst:550 msgid "" "def sum_two_numbers(a: int, b: int) -> int:\n" " return a + b" msgstr "" -#: ../../glossary.rst:547 +#: ../../glossary.rst:553 msgid "Function annotation syntax is explained in section :ref:`function`." msgstr "関数アノテーションの文法は :ref:`function` の節で解説されています。" -#: ../../glossary.rst:549 +#: ../../glossary.rst:555 msgid "" "See :term:`variable annotation` and :pep:`484`, which describe this " "functionality. Also see :ref:`annotations-howto` for best practices on " @@ -1233,11 +1247,11 @@ msgstr "" "また、アノテーションを利用するベストプラクティスとして :ref:`annotations-" "howto` も参照してください。" -#: ../../glossary.rst:553 +#: ../../glossary.rst:559 msgid "__future__" msgstr "__future__" -#: ../../glossary.rst:555 +#: ../../glossary.rst:561 msgid "" "A :ref:`future statement `, ``from __future__ import ``, " "directs the compiler to compile the current module using syntax or semantics " @@ -1254,18 +1268,18 @@ msgstr "" "し、その変数を評価することで、新機能が最初に言語に追加されたのはいつかや、い" "つデフォルトになるか (またはなったか) を見ることができます::" -#: ../../glossary.rst:563 +#: ../../glossary.rst:569 msgid "" ">>> import __future__\n" ">>> __future__.division\n" "_Feature((2, 2, 0, 'alpha', 2), (3, 0, 0, 'alpha', 0), 8192)" msgstr "" -#: ../../glossary.rst:566 +#: ../../glossary.rst:572 msgid "garbage collection" msgstr "garbage collection" -#: ../../glossary.rst:568 +#: ../../glossary.rst:574 msgid "" "The process of freeing memory when it is not used anymore. Python performs " "garbage collection via reference counting and a cyclic garbage collector " @@ -1277,11 +1291,11 @@ msgstr "" "てガベージコレクションを行います。\n" "ガベージコレクタは :mod:`gc` モジュールを使って操作できます。" -#: ../../glossary.rst:573 ../../glossary.rst:574 +#: ../../glossary.rst:579 ../../glossary.rst:580 msgid "generator" msgstr "ジェネレータ" -#: ../../glossary.rst:576 +#: ../../glossary.rst:582 msgid "" "A function which returns a :term:`generator iterator`. It looks like a " "normal function except that it contains :keyword:`yield` expressions for " @@ -1294,7 +1308,7 @@ msgstr "" ":keyword:`yield` 式は、 for ループで使用できたり、:func:`next` 関数で値を 1 " "つずつ取り出したりできる、値の並びを生成するのに使用されます。" -#: ../../glossary.rst:581 +#: ../../glossary.rst:587 msgid "" "Usually refers to a generator function, but may refer to a *generator " "iterator* in some contexts. In cases where the intended meaning isn't " @@ -1304,17 +1318,17 @@ msgstr "" "を指す場合があります。\n" "意図された意味が明らかでない場合、 明瞭化のために完全な単語を使用します。" -#: ../../glossary.rst:584 +#: ../../glossary.rst:590 msgid "generator iterator" msgstr "generator iterator" -#: ../../glossary.rst:586 +#: ../../glossary.rst:592 msgid "An object created by a :term:`generator` function." msgstr "" "(ジェネレータイテレータ)\n" ":term:`generator` 関数で生成されるオブジェクトです。" -#: ../../glossary.rst:588 +#: ../../glossary.rst:594 msgid "" "Each :keyword:`yield` temporarily suspends processing, remembering the " "execution state (including local variables and pending try-statements). " @@ -1322,11 +1336,11 @@ msgid "" "contrast to functions which start fresh on every invocation)." msgstr "" -#: ../../glossary.rst:594 ../../glossary.rst:595 +#: ../../glossary.rst:600 ../../glossary.rst:601 msgid "generator expression" msgstr "generator expression" -#: ../../glossary.rst:597 +#: ../../glossary.rst:603 msgid "" "An :term:`expression` that returns an :term:`iterator`. It looks like a " "normal expression followed by a :keyword:`!for` clause defining a loop " @@ -1334,17 +1348,17 @@ msgid "" "expression generates values for an enclosing function::" msgstr "" -#: ../../glossary.rst:602 +#: ../../glossary.rst:608 msgid "" ">>> sum(i*i for i in range(10)) # sum of squares 0, 1, 4, ... 81\n" "285" msgstr "" -#: ../../glossary.rst:604 +#: ../../glossary.rst:610 msgid "generic function" msgstr "generic function" -#: ../../glossary.rst:606 +#: ../../glossary.rst:612 msgid "" "A function composed of multiple functions implementing the same operation " "for different types. Which implementation should be used during a call is " @@ -1353,7 +1367,7 @@ msgstr "" "(ジェネリック関数) 異なる型に対し同じ操作をする関数群から構成される関数です。" "呼び出し時にどの実装を用いるかはディスパッチアルゴリズムにより決定されます。" -#: ../../glossary.rst:610 +#: ../../glossary.rst:616 msgid "" "See also the :term:`single dispatch` glossary entry, the :func:`functools." "singledispatch` decorator, and :pep:`443`." @@ -1361,36 +1375,36 @@ msgstr "" ":term:`single dispatch`、:func:`functools.singledispatch` デコレータ、:pep:" "`443` を参照してください。" -#: ../../glossary.rst:612 +#: ../../glossary.rst:618 msgid "generic type" msgstr "" -#: ../../glossary.rst:614 +#: ../../glossary.rst:620 msgid "" "A :term:`type` that can be parameterized; typically a :ref:`container " "class` such as :class:`list` or :class:`dict`. Used for :" "term:`type hints ` and :term:`annotations `." msgstr "" -#: ../../glossary.rst:619 +#: ../../glossary.rst:625 msgid "" "For more details, see :ref:`generic alias types`, :pep:" "`483`, :pep:`484`, :pep:`585`, and the :mod:`typing` module." msgstr "" -#: ../../glossary.rst:621 +#: ../../glossary.rst:627 msgid "GIL" msgstr "GIL" -#: ../../glossary.rst:623 +#: ../../glossary.rst:629 msgid "See :term:`global interpreter lock`." msgstr ":term:`global interpreter lock` を参照してください。" -#: ../../glossary.rst:624 +#: ../../glossary.rst:630 msgid "global interpreter lock" msgstr "global interpreter lock" -#: ../../glossary.rst:626 +#: ../../glossary.rst:632 msgid "" "The mechanism used by the :term:`CPython` interpreter to assure that only " "one thread executes Python :term:`bytecode` at a time. This simplifies the " @@ -1408,7 +1422,7 @@ msgstr "" "チプロセッサマシンが生じる並列化のコストと引き換えに、インタプリタを簡単にマ" "ルチスレッド化できるようになります。" -#: ../../glossary.rst:635 +#: ../../glossary.rst:641 msgid "" "However, some extension modules, either standard or third-party, are " "designed so as to release the GIL when doing computationally intensive tasks " @@ -1419,7 +1433,7 @@ msgstr "" "の計算の重い処理をするときに GIL を解除するように設計されています。また、I/O " "処理をする場合 GIL は常に解除されます。" -#: ../../glossary.rst:640 +#: ../../glossary.rst:646 msgid "" "As of Python 3.13, the GIL can be disabled using the :option:`--disable-gil` " "build configuration. After building Python with this option, code must be " @@ -1429,18 +1443,18 @@ msgid "" "core CPUs efficiently. For more details, see :pep:`703`." msgstr "" -#: ../../glossary.rst:647 +#: ../../glossary.rst:653 msgid "" "In prior versions of Python's C API, a function might declare that it " "requires the GIL to be held in order to use it. This refers to having an :" "term:`attached thread state`." msgstr "" -#: ../../glossary.rst:650 +#: ../../glossary.rst:656 msgid "hash-based pyc" msgstr "hash-based pyc" -#: ../../glossary.rst:652 +#: ../../glossary.rst:658 msgid "" "A bytecode cache file that uses the hash rather than the last-modified time " "of the corresponding source file to determine its validity. See :ref:`pyc-" @@ -1450,11 +1464,11 @@ msgstr "" "の最終更新時刻ではなくハッシュ値を使用するバイトコードのキャッシュファイルで" "す。:ref:`pyc-invalidation` を参照してください。" -#: ../../glossary.rst:655 +#: ../../glossary.rst:661 msgid "hashable" msgstr "hashable" -#: ../../glossary.rst:657 +#: ../../glossary.rst:663 msgid "" "An object is *hashable* if it has a hash value which never changes during " "its lifetime (it needs a :meth:`~object.__hash__` method), and can be " @@ -1462,7 +1476,7 @@ msgid "" "Hashable objects which compare equal must have the same hash value." msgstr "" -#: ../../glossary.rst:663 +#: ../../glossary.rst:669 msgid "" "Hashability makes an object usable as a dictionary key and a set member, " "because these data structures use the hash value internally." @@ -1470,7 +1484,7 @@ msgstr "" "ハッシュ可能なオブジェクトは辞書のキーや集合のメンバーとして使えます。辞書や" "集合のデータ構造は内部でハッシュ値を使っているからです。" -#: ../../glossary.rst:666 +#: ../../glossary.rst:672 msgid "" "Most of Python's immutable built-in objects are hashable; mutable containers " "(such as lists or dictionaries) are not; immutable containers (such as " @@ -1488,11 +1502,11 @@ msgstr "" "それらは全て (自身を除いて) 比較結果は非等価であり、ハッシュ値は :func:`id` " "より得られます。" -#: ../../glossary.rst:673 +#: ../../glossary.rst:679 msgid "IDLE" msgstr "IDLE" -#: ../../glossary.rst:675 +#: ../../glossary.rst:681 msgid "" "An Integrated Development and Learning Environment for Python. :ref:`idle` " "is a basic editor and interpreter environment which ships with the standard " @@ -1502,34 +1516,34 @@ msgstr "" "(Learning Environment) です。:ref:`idle` は Python の標準的な配布に同梱されて" "いる基本的な機能のエディタとインタプリタ環境です。" -#: ../../glossary.rst:678 +#: ../../glossary.rst:684 msgid "immortal" msgstr "永続オブジェクト (immortal)" -#: ../../glossary.rst:680 +#: ../../glossary.rst:686 msgid "" "*Immortal objects* are a CPython implementation detail introduced in :pep:" "`683`." msgstr "" -#: ../../glossary.rst:683 +#: ../../glossary.rst:689 msgid "" "If an object is immortal, its :term:`reference count` is never modified, and " "therefore it is never deallocated while the interpreter is running. For " "example, :const:`True` and :const:`None` are immortal in CPython." msgstr "" -#: ../../glossary.rst:687 +#: ../../glossary.rst:693 msgid "" "Immortal objects can be identified via :func:`sys._is_immortal`, or via :c:" "func:`PyUnstable_IsImmortal` in the C API." msgstr "" -#: ../../glossary.rst:689 +#: ../../glossary.rst:695 msgid "immutable" msgstr "immutable" -#: ../../glossary.rst:691 +#: ../../glossary.rst:697 msgid "" "An object with a fixed value. Immutable objects include numbers, strings " "and tuples. Such an object cannot be altered. A new object has to be " @@ -1543,11 +1557,11 @@ msgstr "" "なりません。イミュータブルなオブジェクトは、固定のハッシュ値が必要となる状況" "で重要な役割を果たします。辞書のキーがその例です。" -#: ../../glossary.rst:696 +#: ../../glossary.rst:702 msgid "import path" msgstr "import path" -#: ../../glossary.rst:698 +#: ../../glossary.rst:704 msgid "" "A list of locations (or :term:`path entries `) that are searched " "by the :term:`path based finder` for modules to import. During import, this " @@ -1559,11 +1573,11 @@ msgstr "" "ら来ますが、サブパッケージの場合は親パッケージの ``__path__`` 属性からも来ま" "す。" -#: ../../glossary.rst:703 +#: ../../glossary.rst:709 msgid "importing" msgstr "importing" -#: ../../glossary.rst:705 +#: ../../glossary.rst:711 msgid "" "The process by which Python code in one module is made available to Python " "code in another module." @@ -1571,11 +1585,11 @@ msgstr "" "あるモジュールの Python コードが別のモジュールの Python コードで使えるように" "する処理です。" -#: ../../glossary.rst:707 +#: ../../glossary.rst:713 msgid "importer" msgstr "importer" -#: ../../glossary.rst:709 +#: ../../glossary.rst:715 msgid "" "An object that both finds and loads a module; both a :term:`finder` and :" "term:`loader` object." @@ -1583,11 +1597,11 @@ msgstr "" "モジュールを探してロードするオブジェクト。 :term:`finder` と :term:`loader` " "のどちらでもあるオブジェクト。" -#: ../../glossary.rst:711 +#: ../../glossary.rst:717 msgid "interactive" msgstr "interactive" -#: ../../glossary.rst:713 +#: ../../glossary.rst:719 msgid "" "Python has an interactive interpreter which means you can enter statements " "and expressions at the interpreter prompt, immediately execute them and see " @@ -1597,11 +1611,11 @@ msgid "" "For more on interactive mode, see :ref:`tut-interac`." msgstr "" -#: ../../glossary.rst:720 +#: ../../glossary.rst:726 msgid "interpreted" msgstr "interpreted" -#: ../../glossary.rst:722 +#: ../../glossary.rst:728 msgid "" "Python is an interpreted language, as opposed to a compiled one, though the " "distinction can be blurry because of the presence of the bytecode compiler. " @@ -1617,11 +1631,11 @@ msgstr "" "常、コンパイラ形式の言語よりも開発/デバッグのサイクルは短いものの、プログラ" "ムの実行は一般に遅いです。 :term:`対話的 ` も参照してください。" -#: ../../glossary.rst:729 +#: ../../glossary.rst:735 msgid "interpreter shutdown" msgstr "interpreter shutdown" -#: ../../glossary.rst:731 +#: ../../glossary.rst:737 msgid "" "When asked to shut down, the Python interpreter enters a special phase where " "it gradually releases all allocated resources, such as modules and various " @@ -1643,7 +1657,7 @@ msgstr "" "機能しない(よくある例はライブラリーモジュールや warning 機構です) ために様々" "な例外に直面します。" -#: ../../glossary.rst:740 +#: ../../glossary.rst:746 msgid "" "The main reason for interpreter shutdown is that the ``__main__`` module or " "the script being run has finished executing." @@ -1651,11 +1665,11 @@ msgstr "" "インタープリタがシャットダウンする主な理由は ``__main__`` モジュールや実行さ" "れていたスクリプトの実行が終了したことです。" -#: ../../glossary.rst:742 +#: ../../glossary.rst:748 msgid "iterable" msgstr "iterable" -#: ../../glossary.rst:744 +#: ../../glossary.rst:750 msgid "" "An object capable of returning its members one at a time. Examples of " "iterables include all sequence types (such as :class:`list`, :class:`str`, " @@ -1665,7 +1679,7 @@ msgid "" "that implements :term:`sequence` semantics." msgstr "" -#: ../../glossary.rst:752 +#: ../../glossary.rst:758 msgid "" "Iterables can be used in a :keyword:`for` loop and in many other places " "where a sequence is needed (:func:`zip`, :func:`map`, ...). When an " @@ -1678,11 +1692,11 @@ msgid "" "loop. See also :term:`iterator`, :term:`sequence`, and :term:`generator`." msgstr "" -#: ../../glossary.rst:762 +#: ../../glossary.rst:768 msgid "iterator" msgstr "iterator" -#: ../../glossary.rst:764 +#: ../../glossary.rst:770 msgid "" "An object representing a stream of data. Repeated calls to the iterator's :" "meth:`~iterator.__next__` method (or passing it to the built-in function :" @@ -1713,22 +1727,22 @@ msgstr "" "前回のイテレーションで使用済みの同じイテレータオブジェクトを単純に返すため、" "空のコンテナのようになってしまします。" -#: ../../glossary.rst:779 +#: ../../glossary.rst:785 msgid "More information can be found in :ref:`typeiter`." msgstr "詳細な情報は :ref:`typeiter` にあります。" -#: ../../glossary.rst:783 +#: ../../glossary.rst:789 msgid "" "CPython does not consistently apply the requirement that an iterator define :" "meth:`~iterator.__iter__`. And also please note that the free-threading " "CPython does not guarantee the thread-safety of iterator operations." msgstr "" -#: ../../glossary.rst:788 +#: ../../glossary.rst:794 msgid "key function" msgstr "key function" -#: ../../glossary.rst:790 +#: ../../glossary.rst:796 msgid "" "A key function or collation function is a callable that returns a value used " "for sorting or ordering. For example, :func:`locale.strxfrm` is used to " @@ -1738,7 +1752,7 @@ msgstr "" "び出し可能オブジェクト(callable)です。例えば、 :func:`locale.strxfrm` をキー" "関数に使えば、ロケール依存のソートの慣習にのっとったソートキーを返します。" -#: ../../glossary.rst:795 +#: ../../glossary.rst:801 msgid "" "A number of tools in Python accept key functions to control how elements are " "ordered or grouped. They include :func:`min`, :func:`max`, :func:`sorted`, :" @@ -1751,7 +1765,7 @@ msgstr "" "merge`, :func:`heapq.nsmallest`, :func:`heapq.nlargest`, :func:`itertools." "groupby` 等があります。" -#: ../../glossary.rst:801 +#: ../../glossary.rst:807 msgid "" "There are several ways to create a key function. For example. the :meth:" "`str.lower` method can serve as a key function for case insensitive sorts. " @@ -1771,19 +1785,19 @@ msgstr "" "キー関数の作り方と使い方の例は :ref:`Sorting HOW TO ` を参照し" "てください。" -#: ../../glossary.rst:808 +#: ../../glossary.rst:814 msgid "keyword argument" msgstr "keyword argument" -#: ../../glossary.rst:810 ../../glossary.rst:1125 +#: ../../glossary.rst:816 ../../glossary.rst:1131 msgid "See :term:`argument`." msgstr ":term:`実引数 ` を参照してください。" -#: ../../glossary.rst:811 +#: ../../glossary.rst:817 msgid "lambda" msgstr "lambda" -#: ../../glossary.rst:813 +#: ../../glossary.rst:819 msgid "" "An anonymous inline function consisting of a single :term:`expression` which " "is evaluated when the function is called. The syntax to create a lambda " @@ -1793,11 +1807,11 @@ msgstr "" "term:`式 ` を含みます。ラムダ関数を作る構文は ``lambda " "[parameters]: expression`` です。" -#: ../../glossary.rst:816 +#: ../../glossary.rst:822 msgid "LBYL" msgstr "LBYL" -#: ../../glossary.rst:818 +#: ../../glossary.rst:824 msgid "" "Look before you leap. This coding style explicitly tests for pre-conditions " "before making calls or lookups. This style contrasts with the :term:`EAFP` " @@ -1809,7 +1823,7 @@ msgstr "" "す。 :term:`EAFP` アプローチと対照的で、 :keyword:`if` 文がたくさん使われるの" "が特徴的です。" -#: ../../glossary.rst:823 +#: ../../glossary.rst:829 msgid "" "In a multi-threaded environment, the LBYL approach can risk introducing a " "race condition between \"the looking\" and \"the leaping\". For example, " @@ -1823,30 +1837,30 @@ msgstr "" "*mapping* から *key* を取り除くと失敗します。この問題は、ロックするか EAFP ア" "プローチを使うことで解決できます。" -#: ../../glossary.rst:828 +#: ../../glossary.rst:834 msgid "lexical analyzer" msgstr "" -#: ../../glossary.rst:831 +#: ../../glossary.rst:837 msgid "Formal name for the *tokenizer*; see :term:`token`." msgstr "" -#: ../../glossary.rst:832 +#: ../../glossary.rst:838 msgid "list" msgstr "list" -#: ../../glossary.rst:834 +#: ../../glossary.rst:840 msgid "" "A built-in Python :term:`sequence`. Despite its name it is more akin to an " "array in other languages than to a linked list since access to elements is " "*O*\\ (1)." msgstr "" -#: ../../glossary.rst:837 +#: ../../glossary.rst:843 msgid "list comprehension" msgstr "list comprehension" -#: ../../glossary.rst:839 +#: ../../glossary.rst:845 msgid "" "A compact way to process all or part of the elements in a sequence and " "return a list with the results. ``result = ['{:#04x}'.format(x) for x in " @@ -1861,11 +1875,11 @@ msgstr "" "です。 :keyword:`if` 節がない場合、 ``range(256)`` の全ての要素が処理されま" "す。" -#: ../../glossary.rst:845 +#: ../../glossary.rst:851 msgid "loader" msgstr "loader" -#: ../../glossary.rst:847 +#: ../../glossary.rst:853 msgid "" "An object that loads a module. It must define the :meth:`!exec_module` and :" "meth:`!create_module` methods to implement the :class:`~importlib.abc." @@ -1873,58 +1887,58 @@ msgid "" "also:" msgstr "" -#: ../../glossary.rst:853 +#: ../../glossary.rst:859 msgid ":ref:`finders-and-loaders`" msgstr "" -#: ../../glossary.rst:854 +#: ../../glossary.rst:860 msgid ":class:`importlib.abc.Loader`" msgstr "" -#: ../../glossary.rst:855 +#: ../../glossary.rst:861 msgid ":pep:`302`" msgstr ":pep:`302`" -#: ../../glossary.rst:856 +#: ../../glossary.rst:862 msgid "locale encoding" msgstr "ロケールエンコーディング" -#: ../../glossary.rst:858 +#: ../../glossary.rst:864 msgid "" "On Unix, it is the encoding of the LC_CTYPE locale. It can be set with :func:" "`locale.setlocale(locale.LC_CTYPE, new_locale) `." msgstr "" -#: ../../glossary.rst:861 +#: ../../glossary.rst:867 msgid "On Windows, it is the ANSI code page (ex: ``\"cp1252\"``)." msgstr "" -#: ../../glossary.rst:863 +#: ../../glossary.rst:869 msgid "" "On Android and VxWorks, Python uses ``\"utf-8\"`` as the locale encoding." msgstr "" -#: ../../glossary.rst:865 +#: ../../glossary.rst:871 msgid ":func:`locale.getencoding` can be used to get the locale encoding." msgstr "" -#: ../../glossary.rst:867 +#: ../../glossary.rst:873 msgid "See also the :term:`filesystem encoding and error handler`." msgstr "" -#: ../../glossary.rst:868 +#: ../../glossary.rst:874 msgid "magic method" msgstr "magic method" -#: ../../glossary.rst:872 +#: ../../glossary.rst:878 msgid "An informal synonym for :term:`special method`." msgstr ":term:`special method` のくだけた同義語です。" -#: ../../glossary.rst:873 +#: ../../glossary.rst:879 msgid "mapping" msgstr "mapping" -#: ../../glossary.rst:875 +#: ../../glossary.rst:881 msgid "" "A container object that supports arbitrary key lookups and implements the " "methods specified in the :class:`collections.abc.Mapping` or :class:" @@ -1940,11 +1954,11 @@ msgstr "" "defaultdict`, :class:`collections.OrderedDict`, :class:`collections.Counter` " "などです。" -#: ../../glossary.rst:881 +#: ../../glossary.rst:887 msgid "meta path finder" msgstr "meta path finder" -#: ../../glossary.rst:883 +#: ../../glossary.rst:889 msgid "" "A :term:`finder` returned by a search of :data:`sys.meta_path`. Meta path " "finders are related to, but different from :term:`path entry finders ` と :term:`ネストされたスコープ ` も参照" "してください。" -#: ../../glossary.rst:908 +#: ../../glossary.rst:914 msgid "method resolution order" msgstr "method resolution order" -#: ../../glossary.rst:910 +#: ../../glossary.rst:916 msgid "" "Method Resolution Order is the order in which base classes are searched for " "a member during lookup. See :ref:`python_2.3_mro` for details of the " "algorithm used by the Python interpreter since the 2.3 release." msgstr "" -#: ../../glossary.rst:913 +#: ../../glossary.rst:919 msgid "module" msgstr "module" -#: ../../glossary.rst:915 +#: ../../glossary.rst:921 msgid "" "An object that serves as an organizational unit of Python code. Modules " "have a namespace containing arbitrary Python objects. Modules are loaded " @@ -2033,15 +2047,15 @@ msgstr "" "ルは任意の Python オブジェクトを含む名前空間を持ちます。モジュールは :term:" "`importing` の処理によって Python に読み込まれます。" -#: ../../glossary.rst:919 +#: ../../glossary.rst:925 msgid "See also :term:`package`." msgstr ":term:`パッケージ ` を参照してください。" -#: ../../glossary.rst:920 +#: ../../glossary.rst:926 msgid "module spec" msgstr "module spec" -#: ../../glossary.rst:922 +#: ../../glossary.rst:928 msgid "" "A namespace containing the import-related information used to load a module. " "An instance of :class:`importlib.machinery.ModuleSpec`." @@ -2049,23 +2063,23 @@ msgstr "" "モジュールをロードするのに使われるインポート関連の情報を含む名前空間です。\n" ":class:`importlib.machinery.ModuleSpec` のインスタンスです。" -#: ../../glossary.rst:925 +#: ../../glossary.rst:931 msgid "See also :ref:`module-specs`." msgstr "" -#: ../../glossary.rst:926 +#: ../../glossary.rst:932 msgid "MRO" msgstr "MRO" -#: ../../glossary.rst:928 +#: ../../glossary.rst:934 msgid "See :term:`method resolution order`." msgstr ":term:`method resolution order` を参照してください。" -#: ../../glossary.rst:929 +#: ../../glossary.rst:935 msgid "mutable" msgstr "mutable" -#: ../../glossary.rst:931 +#: ../../glossary.rst:937 msgid "" "Mutable objects can change their value but keep their :func:`id`. See also :" "term:`immutable`." @@ -2073,11 +2087,11 @@ msgstr "" "(ミュータブル) ミュータブルなオブジェクトは、 :func:`id` を変えることなく値を" "変更できます。 :term:`イミュータブル `) も参照してください。" -#: ../../glossary.rst:933 +#: ../../glossary.rst:939 msgid "named tuple" msgstr "named tuple" -#: ../../glossary.rst:935 +#: ../../glossary.rst:941 msgid "" "The term \"named tuple\" applies to any type or class that inherits from " "tuple and whose indexable elements are also accessible using named " @@ -2087,7 +2101,7 @@ msgstr "" "に対し属性を使ってのアクセスもできる任意の型やクラスに応用されています。\n" "その型やクラスは他の機能も持っていることもあります。" -#: ../../glossary.rst:939 +#: ../../glossary.rst:945 msgid "" "Several built-in types are named tuples, including the values returned by :" "func:`time.localtime` and :func:`os.stat`. Another example is :data:`sys." @@ -2097,7 +2111,7 @@ msgstr "" "は名前付きタプルです。\n" "他の例は :data:`sys.float_info` です::" -#: ../../glossary.rst:943 +#: ../../glossary.rst:949 msgid "" ">>> sys.float_info[1] # indexed access\n" "1024\n" @@ -2107,7 +2121,7 @@ msgid "" "True" msgstr "" -#: ../../glossary.rst:950 +#: ../../glossary.rst:956 msgid "" "Some named tuples are built-in types (such as the above examples). " "Alternatively, a named tuple can be created from a regular class definition " @@ -2118,11 +2132,11 @@ msgid "" "be found in hand-written or built-in named tuples." msgstr "" -#: ../../glossary.rst:958 +#: ../../glossary.rst:964 msgid "namespace" msgstr "namespace" -#: ../../glossary.rst:960 +#: ../../glossary.rst:966 msgid "" "The place where a variable is stored. Namespaces are implemented as " "dictionaries. There are the local, global and built-in namespaces as well " @@ -2144,38 +2158,38 @@ msgstr "" "れモジュール :mod:`random` や :mod:`itertools` で実装されていることが明らかで" "す。" -#: ../../glossary.rst:970 +#: ../../glossary.rst:976 msgid "namespace package" msgstr "namespace package" -#: ../../glossary.rst:972 +#: ../../glossary.rst:978 msgid "" "A :term:`package` which serves only as a container for subpackages. " "Namespace packages may have no physical representation, and specifically are " "not like a :term:`regular package` because they have no ``__init__.py`` file." msgstr "" -#: ../../glossary.rst:977 +#: ../../glossary.rst:983 msgid "" "Namespace packages allow several individually installable packages to have a " "common parent package. Otherwise, it is recommended to use a :term:`regular " "package`." msgstr "" -#: ../../glossary.rst:980 +#: ../../glossary.rst:986 msgid "" "For more information, see :pep:`420` and :ref:`reference-namespace-package`." msgstr "" -#: ../../glossary.rst:982 +#: ../../glossary.rst:988 msgid "See also :term:`module`." msgstr ":term:`module` を参照してください。" -#: ../../glossary.rst:983 +#: ../../glossary.rst:989 msgid "nested scope" msgstr "nested scope" -#: ../../glossary.rst:985 +#: ../../glossary.rst:991 msgid "" "The ability to refer to a variable in an enclosing definition. For " "instance, a function defined inside another function can refer to variables " @@ -2191,11 +2205,11 @@ msgstr "" "を読み書きします。同様に、グローバル変数を使うとグローバル名前空間の値を読み" "書きします。 :keyword:`nonlocal` で外側の変数に書き込めます。" -#: ../../glossary.rst:992 +#: ../../glossary.rst:998 msgid "new-style class" msgstr "new-style class" -#: ../../glossary.rst:994 +#: ../../glossary.rst:1000 msgid "" "Old name for the flavor of classes now used for all class objects. In " "earlier Python versions, only new-style classes could use Python's newer, " @@ -2203,11 +2217,11 @@ msgid "" "meth:`~object.__getattribute__`, class methods, and static methods." msgstr "" -#: ../../glossary.rst:999 +#: ../../glossary.rst:1005 msgid "object" msgstr "object" -#: ../../glossary.rst:1001 +#: ../../glossary.rst:1007 msgid "" "Any data with state (attributes or value) and defined behavior (methods). " "Also the ultimate base class of any :term:`new-style class`." @@ -2216,11 +2230,11 @@ msgstr "" "データ。もしくは、全ての :term:`新スタイルクラス ` の究極の" "基底クラスのこと。" -#: ../../glossary.rst:1004 +#: ../../glossary.rst:1010 msgid "optimized scope" msgstr "" -#: ../../glossary.rst:1006 +#: ../../glossary.rst:1012 msgid "" "A scope where target local variable names are reliably known to the compiler " "when the code is compiled, allowing optimization of read and write access to " @@ -2231,11 +2245,11 @@ msgid "" "to optimized scopes." msgstr "" -#: ../../glossary.rst:1013 +#: ../../glossary.rst:1019 msgid "package" msgstr "package" -#: ../../glossary.rst:1015 +#: ../../glossary.rst:1021 msgid "" "A Python :term:`module` which can contain submodules or recursively, " "subpackages. Technically, a package is a Python module with a ``__path__`` " @@ -2245,16 +2259,16 @@ msgstr "" "`module` のことです。専門的には、パッケージは ``__path__`` 属性を持つ Python " "オブジェクトです。" -#: ../../glossary.rst:1019 +#: ../../glossary.rst:1025 msgid "See also :term:`regular package` and :term:`namespace package`." msgstr "" ":term:`regular package` と :term:`namespace package` を参照してください。" -#: ../../glossary.rst:1020 +#: ../../glossary.rst:1026 msgid "parameter" msgstr "parameter" -#: ../../glossary.rst:1022 +#: ../../glossary.rst:1028 msgid "" "A named entity in a :term:`function` (or method) definition that specifies " "an :term:`argument` (or in some cases, arguments) that the function can " @@ -2264,7 +2278,7 @@ msgstr "" "` ) の定義において関数が受ける :term:`実引数 ` を指定しま" "す。仮引数には5種類あります:" -#: ../../glossary.rst:1026 +#: ../../glossary.rst:1032 msgid "" ":dfn:`positional-or-keyword`: specifies an argument that can be passed " "either :term:`positionally ` or as a :term:`keyword argument " @@ -2275,11 +2289,11 @@ msgstr "" "ワード引数 ` として渡すことができる引数を指定します。\n" "これはたとえば以下の *foo* や *bar* のように、デフォルトの仮引数の種類です::" -#: ../../glossary.rst:1031 +#: ../../glossary.rst:1037 msgid "def func(foo, bar=None): ..." msgstr "" -#: ../../glossary.rst:1035 +#: ../../glossary.rst:1041 msgid "" ":dfn:`positional-only`: specifies an argument that can be supplied only by " "position. Positional-only parameters can be defined by including a ``/`` " @@ -2290,11 +2304,11 @@ msgstr "" "義の引数のリストの中でそれらの後ろに ``/`` を含めることで定義できます。例えば" "下記の *posonly1* と *posonly2* は位置専用引数になります:: " -#: ../../glossary.rst:1040 +#: ../../glossary.rst:1046 msgid "def func(posonly1, posonly2, /, positional_or_keyword): ..." msgstr "" -#: ../../glossary.rst:1044 +#: ../../glossary.rst:1050 msgid "" ":dfn:`keyword-only`: specifies an argument that can be supplied only by " "keyword. Keyword-only parameters can be defined by including a single var-" @@ -2307,11 +2321,11 @@ msgstr "" "ように、関数定義の仮引数リストに含めた可変長位置引数または裸の ``*`` の後で" "す::" -#: ../../glossary.rst:1050 +#: ../../glossary.rst:1056 msgid "def func(arg, *, kw_only1, kw_only2): ..." msgstr "" -#: ../../glossary.rst:1052 +#: ../../glossary.rst:1058 msgid "" ":dfn:`var-positional`: specifies that an arbitrary sequence of positional " "arguments can be provided (in addition to any positional arguments already " @@ -2323,11 +2337,11 @@ msgstr "" "個数の位置引数が与えられることを指定します。このような仮引数は、以下の " "*args* のように仮引数名の前に ``*`` をつけることで定義できます::" -#: ../../glossary.rst:1058 +#: ../../glossary.rst:1064 msgid "def func(*args, **kwargs): ..." msgstr "" -#: ../../glossary.rst:1060 +#: ../../glossary.rst:1066 msgid "" ":dfn:`var-keyword`: specifies that arbitrarily many keyword arguments can be " "provided (in addition to any keyword arguments already accepted by other " @@ -2339,7 +2353,7 @@ msgstr "" "数は、上の例の *kwargs* のように仮引数名の前に ``**`` をつけることで定義でき" "ます。" -#: ../../glossary.rst:1066 +#: ../../glossary.rst:1072 msgid "" "Parameters can specify both optional and required arguments, as well as " "default values for some optional arguments." @@ -2347,7 +2361,7 @@ msgstr "" "仮引数はオプションと必須の引数のどちらも指定でき、オプションの引数にはデフォ" "ルト値も指定できます。" -#: ../../glossary.rst:1069 +#: ../../glossary.rst:1075 msgid "" "See also the :term:`argument` glossary entry, the FAQ question on :ref:`the " "difference between arguments and parameters `, " @@ -2358,11 +2372,11 @@ msgstr "" "` 、:class:`inspect.Parameter` クラス、 :ref:" "`function` セクション、:pep:`362` を参照してください。" -#: ../../glossary.rst:1073 +#: ../../glossary.rst:1079 msgid "path entry" msgstr "path entry" -#: ../../glossary.rst:1075 +#: ../../glossary.rst:1081 msgid "" "A single location on the :term:`import path` which the :term:`path based " "finder` consults to find modules for importing." @@ -2370,11 +2384,11 @@ msgstr "" ":term:`path based finder` が import するモジュールを探す :term:`import path` " "上の1つの場所です。" -#: ../../glossary.rst:1077 +#: ../../glossary.rst:1083 msgid "path entry finder" msgstr "path entry finder" -#: ../../glossary.rst:1079 +#: ../../glossary.rst:1085 msgid "" "A :term:`finder` returned by a callable on :data:`sys.path_hooks` (i.e. a :" "term:`path entry hook`) which knows how to locate modules given a :term:" @@ -2384,7 +2398,7 @@ msgstr "" "した :term:`finder` です。与えられた :term:`path entry` にあるモジュールを見" "つける方法を知っています。" -#: ../../glossary.rst:1083 +#: ../../glossary.rst:1089 msgid "" "See :class:`importlib.abc.PathEntryFinder` for the methods that path entry " "finders implement." @@ -2392,22 +2406,22 @@ msgstr "" "パスエントリーファインダが実装するメソッドについては :class:`importlib.abc." "PathEntryFinder` を参照してください。" -#: ../../glossary.rst:1085 +#: ../../glossary.rst:1091 msgid "path entry hook" msgstr "path entry hook" -#: ../../glossary.rst:1087 +#: ../../glossary.rst:1093 msgid "" "A callable on the :data:`sys.path_hooks` list which returns a :term:`path " "entry finder` if it knows how to find modules on a specific :term:`path " "entry`." msgstr "" -#: ../../glossary.rst:1090 +#: ../../glossary.rst:1096 msgid "path based finder" msgstr "path based finder" -#: ../../glossary.rst:1092 +#: ../../glossary.rst:1098 msgid "" "One of the default :term:`meta path finders ` which " "searches an :term:`import path` for modules." @@ -2415,11 +2429,11 @@ msgstr "" "デフォルトの :term:`meta path finder` の1つは、モジュールの :term:`import " "path` を検索します。" -#: ../../glossary.rst:1094 +#: ../../glossary.rst:1100 msgid "path-like object" msgstr "path-like object" -#: ../../glossary.rst:1096 +#: ../../glossary.rst:1102 msgid "" "An object representing a file system path. A path-like object is either a :" "class:`str` or :class:`bytes` object representing a path, or an object " @@ -2440,11 +2454,11 @@ msgstr "" "れ :class:`str` あるいは :class:`bytes` になるのを保証するのに使えます。\n" ":pep:`519` で導入されました。" -#: ../../glossary.rst:1104 +#: ../../glossary.rst:1110 msgid "PEP" msgstr "PEP" -#: ../../glossary.rst:1106 +#: ../../glossary.rst:1112 msgid "" "Python Enhancement Proposal. A PEP is a design document providing " "information to the Python community, or describing a new feature for Python " @@ -2456,7 +2470,7 @@ msgstr "" "PEP は、機能についての簡潔な技術的仕様と提案する機能の論拠 (理論) を伝えるべ" "きです。" -#: ../../glossary.rst:1112 +#: ../../glossary.rst:1118 msgid "" "PEPs are intended to be the primary mechanisms for proposing major new " "features, for collecting community input on an issue, and for documenting " @@ -2469,15 +2483,15 @@ msgstr "" "著者にはコミュニティ内の合意形成を行うこと、反対意見を文書化することの責務が" "あります。" -#: ../../glossary.rst:1118 +#: ../../glossary.rst:1124 msgid "See :pep:`1`." msgstr ":pep:`1` を参照してください。" -#: ../../glossary.rst:1119 +#: ../../glossary.rst:1125 msgid "portion" msgstr "portion" -#: ../../glossary.rst:1121 +#: ../../glossary.rst:1127 msgid "" "A set of files in a single directory (possibly stored in a zip file) that " "contribute to a namespace package, as defined in :pep:`420`." @@ -2485,15 +2499,15 @@ msgstr "" ":pep:`420` で定義されている、namespace package に属する、複数のファイルが " "(zipファイルに格納されている場合もある) 1つのディレクトリに格納されたもの。" -#: ../../glossary.rst:1123 +#: ../../glossary.rst:1129 msgid "positional argument" msgstr "位置引数 (positional argument)" -#: ../../glossary.rst:1126 +#: ../../glossary.rst:1132 msgid "provisional API" msgstr "provisional API" -#: ../../glossary.rst:1128 +#: ../../glossary.rst:1134 msgid "" "A provisional API is one which has been deliberately excluded from the " "standard library's backwards compatibility guarantees. While major changes " @@ -2510,7 +2524,7 @@ msgstr "" "ものではありません -- これは API を組み込む前には見落とされていた重大な欠陥が" "露呈したときにのみ行われます。" -#: ../../glossary.rst:1137 +#: ../../glossary.rst:1143 msgid "" "Even for provisional APIs, backwards incompatible changes are seen as a " "\"solution of last resort\" - every attempt will still be made to find a " @@ -2519,7 +2533,7 @@ msgstr "" "暫定 API についても、後方互換性のない変更は「最終手段」とみなされています。問" "題点が判明した場合でも後方互換な解決策を探すべきです。" -#: ../../glossary.rst:1141 +#: ../../glossary.rst:1147 msgid "" "This process allows the standard library to continue to evolve over time, " "without locking in problematic design errors for extended periods of time. " @@ -2529,19 +2543,19 @@ msgstr "" "られることなく、時代を超えて進化を続けられます。詳細は :pep:`411` を参照して" "ください。" -#: ../../glossary.rst:1144 +#: ../../glossary.rst:1150 msgid "provisional package" msgstr "provisional package" -#: ../../glossary.rst:1146 +#: ../../glossary.rst:1152 msgid "See :term:`provisional API`." msgstr ":term:`provisional API` を参照してください。" -#: ../../glossary.rst:1147 +#: ../../glossary.rst:1153 msgid "Python 3000" msgstr "Python 3000" -#: ../../glossary.rst:1149 +#: ../../glossary.rst:1155 msgid "" "Nickname for the Python 3.x release line (coined long ago when the release " "of version 3 was something in the distant future.) This is also abbreviated " @@ -2550,11 +2564,11 @@ msgstr "" "Python 3.x リリースラインのニックネームです。(Python 3 が遠い将来の話だった頃" "に作られた言葉です。) \"Py3k\" と略されることもあります。" -#: ../../glossary.rst:1152 +#: ../../glossary.rst:1158 msgid "Pythonic" msgstr "Pythonic" -#: ../../glossary.rst:1154 +#: ../../glossary.rst:1160 msgid "" "An idea or piece of code which closely follows the most common idioms of the " "Python language, rather than implementing code using concepts common to " @@ -2569,27 +2583,27 @@ msgstr "" "くの言語にはこの仕組みはないので、Python に慣れていない人は代わりに数値のカウ" "ンターを使うかもしれません::" -#: ../../glossary.rst:1161 +#: ../../glossary.rst:1167 msgid "" "for i in range(len(food)):\n" " print(food[i])" msgstr "" -#: ../../glossary.rst:1164 +#: ../../glossary.rst:1170 msgid "As opposed to the cleaner, Pythonic method::" msgstr "これに対し、きれいな Pythonic な方法は::" -#: ../../glossary.rst:1166 +#: ../../glossary.rst:1172 msgid "" "for piece in food:\n" " print(piece)" msgstr "" -#: ../../glossary.rst:1168 +#: ../../glossary.rst:1174 msgid "qualified name" msgstr "qualified name" -#: ../../glossary.rst:1170 +#: ../../glossary.rst:1176 msgid "" "A dotted name showing the \"path\" from a module's global scope to a class, " "function or method defined in that module, as defined in :pep:`3155`. For " @@ -2601,7 +2615,7 @@ msgstr "" "されています。トップレベルの関数やクラスでは、修飾名はオブジェクトの名前と同" "じです::" -#: ../../glossary.rst:1175 +#: ../../glossary.rst:1181 msgid "" ">>> class C:\n" "... class D:\n" @@ -2616,7 +2630,7 @@ msgid "" "'C.D.meth'" msgstr "" -#: ../../glossary.rst:1187 +#: ../../glossary.rst:1193 msgid "" "When used to refer to modules, the *fully qualified name* means the entire " "dotted path to the module, including any parent packages, e.g. ``email.mime." @@ -2626,18 +2640,18 @@ msgstr "" "の親パッケージを含む全体のドット名表記、例えば ``email.mime.text`` を意味しま" "す::" -#: ../../glossary.rst:1191 +#: ../../glossary.rst:1197 msgid "" ">>> import email.mime.text\n" ">>> email.mime.text.__name__\n" "'email.mime.text'" msgstr "" -#: ../../glossary.rst:1194 +#: ../../glossary.rst:1200 msgid "reference count" msgstr "reference count" -#: ../../glossary.rst:1196 +#: ../../glossary.rst:1202 msgid "" "The number of references to an object. When the reference count of an " "object drops to zero, it is deallocated. Some objects are :term:`immortal` " @@ -2654,11 +2668,11 @@ msgstr "" "の重要な要素です。プログラマーは、 任意のオブジェクトの参照カウントを知るため" "に :func:`sys.getrefcount` 関数を呼び出すことが出来ます。" -#: ../../glossary.rst:1204 +#: ../../glossary.rst:1210 msgid "regular package" msgstr "regular package" -#: ../../glossary.rst:1206 +#: ../../glossary.rst:1212 msgid "" "A traditional :term:`package`, such as a directory containing an ``__init__." "py`` file." @@ -2666,15 +2680,15 @@ msgstr "" "伝統的な、 ``__init__.py`` ファイルを含むディレクトリとしての :term:" "`package`。" -#: ../../glossary.rst:1209 +#: ../../glossary.rst:1215 msgid "See also :term:`namespace package`." msgstr ":term:`namespace package` を参照してください。" -#: ../../glossary.rst:1210 +#: ../../glossary.rst:1216 msgid "REPL" msgstr "REPL" -#: ../../glossary.rst:1212 +#: ../../glossary.rst:1218 msgid "" "An acronym for the \"read–eval–print loop\", another name for the :term:" "`interactive` interpreter shell." @@ -2682,11 +2696,11 @@ msgstr "" "\"read–eval–print loop\" の頭字語で、 :term:`対話型 ` インタープ" "リターシェルの別名。" -#: ../../glossary.rst:1214 +#: ../../glossary.rst:1220 msgid "__slots__" msgstr "__slots__" -#: ../../glossary.rst:1216 +#: ../../glossary.rst:1222 msgid "" "A declaration inside a class that saves memory by pre-declaring space for " "instance attributes and eliminating instance dictionaries. Though popular, " @@ -2700,11 +2714,11 @@ msgstr "" "となるアプリケーションでインスタンスが大量に存在する、といったときを除き、使" "わないのがベストです。" -#: ../../glossary.rst:1221 +#: ../../glossary.rst:1227 msgid "sequence" msgstr "sequence" -#: ../../glossary.rst:1223 +#: ../../glossary.rst:1229 msgid "" "An :term:`iterable` which supports efficient element access using integer " "indices via the :meth:`~object.__getitem__` special method and defines a :" @@ -2716,7 +2730,7 @@ msgid "" "integers." msgstr "" -#: ../../glossary.rst:1232 +#: ../../glossary.rst:1238 msgid "" "The :class:`collections.abc.Sequence` abstract base class defines a much " "richer interface that goes beyond just :meth:`~object.__getitem__` and :meth:" @@ -2727,11 +2741,11 @@ msgid "" "`Common Sequence Operations `." msgstr "" -#: ../../glossary.rst:1241 +#: ../../glossary.rst:1247 msgid "set comprehension" msgstr "" -#: ../../glossary.rst:1243 +#: ../../glossary.rst:1249 msgid "" "A compact way to process all or part of the elements in an iterable and " "return a set with the results. ``results = {c for c in 'abracadabra' if c " @@ -2743,22 +2757,22 @@ msgstr "" "if c not in 'abc'}`` とすると、``{'r', 'd'}`` という文字列の辞書を生成しま" "す。 :ref:`comprehensions` を参照してください。" -#: ../../glossary.rst:1247 +#: ../../glossary.rst:1253 msgid "single dispatch" msgstr "single dispatch" -#: ../../glossary.rst:1249 +#: ../../glossary.rst:1255 msgid "" "A form of :term:`generic function` dispatch where the implementation is " "chosen based on the type of a single argument." msgstr "" ":term:`generic function` の一種で実装は一つの引数の型により選択されます。" -#: ../../glossary.rst:1251 +#: ../../glossary.rst:1257 msgid "slice" msgstr "slice" -#: ../../glossary.rst:1253 +#: ../../glossary.rst:1259 msgid "" "An object usually containing a portion of a :term:`sequence`. A slice is " "created using the subscript notation, ``[]`` with colons between numbers " @@ -2770,34 +2784,34 @@ msgstr "" "ます。例えば、 ``variable_name[1:3:5]`` です。角括弧 (添字) 記号は :class:" "`slice` オブジェクトを内部で利用しています。" -#: ../../glossary.rst:1257 +#: ../../glossary.rst:1263 msgid "soft deprecated" msgstr "" -#: ../../glossary.rst:1259 +#: ../../glossary.rst:1265 msgid "" "A soft deprecated API should not be used in new code, but it is safe for " "already existing code to use it. The API remains documented and tested, but " "will not be enhanced further." msgstr "" -#: ../../glossary.rst:1263 +#: ../../glossary.rst:1269 msgid "" "Soft deprecation, unlike normal deprecation, does not plan on removing the " "API and will not emit warnings." msgstr "" -#: ../../glossary.rst:1266 +#: ../../glossary.rst:1272 msgid "" "See `PEP 387: Soft Deprecation `_." msgstr "" -#: ../../glossary.rst:1268 +#: ../../glossary.rst:1274 msgid "special method" msgstr "special method" -#: ../../glossary.rst:1272 +#: ../../glossary.rst:1278 msgid "" "A method that is called implicitly by Python to execute a certain operation " "on a type, such as addition. Such methods have names starting and ending " @@ -2809,11 +2823,11 @@ msgstr "" "コア 2 つがついています。特殊メソッドについては :ref:`specialnames` で解説さ" "れています。" -#: ../../glossary.rst:1276 +#: ../../glossary.rst:1282 msgid "statement" msgstr "statement" -#: ../../glossary.rst:1278 +#: ../../glossary.rst:1284 msgid "" "A statement is part of a suite (a \"block\" of code). A statement is either " "an :term:`expression` or one of several constructs with a keyword, such as :" @@ -2823,22 +2837,22 @@ msgstr "" "` かキーワードから構成されるもののどちらかです。後者には :" "keyword:`if`、:keyword:`while`、:keyword:`for` があります。" -#: ../../glossary.rst:1281 +#: ../../glossary.rst:1287 msgid "static type checker" msgstr "" -#: ../../glossary.rst:1283 +#: ../../glossary.rst:1289 msgid "" "An external tool that reads Python code and analyzes it, looking for issues " "such as incorrect types. See also :term:`type hints ` and the :" "mod:`typing` module." msgstr "" -#: ../../glossary.rst:1286 +#: ../../glossary.rst:1292 msgid "strong reference" msgstr "" -#: ../../glossary.rst:1288 +#: ../../glossary.rst:1294 msgid "" "In Python's C API, a strong reference is a reference to an object which is " "owned by the code holding the reference. The strong reference is taken by " @@ -2846,7 +2860,7 @@ msgid "" "c:func:`Py_DECREF` when the reference is deleted." msgstr "" -#: ../../glossary.rst:1294 +#: ../../glossary.rst:1300 msgid "" "The :c:func:`Py_NewRef` function can be used to create a strong reference to " "an object. Usually, the :c:func:`Py_DECREF` function must be called on the " @@ -2854,38 +2868,38 @@ msgid "" "leaking one reference." msgstr "" -#: ../../glossary.rst:1299 +#: ../../glossary.rst:1305 msgid "See also :term:`borrowed reference`." msgstr "" -#: ../../glossary.rst:1300 +#: ../../glossary.rst:1306 msgid "text encoding" msgstr "text encoding" -#: ../../glossary.rst:1302 +#: ../../glossary.rst:1308 msgid "" "A string in Python is a sequence of Unicode code points (in range " "``U+0000``--``U+10FFFF``). To store or transfer a string, it needs to be " "serialized as a sequence of bytes." msgstr "" -#: ../../glossary.rst:1306 +#: ../../glossary.rst:1312 msgid "" "Serializing a string into a sequence of bytes is known as \"encoding\", and " "recreating the string from the sequence of bytes is known as \"decoding\"." msgstr "" -#: ../../glossary.rst:1309 +#: ../../glossary.rst:1315 msgid "" "There are a variety of different text serialization :ref:`codecs `, which are collectively referred to as \"text encodings\"." msgstr "" -#: ../../glossary.rst:1312 +#: ../../glossary.rst:1318 msgid "text file" msgstr "text file" -#: ../../glossary.rst:1314 +#: ../../glossary.rst:1320 msgid "" "A :term:`file object` able to read and write :class:`str` objects. Often, a " "text file actually accesses a byte-oriented datastream and handles the :term:" @@ -2901,7 +2915,7 @@ msgstr "" "StringIO` インスタンスなどをテキストモード (``'r'`` or ``'w'``) で開いたファ" "イルです。" -#: ../../glossary.rst:1321 +#: ../../glossary.rst:1327 msgid "" "See also :term:`binary file` for a file object able to read and write :term:" "`bytes-like objects `." @@ -2910,32 +2924,32 @@ msgstr "" "オブジェクトについては、 :term:`バイナリファイル ` も参照してく" "ださい。" -#: ../../glossary.rst:1323 +#: ../../glossary.rst:1329 msgid "thread state" msgstr "" -#: ../../glossary.rst:1326 +#: ../../glossary.rst:1332 msgid "" "The information used by the :term:`CPython` runtime to run in an OS thread. " "For example, this includes the current exception, if any, and the state of " "the bytecode interpreter." msgstr "" -#: ../../glossary.rst:1330 +#: ../../glossary.rst:1336 msgid "" "Each thread state is bound to a single OS thread, but threads may have many " "thread states available. At most, one of them may be :term:`attached " "` at once." msgstr "" -#: ../../glossary.rst:1334 +#: ../../glossary.rst:1340 msgid "" "An :term:`attached thread state` is required to call most of Python's C API, " "unless a function explicitly documents otherwise. The bytecode interpreter " "only runs under an attached thread state." msgstr "" -#: ../../glossary.rst:1338 +#: ../../glossary.rst:1344 msgid "" "Each thread state belongs to a single interpreter, but each interpreter may " "have many thread states, including multiple for the same OS thread. Thread " @@ -2944,34 +2958,34 @@ msgid "" "given moment." msgstr "" -#: ../../glossary.rst:1344 +#: ../../glossary.rst:1350 msgid "" "See :ref:`Thread State and the Global Interpreter Lock ` for more " "information." msgstr "" -#: ../../glossary.rst:1346 +#: ../../glossary.rst:1352 msgid "token" msgstr "トークン" -#: ../../glossary.rst:1349 +#: ../../glossary.rst:1355 msgid "" "A small unit of source code, generated by the :ref:`lexical analyzer " "` (also called the *tokenizer*). Names, numbers, strings, " "operators, newlines and similar are represented by tokens." msgstr "" -#: ../../glossary.rst:1354 +#: ../../glossary.rst:1360 msgid "" "The :mod:`tokenize` module exposes Python's lexical analyzer. The :mod:" "`token` module contains information on the various types of tokens." msgstr "" -#: ../../glossary.rst:1357 +#: ../../glossary.rst:1363 msgid "triple-quoted string" msgstr "triple-quoted string" -#: ../../glossary.rst:1359 +#: ../../glossary.rst:1365 msgid "" "A string which is bound by three instances of either a quotation mark (\") " "or an apostrophe ('). While they don't provide any functionality not " @@ -2987,26 +3001,26 @@ msgstr "" "しに書くことができますし、行継続文字(\\\\)を使わなくても複数行にまたがること" "ができるので、ドキュメンテーション文字列を書く時に特に便利です。" -#: ../../glossary.rst:1366 +#: ../../glossary.rst:1372 msgid "type" msgstr "type" -#: ../../glossary.rst:1368 +#: ../../glossary.rst:1374 msgid "" "The type of a Python object determines what kind of object it is; every " "object has a type. An object's type is accessible as its :attr:`~object." "__class__` attribute or can be retrieved with ``type(obj)``." msgstr "" -#: ../../glossary.rst:1372 +#: ../../glossary.rst:1378 msgid "type alias" msgstr "type alias" -#: ../../glossary.rst:1374 +#: ../../glossary.rst:1380 msgid "A synonym for a type, created by assigning the type to an identifier." msgstr "(型エイリアス) 型の別名で、型を識別子に代入して作成します。" -#: ../../glossary.rst:1376 +#: ../../glossary.rst:1382 msgid "" "Type aliases are useful for simplifying :term:`type hints `. For " "example::" @@ -3014,18 +3028,18 @@ msgstr "" "型エイリアスは :term:`型ヒント ` を単純化するのに有用です。例え" "ば::" -#: ../../glossary.rst:1379 +#: ../../glossary.rst:1385 msgid "" "def remove_gray_shades(\n" " colors: list[tuple[int, int, int]]) -> list[tuple[int, int, int]]:\n" " pass" msgstr "" -#: ../../glossary.rst:1383 +#: ../../glossary.rst:1389 msgid "could be made more readable like this::" msgstr "これは次のようにより読みやすくできます::" -#: ../../glossary.rst:1385 +#: ../../glossary.rst:1391 msgid "" "Color = tuple[int, int, int]\n" "\n" @@ -3033,15 +3047,15 @@ msgid "" " pass" msgstr "" -#: ../../glossary.rst:1390 ../../glossary.rst:1404 +#: ../../glossary.rst:1396 ../../glossary.rst:1410 msgid "See :mod:`typing` and :pep:`484`, which describe this functionality." msgstr "機能の説明がある :mod:`typing` と :pep:`484` を参照してください。" -#: ../../glossary.rst:1391 +#: ../../glossary.rst:1397 msgid "type hint" msgstr "type hint" -#: ../../glossary.rst:1393 +#: ../../glossary.rst:1399 msgid "" "An :term:`annotation` that specifies the expected type for a variable, a " "class attribute, or a function parameter or return value." @@ -3049,14 +3063,14 @@ msgstr "" "(型ヒント) 変数、クラス属性、関数のパラメータや返り値の期待される型を指定す" "る :term:`annotation` です。" -#: ../../glossary.rst:1396 +#: ../../glossary.rst:1402 msgid "" "Type hints are optional and are not enforced by Python but they are useful " "to :term:`static type checkers `. They can also aid " "IDEs with code completion and refactoring." msgstr "" -#: ../../glossary.rst:1400 +#: ../../glossary.rst:1406 msgid "" "Type hints of global variables, class attributes, and functions, but not " "local variables, can be accessed using :func:`typing.get_type_hints`." @@ -3064,11 +3078,11 @@ msgstr "" "グローバル変数、クラス属性、関数で、ローカル変数でないものの型ヒントは :func:" "`typing.get_type_hints` で取得できます。" -#: ../../glossary.rst:1405 +#: ../../glossary.rst:1411 msgid "universal newlines" msgstr "universal newlines" -#: ../../glossary.rst:1407 +#: ../../glossary.rst:1413 msgid "" "A manner of interpreting text streams in which all of the following are " "recognized as ending a line: the Unix end-of-line convention ``'\\n'``, the " @@ -3081,26 +3095,26 @@ msgstr "" "``'\\r'``。利用法について詳しくは、 :pep:`278` と :pep:`3116` 、さらに :func:" "`bytes.splitlines` も参照してください。" -#: ../../glossary.rst:1412 +#: ../../glossary.rst:1418 msgid "variable annotation" msgstr "variable annotation" -#: ../../glossary.rst:1414 +#: ../../glossary.rst:1420 msgid "An :term:`annotation` of a variable or a class attribute." msgstr "(変数アノテーション) 変数あるいはクラス属性の :term:`annotation` 。" -#: ../../glossary.rst:1416 +#: ../../glossary.rst:1422 msgid "" "When annotating a variable or a class attribute, assignment is optional::" msgstr "変数あるいはクラス属性に注釈を付けたときは、代入部分は任意です::" -#: ../../glossary.rst:1418 +#: ../../glossary.rst:1424 msgid "" "class C:\n" " field: 'annotation'" msgstr "" -#: ../../glossary.rst:1421 +#: ../../glossary.rst:1427 msgid "" "Variable annotations are usually used for :term:`type hints `: " "for example this variable is expected to take :class:`int` values::" @@ -3108,16 +3122,16 @@ msgstr "" "変数アノテーションは通常は :term:`型ヒント` のために使われます: 例" "えば、この変数は :class:`int` の値を取ることを期待されています::" -#: ../../glossary.rst:1425 +#: ../../glossary.rst:1431 msgid "count: int = 0" msgstr "" -#: ../../glossary.rst:1427 +#: ../../glossary.rst:1433 msgid "Variable annotation syntax is explained in section :ref:`annassign`." msgstr "" "変数アノテーションの構文については :ref:`annassign` 節で解説しています。" -#: ../../glossary.rst:1429 +#: ../../glossary.rst:1435 msgid "" "See :term:`function annotation`, :pep:`484` and :pep:`526`, which describe " "this functionality. Also see :ref:`annotations-howto` for best practices on " @@ -3127,11 +3141,11 @@ msgstr "" "してください。また、アノテーションを利用するベストプラクティスとして :ref:" "`annotations-howto` も参照してください。" -#: ../../glossary.rst:1433 +#: ../../glossary.rst:1439 msgid "virtual environment" msgstr "virtual environment" -#: ../../glossary.rst:1435 +#: ../../glossary.rst:1441 msgid "" "A cooperatively isolated runtime environment that allows Python users and " "applications to install and upgrade Python distribution packages without " @@ -3142,15 +3156,15 @@ msgstr "" "ケーションは同じシステム上で動いている他の Python アプリケーションの挙動に干" "渉することなく Python パッケージのインストールと更新を行うことができます。" -#: ../../glossary.rst:1440 +#: ../../glossary.rst:1446 msgid "See also :mod:`venv`." msgstr ":mod:`venv` を参照してください。" -#: ../../glossary.rst:1441 +#: ../../glossary.rst:1447 msgid "virtual machine" msgstr "virtual machine" -#: ../../glossary.rst:1443 +#: ../../glossary.rst:1449 msgid "" "A computer defined entirely in software. Python's virtual machine executes " "the :term:`bytecode` emitted by the bytecode compiler." @@ -3159,11 +3173,11 @@ msgstr "" "シンは、バイトコードコンパイラが出力した :term:`バイトコード ` を実" "行します。" -#: ../../glossary.rst:1445 +#: ../../glossary.rst:1451 msgid "Zen of Python" msgstr "Zen of Python" -#: ../../glossary.rst:1447 +#: ../../glossary.rst:1453 msgid "" "Listing of Python design principles and philosophies that are helpful in " "understanding and using the language. The listing can be found by typing " @@ -3181,10 +3195,10 @@ msgstr "" msgid "Fortran contiguous" msgstr "" -#: ../../glossary.rst:870 +#: ../../glossary.rst:876 msgid "magic" msgstr "" -#: ../../glossary.rst:1270 +#: ../../glossary.rst:1276 msgid "special" msgstr "特殊" diff --git a/howto/annotations.po b/howto/annotations.po index bedf3c62a..4bdfbcdf4 100644 --- a/howto/annotations.po +++ b/howto/annotations.po @@ -11,15 +11,15 @@ msgid "" msgstr "" "Project-Id-Version: Python 3.14\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2025-05-08 02:53-0300\n" +"POT-Creation-Date: 2025-05-23 14:20+0000\n" "PO-Revision-Date: 2021-06-28 00:52+0000\n" "Last-Translator: tomo, 2021\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../howto/annotations.rst:5 @@ -380,5 +380,14 @@ msgid "" "`annotationlib.get_annotations` on Python 3.14+ or :func:`inspect." "get_annotations` on Python 3.10+. On earlier versions of Python, you can " "avoid these bugs by accessing the annotations from the class's :attr:`~type." -"__dict__` (e.g., ``cls.__dict__.get('__annotations__', None)``)." +"__dict__` (for example, ``cls.__dict__.get('__annotations__', None)``)." +msgstr "" + +#: ../../howto/annotations.rst:253 +msgid "" +"In some versions of Python, instances of classes may have an " +"``__annotations__`` attribute. However, this is not supported functionality. " +"If you need the annotations of an instance, you can use :func:`type` to " +"access its class (for example, ``annotationlib." +"get_annotations(type(myinstance))`` on Python 3.14+)." msgstr "" diff --git a/howto/argparse.po b/howto/argparse.po index 6b25041bd..381f90aa1 100644 --- a/howto/argparse.po +++ b/howto/argparse.po @@ -1,5 +1,5 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2025, Python Software Foundation +# Copyright (C) 2001 Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # @@ -12,17 +12,17 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: Python 3.13\n" +"Project-Id-Version: Python 3.14\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2025-04-25 14:19+0000\n" +"POT-Creation-Date: 2025-05-16 14:19+0000\n" "PO-Revision-Date: 2021-06-28 00:52+0000\n" "Last-Translator: Arihiro TAKASE, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../howto/argparse.rst:5 diff --git a/howto/clinic.po b/howto/clinic.po index c11b77535..2578026fd 100644 --- a/howto/clinic.po +++ b/howto/clinic.po @@ -17,10 +17,10 @@ msgstr "" "Last-Translator: tomo, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../howto/clinic.rst:8 diff --git a/howto/cporting.po b/howto/cporting.po index cad700c9b..5290ad2c4 100644 --- a/howto/cporting.po +++ b/howto/cporting.po @@ -17,10 +17,10 @@ msgstr "" "Last-Translator: tomo, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../howto/cporting.rst:7 diff --git a/howto/curses.po b/howto/curses.po index 537062099..7d595d3b2 100644 --- a/howto/curses.po +++ b/howto/curses.po @@ -1,5 +1,5 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2025, Python Software Foundation +# Copyright (C) 2001 Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # @@ -10,17 +10,17 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: Python 3.13\n" +"Project-Id-Version: Python 3.14\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2025-04-25 14:19+0000\n" +"POT-Creation-Date: 2025-05-16 14:19+0000\n" "PO-Revision-Date: 2021-06-28 00:53+0000\n" "Last-Translator: Mikami Akiko, 2021\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../howto/curses.rst:5 diff --git a/howto/descriptor.po b/howto/descriptor.po index 314c17a91..693500d76 100644 --- a/howto/descriptor.po +++ b/howto/descriptor.po @@ -21,10 +21,10 @@ msgstr "" "Last-Translator: Arihiro TAKASE, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../howto/descriptor.rst:5 diff --git a/howto/enum.po b/howto/enum.po index 86cb44eda..7c300d485 100644 --- a/howto/enum.po +++ b/howto/enum.po @@ -21,10 +21,10 @@ msgstr "" "Last-Translator: Arihiro TAKASE, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../howto/enum.rst:5 diff --git a/howto/functional.po b/howto/functional.po index 28c8c53e7..d369788cb 100644 --- a/howto/functional.po +++ b/howto/functional.po @@ -20,10 +20,10 @@ msgstr "" "Last-Translator: TENMYO Masakazu, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../howto/functional.rst:5 diff --git a/howto/gdb_helpers.po b/howto/gdb_helpers.po index a4b9feba4..fbf5b6b1f 100644 --- a/howto/gdb_helpers.po +++ b/howto/gdb_helpers.po @@ -1,5 +1,5 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2025, Python Software Foundation +# Copyright (C) 2001 Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # @@ -9,17 +9,17 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: Python 3.13\n" +"Project-Id-Version: Python 3.14\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2025-04-25 14:19+0000\n" +"POT-Creation-Date: 2025-05-16 14:19+0000\n" "PO-Revision-Date: 2024-02-25 01:11+0000\n" "Last-Translator: tomo, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../howto/gdb_helpers.rst:5 diff --git a/howto/index.po b/howto/index.po index eebcd4092..e9bb06bc8 100644 --- a/howto/index.po +++ b/howto/index.po @@ -16,10 +16,10 @@ msgstr "" "Last-Translator: tomo, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../howto/index.rst:3 diff --git a/howto/instrumentation.po b/howto/instrumentation.po index 954bcaa6d..55dbc5f75 100644 --- a/howto/instrumentation.po +++ b/howto/instrumentation.po @@ -16,10 +16,10 @@ msgstr "" "Last-Translator: tomo, 2021\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../howto/instrumentation.rst:7 diff --git a/howto/ipaddress.po b/howto/ipaddress.po index 7d18d2e81..471057b5a 100644 --- a/howto/ipaddress.po +++ b/howto/ipaddress.po @@ -18,10 +18,10 @@ msgstr "" "Last-Translator: Takanori Suzuki , 2021\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../howto/ipaddress.rst:9 diff --git a/howto/isolating-extensions.po b/howto/isolating-extensions.po index 62cc980fe..d41037068 100644 --- a/howto/isolating-extensions.po +++ b/howto/isolating-extensions.po @@ -12,15 +12,15 @@ msgid "" msgstr "" "Project-Id-Version: Python 3.14\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2025-05-09 14:19+0000\n" +"POT-Creation-Date: 2025-05-23 14:20+0000\n" "PO-Revision-Date: 2022-11-05 19:48+0000\n" "Last-Translator: Taichi Haradaguchi, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../howto/isolating-extensions.rst:7 @@ -331,33 +331,49 @@ msgstr "" #: ../../howto/isolating-extensions.rst:218 msgid "" +"// A process-wide flag\n" "static int loaded = 0;\n" "\n" +"// Mutex to provide thread safety (only needed for free-threaded Python)\n" +"static PyMutex modinit_mutex = {0};\n" +"\n" "static int\n" "exec_module(PyObject* module)\n" "{\n" +" PyMutex_Lock(&modinit_mutex);\n" " if (loaded) {\n" +" PyMutex_Unlock(&modinit_mutex);\n" " PyErr_SetString(PyExc_ImportError,\n" " \"cannot load module more than once per process\");\n" " return -1;\n" " }\n" " loaded = 1;\n" +" PyMutex_Unlock(&modinit_mutex);\n" " // ... rest of initialization\n" "}" msgstr "" -#: ../../howto/isolating-extensions.rst:234 +#: ../../howto/isolating-extensions.rst:240 +msgid "" +"If your module's :c:member:`PyModuleDef.m_clear` function is able to prepare " +"for future re-initialization, it should clear the ``loaded`` flag. In this " +"case, your module won't support multiple instances existing *concurrently*, " +"but it will, for example, support being loaded after Python runtime shutdown " +"(:c:func:`Py_FinalizeEx`) and re-initialization (:c:func:`Py_Initialize`)." +msgstr "" + +#: ../../howto/isolating-extensions.rst:249 msgid "Module State Access from Functions" msgstr "" -#: ../../howto/isolating-extensions.rst:236 +#: ../../howto/isolating-extensions.rst:251 msgid "" "Accessing the state from module-level functions is straightforward. " "Functions get the module object as their first argument; for extracting the " "state, you can use ``PyModule_GetState``::" msgstr "" -#: ../../howto/isolating-extensions.rst:240 +#: ../../howto/isolating-extensions.rst:255 msgid "" "static PyObject *\n" "func(PyObject *module, PyObject *args)\n" @@ -370,25 +386,25 @@ msgid "" "}" msgstr "" -#: ../../howto/isolating-extensions.rst:251 +#: ../../howto/isolating-extensions.rst:266 msgid "" "``PyModule_GetState`` may return ``NULL`` without setting an exception if " "there is no module state, i.e. ``PyModuleDef.m_size`` was zero. In your own " "module, you're in control of ``m_size``, so this is easy to prevent." msgstr "" -#: ../../howto/isolating-extensions.rst:258 +#: ../../howto/isolating-extensions.rst:273 msgid "Heap Types" msgstr "" -#: ../../howto/isolating-extensions.rst:260 +#: ../../howto/isolating-extensions.rst:275 msgid "" "Traditionally, types defined in C code are *static*; that is, ``static " "PyTypeObject`` structures defined directly in code and initialized using " "``PyType_Ready()``." msgstr "" -#: ../../howto/isolating-extensions.rst:264 +#: ../../howto/isolating-extensions.rst:279 msgid "" "Such types are necessarily shared across the process. Sharing them between " "module objects requires paying attention to any state they own or access. To " @@ -396,7 +412,7 @@ msgid "" "for example, you can't set ``str.myattribute = 123``." msgstr "" -#: ../../howto/isolating-extensions.rst:270 +#: ../../howto/isolating-extensions.rst:285 msgid "" "Sharing truly immutable objects between interpreters is fine, as long as " "they don't provide access to mutable objects. However, in CPython, every " @@ -406,7 +422,7 @@ msgid "" "process-wide GIL." msgstr "" -#: ../../howto/isolating-extensions.rst:277 +#: ../../howto/isolating-extensions.rst:292 msgid "" "Because they are immutable and process-global, static types cannot access " "\"their\" module state. If any method of such a type requires access to " @@ -415,15 +431,15 @@ msgid "" "Python's ``class`` statement." msgstr "" -#: ../../howto/isolating-extensions.rst:284 +#: ../../howto/isolating-extensions.rst:299 msgid "For new modules, using heap types by default is a good rule of thumb." msgstr "" -#: ../../howto/isolating-extensions.rst:288 +#: ../../howto/isolating-extensions.rst:303 msgid "Changing Static Types to Heap Types" msgstr "" -#: ../../howto/isolating-extensions.rst:290 +#: ../../howto/isolating-extensions.rst:305 msgid "" "Static types can be converted to heap types, but note that the heap type API " "was not designed for \"lossless\" conversion from static types—that is, " @@ -433,101 +449,101 @@ msgid "" "slots). Always test the details that are important to you." msgstr "" -#: ../../howto/isolating-extensions.rst:299 +#: ../../howto/isolating-extensions.rst:314 msgid "" "Watch out for the following two points in particular (but note that this is " "not a comprehensive list):" msgstr "" -#: ../../howto/isolating-extensions.rst:302 +#: ../../howto/isolating-extensions.rst:317 msgid "" "Unlike static types, heap type objects are mutable by default. Use the :c:" "macro:`Py_TPFLAGS_IMMUTABLETYPE` flag to prevent mutability." msgstr "" -#: ../../howto/isolating-extensions.rst:304 +#: ../../howto/isolating-extensions.rst:319 msgid "" "Heap types inherit :c:member:`~PyTypeObject.tp_new` by default, so it may " "become possible to instantiate them from Python code. You can prevent this " "with the :c:macro:`Py_TPFLAGS_DISALLOW_INSTANTIATION` flag." msgstr "" -#: ../../howto/isolating-extensions.rst:310 +#: ../../howto/isolating-extensions.rst:325 msgid "Defining Heap Types" msgstr "" -#: ../../howto/isolating-extensions.rst:312 +#: ../../howto/isolating-extensions.rst:327 msgid "" "Heap types can be created by filling a :c:struct:`PyType_Spec` structure, a " "description or \"blueprint\" of a class, and calling :c:func:" "`PyType_FromModuleAndSpec` to construct a new class object." msgstr "" -#: ../../howto/isolating-extensions.rst:317 +#: ../../howto/isolating-extensions.rst:332 msgid "" "Other functions, like :c:func:`PyType_FromSpec`, can also create heap types, " "but :c:func:`PyType_FromModuleAndSpec` associates the module with the class, " "allowing access to the module state from methods." msgstr "" -#: ../../howto/isolating-extensions.rst:321 +#: ../../howto/isolating-extensions.rst:336 msgid "" "The class should generally be stored in *both* the module state (for safe " "access from C) and the module's ``__dict__`` (for access from Python code)." msgstr "" -#: ../../howto/isolating-extensions.rst:327 +#: ../../howto/isolating-extensions.rst:342 msgid "Garbage-Collection Protocol" msgstr "" -#: ../../howto/isolating-extensions.rst:329 +#: ../../howto/isolating-extensions.rst:344 msgid "" "Instances of heap types hold a reference to their type. This ensures that " "the type isn't destroyed before all its instances are, but may result in " "reference cycles that need to be broken by the garbage collector." msgstr "" -#: ../../howto/isolating-extensions.rst:334 +#: ../../howto/isolating-extensions.rst:349 msgid "" "To avoid memory leaks, instances of heap types must implement the garbage " "collection protocol. That is, heap types should:" msgstr "" -#: ../../howto/isolating-extensions.rst:338 +#: ../../howto/isolating-extensions.rst:353 msgid "Have the :c:macro:`Py_TPFLAGS_HAVE_GC` flag." msgstr "" -#: ../../howto/isolating-extensions.rst:339 +#: ../../howto/isolating-extensions.rst:354 msgid "" "Define a traverse function using ``Py_tp_traverse``, which visits the type " "(e.g. using ``Py_VISIT(Py_TYPE(self))``)." msgstr "" -#: ../../howto/isolating-extensions.rst:342 +#: ../../howto/isolating-extensions.rst:357 msgid "" "Please refer to the documentation of :c:macro:`Py_TPFLAGS_HAVE_GC` and :c:" "member:`~PyTypeObject.tp_traverse` for additional considerations." msgstr "" -#: ../../howto/isolating-extensions.rst:346 +#: ../../howto/isolating-extensions.rst:361 msgid "" "The API for defining heap types grew organically, leaving it somewhat " "awkward to use in its current state. The following sections will guide you " "through common issues." msgstr "" -#: ../../howto/isolating-extensions.rst:352 +#: ../../howto/isolating-extensions.rst:367 msgid "``tp_traverse`` in Python 3.8 and lower" msgstr "" -#: ../../howto/isolating-extensions.rst:354 +#: ../../howto/isolating-extensions.rst:369 msgid "" "The requirement to visit the type from ``tp_traverse`` was added in Python " "3.9. If you support Python 3.8 and lower, the traverse function must *not* " "visit the type, so it must be more complicated::" msgstr "" -#: ../../howto/isolating-extensions.rst:358 +#: ../../howto/isolating-extensions.rst:373 msgid "" "static int my_traverse(PyObject *self, visitproc visit, void *arg)\n" "{\n" @@ -538,27 +554,27 @@ msgid "" "}" msgstr "" -#: ../../howto/isolating-extensions.rst:366 +#: ../../howto/isolating-extensions.rst:381 msgid "" "Unfortunately, :c:data:`Py_Version` was only added in Python 3.11. As a " "replacement, use:" msgstr "" -#: ../../howto/isolating-extensions.rst:369 +#: ../../howto/isolating-extensions.rst:384 msgid ":c:macro:`PY_VERSION_HEX`, if not using the stable ABI, or" msgstr "" -#: ../../howto/isolating-extensions.rst:370 +#: ../../howto/isolating-extensions.rst:385 msgid "" ":py:data:`sys.version_info` (via :c:func:`PySys_GetObject` and :c:func:" "`PyArg_ParseTuple`)." msgstr "" -#: ../../howto/isolating-extensions.rst:375 +#: ../../howto/isolating-extensions.rst:390 msgid "Delegating ``tp_traverse``" msgstr "" -#: ../../howto/isolating-extensions.rst:377 +#: ../../howto/isolating-extensions.rst:392 msgid "" "If your traverse function delegates to the :c:member:`~PyTypeObject." "tp_traverse` of its base class (or another type), ensure that " @@ -566,19 +582,19 @@ msgid "" "expected to visit the type in ``tp_traverse``." msgstr "" -#: ../../howto/isolating-extensions.rst:382 +#: ../../howto/isolating-extensions.rst:397 msgid "For example, if your traverse function includes::" msgstr "" -#: ../../howto/isolating-extensions.rst:384 +#: ../../howto/isolating-extensions.rst:399 msgid "base->tp_traverse(self, visit, arg)" msgstr "" -#: ../../howto/isolating-extensions.rst:386 +#: ../../howto/isolating-extensions.rst:401 msgid "...and ``base`` may be a static type, then it should also include::" msgstr "" -#: ../../howto/isolating-extensions.rst:388 +#: ../../howto/isolating-extensions.rst:403 msgid "" "if (base->tp_flags & Py_TPFLAGS_HEAPTYPE) {\n" " // a heap type's tp_traverse already visited Py_TYPE(self)\n" @@ -589,38 +605,38 @@ msgid "" "}" msgstr "" -#: ../../howto/isolating-extensions.rst:396 +#: ../../howto/isolating-extensions.rst:411 msgid "" "It is not necessary to handle the type's reference count in :c:member:" "`~PyTypeObject.tp_new` and :c:member:`~PyTypeObject.tp_clear`." msgstr "" -#: ../../howto/isolating-extensions.rst:401 +#: ../../howto/isolating-extensions.rst:416 msgid "Defining ``tp_dealloc``" msgstr "" -#: ../../howto/isolating-extensions.rst:403 +#: ../../howto/isolating-extensions.rst:418 msgid "" "If your type has a custom :c:member:`~PyTypeObject.tp_dealloc` function, it " "needs to:" msgstr "" -#: ../../howto/isolating-extensions.rst:406 +#: ../../howto/isolating-extensions.rst:421 msgid "" "call :c:func:`PyObject_GC_UnTrack` before any fields are invalidated, and" msgstr "" -#: ../../howto/isolating-extensions.rst:407 +#: ../../howto/isolating-extensions.rst:422 msgid "decrement the reference count of the type." msgstr "" -#: ../../howto/isolating-extensions.rst:409 +#: ../../howto/isolating-extensions.rst:424 msgid "" "To keep the type valid while ``tp_free`` is called, the type's refcount " "needs to be decremented *after* the instance is deallocated. For example::" msgstr "" -#: ../../howto/isolating-extensions.rst:412 +#: ../../howto/isolating-extensions.rst:427 msgid "" "static void my_dealloc(PyObject *self)\n" "{\n" @@ -632,81 +648,81 @@ msgid "" "}" msgstr "" -#: ../../howto/isolating-extensions.rst:421 +#: ../../howto/isolating-extensions.rst:436 msgid "" "The default ``tp_dealloc`` function does this, so if your type does *not* " "override ``tp_dealloc`` you don't need to add it." msgstr "" -#: ../../howto/isolating-extensions.rst:427 +#: ../../howto/isolating-extensions.rst:442 msgid "Not overriding ``tp_free``" msgstr "" -#: ../../howto/isolating-extensions.rst:429 +#: ../../howto/isolating-extensions.rst:444 msgid "" "The :c:member:`~PyTypeObject.tp_free` slot of a heap type must be set to :c:" "func:`PyObject_GC_Del`. This is the default; do not override it." msgstr "" -#: ../../howto/isolating-extensions.rst:435 +#: ../../howto/isolating-extensions.rst:450 msgid "Avoiding ``PyObject_New``" msgstr "" -#: ../../howto/isolating-extensions.rst:437 +#: ../../howto/isolating-extensions.rst:452 msgid "GC-tracked objects need to be allocated using GC-aware functions." msgstr "" -#: ../../howto/isolating-extensions.rst:439 +#: ../../howto/isolating-extensions.rst:454 msgid "If you use use :c:func:`PyObject_New` or :c:func:`PyObject_NewVar`:" msgstr "" -#: ../../howto/isolating-extensions.rst:441 +#: ../../howto/isolating-extensions.rst:456 msgid "" "Get and call type's :c:member:`~PyTypeObject.tp_alloc` slot, if possible. " "That is, replace ``TYPE *o = PyObject_New(TYPE, typeobj)`` with::" msgstr "" -#: ../../howto/isolating-extensions.rst:444 +#: ../../howto/isolating-extensions.rst:459 msgid "TYPE *o = typeobj->tp_alloc(typeobj, 0);" msgstr "" -#: ../../howto/isolating-extensions.rst:446 +#: ../../howto/isolating-extensions.rst:461 msgid "" "Replace ``o = PyObject_NewVar(TYPE, typeobj, size)`` with the same, but use " "size instead of the 0." msgstr "" -#: ../../howto/isolating-extensions.rst:449 +#: ../../howto/isolating-extensions.rst:464 msgid "" "If the above is not possible (e.g. inside a custom ``tp_alloc``), call :c:" "func:`PyObject_GC_New` or :c:func:`PyObject_GC_NewVar`::" msgstr "" -#: ../../howto/isolating-extensions.rst:452 +#: ../../howto/isolating-extensions.rst:467 msgid "" "TYPE *o = PyObject_GC_New(TYPE, typeobj);\n" "\n" "TYPE *o = PyObject_GC_NewVar(TYPE, typeobj, size);" msgstr "" -#: ../../howto/isolating-extensions.rst:458 +#: ../../howto/isolating-extensions.rst:473 msgid "Module State Access from Classes" msgstr "" -#: ../../howto/isolating-extensions.rst:460 +#: ../../howto/isolating-extensions.rst:475 msgid "" "If you have a type object defined with :c:func:`PyType_FromModuleAndSpec`, " "you can call :c:func:`PyType_GetModule` to get the associated module, and " "then :c:func:`PyModule_GetState` to get the module's state." msgstr "" -#: ../../howto/isolating-extensions.rst:464 +#: ../../howto/isolating-extensions.rst:479 msgid "" "To save a some tedious error-handling boilerplate code, you can combine " "these two steps with :c:func:`PyType_GetModuleState`, resulting in::" msgstr "" -#: ../../howto/isolating-extensions.rst:467 +#: ../../howto/isolating-extensions.rst:482 msgid "" "my_struct *state = (my_struct*)PyType_GetModuleState(type);\n" "if (state == NULL) {\n" @@ -714,11 +730,11 @@ msgid "" "}" msgstr "" -#: ../../howto/isolating-extensions.rst:474 +#: ../../howto/isolating-extensions.rst:489 msgid "Module State Access from Regular Methods" msgstr "" -#: ../../howto/isolating-extensions.rst:476 +#: ../../howto/isolating-extensions.rst:491 msgid "" "Accessing the module-level state from methods of a class is somewhat more " "complicated, but is possible thanks to API introduced in Python 3.9. To get " @@ -726,27 +742,27 @@ msgid "" "module state from it." msgstr "" -#: ../../howto/isolating-extensions.rst:481 +#: ../../howto/isolating-extensions.rst:496 msgid "" "The largest roadblock is getting *the class a method was defined in*, or " "that method's \"defining class\" for short. The defining class can have a " "reference to the module it is part of." msgstr "" -#: ../../howto/isolating-extensions.rst:485 +#: ../../howto/isolating-extensions.rst:500 msgid "" "Do not confuse the defining class with ``Py_TYPE(self)``. If the method is " "called on a *subclass* of your type, ``Py_TYPE(self)`` will refer to that " "subclass, which may be defined in different module than yours." msgstr "" -#: ../../howto/isolating-extensions.rst:490 +#: ../../howto/isolating-extensions.rst:505 msgid "" "The following Python code can illustrate the concept. ``Base." "get_defining_class`` returns ``Base`` even if ``type(self) == Sub``:" msgstr "" -#: ../../howto/isolating-extensions.rst:494 +#: ../../howto/isolating-extensions.rst:509 msgid "" "class Base:\n" " def get_type_of_self(self):\n" @@ -759,7 +775,7 @@ msgid "" " pass" msgstr "" -#: ../../howto/isolating-extensions.rst:506 +#: ../../howto/isolating-extensions.rst:521 msgid "" "For a method to get its \"defining class\", it must use the :ref:" "`METH_METHOD | METH_FASTCALL | METH_KEYWORDS `__." msgstr "" -#: ../../howto/isolating-extensions.rst:617 +#: ../../howto/isolating-extensions.rst:632 msgid "Per-Class Scope" msgstr "" -#: ../../howto/isolating-extensions.rst:619 +#: ../../howto/isolating-extensions.rst:634 msgid "" "It is currently (as of Python 3.11) not possible to attach state to " "individual *types* without relying on CPython implementation details (which " @@ -910,11 +926,11 @@ msgid "" "per-class scope)." msgstr "" -#: ../../howto/isolating-extensions.rst:626 +#: ../../howto/isolating-extensions.rst:641 msgid "Lossless Conversion to Heap Types" msgstr "" -#: ../../howto/isolating-extensions.rst:628 +#: ../../howto/isolating-extensions.rst:643 msgid "" "The heap type API was not designed for \"lossless\" conversion from static " "types; that is, creating a type that works exactly like a given static type." diff --git a/howto/logging-cookbook.po b/howto/logging-cookbook.po index 743e3f0a7..6a0ee364f 100644 --- a/howto/logging-cookbook.po +++ b/howto/logging-cookbook.po @@ -20,10 +20,10 @@ msgstr "" "Last-Translator: Takeshi Nakazato, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../howto/logging-cookbook.rst:5 diff --git a/howto/logging.po b/howto/logging.po index a0cabdb00..6dba75795 100644 --- a/howto/logging.po +++ b/howto/logging.po @@ -25,10 +25,10 @@ msgstr "" "Last-Translator: Inada Naoki , 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../howto/logging.rst:5 diff --git a/howto/pyporting.po b/howto/pyporting.po index ecab263dc..6356e136f 100644 --- a/howto/pyporting.po +++ b/howto/pyporting.po @@ -1,5 +1,5 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2025, Python Software Foundation +# Copyright (C) 2001 Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # @@ -9,17 +9,17 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: Python 3.13\n" +"Project-Id-Version: Python 3.14\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2025-04-25 14:19+0000\n" +"POT-Creation-Date: 2025-05-16 14:19+0000\n" "PO-Revision-Date: 2021-06-28 00:53+0000\n" "Last-Translator: tomo, 2021\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../howto/pyporting.rst:7 diff --git a/howto/regex.po b/howto/regex.po index a978948b4..fa32f2a4d 100644 --- a/howto/regex.po +++ b/howto/regex.po @@ -19,10 +19,10 @@ msgstr "" "Last-Translator: Arihiro TAKASE, 2023\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../howto/regex.rst:5 diff --git a/howto/sockets.po b/howto/sockets.po index a0fddb964..46914e57c 100644 --- a/howto/sockets.po +++ b/howto/sockets.po @@ -18,10 +18,10 @@ msgstr "" "Last-Translator: Takanori Suzuki , 2021\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../howto/sockets.rst:5 diff --git a/howto/sorting.po b/howto/sorting.po index 422410f45..3e82feda9 100644 --- a/howto/sorting.po +++ b/howto/sorting.po @@ -20,10 +20,10 @@ msgstr "" "Last-Translator: Arihiro TAKASE, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../howto/sorting.rst:4 diff --git a/howto/unicode.po b/howto/unicode.po index a691aa863..e19846c7e 100644 --- a/howto/unicode.po +++ b/howto/unicode.po @@ -18,10 +18,10 @@ msgstr "" "Last-Translator: Takanori Suzuki , 2023\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../howto/unicode.rst:5 diff --git a/howto/urllib2.po b/howto/urllib2.po index b381a1c87..503ea0d8b 100644 --- a/howto/urllib2.po +++ b/howto/urllib2.po @@ -20,10 +20,10 @@ msgstr "" "Last-Translator: TENMYO Masakazu, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../howto/urllib2.rst:5 diff --git a/includes/wasm-notavail.po b/includes/wasm-notavail.po index df2d29641..afcae3c83 100644 --- a/includes/wasm-notavail.po +++ b/includes/wasm-notavail.po @@ -16,10 +16,10 @@ msgstr "" "Last-Translator: souma987, 2023\n" "Language-Team: Japanese (https://www.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../includes/wasm-notavail.rst:3 diff --git a/install/index.po b/install/index.po index 737535d0d..dd8808bd0 100644 --- a/install/index.po +++ b/install/index.po @@ -23,10 +23,10 @@ msgstr "" "Last-Translator: Transifex Bot <>, 2023\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../install/index.rst:7 diff --git a/installing/index.po b/installing/index.po index ff841ffec..e0fb82b08 100644 --- a/installing/index.po +++ b/installing/index.po @@ -1,5 +1,5 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2025, Python Software Foundation +# Copyright (C) 2001 Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # @@ -12,17 +12,17 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: Python 3.13\n" +"Project-Id-Version: Python 3.14\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2025-05-02 14:19+0000\n" +"POT-Creation-Date: 2025-05-23 14:20+0000\n" "PO-Revision-Date: 2021-06-28 00:54+0000\n" "Last-Translator: 石井明久, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../installing/index.rst:7 @@ -167,7 +167,7 @@ msgstr "" #: ../../installing/index.rst:66 msgid "" "The use of ``venv`` is now recommended for creating virtual environments." -msgstr "仮想環境の作成には、 ``venv`` の使用をお勧めします。" +msgstr "仮想環境の作成には、 ``venv`` の使用が今は推奨されています。" #: ../../installing/index.rst:71 msgid "" diff --git a/library/2to3.po b/library/2to3.po index f8f05088e..745a5eaa0 100644 --- a/library/2to3.po +++ b/library/2to3.po @@ -20,10 +20,10 @@ msgstr "" "Last-Translator: Arihiro TAKASE, 2023\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../library/2to3.rst:4 diff --git a/library/__future__.po b/library/__future__.po index 8c365b4e4..271caca87 100644 --- a/library/__future__.po +++ b/library/__future__.po @@ -17,10 +17,10 @@ msgstr "" "Last-Translator: 石井明久, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../library/__future__.rst:2 diff --git a/library/__main__.po b/library/__main__.po index 952e86798..5ff1fa748 100644 --- a/library/__main__.po +++ b/library/__main__.po @@ -18,10 +18,10 @@ msgstr "" "Last-Translator: 石井明久, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../library/__main__.rst:2 diff --git a/library/_thread.po b/library/_thread.po index 0cc1b8efe..65e5e7f6f 100644 --- a/library/_thread.po +++ b/library/_thread.po @@ -19,10 +19,10 @@ msgstr "" "Last-Translator: 石井明久, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../library/_thread.rst:2 diff --git a/library/abc.po b/library/abc.po index 035c91290..d7cce15bd 100644 --- a/library/abc.po +++ b/library/abc.po @@ -1,5 +1,5 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2025, Python Software Foundation +# Copyright (C) 2001 Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # @@ -10,17 +10,17 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: Python 3.13\n" +"Project-Id-Version: Python 3.14\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2025-04-25 14:19+0000\n" +"POT-Creation-Date: 2025-05-16 14:19+0000\n" "PO-Revision-Date: 2021-06-28 00:54+0000\n" "Last-Translator: 石井明久, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../library/abc.rst:2 diff --git a/library/aifc.po b/library/aifc.po index 323a88c25..1fc1469de 100644 --- a/library/aifc.po +++ b/library/aifc.po @@ -1,21 +1,21 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2025, Python Software Foundation +# Copyright (C) 2001 Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # #, fuzzy msgid "" msgstr "" -"Project-Id-Version: Python 3.13\n" +"Project-Id-Version: Python 3.14\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2025-05-02 14:19+0000\n" +"POT-Creation-Date: 2025-05-23 14:20+0000\n" "PO-Revision-Date: 2024-11-19 01:02+0000\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../library/aifc.rst:2 diff --git a/library/allos.po b/library/allos.po index c8df90c38..e0f8a4a9f 100644 --- a/library/allos.po +++ b/library/allos.po @@ -17,10 +17,10 @@ msgstr "" "Last-Translator: mollinaca, 2021\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../library/allos.rst:5 diff --git a/library/archiving.po b/library/archiving.po index 2d1e7a822..5d61e6623 100644 --- a/library/archiving.po +++ b/library/archiving.po @@ -11,15 +11,15 @@ msgid "" msgstr "" "Project-Id-Version: Python 3.14\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2025-05-09 14:19+0000\n" +"POT-Creation-Date: 2025-05-23 14:20+0000\n" "PO-Revision-Date: 2021-06-28 00:54+0000\n" "Last-Translator: tomo, 2021\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../library/archiving.rst:5 @@ -29,11 +29,7 @@ msgstr "データ圧縮とアーカイブ" #: ../../library/archiving.rst:7 msgid "" "The modules described in this chapter support data compression with the " -"zlib, gzip, bzip2 and lzma algorithms, and the creation of ZIP- and tar-" -"format archives. See also :ref:`archiving-operations` provided by the :mod:" -"`shutil` module." +"zlib, gzip, bzip2, lzma, and zstd algorithms, and the creation of ZIP- and " +"tar-format archives. See also :ref:`archiving-operations` provided by the :" +"mod:`shutil` module." msgstr "" -"この章で説明されるモジュールは zlib, gzip, bzip2, lzma アルゴリズムによるデー" -"タの圧縮と、 ZIP, tar フォーマットのアーカイブ作成をサポートします。 :mod:" -"`shutil` モジュールで提供される :ref:`archiving-operations` も参照してくださ" -"い。" diff --git a/library/argparse.po b/library/argparse.po index 58360f589..bce5d5e2b 100644 --- a/library/argparse.po +++ b/library/argparse.po @@ -22,10 +22,10 @@ msgstr "" "Last-Translator: tomo, 2025\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../library/argparse.rst:2 diff --git a/library/array.po b/library/array.po index 50f30b2e5..e9306774b 100644 --- a/library/array.po +++ b/library/array.po @@ -1,5 +1,5 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2025, Python Software Foundation +# Copyright (C) 2001 Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # @@ -14,17 +14,17 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: Python 3.13\n" +"Project-Id-Version: Python 3.14\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2025-05-02 14:19+0000\n" +"POT-Creation-Date: 2025-05-23 14:20+0000\n" "PO-Revision-Date: 2021-06-28 00:54+0000\n" "Last-Translator: tomo, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../library/array.rst:2 diff --git a/library/ast.po b/library/ast.po index 73485d388..c3804c48b 100644 --- a/library/ast.po +++ b/library/ast.po @@ -21,10 +21,10 @@ msgstr "" "Last-Translator: Takanori Suzuki , 2025\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../library/ast.rst:2 diff --git a/library/asynchat.po b/library/asynchat.po index 71a970bba..f2118925a 100644 --- a/library/asynchat.po +++ b/library/asynchat.po @@ -1,21 +1,21 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2025, Python Software Foundation +# Copyright (C) 2001 Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # #, fuzzy msgid "" msgstr "" -"Project-Id-Version: Python 3.13\n" +"Project-Id-Version: Python 3.14\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2025-05-02 14:19+0000\n" +"POT-Creation-Date: 2025-05-23 14:20+0000\n" "PO-Revision-Date: 2024-11-19 01:02+0000\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../library/asynchat.rst:2 diff --git a/library/asyncio-api-index.po b/library/asyncio-api-index.po index a0c8a2db8..a23edbfd4 100644 --- a/library/asyncio-api-index.po +++ b/library/asyncio-api-index.po @@ -1,5 +1,5 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2025, Python Software Foundation +# Copyright (C) 2001 Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # @@ -13,17 +13,17 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: Python 3.13\n" +"Project-Id-Version: Python 3.14\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2025-05-02 14:19+0000\n" +"POT-Creation-Date: 2025-05-23 14:20+0000\n" "PO-Revision-Date: 2021-06-28 00:54+0000\n" "Last-Translator: 石井明久, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../library/asyncio-api-index.rst:6 diff --git a/library/asyncio-dev.po b/library/asyncio-dev.po index 9422857f9..ec6ee586f 100644 --- a/library/asyncio-dev.po +++ b/library/asyncio-dev.po @@ -13,15 +13,15 @@ msgid "" msgstr "" "Project-Id-Version: Python 3.14\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2025-05-08 02:53-0300\n" +"POT-Creation-Date: 2025-05-23 14:20+0000\n" "PO-Revision-Date: 2021-06-28 00:54+0000\n" "Last-Translator: 石井明久, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../library/asyncio-dev.rst:7 @@ -107,16 +107,6 @@ msgstr "デバッグモードが有効化されたときの動作:" #: ../../library/asyncio-dev.rst:49 msgid "" -"asyncio checks for :ref:`coroutines that were not awaited ` and logs them; this mitigates the \"forgotten await\" " -"pitfall." -msgstr "" -"asyncio は :ref:`待ち受け処理 (await) を伴わないコルーチン ` がないかをチェックし、それらを記録します; これによ" -"り \"待ち受け忘れ\" の落とし穴にはまる可能性を軽減します。" - -#: ../../library/asyncio-dev.rst:53 -msgid "" "Many non-threadsafe asyncio APIs (such as :meth:`loop.call_soon` and :meth:" "`loop.call_at` methods) raise an exception if they are called from a wrong " "thread." @@ -125,7 +115,7 @@ msgstr "" "`loop.call_at` など) は、誤ったスレッドから呼び出されたときに例外を送出しま" "す。" -#: ../../library/asyncio-dev.rst:57 +#: ../../library/asyncio-dev.rst:53 msgid "" "The execution time of the I/O selector is logged if it takes too long to " "perform an I/O operation." @@ -133,7 +123,7 @@ msgstr "" "I/O セレクタが I/O 処理を実行する時間が長すぎる場合、その実行時間が記録されま" "す。" -#: ../../library/asyncio-dev.rst:60 +#: ../../library/asyncio-dev.rst:56 msgid "" "Callbacks taking longer than 100 milliseconds are logged. The :attr:`loop." "slow_callback_duration` attribute can be used to set the minimum execution " @@ -143,11 +133,11 @@ msgstr "" "なる実行時間の最小値は :attr:`loop.slow_callback_duration` 属性で設定できま" "す。" -#: ../../library/asyncio-dev.rst:68 +#: ../../library/asyncio-dev.rst:64 msgid "Concurrency and Multithreading" msgstr "並行処理とマルチスレッド処理" -#: ../../library/asyncio-dev.rst:70 +#: ../../library/asyncio-dev.rst:66 msgid "" "An event loop runs in a thread (typically the main thread) and executes all " "callbacks and Tasks in its thread. While a Task is running in the event " @@ -161,7 +151,7 @@ msgstr "" "クが ``await`` 式を実行すると、実行中のタスクはサスペンドされ、イベントループ" "は次のタスクを実行します。" -#: ../../library/asyncio-dev.rst:76 +#: ../../library/asyncio-dev.rst:72 msgid "" "To schedule a :term:`callback` from another OS thread, the :meth:`loop." "call_soon_threadsafe` method should be used. Example::" @@ -169,11 +159,11 @@ msgstr "" "別の OS スレッドからのコールバック (:term:`callback`) をスケジュールする場" "合、 :meth:`loop.call_soon_threadsafe` メソッドを使ってください。例:" -#: ../../library/asyncio-dev.rst:79 +#: ../../library/asyncio-dev.rst:75 msgid "loop.call_soon_threadsafe(callback, *args)" msgstr "" -#: ../../library/asyncio-dev.rst:81 +#: ../../library/asyncio-dev.rst:77 msgid "" "Almost all asyncio objects are not thread safe, which is typically not a " "problem unless there is code that works with them from outside of a Task or " @@ -186,11 +176,11 @@ msgstr "" "び出すようなコードを書く必要がある場合、 :meth:`loop.call_soon_threadsafe` メ" "ソッドを使ってください。例: " -#: ../../library/asyncio-dev.rst:87 +#: ../../library/asyncio-dev.rst:83 msgid "loop.call_soon_threadsafe(fut.cancel)" msgstr "" -#: ../../library/asyncio-dev.rst:89 +#: ../../library/asyncio-dev.rst:85 msgid "" "To schedule a coroutine object from a different OS thread, the :func:" "`run_coroutine_threadsafe` function should be used. It returns a :class:" @@ -201,7 +191,7 @@ msgstr "" "`run_coroutine_threadsafe` は結果にアクセスするための :class:`concurrent." "futures.Future` オブジェクトを返します:" -#: ../../library/asyncio-dev.rst:93 +#: ../../library/asyncio-dev.rst:89 msgid "" "async def coro_func():\n" " return await asyncio.sleep(1, 42)\n" @@ -213,13 +203,13 @@ msgid "" "result = future.result()" msgstr "" -#: ../../library/asyncio-dev.rst:102 +#: ../../library/asyncio-dev.rst:98 msgid "To handle signals the event loop must be run in the main thread." msgstr "" "シグナルの処理を行うには、イベントループはメインスレッド内で実行しなければな" "りません。" -#: ../../library/asyncio-dev.rst:105 +#: ../../library/asyncio-dev.rst:101 msgid "" "The :meth:`loop.run_in_executor` method can be used with a :class:" "`concurrent.futures.ThreadPoolExecutor` or :class:`~concurrent.futures." @@ -227,7 +217,7 @@ msgid "" "without blocking the OS thread that the event loop runs in." msgstr "" -#: ../../library/asyncio-dev.rst:111 +#: ../../library/asyncio-dev.rst:107 msgid "" "There is currently no way to schedule coroutines or callbacks directly from " "a different process (such as one started with :mod:`multiprocessing`). The :" @@ -249,11 +239,11 @@ msgstr "" "futures.ProcessPoolExecutor` とともに使用することで、別のプロセス内でコードを" "実行することもできます。" -#: ../../library/asyncio-dev.rst:125 +#: ../../library/asyncio-dev.rst:121 msgid "Running Blocking Code" msgstr "ブロッキングコードの実行" -#: ../../library/asyncio-dev.rst:127 +#: ../../library/asyncio-dev.rst:123 msgid "" "Blocking (CPU-bound) code should not be called directly. For example, if a " "function performs a CPU-intensive calculation for 1 second, all concurrent " @@ -263,7 +253,7 @@ msgstr "" "たとえば、 CPU 負荷の高い関数を1秒実行したとすると、並行に処理されている全て" "の非同期タスクと I/O 処理は1秒遅れる可能性があります。 " -#: ../../library/asyncio-dev.rst:132 +#: ../../library/asyncio-dev.rst:128 msgid "" "An executor can be used to run a task in a different thread, including in a " "different interpreter, or even in a different process to avoid blocking the " @@ -271,11 +261,11 @@ msgid "" "for more details." msgstr "" -#: ../../library/asyncio-dev.rst:142 +#: ../../library/asyncio-dev.rst:138 msgid "Logging" msgstr "ログ記録" -#: ../../library/asyncio-dev.rst:144 +#: ../../library/asyncio-dev.rst:140 msgid "" "asyncio uses the :mod:`logging` module and all logging is performed via the " "``\"asyncio\"`` logger." @@ -283,7 +273,7 @@ msgstr "" "asyncio は :mod:`logging` モジュールを利用し、 全てのログ記録は " "``\"asyncio\"`` ロガーを通じて行われます。" -#: ../../library/asyncio-dev.rst:147 +#: ../../library/asyncio-dev.rst:143 msgid "" "The default log level is :py:const:`logging.INFO`, which can be easily " "adjusted::" @@ -291,11 +281,11 @@ msgstr "" "デフォルトのログレベルは :py:const:`logging.INFO` ですが、これは簡単に調節で" "きます:" -#: ../../library/asyncio-dev.rst:150 +#: ../../library/asyncio-dev.rst:146 msgid "logging.getLogger(\"asyncio\").setLevel(logging.WARNING)" msgstr "" -#: ../../library/asyncio-dev.rst:153 +#: ../../library/asyncio-dev.rst:149 msgid "" "Network logging can block the event loop. It is recommended to use a " "separate thread for handling logs or use non-blocking IO. For example, see :" @@ -305,11 +295,11 @@ msgstr "" "を分離するか、ノンブロッキング IO を使用することを推奨します。例えば、 :ref:" "`blocking-handlers` を見てください。" -#: ../../library/asyncio-dev.rst:161 +#: ../../library/asyncio-dev.rst:157 msgid "Detect never-awaited coroutines" msgstr "待ち受け処理を伴わないコルーチンの検出" -#: ../../library/asyncio-dev.rst:163 +#: ../../library/asyncio-dev.rst:159 msgid "" "When a coroutine function is called, but not awaited (e.g. ``coro()`` " "instead of ``await coro()``) or the coroutine is not scheduled with :meth:" @@ -320,7 +310,7 @@ msgstr "" "meth:`asyncio.create_task` を使わずにスケジュールされた場合、 asyncio は :" "exc:`RuntimeWarning` 警告を送出します:" -#: ../../library/asyncio-dev.rst:168 +#: ../../library/asyncio-dev.rst:164 msgid "" "import asyncio\n" "\n" @@ -333,21 +323,21 @@ msgid "" "asyncio.run(main())" msgstr "" -#: ../../library/asyncio-dev.rst:178 ../../library/asyncio-dev.rst:223 +#: ../../library/asyncio-dev.rst:174 ../../library/asyncio-dev.rst:219 msgid "Output::" msgstr "出力::" -#: ../../library/asyncio-dev.rst:180 +#: ../../library/asyncio-dev.rst:176 msgid "" "test.py:7: RuntimeWarning: coroutine 'test' was never awaited\n" " test()" msgstr "" -#: ../../library/asyncio-dev.rst:183 ../../library/asyncio-dev.rst:239 +#: ../../library/asyncio-dev.rst:179 ../../library/asyncio-dev.rst:235 msgid "Output in debug mode::" msgstr "デバッグモードの出力::" -#: ../../library/asyncio-dev.rst:185 +#: ../../library/asyncio-dev.rst:181 msgid "" "test.py:7: RuntimeWarning: coroutine 'test' was never awaited\n" "Coroutine created at (most recent call last)\n" @@ -361,7 +351,7 @@ msgid "" " test()" msgstr "" -#: ../../library/asyncio-dev.rst:196 +#: ../../library/asyncio-dev.rst:192 msgid "" "The usual fix is to either await the coroutine or call the :meth:`asyncio." "create_task` function::" @@ -369,17 +359,17 @@ msgstr "" "通常の修正方法はコルーチンを待ち受ける (await) か、 :meth:`asyncio." "create_task` 関数を呼び出すことです:" -#: ../../library/asyncio-dev.rst:199 +#: ../../library/asyncio-dev.rst:195 msgid "" "async def main():\n" " await test()" msgstr "" -#: ../../library/asyncio-dev.rst:204 +#: ../../library/asyncio-dev.rst:200 msgid "Detect never-retrieved exceptions" msgstr "回収されない例外の検出" -#: ../../library/asyncio-dev.rst:206 +#: ../../library/asyncio-dev.rst:202 msgid "" "If a :meth:`Future.set_exception` is called but the Future object is never " "awaited on, the exception would never be propagated to the user code. In " @@ -391,11 +381,11 @@ msgstr "" "この場合 asyncio は、 Future オブジェクトがガベージコレクションの対象となった" "ときにログメッセージを送出することがあります。" -#: ../../library/asyncio-dev.rst:211 +#: ../../library/asyncio-dev.rst:207 msgid "Example of an unhandled exception::" msgstr "処理されない例外の例:" -#: ../../library/asyncio-dev.rst:213 +#: ../../library/asyncio-dev.rst:209 msgid "" "import asyncio\n" "\n" @@ -408,7 +398,7 @@ msgid "" "asyncio.run(main())" msgstr "" -#: ../../library/asyncio-dev.rst:225 +#: ../../library/asyncio-dev.rst:221 msgid "" "Task exception was never retrieved\n" "future: \n" @@ -420,7 +410,7 @@ msgid "" "Exception: not consumed" msgstr "" -#: ../../library/asyncio-dev.rst:234 +#: ../../library/asyncio-dev.rst:230 msgid "" ":ref:`Enable the debug mode ` to get the traceback where " "the task was created::" @@ -428,11 +418,11 @@ msgstr "" "タスクが生成された箇所を特定するには、 :ref:`デバッグモードを有効化して " "` トレースバックを取得してください:" -#: ../../library/asyncio-dev.rst:237 +#: ../../library/asyncio-dev.rst:233 msgid "asyncio.run(main(), debug=True)" msgstr "" -#: ../../library/asyncio-dev.rst:241 +#: ../../library/asyncio-dev.rst:237 msgid "" "Task exception was never retrieved\n" "future: \n" diff --git a/library/asyncio-eventloop.po b/library/asyncio-eventloop.po index bc6f9e8b8..8c99664fa 100644 --- a/library/asyncio-eventloop.po +++ b/library/asyncio-eventloop.po @@ -15,15 +15,15 @@ msgid "" msgstr "" "Project-Id-Version: Python 3.14\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2025-05-08 02:53-0300\n" +"POT-Creation-Date: 2025-05-23 14:20+0000\n" "PO-Revision-Date: 2021-06-28 00:54+0000\n" "Last-Translator: souma987, 2023\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../library/asyncio-eventloop.rst:8 @@ -309,8 +309,8 @@ msgid "" msgstr ":func:`asyncio.run` を使った場合はこの関数を呼び出す必要はありません。" #: ../../library/asyncio-eventloop.rst:183 -#: ../../library/asyncio-eventloop.rst:1315 -#: ../../library/asyncio-eventloop.rst:1771 +#: ../../library/asyncio-eventloop.rst:1336 +#: ../../library/asyncio-eventloop.rst:1792 msgid "Example::" msgstr "以下はプログラム例です::" @@ -604,13 +604,20 @@ msgstr "" #: ../../library/asyncio-eventloop.rst:373 msgid "" +"The full function signature is largely the same as that of the :class:`Task` " +"constructor (or factory) - all of the keyword arguments to this function are " +"passed through to that interface." +msgstr "" + +#: ../../library/asyncio-eventloop.rst:377 +msgid "" "If the *name* argument is provided and not ``None``, it is set as the name " "of the task using :meth:`Task.set_name`." msgstr "" "*name* 引数が指定され、値が ``None`` でない場合、 :meth:`Task.set_name` メ" "ソッドにより *name* がタスクの名前として設定されます。" -#: ../../library/asyncio-eventloop.rst:376 +#: ../../library/asyncio-eventloop.rst:380 msgid "" "An optional keyword-only *context* argument allows specifying a custom :" "class:`contextvars.Context` for the *coro* to run in. The current context " @@ -620,7 +627,7 @@ msgstr "" "の :class:`contextvars.Context` を指定できます。*context* が省略された場合、" "現在のコンテキストのコピーが作成されます。" -#: ../../library/asyncio-eventloop.rst:380 +#: ../../library/asyncio-eventloop.rst:384 msgid "" "An optional keyword-only *eager_start* argument allows specifying if the " "task should execute eagerly during the call to create_task, or be scheduled " @@ -628,23 +635,38 @@ msgid "" "set_task_factory` will be used." msgstr "" -#: ../../library/asyncio-eventloop.rst:385 +#: ../../library/asyncio-eventloop.rst:389 msgid "Added the *name* parameter." msgstr "*name* パラメータを追加しました。" -#: ../../library/asyncio-eventloop.rst:388 +#: ../../library/asyncio-eventloop.rst:392 msgid "Added the *context* parameter." msgstr "*context* パラメータを追加しました。" -#: ../../library/asyncio-eventloop.rst:391 -msgid "Added the *eager_start* parameter." +#: ../../library/asyncio-eventloop.rst:395 +msgid "" +"Added ``kwargs`` which passes on arbitrary extra parameters, including " +"``name`` and ``context``." +msgstr "" + +#: ../../library/asyncio-eventloop.rst:398 +msgid "" +"Rolled back the change that passes on *name* and *context* (if it is None), " +"while still passing on other arbitrary keyword arguments (to avoid breaking " +"backwards compatibility with 3.13.3)." +msgstr "" + +#: ../../library/asyncio-eventloop.rst:402 +msgid "" +"All *kwargs* are now passed on. The *eager_start* parameter works with eager " +"task factories." msgstr "" -#: ../../library/asyncio-eventloop.rst:396 +#: ../../library/asyncio-eventloop.rst:407 msgid "Set a task factory that will be used by :meth:`loop.create_task`." msgstr ":meth:`loop.create_task` が使用するタスクファクトリーを設定します。" -#: ../../library/asyncio-eventloop.rst:399 +#: ../../library/asyncio-eventloop.rst:410 msgid "" "If *factory* is ``None`` the default task factory will be set. Otherwise, " "*factory* must be a *callable* with the signature matching ``(loop, coro, " @@ -653,17 +675,33 @@ msgid "" "return a :class:`asyncio.Task`-compatible object." msgstr "" -#: ../../library/asyncio-eventloop.rst:407 +#: ../../library/asyncio-eventloop.rst:416 +msgid "Required that all *kwargs* are passed on to :class:`asyncio.Task`." +msgstr "" + +#: ../../library/asyncio-eventloop.rst:419 +msgid "" +"*name* is no longer passed to task factories. *context* is no longer passed " +"to task factories if it is ``None``." +msgstr "" + +#: ../../library/asyncio-eventloop.rst:423 +msgid "" +"*name* and *context* are now unconditionally passed on to task factories " +"again." +msgstr "" + +#: ../../library/asyncio-eventloop.rst:428 msgid "Return a task factory or ``None`` if the default one is in use." msgstr "" "タスクファクトリを返します。デフォルトのタスクファクトリを使用中の場合は " "``None`` を返します。" -#: ../../library/asyncio-eventloop.rst:411 +#: ../../library/asyncio-eventloop.rst:432 msgid "Opening network connections" msgstr "ネットワーク接続の確立" -#: ../../library/asyncio-eventloop.rst:423 +#: ../../library/asyncio-eventloop.rst:444 msgid "" "Open a streaming transport connection to a given address specified by *host* " "and *port*." @@ -671,20 +709,20 @@ msgstr "" "*host* と *port* で指定されたアドレスとのストリーミングトランスポート接続を" "オープンします。" -#: ../../library/asyncio-eventloop.rst:426 +#: ../../library/asyncio-eventloop.rst:447 msgid "" "The socket family can be either :py:const:`~socket.AF_INET` or :py:const:" "`~socket.AF_INET6` depending on *host* (or the *family* argument, if " "provided)." msgstr "" -#: ../../library/asyncio-eventloop.rst:430 +#: ../../library/asyncio-eventloop.rst:451 msgid "The socket type will be :py:const:`~socket.SOCK_STREAM`." msgstr "" -#: ../../library/asyncio-eventloop.rst:432 -#: ../../library/asyncio-eventloop.rst:1225 -#: ../../library/asyncio-eventloop.rst:1242 +#: ../../library/asyncio-eventloop.rst:453 +#: ../../library/asyncio-eventloop.rst:1246 +#: ../../library/asyncio-eventloop.rst:1263 msgid "" "*protocol_factory* must be a callable returning an :ref:`asyncio protocol " "` implementation." @@ -692,7 +730,7 @@ msgstr "" "*protocol_factory* は :ref:`asyncio プロトコル ` の実装を返" "す呼び出し可能オブジェクトでなければなりません。" -#: ../../library/asyncio-eventloop.rst:435 +#: ../../library/asyncio-eventloop.rst:456 msgid "" "This method will try to establish the connection in the background. When " "successful, it returns a ``(transport, protocol)`` pair." @@ -700,11 +738,11 @@ msgstr "" "このメソッドはバックグラウンドで接続の確立を試みます。成功した場合、メソッド" "は ``(transport, protocol)`` のペアを返します。" -#: ../../library/asyncio-eventloop.rst:438 +#: ../../library/asyncio-eventloop.rst:459 msgid "The chronological synopsis of the underlying operation is as follows:" msgstr "時系列での下層処理の概要は以下のとおりです:" -#: ../../library/asyncio-eventloop.rst:440 +#: ../../library/asyncio-eventloop.rst:461 msgid "" "The connection is established and a :ref:`transport ` is " "created for it." @@ -712,7 +750,7 @@ msgstr "" "接続を確立し、その接続に対する :ref:`トランスポート ` が生" "成されます。" -#: ../../library/asyncio-eventloop.rst:443 +#: ../../library/asyncio-eventloop.rst:464 msgid "" "*protocol_factory* is called without arguments and is expected to return a :" "ref:`protocol ` instance." @@ -720,7 +758,7 @@ msgstr "" "*protocol_factory* が引数なしで呼び出され、ファクトリが :ref:`プロトコル " "` インスタンスを返すよう要求します。" -#: ../../library/asyncio-eventloop.rst:446 +#: ../../library/asyncio-eventloop.rst:467 msgid "" "The protocol instance is coupled with the transport by calling its :meth:" "`~BaseProtocol.connection_made` method." @@ -728,21 +766,21 @@ msgstr "" "プロトコルインスタンスが :meth:`~BaseProtocol.connection_made` メソッドを呼び" "出すことにより、トランスポートと紐付けられます。" -#: ../../library/asyncio-eventloop.rst:449 +#: ../../library/asyncio-eventloop.rst:470 msgid "A ``(transport, protocol)`` tuple is returned on success." msgstr "成功すると ``(transport, protocol)`` タプルが返されます。" -#: ../../library/asyncio-eventloop.rst:451 +#: ../../library/asyncio-eventloop.rst:472 msgid "" "The created transport is an implementation-dependent bidirectional stream." msgstr "作成されたトランスポートは実装依存の双方向ストリームです。" -#: ../../library/asyncio-eventloop.rst:454 -#: ../../library/asyncio-eventloop.rst:587 +#: ../../library/asyncio-eventloop.rst:475 +#: ../../library/asyncio-eventloop.rst:608 msgid "Other arguments:" msgstr "その他の引数:" -#: ../../library/asyncio-eventloop.rst:456 +#: ../../library/asyncio-eventloop.rst:477 msgid "" "*ssl*: if given and not false, a SSL/TLS transport is created (by default a " "plain TCP transport is created). If *ssl* is a :class:`ssl.SSLContext` " @@ -756,11 +794,11 @@ msgstr "" "るために使用されます; *ssl* が :const:`True` の場合、 :func:`ssl." "create_default_context` が返すデフォルトのコンテキストが使われます。" -#: ../../library/asyncio-eventloop.rst:462 +#: ../../library/asyncio-eventloop.rst:483 msgid ":ref:`SSL/TLS security considerations `" msgstr ":ref:`SSL/TLS セキュリティについての考察 `" -#: ../../library/asyncio-eventloop.rst:464 +#: ../../library/asyncio-eventloop.rst:485 msgid "" "*server_hostname* sets or overrides the hostname that the target server's " "certificate will be matched against. Should only be passed if *ssl* is not " @@ -778,7 +816,7 @@ msgstr "" "致確認は行われません (これは深刻なセキュリティリスクであり、中間者攻撃を受け" "る可能性があります)。" -#: ../../library/asyncio-eventloop.rst:472 +#: ../../library/asyncio-eventloop.rst:493 msgid "" "*family*, *proto*, *flags* are the optional address family, protocol and " "flags to be passed through to getaddrinfo() for *host* resolution. If given, " @@ -790,7 +828,7 @@ msgstr "" "ンが与えられた場合、これらはすべて :mod:`socket` モジュール定数に従った整数で" "なければなりません。" -#: ../../library/asyncio-eventloop.rst:477 +#: ../../library/asyncio-eventloop.rst:498 msgid "" "*happy_eyeballs_delay*, if given, enables Happy Eyeballs for this " "connection. It should be a floating-point number representing the amount of " @@ -805,7 +843,7 @@ msgstr "" "定義されている \"接続試行遅延\" に相当します。RFC で推奨されている実用的なデ" "フォルト値は ``0.25`` (250 ミリ秒) です。" -#: ../../library/asyncio-eventloop.rst:485 +#: ../../library/asyncio-eventloop.rst:506 msgid "" "*interleave* controls address reordering when a host name resolves to " "multiple IP addresses. If ``0`` or unspecified, no reordering is done, and " @@ -824,7 +862,7 @@ msgstr "" "*happy_eyeballs_delay* が指定されない場合は ``0`` であり、指定された場合は " "``1`` です。" -#: ../../library/asyncio-eventloop.rst:494 +#: ../../library/asyncio-eventloop.rst:515 msgid "" "*sock*, if given, should be an existing, already connected :class:`socket." "socket` object to be used by the transport. If *sock* is given, none of " @@ -836,16 +874,16 @@ msgstr "" "*port*、 *family*、 *proto*、 *flags*、 *happy_eyeballs_delay*、 " "*interleave* および *local_addr* のいずれも指定してはいけません。" -#: ../../library/asyncio-eventloop.rst:502 -#: ../../library/asyncio-eventloop.rst:618 -#: ../../library/asyncio-eventloop.rst:866 +#: ../../library/asyncio-eventloop.rst:523 +#: ../../library/asyncio-eventloop.rst:639 +#: ../../library/asyncio-eventloop.rst:887 msgid "" "The *sock* argument transfers ownership of the socket to the transport " "created. To close the socket, call the transport's :meth:`~asyncio." "BaseTransport.close` method." msgstr "" -#: ../../library/asyncio-eventloop.rst:506 +#: ../../library/asyncio-eventloop.rst:527 msgid "" "*local_addr*, if given, is a ``(local_host, local_port)`` tuple used to bind " "the socket locally. The *local_host* and *local_port* are looked up using " @@ -856,8 +894,8 @@ msgstr "" "*local_port* は、 *host* および *port* と同じく ``getaddrinfo()`` を使って" "ルックアップされます。" -#: ../../library/asyncio-eventloop.rst:510 -#: ../../library/asyncio-eventloop.rst:962 +#: ../../library/asyncio-eventloop.rst:531 +#: ../../library/asyncio-eventloop.rst:983 msgid "" "*ssl_handshake_timeout* is (for a TLS connection) the time in seconds to " "wait for the TLS handshake to complete before aborting the connection. " @@ -867,17 +905,17 @@ msgstr "" "の) 待ち時間を秒単位で指定します。指定した待ち時間を超えると接続は中断しま" "す。 ``None`` が与えられた場合はデフォルト値 ``60.0`` が使われます。" -#: ../../library/asyncio-eventloop.rst:514 -#: ../../library/asyncio-eventloop.rst:773 -#: ../../library/asyncio-eventloop.rst:877 -#: ../../library/asyncio-eventloop.rst:966 +#: ../../library/asyncio-eventloop.rst:535 +#: ../../library/asyncio-eventloop.rst:794 +#: ../../library/asyncio-eventloop.rst:898 +#: ../../library/asyncio-eventloop.rst:987 msgid "" "*ssl_shutdown_timeout* is the time in seconds to wait for the SSL shutdown " "to complete before aborting the connection. ``30.0`` seconds if ``None`` " "(default)." msgstr "" -#: ../../library/asyncio-eventloop.rst:518 +#: ../../library/asyncio-eventloop.rst:539 msgid "" "*all_errors* determines what exceptions are raised when a connection cannot " "be created. By default, only a single ``Exception`` is raised: the first " @@ -887,28 +925,28 @@ msgid "" "(even if there is only one)." msgstr "" -#: ../../library/asyncio-eventloop.rst:528 -#: ../../library/asyncio-eventloop.rst:785 +#: ../../library/asyncio-eventloop.rst:549 +#: ../../library/asyncio-eventloop.rst:806 msgid "Added support for SSL/TLS in :class:`ProactorEventLoop`." msgstr "" ":class:`ProactorEventLoop` において SSL/TLS のサポートが追加されました。" -#: ../../library/asyncio-eventloop.rst:532 +#: ../../library/asyncio-eventloop.rst:553 msgid "" "The socket option :ref:`socket.TCP_NODELAY ` is set " "by default for all TCP connections." msgstr "" -#: ../../library/asyncio-eventloop.rst:537 -#: ../../library/asyncio-eventloop.rst:887 +#: ../../library/asyncio-eventloop.rst:558 +#: ../../library/asyncio-eventloop.rst:908 msgid "Added the *ssl_handshake_timeout* parameter." msgstr "" -#: ../../library/asyncio-eventloop.rst:541 +#: ../../library/asyncio-eventloop.rst:562 msgid "Added the *happy_eyeballs_delay* and *interleave* parameters." msgstr "*happy_eyeballs_delay* と *interleave* が追加されました。" -#: ../../library/asyncio-eventloop.rst:543 +#: ../../library/asyncio-eventloop.rst:564 msgid "" "Happy Eyeballs Algorithm: Success with Dual-Stack Hosts. When a server's " "IPv4 path and protocol are working, but the server's IPv6 path and protocol " @@ -919,24 +957,24 @@ msgid "" "visible delay and provides an algorithm." msgstr "" -#: ../../library/asyncio-eventloop.rst:552 +#: ../../library/asyncio-eventloop.rst:573 msgid "For more information: https://datatracker.ietf.org/doc/html/rfc6555" msgstr "" -#: ../../library/asyncio-eventloop.rst:556 -#: ../../library/asyncio-eventloop.rst:682 -#: ../../library/asyncio-eventloop.rst:799 -#: ../../library/asyncio-eventloop.rst:839 -#: ../../library/asyncio-eventloop.rst:891 -#: ../../library/asyncio-eventloop.rst:974 +#: ../../library/asyncio-eventloop.rst:577 +#: ../../library/asyncio-eventloop.rst:703 +#: ../../library/asyncio-eventloop.rst:820 +#: ../../library/asyncio-eventloop.rst:860 +#: ../../library/asyncio-eventloop.rst:912 +#: ../../library/asyncio-eventloop.rst:995 msgid "Added the *ssl_shutdown_timeout* parameter." msgstr "*ssl_shutdown_timeout* パラメータが追加されました。" -#: ../../library/asyncio-eventloop.rst:558 +#: ../../library/asyncio-eventloop.rst:579 msgid "*all_errors* was added." msgstr "*all_errors* が追加されました" -#: ../../library/asyncio-eventloop.rst:563 +#: ../../library/asyncio-eventloop.rst:584 msgid "" "The :func:`open_connection` function is a high-level alternative API. It " "returns a pair of (:class:`StreamReader`, :class:`StreamWriter`) that can be " @@ -946,24 +984,24 @@ msgstr "" "`StreamReader`, :class:`StreamWriter`) のペアを返し、 async/await コードから" "直接使うことができます。" -#: ../../library/asyncio-eventloop.rst:574 +#: ../../library/asyncio-eventloop.rst:595 msgid "Create a datagram connection." msgstr "データグラム接続 (UDP) を生成します。" -#: ../../library/asyncio-eventloop.rst:576 +#: ../../library/asyncio-eventloop.rst:597 msgid "" "The socket family can be either :py:const:`~socket.AF_INET`, :py:const:" "`~socket.AF_INET6`, or :py:const:`~socket.AF_UNIX`, depending on *host* (or " "the *family* argument, if provided)." msgstr "" -#: ../../library/asyncio-eventloop.rst:580 +#: ../../library/asyncio-eventloop.rst:601 msgid "The socket type will be :py:const:`~socket.SOCK_DGRAM`." msgstr "" -#: ../../library/asyncio-eventloop.rst:582 -#: ../../library/asyncio-eventloop.rst:709 -#: ../../library/asyncio-eventloop.rst:858 +#: ../../library/asyncio-eventloop.rst:603 +#: ../../library/asyncio-eventloop.rst:730 +#: ../../library/asyncio-eventloop.rst:879 msgid "" "*protocol_factory* must be a callable returning a :ref:`protocol ` implementation." @@ -971,12 +1009,12 @@ msgstr "" "*protocol_factory* は :ref:`asyncio プロトコル ` の実装を返" "す呼び出し可能オブジェクトでなければなりません。" -#: ../../library/asyncio-eventloop.rst:585 -#: ../../library/asyncio-eventloop.rst:664 +#: ../../library/asyncio-eventloop.rst:606 +#: ../../library/asyncio-eventloop.rst:685 msgid "A tuple of ``(transport, protocol)`` is returned on success." msgstr "成功すると ``(transport, protocol)`` タプルが返されます。" -#: ../../library/asyncio-eventloop.rst:589 +#: ../../library/asyncio-eventloop.rst:610 msgid "" "*local_addr*, if given, is a ``(local_host, local_port)`` tuple used to bind " "the socket locally. The *local_host* and *local_port* are looked up using :" @@ -986,7 +1024,7 @@ msgstr "" "``(local_host, local_port)`` のタプルを指定します。 *local_host* と " "*local_port* は :meth:`getaddrinfo` メソッドを使用して検索されます。" -#: ../../library/asyncio-eventloop.rst:593 +#: ../../library/asyncio-eventloop.rst:614 msgid "" "*remote_addr*, if given, is a ``(remote_host, remote_port)`` tuple used to " "connect the socket to a remote address. The *remote_host* and *remote_port* " @@ -996,7 +1034,7 @@ msgstr "" "ケットをリモートアドレスに束縛するために使用されます。*remote_host* と " "*remote_port* は :meth:`getaddrinfo` を使用して検索されます。" -#: ../../library/asyncio-eventloop.rst:597 +#: ../../library/asyncio-eventloop.rst:618 msgid "" "*family*, *proto*, *flags* are the optional address family, protocol and " "flags to be passed through to :meth:`getaddrinfo` for *host* resolution. If " @@ -1008,7 +1046,7 @@ msgstr "" "渡されます。これらのオプションを指定する場合、すべて :mod:`socket` モジュール" "定数に従った整数でなければなりません。" -#: ../../library/asyncio-eventloop.rst:602 +#: ../../library/asyncio-eventloop.rst:623 msgid "" "*reuse_port* tells the kernel to allow this endpoint to be bound to the same " "port as other existing endpoints are bound to, so long as they all set this " @@ -1017,7 +1055,7 @@ msgid "" "is not defined then this capability is unsupported." msgstr "" -#: ../../library/asyncio-eventloop.rst:608 +#: ../../library/asyncio-eventloop.rst:629 msgid "" "*allow_broadcast* tells the kernel to allow this endpoint to send messages " "to the broadcast address." @@ -1025,7 +1063,7 @@ msgstr "" "*allow_broadcast* は、カーネルに、このエンドポイントがブロードキャストアドレ" "スにメッセージを送信することを許可するように指示します。" -#: ../../library/asyncio-eventloop.rst:611 +#: ../../library/asyncio-eventloop.rst:632 msgid "" "*sock* can optionally be specified in order to use a preexisting, already " "connected, :class:`socket.socket` object to be used by the transport. If " @@ -1037,7 +1075,7 @@ msgstr "" "用する場合、*local_addr* と *remote_addr* は省略してください (:const:`None` " "でなければなりません)。" -#: ../../library/asyncio-eventloop.rst:622 +#: ../../library/asyncio-eventloop.rst:643 msgid "" "See :ref:`UDP echo client protocol ` and :" "ref:`UDP echo server protocol ` examples." @@ -1046,24 +1084,24 @@ msgstr "" "よび :ref:`UDP echo サーバープロトコル ` の" "例を参照してください。" -#: ../../library/asyncio-eventloop.rst:625 +#: ../../library/asyncio-eventloop.rst:646 msgid "" "The *family*, *proto*, *flags*, *reuse_address*, *reuse_port*, " "*allow_broadcast*, and *sock* parameters were added." msgstr "" -#: ../../library/asyncio-eventloop.rst:629 +#: ../../library/asyncio-eventloop.rst:650 msgid "Added support for Windows." msgstr "Windows サポートが追加されました。" -#: ../../library/asyncio-eventloop.rst:632 +#: ../../library/asyncio-eventloop.rst:653 msgid "" "The *reuse_address* parameter is no longer supported, as using :ref:`socket." "SO_REUSEADDR ` poses a significant security concern " "for UDP. Explicitly passing ``reuse_address=True`` will raise an exception." msgstr "" -#: ../../library/asyncio-eventloop.rst:638 +#: ../../library/asyncio-eventloop.rst:659 msgid "" "When multiple processes with differing UIDs assign sockets to an identical " "UDP socket address with ``SO_REUSEADDR``, incoming packets can become " @@ -1073,7 +1111,7 @@ msgstr "" "が異なる UID でソケットを割り当てている場合、受信パケットは複数のソケット間に" "ランダムに分散する可能性があります。" -#: ../../library/asyncio-eventloop.rst:642 +#: ../../library/asyncio-eventloop.rst:663 msgid "" "For supported platforms, *reuse_port* can be used as a replacement for " "similar functionality. With *reuse_port*, :ref:`socket.SO_REUSEPORT ` is set by default " "for all TCP connections." msgstr "" -#: ../../library/asyncio-eventloop.rst:803 +#: ../../library/asyncio-eventloop.rst:824 msgid "" "The :func:`start_server` function is a higher-level alternative API that " "returns a pair of :class:`StreamReader` and :class:`StreamWriter` that can " @@ -1306,13 +1344,13 @@ msgstr "" "`StreamReader` と :class:`StreamWriter` のペアを返し、async/await コードから" "使うことができます。" -#: ../../library/asyncio-eventloop.rst:815 +#: ../../library/asyncio-eventloop.rst:836 msgid "" "Similar to :meth:`loop.create_server` but works with the :py:const:`~socket." "AF_UNIX` socket family." msgstr "" -#: ../../library/asyncio-eventloop.rst:818 +#: ../../library/asyncio-eventloop.rst:839 msgid "" "*path* is the name of a Unix domain socket, and is required, unless a *sock* " "argument is provided. Abstract Unix sockets, :class:`str`, :class:`bytes`, " @@ -1322,14 +1360,14 @@ msgstr "" "須です。 抽象 Unix ソケット、 :class:`str`、 :class:`bytes`、 and :class:" "`~pathlib.Path` 形式でのパスがサポートされています。" -#: ../../library/asyncio-eventloop.rst:823 +#: ../../library/asyncio-eventloop.rst:844 msgid "" "If *cleanup_socket* is true then the Unix socket will automatically be " "removed from the filesystem when the server is closed, unless the socket has " "been replaced after the server has been created." msgstr "" -#: ../../library/asyncio-eventloop.rst:827 +#: ../../library/asyncio-eventloop.rst:848 msgid "" "See the documentation of the :meth:`loop.create_server` method for " "information about arguments to this method." @@ -1337,21 +1375,21 @@ msgstr "" "このメソッドの引数についての詳細は :meth:`loop.create_server` メソッドのド" "キュメントを参照してください。" -#: ../../library/asyncio-eventloop.rst:834 +#: ../../library/asyncio-eventloop.rst:855 msgid "" "Added the *ssl_handshake_timeout* and *start_serving* parameters. The *path* " "parameter can now be a :class:`~pathlib.Path` object." msgstr "" -#: ../../library/asyncio-eventloop.rst:843 +#: ../../library/asyncio-eventloop.rst:864 msgid "Added the *cleanup_socket* parameter." msgstr "" -#: ../../library/asyncio-eventloop.rst:851 +#: ../../library/asyncio-eventloop.rst:872 msgid "Wrap an already accepted connection into a transport/protocol pair." msgstr "すでに確立した接続を transport と protocol のペアでラップします。" -#: ../../library/asyncio-eventloop.rst:853 +#: ../../library/asyncio-eventloop.rst:874 msgid "" "This method can be used by servers that accept connections outside of " "asyncio but that use asyncio to handle them." @@ -1359,12 +1397,12 @@ msgstr "" "このメソッドは asyncio の範囲外で確立された接続を使うサーバーに対しても使えま" "すが、その場合でも接続は asyncio を使って処理されます。" -#: ../../library/asyncio-eventloop.rst:856 -#: ../../library/asyncio-eventloop.rst:948 +#: ../../library/asyncio-eventloop.rst:877 +#: ../../library/asyncio-eventloop.rst:969 msgid "Parameters:" msgstr "引数:" -#: ../../library/asyncio-eventloop.rst:861 +#: ../../library/asyncio-eventloop.rst:882 msgid "" "*sock* is a preexisting socket object returned from :meth:`socket.accept " "`." @@ -1372,7 +1410,7 @@ msgstr "" "*sock* は :meth:`socket.accept ` メソッドが返す既存のソ" "ケットオブジェクトです。" -#: ../../library/asyncio-eventloop.rst:870 +#: ../../library/asyncio-eventloop.rst:891 msgid "" "*ssl* can be set to an :class:`~ssl.SSLContext` to enable SSL over the " "accepted connections." @@ -1380,7 +1418,7 @@ msgstr "" "*ssl* には :class:`~ssl.SSLContext` を指定できます。指定すると、受け付けたコ" "ネクション上での SSL を有効にします。" -#: ../../library/asyncio-eventloop.rst:873 +#: ../../library/asyncio-eventloop.rst:894 msgid "" "*ssl_handshake_timeout* is (for an SSL connection) the time in seconds to " "wait for the SSL handshake to complete before aborting the connection. " @@ -1390,35 +1428,35 @@ msgstr "" "の) 待ち時間を秒単位で指定します。 ``None`` が与えられた場合はデフォルト値 " "``60.0`` が使われます。" -#: ../../library/asyncio-eventloop.rst:881 +#: ../../library/asyncio-eventloop.rst:902 msgid "Returns a ``(transport, protocol)`` pair." msgstr "``(transport, protocol)`` のペアを返します。" -#: ../../library/asyncio-eventloop.rst:895 +#: ../../library/asyncio-eventloop.rst:916 msgid "Transferring files" msgstr "ファイルの転送" -#: ../../library/asyncio-eventloop.rst:901 +#: ../../library/asyncio-eventloop.rst:922 msgid "" "Send a *file* over a *transport*. Return the total number of bytes sent." msgstr "" "*transport* を通じて *file* を送信します。送信したデータの総バイト数を返しま" "す。" -#: ../../library/asyncio-eventloop.rst:904 +#: ../../library/asyncio-eventloop.rst:925 msgid "The method uses high-performance :meth:`os.sendfile` if available." msgstr "" "このメソッドは、もし利用可能であれば高性能な :meth:`os.sendfile` を利用しま" "す。" -#: ../../library/asyncio-eventloop.rst:906 +#: ../../library/asyncio-eventloop.rst:927 msgid "*file* must be a regular file object opened in binary mode." msgstr "" "*file* はバイナリモードでオープンされた通常のファイルオブジェクトでなければな" "りません。" -#: ../../library/asyncio-eventloop.rst:908 -#: ../../library/asyncio-eventloop.rst:1169 +#: ../../library/asyncio-eventloop.rst:929 +#: ../../library/asyncio-eventloop.rst:1190 msgid "" "*offset* tells from where to start reading the file. If specified, *count* " "is the total number of bytes to transmit as opposed to sending the file " @@ -1432,7 +1470,7 @@ msgstr "" "ラーを送出した場合でも更新されます。この場合実際に送信されたバイト数は :meth:" "`file.tell() ` メソッドで取得することができます。" -#: ../../library/asyncio-eventloop.rst:915 +#: ../../library/asyncio-eventloop.rst:936 msgid "" "*fallback* set to ``True`` makes asyncio to manually read and send the file " "when the platform does not support the sendfile system call (e.g. Windows or " @@ -1443,7 +1481,7 @@ msgstr "" "SSL ソケットなど) に別の方法でファイルの読み込みと送信を行うようにすることが" "できます。" -#: ../../library/asyncio-eventloop.rst:919 +#: ../../library/asyncio-eventloop.rst:940 msgid "" "Raise :exc:`SendfileNotAvailableError` if the system does not support the " "*sendfile* syscall and *fallback* is ``False``." @@ -1451,22 +1489,22 @@ msgstr "" "システムが *sendfile* システムコールをサポートしておらず、かつ *fallback* が " "``False`` の場合、 :exc:`SendfileNotAvailableError` 例外を送出します。" -#: ../../library/asyncio-eventloop.rst:926 +#: ../../library/asyncio-eventloop.rst:947 msgid "TLS Upgrade" msgstr "TLS へのアップグレード" -#: ../../library/asyncio-eventloop.rst:934 +#: ../../library/asyncio-eventloop.rst:955 msgid "Upgrade an existing transport-based connection to TLS." msgstr "既存のトランスポートベースの接続を TLS にアップグレードします。" -#: ../../library/asyncio-eventloop.rst:936 +#: ../../library/asyncio-eventloop.rst:957 msgid "" "Create a TLS coder/decoder instance and insert it between the *transport* " "and the *protocol*. The coder/decoder implements both *transport*-facing " "protocol and *protocol*-facing transport." msgstr "" -#: ../../library/asyncio-eventloop.rst:940 +#: ../../library/asyncio-eventloop.rst:961 msgid "" "Return the created two-interface instance. After *await*, the *protocol* " "must stop using the original *transport* and communicate with the returned " @@ -1474,13 +1512,13 @@ msgid "" "exchanges extra TLS session packets with *transport*." msgstr "" -#: ../../library/asyncio-eventloop.rst:945 +#: ../../library/asyncio-eventloop.rst:966 msgid "" "In some situations (e.g. when the passed transport is already closing) this " "may return ``None``." msgstr "" -#: ../../library/asyncio-eventloop.rst:950 +#: ../../library/asyncio-eventloop.rst:971 msgid "" "*transport* and *protocol* instances that methods like :meth:`~loop." "create_server` and :meth:`~loop.create_connection` return." @@ -1488,11 +1526,11 @@ msgstr "" "*transport* と *protocol* には、 :meth:`~loop.create_server` や :meth:`~loop." "create_connection` が返すものと同等のインスタンスを指定します。" -#: ../../library/asyncio-eventloop.rst:954 +#: ../../library/asyncio-eventloop.rst:975 msgid "*sslcontext*: a configured instance of :class:`~ssl.SSLContext`." msgstr "*sslcontext*: 構成済みの :class:`~ssl.SSLContext` インスタンスです。" -#: ../../library/asyncio-eventloop.rst:956 +#: ../../library/asyncio-eventloop.rst:977 msgid "" "*server_side* pass ``True`` when a server-side connection is being upgraded " "(like the one created by :meth:`~loop.create_server`)." @@ -1500,7 +1538,7 @@ msgstr "" "(:meth:`~loop.create_server` で生成されたような) サーバーサイドの接続をアップ" "グレードする場合は *server_side* に ``True`` を渡します。" -#: ../../library/asyncio-eventloop.rst:959 +#: ../../library/asyncio-eventloop.rst:980 msgid "" "*server_hostname*: sets or overrides the host name that the target server's " "certificate will be matched against." @@ -1508,11 +1546,11 @@ msgstr "" "*server_hostname*: 対象のサーバーの証明書との照合に使われるホスト名を設定また" "は上書きします。" -#: ../../library/asyncio-eventloop.rst:979 +#: ../../library/asyncio-eventloop.rst:1000 msgid "Watching file descriptors" msgstr "ファイル記述子の監視" -#: ../../library/asyncio-eventloop.rst:983 +#: ../../library/asyncio-eventloop.rst:1004 msgid "" "Start monitoring the *fd* file descriptor for read availability and invoke " "*callback* with the specified arguments once *fd* is available for reading." @@ -1520,20 +1558,20 @@ msgstr "" "ファイル記述子 *fd* に対する読み込みが可能かどうかの監視を開始し、 *fd* が読" "み込み可能になると、指定した引数でコールバック *callback* を呼び出します。" -#: ../../library/asyncio-eventloop.rst:987 -#: ../../library/asyncio-eventloop.rst:1001 +#: ../../library/asyncio-eventloop.rst:1008 +#: ../../library/asyncio-eventloop.rst:1022 msgid "" "Any preexisting callback registered for *fd* is cancelled and replaced by " "*callback*." msgstr "" -#: ../../library/asyncio-eventloop.rst:992 +#: ../../library/asyncio-eventloop.rst:1013 msgid "" "Stop monitoring the *fd* file descriptor for read availability. Returns " "``True`` if *fd* was previously being monitored for reads." msgstr "" -#: ../../library/asyncio-eventloop.rst:997 +#: ../../library/asyncio-eventloop.rst:1018 msgid "" "Start monitoring the *fd* file descriptor for write availability and invoke " "*callback* with the specified arguments once *fd* is available for writing." @@ -1541,8 +1579,8 @@ msgstr "" "ファイル記述子 *fd* に対する書き込みが可能かどうかの監視を開始し、 *fd* が書" "き込み可能になると、指定した引数でコールバック *callback* を呼び出します。" -#: ../../library/asyncio-eventloop.rst:1004 -#: ../../library/asyncio-eventloop.rst:1282 +#: ../../library/asyncio-eventloop.rst:1025 +#: ../../library/asyncio-eventloop.rst:1303 msgid "" "Use :func:`functools.partial` :ref:`to pass keyword arguments ` to *callback*." @@ -1550,13 +1588,13 @@ msgstr "" "コールバック *callback* に :ref:`キーワード引数を渡す ` 場合は :func:`functools.partial` を使ってください。" -#: ../../library/asyncio-eventloop.rst:1009 +#: ../../library/asyncio-eventloop.rst:1030 msgid "" "Stop monitoring the *fd* file descriptor for write availability. Returns " "``True`` if *fd* was previously being monitored for writes." msgstr "" -#: ../../library/asyncio-eventloop.rst:1012 +#: ../../library/asyncio-eventloop.rst:1033 msgid "" "See also :ref:`Platform Support ` section for some " "limitations of these methods." @@ -1564,11 +1602,11 @@ msgstr "" "これらのメソッドに対する制限事項については :ref:`プラットフォームのサポート状" "況 ` 節も参照してください。" -#: ../../library/asyncio-eventloop.rst:1017 +#: ../../library/asyncio-eventloop.rst:1038 msgid "Working with socket objects directly" msgstr "ソケットオブジェクトと直接やりとりする" -#: ../../library/asyncio-eventloop.rst:1019 +#: ../../library/asyncio-eventloop.rst:1040 msgid "" "In general, protocol implementations that use transport-based APIs such as :" "meth:`loop.create_connection` and :meth:`loop.create_server` are faster than " @@ -1582,7 +1620,7 @@ msgstr "" "class:`~socket.socket` オブジェクトとやりとりした方が便利なユースケースがいく" "つかあります。" -#: ../../library/asyncio-eventloop.rst:1029 +#: ../../library/asyncio-eventloop.rst:1050 msgid "" "Receive up to *nbytes* from *sock*. Asynchronous version of :meth:`socket." "recv() `." @@ -1590,23 +1628,23 @@ msgstr "" "*nbytes* で指定したバイト数までのデータをソケット *sock* から受信します。 こ" "のメソッドは :meth:`socket.recv() ` の非同期版です。" -#: ../../library/asyncio-eventloop.rst:1032 +#: ../../library/asyncio-eventloop.rst:1053 msgid "Return the received data as a bytes object." msgstr "受信したデータをバイトオブジェクトとして返します。" -#: ../../library/asyncio-eventloop.rst:1034 -#: ../../library/asyncio-eventloop.rst:1049 -#: ../../library/asyncio-eventloop.rst:1061 -#: ../../library/asyncio-eventloop.rst:1074 -#: ../../library/asyncio-eventloop.rst:1090 -#: ../../library/asyncio-eventloop.rst:1106 -#: ../../library/asyncio-eventloop.rst:1117 -#: ../../library/asyncio-eventloop.rst:1144 -#: ../../library/asyncio-eventloop.rst:1183 +#: ../../library/asyncio-eventloop.rst:1055 +#: ../../library/asyncio-eventloop.rst:1070 +#: ../../library/asyncio-eventloop.rst:1082 +#: ../../library/asyncio-eventloop.rst:1095 +#: ../../library/asyncio-eventloop.rst:1111 +#: ../../library/asyncio-eventloop.rst:1127 +#: ../../library/asyncio-eventloop.rst:1138 +#: ../../library/asyncio-eventloop.rst:1165 +#: ../../library/asyncio-eventloop.rst:1204 msgid "*sock* must be a non-blocking socket." msgstr "*sock* はノンブロッキングソケットでなければなりません。" -#: ../../library/asyncio-eventloop.rst:1036 +#: ../../library/asyncio-eventloop.rst:1057 msgid "" "Even though this method was always documented as a coroutine method, " "releases before Python 3.7 returned a :class:`Future`. Since Python 3.7 this " @@ -1616,7 +1654,7 @@ msgstr "" "が、 Python 3.7 以前のリリースでは :class:`Future` オブジェクトを返していまし" "た。 Python 3.7 からは ``async def`` メソッドになりました。" -#: ../../library/asyncio-eventloop.rst:1044 +#: ../../library/asyncio-eventloop.rst:1065 msgid "" "Receive data from *sock* into the *buf* buffer. Modeled after the blocking :" "meth:`socket.recv_into() ` method." @@ -1625,31 +1663,31 @@ msgstr "" "コードの :meth:`socket.recv_into() ` メソッドをモデ" "ルとしています。" -#: ../../library/asyncio-eventloop.rst:1047 +#: ../../library/asyncio-eventloop.rst:1068 msgid "Return the number of bytes written to the buffer." msgstr "バッファに書き込んだデータのバイト数を返します。" -#: ../../library/asyncio-eventloop.rst:1056 +#: ../../library/asyncio-eventloop.rst:1077 msgid "" "Receive a datagram of up to *bufsize* from *sock*. Asynchronous version of :" "meth:`socket.recvfrom() `." msgstr "" -#: ../../library/asyncio-eventloop.rst:1059 +#: ../../library/asyncio-eventloop.rst:1080 msgid "Return a tuple of (received data, remote address)." msgstr "" -#: ../../library/asyncio-eventloop.rst:1068 +#: ../../library/asyncio-eventloop.rst:1089 msgid "" "Receive a datagram of up to *nbytes* from *sock* into *buf*. Asynchronous " "version of :meth:`socket.recvfrom_into() `." msgstr "" -#: ../../library/asyncio-eventloop.rst:1072 +#: ../../library/asyncio-eventloop.rst:1093 msgid "Return a tuple of (number of bytes received, remote address)." msgstr "" -#: ../../library/asyncio-eventloop.rst:1081 +#: ../../library/asyncio-eventloop.rst:1102 msgid "" "Send *data* to the *sock* socket. Asynchronous version of :meth:`socket." "sendall() `." @@ -1657,7 +1695,7 @@ msgstr "" "データ *data* をソケット *sock* に送信します。 :meth:`socket.sendall() " "` メソッドの非同期版です。" -#: ../../library/asyncio-eventloop.rst:1084 +#: ../../library/asyncio-eventloop.rst:1105 msgid "" "This method continues to send to the socket until either all data in *data* " "has been sent or an error occurs. ``None`` is returned on success. On " @@ -1670,8 +1708,8 @@ msgstr "" "場合は例外が送出されます。エラーとなった場合、接続の受信側で正しく処理された" "データの総量を特定する方法はありません。" -#: ../../library/asyncio-eventloop.rst:1092 -#: ../../library/asyncio-eventloop.rst:1146 +#: ../../library/asyncio-eventloop.rst:1113 +#: ../../library/asyncio-eventloop.rst:1167 msgid "" "Even though the method was always documented as a coroutine method, before " "Python 3.7 it returned a :class:`Future`. Since Python 3.7, this is an " @@ -1681,26 +1719,26 @@ msgstr "" "が、 Python 3.7 以前のリリースでは :class:`Future` オブジェクトを返していまし" "た。 Python 3.7 からは ``async def`` メソッドになりました。" -#: ../../library/asyncio-eventloop.rst:1100 +#: ../../library/asyncio-eventloop.rst:1121 msgid "" "Send a datagram from *sock* to *address*. Asynchronous version of :meth:" "`socket.sendto() `." msgstr "" -#: ../../library/asyncio-eventloop.rst:1104 +#: ../../library/asyncio-eventloop.rst:1125 msgid "Return the number of bytes sent." msgstr "" -#: ../../library/asyncio-eventloop.rst:1113 +#: ../../library/asyncio-eventloop.rst:1134 msgid "Connect *sock* to a remote socket at *address*." msgstr "ソケット *sock* をアドレス *address* のリモートソケットに接続します。" -#: ../../library/asyncio-eventloop.rst:1115 +#: ../../library/asyncio-eventloop.rst:1136 msgid "" "Asynchronous version of :meth:`socket.connect() `." msgstr ":meth:`socket.connect() ` の非同期版です。" -#: ../../library/asyncio-eventloop.rst:1119 +#: ../../library/asyncio-eventloop.rst:1140 msgid "" "``address`` no longer needs to be resolved. ``sock_connect`` will try to " "check if the *address* is already resolved by calling :func:`socket." @@ -1712,7 +1750,7 @@ msgstr "" "解決の場合、 *address* の名前解決には :meth:`loop.getaddrinfo` メソッドが使わ" "れます。" -#: ../../library/asyncio-eventloop.rst:1128 +#: ../../library/asyncio-eventloop.rst:1149 msgid "" ":meth:`loop.create_connection` and :func:`asyncio.open_connection() " "`." @@ -1720,7 +1758,7 @@ msgstr "" ":meth:`loop.create_connection` および :func:`asyncio.open_connection() " "`。" -#: ../../library/asyncio-eventloop.rst:1135 +#: ../../library/asyncio-eventloop.rst:1156 msgid "" "Accept a connection. Modeled after the blocking :meth:`socket.accept() " "` method." @@ -1728,7 +1766,7 @@ msgstr "" "接続を受け付けます。ブロッキングコールの :meth:`socket.accept() ` メソッドをモデルとしています。" -#: ../../library/asyncio-eventloop.rst:1138 +#: ../../library/asyncio-eventloop.rst:1159 msgid "" "The socket must be bound to an address and listening for connections. The " "return value is a pair ``(conn, address)`` where *conn* is a *new* socket " @@ -1740,11 +1778,11 @@ msgstr "" "めの *新しい* ソケットオブジェクト、*address* は接続先の端点でソケットに束縛" "されているアドレスを示します。" -#: ../../library/asyncio-eventloop.rst:1153 +#: ../../library/asyncio-eventloop.rst:1174 msgid ":meth:`loop.create_server` and :func:`start_server`." msgstr ":meth:`loop.create_server` および :func:`start_server`。" -#: ../../library/asyncio-eventloop.rst:1159 +#: ../../library/asyncio-eventloop.rst:1180 msgid "" "Send a file using high-performance :mod:`os.sendfile` if possible. Return " "the total number of bytes sent." @@ -1752,13 +1790,13 @@ msgstr "" "ファイルを送信します。利用可能なら高性能な :mod:`os.sendfile` を使います。送" "信したデータの総バイト数を返します。" -#: ../../library/asyncio-eventloop.rst:1162 +#: ../../library/asyncio-eventloop.rst:1183 msgid "" "Asynchronous version of :meth:`socket.sendfile() `." msgstr "" ":meth:`socket.sendfile() ` メソッドの非同期版です。" -#: ../../library/asyncio-eventloop.rst:1164 +#: ../../library/asyncio-eventloop.rst:1185 msgid "" "*sock* must be a non-blocking :const:`socket.SOCK_STREAM` :class:`~socket." "socket`." @@ -1766,13 +1804,13 @@ msgstr "" "*sock* は :const:`socket.SOCK_STREAM` タイプのノンブロッキングな :class:" "`~socket.socket` でなければなりません。" -#: ../../library/asyncio-eventloop.rst:1167 +#: ../../library/asyncio-eventloop.rst:1188 msgid "*file* must be a regular file object open in binary mode." msgstr "" "*file* はバイナリモードでオープンされた通常のファイルオブジェクトでなければな" "りません。" -#: ../../library/asyncio-eventloop.rst:1176 +#: ../../library/asyncio-eventloop.rst:1197 msgid "" "*fallback*, when set to ``True``, makes asyncio manually read and send the " "file when the platform does not support the sendfile syscall (e.g. Windows " @@ -1783,7 +1821,7 @@ msgstr "" "ど) に asyncio が別の方法でファイルの読み込みと送信を行うようにすることができ" "ます。" -#: ../../library/asyncio-eventloop.rst:1180 +#: ../../library/asyncio-eventloop.rst:1201 msgid "" "Raise :exc:`SendfileNotAvailableError` if the system does not support " "*sendfile* syscall and *fallback* is ``False``." @@ -1791,19 +1829,19 @@ msgstr "" "システムが *sendfile* システムコールをサポートしておらず、かつ *fallback* が " "``False`` の場合、 :exc:`SendfileNotAvailableError` 例外を送出します。" -#: ../../library/asyncio-eventloop.rst:1189 +#: ../../library/asyncio-eventloop.rst:1210 msgid "DNS" msgstr "DNS" -#: ../../library/asyncio-eventloop.rst:1195 +#: ../../library/asyncio-eventloop.rst:1216 msgid "Asynchronous version of :meth:`socket.getaddrinfo`." msgstr ":meth:`socket.getaddrinfo` の非同期版です。" -#: ../../library/asyncio-eventloop.rst:1200 +#: ../../library/asyncio-eventloop.rst:1221 msgid "Asynchronous version of :meth:`socket.getnameinfo`." msgstr ":meth:`socket.getnameinfo` の非同期版です。" -#: ../../library/asyncio-eventloop.rst:1203 +#: ../../library/asyncio-eventloop.rst:1224 msgid "" "Both *getaddrinfo* and *getnameinfo* internally utilize their synchronous " "versions through the loop's default thread pool executor. When this executor " @@ -1813,7 +1851,7 @@ msgid "" "executor with a larger number of workers." msgstr "" -#: ../../library/asyncio-eventloop.rst:1210 +#: ../../library/asyncio-eventloop.rst:1231 msgid "" "Both *getaddrinfo* and *getnameinfo* methods were always documented to " "return a coroutine, but prior to Python 3.7 they were, in fact, returning :" @@ -1825,20 +1863,20 @@ msgstr "" "は、実際には :class:`asyncio.Future` オブジェクトを返していました。 Python " "3.7 からはどちらのメソッドもコルーチンになりました。" -#: ../../library/asyncio-eventloop.rst:1218 +#: ../../library/asyncio-eventloop.rst:1239 msgid "Working with pipes" msgstr "パイプとやりとりする" -#: ../../library/asyncio-eventloop.rst:1223 +#: ../../library/asyncio-eventloop.rst:1244 msgid "Register the read end of *pipe* in the event loop." msgstr "イベントループの読み込み側終端に *pipe* を登録します。" -#: ../../library/asyncio-eventloop.rst:1228 +#: ../../library/asyncio-eventloop.rst:1249 msgid "*pipe* is a :term:`file-like object `." msgstr "" "*pipe* には :term:`file-like オブジェクト ` を指定します。" -#: ../../library/asyncio-eventloop.rst:1230 +#: ../../library/asyncio-eventloop.rst:1251 msgid "" "Return pair ``(transport, protocol)``, where *transport* supports the :class:" "`ReadTransport` interface and *protocol* is an object instantiated by the " @@ -1848,8 +1886,8 @@ msgstr "" "`ReadTransport` のインターフェースをサポートし、 *protocol* は " "*protocol_factory* ファクトリでインスタンス化されたオブジェクトです。" -#: ../../library/asyncio-eventloop.rst:1234 -#: ../../library/asyncio-eventloop.rst:1251 +#: ../../library/asyncio-eventloop.rst:1255 +#: ../../library/asyncio-eventloop.rst:1272 msgid "" "With :class:`SelectorEventLoop` event loop, the *pipe* is set to non-" "blocking mode." @@ -1857,15 +1895,15 @@ msgstr "" ":class:`SelectorEventLoop` イベントループの場合、*pipe* は非ブロックモードに" "設定されていなければなりません。" -#: ../../library/asyncio-eventloop.rst:1240 +#: ../../library/asyncio-eventloop.rst:1261 msgid "Register the write end of *pipe* in the event loop." msgstr "*pipe* の書き込み側終端をイベントループに登録します。" -#: ../../library/asyncio-eventloop.rst:1245 +#: ../../library/asyncio-eventloop.rst:1266 msgid "*pipe* is :term:`file-like object `." msgstr "*pipe* は :term:`file-like オブジェクト ` です。" -#: ../../library/asyncio-eventloop.rst:1247 +#: ../../library/asyncio-eventloop.rst:1268 msgid "" "Return pair ``(transport, protocol)``, where *transport* supports :class:" "`WriteTransport` interface and *protocol* is an object instantiated by the " @@ -1875,7 +1913,7 @@ msgstr "" "`WriteTransport` のインスタンスであり、 *protocol* は *protocol_factory* ファ" "クトリでインスタンス化されたオブジェクトです。" -#: ../../library/asyncio-eventloop.rst:1256 +#: ../../library/asyncio-eventloop.rst:1277 msgid "" ":class:`SelectorEventLoop` does not support the above methods on Windows. " "Use :class:`ProactorEventLoop` instead for Windows." @@ -1883,22 +1921,22 @@ msgstr "" ":class:`SelectorEventLoop` は Windows 上で上記のメソッドをサポートしていませ" "ん。 Windowsでは代わりに :class:`ProactorEventLoop` を使ってください。" -#: ../../library/asyncio-eventloop.rst:1261 +#: ../../library/asyncio-eventloop.rst:1282 msgid "" "The :meth:`loop.subprocess_exec` and :meth:`loop.subprocess_shell` methods." msgstr "" ":meth:`loop.subprocess_exec` および :meth:`loop.subprocess_shell` メソッド。" -#: ../../library/asyncio-eventloop.rst:1266 +#: ../../library/asyncio-eventloop.rst:1287 msgid "Unix signals" msgstr "Unix シグナル" -#: ../../library/asyncio-eventloop.rst:1272 +#: ../../library/asyncio-eventloop.rst:1293 msgid "Set *callback* as the handler for the *signum* signal." msgstr "" "コールバック *callback* をシグナル *signum* に対するハンドラに設定します。" -#: ../../library/asyncio-eventloop.rst:1274 +#: ../../library/asyncio-eventloop.rst:1295 msgid "" "The callback will be invoked by *loop*, along with other queued callbacks " "and runnable coroutines of that event loop. Unlike signal handlers " @@ -1910,7 +1948,7 @@ msgstr "" "シグナルハンドラと異なり、この関数で登録されたコールバックはイベントループと" "相互作用することが可能です。" -#: ../../library/asyncio-eventloop.rst:1279 +#: ../../library/asyncio-eventloop.rst:1300 msgid "" "Raise :exc:`ValueError` if the signal number is invalid or uncatchable. " "Raise :exc:`RuntimeError` if there is a problem setting up the handler." @@ -1918,18 +1956,18 @@ msgstr "" "シグナルナンバーが誤っているか捕捉不可能な場合 :exc:`ValueError` が送出されま" "す。ハンドラーの設定に問題があった場合 :exc:`RuntimeError` が送出されます。" -#: ../../library/asyncio-eventloop.rst:1285 +#: ../../library/asyncio-eventloop.rst:1306 msgid "" "Like :func:`signal.signal`, this function must be invoked in the main thread." msgstr "" ":func:`signal.signal` と同じく、この関数はメインスレッドから呼び出されなけれ" "ばなりません。" -#: ../../library/asyncio-eventloop.rst:1290 +#: ../../library/asyncio-eventloop.rst:1311 msgid "Remove the handler for the *sig* signal." msgstr "シグナル *sig* に対するハンドラを削除します。" -#: ../../library/asyncio-eventloop.rst:1292 +#: ../../library/asyncio-eventloop.rst:1313 msgid "" "Return ``True`` if the signal handler was removed, or ``False`` if no " "handler was set for the given signal." @@ -1937,19 +1975,19 @@ msgstr "" "シグナルハンドラが削除された場合 ``True`` を返します。シグナルに対してハンド" "ラが設定されていない場合には ``False`` を返します。" -#: ../../library/asyncio-eventloop.rst:1299 +#: ../../library/asyncio-eventloop.rst:1320 msgid "The :mod:`signal` module." msgstr ":mod:`signal` モジュール。" -#: ../../library/asyncio-eventloop.rst:1303 +#: ../../library/asyncio-eventloop.rst:1324 msgid "Executing code in thread or process pools" msgstr "スレッドまたはプロセスプールでコードを実行する" -#: ../../library/asyncio-eventloop.rst:1307 +#: ../../library/asyncio-eventloop.rst:1328 msgid "Arrange for *func* to be called in the specified executor." msgstr "指定したエグゼキュータで関数 *func* が実行されるように準備します。" -#: ../../library/asyncio-eventloop.rst:1309 +#: ../../library/asyncio-eventloop.rst:1330 msgid "" "The *executor* argument should be an :class:`concurrent.futures.Executor` " "instance. The default executor is used if *executor* is ``None``. The " @@ -1958,7 +1996,7 @@ msgid "" "and used by :func:`run_in_executor` if needed." msgstr "" -#: ../../library/asyncio-eventloop.rst:1317 +#: ../../library/asyncio-eventloop.rst:1338 msgid "" "import asyncio\n" "import concurrent.futures\n" @@ -2007,7 +2045,7 @@ msgid "" " asyncio.run(main())" msgstr "" -#: ../../library/asyncio-eventloop.rst:1363 +#: ../../library/asyncio-eventloop.rst:1384 msgid "" "Note that the entry point guard (``if __name__ == '__main__'``) is required " "for option 3 due to the peculiarities of :mod:`multiprocessing`, which is " @@ -2015,11 +2053,11 @@ msgid "" "importing of main module `." msgstr "" -#: ../../library/asyncio-eventloop.rst:1368 +#: ../../library/asyncio-eventloop.rst:1389 msgid "This method returns a :class:`asyncio.Future` object." msgstr "このメソッドは :class:`asyncio.Future` オブジェクトを返します。" -#: ../../library/asyncio-eventloop.rst:1370 +#: ../../library/asyncio-eventloop.rst:1391 msgid "" "Use :func:`functools.partial` :ref:`to pass keyword arguments ` to *func*." @@ -2027,7 +2065,7 @@ msgstr "" "関数 *func* に :ref:`キーワード引数を渡す ` 場合は :" "func:`functools.partial` を使ってください。" -#: ../../library/asyncio-eventloop.rst:1373 +#: ../../library/asyncio-eventloop.rst:1394 msgid "" ":meth:`loop.run_in_executor` no longer configures the ``max_workers`` of the " "thread pool executor it creates, instead leaving it up to the thread pool " @@ -2039,7 +2077,7 @@ msgstr "" "`~concurrent.futures.ThreadPoolExecutor`) にデフォルト値を設定させるようにな" "りました。" -#: ../../library/asyncio-eventloop.rst:1382 +#: ../../library/asyncio-eventloop.rst:1403 msgid "" "Set *executor* as the default executor used by :meth:`run_in_executor`. " "*executor* must be an instance of :class:`~concurrent.futures." @@ -2047,25 +2085,25 @@ msgid "" "InterpreterPoolExecutor`." msgstr "" -#: ../../library/asyncio-eventloop.rst:1387 +#: ../../library/asyncio-eventloop.rst:1408 msgid "" "*executor* must be an instance of :class:`~concurrent.futures." "ThreadPoolExecutor`." msgstr "" -#: ../../library/asyncio-eventloop.rst:1393 +#: ../../library/asyncio-eventloop.rst:1414 msgid "Error Handling API" msgstr "エラーハンドリング API" -#: ../../library/asyncio-eventloop.rst:1395 +#: ../../library/asyncio-eventloop.rst:1416 msgid "Allows customizing how exceptions are handled in the event loop." msgstr "イベントループ内での例外の扱い方をカスタマイズできます。" -#: ../../library/asyncio-eventloop.rst:1399 +#: ../../library/asyncio-eventloop.rst:1420 msgid "Set *handler* as the new event loop exception handler." msgstr "*handler* を新しいイベントループ例外ハンドラーとして設定します。" -#: ../../library/asyncio-eventloop.rst:1401 +#: ../../library/asyncio-eventloop.rst:1422 msgid "" "If *handler* is ``None``, the default exception handler will be set. " "Otherwise, *handler* must be a callable with the signature matching ``(loop, " @@ -2080,20 +2118,20 @@ msgstr "" "``dict`` オブジェクトです (*context* についての詳細は :meth:" "`call_exception_handler` メソッドのドキュメントを参照してください)。" -#: ../../library/asyncio-eventloop.rst:1409 +#: ../../library/asyncio-eventloop.rst:1430 msgid "" "If the handler is called on behalf of a :class:`~asyncio.Task` or :class:" "`~asyncio.Handle`, it is run in the :class:`contextvars.Context` of that " "task or callback handle." msgstr "" -#: ../../library/asyncio-eventloop.rst:1415 +#: ../../library/asyncio-eventloop.rst:1436 msgid "" "The handler may be called in the :class:`~contextvars.Context` of the task " "or handle where the exception originated." msgstr "" -#: ../../library/asyncio-eventloop.rst:1420 +#: ../../library/asyncio-eventloop.rst:1441 msgid "" "Return the current exception handler, or ``None`` if no custom exception " "handler was set." @@ -2101,11 +2139,11 @@ msgstr "" "現在の例外ハンドラを返します。カスタム例外ハンドラが設定されていない場合は " "``None`` を返します。" -#: ../../library/asyncio-eventloop.rst:1427 +#: ../../library/asyncio-eventloop.rst:1448 msgid "Default exception handler." msgstr "デフォルトの例外ハンドラーです。" -#: ../../library/asyncio-eventloop.rst:1429 +#: ../../library/asyncio-eventloop.rst:1450 msgid "" "This is called when an exception occurs and no exception handler is set. " "This can be called by a custom exception handler that wants to defer to the " @@ -2115,17 +2153,17 @@ msgstr "" "出されます。デフォルト例外ハンドラの挙動を受け入れるために、カスタム例外ハン" "ドラから呼び出すことも可能です。" -#: ../../library/asyncio-eventloop.rst:1433 +#: ../../library/asyncio-eventloop.rst:1454 msgid "" "*context* parameter has the same meaning as in :meth:" "`call_exception_handler`." msgstr "引数 *context* の意味は :meth:`call_exception_handler` と同じです。" -#: ../../library/asyncio-eventloop.rst:1438 +#: ../../library/asyncio-eventloop.rst:1459 msgid "Call the current event loop exception handler." msgstr "現在のイベントループ例外ハンドラーを呼び出します。" -#: ../../library/asyncio-eventloop.rst:1440 +#: ../../library/asyncio-eventloop.rst:1461 msgid "" "*context* is a ``dict`` object containing the following keys (new keys may " "be introduced in future Python versions):" @@ -2133,70 +2171,70 @@ msgstr "" "*context* は以下のキーを含む ``dict`` オブジェクトです (将来の Python バー" "ジョンで新しいキーが追加される可能性があります):" -#: ../../library/asyncio-eventloop.rst:1443 +#: ../../library/asyncio-eventloop.rst:1464 msgid "'message': Error message;" msgstr "'message': エラーメッセージ;" -#: ../../library/asyncio-eventloop.rst:1444 +#: ../../library/asyncio-eventloop.rst:1465 msgid "'exception' (optional): Exception object;" msgstr "'exception' (任意): 例外オブジェクト;" -#: ../../library/asyncio-eventloop.rst:1445 +#: ../../library/asyncio-eventloop.rst:1466 msgid "'future' (optional): :class:`asyncio.Future` instance;" msgstr "'future' (任意): :class:`asyncio.Future` インスタンス;" -#: ../../library/asyncio-eventloop.rst:1446 +#: ../../library/asyncio-eventloop.rst:1467 msgid "'task' (optional): :class:`asyncio.Task` instance;" msgstr "" -#: ../../library/asyncio-eventloop.rst:1447 +#: ../../library/asyncio-eventloop.rst:1468 msgid "'handle' (optional): :class:`asyncio.Handle` instance;" msgstr "'handle' (任意): :class:`asyncio.Handle` インスタンス;" -#: ../../library/asyncio-eventloop.rst:1448 +#: ../../library/asyncio-eventloop.rst:1469 msgid "'protocol' (optional): :ref:`Protocol ` instance;" msgstr "'protocol' (任意): :ref:`プロトコル ` インスタンス;" -#: ../../library/asyncio-eventloop.rst:1449 +#: ../../library/asyncio-eventloop.rst:1470 msgid "'transport' (optional): :ref:`Transport ` instance;" msgstr "" "'transport' (任意): :ref:`トランスポート ` インスタンス;" -#: ../../library/asyncio-eventloop.rst:1450 +#: ../../library/asyncio-eventloop.rst:1471 msgid "'socket' (optional): :class:`socket.socket` instance;" msgstr "" -#: ../../library/asyncio-eventloop.rst:1451 +#: ../../library/asyncio-eventloop.rst:1472 msgid "'source_traceback' (optional): Traceback of the source;" msgstr "" -#: ../../library/asyncio-eventloop.rst:1452 +#: ../../library/asyncio-eventloop.rst:1473 msgid "'handle_traceback' (optional): Traceback of the handle;" msgstr "" -#: ../../library/asyncio-eventloop.rst:1453 +#: ../../library/asyncio-eventloop.rst:1474 msgid "'asyncgen' (optional): Asynchronous generator that caused" msgstr "" -#: ../../library/asyncio-eventloop.rst:1454 +#: ../../library/asyncio-eventloop.rst:1475 msgid "the exception." msgstr "" -#: ../../library/asyncio-eventloop.rst:1458 +#: ../../library/asyncio-eventloop.rst:1479 msgid "" "This method should not be overloaded in subclassed event loops. For custom " "exception handling, use the :meth:`set_exception_handler` method." msgstr "" -#: ../../library/asyncio-eventloop.rst:1463 +#: ../../library/asyncio-eventloop.rst:1484 msgid "Enabling debug mode" msgstr "デバッグモードの有効化" -#: ../../library/asyncio-eventloop.rst:1467 +#: ../../library/asyncio-eventloop.rst:1488 msgid "Get the debug mode (:class:`bool`) of the event loop." msgstr "イベントループのデバッグモード (:class:`bool`) を取得します。" -#: ../../library/asyncio-eventloop.rst:1469 +#: ../../library/asyncio-eventloop.rst:1490 msgid "" "The default value is ``True`` if the environment variable :envvar:" "`PYTHONASYNCIODEBUG` is set to a non-empty string, ``False`` otherwise." @@ -2204,11 +2242,11 @@ msgstr "" "環境変数 :envvar:`PYTHONASYNCIODEBUG` に空でない文字列が設定されている場合の" "デフォルト値は ``True``、そうでない場合は ``False`` になります。" -#: ../../library/asyncio-eventloop.rst:1475 +#: ../../library/asyncio-eventloop.rst:1496 msgid "Set the debug mode of the event loop." msgstr "イベントループのデバッグモードを設定します。" -#: ../../library/asyncio-eventloop.rst:1479 +#: ../../library/asyncio-eventloop.rst:1500 msgid "" "The new :ref:`Python Development Mode ` can now also be used to " "enable the debug mode." @@ -2216,26 +2254,26 @@ msgstr "" "新しい :ref:`Python 開発モード ` を使ってデバッグモードを有効化する" "ことができるようになりました。" -#: ../../library/asyncio-eventloop.rst:1484 +#: ../../library/asyncio-eventloop.rst:1505 msgid "" "This attribute can be used to set the minimum execution duration in seconds " "that is considered \"slow\". When debug mode is enabled, \"slow\" callbacks " "are logged." msgstr "" -#: ../../library/asyncio-eventloop.rst:1488 +#: ../../library/asyncio-eventloop.rst:1509 msgid "Default value is 100 milliseconds." msgstr "" -#: ../../library/asyncio-eventloop.rst:1492 +#: ../../library/asyncio-eventloop.rst:1513 msgid "The :ref:`debug mode of asyncio `." msgstr ":ref:`asyncio のデバッグモード `。" -#: ../../library/asyncio-eventloop.rst:1496 +#: ../../library/asyncio-eventloop.rst:1517 msgid "Running Subprocesses" msgstr "サブプロセスの実行" -#: ../../library/asyncio-eventloop.rst:1498 +#: ../../library/asyncio-eventloop.rst:1519 msgid "" "Methods described in this subsections are low-level. In regular async/await " "code consider using the high-level :func:`asyncio.create_subprocess_shell` " @@ -2245,29 +2283,29 @@ msgstr "" "高水準の関数である :func:`asyncio.create_subprocess_shell` や :func:`asyncio." "create_subprocess_exec` を代わりに使うことを検討してください。" -#: ../../library/asyncio-eventloop.rst:1505 +#: ../../library/asyncio-eventloop.rst:1526 msgid "" "On Windows, the default event loop :class:`ProactorEventLoop` supports " "subprocesses, whereas :class:`SelectorEventLoop` does not. See :ref:" "`Subprocess Support on Windows ` for details." msgstr "" -#: ../../library/asyncio-eventloop.rst:1517 +#: ../../library/asyncio-eventloop.rst:1538 msgid "" "Create a subprocess from one or more string arguments specified by *args*." msgstr "" "*args* で指定されたひとつの、または複数の文字列引数からサブプロセスを生成しま" "す。" -#: ../../library/asyncio-eventloop.rst:1520 +#: ../../library/asyncio-eventloop.rst:1541 msgid "*args* must be a list of strings represented by:" msgstr "*args* は下記のいずれかに当てはまる文字列のリストでなければなりません:" -#: ../../library/asyncio-eventloop.rst:1522 +#: ../../library/asyncio-eventloop.rst:1543 msgid ":class:`str`;" msgstr ":class:`str`;" -#: ../../library/asyncio-eventloop.rst:1523 +#: ../../library/asyncio-eventloop.rst:1544 msgid "" "or :class:`bytes`, encoded to the :ref:`filesystem encoding `." @@ -2275,7 +2313,7 @@ msgstr "" "または :ref:`ファイルシステムのエンコーディング ` にエン" "コードされた :class:`bytes`" -#: ../../library/asyncio-eventloop.rst:1526 +#: ../../library/asyncio-eventloop.rst:1547 msgid "" "The first string specifies the program executable, and the remaining strings " "specify the arguments. Together, string arguments form the ``argv`` of the " @@ -2284,7 +2322,7 @@ msgstr "" "引数の最初の文字列はプログラムの実行ファイルを指定します。それに続く残りの文" "字列は引数を指定し、そのプログラムに対する ``argv`` を構成します。" -#: ../../library/asyncio-eventloop.rst:1530 +#: ../../library/asyncio-eventloop.rst:1551 msgid "" "This is similar to the standard library :class:`subprocess.Popen` class " "called with ``shell=False`` and the list of strings passed as the first " @@ -2297,7 +2335,7 @@ msgstr "" "ひとつだけ取るのに対して、 *subprocess_exec* は複数の文字列引数をとることがで" "きます。" -#: ../../library/asyncio-eventloop.rst:1536 +#: ../../library/asyncio-eventloop.rst:1557 msgid "" "The *protocol_factory* must be a callable returning a subclass of the :class:" "`asyncio.SubprocessProtocol` class." @@ -2305,29 +2343,29 @@ msgstr "" "*protocol_factory* は :class:`asyncio.SubprocessProtocol` クラスの派生クラス" "を返す呼び出し可能オブジェクトでなければなりません。" -#: ../../library/asyncio-eventloop.rst:1539 +#: ../../library/asyncio-eventloop.rst:1560 msgid "Other parameters:" msgstr "その他の引数:" -#: ../../library/asyncio-eventloop.rst:1541 +#: ../../library/asyncio-eventloop.rst:1562 msgid "*stdin* can be any of these:" msgstr "*stdin* は下記のいずれかをとることができます:" -#: ../../library/asyncio-eventloop.rst:1543 -#: ../../library/asyncio-eventloop.rst:1554 #: ../../library/asyncio-eventloop.rst:1564 +#: ../../library/asyncio-eventloop.rst:1575 +#: ../../library/asyncio-eventloop.rst:1585 msgid "a file-like object" msgstr "" -#: ../../library/asyncio-eventloop.rst:1544 +#: ../../library/asyncio-eventloop.rst:1565 msgid "" "an existing file descriptor (a positive integer), for example those created " "with :meth:`os.pipe`" msgstr "" -#: ../../library/asyncio-eventloop.rst:1545 -#: ../../library/asyncio-eventloop.rst:1555 -#: ../../library/asyncio-eventloop.rst:1565 +#: ../../library/asyncio-eventloop.rst:1566 +#: ../../library/asyncio-eventloop.rst:1576 +#: ../../library/asyncio-eventloop.rst:1586 msgid "" "the :const:`subprocess.PIPE` constant (default) which will create a new pipe " "and connect it," @@ -2335,9 +2373,9 @@ msgstr "" "デフォルト値は :const:`subprocess.PIPE` 定数で、この場合新規にパイプを生成し" "て接続します。" -#: ../../library/asyncio-eventloop.rst:1547 -#: ../../library/asyncio-eventloop.rst:1557 -#: ../../library/asyncio-eventloop.rst:1567 +#: ../../library/asyncio-eventloop.rst:1568 +#: ../../library/asyncio-eventloop.rst:1578 +#: ../../library/asyncio-eventloop.rst:1588 msgid "" "the value ``None`` which will make the subprocess inherit the file " "descriptor from this process" @@ -2345,9 +2383,9 @@ msgstr "" "``None`` が設定された場合、サブプロセスは元のプロセスのファイルデスクリプタを" "引き継ぎます。" -#: ../../library/asyncio-eventloop.rst:1549 -#: ../../library/asyncio-eventloop.rst:1559 -#: ../../library/asyncio-eventloop.rst:1569 +#: ../../library/asyncio-eventloop.rst:1570 +#: ../../library/asyncio-eventloop.rst:1580 +#: ../../library/asyncio-eventloop.rst:1590 msgid "" "the :const:`subprocess.DEVNULL` constant which indicates that the special :" "data:`os.devnull` file will be used" @@ -2355,15 +2393,15 @@ msgstr "" ":const:`subprocess.DEVNULL` 定数を設定すると、特別なファイル :data:`os." "devnull` を使います。" -#: ../../library/asyncio-eventloop.rst:1552 +#: ../../library/asyncio-eventloop.rst:1573 msgid "*stdout* can be any of these:" msgstr "*stdout* は下記のいずれかをとることができます:" -#: ../../library/asyncio-eventloop.rst:1562 +#: ../../library/asyncio-eventloop.rst:1583 msgid "*stderr* can be any of these:" msgstr "*stderr* は下記のいずれかをとることができます:" -#: ../../library/asyncio-eventloop.rst:1571 +#: ../../library/asyncio-eventloop.rst:1592 msgid "" "the :const:`subprocess.STDOUT` constant which will connect the standard " "error stream to the process' standard output stream" @@ -2371,7 +2409,7 @@ msgstr "" ":const:`subprocess.STDOUT` 定数を設定すると、標準エラー出力ストリームをプロセ" "スの標準出力ストリームに接続します。" -#: ../../library/asyncio-eventloop.rst:1574 +#: ../../library/asyncio-eventloop.rst:1595 msgid "" "All other keyword arguments are passed to :class:`subprocess.Popen` without " "interpretation, except for *bufsize*, *universal_newlines*, *shell*, *text*, " @@ -2381,7 +2419,7 @@ msgstr "" "Popen` に渡されます。ただし、 *bufsize*、 *universal_newlines*、 *shell*、 " "*text*、 *encoding* および *errors* は指定してはいけません。" -#: ../../library/asyncio-eventloop.rst:1579 +#: ../../library/asyncio-eventloop.rst:1600 msgid "" "The ``asyncio`` subprocess API does not support decoding the streams as " "text. :func:`bytes.decode` can be used to convert the bytes returned from " @@ -2391,7 +2429,7 @@ msgstr "" "していません。ストリームからテキストに変換するには :func:`bytes.decode` 関数" "を使ってください。" -#: ../../library/asyncio-eventloop.rst:1583 +#: ../../library/asyncio-eventloop.rst:1604 msgid "" "If a file-like object passed as *stdin*, *stdout* or *stderr* represents a " "pipe, then the other side of this pipe should be registered with :meth:" @@ -2399,7 +2437,7 @@ msgid "" "the event loop." msgstr "" -#: ../../library/asyncio-eventloop.rst:1588 +#: ../../library/asyncio-eventloop.rst:1609 msgid "" "See the constructor of the :class:`subprocess.Popen` class for documentation " "on other arguments." @@ -2407,7 +2445,7 @@ msgstr "" "他の引数についての詳細は :class:`subprocess.Popen` クラスのコンストラクタを参" "照してください。" -#: ../../library/asyncio-eventloop.rst:1591 +#: ../../library/asyncio-eventloop.rst:1612 msgid "" "Returns a pair of ``(transport, protocol)``, where *transport* conforms to " "the :class:`asyncio.SubprocessTransport` base class and *protocol* is an " @@ -2417,7 +2455,7 @@ msgstr "" "`asyncio.SubprocessTransport` 基底クラスに適合するオブジェクトで、 " "*protocol* は *protocol_factory* によりインスタンス化されたオブジェクトです。" -#: ../../library/asyncio-eventloop.rst:1600 +#: ../../library/asyncio-eventloop.rst:1621 msgid "" "Create a subprocess from *cmd*, which can be a :class:`str` or a :class:" "`bytes` string encoded to the :ref:`filesystem encoding ` でエンコードされた :class:" "`bytes` 文字列です。" -#: ../../library/asyncio-eventloop.rst:1605 +#: ../../library/asyncio-eventloop.rst:1626 msgid "" "This is similar to the standard library :class:`subprocess.Popen` class " "called with ``shell=True``." @@ -2436,7 +2474,7 @@ msgstr "" "これは標準ライブラリの :class:`subprocess.Popen` クラスを ``shell=True`` で呼" "び出した場合と似ています。" -#: ../../library/asyncio-eventloop.rst:1608 +#: ../../library/asyncio-eventloop.rst:1629 msgid "" "The *protocol_factory* must be a callable returning a subclass of the :class:" "`SubprocessProtocol` class." @@ -2444,7 +2482,7 @@ msgstr "" "*protocol_factory* は :class:`SubprocessProtocol` の派生クラスを返す呼び出し" "可能オブジェクトでなければなりません。" -#: ../../library/asyncio-eventloop.rst:1611 +#: ../../library/asyncio-eventloop.rst:1632 msgid "" "See :meth:`~loop.subprocess_exec` for more details about the remaining " "arguments." @@ -2452,7 +2490,7 @@ msgstr "" "その他の引数についての詳細は :meth:`~loop.subprocess_exec` メソッドを参照して" "ください。" -#: ../../library/asyncio-eventloop.rst:1614 +#: ../../library/asyncio-eventloop.rst:1635 msgid "" "Returns a pair of ``(transport, protocol)``, where *transport* conforms to " "the :class:`SubprocessTransport` base class and *protocol* is an object " @@ -2462,7 +2500,7 @@ msgstr "" "`SubprocessTransport` 基底クラスに適合するオブジェクトで、 *protocol* は " "*protocol_factory* によりインスタンス化されたオブジェクトです。" -#: ../../library/asyncio-eventloop.rst:1619 +#: ../../library/asyncio-eventloop.rst:1640 msgid "" "It is the application's responsibility to ensure that all whitespace and " "special characters are quoted appropriately to avoid `shell injection " @@ -2477,11 +2515,11 @@ msgstr "" "ください。シェルコマンドを構成する文字列内の空白文字と特殊文字のエスケープ" "は、 :func:`shlex.quote` 関数を使うと適切に行うことができます。" -#: ../../library/asyncio-eventloop.rst:1628 +#: ../../library/asyncio-eventloop.rst:1649 msgid "Callback Handles" msgstr "コールバックのハンドル" -#: ../../library/asyncio-eventloop.rst:1632 +#: ../../library/asyncio-eventloop.rst:1653 msgid "" "A callback wrapper object returned by :meth:`loop.call_soon`, :meth:`loop." "call_soon_threadsafe`." @@ -2489,12 +2527,12 @@ msgstr "" ":meth:`loop.call_soon` や :meth:`loop.call_soon_threadsafe` が返すコールバッ" "クのラッパーです。" -#: ../../library/asyncio-eventloop.rst:1637 +#: ../../library/asyncio-eventloop.rst:1658 msgid "" "Return the :class:`contextvars.Context` object associated with the handle." msgstr "" -#: ../../library/asyncio-eventloop.rst:1644 +#: ../../library/asyncio-eventloop.rst:1665 msgid "" "Cancel the callback. If the callback has already been canceled or executed, " "this method has no effect." @@ -2502,11 +2540,11 @@ msgstr "" "コールバックをキャンセルします。コールバックがキャンセル済みまたは実行済みの" "場合、このメソッドは何の影響もありません。" -#: ../../library/asyncio-eventloop.rst:1649 +#: ../../library/asyncio-eventloop.rst:1670 msgid "Return ``True`` if the callback was cancelled." msgstr "コールバックがキャンセルされた場合 ``True`` を返します。" -#: ../../library/asyncio-eventloop.rst:1655 +#: ../../library/asyncio-eventloop.rst:1676 msgid "" "A callback wrapper object returned by :meth:`loop.call_later`, and :meth:" "`loop.call_at`." @@ -2514,15 +2552,15 @@ msgstr "" " :meth:`loop.call_later` や :meth:`loop.call_at` が返すコールバックのラッパー" "オブジェクトです。" -#: ../../library/asyncio-eventloop.rst:1658 +#: ../../library/asyncio-eventloop.rst:1679 msgid "This class is a subclass of :class:`Handle`." msgstr "このクラスは :class:`Handle` の派生クラスです。" -#: ../../library/asyncio-eventloop.rst:1662 +#: ../../library/asyncio-eventloop.rst:1683 msgid "Return a scheduled callback time as :class:`float` seconds." msgstr "コールバックのスケジュール時刻を秒単位の :class:`float` で返します。" -#: ../../library/asyncio-eventloop.rst:1664 +#: ../../library/asyncio-eventloop.rst:1685 msgid "" "The time is an absolute timestamp, using the same time reference as :meth:" "`loop.time`." @@ -2530,11 +2568,11 @@ msgstr "" "戻り値の時刻は絶対値で、 :meth:`loop.time` と同じ参照時刻を使って定義されてい" "ます。" -#: ../../library/asyncio-eventloop.rst:1671 +#: ../../library/asyncio-eventloop.rst:1692 msgid "Server Objects" msgstr "Serverオブジェクト" -#: ../../library/asyncio-eventloop.rst:1673 +#: ../../library/asyncio-eventloop.rst:1694 msgid "" "Server objects are created by :meth:`loop.create_server`, :meth:`loop." "create_unix_server`, :func:`start_server`, and :func:`start_unix_server` " @@ -2544,11 +2582,11 @@ msgstr "" "create_unix_server`、 :func:`start_server` および :func:`start_unix_server` " "関数により生成されます。" -#: ../../library/asyncio-eventloop.rst:1677 +#: ../../library/asyncio-eventloop.rst:1698 msgid "Do not instantiate the :class:`Server` class directly." msgstr "" -#: ../../library/asyncio-eventloop.rst:1681 +#: ../../library/asyncio-eventloop.rst:1702 msgid "" "*Server* objects are asynchronous context managers. When used in an ``async " "with`` statement, it's guaranteed that the Server object is closed and not " @@ -2558,7 +2596,7 @@ msgstr "" "の中で使われた場合、 ``async with`` 文が完了した時に Server オブジェクトがク" "ローズされること、およびそれ以降に接続を受け付けないことが保証されます。" -#: ../../library/asyncio-eventloop.rst:1686 +#: ../../library/asyncio-eventloop.rst:1707 msgid "" "srv = await loop.create_server(...)\n" "\n" @@ -2568,19 +2606,19 @@ msgid "" "# At this point, srv is closed and no longer accepts new connections." msgstr "" -#: ../../library/asyncio-eventloop.rst:1694 +#: ../../library/asyncio-eventloop.rst:1715 msgid "Server object is an asynchronous context manager since Python 3.7." msgstr "" "Python 3.7 から、 Server オブジェクトは非同期のコンテキストマネージャになりま" "した。" -#: ../../library/asyncio-eventloop.rst:1697 +#: ../../library/asyncio-eventloop.rst:1718 msgid "" "This class was exposed publicly as ``asyncio.Server`` in Python 3.9.11, " "3.10.3 and 3.11." msgstr "" -#: ../../library/asyncio-eventloop.rst:1702 +#: ../../library/asyncio-eventloop.rst:1723 msgid "" "Stop serving: close listening sockets and set the :attr:`sockets` attribute " "to ``None``." @@ -2588,65 +2626,65 @@ msgstr "" "サーバーを停止します: 待機しているソケットをクローズし :attr:`sockets` 属性" "に ``None`` を設定します。" -#: ../../library/asyncio-eventloop.rst:1705 +#: ../../library/asyncio-eventloop.rst:1726 msgid "" "The sockets that represent existing incoming client connections are left " "open." msgstr "既存の受信中のクライアントとの接続を表すソケットはオープンのままです。" -#: ../../library/asyncio-eventloop.rst:1708 +#: ../../library/asyncio-eventloop.rst:1729 msgid "" "The server is closed asynchronously; use the :meth:`wait_closed` coroutine " "to wait until the server is closed (and no more connections are active)." msgstr "" -#: ../../library/asyncio-eventloop.rst:1714 +#: ../../library/asyncio-eventloop.rst:1735 msgid "Close all existing incoming client connections." msgstr "" -#: ../../library/asyncio-eventloop.rst:1716 +#: ../../library/asyncio-eventloop.rst:1737 msgid "" "Calls :meth:`~asyncio.BaseTransport.close` on all associated transports." msgstr "" -#: ../../library/asyncio-eventloop.rst:1719 +#: ../../library/asyncio-eventloop.rst:1740 msgid "" ":meth:`close` should be called before :meth:`close_clients` when closing the " "server to avoid races with new clients connecting." msgstr "" -#: ../../library/asyncio-eventloop.rst:1726 +#: ../../library/asyncio-eventloop.rst:1747 msgid "" "Close all existing incoming client connections immediately, without waiting " "for pending operations to complete." msgstr "" -#: ../../library/asyncio-eventloop.rst:1729 +#: ../../library/asyncio-eventloop.rst:1750 msgid "" "Calls :meth:`~asyncio.WriteTransport.abort` on all associated transports." msgstr "" -#: ../../library/asyncio-eventloop.rst:1732 +#: ../../library/asyncio-eventloop.rst:1753 msgid "" ":meth:`close` should be called before :meth:`abort_clients` when closing the " "server to avoid races with new clients connecting." msgstr "" -#: ../../library/asyncio-eventloop.rst:1739 +#: ../../library/asyncio-eventloop.rst:1760 msgid "Return the event loop associated with the server object." msgstr "サーバオブジェクトに付随するイベントループを返します。" -#: ../../library/asyncio-eventloop.rst:1746 +#: ../../library/asyncio-eventloop.rst:1767 msgid "Start accepting connections." msgstr "接続の受け付けを開始します。" -#: ../../library/asyncio-eventloop.rst:1748 +#: ../../library/asyncio-eventloop.rst:1769 msgid "" "This method is idempotent, so it can be called when the server is already " "serving." msgstr "" -#: ../../library/asyncio-eventloop.rst:1751 +#: ../../library/asyncio-eventloop.rst:1772 msgid "" "The *start_serving* keyword-only parameter to :meth:`loop.create_server` " "and :meth:`asyncio.start_server` allows creating a Server object that is not " @@ -2660,7 +2698,7 @@ msgstr "" "start_serving()`` または :meth:`Server.serve_forever` メソッドを使ってオブ" "ジェクトが接続の受け付けを開始するようにすることができます。" -#: ../../library/asyncio-eventloop.rst:1763 +#: ../../library/asyncio-eventloop.rst:1784 msgid "" "Start accepting connections until the coroutine is cancelled. Cancellation " "of ``serve_forever`` task causes the server to be closed." @@ -2668,7 +2706,7 @@ msgstr "" "接続の受け入れを開始し、コルーチンがキャンセルされるまで継続します。 " "``serve_forever`` タスクのキャンセルによりサーバーもクローズされます。 " -#: ../../library/asyncio-eventloop.rst:1767 +#: ../../library/asyncio-eventloop.rst:1788 msgid "" "This method can be called if the server is already accepting connections. " "Only one ``serve_forever`` task can exist per one *Server* object." @@ -2677,7 +2715,7 @@ msgstr "" "す。ひとつの *Server* オブジェクトにつき ``serve_forever`` タスクはひとつだけ" "存在できます。" -#: ../../library/asyncio-eventloop.rst:1773 +#: ../../library/asyncio-eventloop.rst:1794 msgid "" "async def client_connected(reader, writer):\n" " # Communicate with the client with\n" @@ -2692,23 +2730,23 @@ msgid "" "asyncio.run(main('127.0.0.1', 0))" msgstr "" -#: ../../library/asyncio-eventloop.rst:1789 +#: ../../library/asyncio-eventloop.rst:1810 msgid "Return ``True`` if the server is accepting new connections." msgstr "サーバーが新規に接続の受け入れを開始した場合 ``True`` を返します。" -#: ../../library/asyncio-eventloop.rst:1796 +#: ../../library/asyncio-eventloop.rst:1817 msgid "" "Wait until the :meth:`close` method completes and all active connections " "have finished." msgstr "" -#: ../../library/asyncio-eventloop.rst:1801 +#: ../../library/asyncio-eventloop.rst:1822 msgid "" "List of socket-like objects, ``asyncio.trsock.TransportSocket``, which the " "server is listening on." msgstr "" -#: ../../library/asyncio-eventloop.rst:1804 +#: ../../library/asyncio-eventloop.rst:1825 msgid "" "Prior to Python 3.7 ``Server.sockets`` used to return an internal list of " "server sockets directly. In 3.7 a copy of that list is returned." @@ -2717,11 +2755,11 @@ msgstr "" "バーソケットのリストを直接返していました。 Python 3.7 ではリストのコピーが返" "されるようになりました。" -#: ../../library/asyncio-eventloop.rst:1814 +#: ../../library/asyncio-eventloop.rst:1835 msgid "Event Loop Implementations" msgstr "イベントループの実装" -#: ../../library/asyncio-eventloop.rst:1816 +#: ../../library/asyncio-eventloop.rst:1837 msgid "" "asyncio ships with two different event loop implementations: :class:" "`SelectorEventLoop` and :class:`ProactorEventLoop`." @@ -2729,17 +2767,17 @@ msgstr "" "asyncio は2つの異なるイベントループの実装、 :class:`SelectorEventLoop` と :" "class:`ProactorEventLoop`、 を提供します: " -#: ../../library/asyncio-eventloop.rst:1819 +#: ../../library/asyncio-eventloop.rst:1840 msgid "By default asyncio is configured to use :class:`EventLoop`." msgstr "" -#: ../../library/asyncio-eventloop.rst:1824 +#: ../../library/asyncio-eventloop.rst:1845 msgid "" "A subclass of :class:`AbstractEventLoop` based on the :mod:`selectors` " "module." msgstr "" -#: ../../library/asyncio-eventloop.rst:1827 +#: ../../library/asyncio-eventloop.rst:1848 msgid "" "Uses the most efficient *selector* available for the given platform. It is " "also possible to manually configure the exact selector implementation to be " @@ -2748,7 +2786,7 @@ msgstr "" "プラットフォーム上で利用可能な最も効率の良い *selector* を使います。特定のセ" "レクタ実装を使うように手動で構成することも可能です::" -#: ../../library/asyncio-eventloop.rst:1831 +#: ../../library/asyncio-eventloop.rst:1852 msgid "" "import asyncio\n" "import selectors\n" @@ -2761,45 +2799,45 @@ msgid "" "asyncio.run(main(), loop_factory=loop_factory)" msgstr "" -#: ../../library/asyncio-eventloop.rst:1846 +#: ../../library/asyncio-eventloop.rst:1867 msgid "" "A subclass of :class:`AbstractEventLoop` for Windows that uses \"I/O " "Completion Ports\" (IOCP)." msgstr "" -#: ../../library/asyncio-eventloop.rst:1852 +#: ../../library/asyncio-eventloop.rst:1873 msgid "" "`MSDN documentation on I/O Completion Ports `_." msgstr "" -#: ../../library/asyncio-eventloop.rst:1857 +#: ../../library/asyncio-eventloop.rst:1878 msgid "" "An alias to the most efficient available subclass of :class:" "`AbstractEventLoop` for the given platform." msgstr "" -#: ../../library/asyncio-eventloop.rst:1860 +#: ../../library/asyncio-eventloop.rst:1881 msgid "" "It is an alias to :class:`SelectorEventLoop` on Unix and :class:" "`ProactorEventLoop` on Windows." msgstr "" -#: ../../library/asyncio-eventloop.rst:1866 +#: ../../library/asyncio-eventloop.rst:1887 msgid "Abstract base class for asyncio-compliant event loops." msgstr "asyncio に適合するイベントループの抽象基底クラスです。" -#: ../../library/asyncio-eventloop.rst:1868 +#: ../../library/asyncio-eventloop.rst:1889 msgid "" "The :ref:`asyncio-event-loop-methods` section lists all methods that an " "alternative implementation of ``AbstractEventLoop`` should have defined." msgstr "" -#: ../../library/asyncio-eventloop.rst:1874 +#: ../../library/asyncio-eventloop.rst:1895 msgid "Examples" msgstr "使用例" -#: ../../library/asyncio-eventloop.rst:1876 +#: ../../library/asyncio-eventloop.rst:1897 msgid "" "Note that all examples in this section **purposefully** show how to use the " "low-level event loop APIs, such as :meth:`loop.run_forever` and :meth:`loop." @@ -2811,11 +2849,11 @@ msgstr "" "現代的な asyncio アプリケーションはここに示すような方法をほとんど必要としませ" "ん。 :func:`asyncio.run` のような高水準の関数の使用を検討してください。" -#: ../../library/asyncio-eventloop.rst:1886 +#: ../../library/asyncio-eventloop.rst:1907 msgid "Hello World with call_soon()" msgstr "call_soon() を使った Hello World" -#: ../../library/asyncio-eventloop.rst:1888 +#: ../../library/asyncio-eventloop.rst:1909 msgid "" "An example using the :meth:`loop.call_soon` method to schedule a callback. " "The callback displays ``\"Hello World\"`` and then stops the event loop::" @@ -2823,7 +2861,7 @@ msgstr "" ":meth:`loop.call_soon` メソッドを使ってコールバックをスケジュールする例です。" "コールバックは ``\"Hello World\"`` を出力しイベントループを停止します::" -#: ../../library/asyncio-eventloop.rst:1892 +#: ../../library/asyncio-eventloop.rst:1913 msgid "" "import asyncio\n" "\n" @@ -2844,7 +2882,7 @@ msgid "" " loop.close()" msgstr "" -#: ../../library/asyncio-eventloop.rst:1912 +#: ../../library/asyncio-eventloop.rst:1933 msgid "" "A similar :ref:`Hello World ` example created with a coroutine " "and the :func:`run` function." @@ -2852,11 +2890,11 @@ msgstr "" "コルーチンと :func:`run` 関数を使用した同じような :ref:`Hello World " "` の例。" -#: ../../library/asyncio-eventloop.rst:1919 +#: ../../library/asyncio-eventloop.rst:1940 msgid "Display the current date with call_later()" msgstr "call_later() で現在の日時を表示する" -#: ../../library/asyncio-eventloop.rst:1921 +#: ../../library/asyncio-eventloop.rst:1942 msgid "" "An example of a callback displaying the current date every second. The " "callback uses the :meth:`loop.call_later` method to reschedule itself after " @@ -2866,7 +2904,7 @@ msgstr "" "call_later` メソッドを使って自身を5秒後に実行するよう再スケジュールし、イベン" "トループを停止します::" -#: ../../library/asyncio-eventloop.rst:1925 +#: ../../library/asyncio-eventloop.rst:1946 msgid "" "import asyncio\n" "import datetime\n" @@ -2891,7 +2929,7 @@ msgid "" " loop.close()" msgstr "" -#: ../../library/asyncio-eventloop.rst:1949 +#: ../../library/asyncio-eventloop.rst:1970 msgid "" "A similar :ref:`current date ` example created with a " "coroutine and the :func:`run` function." @@ -2899,11 +2937,11 @@ msgstr "" "コルーチンと :func:`run` 関数を使用した同じような :ref:`現在時刻出力 " "` の例。" -#: ../../library/asyncio-eventloop.rst:1956 +#: ../../library/asyncio-eventloop.rst:1977 msgid "Watch a file descriptor for read events" msgstr "読み込みイベント用ファイル記述子の監視" -#: ../../library/asyncio-eventloop.rst:1958 +#: ../../library/asyncio-eventloop.rst:1979 msgid "" "Wait until a file descriptor received some data using the :meth:`loop." "add_reader` method and then close the event loop::" @@ -2911,7 +2949,7 @@ msgstr "" "ファイル記述子が :meth:`loop.add_reader` メソッドを使って何らかのデータを受信" "するまで待機し、その後イベントループをクローズします::" -#: ../../library/asyncio-eventloop.rst:1961 +#: ../../library/asyncio-eventloop.rst:1982 msgid "" "import asyncio\n" "from socket import socketpair\n" @@ -2947,7 +2985,7 @@ msgid "" " loop.close()" msgstr "" -#: ../../library/asyncio-eventloop.rst:1996 +#: ../../library/asyncio-eventloop.rst:2017 msgid "" "A similar :ref:`example ` using " "transports, protocols, and the :meth:`loop.create_connection` method." @@ -2955,7 +2993,7 @@ msgstr "" "トランスポート、プロトコル、および :meth:`loop.create_connection` メソッドを" "使用した同じような :ref:`例 `。 " -#: ../../library/asyncio-eventloop.rst:2000 +#: ../../library/asyncio-eventloop.rst:2021 msgid "" "Another similar :ref:`example ` " "using the high-level :func:`asyncio.open_connection` function and streams." @@ -2963,21 +3001,21 @@ msgstr "" "高水準の :func:`asyncio.open_connection` 関数とストリームを使用したもうひとつ" "の :ref:`実装例 `。" -#: ../../library/asyncio-eventloop.rst:2008 +#: ../../library/asyncio-eventloop.rst:2029 msgid "Set signal handlers for SIGINT and SIGTERM" msgstr "SIGINT および SIGTERM 用のシグナルハンドラーの設定" -#: ../../library/asyncio-eventloop.rst:2010 +#: ../../library/asyncio-eventloop.rst:2031 msgid "(This ``signals`` example only works on Unix.)" msgstr "(ここに挙げる ``signals`` の例は Unix でのみ動きます。)" -#: ../../library/asyncio-eventloop.rst:2012 +#: ../../library/asyncio-eventloop.rst:2033 msgid "" "Register handlers for signals :const:`~signal.SIGINT` and :const:`~signal." "SIGTERM` using the :meth:`loop.add_signal_handler` method::" msgstr "" -#: ../../library/asyncio-eventloop.rst:2015 +#: ../../library/asyncio-eventloop.rst:2036 msgid "" "import asyncio\n" "import functools\n" diff --git a/library/asyncio-exceptions.po b/library/asyncio-exceptions.po index 5b723cc0f..e2573540a 100644 --- a/library/asyncio-exceptions.po +++ b/library/asyncio-exceptions.po @@ -18,10 +18,10 @@ msgstr "" "Last-Translator: 石井明久, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../library/asyncio-exceptions.rst:8 diff --git a/library/asyncio-extending.po b/library/asyncio-extending.po index c3429fdfc..93abbcb9e 100644 --- a/library/asyncio-extending.po +++ b/library/asyncio-extending.po @@ -1,21 +1,21 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2025, Python Software Foundation +# Copyright (C) 2001 Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # #, fuzzy msgid "" msgstr "" -"Project-Id-Version: Python 3.13\n" +"Project-Id-Version: Python 3.14\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2025-05-02 14:19+0000\n" +"POT-Creation-Date: 2025-05-23 14:20+0000\n" "PO-Revision-Date: 2022-11-05 19:48+0000\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../library/asyncio-extending.rst:6 diff --git a/library/asyncio-future.po b/library/asyncio-future.po index 3a9016f91..f6453e0af 100644 --- a/library/asyncio-future.po +++ b/library/asyncio-future.po @@ -18,10 +18,10 @@ msgstr "" "Last-Translator: Takeshi Nakazato, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../library/asyncio-future.rst:8 diff --git a/library/asyncio-llapi-index.po b/library/asyncio-llapi-index.po index 26de7682e..ca7f3f331 100644 --- a/library/asyncio-llapi-index.po +++ b/library/asyncio-llapi-index.po @@ -18,10 +18,10 @@ msgstr "" "Last-Translator: Arihiro TAKASE, 2023\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../library/asyncio-llapi-index.rst:6 diff --git a/library/asyncio-platforms.po b/library/asyncio-platforms.po index c827997f5..0e1207531 100644 --- a/library/asyncio-platforms.po +++ b/library/asyncio-platforms.po @@ -18,10 +18,10 @@ msgstr "" "Last-Translator: 石井明久, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../library/asyncio-platforms.rst:9 diff --git a/library/asyncio-policy.po b/library/asyncio-policy.po index 4d80fac8e..fb95b0c0c 100644 --- a/library/asyncio-policy.po +++ b/library/asyncio-policy.po @@ -17,10 +17,10 @@ msgstr "" "Last-Translator: Takeshi Nakazato, 2022\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../library/asyncio-policy.rst:8 diff --git a/library/asyncio-protocol.po b/library/asyncio-protocol.po index 25c4e7cc6..13aae2a2b 100644 --- a/library/asyncio-protocol.po +++ b/library/asyncio-protocol.po @@ -1,5 +1,5 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2025, Python Software Foundation +# Copyright (C) 2001 Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # @@ -11,17 +11,17 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: Python 3.13\n" +"Project-Id-Version: Python 3.14\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2025-05-02 14:19+0000\n" +"POT-Creation-Date: 2025-05-23 14:20+0000\n" "PO-Revision-Date: 2021-06-28 00:55+0000\n" "Last-Translator: 石井明久, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../library/asyncio-protocol.rst:9 diff --git a/library/asyncio-queue.po b/library/asyncio-queue.po index d9e747590..9d54d9f09 100644 --- a/library/asyncio-queue.po +++ b/library/asyncio-queue.po @@ -1,5 +1,5 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2025, Python Software Foundation +# Copyright (C) 2001 Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # @@ -11,17 +11,17 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: Python 3.13\n" +"Project-Id-Version: Python 3.14\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2025-04-25 14:19+0000\n" +"POT-Creation-Date: 2025-05-16 14:19+0000\n" "PO-Revision-Date: 2021-06-28 00:55+0000\n" "Last-Translator: Arihiro TAKASE, 2023\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../library/asyncio-queue.rst:7 diff --git a/library/asyncio-runner.po b/library/asyncio-runner.po index 6515337d6..7c14e680b 100644 --- a/library/asyncio-runner.po +++ b/library/asyncio-runner.po @@ -18,10 +18,10 @@ msgstr "" "Last-Translator: 菊池 健志, 2023\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../library/asyncio-runner.rst:6 diff --git a/library/asyncio-stream.po b/library/asyncio-stream.po index c1f27e721..c44b8fe5d 100644 --- a/library/asyncio-stream.po +++ b/library/asyncio-stream.po @@ -1,5 +1,5 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2025, Python Software Foundation +# Copyright (C) 2001 Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # @@ -12,17 +12,17 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: Python 3.13\n" +"Project-Id-Version: Python 3.14\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2025-04-25 14:19+0000\n" +"POT-Creation-Date: 2025-05-16 14:19+0000\n" "PO-Revision-Date: 2021-06-28 00:55+0000\n" "Last-Translator: Rafael Fontenelle , 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../library/asyncio-stream.rst:7 diff --git a/library/asyncio-subprocess.po b/library/asyncio-subprocess.po index 9ad55b607..ab5da9b3c 100644 --- a/library/asyncio-subprocess.po +++ b/library/asyncio-subprocess.po @@ -19,10 +19,10 @@ msgstr "" "Last-Translator: souma987, 2023\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../library/asyncio-subprocess.rst:7 diff --git a/library/asyncio-sync.po b/library/asyncio-sync.po index c811251ed..c4010ddb0 100644 --- a/library/asyncio-sync.po +++ b/library/asyncio-sync.po @@ -1,5 +1,5 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2025, Python Software Foundation +# Copyright (C) 2001 Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # @@ -13,17 +13,17 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: Python 3.13\n" +"Project-Id-Version: Python 3.14\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2025-04-25 14:19+0000\n" +"POT-Creation-Date: 2025-05-16 14:19+0000\n" "PO-Revision-Date: 2021-06-28 00:55+0000\n" "Last-Translator: 石井明久, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../library/asyncio-sync.rst:7 diff --git a/library/asyncio-task.po b/library/asyncio-task.po index 65fff22a7..00ad2d767 100644 --- a/library/asyncio-task.po +++ b/library/asyncio-task.po @@ -18,15 +18,15 @@ msgid "" msgstr "" "Project-Id-Version: Python 3.14\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2025-05-08 02:53-0300\n" +"POT-Creation-Date: 2025-05-23 14:20+0000\n" "PO-Revision-Date: 2021-06-28 00:55+0000\n" "Last-Translator: tomo, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../library/asyncio-task.rst:6 @@ -409,13 +409,12 @@ msgstr "" #: ../../library/asyncio-task.rst:246 msgid "" -"If *name* is not ``None``, it is set as the name of the task using :meth:" -"`Task.set_name`." +"The full function signature is largely the same as that of the :class:`Task` " +"constructor (or factory) - all of the keyword arguments to this function are " +"passed through to that interface." msgstr "" -"もし *name* が ``None`` でない場合、:meth:`Task.set_name` を使用し、*name* が" -"タスクの名前として設定されます。" -#: ../../library/asyncio-task.rst:249 +#: ../../library/asyncio-task.rst:250 msgid "" "An optional keyword-only *context* argument allows specifying a custom :" "class:`contextvars.Context` for the *coro* to run in. The current context " @@ -425,7 +424,15 @@ msgstr "" "の :class:`contextvars.Context` を指定できます。*context* が省略された場合、" "現在のコンテキストのコピーが作成されます。" -#: ../../library/asyncio-task.rst:253 +#: ../../library/asyncio-task.rst:254 +msgid "" +"An optional keyword-only *eager_start* argument allows specifying if the " +"task should execute eagerly during the call to create_task, or be scheduled " +"later. If *eager_start* is not passed the mode set by :meth:`loop." +"set_task_factory` will be used." +msgstr "" + +#: ../../library/asyncio-task.rst:259 msgid "" "The task is executed in the loop returned by :func:`get_running_loop`, :exc:" "`RuntimeError` is raised if there is no running loop in current thread." @@ -434,14 +441,14 @@ msgstr "" "行されます。現在のスレッドに実行中のループが無い場合は、 :exc:`RuntimeError` " "が送出されます。" -#: ../../library/asyncio-task.rst:259 +#: ../../library/asyncio-task.rst:265 msgid "" ":meth:`asyncio.TaskGroup.create_task` is a new alternative leveraging " "structural concurrency; it allows for waiting for a group of related tasks " "with strong safety guarantees." msgstr "" -#: ../../library/asyncio-task.rst:265 +#: ../../library/asyncio-task.rst:271 msgid "" "Save a reference to the result of this function, to avoid a task " "disappearing mid-execution. The event loop only keeps weak references to " @@ -454,7 +461,7 @@ msgstr "" "なくてもガーベジコレクションされる可能性があります。信頼性のある \"fire-and-" "forget\" バックグラウンドタスクが必要な場合、コレクションを使ってください。" -#: ../../library/asyncio-task.rst:272 +#: ../../library/asyncio-task.rst:278 msgid "" "background_tasks = set()\n" "\n" @@ -470,19 +477,23 @@ msgid "" " task.add_done_callback(background_tasks.discard)" msgstr "" -#: ../../library/asyncio-task.rst:287 ../../library/asyncio-task.rst:1237 +#: ../../library/asyncio-task.rst:293 ../../library/asyncio-task.rst:1250 msgid "Added the *name* parameter." msgstr "*name* パラメータを追加しました。" -#: ../../library/asyncio-task.rst:290 ../../library/asyncio-task.rst:1244 +#: ../../library/asyncio-task.rst:296 ../../library/asyncio-task.rst:1257 msgid "Added the *context* parameter." msgstr "*context* パラメータを追加しました。" -#: ../../library/asyncio-task.rst:295 +#: ../../library/asyncio-task.rst:299 +msgid "Added the *eager_start* parameter by passing on all *kwargs*." +msgstr "" + +#: ../../library/asyncio-task.rst:304 msgid "Task Cancellation" msgstr "タスクのキャンセル" -#: ../../library/asyncio-task.rst:297 +#: ../../library/asyncio-task.rst:306 msgid "" "Tasks can easily and safely be cancelled. When a task is cancelled, :exc:" "`asyncio.CancelledError` will be raised in the task at the next opportunity." @@ -490,7 +501,7 @@ msgstr "" "タスクは簡単に、そして安全にキャンセルできます。タスクがキャンセルされた場" "合、:exc:`asyncio.CancelledError` が次の機会に送出されます。" -#: ../../library/asyncio-task.rst:301 +#: ../../library/asyncio-task.rst:310 msgid "" "It is recommended that coroutines use ``try/finally`` blocks to robustly " "perform clean-up logic. In case :exc:`asyncio.CancelledError` is explicitly " @@ -499,7 +510,7 @@ msgid "" "code will not need to be aware of it." msgstr "" -#: ../../library/asyncio-task.rst:307 +#: ../../library/asyncio-task.rst:316 msgid "" "The asyncio components that enable structured concurrency, like :class:" "`asyncio.TaskGroup` and :func:`asyncio.timeout`, are implemented using " @@ -510,24 +521,24 @@ msgid "" "``uncancel()`` to completely remove the cancellation state." msgstr "" -#: ../../library/asyncio-task.rst:319 +#: ../../library/asyncio-task.rst:328 msgid "Task Groups" msgstr "" -#: ../../library/asyncio-task.rst:321 +#: ../../library/asyncio-task.rst:330 msgid "" "Task groups combine a task creation API with a convenient and reliable way " "to wait for all tasks in the group to finish." msgstr "" -#: ../../library/asyncio-task.rst:326 +#: ../../library/asyncio-task.rst:335 msgid "" "An :ref:`asynchronous context manager ` holding a " "group of tasks. Tasks can be added to the group using :meth:`create_task`. " "All tasks are awaited when the context manager exits." msgstr "" -#: ../../library/asyncio-task.rst:335 +#: ../../library/asyncio-task.rst:344 msgid "" "Create a task in this task group. The signature matches that of :func:" "`asyncio.create_task`. If the task group is inactive (e.g. not yet entered, " @@ -535,17 +546,21 @@ msgid "" "given ``coro``." msgstr "" -#: ../../library/asyncio-task.rst:343 +#: ../../library/asyncio-task.rst:352 msgid "Close the given coroutine if the task group is not active." msgstr "" -#: ../../library/asyncio-task.rst:345 ../../library/asyncio-task.rst:551 -#: ../../library/asyncio-task.rst:724 ../../library/asyncio-task.rst:782 -#: ../../library/asyncio-task.rst:808 ../../library/asyncio-task.rst:849 +#: ../../library/asyncio-task.rst:356 +msgid "Passes on all *kwargs* to :meth:`loop.create_task`" +msgstr "" + +#: ../../library/asyncio-task.rst:358 ../../library/asyncio-task.rst:564 +#: ../../library/asyncio-task.rst:737 ../../library/asyncio-task.rst:795 +#: ../../library/asyncio-task.rst:821 ../../library/asyncio-task.rst:862 msgid "Example::" msgstr "以下はプログラム例です::" -#: ../../library/asyncio-task.rst:347 +#: ../../library/asyncio-task.rst:360 msgid "" "async def main():\n" " async with asyncio.TaskGroup() as tg:\n" @@ -555,7 +570,7 @@ msgid "" "result()}\")" msgstr "" -#: ../../library/asyncio-task.rst:353 +#: ../../library/asyncio-task.rst:366 msgid "" "The ``async with`` statement will wait for all tasks in the group to finish. " "While waiting, new tasks may still be added to the group (for example, by " @@ -564,7 +579,7 @@ msgid "" "block is exited, no new tasks may be added to the group." msgstr "" -#: ../../library/asyncio-task.rst:360 +#: ../../library/asyncio-task.rst:373 msgid "" "The first time any of the tasks belonging to the group fails with an " "exception other than :exc:`asyncio.CancelledError`, the remaining tasks in " @@ -576,7 +591,7 @@ msgid "" "bubble out of the containing ``async with`` statement." msgstr "" -#: ../../library/asyncio-task.rst:370 +#: ../../library/asyncio-task.rst:383 msgid "" "Once all tasks have finished, if any tasks have failed with an exception " "other than :exc:`asyncio.CancelledError`, those exceptions are combined in " @@ -584,7 +599,7 @@ msgid "" "their documentation) which is then raised." msgstr "" -#: ../../library/asyncio-task.rst:377 +#: ../../library/asyncio-task.rst:390 msgid "" "Two base exceptions are treated specially: If any task fails with :exc:" "`KeyboardInterrupt` or :exc:`SystemExit`, the task group still cancels the " @@ -593,7 +608,7 @@ msgid "" "`ExceptionGroup` or :exc:`BaseExceptionGroup`." msgstr "" -#: ../../library/asyncio-task.rst:383 +#: ../../library/asyncio-task.rst:396 msgid "" "If the body of the ``async with`` statement exits with an exception (so :" "meth:`~object.__aexit__` is called with an exception set), this is treated " @@ -605,7 +620,7 @@ msgid "" "`KeyboardInterrupt` and :exc:`SystemExit` as in the previous paragraph." msgstr "" -#: ../../library/asyncio-task.rst:395 +#: ../../library/asyncio-task.rst:408 msgid "" "Task groups are careful not to mix up the internal cancellation used to " "\"wake up\" their :meth:`~object.__aexit__` with cancellation requests for " @@ -616,7 +631,7 @@ msgid "" "receive another cancellation and process its own exceptions." msgstr "" -#: ../../library/asyncio-task.rst:403 +#: ../../library/asyncio-task.rst:416 msgid "" "In the case where a task group is cancelled externally and also must raise " "an :exc:`ExceptionGroup`, it will call the parent task's :meth:`~asyncio." @@ -624,30 +639,30 @@ msgid "" "be raised at the next :keyword:`await`, so the cancellation is not lost." msgstr "" -#: ../../library/asyncio-task.rst:409 +#: ../../library/asyncio-task.rst:422 msgid "" "Task groups preserve the cancellation count reported by :meth:`asyncio.Task." "cancelling`." msgstr "" -#: ../../library/asyncio-task.rst:414 +#: ../../library/asyncio-task.rst:427 msgid "" "Improved handling of simultaneous internal and external cancellations and " "correct preservation of cancellation counts." msgstr "" -#: ../../library/asyncio-task.rst:418 +#: ../../library/asyncio-task.rst:431 msgid "Terminating a Task Group" msgstr "" -#: ../../library/asyncio-task.rst:420 +#: ../../library/asyncio-task.rst:433 msgid "" "While terminating a task group is not natively supported by the standard " "library, termination can be achieved by adding an exception-raising task to " "the task group and ignoring the raised exception:" msgstr "" -#: ../../library/asyncio-task.rst:424 +#: ../../library/asyncio-task.rst:437 msgid "" "import asyncio\n" "from asyncio import TaskGroup\n" @@ -680,26 +695,26 @@ msgid "" "asyncio.run(main())" msgstr "" -#: ../../library/asyncio-task.rst:456 +#: ../../library/asyncio-task.rst:469 msgid "Expected output:" msgstr "予想される出力:" -#: ../../library/asyncio-task.rst:458 +#: ../../library/asyncio-task.rst:471 msgid "" "Task 1: start\n" "Task 2: start\n" "Task 1: done" msgstr "" -#: ../../library/asyncio-task.rst:465 +#: ../../library/asyncio-task.rst:478 msgid "Sleeping" msgstr "スリープ" -#: ../../library/asyncio-task.rst:470 +#: ../../library/asyncio-task.rst:483 msgid "Block for *delay* seconds." msgstr "*delay* 秒だけ停止します。" -#: ../../library/asyncio-task.rst:472 +#: ../../library/asyncio-task.rst:485 msgid "" "If *result* is provided, it is returned to the caller when the coroutine " "completes." @@ -707,14 +722,14 @@ msgstr "" "*result* が提供されている場合は、コルーチン完了時にそれが呼び出し元に返されま" "す。" -#: ../../library/asyncio-task.rst:475 +#: ../../library/asyncio-task.rst:488 msgid "" "``sleep()`` always suspends the current task, allowing other tasks to run." msgstr "" "``sleep()`` は常に現在の Task を一時中断し、他の Task が実行されるのを許可し" "ます。" -#: ../../library/asyncio-task.rst:478 +#: ../../library/asyncio-task.rst:491 msgid "" "Setting the delay to 0 provides an optimized path to allow other tasks to " "run. This can be used by long-running functions to avoid blocking the event " @@ -724,12 +739,12 @@ msgstr "" "す。この方法は、実行時間の長い関数が、その実行時間全体にわたってイベントルー" "プをブロックしないようにするために利用できます。" -#: ../../library/asyncio-task.rst:484 +#: ../../library/asyncio-task.rst:497 msgid "" "Example of coroutine displaying the current date every second for 5 seconds::" msgstr "現在の時刻を5秒間、毎秒表示するコルーチンの例::" -#: ../../library/asyncio-task.rst:487 +#: ../../library/asyncio-task.rst:500 msgid "" "import asyncio\n" "import datetime\n" @@ -746,21 +761,21 @@ msgid "" "asyncio.run(display_date())" msgstr "" -#: ../../library/asyncio-task.rst:502 ../../library/asyncio-task.rst:600 -#: ../../library/asyncio-task.rst:699 ../../library/asyncio-task.rst:874 -#: ../../library/asyncio-task.rst:929 ../../library/asyncio-task.rst:986 +#: ../../library/asyncio-task.rst:515 ../../library/asyncio-task.rst:613 +#: ../../library/asyncio-task.rst:712 ../../library/asyncio-task.rst:887 +#: ../../library/asyncio-task.rst:942 ../../library/asyncio-task.rst:999 msgid "Removed the *loop* parameter." msgstr "*loop* パラメータが削除されました。" -#: ../../library/asyncio-task.rst:505 +#: ../../library/asyncio-task.rst:518 msgid "Raises :exc:`ValueError` if *delay* is :data:`~math.nan`." msgstr "" -#: ../../library/asyncio-task.rst:510 +#: ../../library/asyncio-task.rst:523 msgid "Running Tasks Concurrently" msgstr "並行な Task 実行" -#: ../../library/asyncio-task.rst:514 +#: ../../library/asyncio-task.rst:527 msgid "" "Run :ref:`awaitable objects ` in the *aws* sequence " "*concurrently*." @@ -768,7 +783,7 @@ msgstr "" "*aws* シーケンスにある :ref:`awaitable オブジェクト ` を " "*並行* 実行します。" -#: ../../library/asyncio-task.rst:517 +#: ../../library/asyncio-task.rst:530 msgid "" "If any awaitable in *aws* is a coroutine, it is automatically scheduled as a " "Task." @@ -776,7 +791,7 @@ msgstr "" "*aws* にある awaitable がコルーチンである場合、自動的に Task としてスケジュー" "ルされます。" -#: ../../library/asyncio-task.rst:520 +#: ../../library/asyncio-task.rst:533 msgid "" "If all awaitables are completed successfully, the result is an aggregate " "list of returned values. The order of result values corresponds to the " @@ -786,7 +801,7 @@ msgstr "" "す。\n" "返り値の順序は、 *aws* での awaitable の順序に相当します。" -#: ../../library/asyncio-task.rst:524 +#: ../../library/asyncio-task.rst:537 msgid "" "If *return_exceptions* is ``False`` (default), the first raised exception is " "immediately propagated to the task that awaits on ``gather()``. Other " @@ -797,7 +812,7 @@ msgstr "" "await しているタスクに対して、最初の例外が直接伝えられます。*aws* に並んでい" "る他の awaitable は、**キャンセルされずに** 引き続いて実行されます。" -#: ../../library/asyncio-task.rst:529 +#: ../../library/asyncio-task.rst:542 msgid "" "If *return_exceptions* is ``True``, exceptions are treated the same as " "successful results, and aggregated in the result list." @@ -805,7 +820,7 @@ msgstr "" "*return_exceptions* が ``True`` だった場合、例外は成功した結果と同じように取" "り扱われ、結果リストに集められます。" -#: ../../library/asyncio-task.rst:532 +#: ../../library/asyncio-task.rst:545 msgid "" "If ``gather()`` is *cancelled*, all submitted awaitables (that have not " "completed yet) are also *cancelled*." @@ -813,7 +828,7 @@ msgstr "" "``gather()`` が *キャンセル* された場合、起動された全ての (未完了の) " "awaitable も *キャンセル* されます。" -#: ../../library/asyncio-task.rst:535 +#: ../../library/asyncio-task.rst:548 msgid "" "If any Task or Future from the *aws* sequence is *cancelled*, it is treated " "as if it raised :exc:`CancelledError` -- the ``gather()`` call is **not** " @@ -826,7 +841,7 @@ msgstr "" "これは、起動された 1 つの Task あるいは Future のキャンセルが、他の Task ある" "いは Future のキャンセルを引き起こすのを避けるためです。" -#: ../../library/asyncio-task.rst:542 +#: ../../library/asyncio-task.rst:555 msgid "" "A new alternative to create and run tasks concurrently and wait for their " "completion is :class:`asyncio.TaskGroup`. *TaskGroup* provides stronger " @@ -836,7 +851,7 @@ msgid "" "tasks)." msgstr "" -#: ../../library/asyncio-task.rst:553 +#: ../../library/asyncio-task.rst:566 msgid "" "import asyncio\n" "\n" @@ -875,7 +890,7 @@ msgid "" "# [2, 6, 24]" msgstr "" -#: ../../library/asyncio-task.rst:589 +#: ../../library/asyncio-task.rst:602 msgid "" "If *return_exceptions* is false, cancelling gather() after it has been " "marked done won't cancel any submitted awaitables. For instance, gather can " @@ -884,7 +899,7 @@ msgid "" "the awaitables) from gather won't cancel any other awaitables." msgstr "" -#: ../../library/asyncio-task.rst:596 +#: ../../library/asyncio-task.rst:609 msgid "" "If the *gather* itself is cancelled, the cancellation is propagated " "regardless of *return_exceptions*." @@ -892,22 +907,22 @@ msgstr "" "*gather* 自身がキャンセルされた場合は、 *return_exceptions* の値に関わらず" "キャンセルが伝搬されます。" -#: ../../library/asyncio-task.rst:603 +#: ../../library/asyncio-task.rst:616 msgid "" "Deprecation warning is emitted if no positional arguments are provided or " "not all positional arguments are Future-like objects and there is no running " "event loop." msgstr "" -#: ../../library/asyncio-task.rst:612 +#: ../../library/asyncio-task.rst:625 msgid "Eager Task Factory" msgstr "" -#: ../../library/asyncio-task.rst:616 +#: ../../library/asyncio-task.rst:629 msgid "A task factory for eager task execution." msgstr "" -#: ../../library/asyncio-task.rst:618 +#: ../../library/asyncio-task.rst:631 msgid "" "When using this factory (via :meth:`loop.set_task_factory(asyncio." "eager_task_factory) `), coroutines begin execution " @@ -917,13 +932,13 @@ msgid "" "synchronously." msgstr "" -#: ../../library/asyncio-task.rst:624 +#: ../../library/asyncio-task.rst:637 msgid "" "A common example where this is beneficial is coroutines which employ caching " "or memoization to avoid actual I/O when possible." msgstr "" -#: ../../library/asyncio-task.rst:629 +#: ../../library/asyncio-task.rst:642 msgid "" "Immediate execution of the coroutine is a semantic change. If the coroutine " "returns or raises, the task is never scheduled to the event loop. If the " @@ -932,32 +947,32 @@ msgid "" "the application's task execution order is likely to change." msgstr "" -#: ../../library/asyncio-task.rst:640 +#: ../../library/asyncio-task.rst:653 msgid "" "Create an eager task factory, similar to :func:`eager_task_factory`, using " "the provided *custom_task_constructor* when creating a new task instead of " "the default :class:`Task`." msgstr "" -#: ../../library/asyncio-task.rst:644 +#: ../../library/asyncio-task.rst:657 msgid "" "*custom_task_constructor* must be a *callable* with the signature matching " "the signature of :class:`Task.__init__ `. The callable must return a :" "class:`asyncio.Task`-compatible object." msgstr "" -#: ../../library/asyncio-task.rst:648 +#: ../../library/asyncio-task.rst:661 msgid "" "This function returns a *callable* intended to be used as a task factory of " "an event loop via :meth:`loop.set_task_factory(factory) `)." msgstr "" -#: ../../library/asyncio-task.rst:655 +#: ../../library/asyncio-task.rst:668 msgid "Shielding From Cancellation" msgstr "キャンセルからの保護" -#: ../../library/asyncio-task.rst:659 +#: ../../library/asyncio-task.rst:672 msgid "" "Protect an :ref:`awaitable object ` from being :meth:" "`cancelled `." @@ -965,30 +980,30 @@ msgstr "" ":meth:`キャンセル ` から :ref:`awaitable オブジェクト ` を保護します。" -#: ../../library/asyncio-task.rst:662 ../../library/asyncio-task.rst:829 +#: ../../library/asyncio-task.rst:675 ../../library/asyncio-task.rst:842 msgid "If *aw* is a coroutine it is automatically scheduled as a Task." msgstr "" "*aw* がコルーチンだった場合、自動的に Task としてスケジュールされます。" -#: ../../library/asyncio-task.rst:664 +#: ../../library/asyncio-task.rst:677 msgid "The statement::" msgstr "文::" -#: ../../library/asyncio-task.rst:666 +#: ../../library/asyncio-task.rst:679 msgid "" "task = asyncio.create_task(something())\n" "res = await shield(task)" msgstr "" -#: ../../library/asyncio-task.rst:669 +#: ../../library/asyncio-task.rst:682 msgid "is equivalent to::" msgstr "は、以下と同じです ::" -#: ../../library/asyncio-task.rst:671 +#: ../../library/asyncio-task.rst:684 msgid "res = await something()" msgstr "" -#: ../../library/asyncio-task.rst:673 +#: ../../library/asyncio-task.rst:686 msgid "" "*except* that if the coroutine containing it is cancelled, the Task running " "in ``something()`` is not cancelled. From the point of view of " @@ -1002,7 +1017,7 @@ msgstr "" "呼び出し元がキャンセルされた場合でも、 \"await\" 式は :exc:`CancelledError` " "を送出します。" -#: ../../library/asyncio-task.rst:679 +#: ../../library/asyncio-task.rst:692 msgid "" "If ``something()`` is cancelled by other means (i.e. from within itself) " "that would also cancel ``shield()``." @@ -1010,7 +1025,7 @@ msgstr "" "注意: ``something()`` が他の理由 (例えば、原因が自分自身) でキャンセルされた" "場合は ``shield()`` でも保護できません。" -#: ../../library/asyncio-task.rst:682 +#: ../../library/asyncio-task.rst:695 msgid "" "If it is desired to completely ignore cancellation (not recommended) the " "``shield()`` function should be combined with a try/except clause, as " @@ -1019,7 +1034,7 @@ msgstr "" "完全にキャンセルを無視したい場合 (推奨はしません) は、 ``shield()`` 関数は次" "のように try/except 節と組み合わせることになるでしょう::" -#: ../../library/asyncio-task.rst:686 +#: ../../library/asyncio-task.rst:699 msgid "" "task = asyncio.create_task(something())\n" "try:\n" @@ -1028,7 +1043,7 @@ msgid "" " res = None" msgstr "" -#: ../../library/asyncio-task.rst:694 +#: ../../library/asyncio-task.rst:707 msgid "" "Save a reference to tasks passed to this function, to avoid a task " "disappearing mid-execution. The event loop only keeps weak references to " @@ -1036,43 +1051,43 @@ msgid "" "any time, even before it's done." msgstr "" -#: ../../library/asyncio-task.rst:702 +#: ../../library/asyncio-task.rst:715 msgid "" "Deprecation warning is emitted if *aw* is not Future-like object and there " "is no running event loop." msgstr "" -#: ../../library/asyncio-task.rst:708 +#: ../../library/asyncio-task.rst:721 msgid "Timeouts" msgstr "タイムアウト" -#: ../../library/asyncio-task.rst:712 +#: ../../library/asyncio-task.rst:725 msgid "" "Return an :ref:`asynchronous context manager ` that " "can be used to limit the amount of time spent waiting on something." msgstr "" -#: ../../library/asyncio-task.rst:716 +#: ../../library/asyncio-task.rst:729 msgid "" "*delay* can either be ``None``, or a float/int number of seconds to wait. If " "*delay* is ``None``, no time limit will be applied; this can be useful if " "the delay is unknown when the context manager is created." msgstr "" -#: ../../library/asyncio-task.rst:721 +#: ../../library/asyncio-task.rst:734 msgid "" "In either case, the context manager can be rescheduled after creation using :" "meth:`Timeout.reschedule`." msgstr "" -#: ../../library/asyncio-task.rst:726 +#: ../../library/asyncio-task.rst:739 msgid "" "async def main():\n" " async with asyncio.timeout(10):\n" " await long_running_task()" msgstr "" -#: ../../library/asyncio-task.rst:730 +#: ../../library/asyncio-task.rst:743 msgid "" "If ``long_running_task`` takes more than 10 seconds to complete, the context " "manager will cancel the current task and handle the resulting :exc:`asyncio." @@ -1080,18 +1095,18 @@ msgid "" "can be caught and handled." msgstr "" -#: ../../library/asyncio-task.rst:737 +#: ../../library/asyncio-task.rst:750 msgid "" "The :func:`asyncio.timeout` context manager is what transforms the :exc:" "`asyncio.CancelledError` into a :exc:`TimeoutError`, which means the :exc:" "`TimeoutError` can only be caught *outside* of the context manager." msgstr "" -#: ../../library/asyncio-task.rst:742 +#: ../../library/asyncio-task.rst:755 msgid "Example of catching :exc:`TimeoutError`::" msgstr "" -#: ../../library/asyncio-task.rst:744 +#: ../../library/asyncio-task.rst:757 msgid "" "async def main():\n" " try:\n" @@ -1103,48 +1118,48 @@ msgid "" " print(\"This statement will run regardless.\")" msgstr "" -#: ../../library/asyncio-task.rst:753 +#: ../../library/asyncio-task.rst:766 msgid "" "The context manager produced by :func:`asyncio.timeout` can be rescheduled " "to a different deadline and inspected." msgstr "" -#: ../../library/asyncio-task.rst:758 +#: ../../library/asyncio-task.rst:771 msgid "" "An :ref:`asynchronous context manager ` for " "cancelling overdue coroutines." msgstr "" -#: ../../library/asyncio-task.rst:761 +#: ../../library/asyncio-task.rst:774 msgid "" "``when`` should be an absolute time at which the context should time out, as " "measured by the event loop's clock:" msgstr "" -#: ../../library/asyncio-task.rst:764 +#: ../../library/asyncio-task.rst:777 msgid "If ``when`` is ``None``, the timeout will never trigger." msgstr "" -#: ../../library/asyncio-task.rst:765 +#: ../../library/asyncio-task.rst:778 msgid "" "If ``when < loop.time()``, the timeout will trigger on the next iteration of " "the event loop." msgstr "" -#: ../../library/asyncio-task.rst:770 +#: ../../library/asyncio-task.rst:783 msgid "" "Return the current deadline, or ``None`` if the current deadline is not set." msgstr "" -#: ../../library/asyncio-task.rst:775 +#: ../../library/asyncio-task.rst:788 msgid "Reschedule the timeout." msgstr "" -#: ../../library/asyncio-task.rst:779 +#: ../../library/asyncio-task.rst:792 msgid "Return whether the context manager has exceeded its deadline (expired)." msgstr "" -#: ../../library/asyncio-task.rst:784 +#: ../../library/asyncio-task.rst:797 msgid "" "async def main():\n" " try:\n" @@ -1162,17 +1177,17 @@ msgid "" " print(\"Looks like we haven't finished on time.\")" msgstr "" -#: ../../library/asyncio-task.rst:799 +#: ../../library/asyncio-task.rst:812 msgid "Timeout context managers can be safely nested." msgstr "" -#: ../../library/asyncio-task.rst:805 +#: ../../library/asyncio-task.rst:818 msgid "" "Similar to :func:`asyncio.timeout`, except *when* is the absolute time to " "stop waiting, or ``None``." msgstr "" -#: ../../library/asyncio-task.rst:810 +#: ../../library/asyncio-task.rst:823 msgid "" "async def main():\n" " loop = get_running_loop()\n" @@ -1186,7 +1201,7 @@ msgid "" " print(\"This statement will run regardless.\")" msgstr "" -#: ../../library/asyncio-task.rst:826 +#: ../../library/asyncio-task.rst:839 msgid "" "Wait for the *aw* :ref:`awaitable ` to complete with a " "timeout." @@ -1194,7 +1209,7 @@ msgstr "" "*aw* :ref:`awaitable ` が、完了するかタイムアウトになるの" "を待ちます。" -#: ../../library/asyncio-task.rst:831 +#: ../../library/asyncio-task.rst:844 msgid "" "*timeout* can either be ``None`` or a float or int number of seconds to wait " "for. If *timeout* is ``None``, block until the future completes." @@ -1203,12 +1218,12 @@ msgstr "" "す。\n" "*timeout* が ``None`` の場合、 Future が完了するまで待ちます。" -#: ../../library/asyncio-task.rst:835 +#: ../../library/asyncio-task.rst:848 msgid "" "If a timeout occurs, it cancels the task and raises :exc:`TimeoutError`." msgstr "" -#: ../../library/asyncio-task.rst:838 +#: ../../library/asyncio-task.rst:851 msgid "" "To avoid the task :meth:`cancellation `, wrap it in :func:" "`shield`." @@ -1216,7 +1231,7 @@ msgstr "" "Task の :meth:`キャンセル ` を避けるためには、 :func:`shield` の" "中にラップしてください。" -#: ../../library/asyncio-task.rst:841 +#: ../../library/asyncio-task.rst:854 msgid "" "The function will wait until the future is actually cancelled, so the total " "wait time may exceed the *timeout*. If an exception happens during " @@ -1226,11 +1241,11 @@ msgstr "" "*timeout* を超えることがあります。キャンセル中に例外が発生した場合は、その例" "外は伝達されます。" -#: ../../library/asyncio-task.rst:845 +#: ../../library/asyncio-task.rst:858 msgid "If the wait is cancelled, the future *aw* is also cancelled." msgstr "待機が中止された場合 *aw* も中止されます。" -#: ../../library/asyncio-task.rst:851 +#: ../../library/asyncio-task.rst:864 msgid "" "async def eternity():\n" " # Sleep for one hour\n" @@ -1251,44 +1266,44 @@ msgid "" "# timeout!" msgstr "" -#: ../../library/asyncio-task.rst:869 +#: ../../library/asyncio-task.rst:882 msgid "" "When *aw* is cancelled due to a timeout, ``wait_for`` waits for *aw* to be " "cancelled. Previously, it raised :exc:`TimeoutError` immediately." msgstr "" -#: ../../library/asyncio-task.rst:877 +#: ../../library/asyncio-task.rst:890 msgid "Raises :exc:`TimeoutError` instead of :exc:`asyncio.TimeoutError`." msgstr "" -#: ../../library/asyncio-task.rst:882 +#: ../../library/asyncio-task.rst:895 msgid "Waiting Primitives" msgstr "要素の終了待機" -#: ../../library/asyncio-task.rst:887 +#: ../../library/asyncio-task.rst:900 msgid "" "Run :class:`~asyncio.Future` and :class:`~asyncio.Task` instances in the " "*aws* iterable concurrently and block until the condition specified by " "*return_when*." msgstr "" -#: ../../library/asyncio-task.rst:891 +#: ../../library/asyncio-task.rst:904 msgid "The *aws* iterable must not be empty." msgstr "イテラブル *aws* は空であってはなりません。" -#: ../../library/asyncio-task.rst:893 +#: ../../library/asyncio-task.rst:906 msgid "Returns two sets of Tasks/Futures: ``(done, pending)``." msgstr "Task/Future からなる 2 つの集合 ``(done, pending)`` を返します。" -#: ../../library/asyncio-task.rst:895 +#: ../../library/asyncio-task.rst:908 msgid "Usage::" msgstr "使い方::" -#: ../../library/asyncio-task.rst:897 +#: ../../library/asyncio-task.rst:910 msgid "done, pending = await asyncio.wait(aws)" msgstr "" -#: ../../library/asyncio-task.rst:899 +#: ../../library/asyncio-task.rst:912 msgid "" "*timeout* (a float or int), if specified, can be used to control the maximum " "number of seconds to wait before returning." @@ -1296,14 +1311,14 @@ msgstr "" "*timeout* (浮動小数点数または整数) が指定されていたら、処理を返すのを待つ最大" "秒数を制御するのに使われます。" -#: ../../library/asyncio-task.rst:902 +#: ../../library/asyncio-task.rst:915 msgid "" "Note that this function does not raise :exc:`TimeoutError`. Futures or Tasks " "that aren't done when the timeout occurs are simply returned in the second " "set." msgstr "" -#: ../../library/asyncio-task.rst:906 +#: ../../library/asyncio-task.rst:919 msgid "" "*return_when* indicates when this function should return. It must be one of " "the following constants:" @@ -1311,30 +1326,30 @@ msgstr "" "*return_when* でこの関数がいつ結果を返すか指定します。指定できる値は以下の 定" "数のどれか一つです:" -#: ../../library/asyncio-task.rst:912 +#: ../../library/asyncio-task.rst:925 msgid "Constant" msgstr "定数" -#: ../../library/asyncio-task.rst:913 +#: ../../library/asyncio-task.rst:926 msgid "Description" msgstr "説明" -#: ../../library/asyncio-task.rst:916 +#: ../../library/asyncio-task.rst:929 msgid "The function will return when any future finishes or is cancelled." msgstr "いずれかのフューチャが終了したかキャンセルされたときに返します。" -#: ../../library/asyncio-task.rst:919 +#: ../../library/asyncio-task.rst:932 msgid "" "The function will return when any future finishes by raising an exception. " "If no future raises an exception then it is equivalent to :const:" "`ALL_COMPLETED`." msgstr "" -#: ../../library/asyncio-task.rst:924 +#: ../../library/asyncio-task.rst:937 msgid "The function will return when all futures finish or are cancelled." msgstr "すべてのフューチャが終了したかキャンセルされたときに返します。" -#: ../../library/asyncio-task.rst:926 +#: ../../library/asyncio-task.rst:939 msgid "" "Unlike :func:`~asyncio.wait_for`, ``wait()`` does not cancel the futures " "when a timeout occurs." @@ -1342,22 +1357,22 @@ msgstr "" ":func:`~asyncio.wait_for` と異なり、 ``wait()`` はタイムアウトが起きたとき" "に Future をキャンセルしません。" -#: ../../library/asyncio-task.rst:932 +#: ../../library/asyncio-task.rst:945 msgid "Passing coroutine objects to ``wait()`` directly is forbidden." msgstr "" -#: ../../library/asyncio-task.rst:935 ../../library/asyncio-task.rst:993 +#: ../../library/asyncio-task.rst:948 ../../library/asyncio-task.rst:1006 msgid "Added support for generators yielding tasks." msgstr "" -#: ../../library/asyncio-task.rst:941 +#: ../../library/asyncio-task.rst:954 msgid "" "Run :ref:`awaitable objects ` in the *aws* iterable " "concurrently. The returned object can be iterated to obtain the results of " "the awaitables as they finish." msgstr "" -#: ../../library/asyncio-task.rst:945 +#: ../../library/asyncio-task.rst:958 msgid "" "The object returned by ``as_completed()`` can be iterated as an :term:" "`asynchronous iterator` or a plain :term:`iterator`. When asynchronous " @@ -1366,7 +1381,7 @@ msgid "" "tasks with their results. Example::" msgstr "" -#: ../../library/asyncio-task.rst:951 +#: ../../library/asyncio-task.rst:964 msgid "" "ipv4_connect = create_task(open_connection(\"127.0.0.1\", 80))\n" "ipv6_connect = create_task(open_connection(\"::1\", 80))\n" @@ -1383,20 +1398,20 @@ msgid "" " print(\"IPv4 connection established.\")" msgstr "" -#: ../../library/asyncio-task.rst:965 +#: ../../library/asyncio-task.rst:978 msgid "" "During asynchronous iteration, implicitly-created tasks will be yielded for " "supplied awaitables that aren't tasks or futures." msgstr "" -#: ../../library/asyncio-task.rst:968 +#: ../../library/asyncio-task.rst:981 msgid "" "When used as a plain iterator, each iteration yields a new coroutine that " "returns the result or raises the exception of the next completed awaitable. " "This pattern is compatible with Python versions older than 3.13::" msgstr "" -#: ../../library/asyncio-task.rst:972 +#: ../../library/asyncio-task.rst:985 msgid "" "ipv4_connect = create_task(open_connection(\"127.0.0.1\", 80))\n" "ipv6_connect = create_task(open_connection(\"::1\", 80))\n" @@ -1409,34 +1424,34 @@ msgid "" " reader, writer = await next_connect" msgstr "" -#: ../../library/asyncio-task.rst:982 +#: ../../library/asyncio-task.rst:995 msgid "" "A :exc:`TimeoutError` is raised if the timeout occurs before all awaitables " "are done. This is raised by the ``async for`` loop during asynchronous " "iteration or by the coroutines yielded during plain iteration." msgstr "" -#: ../../library/asyncio-task.rst:989 +#: ../../library/asyncio-task.rst:1002 msgid "" "Deprecation warning is emitted if not all awaitable objects in the *aws* " "iterable are Future-like objects and there is no running event loop." msgstr "" -#: ../../library/asyncio-task.rst:996 +#: ../../library/asyncio-task.rst:1009 msgid "" "The result can now be used as either an :term:`asynchronous iterator` or as " "a plain :term:`iterator` (previously it was only a plain iterator)." msgstr "" -#: ../../library/asyncio-task.rst:1002 +#: ../../library/asyncio-task.rst:1015 msgid "Running in Threads" msgstr "スレッド内での実行" -#: ../../library/asyncio-task.rst:1007 +#: ../../library/asyncio-task.rst:1020 msgid "Asynchronously run function *func* in a separate thread." msgstr "別のスレッドで非同期的に関数 *func* を実行します。" -#: ../../library/asyncio-task.rst:1009 +#: ../../library/asyncio-task.rst:1022 msgid "" "Any \\*args and \\*\\*kwargs supplied for this function are directly passed " "to *func*. Also, the current :class:`contextvars.Context` is propagated, " @@ -1447,19 +1462,19 @@ msgstr "" "た、イベントループスレッドのコンテキスト変数に関数を実行するスレッドからアク" "セスできるように、現在の :class:`contextvars.Context` も伝播されます。" -#: ../../library/asyncio-task.rst:1014 +#: ../../library/asyncio-task.rst:1027 msgid "" "Return a coroutine that can be awaited to get the eventual result of *func*." msgstr "関数 *func* の最終結果を待ち受けできるコルーチンを返します。" -#: ../../library/asyncio-task.rst:1016 +#: ../../library/asyncio-task.rst:1029 msgid "" "This coroutine function is primarily intended to be used for executing IO-" "bound functions/methods that would otherwise block the event loop if they " "were run in the main thread. For example::" msgstr "" -#: ../../library/asyncio-task.rst:1020 +#: ../../library/asyncio-task.rst:1033 msgid "" "def blocking_io():\n" " print(f\"start blocking_io at {time.strftime('%X')}\")\n" @@ -1488,7 +1503,7 @@ msgid "" "# finished main at 19:50:54" msgstr "" -#: ../../library/asyncio-task.rst:1046 +#: ../../library/asyncio-task.rst:1059 msgid "" "Directly calling ``blocking_io()`` in any coroutine would block the event " "loop for its duration, resulting in an additional 1 second of run time. " @@ -1496,7 +1511,7 @@ msgid "" "thread without blocking the event loop." msgstr "" -#: ../../library/asyncio-task.rst:1053 +#: ../../library/asyncio-task.rst:1066 msgid "" "Due to the :term:`GIL`, ``asyncio.to_thread()`` can typically only be used " "to make IO-bound functions non-blocking. However, for extension modules that " @@ -1504,17 +1519,17 @@ msgid "" "``asyncio.to_thread()`` can also be used for CPU-bound functions." msgstr "" -#: ../../library/asyncio-task.rst:1062 +#: ../../library/asyncio-task.rst:1075 msgid "Scheduling From Other Threads" msgstr "外部スレッドからのスケジュール" -#: ../../library/asyncio-task.rst:1066 +#: ../../library/asyncio-task.rst:1079 msgid "Submit a coroutine to the given event loop. Thread-safe." msgstr "" "与えられたイベントループにコルーチンを送ります。\n" "この処理は、スレッドセーフです。" -#: ../../library/asyncio-task.rst:1068 +#: ../../library/asyncio-task.rst:1081 msgid "" "Return a :class:`concurrent.futures.Future` to wait for the result from " "another OS thread." @@ -1522,7 +1537,7 @@ msgstr "" "他の OS スレッドから結果を待つための :class:`concurrent.futures.Future` を返" "します。" -#: ../../library/asyncio-task.rst:1071 +#: ../../library/asyncio-task.rst:1084 msgid "" "This function is meant to be called from a different OS thread than the one " "where the event loop is running. Example::" @@ -1531,7 +1546,7 @@ msgstr "" "び出すためのものです。\n" "例えば次のように使います::" -#: ../../library/asyncio-task.rst:1074 +#: ../../library/asyncio-task.rst:1087 msgid "" "def in_thread(loop: asyncio.AbstractEventLoop) -> None:\n" " # Run some blocking IO\n" @@ -1555,11 +1570,11 @@ msgid "" " await asyncio.to_thread(in_thread, loop)" msgstr "" -#: ../../library/asyncio-task.rst:1094 +#: ../../library/asyncio-task.rst:1107 msgid "It's also possible to run the other way around. Example::" msgstr "" -#: ../../library/asyncio-task.rst:1096 +#: ../../library/asyncio-task.rst:1109 msgid "" "@contextlib.contextmanager\n" "def loop_in_thread() -> Generator[asyncio.AbstractEventLoop]:\n" @@ -1595,7 +1610,7 @@ msgid "" " assert future.result(timeout=2) == 3" msgstr "" -#: ../../library/asyncio-task.rst:1128 +#: ../../library/asyncio-task.rst:1141 msgid "" "If an exception is raised in the coroutine, the returned Future will be " "notified. It can also be used to cancel the task in the event loop::" @@ -1603,7 +1618,7 @@ msgstr "" "コルーチンから例外が送出された場合、返された Future に通知されます。\n" "これはイベントループの Task をキャンセルするのにも使えます::" -#: ../../library/asyncio-task.rst:1132 +#: ../../library/asyncio-task.rst:1145 msgid "" "try:\n" " result = future.result(timeout)\n" @@ -1616,14 +1631,14 @@ msgid "" " print(f'The coroutine returned: {result!r}')" msgstr "" -#: ../../library/asyncio-task.rst:1142 +#: ../../library/asyncio-task.rst:1155 msgid "" "See the :ref:`concurrency and multithreading ` " "section of the documentation." msgstr "" "このドキュメントの :ref:`asyncio-multithreading` 節を参照してください。" -#: ../../library/asyncio-task.rst:1145 +#: ../../library/asyncio-task.rst:1158 msgid "" "Unlike other asyncio functions this function requires the *loop* argument to " "be passed explicitly." @@ -1631,11 +1646,11 @@ msgstr "" "他の asyncio 関数とは異なり、この関数は明示的に渡される *loop* 引数を必要とし" "ます。" -#: ../../library/asyncio-task.rst:1152 +#: ../../library/asyncio-task.rst:1165 msgid "Introspection" msgstr "イントロスペクション" -#: ../../library/asyncio-task.rst:1157 +#: ../../library/asyncio-task.rst:1170 msgid "" "Return the currently running :class:`Task` instance, or ``None`` if no task " "is running." @@ -1643,7 +1658,7 @@ msgstr "" "現在実行中の :class:`Task` インスタンスを返します。実行中の Task が無い場合" "は ``None`` を返します。" -#: ../../library/asyncio-task.rst:1160 +#: ../../library/asyncio-task.rst:1173 msgid "" "If *loop* is ``None`` :func:`get_running_loop` is used to get the current " "loop." @@ -1651,13 +1666,13 @@ msgstr "" "*loop* が ``None`` の場合、 :func:`get_running_loop` が現在のループを取得する" "のに使われます。" -#: ../../library/asyncio-task.rst:1168 +#: ../../library/asyncio-task.rst:1181 msgid "Return a set of not yet finished :class:`Task` objects run by the loop." msgstr "" "ループで実行された :class:`Task` オブジェクトでまだ完了していないものの集合を" "返します。" -#: ../../library/asyncio-task.rst:1171 +#: ../../library/asyncio-task.rst:1184 msgid "" "If *loop* is ``None``, :func:`get_running_loop` is used for getting current " "loop." @@ -1665,15 +1680,15 @@ msgstr "" "*loop* が ``None`` の場合、 :func:`get_running_loop` は現在のループを取得する" "のに使われます。" -#: ../../library/asyncio-task.rst:1179 +#: ../../library/asyncio-task.rst:1192 msgid "Return ``True`` if *obj* is a coroutine object." msgstr "" -#: ../../library/asyncio-task.rst:1185 +#: ../../library/asyncio-task.rst:1198 msgid "Task Object" msgstr "Task オブジェクト" -#: ../../library/asyncio-task.rst:1189 +#: ../../library/asyncio-task.rst:1202 msgid "" "A :class:`Future-like ` object that runs a Python :ref:`coroutine " "`. Not thread-safe." @@ -1682,7 +1697,7 @@ msgstr "" "オブジェクトです。\n" "スレッドセーフではありません。" -#: ../../library/asyncio-task.rst:1192 +#: ../../library/asyncio-task.rst:1205 msgid "" "Tasks are used to run coroutines in event loops. If a coroutine awaits on a " "Future, the Task suspends the execution of the coroutine and waits for the " @@ -1694,7 +1709,7 @@ msgstr "" "止させ、 Future の完了を待ちます。\n" "Future が *完了* したら、 Task が内包しているコルーチンの実行を再開します。" -#: ../../library/asyncio-task.rst:1198 +#: ../../library/asyncio-task.rst:1211 msgid "" "Event loops use cooperative scheduling: an event loop runs one Task at a " "time. While a Task awaits for the completion of a Future, the event loop " @@ -1705,7 +1720,7 @@ msgstr "" "Task が Future の完了を待っているときは、イベントループは他の Task やコール" "バックを動作させるか、 IO 処理を実行します。" -#: ../../library/asyncio-task.rst:1203 +#: ../../library/asyncio-task.rst:1216 msgid "" "Use the high-level :func:`asyncio.create_task` function to create Tasks, or " "the low-level :meth:`loop.create_task` or :func:`ensure_future` functions. " @@ -1716,7 +1731,7 @@ msgstr "" "ださい。\n" "手作業での Task の実装は推奨されません。" -#: ../../library/asyncio-task.rst:1208 +#: ../../library/asyncio-task.rst:1221 msgid "" "To cancel a running Task use the :meth:`cancel` method. Calling it will " "cause the Task to throw a :exc:`CancelledError` exception into the wrapped " @@ -1728,7 +1743,7 @@ msgstr "" "`CancelledError` 例外を送出します。キャンセルの際にコルーチンが Future オブ" "ジェクトを待っていた場合、その Future オブジェクトはキャンセルされます。" -#: ../../library/asyncio-task.rst:1213 +#: ../../library/asyncio-task.rst:1226 msgid "" ":meth:`cancelled` can be used to check if the Task was cancelled. The method " "returns ``True`` if the wrapped coroutine did not suppress the :exc:" @@ -1739,7 +1754,7 @@ msgstr "" "タスクが実際にキャンセルされている場合に、このメソッドは ``True`` を変えま" "す。" -#: ../../library/asyncio-task.rst:1218 +#: ../../library/asyncio-task.rst:1231 msgid "" ":class:`asyncio.Task` inherits from :class:`Future` all of its APIs except :" "meth:`Future.set_result` and :meth:`Future.set_exception`." @@ -1747,7 +1762,7 @@ msgstr "" ":class:`asyncio.Task` は、:meth:`Future.set_result` と :meth:`Future." "set_exception` を除いて、:class:`Future` の API をすべて継承しています。" -#: ../../library/asyncio-task.rst:1222 +#: ../../library/asyncio-task.rst:1235 msgid "" "An optional keyword-only *context* argument allows specifying a custom :" "class:`contextvars.Context` for the *coro* to run in. If no *context* is " @@ -1755,7 +1770,7 @@ msgid "" "in the copied context." msgstr "" -#: ../../library/asyncio-task.rst:1227 +#: ../../library/asyncio-task.rst:1240 msgid "" "An optional keyword-only *eager_start* argument allows eagerly starting the " "execution of the :class:`asyncio.Task` at task creation time. If set to " @@ -1765,25 +1780,25 @@ msgid "" "eagerly and will skip scheduling to the event loop." msgstr "" -#: ../../library/asyncio-task.rst:1234 +#: ../../library/asyncio-task.rst:1247 msgid "Added support for the :mod:`contextvars` module." msgstr ":mod:`contextvars` モジュールのサポートを追加。" -#: ../../library/asyncio-task.rst:1240 +#: ../../library/asyncio-task.rst:1253 msgid "" "Deprecation warning is emitted if *loop* is not specified and there is no " "running event loop." msgstr "" -#: ../../library/asyncio-task.rst:1247 +#: ../../library/asyncio-task.rst:1260 msgid "Added the *eager_start* parameter." msgstr "" -#: ../../library/asyncio-task.rst:1252 +#: ../../library/asyncio-task.rst:1265 msgid "Return ``True`` if the Task is *done*." msgstr "Task が *完了* しているなら ``True`` を返します。" -#: ../../library/asyncio-task.rst:1254 +#: ../../library/asyncio-task.rst:1267 msgid "" "A Task is *done* when the wrapped coroutine either returned a value, raised " "an exception, or the Task was cancelled." @@ -1791,11 +1806,11 @@ msgstr "" "Task がラップしているコルーチンが値を返すか、例外を送出するか、または Task が" "キャンセルされたとき、 Task は *完了* します。" -#: ../../library/asyncio-task.rst:1259 +#: ../../library/asyncio-task.rst:1272 msgid "Return the result of the Task." msgstr "Task の結果を返します。" -#: ../../library/asyncio-task.rst:1261 +#: ../../library/asyncio-task.rst:1274 msgid "" "If the Task is *done*, the result of the wrapped coroutine is returned (or " "if the coroutine raised an exception, that exception is re-raised.)" @@ -1803,7 +1818,7 @@ msgstr "" "Task が *完了* している場合、ラップしているコルーチンの結果が返されます (コ" "ルーチンが例外を送出された場合、その例外が例外が再送出されます)" -#: ../../library/asyncio-task.rst:1265 ../../library/asyncio-task.rst:1279 +#: ../../library/asyncio-task.rst:1278 ../../library/asyncio-task.rst:1292 msgid "" "If the Task has been *cancelled*, this method raises a :exc:`CancelledError` " "exception." @@ -1811,17 +1826,17 @@ msgstr "" "Task が *キャンセル* されている場合、このメソッドは :exc:`CancelledError` 例" "外を送出します。" -#: ../../library/asyncio-task.rst:1268 +#: ../../library/asyncio-task.rst:1281 msgid "" "If the Task's result isn't yet available, this method raises an :exc:" "`InvalidStateError` exception." msgstr "" -#: ../../library/asyncio-task.rst:1273 +#: ../../library/asyncio-task.rst:1286 msgid "Return the exception of the Task." msgstr "Task の例外を返します。" -#: ../../library/asyncio-task.rst:1275 +#: ../../library/asyncio-task.rst:1288 msgid "" "If the wrapped coroutine raised an exception that exception is returned. If " "the wrapped coroutine returned normally this method returns ``None``." @@ -1829,7 +1844,7 @@ msgstr "" "ラップされたコルーチンが例外を送出した場合、その例外が返されます。ラップされ" "たコルーチンが正常終了した場合、このメソッドは ``None`` を返します。" -#: ../../library/asyncio-task.rst:1282 +#: ../../library/asyncio-task.rst:1295 msgid "" "If the Task isn't *done* yet, this method raises an :exc:`InvalidStateError` " "exception." @@ -1837,26 +1852,26 @@ msgstr "" "Task がまだ *完了* していない場合、このメソッドは :exc:`InvalidStateError` 例" "外を送出します。" -#: ../../library/asyncio-task.rst:1287 +#: ../../library/asyncio-task.rst:1300 msgid "Add a callback to be run when the Task is *done*." msgstr "Task が *完了* したときに実行されるコールバックを追加します。" -#: ../../library/asyncio-task.rst:1289 ../../library/asyncio-task.rst:1298 +#: ../../library/asyncio-task.rst:1302 ../../library/asyncio-task.rst:1311 msgid "This method should only be used in low-level callback-based code." msgstr "このメソッドは低水準のコールバックベースのコードでのみ使うべきです。" -#: ../../library/asyncio-task.rst:1291 +#: ../../library/asyncio-task.rst:1304 msgid "" "See the documentation of :meth:`Future.add_done_callback` for more details." msgstr "" "詳細については :meth:`Future.add_done_callback` のドキュメントを参照してくだ" "さい。" -#: ../../library/asyncio-task.rst:1296 +#: ../../library/asyncio-task.rst:1309 msgid "Remove *callback* from the callbacks list." msgstr "コールバックリストから *callback* を削除します。" -#: ../../library/asyncio-task.rst:1300 +#: ../../library/asyncio-task.rst:1313 msgid "" "See the documentation of :meth:`Future.remove_done_callback` for more " "details." @@ -1864,11 +1879,11 @@ msgstr "" "詳細については :meth:`Future.remove_done_callback` のドキュメントを参照してく" "ださい。" -#: ../../library/asyncio-task.rst:1305 +#: ../../library/asyncio-task.rst:1318 msgid "Return the list of stack frames for this Task." msgstr "このタスクのスタックフレームのリストを返します。" -#: ../../library/asyncio-task.rst:1307 +#: ../../library/asyncio-task.rst:1320 msgid "" "If the wrapped coroutine is not done, this returns the stack where it is " "suspended. If the coroutine has completed successfully or was cancelled, " @@ -1880,16 +1895,16 @@ msgstr "" "トを返します。コルーチンが例外で終了した場合はトレースバックフレームのリスト" "を返します。" -#: ../../library/asyncio-task.rst:1313 +#: ../../library/asyncio-task.rst:1326 msgid "The frames are always ordered from oldest to newest." msgstr "フレームは常に古いものから新しい物へ並んでいます。" -#: ../../library/asyncio-task.rst:1315 +#: ../../library/asyncio-task.rst:1328 msgid "Only one stack frame is returned for a suspended coroutine." msgstr "" "サスペンドされているコルーチンの場合スタックフレームが 1 個だけ返されます。" -#: ../../library/asyncio-task.rst:1317 +#: ../../library/asyncio-task.rst:1330 msgid "" "The optional *limit* argument sets the maximum number of frames to return; " "by default all available frames are returned. The ordering of the returned " @@ -1903,11 +1918,11 @@ msgstr "" "だリストが返されますが、トレースバックでは古い順に並んだリストが返されます" "(これは traceback モジュールの振る舞いと一致します)。" -#: ../../library/asyncio-task.rst:1326 +#: ../../library/asyncio-task.rst:1339 msgid "Print the stack or traceback for this Task." msgstr "このタスクのスタックまたはトレースバックを出力します。" -#: ../../library/asyncio-task.rst:1328 +#: ../../library/asyncio-task.rst:1341 msgid "" "This produces output similar to that of the traceback module for the frames " "retrieved by :meth:`get_stack`." @@ -1915,40 +1930,40 @@ msgstr "" "このメソッドは :meth:`get_stack` によって取得されるフレームに対し、 " "traceback モジュールと同じような出力を生成します。" -#: ../../library/asyncio-task.rst:1331 +#: ../../library/asyncio-task.rst:1344 msgid "The *limit* argument is passed to :meth:`get_stack` directly." msgstr "引数 *limit* は :meth:`get_stack` にそのまま渡されます。" -#: ../../library/asyncio-task.rst:1333 +#: ../../library/asyncio-task.rst:1346 msgid "" "The *file* argument is an I/O stream to which the output is written; by " "default output is written to :data:`sys.stdout`." msgstr "" -#: ../../library/asyncio-task.rst:1338 +#: ../../library/asyncio-task.rst:1351 msgid "Return the coroutine object wrapped by the :class:`Task`." msgstr ":class:`Task` がラップしているコルーチンオブジェクトを返します。" -#: ../../library/asyncio-task.rst:1342 +#: ../../library/asyncio-task.rst:1355 msgid "" "This will return ``None`` for Tasks which have already completed eagerly. " "See the :ref:`Eager Task Factory `." msgstr "" -#: ../../library/asyncio-task.rst:1349 +#: ../../library/asyncio-task.rst:1362 msgid "Newly added eager task execution means result may be ``None``." msgstr "" -#: ../../library/asyncio-task.rst:1353 +#: ../../library/asyncio-task.rst:1366 msgid "" "Return the :class:`contextvars.Context` object associated with the task." msgstr "" -#: ../../library/asyncio-task.rst:1360 +#: ../../library/asyncio-task.rst:1373 msgid "Return the name of the Task." msgstr "Task の名前を返します。" -#: ../../library/asyncio-task.rst:1362 +#: ../../library/asyncio-task.rst:1375 msgid "" "If no name has been explicitly assigned to the Task, the default asyncio " "Task implementation generates a default name during instantiation." @@ -1956,17 +1971,17 @@ msgstr "" "Task に対して明示的に名前が設定されていない場合, デフォルトの asyncio Task 実" "装はタスクをインスタンス化する際にデフォルトの名前を生成します。" -#: ../../library/asyncio-task.rst:1370 +#: ../../library/asyncio-task.rst:1383 msgid "Set the name of the Task." msgstr "Task に名前を設定します。" -#: ../../library/asyncio-task.rst:1372 +#: ../../library/asyncio-task.rst:1385 msgid "" "The *value* argument can be any object, which is then converted to a string." msgstr "" "引数 *value* は文字列に変換可能なオブジェクトであれば何でもかまいません。" -#: ../../library/asyncio-task.rst:1375 +#: ../../library/asyncio-task.rst:1388 msgid "" "In the default Task implementation, the name will be visible in the :func:" "`repr` output of a task object." @@ -1974,23 +1989,23 @@ msgstr "" "Task のデフォルト実装では、名前はオブジェクトの :func:`repr` メソッドの出力で" "確認できます。" -#: ../../library/asyncio-task.rst:1382 +#: ../../library/asyncio-task.rst:1395 msgid "Request the Task to be cancelled." msgstr "このタスクに、自身のキャンセルを要求します。" -#: ../../library/asyncio-task.rst:1384 +#: ../../library/asyncio-task.rst:1397 msgid "" "If the Task is already *done* or *cancelled*, return ``False``, otherwise, " "return ``True``." msgstr "" -#: ../../library/asyncio-task.rst:1387 +#: ../../library/asyncio-task.rst:1400 msgid "" "The method arranges for a :exc:`CancelledError` exception to be thrown into " "the wrapped coroutine on the next cycle of the event loop." msgstr "" -#: ../../library/asyncio-task.rst:1390 +#: ../../library/asyncio-task.rst:1403 msgid "" "The coroutine then has a chance to clean up or even deny the request by " "suppressing the exception with a :keyword:`try` ... ... ``except " @@ -2002,15 +2017,15 @@ msgid "" "addition to catching the exception." msgstr "" -#: ../../library/asyncio-task.rst:1400 +#: ../../library/asyncio-task.rst:1413 msgid "Added the *msg* parameter." msgstr "" -#: ../../library/asyncio-task.rst:1403 +#: ../../library/asyncio-task.rst:1416 msgid "The ``msg`` parameter is propagated from cancelled task to its awaiter." msgstr "" -#: ../../library/asyncio-task.rst:1408 +#: ../../library/asyncio-task.rst:1421 msgid "" "The following example illustrates how coroutines can intercept the " "cancellation request::" @@ -2018,7 +2033,7 @@ msgstr "" "以下の例は、コルーチンがどのようにしてキャンセルのリクエストを阻止するかを示" "しています::" -#: ../../library/asyncio-task.rst:1411 +#: ../../library/asyncio-task.rst:1424 msgid "" "async def cancel_me():\n" " print('cancel_me(): before sleep')\n" @@ -2055,11 +2070,11 @@ msgid "" "# main(): cancel_me is cancelled now" msgstr "" -#: ../../library/asyncio-task.rst:1447 +#: ../../library/asyncio-task.rst:1460 msgid "Return ``True`` if the Task is *cancelled*." msgstr "Task が *キャンセルされた* 場合に ``True`` を返します。" -#: ../../library/asyncio-task.rst:1449 +#: ../../library/asyncio-task.rst:1462 msgid "" "The Task is *cancelled* when the cancellation was requested with :meth:" "`cancel` and the wrapped coroutine propagated the :exc:`CancelledError` " @@ -2069,21 +2084,21 @@ msgstr "" "ているコルーチンが内部で送出された :exc:`CancelledError` 例外を伝達したと" "き、 Task は実際に *キャンセル* されます。" -#: ../../library/asyncio-task.rst:1455 +#: ../../library/asyncio-task.rst:1468 msgid "Decrement the count of cancellation requests to this Task." msgstr "" -#: ../../library/asyncio-task.rst:1457 +#: ../../library/asyncio-task.rst:1470 msgid "Returns the remaining number of cancellation requests." msgstr "" -#: ../../library/asyncio-task.rst:1459 +#: ../../library/asyncio-task.rst:1472 msgid "" "Note that once execution of a cancelled task completed, further calls to :" "meth:`uncancel` are ineffective." msgstr "" -#: ../../library/asyncio-task.rst:1464 +#: ../../library/asyncio-task.rst:1477 msgid "" "This method is used by asyncio's internals and isn't expected to be used by " "end-user code. In particular, if a Task gets successfully uncancelled, this " @@ -2092,7 +2107,7 @@ msgid "" "respective structured block. For example::" msgstr "" -#: ../../library/asyncio-task.rst:1471 +#: ../../library/asyncio-task.rst:1484 msgid "" "async def make_request_with_timeout():\n" " try:\n" @@ -2106,7 +2121,7 @@ msgid "" " await unrelated_code()" msgstr "" -#: ../../library/asyncio-task.rst:1482 +#: ../../library/asyncio-task.rst:1495 msgid "" "While the block with ``make_request()`` and ``make_another_request()`` might " "get cancelled due to the timeout, ``unrelated_code()`` should continue " @@ -2115,14 +2130,14 @@ msgid "" "similar fashion." msgstr "" -#: ../../library/asyncio-task.rst:1488 +#: ../../library/asyncio-task.rst:1501 msgid "" "If end-user code is, for some reason, suppressing cancellation by catching :" "exc:`CancelledError`, it needs to call this method to remove the " "cancellation state." msgstr "" -#: ../../library/asyncio-task.rst:1492 +#: ../../library/asyncio-task.rst:1505 msgid "" "When this method decrements the cancellation count to zero, the method " "checks if a previous :meth:`cancel` call had arranged for :exc:" @@ -2131,17 +2146,17 @@ msgid "" "``_must_cancel`` flag)." msgstr "" -#: ../../library/asyncio-task.rst:1498 +#: ../../library/asyncio-task.rst:1511 msgid "Changed to rescind pending cancellation requests upon reaching zero." msgstr "" -#: ../../library/asyncio-task.rst:1503 +#: ../../library/asyncio-task.rst:1516 msgid "" "Return the number of pending cancellation requests to this Task, i.e., the " "number of calls to :meth:`cancel` less the number of :meth:`uncancel` calls." msgstr "" -#: ../../library/asyncio-task.rst:1507 +#: ../../library/asyncio-task.rst:1520 msgid "" "Note that if this number is greater than zero but the Task is still " "executing, :meth:`cancelled` will still return ``False``. This is because " @@ -2150,7 +2165,7 @@ msgid "" "to zero." msgstr "" -#: ../../library/asyncio-task.rst:1513 +#: ../../library/asyncio-task.rst:1526 msgid "" "This method is used by asyncio's internals and isn't expected to be used by " "end-user code. See :meth:`uncancel` for more details." diff --git a/library/asyncio.po b/library/asyncio.po index eb03cc0db..a888ee0f5 100644 --- a/library/asyncio.po +++ b/library/asyncio.po @@ -18,10 +18,10 @@ msgstr "" "Last-Translator: Takanori Suzuki , 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../library/asyncio.rst:91 diff --git a/library/asyncore.po b/library/asyncore.po index 7fa036b93..b6cedef88 100644 --- a/library/asyncore.po +++ b/library/asyncore.po @@ -1,21 +1,21 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2025, Python Software Foundation +# Copyright (C) 2001 Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # #, fuzzy msgid "" msgstr "" -"Project-Id-Version: Python 3.13\n" +"Project-Id-Version: Python 3.14\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2025-05-02 14:19+0000\n" +"POT-Creation-Date: 2025-05-23 14:20+0000\n" "PO-Revision-Date: 2024-11-19 01:02+0000\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../library/asyncore.rst:2 diff --git a/library/atexit.po b/library/atexit.po index 6ea5e25d7..92cdc9955 100644 --- a/library/atexit.po +++ b/library/atexit.po @@ -1,5 +1,5 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2025, Python Software Foundation +# Copyright (C) 2001 Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # @@ -11,17 +11,17 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: Python 3.13\n" +"Project-Id-Version: Python 3.14\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2025-05-02 14:19+0000\n" +"POT-Creation-Date: 2025-05-23 14:20+0000\n" "PO-Revision-Date: 2021-06-28 00:55+0000\n" "Last-Translator: 石井明久, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../library/atexit.rst:2 diff --git a/library/audioop.po b/library/audioop.po index bb045167e..5fb6be590 100644 --- a/library/audioop.po +++ b/library/audioop.po @@ -1,21 +1,21 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2025, Python Software Foundation +# Copyright (C) 2001 Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # #, fuzzy msgid "" msgstr "" -"Project-Id-Version: Python 3.13\n" +"Project-Id-Version: Python 3.14\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2025-05-02 14:19+0000\n" +"POT-Creation-Date: 2025-05-23 14:20+0000\n" "PO-Revision-Date: 2024-11-19 01:02+0000\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../library/audioop.rst:2 diff --git a/library/audit_events.po b/library/audit_events.po index 197babe36..27da7a0c9 100644 --- a/library/audit_events.po +++ b/library/audit_events.po @@ -18,10 +18,10 @@ msgstr "" "Last-Translator: 石井明久, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../library/audit_events.rst:6 diff --git a/library/base64.po b/library/base64.po index cc785cf4f..70b60449d 100644 --- a/library/base64.po +++ b/library/base64.po @@ -1,10 +1,9 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2025, Python Software Foundation +# Copyright (C) 2001 Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # # Translators: -# souma987, 2022 # Inada Naoki , 2023 # Nozomu Kaneko , 2023 # tomo, 2023 @@ -14,17 +13,17 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: Python 3.13\n" +"Project-Id-Version: Python 3.14\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2025-05-02 14:19+0000\n" +"POT-Creation-Date: 2025-05-23 14:20+0000\n" "PO-Revision-Date: 2021-06-28 00:55+0000\n" "Last-Translator: 石井明久, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../library/base64.rst:2 @@ -38,30 +37,14 @@ msgstr "**ソースコード:** :source:`Lib/base64.py`" #: ../../library/base64.rst:16 msgid "" "This module provides functions for encoding binary data to printable ASCII " -"characters and decoding such encodings back to binary data. It provides " -"encoding and decoding functions for the encodings specified in :rfc:`4648`, " -"which defines the Base16, Base32, and Base64 algorithms, and for the de-" -"facto standard Ascii85 and Base85 encodings." +"characters and decoding such encodings back to binary data. This includes " +"the :ref:`encodings specified in ` :rfc:`4648` (Base64, " +"Base32 and Base16) and the non-standard :ref:`Base85 encodings `." msgstr "" -"このモジュールは、バイナリデータを印刷可能なASCII文字列にエンコードして、また" -"逆にデコードするための関数を提供しています。:rfc:`4648` に定義されている " -"Base16、Base32、 Base64 に加えて事実上の標準となっている Ascii85 と Base 85 " -"をサポートしています。" #: ../../library/base64.rst:22 msgid "" -"The :rfc:`4648` encodings are suitable for encoding binary data so that it " -"can be safely sent by email, used as parts of URLs, or included as part of " -"an HTTP POST request. The encoding algorithm is not the same as the :" -"program:`uuencode` program." -msgstr "" -":rfc:`4648` エンコーディングは、email で安全に送信したり、 URL の一部として" -"使ったり、あるいは HTTP POST リクエストの一部に含めるために用いるのに適してい" -"ます。このエンコーディングで使われているアルゴリズムは :program:`uuencode` プ" -"ログラムで用いられているものとは同じではありません。" - -#: ../../library/base64.rst:27 -msgid "" "There are two interfaces provided by this module. The modern interface " "supports encoding :term:`bytes-like objects ` to ASCII :" "class:`bytes`, and decoding :term:`bytes-like objects ` " @@ -74,22 +57,17 @@ msgstr "" "ることができます。:rfc:`4648` に定義されている base-64 アルファベット (一般" "の、URL あるいはファイルシステムセーフなもの) の両方が使用できます。" -#: ../../library/base64.rst:33 +#: ../../library/base64.rst:28 msgid "" -"The legacy interface does not support decoding from strings, but it does " -"provide functions for encoding and decoding to and from :term:`file objects " -"`. It only supports the Base64 standard alphabet, and it adds " -"newlines every 76 characters as per :rfc:`2045`. Note that if you are " -"looking for :rfc:`2045` support you probably want to be looking at the :mod:" -"`email` package instead." +"The :ref:`legacy interface ` does not support decoding from " +"strings, but it does provide functions for encoding and decoding to and " +"from :term:`file objects `. It only supports the Base64 " +"standard alphabet, and it adds newlines every 76 characters as per :rfc:" +"`2045`. Note that if you are looking for :rfc:`2045` support you probably " +"want to be looking at the :mod:`email` package instead." msgstr "" -"従来のインターフェースは文字列からのデコードができませんが、:term:`file " -"object` との間のエンコードとデコードが可能な関数を提供します。これは標準の " -"base64 アルファベットのみをサポートし、:rfc:`2045` の規定にあるように、76文字" -"ごとに改行されます。:rfc:`2045` のサポートのためには、代わりに :mod:`email` " -"パッケージを参照する必要があるかもしれません。" -#: ../../library/base64.rst:41 +#: ../../library/base64.rst:36 msgid "" "ASCII-only Unicode strings are now accepted by the decoding functions of the " "modern interface." @@ -97,7 +75,7 @@ msgstr "" "モダンなインターフェイスのデコード関数が ASCII のみの Unicode 文字列を受け付" "けるようになりました。" -#: ../../library/base64.rst:45 +#: ../../library/base64.rst:40 msgid "" "Any :term:`bytes-like objects ` are now accepted by all " "encoding and decoding functions in this module. Ascii85/Base85 support " @@ -107,11 +85,18 @@ msgstr "" "ブジェクト ` を受け取るようになりました。Ascii85/Base85 の" "サポートが追加されました。" -#: ../../library/base64.rst:49 -msgid "The modern interface provides:" -msgstr "モダンなインターフェイスは以下のものを提供します:" +#: ../../library/base64.rst:48 +msgid "RFC 4648 Encodings" +msgstr "" -#: ../../library/base64.rst:53 +#: ../../library/base64.rst:50 +msgid "" +"The :rfc:`4648` encodings are suitable for encoding binary data so that it " +"can be safely sent by email, used as parts of URLs, or included as part of " +"an HTTP POST request." +msgstr "" + +#: ../../library/base64.rst:56 msgid "" "Encode the :term:`bytes-like object` *s* using Base64 and return the " "encoded :class:`bytes`." @@ -119,7 +104,7 @@ msgstr "" "Base64 を使って :term:`bytes-like object` の *s* をエンコードし、エンコードさ" "れた :class:`bytes` を返します。" -#: ../../library/base64.rst:56 +#: ../../library/base64.rst:59 msgid "" "Optional *altchars* must be a :term:`bytes-like object` of length 2 which " "specifies an alternative alphabet for the ``+`` and ``/`` characters. This " @@ -133,7 +118,7 @@ msgstr "" "成できます。デフォルトは ``None`` で、標準の Base64 アルファベットが使われま" "す。" -#: ../../library/base64.rst:61 +#: ../../library/base64.rst:64 msgid "" "May assert or raise a :exc:`ValueError` if the length of *altchars* is not " "2. Raises a :exc:`TypeError` if *altchars* is not a :term:`bytes-like " @@ -143,7 +128,7 @@ msgstr "" "す。 *altchars* が :term:`bytes-like object` でない場合は、 :exc:`TypeError` " "が発生します。" -#: ../../library/base64.rst:67 +#: ../../library/base64.rst:70 msgid "" "Decode the Base64 encoded :term:`bytes-like object` or ASCII string *s* and " "return the decoded :class:`bytes`." @@ -151,7 +136,7 @@ msgstr "" "Base64 エンコードされた :term:`bytes-like object` または ASCII 文字列 *s* を" "デコードし、デコードされた :class:`bytes` を返します。" -#: ../../library/base64.rst:70 +#: ../../library/base64.rst:73 msgid "" "Optional *altchars* must be a :term:`bytes-like object` or ASCII string of " "length 2 which specifies the alternative alphabet used instead of the ``+`` " @@ -161,14 +146,14 @@ msgstr "" "ASCII 文字列で、``+`` と ``/`` の代わりに使われる代替アルファベットを指定しま" "す。" -#: ../../library/base64.rst:74 +#: ../../library/base64.rst:77 msgid "" "A :exc:`binascii.Error` exception is raised if *s* is incorrectly padded." msgstr "" "*s* が正しくパディングされていない場合は :exc:`binascii.Error` 例外を発生させ" "ます。" -#: ../../library/base64.rst:77 +#: ../../library/base64.rst:80 msgid "" "If *validate* is ``False`` (the default), characters that are neither in the " "normal base-64 alphabet nor the alternative alphabet are discarded prior to " @@ -180,7 +165,7 @@ msgstr "" "``True`` の場合、入力に base64 アルファベット以外の文字があると :exc:" "`binascii.Error` を発生させます。" -#: ../../library/base64.rst:83 +#: ../../library/base64.rst:86 msgid "" "For more information about the strict base64 check, see :func:`binascii." "a2b_base64`" @@ -188,12 +173,12 @@ msgstr "" "厳密な base64 チェックのについての詳細は :func:`binascii.a2b_base64` を参照し" "てください" -#: ../../library/base64.rst:85 +#: ../../library/base64.rst:88 msgid "" "May assert or raise a :exc:`ValueError` if the length of *altchars* is not 2." msgstr "" -#: ../../library/base64.rst:89 +#: ../../library/base64.rst:92 msgid "" "Encode :term:`bytes-like object` *s* using the standard Base64 alphabet and " "return the encoded :class:`bytes`." @@ -201,7 +186,7 @@ msgstr "" "標準の base64 アルファベットを使用して :term:`bytes-like object` の *s* をエ" "ンコードし、エンコードされた :class:`bytes` を返します。" -#: ../../library/base64.rst:95 +#: ../../library/base64.rst:98 msgid "" "Decode :term:`bytes-like object` or ASCII string *s* using the standard " "Base64 alphabet and return the decoded :class:`bytes`." @@ -209,7 +194,7 @@ msgstr "" "標準の base64 アルファベットを使用した :term:`bytes-like object` または " "ASCII 文字列 *s* をデコードし、デコードされた :class:`bytes` を返します。" -#: ../../library/base64.rst:101 +#: ../../library/base64.rst:104 msgid "" "Encode :term:`bytes-like object` *s* using the URL- and filesystem-safe " "alphabet, which substitutes ``-`` instead of ``+`` and ``_`` instead of ``/" @@ -221,7 +206,7 @@ msgstr "" "base64 アルファベットに比べて、``+`` の替わりに ``-`` を、``/`` の替わりに " "``_`` を利用します。結果は ``=`` を含みます。 " -#: ../../library/base64.rst:110 +#: ../../library/base64.rst:113 msgid "" "Decode :term:`bytes-like object` or ASCII string *s* using the URL- and " "filesystem-safe alphabet, which substitutes ``-`` instead of ``+`` and ``_`` " @@ -233,7 +218,7 @@ msgstr "" "返します。標準 base64 アルファベットに比べて、``+`` の替わりに ``-`` を、``/" "`` の替わりに ``_`` を置換します。" -#: ../../library/base64.rst:119 +#: ../../library/base64.rst:122 msgid "" "Encode the :term:`bytes-like object` *s* using Base32 and return the " "encoded :class:`bytes`." @@ -241,7 +226,7 @@ msgstr "" "Base32 を使って :term:`bytes-like object` の *s* をエンコードし、エンコードさ" "れた :class:`bytes` を返します。" -#: ../../library/base64.rst:125 +#: ../../library/base64.rst:128 msgid "" "Decode the Base32 encoded :term:`bytes-like object` or ASCII string *s* and " "return the decoded :class:`bytes`." @@ -249,7 +234,7 @@ msgstr "" "Base32 エンコードされた :term:`bytes-like object` または ASCII 文字列 *s* を" "デコードし、デコードされた :class:`bytes` を返します。" -#: ../../library/base64.rst:128 ../../library/base64.rst:176 +#: ../../library/base64.rst:131 ../../library/base64.rst:179 msgid "" "Optional *casefold* is a flag specifying whether a lowercase alphabet is " "acceptable as input. For security purposes, the default is ``False``." @@ -258,7 +243,7 @@ msgstr "" "します。セキュリティ上の理由により、デフォルトではこれは ``False`` になってい" "ます。" -#: ../../library/base64.rst:132 +#: ../../library/base64.rst:135 msgid "" ":rfc:`4648` allows for optional mapping of the digit 0 (zero) to the letter " "O (oh), and for optional mapping of the digit 1 (one) to either the letter I " @@ -276,7 +261,7 @@ msgstr "" "ティ上の理由により、これはデフォルトでは ``None`` になっているため、 0 およ" "び 1 は入力として許可されていません。" -#: ../../library/base64.rst:139 ../../library/base64.rst:180 +#: ../../library/base64.rst:142 ../../library/base64.rst:183 msgid "" "A :exc:`binascii.Error` is raised if *s* is incorrectly padded or if there " "are non-alphabet characters present in the input." @@ -284,19 +269,19 @@ msgstr "" "*s* が正しくパディングされていない場合や、入力にアルファベットでない文字が含" "まれていた場合に、 :exc:`binascii.Error` 例外を発生させます。" -#: ../../library/base64.rst:146 +#: ../../library/base64.rst:149 msgid "" "Similar to :func:`b32encode` but uses the Extended Hex Alphabet, as defined " "in :rfc:`4648`." msgstr "" -#: ../../library/base64.rst:154 +#: ../../library/base64.rst:157 msgid "" "Similar to :func:`b32decode` but uses the Extended Hex Alphabet, as defined " "in :rfc:`4648`." msgstr "" -#: ../../library/base64.rst:157 +#: ../../library/base64.rst:160 msgid "" "This version does not allow the digit 0 (zero) to the letter O (oh) and " "digit 1 (one) to either the letter I (eye) or letter L (el) mappings, all " @@ -304,7 +289,7 @@ msgid "" "interchangeable." msgstr "" -#: ../../library/base64.rst:167 +#: ../../library/base64.rst:170 msgid "" "Encode the :term:`bytes-like object` *s* using Base16 and return the " "encoded :class:`bytes`." @@ -312,7 +297,7 @@ msgstr "" "Base16 を使って :term:`bytes-like object` の *s* をエンコードし、エンコードさ" "れた :class:`bytes` を返します。" -#: ../../library/base64.rst:173 +#: ../../library/base64.rst:176 msgid "" "Decode the Base16 encoded :term:`bytes-like object` or ASCII string *s* and " "return the decoded :class:`bytes`." @@ -320,7 +305,51 @@ msgstr "" "Base16 エンコードされた :term:`bytes-like object` または ASCII 文字列 *s* を" "デコードし、デコードされた :class:`bytes` を返します。" -#: ../../library/base64.rst:187 +#: ../../library/base64.rst:190 +msgid "Base85 Encodings" +msgstr "" + +#: ../../library/base64.rst:192 +msgid "" +"Base85 encoding is not formally specified but rather a de facto standard, " +"thus different systems perform the encoding differently." +msgstr "" + +#: ../../library/base64.rst:195 +msgid "" +"The :func:`a85encode` and :func:`b85encode` functions in this module are two " +"implementations of the de facto standard. You should call the function with " +"the Base85 implementation used by the software you intend to work with." +msgstr "" + +#: ../../library/base64.rst:199 +msgid "" +"The two functions present in this module differ in how they handle the " +"following:" +msgstr "" + +#: ../../library/base64.rst:201 +msgid "Whether to include enclosing ``<~`` and ``~>`` markers" +msgstr "" + +#: ../../library/base64.rst:202 +msgid "Whether to include newline characters" +msgstr "" + +#: ../../library/base64.rst:203 +msgid "The set of ASCII characters used for encoding" +msgstr "" + +#: ../../library/base64.rst:204 +msgid "Handling of null bytes" +msgstr "" + +#: ../../library/base64.rst:206 +msgid "" +"Refer to the documentation of the individual functions for more information." +msgstr "" + +#: ../../library/base64.rst:210 msgid "" "Encode the :term:`bytes-like object` *b* using Ascii85 and return the " "encoded :class:`bytes`." @@ -328,7 +357,7 @@ msgstr "" "Ascii85 を使って :term:`bytes-like object` の *b* をエンコードし、エンコード" "された :class:`bytes` を返します。 " -#: ../../library/base64.rst:190 +#: ../../library/base64.rst:213 msgid "" "*foldspaces* is an optional flag that uses the special short sequence 'y' " "instead of 4 consecutive spaces (ASCII 0x20) as supported by 'btoa'. This " @@ -338,14 +367,14 @@ msgstr "" "ポートされている短い特殊文字 'y' に置き換えます。この機能は \"標準\" Ascii85 " "ではサポートされていません。" -#: ../../library/base64.rst:194 +#: ../../library/base64.rst:217 msgid "" "*wrapcol* controls whether the output should have newline (``b'\\n'``) " "characters added to it. If this is non-zero, each output line will be at " "most this many characters long, excluding the trailing newline." msgstr "" -#: ../../library/base64.rst:198 +#: ../../library/base64.rst:221 msgid "" "*pad* controls whether the input is padded to a multiple of 4 before " "encoding. Note that the ``btoa`` implementation always pads." @@ -353,7 +382,7 @@ msgstr "" "*pad* を指定すると、エンコード前に入力が 4 の倍数になるようにパディングされま" "す。なお、 ``btoa`` の実装は常にパディングします。" -#: ../../library/base64.rst:201 +#: ../../library/base64.rst:224 msgid "" "*adobe* controls whether the encoded byte sequence is framed with ``<~`` and " "``~>``, which is used by the Adobe implementation." @@ -361,7 +390,7 @@ msgstr "" "*adobe* を指定すると、エンコードしたバイトシーケンスを ``<~`` と ``~>`` で囲" "みます。これは Adobe の実装で使われています。" -#: ../../library/base64.rst:209 +#: ../../library/base64.rst:232 msgid "" "Decode the Ascii85 encoded :term:`bytes-like object` or ASCII string *b* and " "return the decoded :class:`bytes`." @@ -369,7 +398,7 @@ msgstr "" "Ascii85 エンコードされた :term:`bytes-like object` または ASCII 文字列 *b* を" "デコードし、デコードされた :class:`bytes` を返します。 " -#: ../../library/base64.rst:212 +#: ../../library/base64.rst:235 msgid "" "*foldspaces* is a flag that specifies whether the 'y' short sequence should " "be accepted as shorthand for 4 consecutive spaces (ASCII 0x20). This feature " @@ -379,7 +408,7 @@ msgstr "" "0x20)と解釈するかどうかを制御します。この機能は \"標準\" Ascii85 ではサポート" "されていません。" -#: ../../library/base64.rst:216 +#: ../../library/base64.rst:239 msgid "" "*adobe* controls whether the input sequence is in Adobe Ascii85 format (i.e. " "is framed with <~ and ~>)." @@ -387,7 +416,7 @@ msgstr "" "*adobe* で、入力シーケンスが Adobe Ascii85 (つまり ``<~`` と ``~>`` で囲まれ" "ている)かどうかを伝えます。" -#: ../../library/base64.rst:219 +#: ../../library/base64.rst:242 msgid "" "*ignorechars* should be a :term:`bytes-like object` or ASCII string " "containing characters to ignore from the input. This should only contain " @@ -398,7 +427,7 @@ msgstr "" "`bytes-like object` または ASCII 文字列を指定してください。これは空白文字だけ" "で構成されているべきです。デフォルトは ASCII における空白文字全てです。" -#: ../../library/base64.rst:229 +#: ../../library/base64.rst:252 msgid "" "Encode the :term:`bytes-like object` *b* using base85 (as used in e.g. git-" "style binary diffs) and return the encoded :class:`bytes`." @@ -407,7 +436,7 @@ msgstr "" "て :term:`bytes-like object` の *b* をエンコードし、エンコードされた :class:" "`bytes` を返します。" -#: ../../library/base64.rst:232 +#: ../../library/base64.rst:255 msgid "" "If *pad* is true, the input is padded with ``b'\\0'`` so its length is a " "multiple of 4 bytes before encoding." @@ -415,7 +444,7 @@ msgstr "" "*pad* が真ならば、エンコードに先立って、バイト数が 4 の倍数となるように入力" "が ``b'\\0'`` でパディングされます。" -#: ../../library/base64.rst:240 +#: ../../library/base64.rst:263 msgid "" "Decode the base85-encoded :term:`bytes-like object` or ASCII string *b* and " "return the decoded :class:`bytes`. Padding is implicitly removed, if " @@ -425,25 +454,25 @@ msgstr "" "*b* をデコードし、デコードされた :class:`bytes` を返します。パディングは、も" "しあれば、暗黙に削除されます。" -#: ../../library/base64.rst:249 +#: ../../library/base64.rst:272 msgid "" "Encode the :term:`bytes-like object` *s* using Z85 (as used in ZeroMQ) and " "return the encoded :class:`bytes`. See `Z85 specification `_ for more information." msgstr "" -#: ../../library/base64.rst:258 +#: ../../library/base64.rst:281 msgid "" "Decode the Z85-encoded :term:`bytes-like object` or ASCII string *s* and " "return the decoded :class:`bytes`. See `Z85 specification `_ for more information." msgstr "" -#: ../../library/base64.rst:265 -msgid "The legacy interface:" -msgstr "レガシーなインターフェイスは以下のものを提供します:" +#: ../../library/base64.rst:291 +msgid "Legacy Interface" +msgstr "" -#: ../../library/base64.rst:269 +#: ../../library/base64.rst:295 msgid "" "Decode the contents of the binary *input* file and write the resulting " "binary data to the *output* file. *input* and *output* must be :term:`file " @@ -455,7 +484,7 @@ msgstr "" "object>` でなければなりません。 *input* は ``input.readline()`` が空バイト列" "を返すまで読まれます。" -#: ../../library/base64.rst:277 +#: ../../library/base64.rst:303 msgid "" "Decode the :term:`bytes-like object` *s*, which must contain one or more " "lines of base64 encoded data, and return the decoded :class:`bytes`." @@ -464,7 +493,7 @@ msgstr "" "返します。 *s* には一行以上の base64 形式でエンコードされたデータが含まれてい" "る必要があります。" -#: ../../library/base64.rst:285 +#: ../../library/base64.rst:311 msgid "" "Encode the contents of the binary *input* file and write the resulting " "base64 encoded data to the *output* file. *input* and *output* must be :term:" @@ -480,7 +509,7 @@ msgstr "" "字(``b'\\n'``)を挿入し、:rfc:`2045` (MIME) の規定にあるように常に出力が新しい" "行で終わることを保証します。" -#: ../../library/base64.rst:295 +#: ../../library/base64.rst:321 msgid "" "Encode the :term:`bytes-like object` *s*, which can contain arbitrary binary " "data, and return :class:`bytes` containing the base64-encoded data, with " @@ -492,32 +521,32 @@ msgstr "" "ごとに新しい行 (``b'\\n'``) が挿入された、base64 形式でエンコードしたデータを" "含む :class:`bytes` を返します。" -#: ../../library/base64.rst:303 +#: ../../library/base64.rst:329 msgid "An example usage of the module:" msgstr "モジュールの使用例:" -#: ../../library/base64.rst:316 +#: ../../library/base64.rst:342 msgid "Security Considerations" msgstr "セキュリティで考慮すべき点" -#: ../../library/base64.rst:318 +#: ../../library/base64.rst:344 msgid "" "A new security considerations section was added to :rfc:`4648` (section 12); " "it's recommended to review the security section for any code deployed to " "production." msgstr "" -#: ../../library/base64.rst:323 +#: ../../library/base64.rst:349 msgid "Module :mod:`binascii`" msgstr "モジュール :mod:`binascii`" -#: ../../library/base64.rst:324 +#: ../../library/base64.rst:350 msgid "" "Support module containing ASCII-to-binary and binary-to-ASCII conversions." msgstr "" "ASCII からバイナリへ、バイナリから ASCII への変換をサポートするモジュール。" -#: ../../library/base64.rst:326 +#: ../../library/base64.rst:352 msgid "" ":rfc:`1521` - MIME (Multipurpose Internet Mail Extensions) Part One: " "Mechanisms for Specifying and Describing the Format of Internet Message " @@ -527,7 +556,7 @@ msgstr "" "Mechanisms for Specifying and Describing the Format of Internet Message " "Bodies" -#: ../../library/base64.rst:327 +#: ../../library/base64.rst:353 msgid "" "Section 5.2, \"Base64 Content-Transfer-Encoding,\" provides the definition " "of the base64 encoding." diff --git a/library/bdb.po b/library/bdb.po index 398042b53..cadd62fdf 100644 --- a/library/bdb.po +++ b/library/bdb.po @@ -19,10 +19,10 @@ msgstr "" "Last-Translator: 石井明久, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../library/bdb.rst:2 diff --git a/library/binary.po b/library/binary.po index abfc154ff..ad9d744c6 100644 --- a/library/binary.po +++ b/library/binary.po @@ -16,10 +16,10 @@ msgstr "" "Last-Translator: tomo, 2021\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../library/binary.rst:5 diff --git a/library/binascii.po b/library/binascii.po index 577b445ec..a001c4080 100644 --- a/library/binascii.po +++ b/library/binascii.po @@ -1,5 +1,5 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2025, Python Software Foundation +# Copyright (C) 2001 Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # @@ -14,17 +14,17 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: Python 3.13\n" +"Project-Id-Version: Python 3.14\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2025-05-02 14:19+0000\n" +"POT-Creation-Date: 2025-05-23 14:20+0000\n" "PO-Revision-Date: 2021-06-28 00:56+0000\n" "Last-Translator: tomo, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../library/binascii.rst:2 diff --git a/library/binhex.po b/library/binhex.po index 31a9b6d2e..938f7cb18 100644 --- a/library/binhex.po +++ b/library/binhex.po @@ -17,10 +17,10 @@ msgstr "" "Last-Translator: mollinaca, 2021\n" "Language-Team: Japanese (https://www.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../library/binhex.rst:2 diff --git a/library/bisect.po b/library/bisect.po index 409144326..09f9ab14b 100644 --- a/library/bisect.po +++ b/library/bisect.po @@ -1,5 +1,5 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2025, Python Software Foundation +# Copyright (C) 2001 Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # @@ -11,17 +11,17 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: Python 3.13\n" +"Project-Id-Version: Python 3.14\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2025-05-02 14:19+0000\n" +"POT-Creation-Date: 2025-05-23 14:20+0000\n" "PO-Revision-Date: 2021-06-28 00:56+0000\n" "Last-Translator: 石井明久, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../library/bisect.rst:2 diff --git a/library/builtins.po b/library/builtins.po index 91d3f7cad..557fc5f39 100644 --- a/library/builtins.po +++ b/library/builtins.po @@ -1,5 +1,5 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2025, Python Software Foundation +# Copyright (C) 2001 Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # @@ -10,17 +10,17 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: Python 3.13\n" +"Project-Id-Version: Python 3.14\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2025-04-25 14:19+0000\n" +"POT-Creation-Date: 2025-05-16 14:19+0000\n" "PO-Revision-Date: 2021-06-28 00:56+0000\n" "Last-Translator: 石井明久, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../library/builtins.rst:2 diff --git a/library/bz2.po b/library/bz2.po index 34221e2fa..d5e0db198 100644 --- a/library/bz2.po +++ b/library/bz2.po @@ -1,5 +1,5 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2025, Python Software Foundation +# Copyright (C) 2001 Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # @@ -12,17 +12,17 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: Python 3.13\n" +"Project-Id-Version: Python 3.14\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2025-05-02 14:19+0000\n" +"POT-Creation-Date: 2025-05-23 14:20+0000\n" "PO-Revision-Date: 2021-06-28 00:56+0000\n" "Last-Translator: 石井明久, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../library/bz2.rst:2 diff --git a/library/calendar.po b/library/calendar.po index 3051381e8..2e1d31074 100644 --- a/library/calendar.po +++ b/library/calendar.po @@ -21,10 +21,10 @@ msgstr "" "Last-Translator: Takanori Suzuki , 2025\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../library/calendar.rst:2 diff --git a/library/cgi.po b/library/cgi.po index 343bfabb5..0f2eef28c 100644 --- a/library/cgi.po +++ b/library/cgi.po @@ -1,21 +1,21 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2025, Python Software Foundation +# Copyright (C) 2001 Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # #, fuzzy msgid "" msgstr "" -"Project-Id-Version: Python 3.13\n" +"Project-Id-Version: Python 3.14\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2025-05-02 14:19+0000\n" +"POT-Creation-Date: 2025-05-23 14:20+0000\n" "PO-Revision-Date: 2024-11-19 01:02+0000\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../library/cgi.rst:2 diff --git a/library/cgitb.po b/library/cgitb.po index 72345f1a4..40caae466 100644 --- a/library/cgitb.po +++ b/library/cgitb.po @@ -1,21 +1,21 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2025, Python Software Foundation +# Copyright (C) 2001 Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # #, fuzzy msgid "" msgstr "" -"Project-Id-Version: Python 3.13\n" +"Project-Id-Version: Python 3.14\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2025-05-02 14:19+0000\n" +"POT-Creation-Date: 2025-05-23 14:20+0000\n" "PO-Revision-Date: 2024-11-19 01:02+0000\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../library/cgitb.rst:2 diff --git a/library/chunk.po b/library/chunk.po index 3a2c1bae1..4904cf878 100644 --- a/library/chunk.po +++ b/library/chunk.po @@ -1,21 +1,21 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2025, Python Software Foundation +# Copyright (C) 2001 Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # #, fuzzy msgid "" msgstr "" -"Project-Id-Version: Python 3.13\n" +"Project-Id-Version: Python 3.14\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2025-05-02 14:19+0000\n" +"POT-Creation-Date: 2025-05-23 14:20+0000\n" "PO-Revision-Date: 2024-11-19 01:02+0000\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../library/chunk.rst:2 diff --git a/library/cmath.po b/library/cmath.po index 5466b9117..c9037dda6 100644 --- a/library/cmath.po +++ b/library/cmath.po @@ -19,10 +19,10 @@ msgstr "" "Last-Translator: 石井明久, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../library/cmath.rst:2 @@ -585,7 +585,7 @@ msgstr "" #: ../../library/cmath.rst:300 msgid ":pep:`485` -- A function for testing approximate equality" -msgstr ":pep:`485` -- 近似的に等しいことを調べる関数" +msgstr ":pep:`485` -- A function for testing approximate equality" #: ../../library/cmath.rst:304 msgid "Constants" diff --git a/library/cmd.po b/library/cmd.po index c5236ea42..9af723c47 100644 --- a/library/cmd.po +++ b/library/cmd.po @@ -1,5 +1,5 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2025, Python Software Foundation +# Copyright (C) 2001 Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # @@ -12,17 +12,17 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: Python 3.13\n" +"Project-Id-Version: Python 3.14\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2025-05-02 14:19+0000\n" +"POT-Creation-Date: 2025-05-23 14:20+0000\n" "PO-Revision-Date: 2021-06-28 00:56+0000\n" "Last-Translator: 石井明久, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../library/cmd.rst:2 diff --git a/library/cmdline.po b/library/cmdline.po index 8ead94775..d04764520 100644 --- a/library/cmdline.po +++ b/library/cmdline.po @@ -17,10 +17,10 @@ msgstr "" "Last-Translator: 石井明久, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../library/cmdline.rst:5 diff --git a/library/code.po b/library/code.po index a9d64a743..42b73d6ec 100644 --- a/library/code.po +++ b/library/code.po @@ -1,5 +1,5 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2025, Python Software Foundation +# Copyright (C) 2001 Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # @@ -11,17 +11,17 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: Python 3.13\n" +"Project-Id-Version: Python 3.14\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2025-05-02 14:19+0000\n" +"POT-Creation-Date: 2025-05-23 14:20+0000\n" "PO-Revision-Date: 2021-06-28 00:56+0000\n" "Last-Translator: 石井明久, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../library/code.rst:2 @@ -58,7 +58,15 @@ msgstr "" "``'__name__'`` が ``'__console__'`` に設定され、キー ``'__doc__'`` が " "``None`` に設定された新しく作られた辞書です。" -#: ../../library/code.rst:28 +#: ../../library/code.rst:25 +msgid "" +"Note that functions and classes objects created under an :class:`!" +"InteractiveInterpreter` instance will belong to the namespace specified by " +"*locals*. They are only pickleable if *locals* is the namespace of an " +"existing module." +msgstr "" + +#: ../../library/code.rst:34 msgid "" "Closely emulate the behavior of the interactive Python interpreter. This " "class builds on :class:`InteractiveInterpreter` and adds prompting using the " @@ -72,11 +80,11 @@ msgstr "" "*local_exit* が真の場合、コンソールでの ``exit()`` と ``quit()`` は :exc:" "`SystemExit` を送出せず、代わりに呼び出し元のコードに戻ります。" -#: ../../library/code.rst:34 ../../library/code.rst:52 +#: ../../library/code.rst:40 ../../library/code.rst:58 msgid "Added *local_exit* parameter." msgstr "*local_exit* 引数が追加されました。" -#: ../../library/code.rst:39 +#: ../../library/code.rst:45 msgid "" "Convenience function to run a read-eval-print loop. This creates a new " "instance of :class:`InteractiveConsole` and sets *readfunc* to be used as " @@ -99,11 +107,11 @@ msgstr "" "*banner* と *exitmsg* を受け取り実行されます。コンソールオブジェクトは使われ" "た後捨てられます。" -#: ../../library/code.rst:49 +#: ../../library/code.rst:55 msgid "Added *exitmsg* parameter." msgstr "*exitmsg* 引数が追加されました." -#: ../../library/code.rst:57 +#: ../../library/code.rst:63 msgid "" "This function is useful for programs that want to emulate Python's " "interpreter main loop (a.k.a. the read-eval-print loop). The tricky part is " @@ -118,7 +126,7 @@ msgstr "" "うる不完全なコマンドを入力したときを決定することです。この関数は *ほとんど* " "の場合に実際のインタプリタメインループと同じ決定を行います。" -#: ../../library/code.rst:64 +#: ../../library/code.rst:70 msgid "" "*source* is the source string; *filename* is the optional filename from " "which source was read, defaulting to ``''``; and *symbol* is the " @@ -130,7 +138,7 @@ msgstr "" "開始記号で、``'single'`` (デフォルト)または ``'eval'`` か ``'exec'`` にすべき" "です。" -#: ../../library/code.rst:69 +#: ../../library/code.rst:75 msgid "" "Returns a code object (the same as ``compile(source, filename, symbol)``) if " "the command is complete and valid; ``None`` if the command is incomplete; " @@ -144,11 +152,11 @@ msgstr "" "す。または、コマンドが無効なリテラルを含む場合は、 :exc:`OverflowError` もし" "くは :exc:`ValueError` を発生させます。" -#: ../../library/code.rst:79 +#: ../../library/code.rst:85 msgid "Interactive Interpreter Objects" msgstr "対話的なインタプリタオブジェクト" -#: ../../library/code.rst:84 +#: ../../library/code.rst:90 msgid "" "Compile and run some source in the interpreter. Arguments are the same as " "for :func:`compile_command`; the default for *filename* is ``''``, " @@ -159,7 +167,7 @@ msgstr "" "で、 *symbol* は ``'single'`` です。あるいくつかのことが起きる可能性がありま" "す:" -#: ../../library/code.rst:88 +#: ../../library/code.rst:94 msgid "" "The input is incorrect; :func:`compile_command` raised an exception (:exc:" "`SyntaxError` or :exc:`OverflowError`). A syntax traceback will be printed " @@ -171,7 +179,7 @@ msgstr "" "よって、構文トレースバックが表示されるでしょう。 :meth:`runsource` は " "``False`` を返します。" -#: ../../library/code.rst:93 +#: ../../library/code.rst:99 msgid "" "The input is incomplete, and more input is required; :func:`compile_command` " "returned ``None``. :meth:`runsource` returns ``True``." @@ -179,7 +187,7 @@ msgstr "" "入力が完全でなく、さらに入力が必要。 :func:`compile_command` が ``None`` を返" "した場合。 :meth:`runsource` は ``True`` を返します。" -#: ../../library/code.rst:96 +#: ../../library/code.rst:102 msgid "" "The input is complete; :func:`compile_command` returned a code object. The " "code is executed by calling the :meth:`runcode` (which also handles run-time " @@ -190,7 +198,7 @@ msgstr "" "exc:`SystemExit` を除く実行時例外も処理する) :meth:`runcode` を呼び出すことに" "よって、コードは実行されます。 :meth:`runsource` は ``False`` を返します。" -#: ../../library/code.rst:100 +#: ../../library/code.rst:106 msgid "" "The return value can be used to decide whether to use ``sys.ps1`` or ``sys." "ps2`` to prompt the next line." @@ -198,7 +206,7 @@ msgstr "" "戻り値は、次の行のプロンプトに ``sys.ps1`` か ``sys.ps2`` のどちらを使うのか" "判断するために使えます。" -#: ../../library/code.rst:106 +#: ../../library/code.rst:112 msgid "" "Execute a code object. When an exception occurs, :meth:`showtraceback` is " "called to display a traceback. All exceptions are caught except :exc:" @@ -208,7 +216,7 @@ msgstr "" "ために :meth:`showtraceback` が呼び出されます。伝搬することが許されている :" "exc:`SystemExit` を除くすべての例外が捉えられます。" -#: ../../library/code.rst:110 +#: ../../library/code.rst:116 msgid "" "A note about :exc:`KeyboardInterrupt`: this exception may occur elsewhere in " "this code, and may not always be caught. The caller should be prepared to " @@ -218,7 +226,7 @@ msgstr "" "る可能性がありますし、常に捕らえることができるとは限りません。呼び出し側はそ" "れを処理するために準備しておくべきです。" -#: ../../library/code.rst:117 +#: ../../library/code.rst:123 msgid "" "Display the syntax error that just occurred. This does not display a stack " "trace because there isn't one for syntax errors. If *filename* is given, it " @@ -232,7 +240,7 @@ msgstr "" "ます。なぜなら、文字列から読み込んでいるときはパーサは常に ``''`` を" "使うからです。出力は :meth:`write` メソッドによって書き込まれます。" -#: ../../library/code.rst:126 +#: ../../library/code.rst:132 msgid "" "Display the exception that just occurred. We remove the first stack item " "because it is within the interpreter object implementation. The output is " @@ -242,14 +250,14 @@ msgstr "" "ら、それはインタプリタオブジェクトの実装の内部にあるからです。出力は :meth:" "`write` メソッドによって書き込まれます。" -#: ../../library/code.rst:130 +#: ../../library/code.rst:136 msgid "" "The full chained traceback is displayed instead of just the primary " "traceback." msgstr "" "最初のトレースバックではなく、完全なトレースバックの連鎖が表示されます。" -#: ../../library/code.rst:136 +#: ../../library/code.rst:142 msgid "" "Write a string to the standard error stream (``sys.stderr``). Derived " "classes should override this to provide the appropriate output handling as " @@ -258,11 +266,11 @@ msgstr "" "文字列を標準エラーストリーム(``sys.stderr``)へ書き込みます。必要に応じて適切" "な出力処理を提供するために、派生クラスはこれをオーバーライドすべきです。" -#: ../../library/code.rst:143 +#: ../../library/code.rst:149 msgid "Interactive Console Objects" msgstr "対話的なコンソールオブジェクト" -#: ../../library/code.rst:145 +#: ../../library/code.rst:151 msgid "" "The :class:`InteractiveConsole` class is a subclass of :class:" "`InteractiveInterpreter`, and so offers all the methods of the interpreter " @@ -272,7 +280,7 @@ msgstr "" "ラスです。以下の追加メソッドだけでなく、インタプリタオブジェクトのすべてのメ" "ソッドも提供します。" -#: ../../library/code.rst:152 +#: ../../library/code.rst:158 msgid "" "Closely emulate the interactive Python console. The optional *banner* " "argument specify the banner to print before the first interaction; by " @@ -287,7 +295,7 @@ msgstr "" "れに続けて、実際のインタプリタと混乱しないように (とても似ているから!) 括弧の" "中にコンソールオブジェクトのクラス名を表示します。" -#: ../../library/code.rst:158 +#: ../../library/code.rst:164 msgid "" "The optional *exitmsg* argument specifies an exit message printed when " "exiting. Pass the empty string to suppress the exit message. If *exitmsg* is " @@ -297,15 +305,15 @@ msgstr "" "空文字列を渡すと、出力メッセージを抑止します。もし、 *exitmsg* が与えられない" "か、``None`` の場合は、デフォルトのメッセージが出力されます。" -#: ../../library/code.rst:162 +#: ../../library/code.rst:168 msgid "To suppress printing any banner, pass an empty string." msgstr "バナーの表示を抑制するには、空の文字列を渡してください。" -#: ../../library/code.rst:165 +#: ../../library/code.rst:171 msgid "Print an exit message when exiting." msgstr "終了時に、終了メッセージを表示します。" -#: ../../library/code.rst:171 +#: ../../library/code.rst:177 msgid "" "Push a line of source text to the interpreter. The line should not have a " "trailing newline; it may have internal newlines. The line is appended to a " @@ -326,11 +334,11 @@ msgstr "" "残されます。さらに入力が必要ならば、戻り値は ``True`` です。その行がある方法" "で処理されたならば、 ``False`` です(これは :meth:`!runsource` と同じです)。" -#: ../../library/code.rst:183 +#: ../../library/code.rst:189 msgid "Remove any unhandled source text from the input buffer." msgstr "入力バッファから処理されていないソーステキストを取り除きます。" -#: ../../library/code.rst:188 +#: ../../library/code.rst:194 msgid "" "Write a prompt and read a line. The returned line does not include the " "trailing newline. When the user enters the EOF key sequence, :exc:" diff --git a/library/codecs.po b/library/codecs.po index 969b37acc..3430ee62a 100644 --- a/library/codecs.po +++ b/library/codecs.po @@ -25,10 +25,10 @@ msgstr "" "Last-Translator: 石井明久, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../library/codecs.rst:2 diff --git a/library/codeop.po b/library/codeop.po index b4e2039bd..12ab005e8 100644 --- a/library/codeop.po +++ b/library/codeop.po @@ -1,5 +1,5 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2025, Python Software Foundation +# Copyright (C) 2001 Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # @@ -11,17 +11,17 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: Python 3.13\n" +"Project-Id-Version: Python 3.14\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2025-05-02 14:19+0000\n" +"POT-Creation-Date: 2025-05-23 14:20+0000\n" "PO-Revision-Date: 2021-06-28 00:56+0000\n" "Last-Translator: 石井明久, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../library/codeop.rst:2 diff --git a/library/collections.abc.po b/library/collections.abc.po index 78d093cf2..e21c81d75 100644 --- a/library/collections.abc.po +++ b/library/collections.abc.po @@ -20,10 +20,10 @@ msgstr "" "Last-Translator: Takeshi Nakazato, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../library/collections.abc.rst:2 diff --git a/library/collections.po b/library/collections.po index 1d304e881..0e233d7b2 100644 --- a/library/collections.po +++ b/library/collections.po @@ -22,10 +22,10 @@ msgstr "" "Last-Translator: 石井明久, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../library/collections.rst:2 diff --git a/library/colorsys.po b/library/colorsys.po index 2a08db860..96b08fa41 100644 --- a/library/colorsys.po +++ b/library/colorsys.po @@ -1,5 +1,5 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2025, Python Software Foundation +# Copyright (C) 2001 Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # @@ -11,17 +11,17 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: Python 3.13\n" +"Project-Id-Version: Python 3.14\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2025-05-02 14:19+0000\n" +"POT-Creation-Date: 2025-05-23 14:20+0000\n" "PO-Revision-Date: 2021-06-28 00:57+0000\n" "Last-Translator: 石井明久, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../library/colorsys.rst:2 diff --git a/library/compileall.po b/library/compileall.po index e885e40bf..057fa80f4 100644 --- a/library/compileall.po +++ b/library/compileall.po @@ -1,5 +1,5 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2025, Python Software Foundation +# Copyright (C) 2001 Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # @@ -12,17 +12,17 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: Python 3.13\n" +"Project-Id-Version: Python 3.14\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2025-05-02 14:19+0000\n" +"POT-Creation-Date: 2025-05-23 14:20+0000\n" "PO-Revision-Date: 2021-06-28 00:57+0000\n" "Last-Translator: 石井明久, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../library/compileall.rst:2 diff --git a/library/concurrency.po b/library/concurrency.po index 386b8cb4b..f35c0fe5e 100644 --- a/library/concurrency.po +++ b/library/concurrency.po @@ -16,10 +16,10 @@ msgstr "" "Last-Translator: tomo, 2021\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../library/concurrency.rst:5 diff --git a/library/concurrent.futures.po b/library/concurrent.futures.po index 8d7e217b4..07a0b3b75 100644 --- a/library/concurrent.futures.po +++ b/library/concurrent.futures.po @@ -22,10 +22,10 @@ msgstr "" "Last-Translator: 石井明久, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../library/concurrent.futures.rst:2 diff --git a/library/concurrent.po b/library/concurrent.po index 4c75b2a3a..3b8123a4b 100644 --- a/library/concurrent.po +++ b/library/concurrent.po @@ -1,5 +1,5 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2025, Python Software Foundation +# Copyright (C) 2001 Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # @@ -10,17 +10,17 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: Python 3.13\n" +"Project-Id-Version: Python 3.14\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2025-05-02 14:19+0000\n" +"POT-Creation-Date: 2025-05-23 14:20+0000\n" "PO-Revision-Date: 2021-06-28 00:57+0000\n" "Last-Translator: 石井明久, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../library/concurrent.rst:2 diff --git a/library/configparser.po b/library/configparser.po index 88aec4096..893cbb571 100644 --- a/library/configparser.po +++ b/library/configparser.po @@ -25,10 +25,10 @@ msgstr "" "Last-Translator: Takeshi Nakazato, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../library/configparser.rst:2 diff --git a/library/constants.po b/library/constants.po index 08e213032..23365ed42 100644 --- a/library/constants.po +++ b/library/constants.po @@ -18,10 +18,10 @@ msgstr "" "Last-Translator: Takanori Suzuki , 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../library/constants.rst:4 diff --git a/library/contextlib.po b/library/contextlib.po index 42766e53f..871749dd0 100644 --- a/library/contextlib.po +++ b/library/contextlib.po @@ -1,5 +1,5 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2025, Python Software Foundation +# Copyright (C) 2001 Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # @@ -13,17 +13,17 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: Python 3.13\n" +"Project-Id-Version: Python 3.14\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2025-04-25 14:19+0000\n" +"POT-Creation-Date: 2025-05-16 14:19+0000\n" "PO-Revision-Date: 2021-06-28 00:57+0000\n" "Last-Translator: 石井明久, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../library/contextlib.rst:2 diff --git a/library/contextvars.po b/library/contextvars.po index e2b813c3c..b258d919c 100644 --- a/library/contextvars.po +++ b/library/contextvars.po @@ -19,10 +19,10 @@ msgstr "" "Last-Translator: tomo, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../library/contextvars.rst:2 diff --git a/library/copy.po b/library/copy.po index 62f54314a..6a75593d5 100644 --- a/library/copy.po +++ b/library/copy.po @@ -1,5 +1,5 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2025, Python Software Foundation +# Copyright (C) 2001 Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # @@ -14,17 +14,17 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: Python 3.13\n" +"Project-Id-Version: Python 3.14\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2025-05-02 14:19+0000\n" +"POT-Creation-Date: 2025-05-23 14:20+0000\n" "PO-Revision-Date: 2021-06-28 01:03+0000\n" "Last-Translator: 石井明久, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../library/copy.rst:2 diff --git a/library/copyreg.po b/library/copyreg.po index e659a5a4d..d5124c2d0 100644 --- a/library/copyreg.po +++ b/library/copyreg.po @@ -1,5 +1,5 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2025, Python Software Foundation +# Copyright (C) 2001 Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # @@ -12,17 +12,17 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: Python 3.13\n" +"Project-Id-Version: Python 3.14\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2025-05-02 14:19+0000\n" +"POT-Creation-Date: 2025-05-23 14:20+0000\n" "PO-Revision-Date: 2021-06-28 01:03+0000\n" "Last-Translator: 石井明久, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../library/copyreg.rst:2 diff --git a/library/crypt.po b/library/crypt.po index 0e1a1160f..60f818d54 100644 --- a/library/crypt.po +++ b/library/crypt.po @@ -1,21 +1,21 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2025, Python Software Foundation +# Copyright (C) 2001 Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # #, fuzzy msgid "" msgstr "" -"Project-Id-Version: Python 3.13\n" +"Project-Id-Version: Python 3.14\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2025-05-02 14:19+0000\n" +"POT-Creation-Date: 2025-05-23 14:20+0000\n" "PO-Revision-Date: 2024-11-19 01:02+0000\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../library/crypt.rst:2 diff --git a/library/crypto.po b/library/crypto.po index 50bb35f1e..b3fc7f403 100644 --- a/library/crypto.po +++ b/library/crypto.po @@ -1,5 +1,5 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2025, Python Software Foundation +# Copyright (C) 2001 Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # @@ -11,17 +11,17 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: Python 3.13\n" +"Project-Id-Version: Python 3.14\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2025-05-02 14:19+0000\n" +"POT-Creation-Date: 2025-05-23 14:20+0000\n" "PO-Revision-Date: 2021-06-28 01:03+0000\n" "Last-Translator: 石井明久, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../library/crypto.rst:5 diff --git a/library/csv.po b/library/csv.po index 5dd73fe74..f06fd644f 100644 --- a/library/csv.po +++ b/library/csv.po @@ -1,5 +1,5 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2025, Python Software Foundation +# Copyright (C) 2001 Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # @@ -14,17 +14,17 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: Python 3.13\n" +"Project-Id-Version: Python 3.14\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2025-05-02 14:19+0000\n" +"POT-Creation-Date: 2025-05-23 14:20+0000\n" "PO-Revision-Date: 2021-06-28 01:03+0000\n" "Last-Translator: 石井明久, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../library/csv.rst:2 diff --git a/library/ctypes.po b/library/ctypes.po index 5d58f5114..2dbc6f210 100644 --- a/library/ctypes.po +++ b/library/ctypes.po @@ -20,10 +20,10 @@ msgstr "" "Last-Translator: Nozomu Kaneko , 2025\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../library/ctypes.rst:2 diff --git a/library/curses.ascii.po b/library/curses.ascii.po index 45a93c066..cd86b0150 100644 --- a/library/curses.ascii.po +++ b/library/curses.ascii.po @@ -1,5 +1,5 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2025, Python Software Foundation +# Copyright (C) 2001 Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # @@ -12,17 +12,17 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: Python 3.13\n" +"Project-Id-Version: Python 3.14\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2025-05-02 14:19+0000\n" +"POT-Creation-Date: 2025-05-23 14:20+0000\n" "PO-Revision-Date: 2021-06-28 01:03+0000\n" "Last-Translator: 石井明久, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../library/curses.ascii.rst:2 diff --git a/library/curses.panel.po b/library/curses.panel.po index 85eaf4e23..99306df28 100644 --- a/library/curses.panel.po +++ b/library/curses.panel.po @@ -1,5 +1,5 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2025, Python Software Foundation +# Copyright (C) 2001 Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # @@ -10,17 +10,17 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: Python 3.13\n" +"Project-Id-Version: Python 3.14\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2025-05-02 14:19+0000\n" +"POT-Creation-Date: 2025-05-23 14:20+0000\n" "PO-Revision-Date: 2021-06-28 01:03+0000\n" "Last-Translator: 石井明久, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../library/curses.panel.rst:2 diff --git a/library/curses.po b/library/curses.po index 97c830c3f..4ae8e5fbd 100644 --- a/library/curses.po +++ b/library/curses.po @@ -15,15 +15,15 @@ msgid "" msgstr "" "Project-Id-Version: Python 3.14\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2025-05-08 02:53-0300\n" +"POT-Creation-Date: 2025-05-23 14:20+0000\n" "PO-Revision-Date: 2021-06-28 01:03+0000\n" "Last-Translator: 石井明久, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../library/curses.rst:2 @@ -382,7 +382,7 @@ msgstr "" "`BUTTONn_DOUBLE_CLICKED`, :const:`BUTTONn_TRIPLE_CLICKED`, :const:" "`BUTTON_SHIFT`, :const:`BUTTON_CTRL`, :const:`BUTTON_ALT`。" -#: ../../library/curses.rst:230 ../../library/curses.rst:1789 +#: ../../library/curses.rst:230 ../../library/curses.rst:1797 msgid "" "The ``BUTTON5_*`` constants are now exposed if they are provided by the " "underlying curses library." @@ -1462,11 +1462,15 @@ msgstr "" #: ../../library/curses.rst:990 msgid "" -"Read a bytes object from the user, with primitive line editing capacity." +"Read a bytes object from the user, with primitive line editing capacity. The " +"maximum value for *n* is 2047." +msgstr "" + +#: ../../library/curses.rst:993 ../../library/curses.rst:1088 +msgid "The maximum value for *n* was increased from 1023 to 2047." msgstr "" -"原始的な文字編集機能つきで、ユーザの入力した byte オブヘクトを読み取ります。" -#: ../../library/curses.rst:995 +#: ../../library/curses.rst:999 msgid "" "Return a tuple ``(y, x)`` of current cursor position relative to the " "window's upper-left corner." @@ -1474,7 +1478,7 @@ msgstr "" "ウィンドウの左上角からの相対で表した現在のカーソル位置をタプル ``(y, x)`` で" "返します。" -#: ../../library/curses.rst:1002 +#: ../../library/curses.rst:1006 msgid "" "Display a horizontal line starting at ``(y, x)`` with length *n* consisting " "of the character *ch*." @@ -1482,7 +1486,7 @@ msgstr "" "``(y, x)`` から始まり、*n* の長さを持つ、文字 *ch* で作られる水平線を表示しま" "す。" -#: ../../library/curses.rst:1008 +#: ../../library/curses.rst:1012 msgid "" "If *flag* is ``False``, curses no longer considers using the hardware insert/" "delete character feature of the terminal; if *flag* is ``True``, use of " @@ -1494,7 +1498,7 @@ msgstr "" "されます。curses が最初に初期化された際には文字挿入/削除はデフォルトで有効に" "なっています。" -#: ../../library/curses.rst:1016 +#: ../../library/curses.rst:1020 msgid "" "If *flag* is ``True``, :mod:`curses` will try and use hardware line editing " "facilities. Otherwise, line insertion/deletion are disabled." @@ -1502,7 +1506,7 @@ msgstr "" "*flag* が ``True`` であれば、:mod:`curses` はハードウェアの行編集機能の利用を" "試みます。行挿入/削除は無効化されます。" -#: ../../library/curses.rst:1022 +#: ../../library/curses.rst:1026 msgid "" "If *flag* is ``True``, any change in the window image automatically causes " "the window to be refreshed; you no longer have to call :meth:`refresh` " @@ -1514,7 +1518,7 @@ msgstr "" "くても良くなります。とはいえ、wrefresh を繰り返し呼び出すことになるため、この" "操作はかなりパフォーマンスを低下させます。デフォルトでは無効になっています。" -#: ../../library/curses.rst:1030 +#: ../../library/curses.rst:1034 msgid "" "Return the character at the given position in the window. The bottom 8 bits " "are the character proper, and upper bits are the attributes." @@ -1522,7 +1526,7 @@ msgstr "" "ウィンドウの指定の位置の文字を返します。下位 8 ビットが本来の文字で、それより" "上のビットは属性です。" -#: ../../library/curses.rst:1037 +#: ../../library/curses.rst:1041 msgid "" "Paint character *ch* at ``(y, x)`` with attributes *attr*, moving the line " "from position *x* right by one character." @@ -1530,7 +1534,7 @@ msgstr "" "``(y, x)`` に文字 *ch* を属性 *attr* で描画し、行の *x* からの内容を 1 文字分" "右にずらします。" -#: ../../library/curses.rst:1043 +#: ../../library/curses.rst:1047 msgid "" "Insert *nlines* lines into the specified window above the current line. The " "*nlines* bottom lines are lost. For negative *nlines*, delete *nlines* " @@ -1543,14 +1547,14 @@ msgstr "" "*nlines* を削除し、削除された行の後ろに続く内容が上に来ます。その下にある " "*nlines* は消去されます。現在のカーソル位置はそのままです。" -#: ../../library/curses.rst:1052 +#: ../../library/curses.rst:1056 msgid "" "Insert a blank line under the cursor. All following lines are moved down by " "one line." msgstr "" "カーソルの下に空行を 1 行入れます。それ以降の行は 1 行づつ下に移動します。" -#: ../../library/curses.rst:1059 +#: ../../library/curses.rst:1063 msgid "" "Insert a character string (as many characters as will fit on the line) " "before the character under the cursor, up to *n* characters. If *n* is " @@ -1564,7 +1568,7 @@ msgstr "" "るすべての文字は右に移動し、行の左端にある文字は失われます。カーソル位置は " "(*y*, *x* が指定されていた場合はそこに移動しますが、その後は) 変化しません。" -#: ../../library/curses.rst:1069 +#: ../../library/curses.rst:1073 msgid "" "Insert a character string (as many characters as will fit on the line) " "before the character under the cursor. All characters to the right of the " @@ -1576,19 +1580,16 @@ msgstr "" "側にある文字はすべて右にシフトし、行の右端の文字は失われます。カーソル位置は " "(*y*, *x* が指定されていた場合はそこに移動しますが、その後は) 変化しません。" -#: ../../library/curses.rst:1078 +#: ../../library/curses.rst:1082 msgid "" "Return a bytes object of characters, extracted from the window starting at " "the current cursor position, or at *y*, *x* if specified. Attributes are " "stripped from the characters. If *n* is specified, :meth:`instr` returns a " -"string at most *n* characters long (exclusive of the trailing NUL)." +"string at most *n* characters long (exclusive of the trailing NUL). The " +"maximum value for *n* is 2047." msgstr "" -"現在のカーソル位置、または *y*, *x* が指定されている場合にはその場所から始ま" -"るキャラクタの bytes オブジェクトをウィンドウから抽出して返します。属性は文字" -"から剥ぎ取られます。*n* が指定された場合、:meth:`instr` は (末尾の NUL 文字を" -"除いて) 最大で *n* 文字までの長さからなる文字列を返します。" -#: ../../library/curses.rst:1086 +#: ../../library/curses.rst:1094 msgid "" "Return ``True`` if the specified line was modified since the last call to :" "meth:`refresh`; otherwise return ``False``. Raise a :exc:`curses.error` " @@ -1598,7 +1599,7 @@ msgstr "" "``True`` を返します; そうでない場合には ``False`` を返します。*line* が現在の" "ウィンドウ上の有効な行でない場合、:exc:`curses.error` 例外を送出します。" -#: ../../library/curses.rst:1093 +#: ../../library/curses.rst:1101 msgid "" "Return ``True`` if the specified window was modified since the last call to :" "meth:`refresh`; otherwise return ``False``." @@ -1606,7 +1607,7 @@ msgstr "" "指定したウィンドウが、最後に :meth:`refresh` を呼んだ時から変更されている場合" "に ``True`` を返します; そうでない場合には ``False`` を返します。" -#: ../../library/curses.rst:1099 +#: ../../library/curses.rst:1107 msgid "" "If *flag* is ``True``, escape sequences generated by some keys (keypad, " "function keys) will be interpreted by :mod:`curses`. If *flag* is ``False``, " @@ -1617,7 +1618,7 @@ msgstr "" "が ``False`` の場合、エスケープシーケンスは入力ストリームにそのままの状態で残" "されます。" -#: ../../library/curses.rst:1106 +#: ../../library/curses.rst:1114 msgid "" "If *flag* is ``True``, cursor is left where it is on update, instead of " "being at \"cursor position.\" This reduces cursor movement where possible. " @@ -1627,7 +1628,7 @@ msgstr "" "とどめます。これにより、カーソルの移動を減らせる可能性があります。この場合、" "カーソルは不可視にされます。" -#: ../../library/curses.rst:1110 +#: ../../library/curses.rst:1118 msgid "" "If *flag* is ``False``, cursor will always be at \"cursor position\" after " "an update." @@ -1635,11 +1636,11 @@ msgstr "" "*flag* が ``False`` の場合、カーソルは更新の際に常に \"カーソル位置\" に移動" "します。" -#: ../../library/curses.rst:1115 +#: ../../library/curses.rst:1123 msgid "Move cursor to ``(new_y, new_x)``." msgstr "カーソルを ``(new_y, new_x)`` に移動します。" -#: ../../library/curses.rst:1120 +#: ../../library/curses.rst:1128 msgid "" "Move the window inside its parent window. The screen-relative parameters of " "the window are not changed. This routine is used to display different parts " @@ -1649,20 +1650,20 @@ msgstr "" "ラメタ群は変化しません。このルーチンは親ウィンドウの一部をスクリーン上の同じ" "物理位置に表示する際に用いられます。" -#: ../../library/curses.rst:1127 +#: ../../library/curses.rst:1135 msgid "Move the window so its upper-left corner is at ``(new_y, new_x)``." msgstr "ウィンドウの左上角が ``(new_y, new_x)`` になるように移動します。" -#: ../../library/curses.rst:1132 +#: ../../library/curses.rst:1140 msgid "If *flag* is ``True``, :meth:`getch` will be non-blocking." msgstr "*flag* が ``True`` の場合、:meth:`getch` は非ブロックで動作します。" -#: ../../library/curses.rst:1137 +#: ../../library/curses.rst:1145 msgid "If *flag* is ``True``, escape sequences will not be timed out." msgstr "" "*flag* が ``True`` の場合、エスケープシーケンスはタイムアウトしなくなります。" -#: ../../library/curses.rst:1139 +#: ../../library/curses.rst:1147 msgid "" "If *flag* is ``False``, after a few milliseconds, an escape sequence will " "not be interpreted, and will be left in the input stream as is." @@ -1670,7 +1671,7 @@ msgstr "" "*flag* が ``False`` の場合、数ミリ秒間の間エスケープシーケンスは解釈されず、" "入力ストリーム中にそのままの状態で残されます。" -#: ../../library/curses.rst:1145 +#: ../../library/curses.rst:1153 msgid "" "Mark for refresh but wait. This function updates the data structure " "representing the desired state of the window, but does not force an update " @@ -1680,7 +1681,7 @@ msgstr "" "い内容を反映するように更新しますが、物理スクリーン上に反映させるための強制更" "新を行いません。更新を行うためには :func:`doupdate` を呼び出します。" -#: ../../library/curses.rst:1152 +#: ../../library/curses.rst:1160 msgid "" "Overlay the window on top of *destwin*. The windows need not be the same " "size, only the overlapping region is copied. This copy is non-destructive, " @@ -1691,7 +1692,7 @@ msgstr "" "ズである必要はなく、重なっている領域だけが複写されます。この複写は非破壊的で" "す。これは現在の背景文字が *destwin* の内容を上書きしないことを意味します。" -#: ../../library/curses.rst:1157 +#: ../../library/curses.rst:1165 msgid "" "To get fine-grained control over the copied region, the second form of :meth:" "`overlay` can be used. *sminrow* and *smincol* are the upper-left " @@ -1702,7 +1703,7 @@ msgstr "" "きます。*sminrow* および *smincol* は元のウィンドウの左上の座標で、他の変数" "は *destwin* 内の矩形を表します。" -#: ../../library/curses.rst:1165 +#: ../../library/curses.rst:1173 msgid "" "Overwrite the window on top of *destwin*. The windows need not be the same " "size, in which case only the overlapping region is copied. This copy is " @@ -1713,7 +1714,7 @@ msgstr "" "サイズである必要はなく、重なっている領域だけが複写されます。この複写は破壊的" "です。これは現在の背景文字が *destwin* の内容を上書きすることを意味します。" -#: ../../library/curses.rst:1170 +#: ../../library/curses.rst:1178 msgid "" "To get fine-grained control over the copied region, the second form of :meth:" "`overwrite` can be used. *sminrow* and *smincol* are the upper-left " @@ -1724,7 +1725,7 @@ msgstr "" "できます。*sminrow* および *smincol* は元のウィンドウの左上の座標で、他の変数" "は *destwin* 内の矩形を表します。" -#: ../../library/curses.rst:1178 +#: ../../library/curses.rst:1186 msgid "" "Write all data associated with the window into the provided file object. " "This information can be later retrieved using the :func:`getwin` function." @@ -1733,7 +1734,7 @@ msgstr "" "に書き込みます。この情報は後に :func:`getwin` 関数を使って取得することができ" "ます。" -#: ../../library/curses.rst:1184 +#: ../../library/curses.rst:1192 msgid "" "Indicate that the *num* screen lines, starting at line *beg*, are corrupted " "and should be completely redrawn on the next :meth:`refresh` call." @@ -1741,7 +1742,7 @@ msgstr "" "*beg* 行から始まる *num* スクリーン行の表示内容が壊れており、次の :meth:" "`refresh` 呼び出しで完全に再描画されなければならないことを通知します。" -#: ../../library/curses.rst:1190 +#: ../../library/curses.rst:1198 msgid "" "Touch the entire window, causing it to be completely redrawn on the next :" "meth:`refresh` call." @@ -1749,7 +1750,7 @@ msgstr "" "ウィンドウ全体を更新 (touch) し、次の :meth:`refresh` 呼び出しで完全に再描画" "されるようにします。" -#: ../../library/curses.rst:1196 +#: ../../library/curses.rst:1204 msgid "" "Update the display immediately (sync actual screen with previous drawing/" "deleting methods)." @@ -1757,7 +1758,7 @@ msgstr "" "ディスプレイを即時更新し (実際のウィンドウとこれまでの描画/削除メソッドの内容" "とを同期し) ます。" -#: ../../library/curses.rst:1199 +#: ../../library/curses.rst:1207 msgid "" "The 6 optional arguments can only be specified when the window is a pad " "created with :func:`newpad`. The additional parameters are needed to " @@ -1781,7 +1782,7 @@ msgstr "" "ません。*pminrow*, *pmincol*, *sminrow*, または *smincol* に負の値を指定する" "と、ゼロを指定したものとして扱われます。" -#: ../../library/curses.rst:1213 +#: ../../library/curses.rst:1221 msgid "" "Reallocate storage for a curses window to adjust its dimensions to the " "specified values. If either dimension is larger than the current values, " @@ -1792,11 +1793,11 @@ msgstr "" "ズが現在の値より大きい場合、ウィンドウのデータは現在の背景設定 (:meth:" "`bkgdset` で設定) で埋められマージされます。" -#: ../../library/curses.rst:1221 +#: ../../library/curses.rst:1229 msgid "Scroll the screen or scrolling region upward by *lines* lines." msgstr "スクリーンまたはスクロール領域を上に *lines* 行スクロールします。" -#: ../../library/curses.rst:1226 +#: ../../library/curses.rst:1234 msgid "" "Control what happens when the cursor of a window is moved off the edge of " "the window or scrolling region, either as a result of a newline action on " @@ -1812,7 +1813,7 @@ msgstr "" "スクロール効果を得るためには :meth:`idlok` も呼び出す必要があるので注意してく" "ださい。" -#: ../../library/curses.rst:1236 +#: ../../library/curses.rst:1244 msgid "" "Set the scrolling region from line *top* to line *bottom*. All scrolling " "actions will take place in this region." @@ -1820,7 +1821,7 @@ msgstr "" "スクロール領域を *top* から *bottom* に設定します。スクロール動作はすべてこの" "領域で行われます。" -#: ../../library/curses.rst:1242 +#: ../../library/curses.rst:1250 msgid "" "Turn off the standout attribute. On some terminals this has the side effect " "of turning off all attributes." @@ -1828,11 +1829,11 @@ msgstr "" "*A_STANDOUT* 属性をオフにします。端末によっては、この操作ですべての属性をオフ" "にする副作用が発生します。" -#: ../../library/curses.rst:1248 +#: ../../library/curses.rst:1256 msgid "Turn on attribute *A_STANDOUT*." msgstr "*A_STANDOUT* 属性をオンにします。" -#: ../../library/curses.rst:1254 ../../library/curses.rst:1261 +#: ../../library/curses.rst:1262 ../../library/curses.rst:1269 msgid "" "Return a sub-window, whose upper-left corner is at ``(begin_y, begin_x)``, " "and whose width/height is *ncols*/*nlines*." @@ -1840,7 +1841,7 @@ msgstr "" "左上の角が ``(begin_y, begin_x)`` にあり、幅/高さがそれぞれ *ncols* / " "*nlines* であるようなサブウィンドウを返します。" -#: ../../library/curses.rst:1264 +#: ../../library/curses.rst:1272 msgid "" "By default, the sub-window will extend from the specified position to the " "lower right corner of the window." @@ -1848,7 +1849,7 @@ msgstr "" "デフォルトでは、サブウィンドウは指定された場所からウィンドウの右下角まで広が" "ります。" -#: ../../library/curses.rst:1270 +#: ../../library/curses.rst:1278 msgid "" "Touch each location in the window that has been touched in any of its " "ancestor windows. This routine is called by :meth:`refresh`, so it should " @@ -1858,7 +1859,7 @@ msgstr "" "ンドウ内でも更新します。このルーチンは :meth:`refresh` から呼び出されるので、" "手動で呼び出す必要はほとんどないはずです。" -#: ../../library/curses.rst:1277 +#: ../../library/curses.rst:1285 msgid "" "If *flag* is ``True``, then :meth:`syncup` is called automatically whenever " "there is a change in the window." @@ -1866,7 +1867,7 @@ msgstr "" "*flag* が ``True`` の場合、ウィンドウが変更された際は常に :meth:`syncup` を自" "動的に呼ぶようになります。" -#: ../../library/curses.rst:1283 +#: ../../library/curses.rst:1291 msgid "" "Touch all locations in ancestors of the window that have been changed in " "the window." @@ -1874,7 +1875,7 @@ msgstr "" "ウィンドウ内で更新 (touch) した場所を、上位のすべてのウィンドウ内でも更新しま" "す。" -#: ../../library/curses.rst:1289 +#: ../../library/curses.rst:1297 msgid "" "Set blocking or non-blocking read behavior for the window. If *delay* is " "negative, blocking read is used (which will wait indefinitely for input). " @@ -1889,7 +1890,7 @@ msgstr "" "``-1`` を返します。*delay* が正の値であれば、:meth:`getch` は *delay* ミリ秒" "間ブロックし、ブロック後の時点で入力がない場合には ``-1`` を返します。" -#: ../../library/curses.rst:1299 +#: ../../library/curses.rst:1307 msgid "" "Pretend *count* lines have been changed, starting with line *start*. If " "*changed* is supplied, it specifies whether the affected lines are marked as " @@ -1900,7 +1901,7 @@ msgstr "" "*changed* が与えられた場合、その引数は指定された行が変更された(*changed*\\ " "``=True``)か、変更されていないか(*changed*\\ )を指定します。" -#: ../../library/curses.rst:1306 +#: ../../library/curses.rst:1314 msgid "" "Pretend the whole window has been changed, for purposes of drawing " "optimizations." @@ -1908,7 +1909,7 @@ msgstr "" "描画を最適化するために、すべてのウィンドウが変更されたかのように振舞わせま" "す。" -#: ../../library/curses.rst:1312 +#: ../../library/curses.rst:1320 msgid "" "Mark all lines in the window as unchanged since the last call to :meth:" "`refresh`." @@ -1916,21 +1917,21 @@ msgstr "" "ウィンドウ内のすべての行を、最後に :meth:`refresh` を呼んだ際から変更されてい" "ないものとしてマークします。" -#: ../../library/curses.rst:1319 +#: ../../library/curses.rst:1327 msgid "" "Display a vertical line starting at ``(y, x)`` with length *n* consisting of " "the character *ch* with attributes *attr*." msgstr "" -#: ../../library/curses.rst:1324 +#: ../../library/curses.rst:1332 msgid "Constants" msgstr "定数" -#: ../../library/curses.rst:1326 +#: ../../library/curses.rst:1334 msgid "The :mod:`curses` module defines the following data members:" msgstr ":mod:`curses` モジュールでは以下のデータメンバを定義しています:" -#: ../../library/curses.rst:1331 +#: ../../library/curses.rst:1339 msgid "" "Some curses routines that return an integer, such as :meth:`~window." "getch`, return :const:`ERR` upon failure." @@ -1938,7 +1939,7 @@ msgstr "" ":meth:`~window.getch` のような整数を返す curses ルーチンのいくつかは、失敗し" "た際に :const:`ERR` を返します。" -#: ../../library/curses.rst:1337 +#: ../../library/curses.rst:1345 msgid "" "Some curses routines that return an integer, such as :func:`napms`, " "return :const:`OK` upon success." @@ -1946,11 +1947,11 @@ msgstr "" ":func:`napms` のような整数を返す curses ルーチンのいくつかは、成功した際に :" "const:`OK` を返します。" -#: ../../library/curses.rst:1344 +#: ../../library/curses.rst:1352 msgid "A bytes object representing the current version of the module." msgstr "" -#: ../../library/curses.rst:1349 +#: ../../library/curses.rst:1357 msgid "" "A named tuple containing the three components of the ncurses library " "version: *major*, *minor*, and *patch*. All values are integers. The " @@ -1958,146 +1959,146 @@ msgid "" "is equivalent to ``curses.ncurses_version.major`` and so on." msgstr "" -#: ../../library/curses.rst:1354 +#: ../../library/curses.rst:1362 msgid "Availability: if the ncurses library is used." msgstr "" -#: ../../library/curses.rst:1360 +#: ../../library/curses.rst:1368 msgid "" "The maximum number of colors the terminal can support. It is defined only " "after the call to :func:`start_color`." msgstr "" -#: ../../library/curses.rst:1365 +#: ../../library/curses.rst:1373 msgid "" "The maximum number of color pairs the terminal can support. It is defined " "only after the call to :func:`start_color`." msgstr "" -#: ../../library/curses.rst:1370 +#: ../../library/curses.rst:1378 msgid "" "The width of the screen, i.e., the number of columns. It is defined only " "after the call to :func:`initscr`. Updated by :func:`update_lines_cols`, :" "func:`resizeterm` and :func:`resize_term`." msgstr "" -#: ../../library/curses.rst:1377 +#: ../../library/curses.rst:1385 msgid "" "The height of the screen, i.e., the number of lines. It is defined only " "after the call to :func:`initscr`. Updated by :func:`update_lines_cols`, :" "func:`resizeterm` and :func:`resize_term`." msgstr "" -#: ../../library/curses.rst:1383 +#: ../../library/curses.rst:1391 msgid "" "Some constants are available to specify character cell attributes. The exact " "constants available are system dependent." msgstr "" -#: ../../library/curses.rst:1387 +#: ../../library/curses.rst:1395 msgid "Attribute" msgstr "属性" -#: ../../library/curses.rst:1387 ../../library/curses.rst:1432 -#: ../../library/curses.rst:1678 ../../library/curses.rst:1770 +#: ../../library/curses.rst:1395 ../../library/curses.rst:1440 +#: ../../library/curses.rst:1686 ../../library/curses.rst:1778 msgid "Meaning" msgstr "意味" -#: ../../library/curses.rst:1389 +#: ../../library/curses.rst:1397 msgid "Alternate character set mode" msgstr "代替文字セットモード" -#: ../../library/curses.rst:1391 +#: ../../library/curses.rst:1399 msgid "Blink mode" msgstr "点滅モード" -#: ../../library/curses.rst:1393 +#: ../../library/curses.rst:1401 msgid "Bold mode" msgstr "太字モード" -#: ../../library/curses.rst:1395 +#: ../../library/curses.rst:1403 msgid "Dim mode" msgstr "低輝度モード" -#: ../../library/curses.rst:1397 +#: ../../library/curses.rst:1405 msgid "Invisible or blank mode" msgstr "" -#: ../../library/curses.rst:1399 +#: ../../library/curses.rst:1407 msgid "Italic mode" msgstr "イタリックモード" -#: ../../library/curses.rst:1401 +#: ../../library/curses.rst:1409 msgid "Normal attribute" msgstr "通常の属性" -#: ../../library/curses.rst:1403 +#: ../../library/curses.rst:1411 msgid "Protected mode" msgstr "" -#: ../../library/curses.rst:1405 +#: ../../library/curses.rst:1413 msgid "Reverse background and foreground colors" msgstr "" -#: ../../library/curses.rst:1408 +#: ../../library/curses.rst:1416 msgid "Standout mode" msgstr "強調モード" -#: ../../library/curses.rst:1410 +#: ../../library/curses.rst:1418 msgid "Underline mode" msgstr "下線モード" -#: ../../library/curses.rst:1412 +#: ../../library/curses.rst:1420 msgid "Horizontal highlight" msgstr "" -#: ../../library/curses.rst:1414 +#: ../../library/curses.rst:1422 msgid "Left highlight" msgstr "" -#: ../../library/curses.rst:1416 +#: ../../library/curses.rst:1424 msgid "Low highlight" msgstr "" -#: ../../library/curses.rst:1418 +#: ../../library/curses.rst:1426 msgid "Right highlight" msgstr "" -#: ../../library/curses.rst:1420 +#: ../../library/curses.rst:1428 msgid "Top highlight" msgstr "" -#: ../../library/curses.rst:1422 +#: ../../library/curses.rst:1430 msgid "Vertical highlight" msgstr "" -#: ../../library/curses.rst:1425 +#: ../../library/curses.rst:1433 msgid "``A_ITALIC`` was added." msgstr "``A_ITALIC`` が追加されました。" -#: ../../library/curses.rst:1428 +#: ../../library/curses.rst:1436 msgid "" "Several constants are available to extract corresponding attributes returned " "by some methods." msgstr "" -#: ../../library/curses.rst:1432 +#: ../../library/curses.rst:1440 msgid "Bit-mask" msgstr "" -#: ../../library/curses.rst:1434 +#: ../../library/curses.rst:1442 msgid "Bit-mask to extract attributes" msgstr "" -#: ../../library/curses.rst:1437 +#: ../../library/curses.rst:1445 msgid "Bit-mask to extract a character" msgstr "" -#: ../../library/curses.rst:1440 +#: ../../library/curses.rst:1448 msgid "Bit-mask to extract color-pair field information" msgstr "" -#: ../../library/curses.rst:1444 +#: ../../library/curses.rst:1452 msgid "" "Keys are referred to by integer constants with names starting with " "``KEY_``. The exact keycaps available are system dependent." @@ -2105,391 +2106,391 @@ msgstr "" "キーは ``KEY_`` で始まる名前をもつ整数定数です。利用可能なキーキャップはシス" "テムに依存します。" -#: ../../library/curses.rst:1450 +#: ../../library/curses.rst:1458 msgid "Key constant" msgstr "キー定数" -#: ../../library/curses.rst:1450 +#: ../../library/curses.rst:1458 msgid "Key" msgstr "キー" -#: ../../library/curses.rst:1452 +#: ../../library/curses.rst:1460 msgid "Minimum key value" msgstr "最小のキー値" -#: ../../library/curses.rst:1454 +#: ../../library/curses.rst:1462 msgid "Break key (unreliable)" msgstr "ブレークキー (Break, 信頼できません)" -#: ../../library/curses.rst:1456 +#: ../../library/curses.rst:1464 msgid "Down-arrow" msgstr "下矢印" -#: ../../library/curses.rst:1458 +#: ../../library/curses.rst:1466 msgid "Up-arrow" msgstr "上矢印" -#: ../../library/curses.rst:1460 +#: ../../library/curses.rst:1468 msgid "Left-arrow" msgstr "左矢印" -#: ../../library/curses.rst:1462 +#: ../../library/curses.rst:1470 msgid "Right-arrow" msgstr "右矢印" -#: ../../library/curses.rst:1464 +#: ../../library/curses.rst:1472 msgid "Home key (upward+left arrow)" msgstr "ホームキー (Home, または上左矢印)" -#: ../../library/curses.rst:1466 +#: ../../library/curses.rst:1474 msgid "Backspace (unreliable)" msgstr "バックスペース (Backspace, 信頼できません)" -#: ../../library/curses.rst:1468 +#: ../../library/curses.rst:1476 msgid "Function keys. Up to 64 function keys are supported." msgstr "ファンクションキー。64 個までサポートされています。" -#: ../../library/curses.rst:1471 +#: ../../library/curses.rst:1479 msgid "Value of function key *n*" msgstr "ファンクションキー *n* の値" -#: ../../library/curses.rst:1473 +#: ../../library/curses.rst:1481 msgid "Delete line" msgstr "行削除 (Delete line)" -#: ../../library/curses.rst:1475 +#: ../../library/curses.rst:1483 msgid "Insert line" msgstr "行挿入 (Insert line)" -#: ../../library/curses.rst:1477 +#: ../../library/curses.rst:1485 msgid "Delete character" msgstr "文字削除 (Delete char)" -#: ../../library/curses.rst:1479 +#: ../../library/curses.rst:1487 msgid "Insert char or enter insert mode" msgstr "文字挿入、または文字挿入モードへ入る" -#: ../../library/curses.rst:1481 +#: ../../library/curses.rst:1489 msgid "Exit insert char mode" msgstr "文字挿入モードから抜ける" -#: ../../library/curses.rst:1483 +#: ../../library/curses.rst:1491 msgid "Clear screen" msgstr "画面消去" -#: ../../library/curses.rst:1485 +#: ../../library/curses.rst:1493 msgid "Clear to end of screen" msgstr "画面の末端まで消去" -#: ../../library/curses.rst:1487 +#: ../../library/curses.rst:1495 msgid "Clear to end of line" msgstr "行末端まで消去" -#: ../../library/curses.rst:1489 +#: ../../library/curses.rst:1497 msgid "Scroll 1 line forward" msgstr "前に 1 行スクロール" -#: ../../library/curses.rst:1491 +#: ../../library/curses.rst:1499 msgid "Scroll 1 line backward (reverse)" msgstr "後ろ (逆方向) に 1 行スクロール" -#: ../../library/curses.rst:1493 +#: ../../library/curses.rst:1501 msgid "Next page" msgstr "次のページ (Page Next)" -#: ../../library/curses.rst:1495 +#: ../../library/curses.rst:1503 msgid "Previous page" msgstr "前のページ (Page Prev)" -#: ../../library/curses.rst:1497 +#: ../../library/curses.rst:1505 msgid "Set tab" msgstr "タブ設定" -#: ../../library/curses.rst:1499 +#: ../../library/curses.rst:1507 msgid "Clear tab" msgstr "タブリセット" -#: ../../library/curses.rst:1501 +#: ../../library/curses.rst:1509 msgid "Clear all tabs" msgstr "すべてのタブをリセット" -#: ../../library/curses.rst:1503 +#: ../../library/curses.rst:1511 msgid "Enter or send (unreliable)" msgstr "入力または送信 (信頼できません)" -#: ../../library/curses.rst:1505 +#: ../../library/curses.rst:1513 msgid "Soft (partial) reset (unreliable)" msgstr "ソフトウェア (部分的) リセット (信頼できません)" -#: ../../library/curses.rst:1507 +#: ../../library/curses.rst:1515 msgid "Reset or hard reset (unreliable)" msgstr "リセットまたはハードリセット (信頼できません)" -#: ../../library/curses.rst:1509 +#: ../../library/curses.rst:1517 msgid "Print" msgstr "印刷 (Print)" -#: ../../library/curses.rst:1511 +#: ../../library/curses.rst:1519 msgid "Home down or bottom (lower left)" msgstr "下ホーム (Home down) または最下行 (左下)" -#: ../../library/curses.rst:1513 +#: ../../library/curses.rst:1521 msgid "Upper left of keypad" msgstr "キーパッドの左上キー" -#: ../../library/curses.rst:1515 +#: ../../library/curses.rst:1523 msgid "Upper right of keypad" msgstr "キーパッドの右上キー" -#: ../../library/curses.rst:1517 +#: ../../library/curses.rst:1525 msgid "Center of keypad" msgstr "キーパッドの中央キー" -#: ../../library/curses.rst:1519 +#: ../../library/curses.rst:1527 msgid "Lower left of keypad" msgstr "キーパッドの左下キー" -#: ../../library/curses.rst:1521 +#: ../../library/curses.rst:1529 msgid "Lower right of keypad" msgstr "キーパッドの右下キー" -#: ../../library/curses.rst:1523 +#: ../../library/curses.rst:1531 msgid "Back tab" msgstr "Back tab" -#: ../../library/curses.rst:1525 +#: ../../library/curses.rst:1533 msgid "Beg (beginning)" msgstr "開始 (Beg)" -#: ../../library/curses.rst:1527 +#: ../../library/curses.rst:1535 msgid "Cancel" msgstr "キャンセル (Cancel)" -#: ../../library/curses.rst:1529 +#: ../../library/curses.rst:1537 msgid "Close" msgstr "Close [閉じる]" -#: ../../library/curses.rst:1531 +#: ../../library/curses.rst:1539 msgid "Cmd (command)" msgstr "コマンド (Cmd)" -#: ../../library/curses.rst:1533 +#: ../../library/curses.rst:1541 msgid "Copy" msgstr "Copy [コピー]" -#: ../../library/curses.rst:1535 +#: ../../library/curses.rst:1543 msgid "Create" msgstr "生成 (Create)" -#: ../../library/curses.rst:1537 +#: ../../library/curses.rst:1545 msgid "End" msgstr "終了 (End)" -#: ../../library/curses.rst:1539 +#: ../../library/curses.rst:1547 msgid "Exit" msgstr "Exit [終了]" -#: ../../library/curses.rst:1541 +#: ../../library/curses.rst:1549 msgid "Find" msgstr "検索 (Find)" -#: ../../library/curses.rst:1543 +#: ../../library/curses.rst:1551 msgid "Help" msgstr "ヘルプ (Help)" -#: ../../library/curses.rst:1545 +#: ../../library/curses.rst:1553 msgid "Mark" msgstr "マーク (Mark)" -#: ../../library/curses.rst:1547 +#: ../../library/curses.rst:1555 msgid "Message" msgstr "メッセージ (Message)" -#: ../../library/curses.rst:1549 +#: ../../library/curses.rst:1557 msgid "Move" msgstr "移動 (Move)" -#: ../../library/curses.rst:1551 +#: ../../library/curses.rst:1559 msgid "Next" msgstr "次へ (Next)" -#: ../../library/curses.rst:1553 +#: ../../library/curses.rst:1561 msgid "Open" msgstr "開く (Open)" -#: ../../library/curses.rst:1555 +#: ../../library/curses.rst:1563 msgid "Options" msgstr "オプション" -#: ../../library/curses.rst:1557 +#: ../../library/curses.rst:1565 msgid "Prev (previous)" msgstr "前へ (Prev)" -#: ../../library/curses.rst:1559 +#: ../../library/curses.rst:1567 msgid "Redo" msgstr "Redo [やり直し]" -#: ../../library/curses.rst:1561 +#: ../../library/curses.rst:1569 msgid "Ref (reference)" msgstr "参照 (Ref)" -#: ../../library/curses.rst:1563 +#: ../../library/curses.rst:1571 msgid "Refresh" msgstr "更新 (Refresh)" -#: ../../library/curses.rst:1565 +#: ../../library/curses.rst:1573 msgid "Replace" msgstr "置換 (Replace)" -#: ../../library/curses.rst:1567 +#: ../../library/curses.rst:1575 msgid "Restart" msgstr "再起動 (Restart)" -#: ../../library/curses.rst:1569 +#: ../../library/curses.rst:1577 msgid "Resume" msgstr "再開 (Resume)" -#: ../../library/curses.rst:1571 +#: ../../library/curses.rst:1579 msgid "Save" msgstr "Save [保存]" -#: ../../library/curses.rst:1573 +#: ../../library/curses.rst:1581 msgid "Shifted Beg (beginning)" msgstr "シフト付き Beg" -#: ../../library/curses.rst:1575 +#: ../../library/curses.rst:1583 msgid "Shifted Cancel" msgstr "シフト付き Cancel" -#: ../../library/curses.rst:1577 +#: ../../library/curses.rst:1585 msgid "Shifted Command" msgstr "シフト付き Command" -#: ../../library/curses.rst:1579 +#: ../../library/curses.rst:1587 msgid "Shifted Copy" msgstr "シフト付き Copy" -#: ../../library/curses.rst:1581 +#: ../../library/curses.rst:1589 msgid "Shifted Create" msgstr "シフト付き Create" -#: ../../library/curses.rst:1583 +#: ../../library/curses.rst:1591 msgid "Shifted Delete char" msgstr "シフト付き Delete char" -#: ../../library/curses.rst:1585 +#: ../../library/curses.rst:1593 msgid "Shifted Delete line" msgstr "シフト付き Delete line" -#: ../../library/curses.rst:1587 +#: ../../library/curses.rst:1595 msgid "Select" msgstr "選択 (Select)" -#: ../../library/curses.rst:1589 +#: ../../library/curses.rst:1597 msgid "Shifted End" msgstr "シフト付き End" -#: ../../library/curses.rst:1591 +#: ../../library/curses.rst:1599 msgid "Shifted Clear line" msgstr "シフト付き Clear line" -#: ../../library/curses.rst:1593 +#: ../../library/curses.rst:1601 msgid "Shifted Exit" msgstr "シフト付き Exit" -#: ../../library/curses.rst:1595 +#: ../../library/curses.rst:1603 msgid "Shifted Find" msgstr "シフト付き Find" -#: ../../library/curses.rst:1597 +#: ../../library/curses.rst:1605 msgid "Shifted Help" msgstr "シフト付き Help" -#: ../../library/curses.rst:1599 +#: ../../library/curses.rst:1607 msgid "Shifted Home" msgstr "シフト付き Home" -#: ../../library/curses.rst:1601 +#: ../../library/curses.rst:1609 msgid "Shifted Input" msgstr "シフト付き Input" -#: ../../library/curses.rst:1603 +#: ../../library/curses.rst:1611 msgid "Shifted Left arrow" msgstr "シフト付き Left arrow" -#: ../../library/curses.rst:1605 +#: ../../library/curses.rst:1613 msgid "Shifted Message" msgstr "シフト付き Message" -#: ../../library/curses.rst:1607 +#: ../../library/curses.rst:1615 msgid "Shifted Move" msgstr "シフト付き Move" -#: ../../library/curses.rst:1609 +#: ../../library/curses.rst:1617 msgid "Shifted Next" msgstr "シフト付き Next" -#: ../../library/curses.rst:1611 +#: ../../library/curses.rst:1619 msgid "Shifted Options" msgstr "シフト付き Options" -#: ../../library/curses.rst:1613 +#: ../../library/curses.rst:1621 msgid "Shifted Prev" msgstr "シフト付き Prev" -#: ../../library/curses.rst:1615 +#: ../../library/curses.rst:1623 msgid "Shifted Print" msgstr "シフト付き Print" -#: ../../library/curses.rst:1617 +#: ../../library/curses.rst:1625 msgid "Shifted Redo" msgstr "シフト付き Redo" -#: ../../library/curses.rst:1619 +#: ../../library/curses.rst:1627 msgid "Shifted Replace" msgstr "シフト付き Replace" -#: ../../library/curses.rst:1621 +#: ../../library/curses.rst:1629 msgid "Shifted Right arrow" msgstr "シフト付き Right arrow" -#: ../../library/curses.rst:1623 +#: ../../library/curses.rst:1631 msgid "Shifted Resume" msgstr "シフト付き Resume" -#: ../../library/curses.rst:1625 +#: ../../library/curses.rst:1633 msgid "Shifted Save" msgstr "シフト付き Save" -#: ../../library/curses.rst:1627 +#: ../../library/curses.rst:1635 msgid "Shifted Suspend" msgstr "シフト付き Suspend" -#: ../../library/curses.rst:1629 +#: ../../library/curses.rst:1637 msgid "Shifted Undo" msgstr "シフト付き Undo" -#: ../../library/curses.rst:1631 +#: ../../library/curses.rst:1639 msgid "Suspend" msgstr "一時停止 (Suspend)" -#: ../../library/curses.rst:1633 +#: ../../library/curses.rst:1641 msgid "Undo" msgstr "Undo [元に戻す]" -#: ../../library/curses.rst:1635 +#: ../../library/curses.rst:1643 msgid "Mouse event has occurred" msgstr "マウスイベント通知" -#: ../../library/curses.rst:1637 +#: ../../library/curses.rst:1645 msgid "Terminal resize event" msgstr "端末リサイズイベント" -#: ../../library/curses.rst:1639 +#: ../../library/curses.rst:1647 msgid "Maximum key value" msgstr "最大キー値" -#: ../../library/curses.rst:1642 +#: ../../library/curses.rst:1650 msgid "" "On VT100s and their software emulations, such as X terminal emulators, there " "are normally at least four function keys (:const:`KEY_F1 `, :const:" @@ -2501,64 +2502,64 @@ msgid "" "keypad mappings are standard:" msgstr "" -#: ../../library/curses.rst:1651 +#: ../../library/curses.rst:1659 msgid "Keycap" msgstr "キーキャップ" -#: ../../library/curses.rst:1651 ../../library/curses.rst:1796 -#: ../../library/curses.rst:1920 +#: ../../library/curses.rst:1659 ../../library/curses.rst:1804 +#: ../../library/curses.rst:1928 msgid "Constant" msgstr "定数" -#: ../../library/curses.rst:1653 +#: ../../library/curses.rst:1661 msgid ":kbd:`Insert`" msgstr ":kbd:`Insert`" -#: ../../library/curses.rst:1653 +#: ../../library/curses.rst:1661 msgid "KEY_IC" msgstr "KEY_IC" -#: ../../library/curses.rst:1655 +#: ../../library/curses.rst:1663 msgid ":kbd:`Delete`" msgstr ":kbd:`Delete`" -#: ../../library/curses.rst:1655 +#: ../../library/curses.rst:1663 msgid "KEY_DC" msgstr "KEY_DC" -#: ../../library/curses.rst:1657 +#: ../../library/curses.rst:1665 msgid ":kbd:`Home`" msgstr ":kbd:`Home`" -#: ../../library/curses.rst:1657 +#: ../../library/curses.rst:1665 msgid "KEY_HOME" msgstr "KEY_HOME" -#: ../../library/curses.rst:1659 +#: ../../library/curses.rst:1667 msgid ":kbd:`End`" msgstr ":kbd:`End`" -#: ../../library/curses.rst:1659 +#: ../../library/curses.rst:1667 msgid "KEY_END" msgstr "KEY_END" -#: ../../library/curses.rst:1661 +#: ../../library/curses.rst:1669 msgid ":kbd:`Page Up`" msgstr ":kbd:`Page Up`" -#: ../../library/curses.rst:1661 +#: ../../library/curses.rst:1669 msgid "KEY_PPAGE" msgstr "KEY_PPAGE" -#: ../../library/curses.rst:1663 +#: ../../library/curses.rst:1671 msgid ":kbd:`Page Down`" msgstr ":kbd:`Page Down`" -#: ../../library/curses.rst:1663 +#: ../../library/curses.rst:1671 msgid "KEY_NPAGE" msgstr "KEY_NPAGE" -#: ../../library/curses.rst:1668 +#: ../../library/curses.rst:1676 msgid "" "The following table lists characters from the alternate character set. These " "are inherited from the VT100 terminal, and will generally be available on " @@ -2570,269 +2571,269 @@ msgstr "" "グラフィックが利用できない場合、curses は印字可能 ASCII文字による粗雑な近似出" "力を行います。" -#: ../../library/curses.rst:1675 +#: ../../library/curses.rst:1683 msgid "These are available only after :func:`initscr` has been called." msgstr "これらは :func:`initscr` が呼び出された後でしか利用できません。" -#: ../../library/curses.rst:1678 +#: ../../library/curses.rst:1686 msgid "ACS code" msgstr "ACS コード" -#: ../../library/curses.rst:1680 +#: ../../library/curses.rst:1688 msgid "alternate name for upper right corner" msgstr "右上角の別名" -#: ../../library/curses.rst:1682 +#: ../../library/curses.rst:1690 msgid "solid square block" msgstr "黒四角ブロック" -#: ../../library/curses.rst:1684 +#: ../../library/curses.rst:1692 msgid "board of squares" msgstr "白四角ブロック" -#: ../../library/curses.rst:1686 +#: ../../library/curses.rst:1694 msgid "alternate name for horizontal line" msgstr "水平線の別名" -#: ../../library/curses.rst:1688 +#: ../../library/curses.rst:1696 msgid "alternate name for upper left corner" msgstr "左上角の別名" -#: ../../library/curses.rst:1690 +#: ../../library/curses.rst:1698 msgid "alternate name for top tee" msgstr "上向き T 字罫線の別名" -#: ../../library/curses.rst:1692 +#: ../../library/curses.rst:1700 msgid "bottom tee" msgstr "下向き T 字罫線" -#: ../../library/curses.rst:1694 +#: ../../library/curses.rst:1702 msgid "bullet" msgstr "黒丸(bullet)" -#: ../../library/curses.rst:1696 +#: ../../library/curses.rst:1704 msgid "checker board (stipple)" msgstr "チェッカーボードパタン (点描)" -#: ../../library/curses.rst:1698 +#: ../../library/curses.rst:1706 msgid "arrow pointing down" msgstr "下向き矢印" -#: ../../library/curses.rst:1700 +#: ../../library/curses.rst:1708 msgid "degree symbol" msgstr "度記号" -#: ../../library/curses.rst:1702 +#: ../../library/curses.rst:1710 msgid "diamond" msgstr "ダイアモンド" -#: ../../library/curses.rst:1704 +#: ../../library/curses.rst:1712 msgid "greater-than-or-equal-to" msgstr "大なりイコール" -#: ../../library/curses.rst:1706 +#: ../../library/curses.rst:1714 msgid "horizontal line" msgstr "水平線" -#: ../../library/curses.rst:1708 +#: ../../library/curses.rst:1716 msgid "lantern symbol" msgstr "ランタン(lantern) シンボル" -#: ../../library/curses.rst:1710 +#: ../../library/curses.rst:1718 msgid "left arrow" msgstr "左向き矢印" -#: ../../library/curses.rst:1712 +#: ../../library/curses.rst:1720 msgid "less-than-or-equal-to" msgstr "小なりイコール" -#: ../../library/curses.rst:1714 +#: ../../library/curses.rst:1722 msgid "lower left-hand corner" msgstr "左下角" -#: ../../library/curses.rst:1716 +#: ../../library/curses.rst:1724 msgid "lower right-hand corner" msgstr "右下角" -#: ../../library/curses.rst:1718 +#: ../../library/curses.rst:1726 msgid "left tee" msgstr "左向き T 字罫線" -#: ../../library/curses.rst:1720 +#: ../../library/curses.rst:1728 msgid "not-equal sign" msgstr "不等号" -#: ../../library/curses.rst:1722 +#: ../../library/curses.rst:1730 msgid "letter pi" msgstr "パイ記号" -#: ../../library/curses.rst:1724 +#: ../../library/curses.rst:1732 msgid "plus-or-minus sign" msgstr "プラスマイナス記号" -#: ../../library/curses.rst:1726 +#: ../../library/curses.rst:1734 msgid "big plus sign" msgstr "大プラス記号" -#: ../../library/curses.rst:1728 +#: ../../library/curses.rst:1736 msgid "right arrow" msgstr "右向き矢印" -#: ../../library/curses.rst:1730 +#: ../../library/curses.rst:1738 msgid "right tee" msgstr "右向き T 字罫線" -#: ../../library/curses.rst:1732 +#: ../../library/curses.rst:1740 msgid "scan line 1" msgstr "スキャンライン 1" -#: ../../library/curses.rst:1734 +#: ../../library/curses.rst:1742 msgid "scan line 3" msgstr "スキャンライン 3" -#: ../../library/curses.rst:1736 +#: ../../library/curses.rst:1744 msgid "scan line 7" msgstr "スキャンライン 7" -#: ../../library/curses.rst:1738 +#: ../../library/curses.rst:1746 msgid "scan line 9" msgstr "スキャンライン 9" -#: ../../library/curses.rst:1740 +#: ../../library/curses.rst:1748 msgid "alternate name for lower right corner" msgstr "右下角の別名" -#: ../../library/curses.rst:1742 +#: ../../library/curses.rst:1750 msgid "alternate name for vertical line" msgstr "垂直線の別名" -#: ../../library/curses.rst:1744 +#: ../../library/curses.rst:1752 msgid "alternate name for right tee" msgstr "右向き T 字罫線の別名" -#: ../../library/curses.rst:1746 +#: ../../library/curses.rst:1754 msgid "alternate name for lower left corner" msgstr "左下角の別名" -#: ../../library/curses.rst:1748 +#: ../../library/curses.rst:1756 msgid "alternate name for bottom tee" msgstr "下向き T 字罫線の別名" -#: ../../library/curses.rst:1750 +#: ../../library/curses.rst:1758 msgid "alternate name for left tee" msgstr "左向き T 字罫線の別名" -#: ../../library/curses.rst:1752 +#: ../../library/curses.rst:1760 msgid "alternate name for crossover or big plus" msgstr "交差罫線または大プラス記号の別名" -#: ../../library/curses.rst:1754 +#: ../../library/curses.rst:1762 msgid "pound sterling" msgstr "ポンドスターリング記号" -#: ../../library/curses.rst:1756 +#: ../../library/curses.rst:1764 msgid "top tee" msgstr "上向き T 字罫線" -#: ../../library/curses.rst:1758 +#: ../../library/curses.rst:1766 msgid "up arrow" msgstr "上向き矢印" -#: ../../library/curses.rst:1760 +#: ../../library/curses.rst:1768 msgid "upper left corner" msgstr "左上角" -#: ../../library/curses.rst:1762 +#: ../../library/curses.rst:1770 msgid "upper right corner" msgstr "右上角" -#: ../../library/curses.rst:1764 +#: ../../library/curses.rst:1772 msgid "vertical line" msgstr "垂直線" -#: ../../library/curses.rst:1767 +#: ../../library/curses.rst:1775 msgid "" "The following table lists mouse button constants used by :meth:`getmouse`:" msgstr "" -#: ../../library/curses.rst:1770 +#: ../../library/curses.rst:1778 msgid "Mouse button constant" msgstr "" -#: ../../library/curses.rst:1772 +#: ../../library/curses.rst:1780 msgid "Mouse button *n* pressed" msgstr "" -#: ../../library/curses.rst:1774 +#: ../../library/curses.rst:1782 msgid "Mouse button *n* released" msgstr "" -#: ../../library/curses.rst:1776 +#: ../../library/curses.rst:1784 msgid "Mouse button *n* clicked" msgstr "" -#: ../../library/curses.rst:1778 +#: ../../library/curses.rst:1786 msgid "Mouse button *n* double clicked" msgstr "" -#: ../../library/curses.rst:1780 +#: ../../library/curses.rst:1788 msgid "Mouse button *n* triple clicked" msgstr "" -#: ../../library/curses.rst:1782 +#: ../../library/curses.rst:1790 msgid "Shift was down during button state change" msgstr "" -#: ../../library/curses.rst:1784 ../../library/curses.rst:1786 +#: ../../library/curses.rst:1792 ../../library/curses.rst:1794 msgid "Control was down during button state change" msgstr "" -#: ../../library/curses.rst:1793 +#: ../../library/curses.rst:1801 msgid "The following table lists the predefined colors:" msgstr "以下のテーブルは定義済みの色を列挙したものです:" -#: ../../library/curses.rst:1796 +#: ../../library/curses.rst:1804 msgid "Color" msgstr "色" -#: ../../library/curses.rst:1798 +#: ../../library/curses.rst:1806 msgid "Black" msgstr "黒" -#: ../../library/curses.rst:1800 +#: ../../library/curses.rst:1808 msgid "Blue" msgstr "青" -#: ../../library/curses.rst:1802 +#: ../../library/curses.rst:1810 msgid "Cyan (light greenish blue)" msgstr "シアン (薄く緑がかった青)" -#: ../../library/curses.rst:1804 +#: ../../library/curses.rst:1812 msgid "Green" msgstr "緑" -#: ../../library/curses.rst:1806 +#: ../../library/curses.rst:1814 msgid "Magenta (purplish red)" msgstr "マゼンタ (紫がかった赤)" -#: ../../library/curses.rst:1808 +#: ../../library/curses.rst:1816 msgid "Red" msgstr "赤" -#: ../../library/curses.rst:1810 +#: ../../library/curses.rst:1818 msgid "White" msgstr "白" -#: ../../library/curses.rst:1812 +#: ../../library/curses.rst:1820 msgid "Yellow" msgstr "黄色" -#: ../../library/curses.rst:1817 +#: ../../library/curses.rst:1825 msgid ":mod:`curses.textpad` --- Text input widget for curses programs" msgstr "" ":mod:`curses.textpad` --- curses プログラムのためのテキスト入力ウィジェット" -#: ../../library/curses.rst:1825 +#: ../../library/curses.rst:1833 msgid "" "The :mod:`curses.textpad` module provides a :class:`Textbox` class that " "handles elementary text editing in a curses window, supporting a set of " @@ -2847,11 +2848,11 @@ msgstr "" "class:`Textbox` クラスを提供します。このモジュールではまた、テキストボックス" "を枠で囲むなどの目的のために有用な、矩形描画関数を提供しています。" -#: ../../library/curses.rst:1831 +#: ../../library/curses.rst:1839 msgid "The module :mod:`curses.textpad` defines the following function:" msgstr ":mod:`curses.textpad` モジュールでは以下の関数を定義しています:" -#: ../../library/curses.rst:1836 +#: ../../library/curses.rst:1844 msgid "" "Draw a rectangle. The first argument must be a window object; the remaining " "arguments are coordinates relative to that window. The second and third " @@ -2870,17 +2871,17 @@ msgstr "" "れを使って描画されます。そうでなければ ASCII 文字のダッシュ、垂直バー、および" "プラス記号で描画されます。" -#: ../../library/curses.rst:1849 +#: ../../library/curses.rst:1857 msgid "Textbox objects" msgstr "Textbox オブジェクト" -#: ../../library/curses.rst:1851 +#: ../../library/curses.rst:1859 msgid "You can instantiate a :class:`Textbox` object as follows:" msgstr "" "以下のような :class:`Textbox` オブジェクトをインスタンス生成することができま" "す:" -#: ../../library/curses.rst:1856 +#: ../../library/curses.rst:1864 msgid "" "Return a textbox widget object. The *win* argument should be a curses :ref:" "`window ` object in which the textbox is to be " @@ -2894,11 +2895,11 @@ msgstr "" "スが入っているウィンドウの左上角に配置され、その座標は ``(0, 0)`` です。イン" "スタンスの :attr:`stripspaces` フラグの初期値はオンに設定されます。" -#: ../../library/curses.rst:1862 +#: ../../library/curses.rst:1870 msgid ":class:`Textbox` objects have the following methods:" msgstr ":class:`Textbox` オブジェクトは以下のメソッドを持ちます:" -#: ../../library/curses.rst:1867 +#: ../../library/curses.rst:1875 msgid "" "This is the entry point you will normally use. It accepts editing " "keystrokes until one of the termination keystrokes is entered. If " @@ -2916,7 +2917,7 @@ msgstr "" "ウィンドウ内の空白が含められるかどうかは :attr:`stripspaces` 属性で決められま" "す。" -#: ../../library/curses.rst:1878 +#: ../../library/curses.rst:1886 msgid "" "Process a single command keystroke. Here are the supported special " "keystrokes:" @@ -2924,123 +2925,123 @@ msgstr "" "単一のコマンドキーストロークを処理します。以下にサポートされている特殊キース" "トロークを示します:" -#: ../../library/curses.rst:1882 ../../library/curses.rst:1920 +#: ../../library/curses.rst:1890 ../../library/curses.rst:1928 msgid "Keystroke" msgstr "キーストローク" -#: ../../library/curses.rst:1882 +#: ../../library/curses.rst:1890 msgid "Action" msgstr "動作" -#: ../../library/curses.rst:1884 +#: ../../library/curses.rst:1892 msgid ":kbd:`Control-A`" msgstr ":kbd:`Control-A`" -#: ../../library/curses.rst:1884 +#: ../../library/curses.rst:1892 msgid "Go to left edge of window." msgstr "ウィンドウの左端に移動します。" -#: ../../library/curses.rst:1886 ../../library/curses.rst:1922 +#: ../../library/curses.rst:1894 ../../library/curses.rst:1930 msgid ":kbd:`Control-B`" msgstr ":kbd:`Control-B`" -#: ../../library/curses.rst:1886 +#: ../../library/curses.rst:1894 msgid "Cursor left, wrapping to previous line if appropriate." msgstr "カーソルを左へ移動し、必要なら前の行に折り返します。" -#: ../../library/curses.rst:1889 +#: ../../library/curses.rst:1897 msgid ":kbd:`Control-D`" msgstr ":kbd:`Control-D`" -#: ../../library/curses.rst:1889 +#: ../../library/curses.rst:1897 msgid "Delete character under cursor." msgstr "カーソル下の文字を削除します。" -#: ../../library/curses.rst:1891 +#: ../../library/curses.rst:1899 msgid ":kbd:`Control-E`" msgstr ":kbd:`Control-E`" -#: ../../library/curses.rst:1891 +#: ../../library/curses.rst:1899 msgid "Go to right edge (stripspaces off) or end of line (stripspaces on)." msgstr "" "右端 (stripspaces がオフのとき) または行末 (stripspaces がオンのとき) に移動" "します。" -#: ../../library/curses.rst:1894 ../../library/curses.rst:1924 +#: ../../library/curses.rst:1902 ../../library/curses.rst:1932 msgid ":kbd:`Control-F`" msgstr ":kbd:`Control-F`" -#: ../../library/curses.rst:1894 +#: ../../library/curses.rst:1902 msgid "Cursor right, wrapping to next line when appropriate." msgstr "カーソルを右に移動し、必要なら次の行に折り返します。" -#: ../../library/curses.rst:1897 +#: ../../library/curses.rst:1905 msgid ":kbd:`Control-G`" msgstr ":kbd:`Control-G`" -#: ../../library/curses.rst:1897 +#: ../../library/curses.rst:1905 msgid "Terminate, returning the window contents." msgstr "ウィンドウを終了し、その内容を返します。" -#: ../../library/curses.rst:1899 +#: ../../library/curses.rst:1907 msgid ":kbd:`Control-H`" msgstr ":kbd:`Control-H`" -#: ../../library/curses.rst:1899 +#: ../../library/curses.rst:1907 msgid "Delete character backward." msgstr "逆方向に文字を削除します。" -#: ../../library/curses.rst:1901 +#: ../../library/curses.rst:1909 msgid ":kbd:`Control-J`" msgstr ":kbd:`Control-J`" -#: ../../library/curses.rst:1901 +#: ../../library/curses.rst:1909 msgid "Terminate if the window is 1 line, otherwise insert newline." msgstr "ウィンドウが 1 行であれば終了し、そうでなければ新しい行を挿入します。" -#: ../../library/curses.rst:1904 +#: ../../library/curses.rst:1912 msgid ":kbd:`Control-K`" msgstr ":kbd:`Control-K`" -#: ../../library/curses.rst:1904 +#: ../../library/curses.rst:1912 msgid "If line is blank, delete it, otherwise clear to end of line." msgstr "" "行が空白行ならその行全体を削除し、そうでなければカーソル以降行末までを消去し" "ます。" -#: ../../library/curses.rst:1907 +#: ../../library/curses.rst:1915 msgid ":kbd:`Control-L`" msgstr ":kbd:`Control-L`" -#: ../../library/curses.rst:1907 +#: ../../library/curses.rst:1915 msgid "Refresh screen." msgstr "スクリーンを更新します。" -#: ../../library/curses.rst:1909 ../../library/curses.rst:1928 +#: ../../library/curses.rst:1917 ../../library/curses.rst:1936 msgid ":kbd:`Control-N`" msgstr ":kbd:`Control-N`" -#: ../../library/curses.rst:1909 +#: ../../library/curses.rst:1917 msgid "Cursor down; move down one line." msgstr "カーソルを下に移動します; 1 行下に移動します。" -#: ../../library/curses.rst:1911 +#: ../../library/curses.rst:1919 msgid ":kbd:`Control-O`" msgstr ":kbd:`Control-O`" -#: ../../library/curses.rst:1911 +#: ../../library/curses.rst:1919 msgid "Insert a blank line at cursor location." msgstr "カーソルの場所に空行を 1 行挿入します。" -#: ../../library/curses.rst:1913 ../../library/curses.rst:1926 +#: ../../library/curses.rst:1921 ../../library/curses.rst:1934 msgid ":kbd:`Control-P`" msgstr ":kbd:`Control-P`" -#: ../../library/curses.rst:1913 +#: ../../library/curses.rst:1921 msgid "Cursor up; move up one line." msgstr "カーソルを上に移動します; 1 行上に移動します。" -#: ../../library/curses.rst:1916 +#: ../../library/curses.rst:1924 msgid "" "Move operations do nothing if the cursor is at an edge where the movement is " "not possible. The following synonyms are supported where possible:" @@ -3048,31 +3049,31 @@ msgstr "" "移動操作は、カーソルがウィンドウの縁にあって移動ができない場合には何も行いま" "せん。場合によっては、以下のような同義のキーストロークがサポートされています:" -#: ../../library/curses.rst:1922 +#: ../../library/curses.rst:1930 msgid ":const:`~curses.KEY_LEFT`" msgstr "" -#: ../../library/curses.rst:1924 +#: ../../library/curses.rst:1932 msgid ":const:`~curses.KEY_RIGHT`" msgstr "" -#: ../../library/curses.rst:1926 +#: ../../library/curses.rst:1934 msgid ":const:`~curses.KEY_UP`" msgstr "" -#: ../../library/curses.rst:1928 +#: ../../library/curses.rst:1936 msgid ":const:`~curses.KEY_DOWN`" msgstr "" -#: ../../library/curses.rst:1930 +#: ../../library/curses.rst:1938 msgid ":const:`~curses.KEY_BACKSPACE`" msgstr "" -#: ../../library/curses.rst:1930 +#: ../../library/curses.rst:1938 msgid ":kbd:`Control-h`" msgstr ":kbd:`Control-h`" -#: ../../library/curses.rst:1933 +#: ../../library/curses.rst:1941 msgid "" "All other keystrokes are treated as a command to insert the given character " "and move right (with line wrapping)." @@ -3080,7 +3081,7 @@ msgstr "" "他のキーストロークは、与えられた文字を挿入し、(行折り返し付きで) 右に移動する" "コマンドとして扱われます。" -#: ../../library/curses.rst:1939 +#: ../../library/curses.rst:1947 msgid "" "Return the window contents as a string; whether blanks in the window are " "included is affected by the :attr:`stripspaces` member." @@ -3088,7 +3089,7 @@ msgstr "" "ウィンドウの内容を文字列として返します; ウィンドウ内の空白が含められるかどう" "かは :attr:`stripspaces` メンバ変数で決められます。" -#: ../../library/curses.rst:1945 +#: ../../library/curses.rst:1953 msgid "" "This attribute is a flag which controls the interpretation of blanks in the " "window. When it is on, trailing blanks on each line are ignored; any cursor " diff --git a/library/custominterp.po b/library/custominterp.po index 999cae789..661ee6568 100644 --- a/library/custominterp.po +++ b/library/custominterp.po @@ -1,5 +1,5 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2025, Python Software Foundation +# Copyright (C) 2001 Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # @@ -10,17 +10,17 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: Python 3.13\n" +"Project-Id-Version: Python 3.14\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2025-05-02 14:19+0000\n" +"POT-Creation-Date: 2025-05-23 14:20+0000\n" "PO-Revision-Date: 2021-06-28 01:03+0000\n" "Last-Translator: 石井明久, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../library/custominterp.rst:5 diff --git a/library/dataclasses.po b/library/dataclasses.po index df6554c1b..77db13191 100644 --- a/library/dataclasses.po +++ b/library/dataclasses.po @@ -15,15 +15,15 @@ msgid "" msgstr "" "Project-Id-Version: Python 3.14\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2025-05-08 02:53-0300\n" +"POT-Creation-Date: 2025-05-23 14:20+0000\n" "PO-Revision-Date: 2021-06-28 01:03+0000\n" "Last-Translator: 石井明久, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../library/dataclasses.rst:2 @@ -485,7 +485,7 @@ msgid "Keyword-only fields are also not included in :attr:`!__match_args__`." msgstr "" #: ../../library/dataclasses.rst:307 -msgid "``doc``: optional docstring for this field." +msgid "*doc*: optional docstring for this field." msgstr "" #: ../../library/dataclasses.rst:311 diff --git a/library/datatypes.po b/library/datatypes.po index d16e6da42..dcf63feb2 100644 --- a/library/datatypes.po +++ b/library/datatypes.po @@ -16,10 +16,10 @@ msgstr "" "Last-Translator: tomo, 2021\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../library/datatypes.rst:5 diff --git a/library/datetime.po b/library/datetime.po index 36bedefcf..c6a94815b 100644 --- a/library/datetime.po +++ b/library/datetime.po @@ -16,15 +16,15 @@ msgid "" msgstr "" "Project-Id-Version: Python 3.14\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2025-05-08 02:53-0300\n" +"POT-Creation-Date: 2025-05-16 14:19+0000\n" "PO-Revision-Date: 2021-06-28 01:04+0000\n" "Last-Translator: Takanori Suzuki , 2025\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../library/datetime.rst:2 @@ -496,19 +496,39 @@ msgid "" "(-1, 86399, 999999)" msgstr "" -#: ../../library/datetime.rst:265 ../../library/datetime.rst:599 -#: ../../library/datetime.rst:1159 ../../library/datetime.rst:1797 -#: ../../library/datetime.rst:2418 +#: ../../library/datetime.rst:264 +msgid "" +"Since the string representation of :class:`!timedelta` objects can be " +"confusing, use the following recipe to produce a more readable format:" +msgstr "" + +#: ../../library/datetime.rst:267 +msgid "" +">>> def pretty_timedelta(td):\n" +"... if td.days >= 0:\n" +"... return str(td)\n" +"... return f'-({-td!s})'\n" +"...\n" +">>> d = timedelta(hours=-1)\n" +">>> str(d) # not human-friendly\n" +"'-1 day, 23:00:00'\n" +">>> pretty_timedelta(d)\n" +"'-(1:00:00)'" +msgstr "" + +#: ../../library/datetime.rst:281 ../../library/datetime.rst:615 +#: ../../library/datetime.rst:1175 ../../library/datetime.rst:1813 +#: ../../library/datetime.rst:2434 msgid "Class attributes:" msgstr "以下にクラス属性を示します:" -#: ../../library/datetime.rst:269 +#: ../../library/datetime.rst:285 msgid "The most negative :class:`timedelta` object, ``timedelta(-999999999)``." msgstr "" "最小の値を表す :class:`timedelta` オブジェクトで、 ``timedelta(-999999999)`` " "です。" -#: ../../library/datetime.rst:274 +#: ../../library/datetime.rst:290 msgid "" "The most positive :class:`timedelta` object, ``timedelta(days=999999999, " "hours=23, minutes=59, seconds=59, microseconds=999999)``." @@ -517,7 +537,7 @@ msgstr "" "``timedelta(days=999999999, hours=23, minutes=59, seconds=59, " "microseconds=999999)`` です。" -#: ../../library/datetime.rst:280 +#: ../../library/datetime.rst:296 msgid "" "The smallest possible difference between non-equal :class:`timedelta` " "objects, ``timedelta(microseconds=1)``." @@ -525,7 +545,7 @@ msgstr "" ":class:`timedelta` オブジェクトが等しくならない最小の時間差で、 " "``timedelta(microseconds=1)`` です。" -#: ../../library/datetime.rst:283 +#: ../../library/datetime.rst:299 msgid "" "Note that, because of normalization, ``timedelta.max`` is greater than ``-" "timedelta.min``. ``-timedelta.max`` is not representable as a :class:" @@ -535,27 +555,27 @@ msgstr "" "してください。 ``-timedelta.max`` は :class:`timedelta` オブジェクトとして表" "現することができません。" -#: ../../library/datetime.rst:287 ../../library/datetime.rst:617 -#: ../../library/datetime.rst:1179 ../../library/datetime.rst:1817 +#: ../../library/datetime.rst:303 ../../library/datetime.rst:633 +#: ../../library/datetime.rst:1195 ../../library/datetime.rst:1833 msgid "Instance attributes (read-only):" msgstr "インスタンスの属性 (読み出しのみ):" -#: ../../library/datetime.rst:291 +#: ../../library/datetime.rst:307 msgid "Between -999,999,999 and 999,999,999 inclusive." msgstr "" -#: ../../library/datetime.rst:296 +#: ../../library/datetime.rst:312 msgid "Between 0 and 86,399 inclusive." msgstr "" -#: ../../library/datetime.rst:300 +#: ../../library/datetime.rst:316 msgid "" "It is a somewhat common bug for code to unintentionally use this attribute " "when it is actually intended to get a :meth:`~timedelta.total_seconds` value " "instead:" msgstr "" -#: ../../library/datetime.rst:304 +#: ../../library/datetime.rst:320 msgid "" ">>> from datetime import timedelta\n" ">>> duration = timedelta(seconds=11235813)\n" @@ -565,30 +585,30 @@ msgid "" "11235813.0" msgstr "" -#: ../../library/datetime.rst:315 +#: ../../library/datetime.rst:331 msgid "Between 0 and 999,999 inclusive." msgstr "" -#: ../../library/datetime.rst:318 ../../library/datetime.rst:634 -#: ../../library/datetime.rst:1232 +#: ../../library/datetime.rst:334 ../../library/datetime.rst:650 +#: ../../library/datetime.rst:1248 msgid "Supported operations:" msgstr "サポートされている演算を以下に示します:" -#: ../../library/datetime.rst:323 ../../library/datetime.rst:637 -#: ../../library/datetime.rst:1235 +#: ../../library/datetime.rst:339 ../../library/datetime.rst:653 +#: ../../library/datetime.rst:1251 msgid "Operation" msgstr "演算" -#: ../../library/datetime.rst:323 ../../library/datetime.rst:637 -#: ../../library/datetime.rst:1235 +#: ../../library/datetime.rst:339 ../../library/datetime.rst:653 +#: ../../library/datetime.rst:1251 msgid "Result" msgstr "結果" -#: ../../library/datetime.rst:325 +#: ../../library/datetime.rst:341 msgid "``t1 = t2 + t3``" msgstr "``t1 = t2 + t3``" -#: ../../library/datetime.rst:325 +#: ../../library/datetime.rst:341 msgid "" "Sum of ``t2`` and ``t3``. Afterwards ``t1 - t2 == t3`` and ``t1 - t3 == t2`` " "are true. (1)" @@ -596,11 +616,11 @@ msgstr "" "``t2`` と ``t3`` の和。演算後、``t1 - t2 == t3`` および ``t1 - t3 == t2`` は" "真になります。(1)" -#: ../../library/datetime.rst:329 +#: ../../library/datetime.rst:345 msgid "``t1 = t2 - t3``" msgstr "``t1 = t2 - t3``" -#: ../../library/datetime.rst:329 +#: ../../library/datetime.rst:345 msgid "" "Difference of ``t2`` and ``t3``. Afterwards ``t1 == t2 - t3`` and ``t2 == " "t1 + t3`` are true. (1)(6)" @@ -608,11 +628,11 @@ msgstr "" "``t2`` と ``t3`` の差。演算後、``t1 == t2 - t3`` および ``t2 == t1 + t3`` は" "真になります。 (1)(6)" -#: ../../library/datetime.rst:333 +#: ../../library/datetime.rst:349 msgid "``t1 = t2 * i or t1 = i * t2``" msgstr "``t1 = t2 * i または t1 = i * t2``" -#: ../../library/datetime.rst:333 +#: ../../library/datetime.rst:349 msgid "" "Delta multiplied by an integer. Afterwards ``t1 // i == t2`` is true, " "provided ``i != 0``." @@ -620,15 +640,15 @@ msgstr "" "時間差と整数の積。演算後、``t1 // i == t2`` は ``i != 0`` であれば真となりま" "す。" -#: ../../library/datetime.rst:337 +#: ../../library/datetime.rst:353 msgid "In general, ``t1 * i == t1 * (i-1) + t1`` is true. (1)" msgstr "一般的に、``t1 * i == t1 * (i-1) + t1`` は真となります。(1)" -#: ../../library/datetime.rst:340 +#: ../../library/datetime.rst:356 msgid "``t1 = t2 * f or t1 = f * t2``" msgstr "``t1 = t2 * f`` または ``t1 = f * t2``" -#: ../../library/datetime.rst:340 +#: ../../library/datetime.rst:356 msgid "" "Delta multiplied by a float. The result is rounded to the nearest multiple " "of timedelta.resolution using round-half-to-even." @@ -636,22 +656,22 @@ msgstr "" "時間差と浮動小数点の積。結果は最近接偶数への丸めを利用して最も近い timedelta." "resolution の倍数に丸められます。" -#: ../../library/datetime.rst:344 +#: ../../library/datetime.rst:360 msgid "``f = t2 / t3``" msgstr "``f = t2 / t3``" -#: ../../library/datetime.rst:344 +#: ../../library/datetime.rst:360 msgid "" "Division (3) of overall duration ``t2`` by interval unit ``t3``. Returns a :" "class:`float` object." msgstr "" "``t2`` を ``t3`` で除算 (3) したもの。:class:`float` オブジェクトを返します。" -#: ../../library/datetime.rst:348 +#: ../../library/datetime.rst:364 msgid "``t1 = t2 / f or t1 = t2 / i``" msgstr "``t1 = t2 / f`` または ``t1 = t2 / i``" -#: ../../library/datetime.rst:348 +#: ../../library/datetime.rst:364 msgid "" "Delta divided by a float or an int. The result is rounded to the nearest " "multiple of timedelta.resolution using round-half-to-even." @@ -659,11 +679,11 @@ msgstr "" "時間差を浮動小数点や整数で除したもの。結果は最近接偶数への丸めを利用して最も" "近い timedelta.resolution の倍数に丸められます。" -#: ../../library/datetime.rst:352 +#: ../../library/datetime.rst:368 msgid "``t1 = t2 // i`` or ``t1 = t2 // t3``" msgstr "``t1 = t2 // i`` または ``t1 = t2 // t3``" -#: ../../library/datetime.rst:352 +#: ../../library/datetime.rst:368 msgid "" "The floor is computed and the remainder (if any) is thrown away. In the " "second case, an integer is returned. (3)" @@ -671,47 +691,47 @@ msgstr "" "floor が計算され、余りは (もしあれば) 捨てられます。後者の場合、整数が返され" "ます。(3)" -#: ../../library/datetime.rst:356 +#: ../../library/datetime.rst:372 msgid "``t1 = t2 % t3``" msgstr "``t1 = t2 % t3``" -#: ../../library/datetime.rst:356 +#: ../../library/datetime.rst:372 msgid "The remainder is computed as a :class:`timedelta` object. (3)" msgstr "剰余が :class:`timedelta` オブジェクトとして計算されます。(3)" -#: ../../library/datetime.rst:359 +#: ../../library/datetime.rst:375 msgid "``q, r = divmod(t1, t2)``" msgstr "``q, r = divmod(t1, t2)``" -#: ../../library/datetime.rst:359 +#: ../../library/datetime.rst:375 msgid "" "Computes the quotient and the remainder: ``q = t1 // t2`` (3) and ``r = t1 % " "t2``. ``q`` is an integer and ``r`` is a :class:`timedelta` object." msgstr "" -#: ../../library/datetime.rst:364 +#: ../../library/datetime.rst:380 msgid "``+t1``" msgstr "``+t1``" -#: ../../library/datetime.rst:364 +#: ../../library/datetime.rst:380 msgid "Returns a :class:`timedelta` object with the same value. (2)" msgstr "同じ値を持つ :class:`timedelta` オブジェクトを返します。(2)" -#: ../../library/datetime.rst:367 +#: ../../library/datetime.rst:383 msgid "``-t1``" msgstr "``-t1``" -#: ../../library/datetime.rst:367 +#: ../../library/datetime.rst:383 msgid "" "Equivalent to ``timedelta(-t1.days, -t1.seconds, -t1.microseconds)``, and to " "``t1 * -1``. (1)(4)" msgstr "" -#: ../../library/datetime.rst:371 +#: ../../library/datetime.rst:387 msgid "``abs(t)``" msgstr "``abs(t)``" -#: ../../library/datetime.rst:371 +#: ../../library/datetime.rst:387 msgid "" "Equivalent to ``+t`` when ``t.days >= 0``, and to ``-t`` when ``t.days < " "0``. (2)" @@ -719,11 +739,11 @@ msgstr "" "``t.days >= 0`` のときには ``+t``, ``t.days < 0`` のときには ``-t`` となりま" "す。(2)" -#: ../../library/datetime.rst:374 +#: ../../library/datetime.rst:390 msgid "``str(t)``" msgstr "``str(t)``" -#: ../../library/datetime.rst:374 +#: ../../library/datetime.rst:390 msgid "" "Returns a string in the form ``[D day[s], ][H]H:MM:SS[.UUUUUU]``, where D is " "negative for negative ``t``. (5)" @@ -731,11 +751,11 @@ msgstr "" "``[D day[s], ][H]H:MM:SS[.UUUUUU]`` という形式の文字列を返します。``t`` が負" "の値の場合は ``D`` は負の値となります。(5)" -#: ../../library/datetime.rst:378 +#: ../../library/datetime.rst:394 msgid "``repr(t)``" msgstr "``repr(t)``" -#: ../../library/datetime.rst:378 +#: ../../library/datetime.rst:394 msgid "" "Returns a string representation of the :class:`timedelta` object as a " "constructor call with canonical attribute values." @@ -743,30 +763,30 @@ msgstr "" ":class:`timedelta` オブジェクトの文字列表現を返します。その文字列は、正規の属" "性値を持つコンストラクタ呼び出しのコードになっています。" -#: ../../library/datetime.rst:384 ../../library/datetime.rst:656 -#: ../../library/datetime.rst:2647 +#: ../../library/datetime.rst:400 ../../library/datetime.rst:672 +#: ../../library/datetime.rst:2663 msgid "Notes:" msgstr "注釈:" -#: ../../library/datetime.rst:387 +#: ../../library/datetime.rst:403 msgid "This is exact but may overflow." msgstr "この演算は正確ですが、オーバフローするかもしれません。" -#: ../../library/datetime.rst:390 +#: ../../library/datetime.rst:406 msgid "This is exact and cannot overflow." msgstr "この演算は正確であり、オーバフローし得ません。" -#: ../../library/datetime.rst:393 +#: ../../library/datetime.rst:409 msgid "Division by zero raises :exc:`ZeroDivisionError`." msgstr "0 による除算は :exc:`ZeroDivisionError` を送出します。" -#: ../../library/datetime.rst:396 +#: ../../library/datetime.rst:412 msgid "``-timedelta.max`` is not representable as a :class:`timedelta` object." msgstr "" "``-timedelta.max`` は :class:`timedelta` オブジェクトで表現することができませ" "ん。" -#: ../../library/datetime.rst:399 +#: ../../library/datetime.rst:415 msgid "" "String representations of :class:`timedelta` objects are normalized " "similarly to their internal representation. This leads to somewhat unusual " @@ -775,7 +795,7 @@ msgstr "" ":class:`timedelta` オブジェクトの文字列表現は内部表現に類似した形に正規化され" "ます。そのため負の timedelta は少し変な結果になります。例えば::" -#: ../../library/datetime.rst:403 +#: ../../library/datetime.rst:419 msgid "" ">>> timedelta(hours=-5)\n" "datetime.timedelta(days=-1, seconds=68400)\n" @@ -783,7 +803,7 @@ msgid "" "-1 day, 19:00:00" msgstr "" -#: ../../library/datetime.rst:409 +#: ../../library/datetime.rst:425 msgid "" "The expression ``t2 - t3`` will always be equal to the expression ``t2 + (-" "t3)`` except when t3 is equal to ``timedelta.max``; in that case the former " @@ -793,7 +813,7 @@ msgstr "" "t3)`` と同等です。t3 が ``timedelta.max`` の場合、前者の式は結果の値が出ます" "が、後者はオーバーフローを起こします。" -#: ../../library/datetime.rst:413 +#: ../../library/datetime.rst:429 msgid "" "In addition to the operations listed above, :class:`timedelta` objects " "support certain additions and subtractions with :class:`date` and :class:`." @@ -803,7 +823,7 @@ msgstr "" "び :class:`.datetime` オブジェクトとの間で加減算をサポートしています (下を参" "照してください)。" -#: ../../library/datetime.rst:417 +#: ../../library/datetime.rst:433 msgid "" "Floor division and true division of a :class:`timedelta` object by another :" "class:`timedelta` object are now supported, as are remainder operations and " @@ -815,11 +835,11 @@ msgstr "" "ようになりました。 :class:`timedelta` オブジェクトと :class:`float` オブジェ" "クトの真の除算と掛け算がサポートされるようになりました。" -#: ../../library/datetime.rst:423 +#: ../../library/datetime.rst:439 msgid ":class:`timedelta` objects support equality and order comparisons." msgstr ":class:`timedelta` オブジェクトは等価性と順序の比較をサポートします。" -#: ../../library/datetime.rst:425 +#: ../../library/datetime.rst:441 msgid "" "In Boolean contexts, a :class:`timedelta` object is considered to be true if " "and only if it isn't equal to ``timedelta(0)``." @@ -827,12 +847,12 @@ msgstr "" "ブール演算コンテキストでは、 :class:`timedelta` オブジェクトは " "``timedelta(0)`` に等しくない場合かつそのときに限り真となります。" -#: ../../library/datetime.rst:428 ../../library/datetime.rst:698 -#: ../../library/datetime.rst:1322 ../../library/datetime.rst:1940 +#: ../../library/datetime.rst:444 ../../library/datetime.rst:714 +#: ../../library/datetime.rst:1338 ../../library/datetime.rst:1956 msgid "Instance methods:" msgstr "インスタンスメソッド:" -#: ../../library/datetime.rst:432 +#: ../../library/datetime.rst:448 msgid "" "Return the total number of seconds contained in the duration. Equivalent to " "``td / timedelta(seconds=1)``. For interval units other than seconds, use " @@ -843,7 +863,7 @@ msgstr "" "秒以外の期間の単位では、直接に除算する形式 (例えば ``td / " "timedelta(microseconds=1)``) が使われます。" -#: ../../library/datetime.rst:436 +#: ../../library/datetime.rst:452 msgid "" "Note that for very large time intervals (greater than 270 years on most " "platforms) this method will lose microsecond accuracy." @@ -851,15 +871,15 @@ msgstr "" "非常に長い期間 (多くのプラットフォームでは270年以上) については、このメソッド" "はマイクロ秒の精度を失うことがあることに注意してください。" -#: ../../library/datetime.rst:442 +#: ../../library/datetime.rst:458 msgid "Examples of usage: :class:`timedelta`" msgstr "使用例: :class:`timedelta`" -#: ../../library/datetime.rst:444 +#: ../../library/datetime.rst:460 msgid "An additional example of normalization::" msgstr "正規化の追加の例です::" -#: ../../library/datetime.rst:446 +#: ../../library/datetime.rst:462 msgid "" ">>> # Components of another_year add up to exactly 365 days\n" ">>> from datetime import timedelta\n" @@ -872,11 +892,11 @@ msgid "" "31536000.0" msgstr "" -#: ../../library/datetime.rst:456 +#: ../../library/datetime.rst:472 msgid "Examples of :class:`timedelta` arithmetic::" msgstr ":class:`timedelta` の計算の例です::" -#: ../../library/datetime.rst:458 +#: ../../library/datetime.rst:474 msgid "" ">>> from datetime import timedelta\n" ">>> year = timedelta(days=365)\n" @@ -893,11 +913,11 @@ msgid "" "(datetime.timedelta(days=1095), 3)" msgstr "" -#: ../../library/datetime.rst:475 +#: ../../library/datetime.rst:491 msgid ":class:`date` Objects" msgstr ":class:`date` オブジェクト" -#: ../../library/datetime.rst:477 +#: ../../library/datetime.rst:493 msgid "" "A :class:`date` object represents a date (year, month and day) in an " "idealized calendar, the current Gregorian calendar indefinitely extended in " @@ -906,7 +926,7 @@ msgstr "" ":class:`date` オブジェクトは、両方向に無期限に拡張された現在のグレゴリオ暦と" "いう理想化された暦の日付 (年月日) を表します。" -#: ../../library/datetime.rst:481 +#: ../../library/datetime.rst:497 msgid "" "January 1 of year 1 is called day number 1, January 2 of year 1 is called " "day number 2, and so on. [#]_" @@ -914,7 +934,7 @@ msgstr "" "1 年 1 月 1 日は日番号 1、1 年 1 月 2 日は日番号 2 と呼ばれ、他も同様です。 " "[#]_" -#: ../../library/datetime.rst:486 +#: ../../library/datetime.rst:502 msgid "" "All arguments are required. Arguments must be integers, in the following " "ranges:" @@ -922,36 +942,36 @@ msgstr "" "全ての引数が必須です。\n" "引数は整数で、次の範囲に収まっていなければなりません:" -#: ../../library/datetime.rst:489 +#: ../../library/datetime.rst:505 msgid "``MINYEAR <= year <= MAXYEAR``" msgstr "``MINYEAR <= year <= MAXYEAR``" -#: ../../library/datetime.rst:490 +#: ../../library/datetime.rst:506 msgid "``1 <= month <= 12``" msgstr "``1 <= month <= 12``" -#: ../../library/datetime.rst:491 +#: ../../library/datetime.rst:507 msgid "``1 <= day <= number of days in the given month and year``" msgstr "``1 <= day <= 指定された月と年における日数``" -#: ../../library/datetime.rst:493 ../../library/datetime.rst:916 +#: ../../library/datetime.rst:509 ../../library/datetime.rst:932 msgid "" "If an argument outside those ranges is given, :exc:`ValueError` is raised." msgstr "範囲を超えた引数を与えた場合、 :exc:`ValueError` が送出されます。" -#: ../../library/datetime.rst:496 ../../library/datetime.rst:921 +#: ../../library/datetime.rst:512 ../../library/datetime.rst:937 msgid "Other constructors, all class methods:" msgstr "他のコンストラクタ、および全てのクラスメソッドを以下に示します:" -#: ../../library/datetime.rst:500 +#: ../../library/datetime.rst:516 msgid "Return the current local date." msgstr "現在のローカルな日付を返します。" -#: ../../library/datetime.rst:502 +#: ../../library/datetime.rst:518 msgid "This is equivalent to ``date.fromtimestamp(time.time())``." msgstr "``date.fromtimestamp(time.time())`` と等価です。" -#: ../../library/datetime.rst:506 +#: ../../library/datetime.rst:522 msgid "" "Return the local date corresponding to the POSIX timestamp, such as is " "returned by :func:`time.time`." @@ -959,7 +979,7 @@ msgstr "" ":func:`time.time` で返されるような POSIX タイムスタンプに対応するローカルな日" "付を返します。" -#: ../../library/datetime.rst:509 +#: ../../library/datetime.rst:525 msgid "" "This may raise :exc:`OverflowError`, if the timestamp is out of the range of " "values supported by the platform C :c:func:`localtime` function, and :exc:" @@ -975,7 +995,7 @@ msgstr "" "イムスタンプの表記にうるう秒を含める非 POSIX なシステムでは、うるう秒は :" "meth:`fromtimestamp` では無視されます。" -#: ../../library/datetime.rst:516 +#: ../../library/datetime.rst:532 msgid "" "Raise :exc:`OverflowError` instead of :exc:`ValueError` if the timestamp is " "out of the range of values supported by the platform C :c:func:`localtime` " @@ -987,7 +1007,7 @@ msgstr "" "出するようになりました。 :c:func:`localtime` の呼び出し失敗で :exc:" "`ValueError` ではなく :exc:`OSError` を送出するようになりました。" -#: ../../library/datetime.rst:525 +#: ../../library/datetime.rst:541 msgid "" "Return the date corresponding to the proleptic Gregorian ordinal, where " "January 1 of year 1 has ordinal 1." @@ -995,13 +1015,13 @@ msgstr "" "先発グレゴリオ暦による序数に対応する日付を返します。\n" "1 年 1 月 1 日が序数 1 となります。" -#: ../../library/datetime.rst:528 +#: ../../library/datetime.rst:544 msgid "" ":exc:`ValueError` is raised unless ``1 <= ordinal <= date.max.toordinal()``. " "For any date ``d``, ``date.fromordinal(d.toordinal()) == d``." msgstr "" -#: ../../library/datetime.rst:535 +#: ../../library/datetime.rst:551 msgid "" "Return a :class:`date` corresponding to a *date_string* given in any valid " "ISO 8601 format, with the following exceptions:" @@ -1009,27 +1029,27 @@ msgstr "" "以下の例外を除く、有効な ISO 8601 フォーマットで与えられた *date_string* に対" "応する :class:`date` を返します :" -#: ../../library/datetime.rst:538 ../../library/datetime.rst:1081 +#: ../../library/datetime.rst:554 ../../library/datetime.rst:1097 msgid "" "Reduced precision dates are not currently supported (``YYYY-MM``, ``YYYY``)." msgstr "精度の低い日付は現在サポートされていません(``YYYY-MM``, ``YYYY``)。" -#: ../../library/datetime.rst:540 ../../library/datetime.rst:1083 +#: ../../library/datetime.rst:556 ../../library/datetime.rst:1099 msgid "" "Extended date representations are not currently supported (``±YYYYYY-MM-" "DD``)." msgstr "拡張された日付表現は現在サポートされていません(``±YYYYYY-MM-DD``)。" -#: ../../library/datetime.rst:542 ../../library/datetime.rst:1085 +#: ../../library/datetime.rst:558 ../../library/datetime.rst:1101 msgid "Ordinal dates are not currently supported (``YYYY-OOO``)." msgstr "序数の日付は現在サポートされていません(``YYYY-OOO``)。" -#: ../../library/datetime.rst:544 ../../library/datetime.rst:1087 -#: ../../library/datetime.rst:1553 +#: ../../library/datetime.rst:560 ../../library/datetime.rst:1103 +#: ../../library/datetime.rst:1569 msgid "Examples::" msgstr "例::" -#: ../../library/datetime.rst:546 +#: ../../library/datetime.rst:562 msgid "" ">>> from datetime import date\n" ">>> date.fromisoformat('2019-12-04')\n" @@ -1040,12 +1060,12 @@ msgid "" "datetime.date(2021, 1, 4)" msgstr "" -#: ../../library/datetime.rst:555 +#: ../../library/datetime.rst:571 msgid "Previously, this method only supported the format ``YYYY-MM-DD``." msgstr "" "以前はこのメソッドは ``YYYY-MM-DD`` フォーマットのみをサポートしていました。" -#: ../../library/datetime.rst:560 +#: ../../library/datetime.rst:576 msgid "" "Return a :class:`date` corresponding to the ISO calendar date specified by " "year, week and day. This is the inverse of the function :meth:`date." @@ -1054,24 +1074,24 @@ msgstr "" "年月日で指定された ISO 暦の日付に対応する :class:`date` を返します。\n" "この関数は :meth:`date.isocalendar` 関数の逆関数です。" -#: ../../library/datetime.rst:567 +#: ../../library/datetime.rst:583 msgid "" "Return a :class:`.date` corresponding to *date_string*, parsed according to " "*format*. This is equivalent to::" msgstr "" -#: ../../library/datetime.rst:570 +#: ../../library/datetime.rst:586 msgid "date(*(time.strptime(date_string, format)[0:3]))" msgstr "" -#: ../../library/datetime.rst:572 +#: ../../library/datetime.rst:588 msgid "" ":exc:`ValueError` is raised if the date_string and format can't be parsed " "by :func:`time.strptime` or if it returns a value which isn't a time tuple. " "See also :ref:`strftime-strptime-behavior` and :meth:`date.fromisoformat`." msgstr "" -#: ../../library/datetime.rst:579 +#: ../../library/datetime.rst:595 msgid "" "If *format* specifies a day of month without a year a :exc:" "`DeprecationWarning` is emitted. This is to avoid a quadrennial leap year " @@ -1082,7 +1102,7 @@ msgid "" "year, explicitly add a year that is a leap year before parsing:" msgstr "" -#: ../../library/datetime.rst:588 +#: ../../library/datetime.rst:604 msgid "" ">>> from datetime import date\n" ">>> date_string = \"02/29\"\n" @@ -1092,54 +1112,54 @@ msgid "" "'February 29'" msgstr "" -#: ../../library/datetime.rst:603 +#: ../../library/datetime.rst:619 msgid "The earliest representable date, ``date(MINYEAR, 1, 1)``." msgstr "表現できる最も古い日付で、``date(MINYEAR, 1, 1)`` です。" -#: ../../library/datetime.rst:608 +#: ../../library/datetime.rst:624 msgid "The latest representable date, ``date(MAXYEAR, 12, 31)``." msgstr "表現できる最も新しい日付で、``date(MAXYEAR, 12, 31)`` です。" -#: ../../library/datetime.rst:613 +#: ../../library/datetime.rst:629 msgid "" "The smallest possible difference between non-equal date objects, " "``timedelta(days=1)``." msgstr "等しくない日付オブジェクト間の最小の差で、``timedelta(days=1)`` です。" -#: ../../library/datetime.rst:621 ../../library/datetime.rst:1183 +#: ../../library/datetime.rst:637 ../../library/datetime.rst:1199 msgid "Between :const:`MINYEAR` and :const:`MAXYEAR` inclusive." msgstr "両端値を含む :const:`MINYEAR` から :const:`MAXYEAR` までの値です。" -#: ../../library/datetime.rst:626 ../../library/datetime.rst:1188 +#: ../../library/datetime.rst:642 ../../library/datetime.rst:1204 msgid "Between 1 and 12 inclusive." msgstr "両端値を含む 1 から 12 までの値です。" -#: ../../library/datetime.rst:631 ../../library/datetime.rst:1193 +#: ../../library/datetime.rst:647 ../../library/datetime.rst:1209 msgid "Between 1 and the number of days in the given month of the given year." msgstr "1 から与えられた月と年における日数までの値です。" -#: ../../library/datetime.rst:639 +#: ../../library/datetime.rst:655 msgid "``date2 = date1 + timedelta``" msgstr "``date2 = date1 + timedelta``" -#: ../../library/datetime.rst:639 +#: ../../library/datetime.rst:655 msgid "``date2`` will be ``timedelta.days`` days after ``date1``. (1)" msgstr "``date2`` は ``date1`` の ``timedelta.days`` 日後になります。(1)" -#: ../../library/datetime.rst:642 +#: ../../library/datetime.rst:658 msgid "``date2 = date1 - timedelta``" msgstr "``date2 = date1 - timedelta``" -#: ../../library/datetime.rst:642 +#: ../../library/datetime.rst:658 msgid "Computes ``date2`` such that ``date2 + timedelta == date1``. (2)" msgstr "" "``date2 + timedelta == date1`` であるような日付 ``date2`` を計算します。(2)" -#: ../../library/datetime.rst:645 +#: ../../library/datetime.rst:661 msgid "``timedelta = date1 - date2``" msgstr "``timedelta = date1 - date2``" -#: ../../library/datetime.rst:645 ../../library/datetime.rst:1241 +#: ../../library/datetime.rst:661 ../../library/datetime.rst:1257 msgid "\\(3)" msgstr "\\(3)" @@ -1151,7 +1171,7 @@ msgstr "``date1 == date2``" msgid "``date1 != date2``" msgstr "``date1 != date2``" -#: ../../library/datetime.rst:647 ../../library/datetime.rst:1243 +#: ../../library/datetime.rst:663 ../../library/datetime.rst:1259 msgid "Equality comparison. (4)" msgstr "等価性の比較。(4)" @@ -1171,11 +1191,11 @@ msgstr "``date1 <= date2``" msgid "``date1 >= date2``" msgstr "``date1 >= date2``" -#: ../../library/datetime.rst:650 ../../library/datetime.rst:1246 +#: ../../library/datetime.rst:666 ../../library/datetime.rst:1262 msgid "Order comparison. (5)" msgstr "順序の比較。(5)" -#: ../../library/datetime.rst:659 +#: ../../library/datetime.rst:675 msgid "" "*date2* is moved forward in time if ``timedelta.days > 0``, or backward if " "``timedelta.days < 0``. Afterward ``date2 - date1 == timedelta.days``. " @@ -1190,11 +1210,11 @@ msgstr "" "``date2.year`` が :const:`MINYEAR` になってしまったり、 :const:`MAXYEAR` より" "大きくなってしまう場合には :exc:`OverflowError` が送出されます。" -#: ../../library/datetime.rst:666 +#: ../../library/datetime.rst:682 msgid "``timedelta.seconds`` and ``timedelta.microseconds`` are ignored." msgstr "``timedelta.seconds`` と ``timedelta.microseconds`` は無視されます。" -#: ../../library/datetime.rst:669 +#: ../../library/datetime.rst:685 msgid "" "This is exact, and cannot overflow. ``timedelta.seconds`` and ``timedelta." "microseconds`` are 0, and ``date2 + timedelta == date1`` after." @@ -1203,11 +1223,11 @@ msgstr "" "``timedelta.microseconds`` は 0 で、演算後には ``date2 + timedelta == " "date1`` となります。" -#: ../../library/datetime.rst:673 +#: ../../library/datetime.rst:689 msgid ":class:`date` objects are equal if they represent the same date." msgstr "同じ日を表す :class:`date` オブジェクトは等しいです。" -#: ../../library/datetime.rst:675 +#: ../../library/datetime.rst:691 msgid "" ":class:`!date` objects that are not also :class:`.datetime` instances are " "never equal to :class:`!datetime` objects, even if they represent the same " @@ -1217,20 +1237,20 @@ msgstr "" "日を表していても、:class:`!datetime` オブジェクトとは決して等価にはなりませ" "ん。" -#: ../../library/datetime.rst:680 +#: ../../library/datetime.rst:696 msgid "" "*date1* is considered less than *date2* when *date1* precedes *date2* in " "time. In other words, ``date1 < date2`` if and only if ``date1.toordinal() < " "date2.toordinal()``." msgstr "" -#: ../../library/datetime.rst:684 +#: ../../library/datetime.rst:700 msgid "" "Order comparison between a :class:`!date` object that is not also a :class:`." "datetime` instance and a :class:`!datetime` object raises :exc:`TypeError`." msgstr "" -#: ../../library/datetime.rst:688 ../../library/datetime.rst:1314 +#: ../../library/datetime.rst:704 ../../library/datetime.rst:1330 msgid "" "Comparison between :class:`.datetime` object and an instance of the :class:" "`date` subclass that is not a :class:`!datetime` subclass no longer converts " @@ -1239,24 +1259,24 @@ msgid "" "in subclasses." msgstr "" -#: ../../library/datetime.rst:696 +#: ../../library/datetime.rst:712 msgid "" "In Boolean contexts, all :class:`date` objects are considered to be true." msgstr "" "ブール演算コンテキストでは、全ての :class:`.time` オブジェクトは真とみなされ" "ます。" -#: ../../library/datetime.rst:702 +#: ../../library/datetime.rst:718 msgid "" "Return a new :class:`date` object with the same values, but with specified " "parameters updated." msgstr "" -#: ../../library/datetime.rst:705 ../../library/datetime.rst:1986 +#: ../../library/datetime.rst:721 ../../library/datetime.rst:2002 msgid "Example::" msgstr "以下はプログラム例です::" -#: ../../library/datetime.rst:707 +#: ../../library/datetime.rst:723 msgid "" ">>> from datetime import date\n" ">>> d = date(2002, 12, 31)\n" @@ -1264,33 +1284,33 @@ msgid "" "datetime.date(2002, 12, 26)" msgstr "" -#: ../../library/datetime.rst:712 +#: ../../library/datetime.rst:728 msgid "" "The generic function :func:`copy.replace` also supports :class:`date` " "objects." msgstr "" -#: ../../library/datetime.rst:718 ../../library/datetime.rst:1438 +#: ../../library/datetime.rst:734 ../../library/datetime.rst:1454 msgid "" "Return a :class:`time.struct_time` such as returned by :func:`time." "localtime`." msgstr "" ":func:`time.localtime` が返すような :class:`time.struct_time` を返します。" -#: ../../library/datetime.rst:720 +#: ../../library/datetime.rst:736 msgid "The hours, minutes and seconds are 0, and the DST flag is -1." msgstr "時分秒が 0 で、 DST フラグが -1 です。" -#: ../../library/datetime.rst:722 ../../library/datetime.rst:1440 +#: ../../library/datetime.rst:738 ../../library/datetime.rst:1456 msgid "``d.timetuple()`` is equivalent to::" msgstr "``d.timetuple()`` は次の式と等価です::" -#: ../../library/datetime.rst:724 +#: ../../library/datetime.rst:740 msgid "" "time.struct_time((d.year, d.month, d.day, 0, 0, 0, d.weekday(), yday, -1))" msgstr "" -#: ../../library/datetime.rst:726 +#: ../../library/datetime.rst:742 msgid "" "where ``yday = d.toordinal() - date(d.year, 1, 1).toordinal() + 1`` is the " "day number within the current year starting with 1 for January 1st." @@ -1298,14 +1318,14 @@ msgstr "" "ここで、 ``yday = d.toordinal() - date(d.year, 1, 1).toordinal() + 1`` は本年" "の 1 月 1 日を 1 としたときの日付番号です。" -#: ../../library/datetime.rst:732 +#: ../../library/datetime.rst:748 msgid "" "Return the proleptic Gregorian ordinal of the date, where January 1 of year " "1 has ordinal 1. For any :class:`date` object ``d``, ``date.fromordinal(d." "toordinal()) == d``." msgstr "" -#: ../../library/datetime.rst:739 +#: ../../library/datetime.rst:755 msgid "" "Return the day of the week as an integer, where Monday is 0 and Sunday is 6. " "For example, ``date(2002, 12, 4).weekday() == 2``, a Wednesday. See also :" @@ -1315,7 +1335,7 @@ msgstr "" "12, 4).weekday() == 2`` であり、水曜日を示します。 :meth:`isoweekday` も参照" "してください。" -#: ../../library/datetime.rst:746 +#: ../../library/datetime.rst:762 msgid "" "Return the day of the week as an integer, where Monday is 1 and Sunday is 7. " "For example, ``date(2002, 12, 4).isoweekday() == 3``, a Wednesday. See also :" @@ -1325,7 +1345,7 @@ msgstr "" "12, 4).isoweekday() == 3`` であり、水曜日を示します。 :meth:`weekday`, :meth:" "`isocalendar` も参照してください。" -#: ../../library/datetime.rst:753 +#: ../../library/datetime.rst:769 msgid "" "Return a :term:`named tuple` object with three components: ``year``, " "``week`` and ``weekday``." @@ -1333,12 +1353,12 @@ msgstr "" "``year``、``week``、``weekday`` の3つで構成された :term:`named tuple` を返し" "ます。" -#: ../../library/datetime.rst:756 +#: ../../library/datetime.rst:772 msgid "" "The ISO calendar is a widely used variant of the Gregorian calendar. [#]_" msgstr "ISO 暦はグレゴリオ暦の変種として広く用いられています。 [#]_" -#: ../../library/datetime.rst:758 +#: ../../library/datetime.rst:774 msgid "" "The ISO year consists of 52 or 53 full weeks, and where a week starts on a " "Monday and ends on a Sunday. The first week of an ISO year is the first " @@ -1351,7 +1371,7 @@ msgstr "" "オ暦での) 週となります。この週は週番号 1 と呼ばれ、この木曜日での ISO 年はグ" "レゴリオ暦における年と等しくなります。" -#: ../../library/datetime.rst:763 +#: ../../library/datetime.rst:779 msgid "" "For example, 2004 begins on a Thursday, so the first week of ISO year 2004 " "begins on Monday, 29 Dec 2003 and ends on Sunday, 4 Jan 2004::" @@ -1359,7 +1379,7 @@ msgstr "" "例えば、2004 年は木曜日から始まるため、ISO 年の最初の週は 2003 年 12 月 29 " "日、月曜日から始まり、2004 年 1 月 4 日、日曜日に終わります ::" -#: ../../library/datetime.rst:766 +#: ../../library/datetime.rst:782 msgid "" ">>> from datetime import date\n" ">>> date(2003, 12, 29).isocalendar()\n" @@ -1368,46 +1388,46 @@ msgid "" "datetime.IsoCalendarDate(year=2004, week=1, weekday=7)" msgstr "" -#: ../../library/datetime.rst:772 +#: ../../library/datetime.rst:788 msgid "Result changed from a tuple to a :term:`named tuple`." msgstr "結果が タプル から :term:`named tuple` へ変更されました。" -#: ../../library/datetime.rst:777 +#: ../../library/datetime.rst:793 msgid "" "Return a string representing the date in ISO 8601 format, ``YYYY-MM-DD``::" msgstr "日付を ISO 8601 書式の ``YYYY-MM-DD`` で表した文字列を返します::" -#: ../../library/datetime.rst:779 +#: ../../library/datetime.rst:795 msgid "" ">>> from datetime import date\n" ">>> date(2002, 12, 4).isoformat()\n" "'2002-12-04'" msgstr "" -#: ../../library/datetime.rst:785 +#: ../../library/datetime.rst:801 msgid "For a date ``d``, ``str(d)`` is equivalent to ``d.isoformat()``." msgstr "" -#: ../../library/datetime.rst:790 +#: ../../library/datetime.rst:806 msgid "Return a string representing the date::" msgstr "日付を表す文字列を返します::" -#: ../../library/datetime.rst:792 +#: ../../library/datetime.rst:808 msgid "" ">>> from datetime import date\n" ">>> date(2002, 12, 4).ctime()\n" "'Wed Dec 4 00:00:00 2002'" msgstr "" -#: ../../library/datetime.rst:796 ../../library/datetime.rst:1624 +#: ../../library/datetime.rst:812 ../../library/datetime.rst:1640 msgid "``d.ctime()`` is equivalent to::" msgstr "``d.ctime()`` は次の式と等価です::" -#: ../../library/datetime.rst:798 ../../library/datetime.rst:1626 +#: ../../library/datetime.rst:814 ../../library/datetime.rst:1642 msgid "time.ctime(time.mktime(d.timetuple()))" msgstr "" -#: ../../library/datetime.rst:800 +#: ../../library/datetime.rst:816 msgid "" "on platforms where the native C :c:func:`ctime` function (which :func:`time." "ctime` invokes, but which :meth:`date.ctime` does not invoke) conforms to " @@ -1417,7 +1437,7 @@ msgstr "" "に呼び出されない) ネイティブの C 関数 :c:func:`ctime` が C 標準に準拠している" "プラットフォーム上でです。" -#: ../../library/datetime.rst:807 +#: ../../library/datetime.rst:823 msgid "" "Return a string representing the date, controlled by an explicit format " "string. Format codes referring to hours, minutes or seconds will see 0 " @@ -1429,7 +1449,7 @@ msgstr "" ":ref:`strftime-strptime-behavior` および :meth:`date.isoformat` も参照してく" "ださい。" -#: ../../library/datetime.rst:814 +#: ../../library/datetime.rst:830 msgid "" "Same as :meth:`.date.strftime`. This makes it possible to specify a format " "string for a :class:`.date` object in :ref:`formatted string literals >> import time\n" ">>> from datetime import date\n" @@ -1471,11 +1491,11 @@ msgid "" "202" msgstr "" -#: ../../library/datetime.rst:841 +#: ../../library/datetime.rst:857 msgid "More examples of working with :class:`date`:" msgstr "さらなる :class:`date` を使う例:" -#: ../../library/datetime.rst:843 +#: ../../library/datetime.rst:859 msgid "" ">>> from datetime import date\n" ">>> d = date.fromordinal(730920) # 730920th day after 1. 1. 0001\n" @@ -1519,11 +1539,11 @@ msgid "" "datetime.date(2005, 3, 11)" msgstr "" -#: ../../library/datetime.rst:890 +#: ../../library/datetime.rst:906 msgid ":class:`.datetime` Objects" msgstr ":class:`.datetime` オブジェクト" -#: ../../library/datetime.rst:892 +#: ../../library/datetime.rst:908 msgid "" "A :class:`.datetime` object is a single object containing all the " "information from a :class:`date` object and a :class:`.time` object." @@ -1531,7 +1551,7 @@ msgstr "" ":class:`.datetime` オブジェクトは :class:`date` オブジェクトおよび :class:`." "time` オブジェクトの全ての情報が入っている単一のオブジェクトです。" -#: ../../library/datetime.rst:895 +#: ../../library/datetime.rst:911 msgid "" "Like a :class:`date` object, :class:`.datetime` assumes the current " "Gregorian calendar extended in both directions; like a :class:`.time` " @@ -1542,11 +1562,11 @@ msgstr "" "が両方向に延長されているものと仮定します。また、 :class:`.time` オブジェクト" "と同様に、 :class:`.datetime` は毎日が厳密に 3600\\*24 秒であると仮定します。" -#: ../../library/datetime.rst:899 +#: ../../library/datetime.rst:915 msgid "Constructor:" msgstr "以下にコンストラクタを示します:" -#: ../../library/datetime.rst:903 +#: ../../library/datetime.rst:919 msgid "" "The *year*, *month* and *day* arguments are required. *tzinfo* may be " "``None``, or an instance of a :class:`tzinfo` subclass. The remaining " @@ -1556,72 +1576,72 @@ msgstr "" "*tzinfo* は ``None`` または :class:`tzinfo` サブクラスのインスタンスです。\n" "残りの引数は次の範囲の整数でなければなりません:" -#: ../../library/datetime.rst:907 +#: ../../library/datetime.rst:923 msgid "``MINYEAR <= year <= MAXYEAR``," msgstr "``MINYEAR <= year <= MAXYEAR``," -#: ../../library/datetime.rst:908 +#: ../../library/datetime.rst:924 msgid "``1 <= month <= 12``," msgstr "``1 <= month <= 12``," -#: ../../library/datetime.rst:909 +#: ../../library/datetime.rst:925 msgid "``1 <= day <= number of days in the given month and year``," msgstr "``1 <= day <= 指定された月と年における日数``," -#: ../../library/datetime.rst:910 ../../library/datetime.rst:1788 +#: ../../library/datetime.rst:926 ../../library/datetime.rst:1804 msgid "``0 <= hour < 24``," msgstr "``0 <= hour < 24``," -#: ../../library/datetime.rst:911 ../../library/datetime.rst:1789 +#: ../../library/datetime.rst:927 ../../library/datetime.rst:1805 msgid "``0 <= minute < 60``," msgstr "``0 <= minute < 60``," -#: ../../library/datetime.rst:912 ../../library/datetime.rst:1790 +#: ../../library/datetime.rst:928 ../../library/datetime.rst:1806 msgid "``0 <= second < 60``," msgstr "``0 <= second < 60``," -#: ../../library/datetime.rst:913 ../../library/datetime.rst:1791 +#: ../../library/datetime.rst:929 ../../library/datetime.rst:1807 msgid "``0 <= microsecond < 1000000``," msgstr "``0 <= microsecond < 1000000``," -#: ../../library/datetime.rst:914 ../../library/datetime.rst:1792 +#: ../../library/datetime.rst:930 ../../library/datetime.rst:1808 msgid "``fold in [0, 1]``." msgstr "``fold in [0, 1]``." -#: ../../library/datetime.rst:918 ../../library/datetime.rst:1359 -#: ../../library/datetime.rst:1953 +#: ../../library/datetime.rst:934 ../../library/datetime.rst:1375 +#: ../../library/datetime.rst:1969 msgid "Added the *fold* parameter." msgstr "*fold* パラメータが追加されました。" -#: ../../library/datetime.rst:925 +#: ../../library/datetime.rst:941 msgid "Return the current local date and time, with :attr:`.tzinfo` ``None``." msgstr "" ":attr:`tzinfo` が ``None`` である現在のローカルの日付および時刻を返します。" -#: ../../library/datetime.rst:927 +#: ../../library/datetime.rst:943 msgid "Equivalent to::" msgstr "次と等価です::" -#: ../../library/datetime.rst:929 +#: ../../library/datetime.rst:945 msgid "datetime.fromtimestamp(time.time())" msgstr "" -#: ../../library/datetime.rst:931 +#: ../../library/datetime.rst:947 msgid "See also :meth:`now`, :meth:`fromtimestamp`." msgstr ":meth:`now`, :meth:`fromtimestamp` も参照してください。" -#: ../../library/datetime.rst:933 +#: ../../library/datetime.rst:949 msgid "" "This method is functionally equivalent to :meth:`now`, but without a ``tz`` " "parameter." msgstr "" "このメソッドの機能は :meth:`now` と等価ですが、 ``tz`` 引数はありません。" -#: ../../library/datetime.rst:938 +#: ../../library/datetime.rst:954 msgid "Return the current local date and time." msgstr "現在のローカルな日時を返します。" -#: ../../library/datetime.rst:940 +#: ../../library/datetime.rst:956 msgid "" "If optional argument *tz* is ``None`` or not specified, this is like :meth:" "`today`, but, if possible, supplies more precision than can be gotten from " @@ -1634,7 +1654,7 @@ msgstr "" "フォームが C 関数 :c:func:`gettimeofday` をサポートする場合には可能なことが" "あります)。" -#: ../../library/datetime.rst:946 +#: ../../library/datetime.rst:962 msgid "" "If *tz* is not ``None``, it must be an instance of a :class:`tzinfo` " "subclass, and the current date and time are converted to *tz*’s time zone." @@ -1643,23 +1663,23 @@ msgstr "" "ンスでなければならず、現在の日付および時刻は *tz* のタイムゾーンに変換されま" "す。" -#: ../../library/datetime.rst:949 +#: ../../library/datetime.rst:965 msgid "This function is preferred over :meth:`today` and :meth:`utcnow`." msgstr "" ":meth:`today` および :meth:`utcnow` よりもこの関数を使う方が好ましいです。" -#: ../../library/datetime.rst:953 +#: ../../library/datetime.rst:969 msgid "" "Subsequent calls to :meth:`!datetime.now` may return the same instant " "depending on the precision of the underlying clock." msgstr "" -#: ../../library/datetime.rst:958 +#: ../../library/datetime.rst:974 msgid "Return the current UTC date and time, with :attr:`.tzinfo` ``None``." msgstr "" ":attr:`tzinfo` が ``None`` である現在の UTC の日付および時刻を返します。" -#: ../../library/datetime.rst:960 +#: ../../library/datetime.rst:976 msgid "" "This is like :meth:`now`, but returns the current UTC date and time, as a " "naive :class:`.datetime` object. An aware current UTC datetime can be " @@ -1671,7 +1691,7 @@ msgstr "" "で取得できます。\n" ":meth:`now` も参照してください。" -#: ../../library/datetime.rst:966 +#: ../../library/datetime.rst:982 msgid "" "Because naive ``datetime`` objects are treated by many ``datetime`` methods " "as local times, it is preferred to use aware datetimes to represent times in " @@ -1684,11 +1704,11 @@ msgstr "" "そのため、 UTC での現在の時刻を表すオブジェクトの作成では ``datetime." "now(timezone.utc)`` を呼び出す方法が推奨されます。" -#: ../../library/datetime.rst:973 +#: ../../library/datetime.rst:989 msgid "Use :meth:`datetime.now` with :const:`UTC` instead." msgstr "" -#: ../../library/datetime.rst:978 +#: ../../library/datetime.rst:994 msgid "" "Return the local date and time corresponding to the POSIX timestamp, such as " "is returned by :func:`time.time`. If optional argument *tz* is ``None`` or " @@ -1700,7 +1720,7 @@ msgstr "" "い場合、タイムスタンプはプラットフォームのローカルな日付および時刻に変換さ" "れ、返される :class:`.datetime` オブジェクトは naive なものになります。" -#: ../../library/datetime.rst:983 +#: ../../library/datetime.rst:999 msgid "" "If *tz* is not ``None``, it must be an instance of a :class:`tzinfo` " "subclass, and the timestamp is converted to *tz*’s time zone." @@ -1708,7 +1728,7 @@ msgstr "" "*tz* が ``None`` でない場合、 *tz* は :class:`tzinfo` のサブクラスのインスタ" "ンスでなければならず、タイムスタンプは *tz* のタイムゾーンに変換されます。" -#: ../../library/datetime.rst:986 +#: ../../library/datetime.rst:1002 msgid "" ":meth:`fromtimestamp` may raise :exc:`OverflowError`, if the timestamp is " "out of the range of values supported by the platform C :c:func:`localtime` " @@ -1732,7 +1752,7 @@ msgstr "" "クトとなることが起こり得ます。\n" ":meth:`utcfromtimestamp` よりも、このメソッドの方が好ましいです。" -#: ../../library/datetime.rst:997 +#: ../../library/datetime.rst:1013 msgid "" "Raise :exc:`OverflowError` instead of :exc:`ValueError` if the timestamp is " "out of the range of values supported by the platform C :c:func:`localtime` " @@ -1745,12 +1765,12 @@ msgstr "" "くは :c:func:`gmtime` の呼び出し失敗で :exc:`ValueError` ではなく :exc:" "`OSError` を送出するようになりました。" -#: ../../library/datetime.rst:1004 +#: ../../library/datetime.rst:1020 msgid ":meth:`fromtimestamp` may return instances with :attr:`.fold` set to 1." msgstr "" ":meth:`fromtimestamp` は :attr:`.fold` を1にしてインスタンスを返します。" -#: ../../library/datetime.rst:1009 +#: ../../library/datetime.rst:1025 msgid "" "Return the UTC :class:`.datetime` corresponding to the POSIX timestamp, " "with :attr:`.tzinfo` ``None``. (The resulting object is naive.)" @@ -1758,7 +1778,7 @@ msgstr "" "POSIX タイムスタンプに対応する、:attr:`tzinfo` が ``None`` の UTC での :" "class:`.datetime` を返します。(返されるオブジェクトは naive です。)" -#: ../../library/datetime.rst:1012 +#: ../../library/datetime.rst:1028 msgid "" "This may raise :exc:`OverflowError`, if the timestamp is out of the range of " "values supported by the platform C :c:func:`gmtime` function, and :exc:" @@ -1770,28 +1790,28 @@ msgstr "" "`gmtime` が失敗した場合には :exc:`OSError` を送出します。\n" "これはたいてい 1970 年から 2038 年に制限されています。" -#: ../../library/datetime.rst:1017 +#: ../../library/datetime.rst:1033 msgid "To get an aware :class:`.datetime` object, call :meth:`fromtimestamp`::" msgstr "" "aware な :class:`.datetime` オブジェクトを得るには :meth:`fromtimestamp` を呼" "んでください::" -#: ../../library/datetime.rst:1019 +#: ../../library/datetime.rst:1035 msgid "datetime.fromtimestamp(timestamp, timezone.utc)" msgstr "" -#: ../../library/datetime.rst:1021 +#: ../../library/datetime.rst:1037 msgid "" "On the POSIX compliant platforms, it is equivalent to the following " "expression::" msgstr "POSIX 互換プラットフォームでは、これは以下の表現と等価です::" -#: ../../library/datetime.rst:1024 +#: ../../library/datetime.rst:1040 msgid "" "datetime(1970, 1, 1, tzinfo=timezone.utc) + timedelta(seconds=timestamp)" msgstr "" -#: ../../library/datetime.rst:1026 +#: ../../library/datetime.rst:1042 msgid "" "except the latter formula always supports the full years range: between :" "const:`MINYEAR` and :const:`MAXYEAR` inclusive." @@ -1799,7 +1819,7 @@ msgstr "" "後者を除き、式は常に年の全範囲 (:const:`MINYEAR` から :const:`MAXYEAR` を含み" "ます) をサポートします。" -#: ../../library/datetime.rst:1031 +#: ../../library/datetime.rst:1047 msgid "" "Because naive ``datetime`` objects are treated by many ``datetime`` methods " "as local times, it is preferred to use aware datetimes to represent times in " @@ -1814,7 +1834,7 @@ msgstr "" "``datetime.fromtimestamp(timestamp, tz=timezone.utc)`` を呼び出す方法が推奨さ" "れます。" -#: ../../library/datetime.rst:1037 +#: ../../library/datetime.rst:1053 msgid "" "Raise :exc:`OverflowError` instead of :exc:`ValueError` if the timestamp is " "out of the range of values supported by the platform C :c:func:`gmtime` " @@ -1826,11 +1846,11 @@ msgstr "" "るようになりました。 :c:func:`gmtime` の呼び出し失敗で :exc:`ValueError` では" "なく :exc:`OSError` を送出するようになりました。" -#: ../../library/datetime.rst:1045 +#: ../../library/datetime.rst:1061 msgid "Use :meth:`datetime.fromtimestamp` with :const:`UTC` instead." msgstr "" -#: ../../library/datetime.rst:1050 +#: ../../library/datetime.rst:1066 msgid "" "Return the :class:`.datetime` corresponding to the proleptic Gregorian " "ordinal, where January 1 of year 1 has ordinal 1. :exc:`ValueError` is " @@ -1845,7 +1865,7 @@ msgstr "" "返されるオブジェクトの時間、分、秒、およびマイクロ秒はすべて 0 で、 :attr:" "`tzinfo` は ``None`` となっています。" -#: ../../library/datetime.rst:1058 +#: ../../library/datetime.rst:1074 msgid "" "Return a new :class:`.datetime` object whose date components are equal to " "the given :class:`date` object's, and whose time components are equal to the " @@ -1863,17 +1883,17 @@ msgstr "" "使われます。*date* 引数に :class:`.datetime` オブジェクトが与えられた場合、そ" "の時刻部分と :attr:`.tzinfo` 属性は無視されます。" -#: ../../library/datetime.rst:1066 +#: ../../library/datetime.rst:1082 msgid "" "For any :class:`.datetime` object ``d``, ``d == datetime.combine(d.date(), d." "time(), d.tzinfo)``." msgstr "" -#: ../../library/datetime.rst:1069 +#: ../../library/datetime.rst:1085 msgid "Added the *tzinfo* argument." msgstr "*tzinfo* 引数が追加されました。" -#: ../../library/datetime.rst:1075 +#: ../../library/datetime.rst:1091 msgid "" "Return a :class:`.datetime` corresponding to a *date_string* in any valid " "ISO 8601 format, with the following exceptions:" @@ -1881,19 +1901,19 @@ msgstr "" "以下の例外を除く、有効な ISO 8601 フォーマットで与えられた *date_string* に対" "応する :class:`.datetime` を返します :" -#: ../../library/datetime.rst:1078 ../../library/datetime.rst:1888 +#: ../../library/datetime.rst:1094 ../../library/datetime.rst:1904 msgid "Time zone offsets may have fractional seconds." msgstr "小数の秒があるタイムゾーンオフセット。" -#: ../../library/datetime.rst:1079 +#: ../../library/datetime.rst:1095 msgid "The ``T`` separator may be replaced by any single unicode character." msgstr "``T`` セパレーターを他の1文字のユニコードに置き換えたもの。" -#: ../../library/datetime.rst:1080 ../../library/datetime.rst:1893 +#: ../../library/datetime.rst:1096 ../../library/datetime.rst:1909 msgid "Fractional hours and minutes are not supported." msgstr "少数の時と分はサポートされていません。" -#: ../../library/datetime.rst:1089 +#: ../../library/datetime.rst:1105 msgid "" ">>> from datetime import datetime\n" ">>> datetime.fromisoformat('2011-11-04')\n" @@ -1918,13 +1938,13 @@ msgid "" " tzinfo=datetime.timezone(datetime.timedelta(seconds=14400)))" msgstr "" -#: ../../library/datetime.rst:1111 +#: ../../library/datetime.rst:1127 msgid "" "Previously, this method only supported formats that could be emitted by :" "meth:`date.isoformat` or :meth:`datetime.isoformat`." msgstr "" -#: ../../library/datetime.rst:1118 +#: ../../library/datetime.rst:1134 msgid "" "Return a :class:`.datetime` corresponding to the ISO calendar date specified " "by year, week and day. The non-date components of the datetime are populated " @@ -1935,7 +1955,7 @@ msgstr "" "datetime の日付でない部分は、標準のデフォルト値で埋められます。\n" "この関数は :meth:`datetime.isocalendar` の逆関数です。" -#: ../../library/datetime.rst:1127 +#: ../../library/datetime.rst:1143 msgid "" "Return a :class:`.datetime` corresponding to *date_string*, parsed according " "to *format*." @@ -1943,18 +1963,18 @@ msgstr "" "*date_string* に対応した :class:`.datetime` を返します。 *format* にしたがっ" "て構文解析されます。" -#: ../../library/datetime.rst:1130 +#: ../../library/datetime.rst:1146 msgid "" "If *format* does not contain microseconds or time zone information, this is " "equivalent to::" msgstr "" "*format* がマイクロ秒やタイムゾーン情報を含まない場合は、以下と等価です::" -#: ../../library/datetime.rst:1132 ../../library/datetime.rst:2627 +#: ../../library/datetime.rst:1148 ../../library/datetime.rst:2643 msgid "datetime(*(time.strptime(date_string, format)[0:6]))" msgstr "" -#: ../../library/datetime.rst:1134 +#: ../../library/datetime.rst:1150 msgid "" ":exc:`ValueError` is raised if the date_string and format can't be parsed " "by :func:`time.strptime` or if it returns a value which isn't a time tuple. " @@ -1966,7 +1986,7 @@ msgstr "" "`strftime-strptime-behavior` および :meth:`datetime.fromisoformat` も参照して" "ください。" -#: ../../library/datetime.rst:1141 +#: ../../library/datetime.rst:1157 msgid "" "If *format* specifies a day of month without a year a :exc:" "`DeprecationWarning` is now emitted. This is to avoid a quadrennial leap " @@ -1977,7 +1997,7 @@ msgid "" "not have a year, explicitly add a year that is a leap year before parsing:" msgstr "" -#: ../../library/datetime.rst:1150 +#: ../../library/datetime.rst:1166 msgid "" ">>> from datetime import datetime\n" ">>> date_string = \"02/29\"\n" @@ -1987,7 +2007,7 @@ msgid "" "'February 29'" msgstr "" -#: ../../library/datetime.rst:1163 +#: ../../library/datetime.rst:1179 msgid "" "The earliest representable :class:`.datetime`, ``datetime(MINYEAR, 1, 1, " "tzinfo=None)``." @@ -1995,7 +2015,7 @@ msgstr "" "表現できる最も古い :class:`.datetime` で、 ``datetime(MINYEAR, 1, 1, " "tzinfo=None)`` です。" -#: ../../library/datetime.rst:1169 +#: ../../library/datetime.rst:1185 msgid "" "The latest representable :class:`.datetime`, ``datetime(MAXYEAR, 12, 31, 23, " "59, 59, 999999, tzinfo=None)``." @@ -2003,7 +2023,7 @@ msgstr "" "表現できる最も新しい :class:`.datetime` で、 ``datetime(MAXYEAR, 12, 31, 23, " "59, 59, 999999, tzinfo=None)`` です。" -#: ../../library/datetime.rst:1175 +#: ../../library/datetime.rst:1191 msgid "" "The smallest possible difference between non-equal :class:`.datetime` " "objects, ``timedelta(microseconds=1)``." @@ -2011,20 +2031,20 @@ msgstr "" "等しくない :class:`.datetime` オブジェクト間の最小の差で、 " "``timedelta(microseconds=1)`` です。" -#: ../../library/datetime.rst:1198 ../../library/datetime.rst:1821 +#: ../../library/datetime.rst:1214 ../../library/datetime.rst:1837 msgid "In ``range(24)``." msgstr "in ``range(24)`` を満たします。" -#: ../../library/datetime.rst:1203 ../../library/datetime.rst:1208 -#: ../../library/datetime.rst:1826 ../../library/datetime.rst:1831 +#: ../../library/datetime.rst:1219 ../../library/datetime.rst:1224 +#: ../../library/datetime.rst:1842 ../../library/datetime.rst:1847 msgid "In ``range(60)``." msgstr "in ``range(60)`` を満たします。" -#: ../../library/datetime.rst:1213 ../../library/datetime.rst:1836 +#: ../../library/datetime.rst:1229 ../../library/datetime.rst:1852 msgid "In ``range(1000000)``." msgstr "in ``range(1000000)`` を満たします。" -#: ../../library/datetime.rst:1218 +#: ../../library/datetime.rst:1234 msgid "" "The object passed as the *tzinfo* argument to the :class:`.datetime` " "constructor, or ``None`` if none was passed." @@ -2032,7 +2052,7 @@ msgstr "" ":class:`.datetime` コンストラクタに *tzinfo* 引数として与えられたオブジェクト" "になり、何も渡されなかった場合には ``None`` になります。" -#: ../../library/datetime.rst:1224 ../../library/datetime.rst:1847 +#: ../../library/datetime.rst:1240 ../../library/datetime.rst:1863 msgid "" "In ``[0, 1]``. Used to disambiguate wall times during a repeated interval. " "(A repeated interval occurs when clocks are rolled back at the end of " @@ -2048,26 +2068,26 @@ msgstr "" "0または1という値は、同じ実時間で表現される 2 つの時刻のうちのそれぞれ早い方ま" "たは遅い方を表します。" -#: ../../library/datetime.rst:1237 +#: ../../library/datetime.rst:1253 msgid "``datetime2 = datetime1 + timedelta``" msgstr "``datetime2 = datetime1 + timedelta``" -#: ../../library/datetime.rst:1237 ../../library/datetime.rst:2474 -#: ../../library/datetime.rst:2479 ../../library/datetime.rst:2491 -#: ../../library/datetime.rst:2496 ../../library/datetime.rst:2556 -#: ../../library/datetime.rst:2561 ../../library/datetime.rst:2565 +#: ../../library/datetime.rst:1253 ../../library/datetime.rst:2490 +#: ../../library/datetime.rst:2495 ../../library/datetime.rst:2507 +#: ../../library/datetime.rst:2512 ../../library/datetime.rst:2572 +#: ../../library/datetime.rst:2577 ../../library/datetime.rst:2581 msgid "\\(1)" msgstr "\\(1)" -#: ../../library/datetime.rst:1239 +#: ../../library/datetime.rst:1255 msgid "``datetime2 = datetime1 - timedelta``" msgstr "``datetime2 = datetime1 - timedelta``" -#: ../../library/datetime.rst:1239 ../../library/datetime.rst:2507 +#: ../../library/datetime.rst:1255 ../../library/datetime.rst:2523 msgid "\\(2)" msgstr "\\(2)" -#: ../../library/datetime.rst:1241 +#: ../../library/datetime.rst:1257 msgid "``timedelta = datetime1 - datetime2``" msgstr "``timedelta = datetime1 - datetime2``" @@ -2095,7 +2115,7 @@ msgstr "``datetime1 <= datetime2``" msgid "``datetime1 >= datetime2``" msgstr "``datetime1 >= datetime2``" -#: ../../library/datetime.rst:1253 +#: ../../library/datetime.rst:1269 msgid "" "``datetime2`` is a duration of ``timedelta`` removed from ``datetime1``, " "moving forward in time if ``timedelta.days > 0``, or backward if ``timedelta." @@ -2114,7 +2134,7 @@ msgstr "" "大きい場合には :exc:`OverflowError` が送出されます。\n" "入力が aware なオブジェクトの場合でもタイムゾーン修正は全く行われません。" -#: ../../library/datetime.rst:1262 +#: ../../library/datetime.rst:1278 msgid "" "Computes the ``datetime2`` such that ``datetime2 + timedelta == datetime1``. " "As for addition, the result has the same :attr:`~.datetime.tzinfo` attribute " @@ -2126,7 +2146,7 @@ msgstr "" "ちなみに、結果は入力の datetime と同じ :attr:`~.datetime.tzinfo` 属性を持ち、" "入力が aware だとしてもタイムゾーン修正は全く行われません。" -#: ../../library/datetime.rst:1267 +#: ../../library/datetime.rst:1283 msgid "" "Subtraction of a :class:`.datetime` from a :class:`.datetime` is defined " "only if both operands are naive, or if both are aware. If one is aware and " @@ -2136,7 +2156,7 @@ msgstr "" "あるか、両方とも aware である場合にのみ定義されています。片方が aware でもう" "一方が naive の場合、 :exc:`TypeError` が送出されます。" -#: ../../library/datetime.rst:1271 +#: ../../library/datetime.rst:1287 msgid "" "If both are naive, or both are aware and have the same :attr:`~.datetime." "tzinfo` attribute, the :attr:`~.datetime.tzinfo` attributes are ignored, and " @@ -2144,7 +2164,7 @@ msgid "" "datetime1``. No time zone adjustments are done in this case." msgstr "" -#: ../../library/datetime.rst:1276 +#: ../../library/datetime.rst:1292 msgid "" "If both are aware and have different :attr:`~.datetime.tzinfo` attributes, " "``a-b`` acts as if ``a`` and ``b`` were first converted to naive UTC " @@ -2153,7 +2173,7 @@ msgid "" "overflows." msgstr "" -#: ../../library/datetime.rst:1282 +#: ../../library/datetime.rst:1298 msgid "" ":class:`.datetime` objects are equal if they represent the same date and " "time, taking into account the time zone." @@ -2161,11 +2181,11 @@ msgstr "" ":class:`.datetime` オブジェクトはタイムゾーンを考慮して同じ日付と時刻を表す場" "合、等しいです。" -#: ../../library/datetime.rst:1285 +#: ../../library/datetime.rst:1301 msgid "Naive and aware :class:`!datetime` objects are never equal." msgstr "" -#: ../../library/datetime.rst:1287 +#: ../../library/datetime.rst:1303 msgid "" "If both comparands are aware, and have the same :attr:`!tzinfo` attribute, " "the :attr:`!tzinfo` and :attr:`~.datetime.fold` attributes are ignored and " @@ -2176,7 +2196,7 @@ msgid "" "interval are never equal to :class:`!datetime` instances in other time zone." msgstr "" -#: ../../library/datetime.rst:1297 +#: ../../library/datetime.rst:1313 msgid "" "*datetime1* is considered less than *datetime2* when *datetime1* precedes " "*datetime2* in time, taking into account the time zone." @@ -2184,13 +2204,13 @@ msgstr "" "タイムゾーンを考慮して、*datetime1* が時刻として *datetime2* よりも前を表す場" "合に、*datetime1* は *datetime2* よりも小さいと見なされます。" -#: ../../library/datetime.rst:1300 +#: ../../library/datetime.rst:1316 msgid "" "Order comparison between naive and aware :class:`.datetime` objects raises :" "exc:`TypeError`." msgstr "" -#: ../../library/datetime.rst:1303 +#: ../../library/datetime.rst:1319 msgid "" "If both comparands are aware, and have the same :attr:`!tzinfo` attribute, " "the :attr:`!tzinfo` and :attr:`~.datetime.fold` attributes are ignored and " @@ -2200,7 +2220,7 @@ msgid "" "implementation never overflows." msgstr "" -#: ../../library/datetime.rst:1310 +#: ../../library/datetime.rst:1326 msgid "" "Equality comparisons between aware and naive :class:`.datetime` instances " "don't raise :exc:`TypeError`." @@ -2208,11 +2228,11 @@ msgstr "" "aware な :class:`datetime` インスタンスと naive な :class:`datetime` インスタ" "ンスの等価比較では :exc:`TypeError` は送出されません。" -#: ../../library/datetime.rst:1326 +#: ../../library/datetime.rst:1342 msgid "Return :class:`date` object with same year, month and day." msgstr "同じ年、月、日の :class:`date` オブジェクトを返します。" -#: ../../library/datetime.rst:1331 +#: ../../library/datetime.rst:1347 msgid "" "Return :class:`.time` object with same hour, minute, second, microsecond and " "fold. :attr:`.tzinfo` is ``None``. See also method :meth:`timetz`." @@ -2221,11 +2241,11 @@ msgstr "" "クトを返します。 :attr:`.tzinfo` は ``None`` です。 :meth:`timetz` も参照して" "ください。" -#: ../../library/datetime.rst:1334 ../../library/datetime.rst:1343 +#: ../../library/datetime.rst:1350 ../../library/datetime.rst:1359 msgid "The fold value is copied to the returned :class:`.time` object." msgstr "値 foldは返される :class:`.time` オブジェクトにコピーされます。" -#: ../../library/datetime.rst:1340 +#: ../../library/datetime.rst:1356 msgid "" "Return :class:`.time` object with same hour, minute, second, microsecond, " "fold, and tzinfo attributes. See also method :meth:`time`." @@ -2233,7 +2253,7 @@ msgstr "" "同じhour、minute、second、microsecond、fold および tzinfo 属性を持つ :class:" "`.time` オブジェクトを返します。 :meth:`time` メソッドも参照してください。" -#: ../../library/datetime.rst:1351 +#: ../../library/datetime.rst:1367 msgid "" "Return a new :class:`datetime` object with the same attributes, but with " "specified parameters updated. Note that ``tzinfo=None`` can be specified to " @@ -2241,7 +2261,7 @@ msgid "" "and time data." msgstr "" -#: ../../library/datetime.rst:1356 +#: ../../library/datetime.rst:1372 msgid "" ":class:`.datetime` objects are also supported by generic function :func:" "`copy.replace`." @@ -2249,7 +2269,7 @@ msgstr "" ":class:`.datetime` オブジェクトは汎用的な関数 :func:`copy.replace` にもサポー" "トされています。" -#: ../../library/datetime.rst:1365 +#: ../../library/datetime.rst:1381 msgid "" "Return a :class:`.datetime` object with new :attr:`.tzinfo` attribute *tz*, " "adjusting the date and time data so the result is the same UTC time as " @@ -2260,7 +2280,7 @@ msgstr "" "日付および時刻データを調整して、返り値が *self* と同じ UTC 時刻を持ち、 *tz* " "におけるローカルな時刻を表すようにします。" -#: ../../library/datetime.rst:1369 +#: ../../library/datetime.rst:1385 msgid "" "If provided, *tz* must be an instance of a :class:`tzinfo` subclass, and " "its :meth:`utcoffset` and :meth:`dst` methods must not return ``None``. If " @@ -2271,7 +2291,7 @@ msgstr "" "``None`` を返してはなりません。もし *self* が naive ならば、おそらくシステム" "のタイムゾーンで時間を表現します。" -#: ../../library/datetime.rst:1373 +#: ../../library/datetime.rst:1389 msgid "" "If called without arguments (or with ``tz=None``) the system local time zone " "is assumed for the target time zone. The ``.tzinfo`` attribute of the " @@ -2283,7 +2303,7 @@ msgstr "" "変換後の datetime インスタンスの ``.tzinfo`` 属性には、 OS から取得したゾーン" "名とオフセットを持つ :class:`timezone` インスタンスが設定されます。" -#: ../../library/datetime.rst:1378 +#: ../../library/datetime.rst:1394 msgid "" "If ``self.tzinfo`` is *tz*, ``self.astimezone(tz)`` is equal to *self*: no " "adjustment of date or time data is performed. Else the result is local time " @@ -2298,7 +2318,7 @@ msgstr "" "astz.utcoffset()`` は通常 ``dt - dt.utcoffset()`` と同じ date および time を" "持つことを示します。" -#: ../../library/datetime.rst:1384 +#: ../../library/datetime.rst:1400 msgid "" "If you merely want to attach a :class:`timezone` object *tz* to a datetime " "*dt* without adjustment of date and time data, use ``dt." @@ -2313,7 +2333,7 @@ msgstr "" "時刻データの変換を行わないのなら、``dt.replace(tzinfo=None)`` を使ってくださ" "い。" -#: ../../library/datetime.rst:1389 +#: ../../library/datetime.rst:1405 msgid "" "Note that the default :meth:`tzinfo.fromutc` method can be overridden in a :" "class:`tzinfo` subclass to affect the result returned by :meth:`astimezone`. " @@ -2323,7 +2343,7 @@ msgstr "" "上書きして, :meth:`astimezone` が返す結果に影響を及ぼすことができます。エラー" "の場合を無視すると、 :meth:`astimezone` は以下のように動作します::" -#: ../../library/datetime.rst:1393 +#: ../../library/datetime.rst:1409 msgid "" "def astimezone(self, tz):\n" " if self.tzinfo is tz:\n" @@ -2334,11 +2354,11 @@ msgid "" " return tz.fromutc(utc)" msgstr "" -#: ../../library/datetime.rst:1401 +#: ../../library/datetime.rst:1417 msgid "*tz* now can be omitted." msgstr "*tz* が省略可能になりました。" -#: ../../library/datetime.rst:1404 +#: ../../library/datetime.rst:1420 msgid "" "The :meth:`astimezone` method can now be called on naive instances that are " "presumed to represent system local time." @@ -2347,7 +2367,7 @@ msgstr "" "呼び出せるようになりました。これは、システムのローカルな時間を表現していると" "想定されます。" -#: ../../library/datetime.rst:1411 +#: ../../library/datetime.rst:1427 msgid "" "If :attr:`.tzinfo` is ``None``, returns ``None``, else returns ``self.tzinfo." "utcoffset(self)``, and raises an exception if the latter doesn't return " @@ -2358,13 +2378,13 @@ msgstr "" "後者の式が ``None`` あるいは 1 日以下の大きさを持つ :class:`timedelta` オブ" "ジェクトのいずれかを返さない場合には例外を送出します。" -#: ../../library/datetime.rst:1415 ../../library/datetime.rst:2026 -#: ../../library/datetime.rst:2133 ../../library/datetime.rst:2378 -#: ../../library/datetime.rst:2390 ../../library/datetime.rst:2700 +#: ../../library/datetime.rst:1431 ../../library/datetime.rst:2042 +#: ../../library/datetime.rst:2149 ../../library/datetime.rst:2394 +#: ../../library/datetime.rst:2406 ../../library/datetime.rst:2716 msgid "The UTC offset is not restricted to a whole number of minutes." msgstr "UTC オフセットが分単位でなければならない制限が無くなりました。" -#: ../../library/datetime.rst:1421 +#: ../../library/datetime.rst:1437 msgid "" "If :attr:`.tzinfo` is ``None``, returns ``None``, else returns ``self.tzinfo." "dst(self)``, and raises an exception if the latter doesn't return ``None`` " @@ -2375,12 +2395,12 @@ msgstr "" "後者の式が ``None`` もしくは、1 日未満の大きさを持つ :class:`timedelta` オブ" "ジェクトのいずれかを返さない場合には例外を送出します。" -#: ../../library/datetime.rst:1425 ../../library/datetime.rst:2036 -#: ../../library/datetime.rst:2187 +#: ../../library/datetime.rst:1441 ../../library/datetime.rst:2052 +#: ../../library/datetime.rst:2203 msgid "The DST offset is not restricted to a whole number of minutes." msgstr "DST オフセットが分単位でなければならない制限が無くなりました。" -#: ../../library/datetime.rst:1431 +#: ../../library/datetime.rst:1447 msgid "" "If :attr:`.tzinfo` is ``None``, returns ``None``, else returns ``self.tzinfo." "tzname(self)``, raises an exception if the latter doesn't return ``None`` or " @@ -2391,14 +2411,14 @@ msgstr "" "後者の式が ``None`` か文字列オブジェクトのいずれかを返さない場合には例外を送" "出します。" -#: ../../library/datetime.rst:1442 +#: ../../library/datetime.rst:1458 msgid "" "time.struct_time((d.year, d.month, d.day,\n" " d.hour, d.minute, d.second,\n" " d.weekday(), yday, dst))" msgstr "" -#: ../../library/datetime.rst:1446 +#: ../../library/datetime.rst:1462 msgid "" "where ``yday = d.toordinal() - date(d.year, 1, 1).toordinal() + 1`` is the " "day number within the current year starting with 1 for January 1st. The :" @@ -2416,7 +2436,7 @@ msgstr "" "場合、 :meth:`dst` がゼロでない値を返すと :attr:`!tm_isdst` は1となります; そ" "れ以外の場合には :attr:`!tm_isdst` は0に設定されます。" -#: ../../library/datetime.rst:1457 +#: ../../library/datetime.rst:1473 msgid "" "If :class:`.datetime` instance ``d`` is naive, this is the same as ``d." "timetuple()`` except that :attr:`~.time.struct_time.tm_isdst` is forced to 0 " @@ -2424,7 +2444,7 @@ msgid "" "time." msgstr "" -#: ../../library/datetime.rst:1461 +#: ../../library/datetime.rst:1477 msgid "" "If ``d`` is aware, ``d`` is normalized to UTC time, by subtracting ``d." "utcoffset()``, and a :class:`time.struct_time` for the normalized time is " @@ -2433,7 +2453,7 @@ msgid "" "and UTC adjustment spills over a year boundary." msgstr "" -#: ../../library/datetime.rst:1470 +#: ../../library/datetime.rst:1486 msgid "" "Because naive ``datetime`` objects are treated by many ``datetime`` methods " "as local times, it is preferred to use aware datetimes to represent times in " @@ -2450,7 +2470,7 @@ msgstr "" "が使えるところでは ``datetime.replace(tzinfo=timezone.utc)`` で aware にしま" "す。" -#: ../../library/datetime.rst:1479 +#: ../../library/datetime.rst:1495 msgid "" "Return the proleptic Gregorian ordinal of the date. The same as ``self." "date().toordinal()``." @@ -2458,7 +2478,7 @@ msgstr "" "先発グレゴリオ暦における日付序数を返します。``self.date().toordinal()`` と同" "じです。" -#: ../../library/datetime.rst:1484 +#: ../../library/datetime.rst:1500 msgid "" "Return POSIX timestamp corresponding to the :class:`.datetime` instance. The " "return value is a :class:`float` similar to that returned by :func:`time." @@ -2467,7 +2487,7 @@ msgstr "" ":class:`.datetime` インスタンスに対応する POSIX タイムスタンプを返します。\n" "返り値は :func:`time.time` で返される値に近い :class:`float` です。" -#: ../../library/datetime.rst:1488 +#: ../../library/datetime.rst:1504 msgid "" "Naive :class:`.datetime` instances are assumed to represent local time and " "this method relies on the platform C :c:func:`mktime` function to perform " @@ -2482,18 +2502,18 @@ msgstr "" "値をサポートしているので、遥か過去の時刻や遥か未来の時刻に対し、このメソッド" "は :exc:`OverflowError` または :exc:`OSError` を送出するかもしれません。" -#: ../../library/datetime.rst:1495 +#: ../../library/datetime.rst:1511 msgid "" "For aware :class:`.datetime` instances, the return value is computed as::" msgstr "" "aware な :class:`.datetime` インスタンスに対しては以下のように返り値が計算さ" "れます::" -#: ../../library/datetime.rst:1498 +#: ../../library/datetime.rst:1514 msgid "(dt - datetime(1970, 1, 1, tzinfo=timezone.utc)).total_seconds()" msgstr "" -#: ../../library/datetime.rst:1502 +#: ../../library/datetime.rst:1518 msgid "" "The :meth:`timestamp` method uses the :attr:`.fold` attribute to " "disambiguate the times during a repeated interval." @@ -2501,7 +2521,7 @@ msgstr "" " :meth:`timestamp` メソッドは :attr:`.fold` 属性を繰り返し時間での曖昧さ回避" "に使用します。" -#: ../../library/datetime.rst:1508 +#: ../../library/datetime.rst:1524 msgid "" "There is no method to obtain the POSIX timestamp directly from a naive :" "class:`.datetime` instance representing UTC time. If your application uses " @@ -2514,19 +2534,19 @@ msgstr "" "れていなかった場合、 ``tzinfo=timezone.utc`` を引数に与えることで POSIX タイ" "ムスタンプを取得できます::" -#: ../../library/datetime.rst:1514 +#: ../../library/datetime.rst:1530 msgid "timestamp = dt.replace(tzinfo=timezone.utc).timestamp()" msgstr "" -#: ../../library/datetime.rst:1516 +#: ../../library/datetime.rst:1532 msgid "or by calculating the timestamp directly::" msgstr "もしくは直接タイムスタンプを計算することもできます::" -#: ../../library/datetime.rst:1518 +#: ../../library/datetime.rst:1534 msgid "timestamp = (dt - datetime(1970, 1, 1)) / timedelta(seconds=1)" msgstr "" -#: ../../library/datetime.rst:1522 +#: ../../library/datetime.rst:1538 msgid "" "Return the day of the week as an integer, where Monday is 0 and Sunday is 6. " "The same as ``self.date().weekday()``. See also :meth:`isoweekday`." @@ -2534,7 +2554,7 @@ msgstr "" "月曜日を 0、日曜日を 6 として、曜日を整数で返します。 ``self.date()." "weekday()`` と同じです。 :meth:`isoweekday` も参照してください。" -#: ../../library/datetime.rst:1528 +#: ../../library/datetime.rst:1544 msgid "" "Return the day of the week as an integer, where Monday is 1 and Sunday is 7. " "The same as ``self.date().isoweekday()``. See also :meth:`weekday`, :meth:" @@ -2544,7 +2564,7 @@ msgstr "" "isoweekday()`` と等価です。 :meth:`weekday` 、 :meth:`isocalendar` も参照して" "ください。" -#: ../../library/datetime.rst:1535 +#: ../../library/datetime.rst:1551 msgid "" "Return a :term:`named tuple` with three components: ``year``, ``week`` and " "``weekday``. The same as ``self.date().isocalendar()``." @@ -2552,19 +2572,19 @@ msgstr "" "``year``、``week``、``weekday`` の3つで構成された :term:`named tuple` を返し" "ます。 ``self.date().isocalendar()`` と等価です。" -#: ../../library/datetime.rst:1541 +#: ../../library/datetime.rst:1557 msgid "Return a string representing the date and time in ISO 8601 format:" msgstr "日時を ISO 8601 書式で表した文字列で返します::" -#: ../../library/datetime.rst:1543 +#: ../../library/datetime.rst:1559 msgid "``YYYY-MM-DDTHH:MM:SS.ffffff``, if :attr:`microsecond` is not 0" msgstr ":attr:`microsecond` が 0 でない場合は ``YYYY-MM-DDTHH:MM:SS.ffffff``" -#: ../../library/datetime.rst:1544 +#: ../../library/datetime.rst:1560 msgid "``YYYY-MM-DDTHH:MM:SS``, if :attr:`microsecond` is 0" msgstr ":attr:`microsecond` が 0 の場合は ``YYYY-MM-DDTHH:MM:SS``" -#: ../../library/datetime.rst:1546 +#: ../../library/datetime.rst:1562 msgid "" "If :meth:`utcoffset` does not return ``None``, a string is appended, giving " "the UTC offset:" @@ -2572,7 +2592,7 @@ msgstr "" ":meth:`utcoffset` が ``None`` を返さない場合は、文字列の後ろに UTC オフセット" "が追記されます:" -#: ../../library/datetime.rst:1549 +#: ../../library/datetime.rst:1565 msgid "" "``YYYY-MM-DDTHH:MM:SS.ffffff+HH:MM[:SS[.ffffff]]``, if :attr:`microsecond` " "is not 0" @@ -2580,13 +2600,13 @@ msgstr "" ":attr:`microsecond` が 0 でない場合は ``YYYY-MM-DDTHH:MM:SS.ffffff+HH:MM[:" "SS[.ffffff]]``" -#: ../../library/datetime.rst:1551 +#: ../../library/datetime.rst:1567 msgid "" "``YYYY-MM-DDTHH:MM:SS+HH:MM[:SS[.ffffff]]``, if :attr:`microsecond` is 0" msgstr "" ":attr:`microsecond` が 0 の場合は ``YYYY-MM-DDTHH:MM:SS+HH:MM[:SS[.ffffff]]``" -#: ../../library/datetime.rst:1555 +#: ../../library/datetime.rst:1571 msgid "" ">>> from datetime import datetime, timezone\n" ">>> datetime(2019, 5, 18, 15, 17, 8, 132263).isoformat()\n" @@ -2595,7 +2615,7 @@ msgid "" "'2019-05-18T15:17:00+00:00'" msgstr "" -#: ../../library/datetime.rst:1561 +#: ../../library/datetime.rst:1577 msgid "" "The optional argument *sep* (default ``'T'``) is a one-character separator, " "placed between the date and time portions of the result. For example::" @@ -2603,7 +2623,7 @@ msgstr "" "オプションの引数 *sep* (デフォルトでは ``'T'`` です) は 1 文字のセパレータ" "で、結果の文字列の日付と時刻の間に置かれます。例えば::" -#: ../../library/datetime.rst:1564 +#: ../../library/datetime.rst:1580 msgid "" ">>> from datetime import tzinfo, timedelta, datetime\n" ">>> class TZ(tzinfo):\n" @@ -2617,7 +2637,7 @@ msgid "" "'2009-11-27T00:00:00.000100-06:39'" msgstr "" -#: ../../library/datetime.rst:1575 ../../library/datetime.rst:1966 +#: ../../library/datetime.rst:1591 ../../library/datetime.rst:1982 msgid "" "The optional argument *timespec* specifies the number of additional " "components of the time to include (the default is ``'auto'``). It can be one " @@ -2626,7 +2646,7 @@ msgstr "" "オプション引数 *timespec* は、含める追加の時間の要素の数を指定します(デフォル" "トでは ``'auto'`` です)。以下の内一つを指定してください。" -#: ../../library/datetime.rst:1579 ../../library/datetime.rst:1970 +#: ../../library/datetime.rst:1595 ../../library/datetime.rst:1986 msgid "" "``'auto'``: Same as ``'seconds'`` if :attr:`microsecond` is 0, same as " "``'microseconds'`` otherwise." @@ -2634,18 +2654,18 @@ msgstr "" "``'auto'``: :attr:`microsecond` が0である場合 ``'seconds'`` と等しく、そうで" "ない場合は ``'microseconds'`` と等しくなります。" -#: ../../library/datetime.rst:1581 ../../library/datetime.rst:1972 +#: ../../library/datetime.rst:1597 ../../library/datetime.rst:1988 msgid "``'hours'``: Include the :attr:`hour` in the two-digit ``HH`` format." msgstr "``'hours'``: :attr:`hour` を2桁の ``HH`` 書式で含めます。" -#: ../../library/datetime.rst:1582 ../../library/datetime.rst:1973 +#: ../../library/datetime.rst:1598 ../../library/datetime.rst:1989 msgid "" "``'minutes'``: Include :attr:`hour` and :attr:`minute` in ``HH:MM`` format." msgstr "" "``'minutes'``: :attr:`hour` および :attr:`minute` を ``HH:MM`` の書式で含めま" "す。" -#: ../../library/datetime.rst:1583 ../../library/datetime.rst:1974 +#: ../../library/datetime.rst:1599 ../../library/datetime.rst:1990 msgid "" "``'seconds'``: Include :attr:`hour`, :attr:`minute`, and :attr:`second` in " "``HH:MM:SS`` format." @@ -2653,7 +2673,7 @@ msgstr "" "``'seconds'``: :attr:`hour` 、 :attr:`minute` 、 :attr:`second` を ``HH:MM:" "SS`` の書式で含めます。" -#: ../../library/datetime.rst:1585 ../../library/datetime.rst:1976 +#: ../../library/datetime.rst:1601 ../../library/datetime.rst:1992 msgid "" "``'milliseconds'``: Include full time, but truncate fractional second part " "to milliseconds. ``HH:MM:SS.sss`` format." @@ -2662,20 +2682,20 @@ msgstr "" "す。\n" "``HH:MM:SS.sss`` の書式で表現します。" -#: ../../library/datetime.rst:1587 ../../library/datetime.rst:1978 +#: ../../library/datetime.rst:1603 ../../library/datetime.rst:1994 msgid "``'microseconds'``: Include full time in ``HH:MM:SS.ffffff`` format." msgstr "" "``'microseconds'``: 全ての時刻を ``HH:MM:SS.mmmmmm`` の書式で含めます。" -#: ../../library/datetime.rst:1591 ../../library/datetime.rst:1982 +#: ../../library/datetime.rst:1607 ../../library/datetime.rst:1998 msgid "Excluded time components are truncated, not rounded." msgstr "除外された要素は丸め込みではなく、切り捨てされます。" -#: ../../library/datetime.rst:1593 +#: ../../library/datetime.rst:1609 msgid ":exc:`ValueError` will be raised on an invalid *timespec* argument::" msgstr "不正な *timespec* 引数には :exc:`ValueError` があげられます::" -#: ../../library/datetime.rst:1596 +#: ../../library/datetime.rst:1612 msgid "" ">>> from datetime import datetime\n" ">>> datetime.now().isoformat(timespec='minutes')\n" @@ -2685,28 +2705,28 @@ msgid "" "'2015-01-01T12:30:59.000000'" msgstr "" -#: ../../library/datetime.rst:1603 ../../library/datetime.rst:1997 +#: ../../library/datetime.rst:1619 ../../library/datetime.rst:2013 msgid "Added the *timespec* parameter." msgstr "*timespec* パラメータを追加しました." -#: ../../library/datetime.rst:1609 +#: ../../library/datetime.rst:1625 msgid "" "For a :class:`.datetime` instance ``d``, ``str(d)`` is equivalent to ``d." "isoformat(' ')``." msgstr "" -#: ../../library/datetime.rst:1615 +#: ../../library/datetime.rst:1631 msgid "Return a string representing the date and time::" msgstr "日付および時刻を表す文字列を返します::" -#: ../../library/datetime.rst:1617 +#: ../../library/datetime.rst:1633 msgid "" ">>> from datetime import datetime\n" ">>> datetime(2002, 12, 4, 20, 30, 40).ctime()\n" "'Wed Dec 4 20:30:40 2002'" msgstr "" -#: ../../library/datetime.rst:1621 +#: ../../library/datetime.rst:1637 msgid "" "The output string will *not* include time zone information, regardless of " "whether the input is aware or naive." @@ -2714,7 +2734,7 @@ msgstr "" "出力文字列は入力が aware であれ naive であれ、タイムゾーン情報を含み *ません" "*。" -#: ../../library/datetime.rst:1628 +#: ../../library/datetime.rst:1644 msgid "" "on platforms where the native C :c:func:`ctime` function (which :func:`time." "ctime` invokes, but which :meth:`datetime.ctime` does not invoke) conforms " @@ -2724,7 +2744,7 @@ msgstr "" "ctime` に呼び出されない) ネイティブの C 関数 :c:func:`ctime` が C 標準に準拠" "しているプラットフォーム上でです。" -#: ../../library/datetime.rst:1635 +#: ../../library/datetime.rst:1651 msgid "" "Return a string representing the date and time, controlled by an explicit " "format string. See also :ref:`strftime-strptime-behavior` and :meth:" @@ -2734,7 +2754,7 @@ msgstr "" "ref:`strftime-strptime-behavior` および :meth:`datetime.isoformat` も参照して" "ください。" -#: ../../library/datetime.rst:1642 +#: ../../library/datetime.rst:1658 msgid "" "Same as :meth:`.datetime.strftime`. This makes it possible to specify a " "format string for a :class:`.datetime` object in :ref:`formatted string " @@ -2748,15 +2768,15 @@ msgstr "" ":ref:`strftime-strptime-behavior` および :meth:`datetime.isoformat` も参照し" "てください。" -#: ../../library/datetime.rst:1649 +#: ../../library/datetime.rst:1665 msgid "Examples of Usage: :class:`.datetime`" msgstr "使用例: :class:`.datetime`" -#: ../../library/datetime.rst:1651 +#: ../../library/datetime.rst:1667 msgid "Examples of working with :class:`.datetime` objects:" msgstr ":class:`.datetime` オブジェクトを使う例::" -#: ../../library/datetime.rst:1653 +#: ../../library/datetime.rst:1669 msgid "" ">>> from datetime import datetime, date, time, timezone\n" "\n" @@ -2810,7 +2830,7 @@ msgid "" "'The day is 21, the month is November, the time is 04:30PM.'" msgstr "" -#: ../../library/datetime.rst:1704 +#: ../../library/datetime.rst:1720 msgid "" "The example below defines a :class:`tzinfo` subclass capturing time zone " "information for Kabul, Afghanistan, which used +4 UTC until 1945 and then " @@ -2820,7 +2840,7 @@ msgstr "" "ガニスタンのカブールのタイムゾーン情報を表現する :class:`tzinfo` のサブクラス" "を定義しています::" -#: ../../library/datetime.rst:1708 +#: ../../library/datetime.rst:1724 msgid "" "from datetime import timedelta, datetime, tzinfo, timezone\n" "\n" @@ -2867,11 +2887,11 @@ msgid "" " return \"+04\"" msgstr "" -#: ../../library/datetime.rst:1751 +#: ../../library/datetime.rst:1767 msgid "Usage of ``KabulTz`` from above::" msgstr "上に出てきた ``KabulTz`` の使い方::" -#: ../../library/datetime.rst:1753 +#: ../../library/datetime.rst:1769 msgid "" ">>> tz1 = KabulTz()\n" "\n" @@ -2895,11 +2915,11 @@ msgid "" "True" msgstr "" -#: ../../library/datetime.rst:1777 +#: ../../library/datetime.rst:1793 msgid ":class:`.time` Objects" msgstr ":class:`.time` オブジェクト" -#: ../../library/datetime.rst:1779 +#: ../../library/datetime.rst:1795 msgid "" "A :class:`.time` object represents a (local) time of day, independent of any " "particular day, and subject to adjustment via a :class:`tzinfo` object." @@ -2908,7 +2928,7 @@ msgstr "" "この時刻表現は特定の日の影響を受けず、 :class:`tzinfo` オブジェクトを介した修" "正の対象となります。" -#: ../../library/datetime.rst:1784 +#: ../../library/datetime.rst:1800 msgid "" "All arguments are optional. *tzinfo* may be ``None``, or an instance of a :" "class:`tzinfo` subclass. The remaining arguments must be integers in the " @@ -2918,7 +2938,7 @@ msgstr "" "スのサブクラスのインスタンスにすることができます。残りの引数は整数で、以下の" "ような範囲に入らなければなりません:" -#: ../../library/datetime.rst:1794 +#: ../../library/datetime.rst:1810 msgid "" "If an argument outside those ranges is given, :exc:`ValueError` is raised. " "All default to 0 except *tzinfo*, which defaults to ``None``." @@ -2926,16 +2946,16 @@ msgstr "" "引数がこれらの範囲外にある場合、 :exc:`ValueError` が送出されます。 *tzinfo* " "のデフォルト値が ``None`` である以外のデフォルト値は0です。" -#: ../../library/datetime.rst:1802 +#: ../../library/datetime.rst:1818 msgid "The earliest representable :class:`.time`, ``time(0, 0, 0, 0)``." msgstr "表現できる最も古い :class:`.time` で、 ``time(0, 0, 0, 0)`` です。" -#: ../../library/datetime.rst:1807 +#: ../../library/datetime.rst:1823 msgid "The latest representable :class:`.time`, ``time(23, 59, 59, 999999)``." msgstr "" "表現できる最も新しい :class:`.time` で、 ``time(23, 59, 59, 999999)`` です。" -#: ../../library/datetime.rst:1812 +#: ../../library/datetime.rst:1828 msgid "" "The smallest possible difference between non-equal :class:`.time` objects, " "``timedelta(microseconds=1)``, although note that arithmetic on :class:`." @@ -2945,7 +2965,7 @@ msgstr "" "``timedelta(microseconds=1)`` ですが, :class:`.time` オブジェクト間の四則演算" "はサポートされていないので注意してください。" -#: ../../library/datetime.rst:1841 +#: ../../library/datetime.rst:1857 msgid "" "The object passed as the tzinfo argument to the :class:`.time` constructor, " "or ``None`` if none was passed." @@ -2953,19 +2973,19 @@ msgstr "" ":class:`.time` コンストラクタに *tzinfo* 引数として与えられたオブジェクトにな" "り、何も渡されなかった場合には ``None`` になります。" -#: ../../library/datetime.rst:1855 +#: ../../library/datetime.rst:1871 msgid "" ":class:`.time` objects support equality and order comparisons, where ``a`` " "is considered less than ``b`` when ``a`` precedes ``b`` in time." msgstr "" -#: ../../library/datetime.rst:1858 +#: ../../library/datetime.rst:1874 msgid "" "Naive and aware :class:`!time` objects are never equal. Order comparison " "between naive and aware :class:`!time` objects raises :exc:`TypeError`." msgstr "" -#: ../../library/datetime.rst:1862 +#: ../../library/datetime.rst:1878 msgid "" "If both comparands are aware, and have the same :attr:`~.time.tzinfo` " "attribute, the :attr:`!tzinfo` and :attr:`!fold` attributes are ignored and " @@ -2979,7 +2999,7 @@ msgstr "" "まず最初に (``self.utcoffset()`` で取得できる) それぞれの UTC オフセットを引" "く調整が行われます。" -#: ../../library/datetime.rst:1868 +#: ../../library/datetime.rst:1884 msgid "" "Equality comparisons between aware and naive :class:`.time` instances don't " "raise :exc:`TypeError`." @@ -2987,13 +3007,13 @@ msgstr "" "aware な インスタンスと naive な :class:`.time` インスタンスの等価比較では :" "exc:`TypeError` は送出されません。" -#: ../../library/datetime.rst:1872 +#: ../../library/datetime.rst:1888 msgid "" "In Boolean contexts, a :class:`.time` object is always considered to be true." msgstr "" "ブール値の文脈では、 :class:`.time` オブジェクトは常に真とみなされます。" -#: ../../library/datetime.rst:1874 +#: ../../library/datetime.rst:1890 msgid "" "Before Python 3.5, a :class:`.time` object was considered to be false if it " "represented midnight in UTC. This behavior was considered obscure and error-" @@ -3006,11 +3026,11 @@ msgstr "" "た。\n" "全詳細については :issue:`13936` を参照してください。" -#: ../../library/datetime.rst:1881 +#: ../../library/datetime.rst:1897 msgid "Other constructors:" msgstr "" -#: ../../library/datetime.rst:1885 +#: ../../library/datetime.rst:1901 msgid "" "Return a :class:`.time` corresponding to a *time_string* in any valid ISO " "8601 format, with the following exceptions:" @@ -3018,23 +3038,23 @@ msgstr "" "以下の例外を除く、有効な ISO 8601 フォーマットで与えられた *time_string* に対" "応する :class:`.time` を返します :" -#: ../../library/datetime.rst:1889 +#: ../../library/datetime.rst:1905 msgid "" "The leading ``T``, normally required in cases where there may be ambiguity " "between a date and a time, is not required." msgstr "" -#: ../../library/datetime.rst:1891 +#: ../../library/datetime.rst:1907 msgid "" "Fractional seconds may have any number of digits (anything beyond 6 will be " "truncated)." msgstr "" -#: ../../library/datetime.rst:1895 +#: ../../library/datetime.rst:1911 msgid "Examples:" msgstr "例:" -#: ../../library/datetime.rst:1897 +#: ../../library/datetime.rst:1913 msgid "" ">>> from datetime import time\n" ">>> time.fromisoformat('04:23:01')\n" @@ -3056,30 +3076,30 @@ msgid "" "datetime.time(4, 23, 1, tzinfo=datetime.timezone.utc)" msgstr "" -#: ../../library/datetime.rst:1919 +#: ../../library/datetime.rst:1935 msgid "" "Previously, this method only supported formats that could be emitted by :" "meth:`time.isoformat`." msgstr "" -#: ../../library/datetime.rst:1925 +#: ../../library/datetime.rst:1941 msgid "" "Return a :class:`.time` corresponding to *date_string*, parsed according to " "*format*." msgstr "" -#: ../../library/datetime.rst:1928 +#: ../../library/datetime.rst:1944 msgid "" "If *format* does not contain microseconds or timezone information, this is " "equivalent to::" msgstr "" "*format* がマイクロ秒やタイムゾーン情報を含まない場合は、以下と等価です::" -#: ../../library/datetime.rst:1930 +#: ../../library/datetime.rst:1946 msgid "time(*(time.strptime(date_string, format)[3:6]))" msgstr "" -#: ../../library/datetime.rst:1932 +#: ../../library/datetime.rst:1948 msgid "" ":exc:`ValueError` is raised if the *date_string* and *format* cannot be " "parsed by :func:`time.strptime` or if it returns a value which is not a time " @@ -3087,7 +3107,7 @@ msgid "" "fromisoformat`." msgstr "" -#: ../../library/datetime.rst:1945 +#: ../../library/datetime.rst:1961 msgid "" "Return a new :class:`.time` with the same values, but with specified " "parameters updated. Note that ``tzinfo=None`` can be specified to create a " @@ -3095,7 +3115,7 @@ msgid "" "time data." msgstr "" -#: ../../library/datetime.rst:1950 +#: ../../library/datetime.rst:1966 msgid "" ":class:`.time` objects are also supported by generic function :func:`copy." "replace`." @@ -3103,19 +3123,19 @@ msgstr "" ":class:`.time` オブジェクトは汎用的な関数 :func:`copy.replace` にもサポートさ" "れています。" -#: ../../library/datetime.rst:1959 +#: ../../library/datetime.rst:1975 msgid "Return a string representing the time in ISO 8601 format, one of:" msgstr "時刻を ISO 8601 書式で表した次の文字列のうち1つを返します::" -#: ../../library/datetime.rst:1961 +#: ../../library/datetime.rst:1977 msgid "``HH:MM:SS.ffffff``, if :attr:`microsecond` is not 0" msgstr ":attr:`microsecond` が 0 でない場合は ``HH:MM:SS.ffffff``" -#: ../../library/datetime.rst:1962 +#: ../../library/datetime.rst:1978 msgid "``HH:MM:SS``, if :attr:`microsecond` is 0" msgstr ":attr:`microsecond` が 0 の場合は ``HH:MM:SS``" -#: ../../library/datetime.rst:1963 +#: ../../library/datetime.rst:1979 msgid "" "``HH:MM:SS.ffffff+HH:MM[:SS[.ffffff]]``, if :meth:`utcoffset` does not " "return ``None``" @@ -3123,7 +3143,7 @@ msgstr "" ":meth:`utcoffset` が ``None`` を返さない場合、 ``HH:MM:SS.ffffff+HH:MM[:SS[." "ffffff]]``" -#: ../../library/datetime.rst:1964 +#: ../../library/datetime.rst:1980 msgid "" "``HH:MM:SS+HH:MM[:SS[.ffffff]]``, if :attr:`microsecond` is 0 and :meth:" "`utcoffset` does not return ``None``" @@ -3131,11 +3151,11 @@ msgstr "" ":attr:`microsecond` が 0 で :meth:`utcoffset` が ``None`` を返さない場合、 " "``HH:MM:SS+HH:MM[:SS[.ffffff]]``" -#: ../../library/datetime.rst:1984 +#: ../../library/datetime.rst:2000 msgid ":exc:`ValueError` will be raised on an invalid *timespec* argument." msgstr "不正な *timespec* 引数には :exc:`ValueError` があげられます。" -#: ../../library/datetime.rst:1988 +#: ../../library/datetime.rst:2004 msgid "" ">>> from datetime import time\n" ">>> time(hour=12, minute=34, second=56, microsecond=123456)." @@ -3148,11 +3168,11 @@ msgid "" "'12:34:56'" msgstr "" -#: ../../library/datetime.rst:2003 +#: ../../library/datetime.rst:2019 msgid "For a time ``t``, ``str(t)`` is equivalent to ``t.isoformat()``." msgstr "" -#: ../../library/datetime.rst:2008 +#: ../../library/datetime.rst:2024 msgid "" "Return a string representing the time, controlled by an explicit format " "string. See also :ref:`strftime-strptime-behavior` and :meth:`time." @@ -3162,7 +3182,7 @@ msgstr "" "`strftime-strptime-behavior` および :meth:`time.isoformat` も参照してくださ" "い。" -#: ../../library/datetime.rst:2014 +#: ../../library/datetime.rst:2030 msgid "" "Same as :meth:`.time.strftime`. This makes it possible to specify a format " "string for a :class:`.time` object in :ref:`formatted string literals >> from datetime import time, tzinfo, timedelta\n" ">>> class TZ1(tzinfo):\n" @@ -3245,11 +3265,11 @@ msgid "" "'The time is 12:10.'" msgstr "" -#: ../../library/datetime.rst:2079 +#: ../../library/datetime.rst:2095 msgid ":class:`tzinfo` Objects" msgstr ":class:`tzinfo` オブジェクト" -#: ../../library/datetime.rst:2083 +#: ../../library/datetime.rst:2099 msgid "" "This is an abstract base class, meaning that this class should not be " "instantiated directly. Define a subclass of :class:`tzinfo` to capture " @@ -3260,7 +3280,7 @@ msgstr "" ":class:`tzinfo` のサブクラスを定義し、ある特定のタイムゾーンに関する情報を保" "持するようにしてください。" -#: ../../library/datetime.rst:2087 +#: ../../library/datetime.rst:2103 msgid "" "An instance of (a concrete subclass of) :class:`tzinfo` can be passed to the " "constructors for :class:`.datetime` and :class:`.time` objects. The latter " @@ -3276,7 +3296,7 @@ msgstr "" "ンの名前、 DST オフセットを、渡された日付および時刻オブジェクトからの相対で示" "すためのメソッドを提供します。" -#: ../../library/datetime.rst:2093 +#: ../../library/datetime.rst:2109 msgid "" "You need to derive a concrete subclass, and (at least) supply " "implementations of the standard :class:`tzinfo` methods needed by the :class:" @@ -3292,7 +3312,7 @@ msgstr "" "これは UTC そのものか北アメリカの EST と EDT のような UTC からの固定されたオ" "フセットを持つタイムゾーンを表せます。" -#: ../../library/datetime.rst:2100 +#: ../../library/datetime.rst:2116 msgid "" "Special requirement for pickling: A :class:`tzinfo` subclass must have an :" "meth:`~object.__init__` method that can be called with no arguments, " @@ -3305,7 +3325,7 @@ msgstr "" "とはできないでしょう。これは技術的な側面からの要求であり、将来緩和されるかも" "しれません。" -#: ../../library/datetime.rst:2106 +#: ../../library/datetime.rst:2122 msgid "" "A concrete subclass of :class:`tzinfo` may need to implement the following " "methods. Exactly which methods are needed depends on the uses made of aware :" @@ -3316,7 +3336,7 @@ msgstr "" "トがこのサブクラスのインスタンスをどのように使うかに依存します。不確かなら" "ば、単に全てを実装してください。" -#: ../../library/datetime.rst:2113 +#: ../../library/datetime.rst:2129 msgid "" "Return offset of local time from UTC, as a :class:`timedelta` object that is " "positive east of UTC. If local time is west of UTC, this should be negative." @@ -3325,7 +3345,7 @@ msgstr "" "`timedelta` オブジェクトで返します。ローカル時間が UTC の西側にある場合、この" "値は負になります。" -#: ../../library/datetime.rst:2116 +#: ../../library/datetime.rst:2132 msgid "" "This represents the *total* offset from UTC; for example, if a :class:" "`tzinfo` object represents both time zone and DST adjustments, :meth:" @@ -3346,13 +3366,13 @@ msgstr "" "ほとんどの :meth:`utcoffset` 実装は、おそらく以下の二つのうちの一つに似たもの" "になるでしょう::" -#: ../../library/datetime.rst:2124 +#: ../../library/datetime.rst:2140 msgid "" "return CONSTANT # fixed-offset class\n" "return CONSTANT + self.dst(dt) # daylight-aware class" msgstr "" -#: ../../library/datetime.rst:2127 +#: ../../library/datetime.rst:2143 msgid "" "If :meth:`utcoffset` does not return ``None``, :meth:`dst` should not return " "``None`` either." @@ -3360,7 +3380,7 @@ msgstr "" ":meth:`utcoffset` が ``None`` を返さない場合、 :meth:`dst` も ``None`` を返し" "てはなりません。" -#: ../../library/datetime.rst:2130 +#: ../../library/datetime.rst:2146 msgid "" "The default implementation of :meth:`utcoffset` raises :exc:" "`NotImplementedError`." @@ -3368,7 +3388,7 @@ msgstr "" ":meth:`utcoffset` のデフォルトの実装は :exc:`NotImplementedError` を送出しま" "す。" -#: ../../library/datetime.rst:2139 +#: ../../library/datetime.rst:2155 msgid "" "Return the daylight saving time (DST) adjustment, as a :class:`timedelta` " "object or ``None`` if DST information isn't known." @@ -3376,7 +3396,7 @@ msgstr "" "夏時間 (DST) 修正を、 :class:`timedelta` オブジェクトで返します。\n" "DST 情報が未知の場合、 ``None`` が返されます。" -#: ../../library/datetime.rst:2143 +#: ../../library/datetime.rst:2159 msgid "" "Return ``timedelta(0)`` if DST is not in effect. If DST is in effect, return " "the offset as a :class:`timedelta` object (see :meth:`utcoffset` for " @@ -3399,7 +3419,7 @@ msgstr "" "されているかどうか判断し、 :meth:`tzinfo.fromutc` は :meth:`dst` タイムゾーン" "を移動する際に DST による変更があるかどうかを調べます。" -#: ../../library/datetime.rst:2153 +#: ../../library/datetime.rst:2169 msgid "" "An instance *tz* of a :class:`tzinfo` subclass that models both standard and " "daylight times must be consistent in this sense:" @@ -3407,11 +3427,11 @@ msgstr "" "標準および夏時間の両方をモデル化している :class:`tzinfo` サブクラスのインスタ" "ンス *tz* は以下の式:" -#: ../../library/datetime.rst:2156 +#: ../../library/datetime.rst:2172 msgid "``tz.utcoffset(dt) - tz.dst(dt)``" msgstr "``tz.utcoffset(dt) - tz.dst(dt)``" -#: ../../library/datetime.rst:2158 +#: ../../library/datetime.rst:2174 msgid "" "must return the same result for every :class:`.datetime` *dt* with ``dt." "tzinfo == tz``. For sane :class:`tzinfo` subclasses, this expression yields " @@ -3433,7 +3453,7 @@ msgstr "" "れを保証することができない場合、 :meth:`tzinfo.fromutc` の実装をオーバライド" "して、 :meth:`astimezone` に関わらず正しく動作するようにしてもかまいません。" -#: ../../library/datetime.rst:2167 +#: ../../library/datetime.rst:2183 msgid "" "Most implementations of :meth:`dst` will probably look like one of these " "two::" @@ -3441,18 +3461,18 @@ msgstr "" "ほとんどの :meth:`dst` 実装は、おそらく以下の二つのうちの一つに似たものになる" "でしょう::" -#: ../../library/datetime.rst:2169 +#: ../../library/datetime.rst:2185 msgid "" "def dst(self, dt):\n" " # a fixed-offset class: doesn't account for DST\n" " return timedelta(0)" msgstr "" -#: ../../library/datetime.rst:2173 +#: ../../library/datetime.rst:2189 msgid "or::" msgstr "もしくは::" -#: ../../library/datetime.rst:2175 +#: ../../library/datetime.rst:2191 msgid "" "def dst(self, dt):\n" " # Code to set dston and dstoff to the time zone's DST\n" @@ -3465,13 +3485,13 @@ msgid "" " return timedelta(0)" msgstr "" -#: ../../library/datetime.rst:2185 +#: ../../library/datetime.rst:2201 msgid "" "The default implementation of :meth:`dst` raises :exc:`NotImplementedError`." msgstr "" "デフォルトの :meth:`dst` 実装は :exc:`NotImplementedError` を送出します。" -#: ../../library/datetime.rst:2193 +#: ../../library/datetime.rst:2209 msgid "" "Return the time zone name corresponding to the :class:`.datetime` object " "*dt*, as a string. Nothing about string names is defined by the :mod:`!" @@ -3494,14 +3514,14 @@ msgstr "" "の特定の値によって異なった名前を返したい場合があるため、文字列値ではなくメ" "ソッドとなっていることに注意してください。" -#: ../../library/datetime.rst:2203 +#: ../../library/datetime.rst:2219 msgid "" "The default implementation of :meth:`tzname` raises :exc:" "`NotImplementedError`." msgstr "" "デフォルトの :meth:`tzname` 実装は :exc:`NotImplementedError` を送出します。" -#: ../../library/datetime.rst:2206 +#: ../../library/datetime.rst:2222 msgid "" "These methods are called by a :class:`.datetime` or :class:`.time` object, " "in response to their methods of the same names. A :class:`.datetime` object " @@ -3517,7 +3537,7 @@ msgstr "" "におけるメソッドは引数 *dt* が ``None`` の場合と、 :class:`.datetime` の場合" "を受理するように用意しなければなりません。" -#: ../../library/datetime.rst:2212 +#: ../../library/datetime.rst:2228 msgid "" "When ``None`` is passed, it's up to the class designer to decide the best " "response. For example, returning ``None`` is appropriate if the class wishes " @@ -3531,7 +3551,7 @@ msgstr "" "場合には、標準 UTC オフセットを返すために ``utcoffset(None)`` を使うともっと" "便利かもしれません。" -#: ../../library/datetime.rst:2218 +#: ../../library/datetime.rst:2234 msgid "" "When a :class:`.datetime` object is passed in response to a :class:`." "datetime` method, ``dt.tzinfo`` is the same object as *self*. :class:" @@ -3547,7 +3567,7 @@ msgstr "" "`tzinfo` メソッドは *dt* がローカル時間であると解釈するので、他のタイムゾーン" "でのオブジェクトの振る舞いについて心配する必要がありません。" -#: ../../library/datetime.rst:2224 +#: ../../library/datetime.rst:2240 msgid "" "There is one more :class:`tzinfo` method that a subclass may wish to " "override:" @@ -3555,7 +3575,7 @@ msgstr "" "サブクラスでオーバーライドすると良い、もう 1 つの :class:`tzinfo` のメソッド" "があります:" -#: ../../library/datetime.rst:2229 +#: ../../library/datetime.rst:2245 msgid "" "This is called from the default :meth:`datetime.astimezone` implementation. " "When called from that, ``dt.tzinfo`` is *self*, and *dt*'s date and time " @@ -3569,7 +3589,7 @@ msgstr "" "ル時刻に等しい :class:`datetime` オブジェクトを返すことにより日付と時刻データ" "メンバを修正することにあります。" -#: ../../library/datetime.rst:2235 +#: ../../library/datetime.rst:2251 msgid "" "Most :class:`tzinfo` subclasses should be able to inherit the default :meth:" "`fromutc` implementation without problems. It's strong enough to handle " @@ -3594,7 +3614,7 @@ msgstr "" "化にまたがる何時間かの中にある場合、期待通りの結果を生成しないかもしれませ" "ん。" -#: ../../library/datetime.rst:2246 +#: ../../library/datetime.rst:2262 msgid "" "Skipping code for error cases, the default :meth:`fromutc` implementation " "acts like::" @@ -3602,7 +3622,7 @@ msgstr "" "エラーの場合のためのコードを除き、デフォルトの :meth:`fromutc` の実装は以下の" "ように動作します::" -#: ../../library/datetime.rst:2249 +#: ../../library/datetime.rst:2265 msgid "" "def fromutc(self, dt):\n" " # raise ValueError error if dt.tzinfo is not self\n" @@ -3620,7 +3640,7 @@ msgid "" " return dt" msgstr "" -#: ../../library/datetime.rst:2264 +#: ../../library/datetime.rst:2280 msgid "" "In the following :download:`tzinfo_examples.py <../includes/tzinfo_examples." "py>` file there are some examples of :class:`tzinfo` classes:" @@ -3628,7 +3648,7 @@ msgstr "" "次の :download:`tzinfo_examples.py <../includes/tzinfo_examples.py>` ファイル" "には、 :class:`tzinfo` クラスの例がいくつか載っています:" -#: ../../library/datetime.rst:2268 +#: ../../library/datetime.rst:2284 msgid "" "from datetime import tzinfo, timedelta, datetime\n" "\n" @@ -3808,7 +3828,7 @@ msgid "" "Pacific = USTimeZone(-8, \"Pacific\", \"PST\", \"PDT\")\n" msgstr "" -#: ../../library/datetime.rst:2270 +#: ../../library/datetime.rst:2286 msgid "" "Note that there are unavoidable subtleties twice per year in a :class:" "`tzinfo` subclass accounting for both standard and daylight time, at the DST " @@ -3822,7 +3842,7 @@ msgstr "" "EDT は 3 月の第二日曜日の 1:59 (EST) の 1 分後に開始し、11 月の最初の日曜日" "の (EDTの) 1:59 に終了します::" -#: ../../library/datetime.rst:2276 +#: ../../library/datetime.rst:2292 msgid "" " UTC 3:MM 4:MM 5:MM 6:MM 7:MM 8:MM\n" " EST 22:MM 23:MM 0:MM 1:MM 2:MM 3:MM\n" @@ -3833,7 +3853,7 @@ msgid "" " end 23:MM 0:MM 1:MM 1:MM 2:MM 3:MM" msgstr "" -#: ../../library/datetime.rst:2284 +#: ../../library/datetime.rst:2300 msgid "" "When DST starts (the \"start\" line), the local wall clock leaps from 1:59 " "to 3:00. A wall time of the form 2:MM doesn't really make sense on that day, " @@ -3848,7 +3868,7 @@ msgstr "" "ん。\n" "例として、 2016 年の春方向の移行では、次のような結果になります::" -#: ../../library/datetime.rst:2289 +#: ../../library/datetime.rst:2305 msgid "" ">>> from datetime import datetime, timezone\n" ">>> from tzinfo_examples import HOUR, Eastern\n" @@ -3864,7 +3884,7 @@ msgid "" "08:00:00 UTC = 04:00:00 EDT" msgstr "" -#: ../../library/datetime.rst:2303 +#: ../../library/datetime.rst:2319 msgid "" "When DST ends (the \"end\" line), there's a potentially worse problem: " "there's an hour that can't be spelled unambiguously in local wall time: the " @@ -3892,7 +3912,7 @@ msgstr "" "fold` 属性を 0 にし、以降の時間では 1 にします。例えば、 2016 年での秋方向の" "移行では、次のような結果になります::" -#: ../../library/datetime.rst:2314 +#: ../../library/datetime.rst:2330 msgid "" ">>> u0 = datetime(2016, 11, 6, 4, tzinfo=timezone.utc)\n" ">>> for i in range(4):\n" @@ -3906,7 +3926,7 @@ msgid "" "07:00:00 UTC = 02:00:00 EST 0" msgstr "" -#: ../../library/datetime.rst:2325 +#: ../../library/datetime.rst:2341 msgid "" "Note that the :class:`.datetime` instances that differ only by the value of " "the :attr:`~.datetime.fold` attribute are considered equal in comparisons." @@ -3914,7 +3934,7 @@ msgstr "" ":attr:`~.datetime.fold` 属性が異なるだけの :class:`.datetime` インスタンスは" "比較において等しいとみなされることに注意してください。" -#: ../../library/datetime.rst:2328 +#: ../../library/datetime.rst:2344 msgid "" "Applications that can't bear wall-time ambiguities should explicitly check " "the value of the :attr:`~.datetime.fold` attribute or avoid using hybrid :" @@ -3931,11 +3951,11 @@ msgstr "" "このような曖昧さを許容できないアプリケーションは、このような手法によって回避" "すべきです。" -#: ../../library/datetime.rst:2336 +#: ../../library/datetime.rst:2352 msgid ":mod:`zoneinfo`" msgstr ":mod:`zoneinfo`" -#: ../../library/datetime.rst:2337 +#: ../../library/datetime.rst:2353 msgid "" "The :mod:`!datetime` module has a basic :class:`timezone` class (for " "handling arbitrary fixed offsets from UTC) and its :attr:`timezone.utc` " @@ -3945,7 +3965,7 @@ msgstr "" "な :class:`timezone` クラスと、(UTC :class:`!timezone` のインスタンスであ" "る) :attr:`timezone.utc` 属性があります。" -#: ../../library/datetime.rst:2341 +#: ../../library/datetime.rst:2357 msgid "" "``zoneinfo`` brings the *IANA time zone database* (also known as the Olson " "database) to Python, and its usage is recommended." @@ -3954,11 +3974,11 @@ msgstr "" "スとしても知られています) を導入するもので、これを使うことが推奨されていま" "す。" -#: ../../library/datetime.rst:2344 +#: ../../library/datetime.rst:2360 msgid "`IANA time zone database `_" msgstr "`IANA タイムゾーンデータベース `_" -#: ../../library/datetime.rst:2345 +#: ../../library/datetime.rst:2361 msgid "" "The Time Zone Database (often called tz, tzdata or zoneinfo) contains code " "and data that represent the history of local time for many representative " @@ -3971,11 +3991,11 @@ msgstr "" "時刻の履歴を表しています。政治団体によるタイムゾーンの境界、UTC オフセット、" "夏時間のルールの変更を反映するため、定期的にデータベースが更新されます。" -#: ../../library/datetime.rst:2355 +#: ../../library/datetime.rst:2371 msgid ":class:`timezone` Objects" msgstr ":class:`timezone` オブジェクト" -#: ../../library/datetime.rst:2357 +#: ../../library/datetime.rst:2373 msgid "" "The :class:`timezone` class is a subclass of :class:`tzinfo`, each instance " "of which represents a time zone defined by a fixed offset from UTC." @@ -3983,7 +4003,7 @@ msgstr "" ":class:`timezone` クラスは :class:`tzinfo` のサブクラスで、各インスタンスは " "UTC からの固定されたオフセットで定義されたタイムゾーンを表しています。" -#: ../../library/datetime.rst:2361 +#: ../../library/datetime.rst:2377 msgid "" "Objects of this class cannot be used to represent time zone information in " "the locations where different offsets are used in different days of the year " @@ -3993,7 +4013,7 @@ msgstr "" "たり、常用時 (civil time) に歴史的な変化が起きた場所のタイムゾーン情報を表す" "のには使えないので注意してください。" -#: ../../library/datetime.rst:2368 +#: ../../library/datetime.rst:2384 msgid "" "The *offset* argument must be specified as a :class:`timedelta` object " "representing the difference between the local time and UTC. It must be " @@ -4005,7 +4025,7 @@ msgstr "" "``timedelta(hours=24)`` までの両端を含まない範囲に収まっていなくてはなりませ" "ん。そうでない場合 :exc:`ValueError` が送出されます。" -#: ../../library/datetime.rst:2373 +#: ../../library/datetime.rst:2389 msgid "" "The *name* argument is optional. If specified it must be a string that will " "be used as the value returned by the :meth:`datetime.tzname` method." @@ -4013,14 +4033,14 @@ msgstr "" "*name* 引数は必須ではありません。もし指定された場合、その値は :meth:" "`datetime.tzname` メソッドの返り値として使われる文字列でなければなりません。" -#: ../../library/datetime.rst:2384 ../../library/datetime.rst:2395 +#: ../../library/datetime.rst:2400 ../../library/datetime.rst:2411 msgid "" "Return the fixed value specified when the :class:`timezone` instance is " "constructed." msgstr "" ":class:`timezone` インスタンスが構築されたときに指定された固定値を返します。" -#: ../../library/datetime.rst:2387 +#: ../../library/datetime.rst:2403 msgid "" "The *dt* argument is ignored. The return value is a :class:`timedelta` " "instance equal to the difference between the local time and UTC." @@ -4029,7 +4049,7 @@ msgstr "" "返り値は、ローカル時刻と UTC の差分に等しい :class:`timedelta` インスタンスで" "す。" -#: ../../library/datetime.rst:2398 +#: ../../library/datetime.rst:2414 msgid "" "If *name* is not provided in the constructor, the name returned by " "``tzname(dt)`` is generated from the value of the ``offset`` as follows. If " @@ -4044,7 +4064,7 @@ msgstr "" "HH と MM はそれぞれ二桁の ``offset.hours`` と ``offset.minutes`` を表現しま" "す。" -#: ../../library/datetime.rst:2404 +#: ../../library/datetime.rst:2420 msgid "" "Name generated from ``offset=timedelta(0)`` is now plain ``'UTC'``, not " "``'UTC+00:00'``." @@ -4052,11 +4072,11 @@ msgstr "" "``offset=timedelta(0)`` によって生成される名前はプレーンな `'UTC'` であり " "``'UTC+00:00'`` ではありません。" -#: ../../library/datetime.rst:2411 +#: ../../library/datetime.rst:2427 msgid "Always returns ``None``." msgstr "常に ``None`` を返します。" -#: ../../library/datetime.rst:2415 +#: ../../library/datetime.rst:2431 msgid "" "Return ``dt + offset``. The *dt* argument must be an aware :class:`." "datetime` instance, with ``tzinfo`` set to ``self``." @@ -4064,15 +4084,15 @@ msgstr "" "``dt + offset`` を返します。 *dt* 引数は ``tzinfo`` が ``self`` になっている " "aware な :class:`.datetime` インスタンスでなければなりません。" -#: ../../library/datetime.rst:2422 +#: ../../library/datetime.rst:2438 msgid "The UTC time zone, ``timezone(timedelta(0))``." msgstr "UTC タイムゾーン ``timezone(timedelta(0))`` です。" -#: ../../library/datetime.rst:2431 +#: ../../library/datetime.rst:2447 msgid ":meth:`~.datetime.strftime` and :meth:`~.datetime.strptime` Behavior" msgstr ":meth:`~.datetime.strftime` と :meth:`~.datetime.strptime` の振る舞い" -#: ../../library/datetime.rst:2433 +#: ../../library/datetime.rst:2449 msgid "" ":class:`date`, :class:`.datetime`, and :class:`.time` objects all support a " "``strftime(format)`` method, to create a string representing the time under " @@ -4082,14 +4102,14 @@ msgstr "" "``strftime(format)`` メソッドをサポートし、時刻を表現する文字列を明示的な書式" "文字列で統制して作成しています。" -#: ../../library/datetime.rst:2437 +#: ../../library/datetime.rst:2453 msgid "" "Conversely, the :meth:`date.strptime`, :meth:`datetime.strptime` and :meth:" "`time.strptime` class methods create an object from a string representing " "the time and a corresponding format string." msgstr "" -#: ../../library/datetime.rst:2441 +#: ../../library/datetime.rst:2457 msgid "" "The table below provides a high-level comparison of :meth:`~.datetime." "strftime` versus :meth:`~.datetime.strptime`:" @@ -4097,63 +4117,63 @@ msgstr "" "下の表は :meth:`~.datetime.strftime` と :meth:`~.datetime.strptime` との高レ" "ベルの対比を表しています。" -#: ../../library/datetime.rst:2445 +#: ../../library/datetime.rst:2461 msgid "``strftime``" msgstr "``strftime``" -#: ../../library/datetime.rst:2445 +#: ../../library/datetime.rst:2461 msgid "``strptime``" msgstr "``strptime``" -#: ../../library/datetime.rst:2447 +#: ../../library/datetime.rst:2463 msgid "Usage" msgstr "使用法" -#: ../../library/datetime.rst:2447 +#: ../../library/datetime.rst:2463 msgid "Convert object to a string according to a given format" msgstr "オブジェクトを与えられた書式に従って文字列に変換する" -#: ../../library/datetime.rst:2447 +#: ../../library/datetime.rst:2463 msgid "Parse a string into an object given a corresponding format" msgstr "" -#: ../../library/datetime.rst:2449 +#: ../../library/datetime.rst:2465 msgid "Type of method" msgstr "メソッドの種類" -#: ../../library/datetime.rst:2449 +#: ../../library/datetime.rst:2465 msgid "Instance method" msgstr "インスタンスメソッド" -#: ../../library/datetime.rst:2449 +#: ../../library/datetime.rst:2465 msgid "Class method" msgstr "クラスメソッド" -#: ../../library/datetime.rst:2451 +#: ../../library/datetime.rst:2467 msgid "Signature" msgstr "シグネチャ" -#: ../../library/datetime.rst:2451 +#: ../../library/datetime.rst:2467 msgid "``strftime(format)``" msgstr "``strftime(format)``" -#: ../../library/datetime.rst:2451 +#: ../../library/datetime.rst:2467 msgid "``strptime(date_string, format)``" msgstr "``strptime(date_string, format)``" -#: ../../library/datetime.rst:2458 +#: ../../library/datetime.rst:2474 msgid "" ":meth:`~.datetime.strftime` and :meth:`~.datetime.strptime` Format Codes" msgstr "" ":meth:`~.datetime.strftime` と :meth:`~.datetime.strptime` の書式コード" -#: ../../library/datetime.rst:2460 +#: ../../library/datetime.rst:2476 msgid "" "These methods accept format codes that can be used to parse and format " "dates::" msgstr "" -#: ../../library/datetime.rst:2462 +#: ../../library/datetime.rst:2478 msgid "" ">>> datetime.strptime('31/01/22 23:59:59.999999',\n" "... '%d/%m/%y %H:%M:%S.%f')\n" @@ -4162,7 +4182,7 @@ msgid "" "'Mon 31 Jan 2022, 11:59PM'" msgstr "" -#: ../../library/datetime.rst:2468 +#: ../../library/datetime.rst:2484 msgid "" "The following is a list of all the format codes that the 1989 C standard " "requires, and these work on all platforms with a standard C implementation." @@ -4170,27 +4190,27 @@ msgstr "" "以下のリストは 1989 C 標準が要求する全ての書式コードで、標準 C 実装があれば全" "ての環境で動作します。" -#: ../../library/datetime.rst:2472 ../../library/datetime.rst:2575 +#: ../../library/datetime.rst:2488 ../../library/datetime.rst:2591 msgid "Directive" msgstr "ディレクティブ" -#: ../../library/datetime.rst:2472 ../../library/datetime.rst:2575 +#: ../../library/datetime.rst:2488 ../../library/datetime.rst:2591 msgid "Meaning" msgstr "意味" -#: ../../library/datetime.rst:2472 ../../library/datetime.rst:2575 +#: ../../library/datetime.rst:2488 ../../library/datetime.rst:2591 msgid "Example" msgstr "使用例" -#: ../../library/datetime.rst:2472 ../../library/datetime.rst:2575 +#: ../../library/datetime.rst:2488 ../../library/datetime.rst:2591 msgid "Notes" msgstr "注釈" -#: ../../library/datetime.rst:2474 +#: ../../library/datetime.rst:2490 msgid "``%a``" msgstr "``%a``" -#: ../../library/datetime.rst:2474 +#: ../../library/datetime.rst:2490 msgid "Weekday as locale's abbreviated name." msgstr "ロケールの曜日名を短縮形で表示します。" @@ -4202,11 +4222,11 @@ msgstr "Sun, Mon, ..., Sat (en_US);" msgid "So, Mo, ..., Sa (de_DE)" msgstr "So, Mo, ..., Sa (de_DE)" -#: ../../library/datetime.rst:2479 +#: ../../library/datetime.rst:2495 msgid "``%A``" msgstr "``%A``" -#: ../../library/datetime.rst:2479 +#: ../../library/datetime.rst:2495 msgid "Weekday as locale's full name." msgstr "ロケールの曜日名を表示します。" @@ -4218,43 +4238,43 @@ msgstr "Sunday, Monday, ..., Saturday (en_US);" msgid "Sonntag, Montag, ..., Samstag (de_DE)" msgstr "Sonntag, Montag, ..., Samstag (de_DE)" -#: ../../library/datetime.rst:2484 +#: ../../library/datetime.rst:2500 msgid "``%w``" msgstr "``%w``" -#: ../../library/datetime.rst:2484 +#: ../../library/datetime.rst:2500 msgid "Weekday as a decimal number, where 0 is Sunday and 6 is Saturday." msgstr "" "曜日を10進表記した文字列を表示します。0 が日曜日で、6 が土曜日を表します。" -#: ../../library/datetime.rst:2484 +#: ../../library/datetime.rst:2500 msgid "0, 1, ..., 6" msgstr "0, 1, ..., 6" -#: ../../library/datetime.rst:2488 +#: ../../library/datetime.rst:2504 msgid "``%d``" msgstr "``%d``" -#: ../../library/datetime.rst:2488 +#: ../../library/datetime.rst:2504 msgid "Day of the month as a zero-padded decimal number." msgstr "0埋めした10進数で表記した月中の日にち。" -#: ../../library/datetime.rst:2488 +#: ../../library/datetime.rst:2504 msgid "01, 02, ..., 31" msgstr "01, 02, ..., 31" -#: ../../library/datetime.rst:2488 ../../library/datetime.rst:2501 -#: ../../library/datetime.rst:2504 ../../library/datetime.rst:2510 -#: ../../library/datetime.rst:2513 ../../library/datetime.rst:2519 -#: ../../library/datetime.rst:2537 +#: ../../library/datetime.rst:2504 ../../library/datetime.rst:2517 +#: ../../library/datetime.rst:2520 ../../library/datetime.rst:2526 +#: ../../library/datetime.rst:2529 ../../library/datetime.rst:2535 +#: ../../library/datetime.rst:2553 msgid "\\(9)" msgstr "\\(9)" -#: ../../library/datetime.rst:2491 +#: ../../library/datetime.rst:2507 msgid "``%b``" msgstr "``%b``" -#: ../../library/datetime.rst:2491 +#: ../../library/datetime.rst:2507 msgid "Month as locale's abbreviated name." msgstr "ロケールの月名を短縮形で表示します。" @@ -4266,11 +4286,11 @@ msgstr "Jan, Feb, ..., Dec (en_US);" msgid "Jan, Feb, ..., Dez (de_DE)" msgstr "Jan, Feb, ..., Dez (de_DE)" -#: ../../library/datetime.rst:2496 +#: ../../library/datetime.rst:2512 msgid "``%B``" msgstr "``%B``" -#: ../../library/datetime.rst:2496 +#: ../../library/datetime.rst:2512 msgid "Month as locale's full name." msgstr "ロケールの月名を表示します。" @@ -4282,67 +4302,67 @@ msgstr "January, February, ..., December (en_US);" msgid "Januar, Februar, ..., Dezember (de_DE)" msgstr "Januar, Februar, ..., Dezember (de_DE)" -#: ../../library/datetime.rst:2501 +#: ../../library/datetime.rst:2517 msgid "``%m``" msgstr "``%m``" -#: ../../library/datetime.rst:2501 +#: ../../library/datetime.rst:2517 msgid "Month as a zero-padded decimal number." msgstr "0埋めした10進数で表記した月。" -#: ../../library/datetime.rst:2501 ../../library/datetime.rst:2513 +#: ../../library/datetime.rst:2517 ../../library/datetime.rst:2529 msgid "01, 02, ..., 12" msgstr "01, 02, ..., 12" -#: ../../library/datetime.rst:2504 +#: ../../library/datetime.rst:2520 msgid "``%y``" msgstr "``%y``" -#: ../../library/datetime.rst:2504 +#: ../../library/datetime.rst:2520 msgid "Year without century as a zero-padded decimal number." msgstr "0埋めした10進数で表記した世紀無しの年。" -#: ../../library/datetime.rst:2504 +#: ../../library/datetime.rst:2520 msgid "00, 01, ..., 99" msgstr "00, 01, ..., 99" -#: ../../library/datetime.rst:2507 +#: ../../library/datetime.rst:2523 msgid "``%Y``" msgstr "``%Y``" -#: ../../library/datetime.rst:2507 +#: ../../library/datetime.rst:2523 msgid "Year with century as a decimal number." msgstr "西暦 ( 4桁) の 10 進表記を表します。" -#: ../../library/datetime.rst:2507 ../../library/datetime.rst:2577 +#: ../../library/datetime.rst:2523 ../../library/datetime.rst:2593 msgid "0001, 0002, ..., 2013, 2014, ..., 9998, 9999" msgstr "0001, 0002, ..., 2013, 2014, ..., 9998, 9999" -#: ../../library/datetime.rst:2510 +#: ../../library/datetime.rst:2526 msgid "``%H``" msgstr "``%H``" -#: ../../library/datetime.rst:2510 +#: ../../library/datetime.rst:2526 msgid "Hour (24-hour clock) as a zero-padded decimal number." msgstr "0埋めした10進数で表記した時 (24時間表記)。" -#: ../../library/datetime.rst:2510 +#: ../../library/datetime.rst:2526 msgid "00, 01, ..., 23" msgstr "00, 01, ..., 23" -#: ../../library/datetime.rst:2513 +#: ../../library/datetime.rst:2529 msgid "``%I``" msgstr "``%I``" -#: ../../library/datetime.rst:2513 +#: ../../library/datetime.rst:2529 msgid "Hour (12-hour clock) as a zero-padded decimal number." msgstr "0埋めした10進数で表記した時 (12時間表記)。" -#: ../../library/datetime.rst:2516 +#: ../../library/datetime.rst:2532 msgid "``%p``" msgstr "``%p``" -#: ../../library/datetime.rst:2516 +#: ../../library/datetime.rst:2532 msgid "Locale's equivalent of either AM or PM." msgstr "ロケールの AM もしくは PM と等価な文字列になります。" @@ -4354,55 +4374,55 @@ msgstr "AM, PM (en_US);" msgid "am, pm (de_DE)" msgstr "am, pm (de_DE)" -#: ../../library/datetime.rst:2516 +#: ../../library/datetime.rst:2532 msgid "\\(1), \\(3)" msgstr "\\(1), \\(3)" -#: ../../library/datetime.rst:2519 +#: ../../library/datetime.rst:2535 msgid "``%M``" msgstr "``%M``" -#: ../../library/datetime.rst:2519 +#: ../../library/datetime.rst:2535 msgid "Minute as a zero-padded decimal number." msgstr "0埋めした10進数で表記した分。" -#: ../../library/datetime.rst:2519 ../../library/datetime.rst:2522 +#: ../../library/datetime.rst:2535 ../../library/datetime.rst:2538 msgid "00, 01, ..., 59" msgstr "00, 01, ..., 59" -#: ../../library/datetime.rst:2522 +#: ../../library/datetime.rst:2538 msgid "``%S``" msgstr "``%S``" -#: ../../library/datetime.rst:2522 +#: ../../library/datetime.rst:2538 msgid "Second as a zero-padded decimal number." msgstr "0埋めした10進数で表記した秒。" -#: ../../library/datetime.rst:2522 +#: ../../library/datetime.rst:2538 msgid "\\(4), \\(9)" msgstr "\\(4), \\(9)" -#: ../../library/datetime.rst:2525 +#: ../../library/datetime.rst:2541 msgid "``%f``" msgstr "``%f``" -#: ../../library/datetime.rst:2525 +#: ../../library/datetime.rst:2541 msgid "Microsecond as a decimal number, zero-padded to 6 digits." msgstr "10進数で表記したマイクロ秒 (6桁に0埋めされます)。" -#: ../../library/datetime.rst:2525 +#: ../../library/datetime.rst:2541 msgid "000000, 000001, ..., 999999" msgstr "000000, 000001, ..., 999999" -#: ../../library/datetime.rst:2525 +#: ../../library/datetime.rst:2541 msgid "\\(5)" msgstr "\\(5)" -#: ../../library/datetime.rst:2529 ../../library/datetime.rst:2688 +#: ../../library/datetime.rst:2545 ../../library/datetime.rst:2704 msgid "``%z``" msgstr "``%z``" -#: ../../library/datetime.rst:2529 +#: ../../library/datetime.rst:2545 msgid "" "UTC offset in the form ``±HHMM[SS[.ffffff]]`` (empty string if the object is " "naive)." @@ -4410,44 +4430,44 @@ msgstr "" "UTCオフセットを ``±HHMM[SS[.ffffff]]`` の形式で表示します (オブジェクトが" "naiveであれば空文字列)。" -#: ../../library/datetime.rst:2529 +#: ../../library/datetime.rst:2545 msgid "(empty), +0000, -0400, +1030, +063415, -030712.345216" msgstr "(空文字列), +0000, -0400, +1030, +063415, -030712.345216" -#: ../../library/datetime.rst:2529 ../../library/datetime.rst:2534 -#: ../../library/datetime.rst:2591 +#: ../../library/datetime.rst:2545 ../../library/datetime.rst:2550 +#: ../../library/datetime.rst:2607 msgid "\\(6)" msgstr "\\(6)" -#: ../../library/datetime.rst:2534 ../../library/datetime.rst:2714 +#: ../../library/datetime.rst:2550 ../../library/datetime.rst:2730 msgid "``%Z``" msgstr "``%Z``" -#: ../../library/datetime.rst:2534 +#: ../../library/datetime.rst:2550 msgid "Time zone name (empty string if the object is naive)." msgstr "タイムゾーンの名前を表示します (オブジェクトがnaiveであれば空文字列)。" -#: ../../library/datetime.rst:2534 +#: ../../library/datetime.rst:2550 msgid "(empty), UTC, GMT" msgstr "(空文字列), UTC, GMT" -#: ../../library/datetime.rst:2537 +#: ../../library/datetime.rst:2553 msgid "``%j``" msgstr "``%j``" -#: ../../library/datetime.rst:2537 +#: ../../library/datetime.rst:2553 msgid "Day of the year as a zero-padded decimal number." msgstr "0埋めした10進数で表記した年中の日にち。" -#: ../../library/datetime.rst:2537 +#: ../../library/datetime.rst:2553 msgid "001, 002, ..., 366" msgstr "001, 002, ..., 366" -#: ../../library/datetime.rst:2540 +#: ../../library/datetime.rst:2556 msgid "``%U``" msgstr "``%U``" -#: ../../library/datetime.rst:2540 +#: ../../library/datetime.rst:2556 msgid "" "Week number of the year (Sunday as the first day of the week) as a zero-" "padded decimal number. All days in a new year preceding the first Sunday are " @@ -4456,19 +4476,19 @@ msgstr "" "0埋めした10進数で表記した年中の週番号 (週の始まりは日曜日とする)。新年の最初" "の日曜日に先立つ日は 0週に属するとします。" -#: ../../library/datetime.rst:2540 ../../library/datetime.rst:2548 +#: ../../library/datetime.rst:2556 ../../library/datetime.rst:2564 msgid "00, 01, ..., 53" msgstr "00, 01, ..., 53" -#: ../../library/datetime.rst:2540 ../../library/datetime.rst:2548 +#: ../../library/datetime.rst:2556 ../../library/datetime.rst:2564 msgid "\\(7), \\(9)" msgstr "\\(7), \\(9)" -#: ../../library/datetime.rst:2548 +#: ../../library/datetime.rst:2564 msgid "``%W``" msgstr "``%W``" -#: ../../library/datetime.rst:2548 +#: ../../library/datetime.rst:2564 msgid "" "Week number of the year (Monday as the first day of the week) as a zero-" "padded decimal number. All days in a new year preceding the first Monday are " @@ -4477,11 +4497,11 @@ msgstr "" "0埋めした10進数で表記した年中の週番号 (週の始まりは月曜日とする)。新年の最初" "の月曜日に先立つ日は 0週に属するとします。" -#: ../../library/datetime.rst:2556 +#: ../../library/datetime.rst:2572 msgid "``%c``" msgstr "``%c``" -#: ../../library/datetime.rst:2556 +#: ../../library/datetime.rst:2572 msgid "Locale's appropriate date and time representation." msgstr "ロケールの日時を適切な形式で表します。" @@ -4493,11 +4513,11 @@ msgstr "Tue Aug 16 21:30:00 1988 (en_US);" msgid "Di 16 Aug 21:30:00 1988 (de_DE)" msgstr "Di 16 Aug 21:30:00 1988 (de_DE)" -#: ../../library/datetime.rst:2561 +#: ../../library/datetime.rst:2577 msgid "``%x``" msgstr "``%x``" -#: ../../library/datetime.rst:2561 +#: ../../library/datetime.rst:2577 msgid "Locale's appropriate date representation." msgstr "ロケールの日付を適切な形式で表します。" @@ -4513,11 +4533,11 @@ msgstr "08/16/1988 (en_US);" msgid "16.08.1988 (de_DE)" msgstr "16.08.1988 (de_DE)" -#: ../../library/datetime.rst:2565 +#: ../../library/datetime.rst:2581 msgid "``%X``" msgstr "``%X``" -#: ../../library/datetime.rst:2565 +#: ../../library/datetime.rst:2581 msgid "Locale's appropriate time representation." msgstr "ロケールの時間を適切な形式で表します。" @@ -4529,19 +4549,19 @@ msgstr "21:30:00 (en_US);" msgid "21:30:00 (de_DE)" msgstr "21:30:00 (de_DE)" -#: ../../library/datetime.rst:2568 +#: ../../library/datetime.rst:2584 msgid "``%%``" msgstr "``%%``" -#: ../../library/datetime.rst:2568 +#: ../../library/datetime.rst:2584 msgid "A literal ``'%'`` character." msgstr "文字 ``'%'`` を表します。" -#: ../../library/datetime.rst:2568 +#: ../../library/datetime.rst:2584 msgid "%" msgstr "%" -#: ../../library/datetime.rst:2571 +#: ../../library/datetime.rst:2587 msgid "" "Several additional directives not required by the C89 standard are included " "for convenience. These parameters all correspond to ISO 8601 date values." @@ -4549,37 +4569,37 @@ msgstr "" "C89規格により要求されない幾つかの追加のコードが便宜上含まれています。これらの" "パラメータはすべてISO 8601の日付値に対応しています。" -#: ../../library/datetime.rst:2577 +#: ../../library/datetime.rst:2593 msgid "``%G``" msgstr "``%G``" -#: ../../library/datetime.rst:2577 +#: ../../library/datetime.rst:2593 msgid "" "ISO 8601 year with century representing the year that contains the greater " "part of the ISO week (``%V``)." msgstr "ISO week(``%V``)の内過半数を含む西暦表記の ISO 8601 year です。" -#: ../../library/datetime.rst:2577 +#: ../../library/datetime.rst:2593 msgid "\\(8)" msgstr "\\(8)" -#: ../../library/datetime.rst:2582 +#: ../../library/datetime.rst:2598 msgid "``%u``" msgstr "``%u``" -#: ../../library/datetime.rst:2582 +#: ../../library/datetime.rst:2598 msgid "ISO 8601 weekday as a decimal number where 1 is Monday." msgstr "1 を月曜日を表す 10進数表記の ISO 8601 weekday です。" -#: ../../library/datetime.rst:2582 +#: ../../library/datetime.rst:2598 msgid "1, 2, ..., 7" msgstr "1, 2, ..., 7" -#: ../../library/datetime.rst:2585 +#: ../../library/datetime.rst:2601 msgid "``%V``" msgstr "``%V``" -#: ../../library/datetime.rst:2585 +#: ../../library/datetime.rst:2601 msgid "" "ISO 8601 week as a decimal number with Monday as the first day of the week. " "Week 01 is the week containing Jan 4." @@ -4587,19 +4607,19 @@ msgstr "" "週で最初の月曜日を始めとする ISO 8601 week です。Week 01 は 1月4日を含みま" "す。" -#: ../../library/datetime.rst:2585 +#: ../../library/datetime.rst:2601 msgid "01, 02, ..., 53" msgstr "01, 02, ..., 53" -#: ../../library/datetime.rst:2585 +#: ../../library/datetime.rst:2601 msgid "\\(8), \\(9)" msgstr "\\(8), \\(9)" -#: ../../library/datetime.rst:2591 ../../library/datetime.rst:2710 +#: ../../library/datetime.rst:2607 ../../library/datetime.rst:2726 msgid "``%:z``" msgstr "``%:z``" -#: ../../library/datetime.rst:2591 +#: ../../library/datetime.rst:2607 msgid "" "UTC offset in the form ``±HH:MM[:SS[.ffffff]]`` (empty string if the object " "is naive)." @@ -4607,11 +4627,11 @@ msgstr "" "UTCオフセットを ``±HH:MM[:SS[.ffffff]]`` の形式で表示します (オブジェクトが" "naiveであれば空文字列)。" -#: ../../library/datetime.rst:2591 +#: ../../library/datetime.rst:2607 msgid "(empty), +00:00, -04:00, +10:30, +06:34:15, -03:07:12.345216" msgstr "(空文字列), +00:00, -04:00, +10:30, +06:34:15, -03:07:12.345216" -#: ../../library/datetime.rst:2597 +#: ../../library/datetime.rst:2613 msgid "" "These may not be available on all platforms when used with the :meth:`~." "datetime.strftime` method. The ISO 8601 year and ISO 8601 week directives " @@ -4625,7 +4645,7 @@ msgstr "" "せん。不完全またはあいまいなISO 8601 指定子で :meth:`~.datetime.strptime` を" "呼び出すと、 :exc:`ValueError` が送出されます。" -#: ../../library/datetime.rst:2602 +#: ../../library/datetime.rst:2618 msgid "" "The full set of format codes supported varies across platforms, because " "Python calls the platform C library's :c:func:`strftime` function, and " @@ -4642,19 +4662,19 @@ msgstr "" "サポートされていないフォーマット指定子の扱いもプラットフォーム間で差異があり" "ます。" -#: ../../library/datetime.rst:2608 +#: ../../library/datetime.rst:2624 msgid "``%G``, ``%u`` and ``%V`` were added." msgstr "``%G``, ``%u`` および ``%V`` が追加されました。" -#: ../../library/datetime.rst:2611 +#: ../../library/datetime.rst:2627 msgid "``%:z`` was added." msgstr "``%:z`` が追加されました。" -#: ../../library/datetime.rst:2615 +#: ../../library/datetime.rst:2631 msgid "Technical Detail" msgstr "技術詳細" -#: ../../library/datetime.rst:2617 +#: ../../library/datetime.rst:2633 msgid "" "Broadly speaking, ``d.strftime(fmt)`` acts like the :mod:`time` module's " "``time.strftime(fmt, d.timetuple())`` although not all objects support a :" @@ -4664,7 +4684,7 @@ msgstr "" "strftime(fmt, d.timetuple())`` のように動作します。ただし全てのオブジェクト" "が :meth:`~date.timetuple` メソッドをサポートしているわけではありません。" -#: ../../library/datetime.rst:2621 +#: ../../library/datetime.rst:2637 msgid "" "For the :meth:`.datetime.strptime` class method, the default value is " "``1900-01-01T00:00:00.000``: any components not specified in the format " @@ -4674,11 +4694,11 @@ msgstr "" "``1900-01-01T00:00:00.000`` です。書式文字列で指定されなかった部分はデフォル" "ト値から引っ張ってきます。 [#]_" -#: ../../library/datetime.rst:2625 +#: ../../library/datetime.rst:2641 msgid "Using ``datetime.strptime(date_string, format)`` is equivalent to::" msgstr "``datetime.strptime(date_string, format)`` は次の式と等価です::" -#: ../../library/datetime.rst:2629 +#: ../../library/datetime.rst:2645 msgid "" "except when the format includes sub-second components or time zone offset " "information, which are supported in ``datetime.strptime`` but are discarded " @@ -4688,7 +4708,7 @@ msgstr "" "い、秒未満の単位やタイムゾーンオフセットの情報が format に 含まれているときは" "除きます。" -#: ../../library/datetime.rst:2633 +#: ../../library/datetime.rst:2649 msgid "" "For :class:`.time` objects, the format codes for year, month, and day should " "not be used, as :class:`!time` objects have no such values. If they're used " @@ -4698,7 +4718,7 @@ msgstr "" "を使うことができません。\n" "無理矢理使った場合、年は1900に置き換えられ、月と日は1に置き換えられます。" -#: ../../library/datetime.rst:2637 +#: ../../library/datetime.rst:2653 msgid "" "For :class:`date` objects, the format codes for hours, minutes, seconds, and " "microseconds should not be used, as :class:`date` objects have no such " @@ -4708,7 +4728,7 @@ msgstr "" "の書式コードを使うことができません。\n" "無理矢理使った場合、これらの値は0に置き換えられます。" -#: ../../library/datetime.rst:2641 +#: ../../library/datetime.rst:2657 msgid "" "For the same reason, handling of format strings containing Unicode code " "points that can't be represented in the charset of the current locale is " @@ -4722,7 +4742,7 @@ msgstr "" "方、他のプラットフォームでは ``strftime`` が :exc:`UnicodeError` を送出した" "り、その代わりに空文字列を返したりするかもしれません。" -#: ../../library/datetime.rst:2650 +#: ../../library/datetime.rst:2666 msgid "" "Because the format depends on the current locale, care should be taken when " "making assumptions about the output value. Field orderings will vary (for " @@ -4730,7 +4750,7 @@ msgid "" "contain non-ASCII characters." msgstr "" -#: ../../library/datetime.rst:2656 +#: ../../library/datetime.rst:2672 msgid "" "The :meth:`~.datetime.strptime` method can parse years in the full [1, 9999] " "range, but years < 1000 must be zero-filled to 4-digit width." @@ -4739,7 +4759,7 @@ msgstr "" "きますが、 year < 1000 の範囲の年数は 0 埋めされた 4 桁の数字でなければなりま" "せん。" -#: ../../library/datetime.rst:2659 +#: ../../library/datetime.rst:2675 msgid "" "In previous versions, :meth:`~.datetime.strftime` method was restricted to " "years >= 1900." @@ -4747,7 +4767,7 @@ msgstr "" "以前のバージョンでは、 :meth:`~.datetime.strftime` メソッドは years >= 1900 " "の範囲の年数しか扱えませんでした。" -#: ../../library/datetime.rst:2663 +#: ../../library/datetime.rst:2679 msgid "" "In version 3.2, :meth:`~.datetime.strftime` method was restricted to years " ">= 1000." @@ -4755,7 +4775,7 @@ msgstr "" "バージョン 3.2 では、 :meth:`~.datetime.strftime` メソッドは years >= 1000 の" "範囲の年数しか扱えませんでした。" -#: ../../library/datetime.rst:2668 +#: ../../library/datetime.rst:2684 msgid "" "When used with the :meth:`~.datetime.strptime` method, the ``%p`` directive " "only affects the output hour field if the ``%I`` directive is used to parse " @@ -4765,7 +4785,7 @@ msgstr "" "の時間フィールドのみに影響し、 ``%I`` 指定子が使われたかのように振る舞いま" "す。" -#: ../../library/datetime.rst:2672 +#: ../../library/datetime.rst:2688 msgid "" "Unlike the :mod:`time` module, the :mod:`!datetime` module does not support " "leap seconds." @@ -4773,7 +4793,7 @@ msgstr "" ":mod:`time` モジュールと違い、 :mod:`!datetime` モジュールはうるう秒をサポー" "トしていません。" -#: ../../library/datetime.rst:2676 +#: ../../library/datetime.rst:2692 msgid "" "When used with the :meth:`~.datetime.strptime` method, the ``%f`` directive " "accepts from one to six digits and zero pads on the right. ``%f`` is an " @@ -4785,7 +4805,7 @@ msgstr "" "``%f`` は C 標準規格の書式文字セットの拡張です (とは言え、 datetime モジュー" "ルのオブジェクトそれぞれに実装されているので、どれででも使えます)。" -#: ../../library/datetime.rst:2683 +#: ../../library/datetime.rst:2699 msgid "" "For a naive object, the ``%z``, ``%:z`` and ``%Z`` format codes are replaced " "by empty strings." @@ -4793,11 +4813,11 @@ msgstr "" "naive オブジェクトでは、書式コード ``%z``、``%:z`` および ``%Z`` は空文字列に" "置き換えられます。" -#: ../../library/datetime.rst:2686 +#: ../../library/datetime.rst:2702 msgid "For an aware object:" msgstr "aware オブジェクトでは次のようになります:" -#: ../../library/datetime.rst:2689 +#: ../../library/datetime.rst:2705 msgid "" ":meth:`~.datetime.utcoffset` is transformed into a string of the form " "``±HHMM[SS[.ffffff]]``, where ``HH`` is a 2-digit string giving the number " @@ -4820,7 +4840,7 @@ msgstr "" "例えば、 :meth:`~.datetime.utcoffset` が ``timedelta(hours=-3, " "minutes=-30)`` を返す場合、 ``%z`` は文字列 ``'-0330'`` に置き換えられます。" -#: ../../library/datetime.rst:2703 +#: ../../library/datetime.rst:2719 msgid "" "When the ``%z`` directive is provided to the :meth:`~.datetime.strptime` " "method, the UTC offsets can have a colon as a separator between hours, " @@ -4833,13 +4853,13 @@ msgstr "" "例えば、 ``'+01:00:00'`` は 1 時間のオフセットだと構文解析されます。\n" "加えて、 ``'Z'`` を渡すことは ``'+00:00'`` を渡すことと同等です。" -#: ../../library/datetime.rst:2711 +#: ../../library/datetime.rst:2727 msgid "" "Behaves exactly as ``%z``, but has a colon separator added between hours, " "minutes and seconds." msgstr "" -#: ../../library/datetime.rst:2715 +#: ../../library/datetime.rst:2731 msgid "" "In :meth:`~.datetime.strftime`, ``%Z`` is replaced by an empty string if :" "meth:`~.datetime.tzname` returns ``None``; otherwise ``%Z`` is replaced by " @@ -4849,19 +4869,19 @@ msgstr "" "返した場合、 ``%Z`` は空文字列に置き換わります。そうでない場合、 ``%Z`` は返" "された値に置き換わりますが、 これは文字列でなければなりません。" -#: ../../library/datetime.rst:2719 +#: ../../library/datetime.rst:2735 msgid ":meth:`~.datetime.strptime` only accepts certain values for ``%Z``:" msgstr ":meth:`~.datetime.strptime` は ``%Z`` に特定の値のみを受け入れます:" -#: ../../library/datetime.rst:2721 +#: ../../library/datetime.rst:2737 msgid "any value in ``time.tzname`` for your machine's locale" msgstr "使用しているマシンのロケールによる ``time.tzname`` の任意の値" -#: ../../library/datetime.rst:2722 +#: ../../library/datetime.rst:2738 msgid "the hard-coded values ``UTC`` and ``GMT``" msgstr "ハードコードされた値 ``UTC`` または ``GMT``" -#: ../../library/datetime.rst:2724 +#: ../../library/datetime.rst:2740 msgid "" "So someone living in Japan may have ``JST``, ``UTC``, and ``GMT`` as valid " "values, but probably not ``EST``. It will raise ``ValueError`` for invalid " @@ -4871,7 +4891,7 @@ msgstr "" "り、 ``EST`` はおそらく無効な値となります。無効な値の場合は ``ValueError`` を" "送出します。" -#: ../../library/datetime.rst:2728 +#: ../../library/datetime.rst:2744 msgid "" "When the ``%z`` directive is provided to the :meth:`~.datetime.strptime` " "method, an aware :class:`.datetime` object will be produced. The ``tzinfo`` " @@ -4881,7 +4901,7 @@ msgstr "" "な :class:`.datetime` オブジェクトが作成されます。返り値の ``tzinfo`` は :" "class:`timezone` インスタンスになっています。" -#: ../../library/datetime.rst:2734 +#: ../../library/datetime.rst:2750 msgid "" "When used with the :meth:`~.datetime.strptime` method, ``%U`` and ``%W`` are " "only used in calculations when the day of the week and the calendar year " @@ -4890,7 +4910,7 @@ msgstr "" ":meth:`~.datetime.strptime` メソッドと共に使われた場合、 ``%U`` と ``%W`` 指" "定子は、曜日と年(``%Y``)が指定された場合の計算でのみ使われます。" -#: ../../library/datetime.rst:2739 +#: ../../library/datetime.rst:2755 msgid "" "Similar to ``%U`` and ``%W``, ``%V`` is only used in calculations when the " "day of the week and the ISO year (``%G``) are specified in a :meth:`~." @@ -4901,7 +4921,7 @@ msgstr "" "datetime.strptime` の書式文字列の中で指定された場合に計算でのみ使われます。\n" "``%G`` と ``%Y`` は互いに完全な互換性を持たないことにも注意してください。" -#: ../../library/datetime.rst:2745 +#: ../../library/datetime.rst:2761 msgid "" "When used with the :meth:`~.datetime.strptime` method, the leading zero is " "optional for formats ``%d``, ``%m``, ``%H``, ``%I``, ``%M``, ``%S``, " @@ -4913,7 +4933,7 @@ msgstr "" "任意です。\n" "書式 ``%y`` では先行ゼロは必須です。" -#: ../../library/datetime.rst:2750 +#: ../../library/datetime.rst:2766 msgid "" "When parsing a month and day using :meth:`~.datetime.strptime`, always " "include a year in the format. If the value you need to parse lacks a year, " @@ -4922,7 +4942,7 @@ msgid "" "parser is not a leap year. Users run into this bug every four years..." msgstr "" -#: ../../library/datetime.rst:2756 +#: ../../library/datetime.rst:2772 msgid "" ">>> month_day = \"02/29\"\n" ">>> datetime.strptime(f\"{month_day};1984\", \"%m/%d;%Y\") # No leap year " @@ -4930,7 +4950,7 @@ msgid "" "datetime.datetime(1984, 2, 29, 0, 0)" msgstr "" -#: ../../library/datetime.rst:2762 +#: ../../library/datetime.rst:2778 msgid "" ":meth:`~.datetime.strptime` calls using a format string containing a day of " "month without a year now emit a :exc:`DeprecationWarning`. In 3.15 or later " @@ -4938,15 +4958,15 @@ msgid "" "See :gh:`70647`." msgstr "" -#: ../../library/datetime.rst:2769 +#: ../../library/datetime.rst:2785 msgid "Footnotes" msgstr "脚注" -#: ../../library/datetime.rst:2770 +#: ../../library/datetime.rst:2786 msgid "If, that is, we ignore the effects of Relativity" msgstr "もし相対性理論の効果を無視するならば、ですが" -#: ../../library/datetime.rst:2772 +#: ../../library/datetime.rst:2788 msgid "" "This matches the definition of the \"proleptic Gregorian\" calendar in " "Dershowitz and Reingold's book *Calendrical Calculations*, where it's the " @@ -4960,7 +4980,7 @@ msgstr "" "先発グレゴリオ暦の序数とその他多くの暦法どうしの変換アルゴリズムについては、" "この書籍を参照してください。" -#: ../../library/datetime.rst:2778 +#: ../../library/datetime.rst:2794 msgid "" "See R. H. van Gent's `guide to the mathematics of the ISO 8601 calendar " "`_ を参照してください。" -#: ../../library/datetime.rst:2782 +#: ../../library/datetime.rst:2798 msgid "" "Passing ``datetime.strptime('Feb 29', '%b %d')`` will fail since 1900 is not " "a leap year." @@ -4978,10 +4998,10 @@ msgstr "" "1900は閏年ではないので ``datetime.strptime('Feb 29', '%b %d')`` を渡すと失敗" "します。" -#: ../../library/datetime.rst:2425 +#: ../../library/datetime.rst:2441 msgid "% (percent)" msgstr "% (パーセント)" -#: ../../library/datetime.rst:2425 +#: ../../library/datetime.rst:2441 msgid "datetime format" msgstr "" diff --git a/library/dbm.po b/library/dbm.po index a9c0d2117..e6e435824 100644 --- a/library/dbm.po +++ b/library/dbm.po @@ -18,10 +18,10 @@ msgstr "" "Last-Translator: 石井明久, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../library/dbm.rst:2 diff --git a/library/debug.po b/library/debug.po index f4fb74bea..af1244ab4 100644 --- a/library/debug.po +++ b/library/debug.po @@ -16,10 +16,10 @@ msgstr "" "Last-Translator: tomo, 2021\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../library/debug.rst:3 diff --git a/library/decimal.po b/library/decimal.po index bbc073f41..64d824216 100644 --- a/library/decimal.po +++ b/library/decimal.po @@ -14,15 +14,15 @@ msgid "" msgstr "" "Project-Id-Version: Python 3.14\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2025-05-08 02:53-0300\n" +"POT-Creation-Date: 2025-05-23 14:20+0000\n" "PO-Revision-Date: 2021-06-28 01:04+0000\n" "Last-Translator: 石井明久, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../library/decimal.rst:2 @@ -213,8 +213,8 @@ msgstr "" "`_。" #: ../../library/decimal.rst:125 -msgid "Quick-start Tutorial" -msgstr "クイックスタートチュートリアル" +msgid "Quick-start tutorial" +msgstr "" #: ../../library/decimal.rst:127 msgid "" @@ -1363,12 +1363,12 @@ msgstr "" msgid "Return the square root of the argument to full precision." msgstr "引数の平方根を最大精度で求めます。" -#: ../../library/decimal.rst:892 ../../library/decimal.rst:1537 +#: ../../library/decimal.rst:892 ../../library/decimal.rst:1549 msgid "" "Convert to a string, using engineering notation if an exponent is needed." msgstr "文字列に変換します。指数が必要なら工学表記が使われます。" -#: ../../library/decimal.rst:894 ../../library/decimal.rst:1539 +#: ../../library/decimal.rst:894 ../../library/decimal.rst:1551 msgid "" "Engineering notation has an exponent which is a multiple of 3. This can " "leave up to 3 digits to the left of the decimal place and may require the " @@ -1712,78 +1712,56 @@ msgstr "" "*flags* フィールドが設定されていいか :const:`None` の場合には、全てのフラグが" "クリアされます。" -#: ../../library/decimal.rst:1099 +#: ../../library/decimal.rst:1101 msgid "" -"*prec* is an integer in the range [``1``, :const:`MAX_PREC`] that sets the " -"precision for arithmetic operations in the context." +"An integer in the range [``1``, :const:`MAX_PREC`] that sets the precision " +"for arithmetic operations in the context." msgstr "" -"*prec* フィールドは範囲 [``1``, :const:`MAX_PREC`] 内の整数で、コンテキストに" -"おける算術演算の計算精度を設定します。" -#: ../../library/decimal.rst:1102 -msgid "" -"The *rounding* option is one of the constants listed in the section " -"`Rounding Modes`_." -msgstr "*rounding* オプションは、節 `丸めモード`_ で挙げられる定数の一つです。" +#: ../../library/decimal.rst:1106 +msgid "One of the constants listed in the section `Rounding Modes`_." +msgstr "" -#: ../../library/decimal.rst:1105 +#: ../../library/decimal.rst:1111 msgid "" -"The *traps* and *flags* fields list any signals to be set. Generally, new " -"contexts should only set traps and leave the flags clear." +"Lists of any signals to be set. Generally, new contexts should only set " +"traps and leave the flags clear." msgstr "" -"*traps* および *flags* フィールドには、セットしたいシグナルを列挙します。一般" -"的に、新たなコンテキストを作成するときにはトラップだけを設定し、フラグはクリ" -"アしておきます。" -#: ../../library/decimal.rst:1108 +#: ../../library/decimal.rst:1117 msgid "" -"The *Emin* and *Emax* fields are integers specifying the outer limits " -"allowable for exponents. *Emin* must be in the range [:const:`MIN_EMIN`, " -"``0``], *Emax* in the range [``0``, :const:`MAX_EMAX`]." +"Integers specifying the outer limits allowable for exponents. *Emin* must be " +"in the range [:const:`MIN_EMIN`, ``0``], *Emax* in the range [``0``, :const:" +"`MAX_EMAX`]." msgstr "" -"*Emin* および *Emax* フィールドは、許容する指数の外限を指定する整数です。 " -"*Emin* は範囲 [:const:`MIN_EMIN`, ``0``] 内で、 *Emax* は範囲 [``0``, :const:" -"`MAX_EMAX`] 内でなければなりません。" -#: ../../library/decimal.rst:1112 +#: ../../library/decimal.rst:1123 msgid "" -"The *capitals* field is either ``0`` or ``1`` (the default). If set to " -"``1``, exponents are printed with a capital ``E``; otherwise, a lowercase " -"``e`` is used: ``Decimal('6.02e+23')``." +"Either ``0`` or ``1`` (the default). If set to ``1``, exponents are printed " +"with a capital ``E``; otherwise, a lowercase ``e`` is used: " +"``Decimal('6.02e+23')``." msgstr "" -"*capitals* フィールドは ``0`` または ``1`` (デフォルト) にします。 ``1`` に設" -"定すると、指数記号を大文字 ``E`` で出力します。それ以外の場合には " -"``Decimal('6.02e+23')`` のように小文字の ``e`` を使います。" -#: ../../library/decimal.rst:1116 +#: ../../library/decimal.rst:1129 msgid "" -"The *clamp* field is either ``0`` (the default) or ``1``. If set to ``1``, " -"the exponent ``e`` of a :class:`Decimal` instance representable in this " -"context is strictly limited to the range ``Emin - prec + 1 <= e <= Emax - " -"prec + 1``. If *clamp* is ``0`` then a weaker condition holds: the adjusted " -"exponent of the :class:`Decimal` instance is at most :attr:`~Context.Emax`. " -"When *clamp* is ``1``, a large normal number will, where possible, have its " -"exponent reduced and a corresponding number of zeros added to its " -"coefficient, in order to fit the exponent constraints; this preserves the " -"value of the number but loses information about significant trailing zeros. " -"For example::" +"Either ``0`` (the default) or ``1``. If set to ``1``, the exponent ``e`` of " +"a :class:`Decimal` instance representable in this context is strictly " +"limited to the range ``Emin - prec + 1 <= e <= Emax - prec + 1``. If *clamp* " +"is ``0`` then a weaker condition holds: the adjusted exponent of the :class:" +"`Decimal` instance is at most :attr:`~Context.Emax`. When *clamp* is ``1``, " +"a large normal number will, where possible, have its exponent reduced and a " +"corresponding number of zeros added to its coefficient, in order to fit the " +"exponent constraints; this preserves the value of the number but loses " +"information about significant trailing zeros. For example::" msgstr "" -"*clamp* フィールドは、 ``0`` (デフォルト) または ``1`` です。 ``1`` に設定さ" -"れると、このコンテキストにおける :class:`Decimal` インスタンスの指数 ``e`` は" -"厳密に範囲 ``Emin - prec + 1 <= e <= Emax - prec + 1`` に制限されます。 " -"*clamp* が ``0`` なら、それより弱い条件が支配します: 調整された :class:" -"`Decimal` インスタンスの指数は最大で :attr:`~Context.Emax` です。 *clamp* が " -"``1`` なら、大きな正規数は、可能なら、指数が減らされ、対応する数の 0 が係数に" -"加えられ、指数の制約に合わせられます; これは数の値を保存しますが、有効な末尾" -"の 0 に関する情報を失います。例えば::" -#: ../../library/decimal.rst:1128 +#: ../../library/decimal.rst:1140 msgid "" ">>> Context(prec=6, Emax=999, clamp=1).create_decimal('1.23e999')\n" "Decimal('1.23000E+999')" msgstr "" -#: ../../library/decimal.rst:1131 +#: ../../library/decimal.rst:1143 msgid "" "A *clamp* value of ``1`` allows compatibility with the fixed-width decimal " "interchange formats specified in IEEE 754." @@ -1791,7 +1769,7 @@ msgstr "" "*clamp* の値 ``1`` は、IEEE 754 で規定された固定幅十進交換形式と互換にできま" "す。" -#: ../../library/decimal.rst:1134 +#: ../../library/decimal.rst:1146 msgid "" "The :class:`Context` class defines several general purpose methods as well " "as a large number of methods for doing arithmetic directly in a given " @@ -1813,23 +1791,23 @@ msgstr "" "け付けられるところならどこでも、Python の整数 (:class:`int` のインスタンス) " "を受け付けます。" -#: ../../library/decimal.rst:1147 +#: ../../library/decimal.rst:1159 msgid "Resets all of the flags to ``0``." msgstr "フラグを全て ``0`` にリセットします。" -#: ../../library/decimal.rst:1151 +#: ../../library/decimal.rst:1163 msgid "Resets all of the traps to ``0``." msgstr "トラップを全て ``0`` にリセットします。" -#: ../../library/decimal.rst:1157 +#: ../../library/decimal.rst:1169 msgid "Return a duplicate of the context." msgstr "コンテキストの複製を返します。" -#: ../../library/decimal.rst:1161 +#: ../../library/decimal.rst:1173 msgid "Return a copy of the Decimal instance num." msgstr "Decimal インスタンス num のコピーを返します。" -#: ../../library/decimal.rst:1165 +#: ../../library/decimal.rst:1177 msgid "" "Creates a new Decimal instance from *num* but using *self* as context. " "Unlike the :class:`Decimal` constructor, the context precision, rounding " @@ -1839,7 +1817,7 @@ msgstr "" "す。 :class:`Decimal` コンストラクタと違い、数値を変換する際にコンテキストの" "精度、値丸め方法、フラグ、トラップを適用します。" -#: ../../library/decimal.rst:1169 +#: ../../library/decimal.rst:1181 msgid "" "This is useful because constants are often given to a greater precision than " "is needed by the application. Another benefit is that rounding immediately " @@ -1854,7 +1832,7 @@ msgstr "" "もあります。以下の例は、丸められていない入力を使うということは和にゼロを加え" "ると結果が変わり得るという見本です:" -#: ../../library/decimal.rst:1175 +#: ../../library/decimal.rst:1187 msgid "" ">>> getcontext().prec = 3\n" ">>> Decimal('3.4445') + Decimal('1.0023')\n" @@ -1863,7 +1841,7 @@ msgid "" "Decimal('4.44')" msgstr "" -#: ../../library/decimal.rst:1183 +#: ../../library/decimal.rst:1195 msgid "" "This method implements the to-number operation of the IBM specification. If " "the argument is a string, no leading or trailing whitespace or underscores " @@ -1873,7 +1851,7 @@ msgstr "" "合、前や後ろに余計な空白を付けたり、アンダースコアを含めたりすることは許され" "ません。" -#: ../../library/decimal.rst:1189 +#: ../../library/decimal.rst:1201 msgid "" "Creates a new Decimal instance from a float *f* but rounding using *self* as " "the context. Unlike the :meth:`Decimal.from_float` class method, the " @@ -1885,7 +1863,7 @@ msgstr "" "い、変換にコンテキストの精度、丸めメソッド、フラグ、そしてトラップが適用され" "ます。" -#: ../../library/decimal.rst:1194 +#: ../../library/decimal.rst:1206 msgid "" ">>> context = Context(prec=5, rounding=ROUND_DOWN)\n" ">>> context.create_decimal_from_float(math.pi)\n" @@ -1897,7 +1875,7 @@ msgid "" "decimal.Inexact: None" msgstr "" -#: ../../library/decimal.rst:1209 +#: ../../library/decimal.rst:1221 msgid "" "Returns a value equal to ``Emin - prec + 1`` which is the minimum exponent " "value for subnormal results. When underflow occurs, the exponent is set to :" @@ -1906,11 +1884,11 @@ msgstr "" "``Emin - prec + 1`` に等しい値を返します。演算結果の劣化が起こる桁の最小値で" "す。アンダーフローが起きた場合、指数は :const:`Etiny` に設定されます。" -#: ../../library/decimal.rst:1215 +#: ../../library/decimal.rst:1227 msgid "Returns a value equal to ``Emax - prec + 1``." msgstr "``Emax - prec + 1`` に等しい値を返します。" -#: ../../library/decimal.rst:1217 +#: ../../library/decimal.rst:1229 msgid "" "The usual approach to working with decimals is to create :class:`Decimal` " "instances and then apply arithmetic operations which take place within the " @@ -1926,188 +1904,188 @@ msgstr "" "のメソッドは :class:`Decimal` クラスのメソッドに似ているので、ここでは簡単な" "説明にとどめます。" -#: ../../library/decimal.rst:1227 +#: ../../library/decimal.rst:1239 msgid "Returns the absolute value of *x*." msgstr "*x* の絶対値を返します。" -#: ../../library/decimal.rst:1232 +#: ../../library/decimal.rst:1244 msgid "Return the sum of *x* and *y*." msgstr "*x* と *y* の和を返します。" -#: ../../library/decimal.rst:1237 +#: ../../library/decimal.rst:1249 msgid "Returns the same Decimal object *x*." msgstr "同じ Decimal オブジェクト *x* を返します。" -#: ../../library/decimal.rst:1242 +#: ../../library/decimal.rst:1254 msgid "Compares *x* and *y* numerically." msgstr "*x* と *y* を数値として比較します。" -#: ../../library/decimal.rst:1247 +#: ../../library/decimal.rst:1259 msgid "Compares the values of the two operands numerically." msgstr "二つの演算対象の値を数値として比較します。" -#: ../../library/decimal.rst:1252 +#: ../../library/decimal.rst:1264 msgid "Compares two operands using their abstract representation." msgstr "二つの演算対象を抽象的な表現を使って比較します。" -#: ../../library/decimal.rst:1257 +#: ../../library/decimal.rst:1269 msgid "" "Compares two operands using their abstract representation, ignoring sign." msgstr "二つの演算対象を抽象的な表現を使い符号を無視して比較します。" -#: ../../library/decimal.rst:1262 +#: ../../library/decimal.rst:1274 msgid "Returns a copy of *x* with the sign set to 0." msgstr "*x* のコピーの符号を 0 にセットして返します。" -#: ../../library/decimal.rst:1267 +#: ../../library/decimal.rst:1279 msgid "Returns a copy of *x* with the sign inverted." msgstr "*x* のコピーの符号を反転して返します。" -#: ../../library/decimal.rst:1272 +#: ../../library/decimal.rst:1284 msgid "Copies the sign from *y* to *x*." msgstr "*y* から *x* に符号をコピーします。" -#: ../../library/decimal.rst:1277 +#: ../../library/decimal.rst:1289 msgid "Return *x* divided by *y*." msgstr "*x* を *y* で除算した値を返します。" -#: ../../library/decimal.rst:1282 +#: ../../library/decimal.rst:1294 msgid "Return *x* divided by *y*, truncated to an integer." msgstr "*x* を *y* で除算した値を整数に切り捨てて返します。" -#: ../../library/decimal.rst:1287 +#: ../../library/decimal.rst:1299 msgid "Divides two numbers and returns the integer part of the result." msgstr "二つの数値間の除算を行い、結果の整数部を返します。" -#: ../../library/decimal.rst:1292 +#: ../../library/decimal.rst:1304 msgid "Returns ``e ** x``." msgstr "``e ** x`` を返します。" -#: ../../library/decimal.rst:1297 +#: ../../library/decimal.rst:1309 msgid "Returns *x* multiplied by *y*, plus *z*." msgstr "*x* を *y* 倍したものに *z* を加えて返します。" -#: ../../library/decimal.rst:1302 +#: ../../library/decimal.rst:1314 msgid "Returns ``True`` if *x* is canonical; otherwise returns ``False``." msgstr "" "*x* が標準的(canonical)ならば ``True`` を返します。そうでなければ ``False`` " "です。" -#: ../../library/decimal.rst:1307 +#: ../../library/decimal.rst:1319 msgid "Returns ``True`` if *x* is finite; otherwise returns ``False``." msgstr "*x* が有限ならば ``True`` を返します。そうでなければ ``False`` です。" -#: ../../library/decimal.rst:1312 +#: ../../library/decimal.rst:1324 msgid "Returns ``True`` if *x* is infinite; otherwise returns ``False``." msgstr "*x* が無限ならば ``True`` を返します。そうでなければ ``False`` です。" -#: ../../library/decimal.rst:1317 +#: ../../library/decimal.rst:1329 msgid "Returns ``True`` if *x* is a qNaN or sNaN; otherwise returns ``False``." msgstr "" "*x* が qNaN か sNaN であれば ``True`` を返します。そうでなければ ``False`` で" "す。" -#: ../../library/decimal.rst:1322 +#: ../../library/decimal.rst:1334 msgid "" "Returns ``True`` if *x* is a normal number; otherwise returns ``False``." msgstr "" "*x* が通常の数ならば ``True`` を返します。そうでなければ ``False`` です。" -#: ../../library/decimal.rst:1327 +#: ../../library/decimal.rst:1339 msgid "Returns ``True`` if *x* is a quiet NaN; otherwise returns ``False``." msgstr "" "*x* が無言 NaN であれば ``True`` を返します。そうでなければ ``False`` です。" -#: ../../library/decimal.rst:1332 +#: ../../library/decimal.rst:1344 msgid "Returns ``True`` if *x* is negative; otherwise returns ``False``." msgstr "" "*x* が負の数であれば ``True`` を返します。そうでなければ ``False`` です。" -#: ../../library/decimal.rst:1337 +#: ../../library/decimal.rst:1349 msgid "" "Returns ``True`` if *x* is a signaling NaN; otherwise returns ``False``." msgstr "" "*x* が発信 NaN であれば ``True`` を返します。そうでなければ ``False`` です。" -#: ../../library/decimal.rst:1342 +#: ../../library/decimal.rst:1354 msgid "Returns ``True`` if *x* is subnormal; otherwise returns ``False``." msgstr "" "*x* が非正規数であれば ``True`` を返します。そうでなければ ``False`` です。" -#: ../../library/decimal.rst:1347 +#: ../../library/decimal.rst:1359 msgid "Returns ``True`` if *x* is a zero; otherwise returns ``False``." msgstr "" "*x* がゼロであれば ``True`` を返します。そうでなければ ``False`` です。" -#: ../../library/decimal.rst:1352 +#: ../../library/decimal.rst:1364 msgid "Returns the natural (base e) logarithm of *x*." msgstr "*x* の自然対数(底 e の対数)を返します。" -#: ../../library/decimal.rst:1357 +#: ../../library/decimal.rst:1369 msgid "Returns the base 10 logarithm of *x*." msgstr "*x* の底 10 の対数を返します。" -#: ../../library/decimal.rst:1362 +#: ../../library/decimal.rst:1374 msgid "Returns the exponent of the magnitude of the operand's MSD." msgstr "演算対象の MSD の大きさの指数部を返します。" -#: ../../library/decimal.rst:1367 +#: ../../library/decimal.rst:1379 msgid "Applies the logical operation *and* between each operand's digits." msgstr "それぞれの桁に論理演算 *and* を当てはめます。" -#: ../../library/decimal.rst:1372 +#: ../../library/decimal.rst:1384 msgid "Invert all the digits in *x*." msgstr "*x* の全ての桁を反転させます。" -#: ../../library/decimal.rst:1377 +#: ../../library/decimal.rst:1389 msgid "Applies the logical operation *or* between each operand's digits." msgstr "それぞれの桁に論理演算 *or* を当てはめます。" -#: ../../library/decimal.rst:1382 +#: ../../library/decimal.rst:1394 msgid "Applies the logical operation *xor* between each operand's digits." msgstr "それぞれの桁に論理演算 *xor* を当てはめます。" -#: ../../library/decimal.rst:1387 +#: ../../library/decimal.rst:1399 msgid "Compares two values numerically and returns the maximum." msgstr "二つの値を数値として比較し、大きいほうを返します。" -#: ../../library/decimal.rst:1392 ../../library/decimal.rst:1402 +#: ../../library/decimal.rst:1404 ../../library/decimal.rst:1414 msgid "Compares the values numerically with their sign ignored." msgstr "値を符号を無視して数値として比較します。" -#: ../../library/decimal.rst:1397 +#: ../../library/decimal.rst:1409 msgid "Compares two values numerically and returns the minimum." msgstr "二つの値を数値として比較し、小さいほうを返します。" -#: ../../library/decimal.rst:1407 +#: ../../library/decimal.rst:1419 msgid "Minus corresponds to the unary prefix minus operator in Python." msgstr "Python における単項マイナス演算子に対応する演算です。" -#: ../../library/decimal.rst:1412 +#: ../../library/decimal.rst:1424 msgid "Return the product of *x* and *y*." msgstr "*x* と *y* の積を返します。" -#: ../../library/decimal.rst:1417 +#: ../../library/decimal.rst:1429 msgid "Returns the largest representable number smaller than *x*." msgstr "*x* より小さい最大の表現可能な数を返します。" -#: ../../library/decimal.rst:1422 +#: ../../library/decimal.rst:1434 msgid "Returns the smallest representable number larger than *x*." msgstr "*x* より大きい最小の表現可能な数を返します。" -#: ../../library/decimal.rst:1427 +#: ../../library/decimal.rst:1439 msgid "Returns the number closest to *x*, in direction towards *y*." msgstr "*x* に *y* の方向に向かって最も近い数を返します。" -#: ../../library/decimal.rst:1432 +#: ../../library/decimal.rst:1444 msgid "Reduces *x* to its simplest form." msgstr "*x* をもっとも単純な形にします。" -#: ../../library/decimal.rst:1437 +#: ../../library/decimal.rst:1449 msgid "Returns an indication of the class of *x*." msgstr "*x* のクラスを指し示すものを返します。" -#: ../../library/decimal.rst:1442 +#: ../../library/decimal.rst:1454 msgid "" "Plus corresponds to the unary prefix plus operator in Python. This " "operation applies the context precision and rounding, so it is *not* an " @@ -2116,13 +2094,13 @@ msgstr "" "Python における単項のプラス演算子に対応する演算です。コンテキストにおける精度" "や値丸めを適用するので、等値 (identity) 演算とは *違います*。" -#: ../../library/decimal.rst:1449 +#: ../../library/decimal.rst:1461 msgid "Return ``x`` to the power of ``y``, reduced modulo ``modulo`` if given." msgstr "" "``x`` の ``y`` 乗を計算します。``modulo`` が指定されていればモジュロを取りま" "す。" -#: ../../library/decimal.rst:1451 +#: ../../library/decimal.rst:1463 msgid "" "With two arguments, compute ``x**y``. If ``x`` is negative then ``y`` must " "be integral. The result will be inexact unless ``y`` is integral and the " @@ -2136,13 +2114,13 @@ msgstr "" "ンテキストの丸めモードを使って丸められます。結果は常に、Python バージョンにお" "いて正しく丸められます。" -#: ../../library/decimal.rst:1457 +#: ../../library/decimal.rst:1469 msgid "" "``Decimal(0) ** Decimal(0)`` results in ``InvalidOperation``, and if " "``InvalidOperation`` is not trapped, then results in ``Decimal('NaN')``." msgstr "" -#: ../../library/decimal.rst:1460 +#: ../../library/decimal.rst:1472 msgid "" "The C module computes :meth:`power` in terms of the correctly rounded :meth:" "`exp` and :meth:`ln` functions. The result is well-defined but only \"almost " @@ -2152,7 +2130,7 @@ msgstr "" "`ln` 関数によって計算します。結果は well-defined ですが、「ほとんどの場合には" "適切に丸められる」だけです。" -#: ../../library/decimal.rst:1465 +#: ../../library/decimal.rst:1477 msgid "" "With three arguments, compute ``(x**y) % modulo``. For the three argument " "form, the following restrictions on the arguments hold:" @@ -2160,23 +2138,23 @@ msgstr "" "引数が 3 つの場合、 ``(x**y) % modulo`` を計算します。この 3 引数の形式の場" "合、引数には以下の制限が課せられます。" -#: ../../library/decimal.rst:1468 +#: ../../library/decimal.rst:1480 msgid "all three arguments must be integral" msgstr "全ての引数は整数" -#: ../../library/decimal.rst:1469 +#: ../../library/decimal.rst:1481 msgid "``y`` must be nonnegative" msgstr "``y`` は非負でなければならない" -#: ../../library/decimal.rst:1470 +#: ../../library/decimal.rst:1482 msgid "at least one of ``x`` or ``y`` must be nonzero" msgstr "``x`` と ``y`` の少なくともどちらかはゼロでない" -#: ../../library/decimal.rst:1471 +#: ../../library/decimal.rst:1483 msgid "``modulo`` must be nonzero and have at most 'precision' digits" msgstr "``modulo`` は非零で大きくても 'precision' 桁" -#: ../../library/decimal.rst:1473 +#: ../../library/decimal.rst:1485 msgid "" "The value resulting from ``Context.power(x, y, modulo)`` is equal to the " "value that would be obtained by computing ``(x**y) % modulo`` with unbounded " @@ -2189,25 +2167,25 @@ msgstr "" "は ``x``, ``y``, ``modulo`` の指数に関係なくゼロです。この計算は常に正確で" "す。" -#: ../../library/decimal.rst:1483 +#: ../../library/decimal.rst:1495 msgid "Returns a value equal to *x* (rounded), having the exponent of *y*." msgstr "*x* に値丸めを適用し、指数を *y* にした値を返します。" -#: ../../library/decimal.rst:1488 +#: ../../library/decimal.rst:1500 msgid "Just returns 10, as this is Decimal, :)" msgstr "単に 10 を返します。何せ十進ですから :)" -#: ../../library/decimal.rst:1493 +#: ../../library/decimal.rst:1505 msgid "Returns the remainder from integer division." msgstr "整数除算の剰余を返します。" -#: ../../library/decimal.rst:1495 +#: ../../library/decimal.rst:1507 msgid "" "The sign of the result, if non-zero, is the same as that of the original " "dividend." msgstr "剰余がゼロでない場合、符号は割られる数の符号と同じになります。" -#: ../../library/decimal.rst:1501 +#: ../../library/decimal.rst:1513 msgid "" "Returns ``x - y * n``, where *n* is the integer nearest the exact value of " "``x / y`` (if the result is 0 then its sign will be the sign of *x*)." @@ -2215,43 +2193,43 @@ msgstr "" "``x - y * n`` を返します。ここで *n* は ``x / y`` の正確な値に一番近い整数で" "す (この結果が 0 ならばその符号は *x* の符号と同じです)。" -#: ../../library/decimal.rst:1507 +#: ../../library/decimal.rst:1519 msgid "Returns a rotated copy of *x*, *y* times." msgstr "*x* の *y* 回巡回したコピーを返します。" -#: ../../library/decimal.rst:1512 +#: ../../library/decimal.rst:1524 msgid "Returns ``True`` if the two operands have the same exponent." msgstr "2つの演算対象が同じ指数を持っている場合に ``True`` を返します。" -#: ../../library/decimal.rst:1517 +#: ../../library/decimal.rst:1529 msgid "Returns the first operand after adding the second value its exp." msgstr "一つめの演算対象の指数部に二つめの値を加えたものを返します。" -#: ../../library/decimal.rst:1522 +#: ../../library/decimal.rst:1534 msgid "Returns a shifted copy of *x*, *y* times." msgstr "*x* を *y* 回シフトしたコピーを返します。" -#: ../../library/decimal.rst:1527 +#: ../../library/decimal.rst:1539 msgid "Square root of a non-negative number to context precision." msgstr "*x* の平方根を精度いっぱいまで求めます。" -#: ../../library/decimal.rst:1532 +#: ../../library/decimal.rst:1544 msgid "Return the difference between *x* and *y*." msgstr "*x* と *y* の間の差を返します。" -#: ../../library/decimal.rst:1546 +#: ../../library/decimal.rst:1558 msgid "Rounds to an integer." msgstr "最近傍の整数に値を丸めます。" -#: ../../library/decimal.rst:1551 +#: ../../library/decimal.rst:1563 msgid "Converts a number to a string using scientific notation." msgstr "数値を科学表記で文字列に変換します。" -#: ../../library/decimal.rst:1558 +#: ../../library/decimal.rst:1570 msgid "Constants" msgstr "定数" -#: ../../library/decimal.rst:1560 +#: ../../library/decimal.rst:1572 msgid "" "The constants in this section are only relevant for the C module. They are " "also included in the pure Python version for compatibility." @@ -2259,54 +2237,54 @@ msgstr "" "この節の定数は C モジュールにのみ意味があります。互換性のために、pure Python " "版も含まれます。" -#: ../../library/decimal.rst:1564 +#: ../../library/decimal.rst:1576 msgid "32-bit" msgstr "32-bit" -#: ../../library/decimal.rst:1564 +#: ../../library/decimal.rst:1576 msgid "64-bit" msgstr "64-bit" -#: ../../library/decimal.rst:1566 ../../library/decimal.rst:1568 +#: ../../library/decimal.rst:1578 ../../library/decimal.rst:1580 msgid "``425000000``" msgstr "``425000000``" -#: ../../library/decimal.rst:1566 ../../library/decimal.rst:1568 +#: ../../library/decimal.rst:1578 ../../library/decimal.rst:1580 msgid "``999999999999999999``" msgstr "``999999999999999999``" -#: ../../library/decimal.rst:1570 +#: ../../library/decimal.rst:1582 msgid "``-425000000``" msgstr "``-425000000``" -#: ../../library/decimal.rst:1570 +#: ../../library/decimal.rst:1582 msgid "``-999999999999999999``" msgstr "``-999999999999999999``" -#: ../../library/decimal.rst:1572 +#: ../../library/decimal.rst:1584 msgid "``-849999999``" msgstr "``-849999999``" -#: ../../library/decimal.rst:1572 +#: ../../library/decimal.rst:1584 msgid "``-1999999999999999997``" msgstr "``-1999999999999999997``" -#: ../../library/decimal.rst:1574 +#: ../../library/decimal.rst:1586 msgid "``256``" msgstr "" -#: ../../library/decimal.rst:1574 +#: ../../library/decimal.rst:1586 msgid "``512``" msgstr "" -#: ../../library/decimal.rst:1579 +#: ../../library/decimal.rst:1591 msgid "" "The value is ``True``. Deprecated, because Python now always has threads." msgstr "" "値は ``True`` です。現在のPythonは常にスレッドを持っているので、非推奨になり" "ました。" -#: ../../library/decimal.rst:1585 +#: ../../library/decimal.rst:1597 msgid "" "The default value is ``True``. If Python is :option:`configured using the --" "without-decimal-contextvar option <--without-decimal-contextvar>`, the C " @@ -2315,39 +2293,39 @@ msgid "" "scenarios." msgstr "" -#: ../../library/decimal.rst:1594 +#: ../../library/decimal.rst:1606 msgid "Rounding modes" msgstr "丸めモード" -#: ../../library/decimal.rst:1598 +#: ../../library/decimal.rst:1610 msgid "Round towards ``Infinity``." msgstr "``Infinity`` 方向に丸めます。" -#: ../../library/decimal.rst:1602 +#: ../../library/decimal.rst:1614 msgid "Round towards zero." msgstr "ゼロ方向に丸めます。" -#: ../../library/decimal.rst:1606 +#: ../../library/decimal.rst:1618 msgid "Round towards ``-Infinity``." msgstr "``-Infinity`` 方向に丸めます。" -#: ../../library/decimal.rst:1610 +#: ../../library/decimal.rst:1622 msgid "Round to nearest with ties going towards zero." msgstr "近い方に、引き分けはゼロ方向に向けて丸めます。" -#: ../../library/decimal.rst:1614 +#: ../../library/decimal.rst:1626 msgid "Round to nearest with ties going to nearest even integer." msgstr "近い方に、引き分けは偶数整数方向に向けて丸めます。" -#: ../../library/decimal.rst:1618 +#: ../../library/decimal.rst:1630 msgid "Round to nearest with ties going away from zero." msgstr "近い方に、引き分けはゼロから遠い方向に向けて丸めます。" -#: ../../library/decimal.rst:1622 +#: ../../library/decimal.rst:1634 msgid "Round away from zero." msgstr "ゼロから遠い方向に丸めます。" -#: ../../library/decimal.rst:1626 +#: ../../library/decimal.rst:1638 msgid "" "Round away from zero if last digit after rounding towards zero would have " "been 0 or 5; otherwise round towards zero." @@ -2355,11 +2333,11 @@ msgstr "" "ゼロ方向に丸めた後の最後の桁が 0 または 5 ならばゼロから遠い方向に、そうでな" "ければゼロ方向に丸めます。" -#: ../../library/decimal.rst:1633 +#: ../../library/decimal.rst:1645 msgid "Signals" msgstr "シグナル" -#: ../../library/decimal.rst:1635 +#: ../../library/decimal.rst:1647 msgid "" "Signals represent conditions that arise during computation. Each corresponds " "to one context flag and one context trap enabler." @@ -2367,7 +2345,7 @@ msgstr "" "シグナルは、計算中に生じた様々なエラー条件を表現します。各々のシグナルは一つ" "のコンテキストフラグと一つのトラップイネーブラに対応しています。" -#: ../../library/decimal.rst:1638 +#: ../../library/decimal.rst:1650 msgid "" "The context flag is set whenever the condition is encountered. After the " "computation, flags may be checked for informational purposes (for instance, " @@ -2379,7 +2357,7 @@ msgstr "" "かります。フラグを調べたら、次の計算を始める前にフラグを全てクリアするように" "してください。" -#: ../../library/decimal.rst:1643 +#: ../../library/decimal.rst:1655 msgid "" "If the context's trap enabler is set for the signal, then the condition " "causes a Python exception to be raised. For example, if the :class:" @@ -2391,11 +2369,11 @@ msgstr "" "`DivisionByZero` が設定されていると、エラー条件が生じた際に :exc:" "`DivisionByZero` 例外を送出します。" -#: ../../library/decimal.rst:1651 +#: ../../library/decimal.rst:1663 msgid "Altered an exponent to fit representation constraints." msgstr "値の表現上の制限に沿わせるために指数部が変更されたことを通知します。" -#: ../../library/decimal.rst:1653 +#: ../../library/decimal.rst:1665 msgid "" "Typically, clamping occurs when an exponent falls outside the context's :" "attr:`~Context.Emin` and :attr:`~Context.Emax` limits. If possible, the " @@ -2405,15 +2383,15 @@ msgstr "" "`~Context.Emin` および :attr:`~Context.Emax` を越えた場合に発生します。可能な" "場合には、係数部にゼロを加えた表現に合わせて指数部を減らします。" -#: ../../library/decimal.rst:1660 +#: ../../library/decimal.rst:1672 msgid "Base class for other signals and a subclass of :exc:`ArithmeticError`." msgstr "他のシグナルの基底クラスで、 :exc:`ArithmeticError` のサブクラスです。" -#: ../../library/decimal.rst:1665 +#: ../../library/decimal.rst:1677 msgid "Signals the division of a non-infinite number by zero." msgstr "有限値をゼロで除算したときのシグナルです。" -#: ../../library/decimal.rst:1667 +#: ../../library/decimal.rst:1679 msgid "" "Can occur with division, modulo division, or when raising a number to a " "negative power. If this signal is not trapped, returns ``Infinity`` or ``-" @@ -2423,11 +2401,11 @@ msgstr "" "ナルをトラップしない場合、演算結果は ``Infinity`` または ``-Infinity`` にな" "り、その符号は演算に使った入力に基づいて決まります。" -#: ../../library/decimal.rst:1674 +#: ../../library/decimal.rst:1686 msgid "Indicates that rounding occurred and the result is not exact." msgstr "値の丸めによって演算結果から厳密さが失われたことを通知します。" -#: ../../library/decimal.rst:1676 +#: ../../library/decimal.rst:1688 msgid "" "Signals when non-zero digits were discarded during rounding. The rounded " "result is returned. The signal flag or trap is used to detect when results " @@ -2437,11 +2415,11 @@ msgstr "" "丸め後の値です。シグナルのフラグやトラップは、演算結果の厳密さが失われたこと" "を検出するために使えるだけです。" -#: ../../library/decimal.rst:1683 +#: ../../library/decimal.rst:1695 msgid "An invalid operation was performed." msgstr "無効な演算が実行されたことを通知します。" -#: ../../library/decimal.rst:1685 +#: ../../library/decimal.rst:1697 msgid "" "Indicates that an operation was requested that does not make sense. If not " "trapped, returns ``NaN``. Possible causes include::" @@ -2450,7 +2428,7 @@ msgstr "" "ナルをトラップしない場合、 ``NaN`` を返します。このシグナルの発生原因として考" "えられるのは、以下のような状況です::" -#: ../../library/decimal.rst:1688 +#: ../../library/decimal.rst:1700 msgid "" "Infinity - Infinity\n" "0 * Infinity\n" @@ -2463,11 +2441,11 @@ msgid "" "x ** Infinity" msgstr "" -#: ../../library/decimal.rst:1701 +#: ../../library/decimal.rst:1713 msgid "Numerical overflow." msgstr "数値オーバフローを示すシグナルです。" -#: ../../library/decimal.rst:1703 +#: ../../library/decimal.rst:1715 msgid "" "Indicates the exponent is larger than :attr:`Context.Emax` after rounding " "has occurred. If not trapped, the result depends on the rounding mode, " @@ -2481,11 +2459,11 @@ msgstr "" "``Infinity`` になるように外側に丸めた値のいずれかになります。いずれの場合" "も、 :class:`Inexact` および :class:`Rounded` が同時にシグナルされます。" -#: ../../library/decimal.rst:1712 +#: ../../library/decimal.rst:1724 msgid "Rounding occurred though possibly no information was lost." msgstr "情報が全く失われていない場合も含み、値丸めが起きたときのシグナルです。" -#: ../../library/decimal.rst:1714 +#: ../../library/decimal.rst:1726 msgid "" "Signaled whenever rounding discards digits; even if those digits are zero " "(such as rounding ``5.00`` to ``5.0``). If not trapped, returns the result " @@ -2496,13 +2474,13 @@ msgstr "" "ルをトラップしなければ、演算結果をそのまま返します。このシグナルは有効桁数の" "減少を検出する際に使います。" -#: ../../library/decimal.rst:1722 +#: ../../library/decimal.rst:1734 msgid "Exponent was lower than :attr:`~Context.Emin` prior to rounding." msgstr "" "値丸めを行う前に指数部が :attr:`~Context.Emin` より小さかったことを示すシグナ" "ルです。" -#: ../../library/decimal.rst:1724 +#: ../../library/decimal.rst:1736 msgid "" "Occurs when an operation result is subnormal (the exponent is too small). If " "not trapped, returns the result unchanged." @@ -2510,11 +2488,11 @@ msgstr "" "演算結果が微小である場合 (指数が小さすぎる場合) に発生します。このシグナルを" "トラップしなければ、演算結果をそのまま返します。" -#: ../../library/decimal.rst:1730 +#: ../../library/decimal.rst:1742 msgid "Numerical underflow with result rounded to zero." msgstr "演算結果が値丸めによってゼロになった場合に生じる数値アンダフローです。" -#: ../../library/decimal.rst:1732 +#: ../../library/decimal.rst:1744 msgid "" "Occurs when a subnormal result is pushed to zero by rounding. :class:" "`Inexact` and :class:`Subnormal` are also signaled." @@ -2522,11 +2500,11 @@ msgstr "" "演算結果が微小なため、値丸めによってゼロになった場合に発生します。 :class:" "`Inexact` および :class:`Subnormal` シグナルも同時に発生します。" -#: ../../library/decimal.rst:1738 +#: ../../library/decimal.rst:1750 msgid "Enable stricter semantics for mixing floats and Decimals." msgstr "float と Decimal の混合の厳密なセマンティクスを有効にします。" -#: ../../library/decimal.rst:1740 +#: ../../library/decimal.rst:1752 msgid "" "If the signal is not trapped (default), mixing floats and Decimals is " "permitted in the :class:`~decimal.Decimal` constructor, :meth:`~decimal." @@ -2544,7 +2522,7 @@ msgstr "" "`~decimal.Context.create_decimal_from_float` による明示的な変換はフラグを設定" "しません。" -#: ../../library/decimal.rst:1748 +#: ../../library/decimal.rst:1760 msgid "" "Otherwise (the signal is trapped), only equality comparisons and explicit " "conversions are silent. All other mixed operations raise :exc:" @@ -2553,11 +2531,11 @@ msgstr "" "そうでなければ (シグナルがトラップされれば)、等価性比較および明示的な変換のみ" "が静かにに行われ、その他の混合演算は :exc:`FloatOperation` を送出します。" -#: ../../library/decimal.rst:1752 +#: ../../library/decimal.rst:1764 msgid "The following table summarizes the hierarchy of signals::" msgstr "これらのシグナルの階層構造をまとめると、以下の表のようになります::" -#: ../../library/decimal.rst:1754 +#: ../../library/decimal.rst:1766 msgid "" "exceptions.ArithmeticError(exceptions.Exception)\n" " DecimalException\n" @@ -2572,15 +2550,15 @@ msgid "" " FloatOperation(DecimalException, exceptions.TypeError)" msgstr "" -#: ../../library/decimal.rst:1773 -msgid "Floating-Point Notes" +#: ../../library/decimal.rst:1785 +msgid "Floating-point notes" msgstr "" -#: ../../library/decimal.rst:1777 +#: ../../library/decimal.rst:1789 msgid "Mitigating round-off error with increased precision" msgstr "精度を上げて丸め誤差を抑制する" -#: ../../library/decimal.rst:1779 +#: ../../library/decimal.rst:1791 msgid "" "The use of decimal floating point eliminates decimal representation error " "(making it possible to represent ``0.1`` exactly); however, some operations " @@ -2591,7 +2569,7 @@ msgstr "" "に表現できるようになります); しかし、ゼロでない桁が一定の精度を越えている場合" "には、演算によっては依然として値丸めによる誤差を引き起こします。" -#: ../../library/decimal.rst:1783 +#: ../../library/decimal.rst:1795 msgid "" "The effects of round-off error can be amplified by the addition or " "subtraction of nearly offsetting quantities resulting in loss of " @@ -2600,7 +2578,7 @@ msgid "" "of the associative and distributive properties of addition:" msgstr "" -#: ../../library/decimal.rst:1789 +#: ../../library/decimal.rst:1801 msgid "" "# Examples from Seminumerical Algorithms, Section 4.2.2.\n" ">>> from decimal import Decimal, getcontext\n" @@ -2619,7 +2597,7 @@ msgid "" "Decimal('0.0060000')" msgstr "" -#: ../../library/decimal.rst:1807 +#: ../../library/decimal.rst:1819 msgid "" "The :mod:`decimal` module makes it possible to restore the identities by " "expanding the precision sufficiently to avoid loss of significance:" @@ -2627,7 +2605,7 @@ msgstr "" ":mod:`decimal` モジュールでは、最下桁を失わないように十分に計算精度を広げるこ" "とで、上で問題にしたような恒等性をとりもどせます:" -#: ../../library/decimal.rst:1810 +#: ../../library/decimal.rst:1822 msgid "" ">>> getcontext().prec = 20\n" ">>> u, v, w = Decimal(11111113), Decimal(-11111111), Decimal('7.51111111')\n" @@ -2643,11 +2621,11 @@ msgid "" "Decimal('0.0060000')" msgstr "" -#: ../../library/decimal.rst:1827 +#: ../../library/decimal.rst:1839 msgid "Special values" msgstr "特殊値" -#: ../../library/decimal.rst:1829 +#: ../../library/decimal.rst:1841 msgid "" "The number system for the :mod:`decimal` module provides special values " "including ``NaN``, ``sNaN``, ``-Infinity``, ``Infinity``, and two zeros, " @@ -2657,7 +2635,7 @@ msgstr "" "``Infinity``, および二つのゼロ、 ``+0`` と ``-0`` といった特殊な値を提供して" "います。" -#: ../../library/decimal.rst:1833 +#: ../../library/decimal.rst:1845 msgid "" "Infinities can be constructed directly with: ``Decimal('Infinity')``. Also, " "they can arise from dividing by zero when the :exc:`DivisionByZero` signal " @@ -2670,7 +2648,7 @@ msgstr "" "に、 :exc:`Overflow` シグナルをトラップしなければ、表現可能な最大の数値の制限" "を越えた値を丸めたときに出てきます。" -#: ../../library/decimal.rst:1838 +#: ../../library/decimal.rst:1850 msgid "" "The infinities are signed (affine) and can be used in arithmetic operations " "where they get treated as very large, indeterminate numbers. For instance, " @@ -2680,7 +2658,7 @@ msgstr "" "大で不確定の(indeterminate)値として扱われます。例えば、無限大に何らかの定数を" "加算すると、演算結果は別の無限大になります。" -#: ../../library/decimal.rst:1842 +#: ../../library/decimal.rst:1854 msgid "" "Some operations are indeterminate and return ``NaN``, or if the :exc:" "`InvalidOperation` signal is trapped, raise an exception. For example, " @@ -2699,7 +2677,7 @@ msgstr "" "う際に便利です --- 特定の計算に対しては無効な結果を示すフラグを立てつつ計算を" "進められるからです。" -#: ../../library/decimal.rst:1850 +#: ../../library/decimal.rst:1862 msgid "" "A variant is ``sNaN`` which signals rather than remaining quiet after every " "operation. This is a useful return value when an invalid result needs to " @@ -2709,7 +2687,7 @@ msgstr "" "送出します。 ``sNaN`` は、無効な演算結果に対して特別な処理を行うために計算を" "停止する必要がある場合に便利です。" -#: ../../library/decimal.rst:1854 +#: ../../library/decimal.rst:1866 msgid "" "The behavior of Python's comparison operators can be a little surprising " "where a ``NaN`` is involved. A test for equality where one of the operands " @@ -2737,7 +2715,7 @@ msgstr "" "い)。厳格に標準遵守を貫くなら、 :meth:`~Decimal.compare` および :meth:" "`~Decimal.compare_signal` メソッドを代わりに使いましょう。" -#: ../../library/decimal.rst:1867 +#: ../../library/decimal.rst:1879 msgid "" "The signed zeros can result from calculations that underflow. They keep the " "sign that would have resulted if the calculation had been carried out to " @@ -2749,7 +2727,7 @@ msgstr "" "ロの大きさはやはりゼロなので、正のゼロと負のゼロは等しいとみなされ、符号は単" "なる参考にすぎません。" -#: ../../library/decimal.rst:1872 +#: ../../library/decimal.rst:1884 msgid "" "In addition to the two signed zeros which are distinct yet equal, there are " "various representations of zero with differing precisions yet equivalent in " @@ -2758,11 +2736,11 @@ msgid "" "that the following calculation returns a value equal to zero:" msgstr "" -#: ../../library/decimal.rst:1887 +#: ../../library/decimal.rst:1899 msgid "Working with threads" msgstr "スレッドを使った処理" -#: ../../library/decimal.rst:1889 +#: ../../library/decimal.rst:1901 msgid "" "The :func:`getcontext` function accesses a different :class:`Context` object " "for each thread. Having separate thread contexts means that threads may " @@ -2774,7 +2752,7 @@ msgstr "" "が互いに影響を及ぼさずに (``getcontext().prec=10`` のような) 変更を適用できる" "ということです。" -#: ../../library/decimal.rst:1893 +#: ../../library/decimal.rst:1905 msgid "" "Likewise, the :func:`setcontext` function automatically assigns its target " "to the current thread." @@ -2782,7 +2760,7 @@ msgstr "" "同様に、:func:`setcontext` 関数は自動的に引数のコンテキストを現在のスレッドの" "コンテキストに設定します。" -#: ../../library/decimal.rst:1896 +#: ../../library/decimal.rst:1908 msgid "" "If :func:`setcontext` has not been called before :func:`getcontext`, then :" "func:`getcontext` will automatically create a new context for use in the " @@ -2790,7 +2768,7 @@ msgid "" "`decimal.DefaultContext` object." msgstr "" -#: ../../library/decimal.rst:1901 +#: ../../library/decimal.rst:1913 msgid "" "The :data:`sys.flags.thread_inherit_context` flag affects the context for " "new threads. If the flag is false, new threads will start with an empty " @@ -2800,7 +2778,7 @@ msgid "" "meth:`threading.Thread.start`." msgstr "" -#: ../../library/decimal.rst:1908 +#: ../../library/decimal.rst:1920 msgid "" "To control the defaults so that each thread will use the same values " "throughout the application, directly modify the *DefaultContext* object. " @@ -2808,7 +2786,7 @@ msgid "" "a race condition between threads calling :func:`getcontext`. For example::" msgstr "" -#: ../../library/decimal.rst:1913 +#: ../../library/decimal.rst:1925 msgid "" "# Set applicationwide defaults for all threads about to be launched\n" "DefaultContext.prec = 12\n" @@ -2824,11 +2802,11 @@ msgid "" " . . ." msgstr "" -#: ../../library/decimal.rst:1932 +#: ../../library/decimal.rst:1944 msgid "Recipes" msgstr "レシピ" -#: ../../library/decimal.rst:1934 +#: ../../library/decimal.rst:1946 msgid "" "Here are a few recipes that serve as utility functions and that demonstrate " "ways to work with the :class:`Decimal` class::" @@ -2836,7 +2814,7 @@ msgstr "" ":class:`Decimal` クラスの利用を実演している例をいくつか示します。これらはユー" "ティリティ関数としても利用できます::" -#: ../../library/decimal.rst:1937 +#: ../../library/decimal.rst:1949 msgid "" "def moneyfmt(value, places=2, curr='', sep=',', dp='.',\n" " pos='', neg='-', trailneg=''):\n" @@ -2985,11 +2963,11 @@ msgid "" " return +s" msgstr "" -#: ../../library/decimal.rst:2089 +#: ../../library/decimal.rst:2101 msgid "Decimal FAQ" msgstr "Decimal FAQ" -#: ../../library/decimal.rst:2091 +#: ../../library/decimal.rst:2103 msgid "" "Q. It is cumbersome to type ``decimal.Decimal('1234.5')``. Is there a way " "to minimize typing when using the interactive interpreter?" @@ -2997,11 +2975,11 @@ msgstr "" "Q. ``decimal.Decimal('1234.5')`` などと打ち込むのは煩わしいのですが、対話式イ" "ンタプリタを使う際にタイプ量を少なくする方法はありませんか?" -#: ../../library/decimal.rst:2094 +#: ../../library/decimal.rst:2106 msgid "A. Some users abbreviate the constructor to just a single letter:" msgstr "A. コンストラクタを1文字に縮める人もいるようです:" -#: ../../library/decimal.rst:2100 +#: ../../library/decimal.rst:2112 msgid "" "Q. In a fixed-point application with two decimal places, some inputs have " "many places and need to be rounded. Others are not supposed to have excess " @@ -3011,7 +2989,7 @@ msgstr "" "な桁を保持しているのでこれを丸めなければなりません。その他のものに余計な桁は" "なくそのまま使えます。どのメソッドを使うのがいいでしょうか?" -#: ../../library/decimal.rst:2104 +#: ../../library/decimal.rst:2116 msgid "" "A. The :meth:`~Decimal.quantize` method rounds to a fixed number of decimal " "places. If the :const:`Inexact` trap is set, it is also useful for " @@ -3020,7 +2998,7 @@ msgstr "" "A. :meth:`~Decimal.quantize` メソッドで固定した桁に丸められます。 :const:" "`Inexact` トラップを設定しておけば、確認にも有用です:" -#: ../../library/decimal.rst:2122 +#: ../../library/decimal.rst:2134 msgid "" "Q. Once I have valid two place inputs, how do I maintain that invariant " "throughout an application?" @@ -3028,7 +3006,7 @@ msgstr "" "Q. 正当な2桁の入力が得られたとして、その正当性をアプリケーション実行中も変わ" "らず保ち続けるにはどうすればいいでしょうか?" -#: ../../library/decimal.rst:2125 +#: ../../library/decimal.rst:2137 msgid "" "A. Some operations like addition, subtraction, and multiplication by an " "integer will automatically preserve fixed point. Others operations, like " @@ -3039,7 +3017,7 @@ msgstr "" "他の除算や整数以外の乗算などは小数点以下の桁を変えてしまいますので実行後は :" "meth:`~Decimal.quantize` ステップが必要です:" -#: ../../library/decimal.rst:2143 +#: ../../library/decimal.rst:2155 msgid "" "In developing fixed-point applications, it is convenient to define functions " "to handle the :meth:`~Decimal.quantize` step:" @@ -3047,7 +3025,7 @@ msgstr "" "固定小数点のアプリケーションを開発する際は、 :meth:`~Decimal.quantize` の段階" "を扱う関数を定義しておくと便利です:" -#: ../../library/decimal.rst:2157 +#: ../../library/decimal.rst:2169 msgid "" "Q. There are many ways to express the same value. The numbers ``200``, " "``200.000``, ``2E2``, and ``.02E+4`` all have the same value at various " @@ -3058,7 +3036,7 @@ msgstr "" "``2E2`` と ``.02E+4`` は全て同じ値で違った精度の数です。これらをただ一つの正" "規化された値に変換することはできますか?" -#: ../../library/decimal.rst:2162 +#: ../../library/decimal.rst:2174 msgid "" "A. The :meth:`~Decimal.normalize` method maps all equivalent values to a " "single representative:" @@ -3066,11 +3044,11 @@ msgstr "" "A. :meth:`~Decimal.normalize` メソッドは全ての等しい値をただ一つの表現に直し" "ます:" -#: ../../library/decimal.rst:2169 +#: ../../library/decimal.rst:2181 msgid "Q. When does rounding occur in a computation?" msgstr "" -#: ../../library/decimal.rst:2171 +#: ../../library/decimal.rst:2183 msgid "" "A. It occurs *after* the computation. The philosophy of the decimal " "specification is that numbers are considered exact and are created " @@ -3080,7 +3058,7 @@ msgid "" "computation::" msgstr "" -#: ../../library/decimal.rst:2178 +#: ../../library/decimal.rst:2190 msgid "" ">>> getcontext().prec = 5\n" ">>> pi = Decimal('3.1415926535') # More than 5 digits\n" @@ -3094,7 +3072,7 @@ msgid "" "Decimal('3.1416')" msgstr "" -#: ../../library/decimal.rst:2189 +#: ../../library/decimal.rst:2201 msgid "" "Q. Some decimal values always print with exponential notation. Is there a " "way to get a non-exponential representation?" @@ -3102,7 +3080,7 @@ msgstr "" "Q. ある種の十進数値はいつも指数表記で表示されます。指数表記以外の表示にする方" "法はありますか?" -#: ../../library/decimal.rst:2192 +#: ../../library/decimal.rst:2204 msgid "" "A. For some values, exponential notation is the only way to express the " "number of significant places in the coefficient. For example, expressing " @@ -3113,7 +3091,7 @@ msgstr "" "``5.0E+3`` を ``5000`` と表してしまうと、値は変わりませんが元々の2桁という有" "効数字が反映されません。" -#: ../../library/decimal.rst:2197 +#: ../../library/decimal.rst:2209 msgid "" "If an application does not care about tracking significance, it is easy to " "remove the exponent and trailing zeroes, losing significance, but keeping " @@ -3122,24 +3100,24 @@ msgstr "" "もしアプリケーションが有効数字の追跡を等閑視するならば、指数部や末尾のゼロを" "取り除き、有効数字を忘れ、しかし値を変えずにおくことは容易です:" -#: ../../library/decimal.rst:2207 +#: ../../library/decimal.rst:2219 msgid "Q. Is there a way to convert a regular float to a :class:`Decimal`?" msgstr "Q. 普通の float を :class:`Decimal` に変換できますか?" -#: ../../library/decimal.rst:2209 +#: ../../library/decimal.rst:2221 msgid "" "A. Yes, any binary floating-point number can be exactly expressed as a " "Decimal though an exact conversion may take more precision than intuition " "would suggest:" msgstr "" -#: ../../library/decimal.rst:2213 +#: ../../library/decimal.rst:2225 msgid "" ">>> Decimal(math.pi)\n" "Decimal('3.141592653589793115997963468544185161590576171875')" msgstr "" -#: ../../library/decimal.rst:2218 +#: ../../library/decimal.rst:2230 msgid "" "Q. Within a complex calculation, how can I make sure that I haven't gotten a " "spurious result because of insufficient precision or rounding anomalies." @@ -3147,7 +3125,7 @@ msgstr "" "Q. 複雑な計算の中で、精度不足や丸めの異常で間違った結果になっていないことをど" "うやって保証すれば良いでしょうか。" -#: ../../library/decimal.rst:2221 +#: ../../library/decimal.rst:2233 msgid "" "A. The decimal module makes it easy to test results. A best practice is to " "re-run calculations using greater precision and with various rounding modes. " @@ -3159,7 +3137,7 @@ msgstr "" "や丸めの問題や悪条件の入力、または数値計算的に不安定なアルゴリズムを示唆して" "います。" -#: ../../library/decimal.rst:2226 +#: ../../library/decimal.rst:2238 msgid "" "Q. I noticed that context precision is applied to the results of operations " "but not to the inputs. Is there anything to watch out for when mixing " @@ -3169,7 +3147,7 @@ msgstr "" "ようです。様々に異なる精度の入力値を混ぜて計算する時に注意すべきことはありま" "すか?" -#: ../../library/decimal.rst:2230 +#: ../../library/decimal.rst:2242 msgid "" "A. Yes. The principle is that all values are considered to be exact and so " "is the arithmetic on those values. Only the results are rounded. The " @@ -3182,7 +3160,7 @@ msgstr "" "get\" (打ち込んだ値が得られる値)という点にあります。入力が丸められないという" "ことを忘れていると結果が奇妙に見えるというのは弱点です:" -#: ../../library/decimal.rst:2235 +#: ../../library/decimal.rst:2247 msgid "" ">>> getcontext().prec = 3\n" ">>> Decimal('3.104') + Decimal('2.104')\n" @@ -3191,7 +3169,7 @@ msgid "" "Decimal('5.20')" msgstr "" -#: ../../library/decimal.rst:2243 +#: ../../library/decimal.rst:2255 msgid "" "The solution is either to increase precision or to force rounding of inputs " "using the unary plus operation:" @@ -3199,14 +3177,14 @@ msgstr "" "解決策は、精度を増やすか、単項プラス演算子を使って入力の丸めを強制することで" "す:" -#: ../../library/decimal.rst:2246 +#: ../../library/decimal.rst:2258 msgid "" ">>> getcontext().prec = 3\n" ">>> +Decimal('1.23456789') # unary plus triggers rounding\n" "Decimal('1.23')" msgstr "" -#: ../../library/decimal.rst:2252 +#: ../../library/decimal.rst:2264 msgid "" "Alternatively, inputs can be rounded upon creation using the :meth:`Context." "create_decimal` method:" @@ -3214,11 +3192,11 @@ msgstr "" "もしくは、入力を :meth:`Context.create_decimal` を使って生成時に丸めてしまう" "こともできます:" -#: ../../library/decimal.rst:2258 +#: ../../library/decimal.rst:2270 msgid "Q. Is the CPython implementation fast for large numbers?" msgstr "Q. CPython 実装は大きな数に対しても速いでしょうか?" -#: ../../library/decimal.rst:2260 +#: ../../library/decimal.rst:2272 msgid "" "A. Yes. In the CPython and PyPy3 implementations, the C/CFFI versions of " "the decimal module integrate the high speed `libmpdec >> setcontext(Context(prec=MAX_PREC, Emax=MAX_EMAX, Emin=MIN_EMIN))\n" ">>> x = Decimal(2) ** 256\n" @@ -3253,13 +3231,13 @@ msgid "" "Decimal('904625697166532776746648320380374280103671755200316906558262375061821325312')" msgstr "" -#: ../../library/decimal.rst:2283 +#: ../../library/decimal.rst:2295 msgid "" "For inexact results, :const:`MAX_PREC` is far too large on 64-bit platforms " "and the available memory will be insufficient::" msgstr "" -#: ../../library/decimal.rst:2286 +#: ../../library/decimal.rst:2298 msgid "" ">>> Decimal(1) / 3\n" "Traceback (most recent call last):\n" @@ -3267,7 +3245,7 @@ msgid "" "MemoryError" msgstr "" -#: ../../library/decimal.rst:2291 +#: ../../library/decimal.rst:2303 msgid "" "On systems with overallocation (e.g. Linux), a more sophisticated approach " "is to adjust :attr:`~Context.prec` to the amount of available RAM. Suppose " @@ -3275,7 +3253,7 @@ msgid "" "of 500MB each::" msgstr "" -#: ../../library/decimal.rst:2295 +#: ../../library/decimal.rst:2307 msgid "" ">>> import sys\n" ">>>\n" @@ -3299,14 +3277,14 @@ msgid "" " decimal.Inexact: []" msgstr "" -#: ../../library/decimal.rst:2315 +#: ../../library/decimal.rst:2327 msgid "" "In general (and especially on systems without overallocation), it is " "recommended to estimate even tighter bounds and set the :attr:`Inexact` trap " "if all calculations are expected to be exact." msgstr "" -#: ../../library/decimal.rst:2324 +#: ../../library/decimal.rst:2336 msgid "" "This approach now works for all exact results except for non-integer powers." msgstr "" diff --git a/library/development.po b/library/development.po index d03cf5bc9..6d9277784 100644 --- a/library/development.po +++ b/library/development.po @@ -1,5 +1,5 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2025, Python Software Foundation +# Copyright (C) 2001 Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # @@ -10,17 +10,17 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: Python 3.13\n" +"Project-Id-Version: Python 3.14\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2025-05-02 14:19+0000\n" +"POT-Creation-Date: 2025-05-23 14:20+0000\n" "PO-Revision-Date: 2021-06-28 01:04+0000\n" "Last-Translator: 石井明久, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../library/development.rst:5 diff --git a/library/devmode.po b/library/devmode.po index 202869b97..5671c2d3b 100644 --- a/library/devmode.po +++ b/library/devmode.po @@ -1,5 +1,5 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2025, Python Software Foundation +# Copyright (C) 2001 Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # @@ -10,17 +10,17 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: Python 3.13\n" +"Project-Id-Version: Python 3.14\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2025-05-02 14:19+0000\n" +"POT-Creation-Date: 2025-05-23 14:20+0000\n" "PO-Revision-Date: 2021-06-28 01:04+0000\n" "Last-Translator: Yusuke Miyazaki , 2021\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../library/devmode.rst:4 diff --git a/library/dialog.po b/library/dialog.po index ab565d348..f1a7b3f3f 100644 --- a/library/dialog.po +++ b/library/dialog.po @@ -16,10 +16,10 @@ msgstr "" "Last-Translator: Osamu NAKAMURA, 2021\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../library/dialog.rst:2 diff --git a/library/difflib.po b/library/difflib.po index 1ab99b1c5..be11fa403 100644 --- a/library/difflib.po +++ b/library/difflib.po @@ -1,5 +1,5 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2025, Python Software Foundation +# Copyright (C) 2001 Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # @@ -13,17 +13,17 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: Python 3.13\n" +"Project-Id-Version: Python 3.14\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2025-05-02 14:19+0000\n" +"POT-Creation-Date: 2025-05-23 14:20+0000\n" "PO-Revision-Date: 2021-06-28 01:04+0000\n" "Last-Translator: 石井明久, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../library/difflib.rst:2 diff --git a/library/dis.po b/library/dis.po index 9a70d93be..7a2c32ed2 100644 --- a/library/dis.po +++ b/library/dis.po @@ -20,10 +20,10 @@ msgstr "" "Last-Translator: 石井明久, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../library/dis.rst:2 diff --git a/library/distribution.po b/library/distribution.po index d91e2ebc1..5f88a8089 100644 --- a/library/distribution.po +++ b/library/distribution.po @@ -1,5 +1,5 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2025, Python Software Foundation +# Copyright (C) 2001 Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # @@ -10,17 +10,17 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: Python 3.13\n" +"Project-Id-Version: Python 3.14\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2025-05-02 14:19+0000\n" +"POT-Creation-Date: 2025-05-23 14:20+0000\n" "PO-Revision-Date: 2021-06-28 01:04+0000\n" "Last-Translator: 石井明久, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../library/distribution.rst:3 diff --git a/library/distutils.po b/library/distutils.po index 6f3eb1bf2..100fcaeab 100644 --- a/library/distutils.po +++ b/library/distutils.po @@ -1,21 +1,21 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2025, Python Software Foundation +# Copyright (C) 2001 Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # #, fuzzy msgid "" msgstr "" -"Project-Id-Version: Python 3.13\n" +"Project-Id-Version: Python 3.14\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2025-05-02 14:19+0000\n" +"POT-Creation-Date: 2025-05-23 14:20+0000\n" "PO-Revision-Date: 2024-11-19 01:02+0000\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../library/distutils.rst:2 diff --git a/library/doctest.po b/library/doctest.po index f73874b67..ddbf07077 100644 --- a/library/doctest.po +++ b/library/doctest.po @@ -23,10 +23,10 @@ msgstr "" "Last-Translator: 石井明久, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../library/doctest.rst:2 diff --git a/library/email.charset.po b/library/email.charset.po index ec385cf84..f9a9d7d9e 100644 --- a/library/email.charset.po +++ b/library/email.charset.po @@ -1,5 +1,5 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2025, Python Software Foundation +# Copyright (C) 2001 Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # @@ -11,17 +11,17 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: Python 3.13\n" +"Project-Id-Version: Python 3.14\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2025-05-02 14:19+0000\n" +"POT-Creation-Date: 2025-05-23 14:20+0000\n" "PO-Revision-Date: 2021-06-28 01:04+0000\n" "Last-Translator: 石井明久, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../library/email.charset.rst:2 diff --git a/library/email.compat32-message.po b/library/email.compat32-message.po index e7e4d7ba1..7c171341d 100644 --- a/library/email.compat32-message.po +++ b/library/email.compat32-message.po @@ -17,10 +17,10 @@ msgstr "" "Last-Translator: tomo, 2021\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../library/email.compat32-message.rst:4 diff --git a/library/email.contentmanager.po b/library/email.contentmanager.po index ce024a87a..e98b96a82 100644 --- a/library/email.contentmanager.po +++ b/library/email.contentmanager.po @@ -17,10 +17,10 @@ msgstr "" "Last-Translator: Tetsuo Koyama , 2021\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../library/email.contentmanager.rst:2 diff --git a/library/email.encoders.po b/library/email.encoders.po index 0d7a72080..68be4fca9 100644 --- a/library/email.encoders.po +++ b/library/email.encoders.po @@ -1,5 +1,5 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2025, Python Software Foundation +# Copyright (C) 2001 Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # @@ -11,17 +11,17 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: Python 3.13\n" +"Project-Id-Version: Python 3.14\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2025-05-02 14:19+0000\n" +"POT-Creation-Date: 2025-05-23 14:20+0000\n" "PO-Revision-Date: 2021-06-28 01:04+0000\n" "Last-Translator: 石井明久, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../library/email.encoders.rst:2 diff --git a/library/email.errors.po b/library/email.errors.po index 7d7ea066d..c59ac6ac2 100644 --- a/library/email.errors.po +++ b/library/email.errors.po @@ -17,10 +17,10 @@ msgstr "" "Last-Translator: tomo, 2021\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../library/email.errors.rst:2 diff --git a/library/email.examples.po b/library/email.examples.po index 72902b85a..a7c56bb45 100644 --- a/library/email.examples.po +++ b/library/email.examples.po @@ -1,5 +1,5 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2025, Python Software Foundation +# Copyright (C) 2001 Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # @@ -10,17 +10,17 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: Python 3.13\n" +"Project-Id-Version: Python 3.14\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2025-04-25 14:19+0000\n" +"POT-Creation-Date: 2025-05-16 14:19+0000\n" "PO-Revision-Date: 2021-06-28 01:05+0000\n" "Last-Translator: 石井明久, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../library/email.examples.rst:4 diff --git a/library/email.generator.po b/library/email.generator.po index 11732ceef..b6dd199b9 100644 --- a/library/email.generator.po +++ b/library/email.generator.po @@ -17,10 +17,10 @@ msgstr "" "Last-Translator: tomo, 2021\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../library/email.generator.rst:2 diff --git a/library/email.header.po b/library/email.header.po index 6d6783dba..5923b087c 100644 --- a/library/email.header.po +++ b/library/email.header.po @@ -1,5 +1,5 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2025, Python Software Foundation +# Copyright (C) 2001 Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # @@ -10,17 +10,17 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: Python 3.13\n" +"Project-Id-Version: Python 3.14\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2025-05-02 14:19+0000\n" +"POT-Creation-Date: 2025-05-23 14:20+0000\n" "PO-Revision-Date: 2021-06-28 01:05+0000\n" "Last-Translator: 石井明久, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../library/email.header.rst:2 diff --git a/library/email.headerregistry.po b/library/email.headerregistry.po index e72426007..b6df1adce 100644 --- a/library/email.headerregistry.po +++ b/library/email.headerregistry.po @@ -19,10 +19,10 @@ msgstr "" "Last-Translator: Arihiro TAKASE, 2023\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../library/email.headerregistry.rst:2 diff --git a/library/email.iterators.po b/library/email.iterators.po index c2e25a67e..b83a177a6 100644 --- a/library/email.iterators.po +++ b/library/email.iterators.po @@ -1,5 +1,5 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2025, Python Software Foundation +# Copyright (C) 2001 Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # @@ -10,17 +10,17 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: Python 3.13\n" +"Project-Id-Version: Python 3.14\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2025-05-02 14:19+0000\n" +"POT-Creation-Date: 2025-05-23 14:20+0000\n" "PO-Revision-Date: 2021-06-28 01:05+0000\n" "Last-Translator: 石井明久, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../library/email.iterators.rst:2 diff --git a/library/email.message.po b/library/email.message.po index 785d896c6..a43a1c6e2 100644 --- a/library/email.message.po +++ b/library/email.message.po @@ -18,10 +18,10 @@ msgstr "" "Last-Translator: Tetsuo Koyama , 2021\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../library/email.message.rst:2 diff --git a/library/email.mime.po b/library/email.mime.po index 7cf618d5b..f24cb2d82 100644 --- a/library/email.mime.po +++ b/library/email.mime.po @@ -1,5 +1,5 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2025, Python Software Foundation +# Copyright (C) 2001 Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # @@ -10,17 +10,17 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: Python 3.13\n" +"Project-Id-Version: Python 3.14\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2025-04-25 14:19+0000\n" +"POT-Creation-Date: 2025-05-16 14:19+0000\n" "PO-Revision-Date: 2021-06-28 01:05+0000\n" "Last-Translator: tomo, 2021\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../library/email.mime.rst:2 diff --git a/library/email.parser.po b/library/email.parser.po index c974887ed..6fd8808b2 100644 --- a/library/email.parser.po +++ b/library/email.parser.po @@ -17,10 +17,10 @@ msgstr "" "Last-Translator: tomo, 2021\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../library/email.parser.rst:2 diff --git a/library/email.po b/library/email.po index 0f3af3239..35fc361e2 100644 --- a/library/email.po +++ b/library/email.po @@ -1,5 +1,5 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2025, Python Software Foundation +# Copyright (C) 2001 Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # @@ -11,17 +11,17 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: Python 3.13\n" +"Project-Id-Version: Python 3.14\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2025-05-02 14:19+0000\n" +"POT-Creation-Date: 2025-05-23 14:20+0000\n" "PO-Revision-Date: 2021-06-28 01:05+0000\n" "Last-Translator: 石井明久, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../library/email.rst:2 diff --git a/library/email.policy.po b/library/email.policy.po index 0307ce661..150d14d1b 100644 --- a/library/email.policy.po +++ b/library/email.policy.po @@ -18,10 +18,10 @@ msgstr "" "Last-Translator: Arihiro TAKASE, 2023\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../library/email.policy.rst:2 diff --git a/library/email.utils.po b/library/email.utils.po index bbe463641..7f1b3f976 100644 --- a/library/email.utils.po +++ b/library/email.utils.po @@ -17,10 +17,10 @@ msgstr "" "Last-Translator: tomo, 2021\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../library/email.utils.rst:2 diff --git a/library/ensurepip.po b/library/ensurepip.po index 75c084f9f..291214a3b 100644 --- a/library/ensurepip.po +++ b/library/ensurepip.po @@ -18,10 +18,10 @@ msgstr "" "Last-Translator: tomo, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../library/ensurepip.rst:2 diff --git a/library/enum.po b/library/enum.po index 2c1e46e82..03443ffeb 100644 --- a/library/enum.po +++ b/library/enum.po @@ -20,10 +20,10 @@ msgstr "" "Last-Translator: Arihiro TAKASE, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../library/enum.rst:2 @@ -409,7 +409,7 @@ msgstr "新しく作成するEnumの名前。" #: ../../library/enum.rst:0 msgid "names" -msgstr "names" +msgstr "名前" #: ../../library/enum.rst:192 msgid "The names/values of the members for the new Enum." diff --git a/library/errno.po b/library/errno.po index 789c7707d..ba9b586a5 100644 --- a/library/errno.po +++ b/library/errno.po @@ -18,10 +18,10 @@ msgstr "" "Last-Translator: 石井明久, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../library/errno.rst:2 diff --git a/library/exceptions.po b/library/exceptions.po index e5e76a8ed..39ee7eea1 100644 --- a/library/exceptions.po +++ b/library/exceptions.po @@ -20,10 +20,10 @@ msgstr "" "Last-Translator: Takanori Suzuki , 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../library/exceptions.rst:4 diff --git a/library/faulthandler.po b/library/faulthandler.po index f98949dc4..24e7e47a9 100644 --- a/library/faulthandler.po +++ b/library/faulthandler.po @@ -19,10 +19,10 @@ msgstr "" "Last-Translator: 石井明久, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../library/faulthandler.rst:2 diff --git a/library/fcntl.po b/library/fcntl.po index e9d9976b5..a049af521 100644 --- a/library/fcntl.po +++ b/library/fcntl.po @@ -19,10 +19,10 @@ msgstr "" "Last-Translator: Arihiro TAKASE, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../library/fcntl.rst:2 diff --git a/library/filecmp.po b/library/filecmp.po index 47cd9c295..716de7e4e 100644 --- a/library/filecmp.po +++ b/library/filecmp.po @@ -17,10 +17,10 @@ msgstr "" "Last-Translator: 石井明久, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../library/filecmp.rst:2 diff --git a/library/fileformats.po b/library/fileformats.po index b3f2a36c0..ad67e5e3a 100644 --- a/library/fileformats.po +++ b/library/fileformats.po @@ -16,10 +16,10 @@ msgstr "" "Last-Translator: tomo, 2021\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../library/fileformats.rst:5 diff --git a/library/fileinput.po b/library/fileinput.po index 4da549bda..b32e1bb4f 100644 --- a/library/fileinput.po +++ b/library/fileinput.po @@ -1,5 +1,5 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2025, Python Software Foundation +# Copyright (C) 2001 Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # @@ -13,17 +13,17 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: Python 3.13\n" +"Project-Id-Version: Python 3.14\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2025-05-02 14:19+0000\n" +"POT-Creation-Date: 2025-05-23 14:20+0000\n" "PO-Revision-Date: 2021-06-28 01:06+0000\n" "Last-Translator: 石井明久, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../library/fileinput.rst:2 diff --git a/library/filesys.po b/library/filesys.po index d8399ad94..2f30414b2 100644 --- a/library/filesys.po +++ b/library/filesys.po @@ -1,5 +1,5 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2025, Python Software Foundation +# Copyright (C) 2001 Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # @@ -11,17 +11,17 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: Python 3.13\n" +"Project-Id-Version: Python 3.14\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2025-04-25 14:19+0000\n" +"POT-Creation-Date: 2025-05-16 14:19+0000\n" "PO-Revision-Date: 2021-06-28 01:06+0000\n" "Last-Translator: 石井明久, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../library/filesys.rst:5 diff --git a/library/fnmatch.po b/library/fnmatch.po index 2930f573e..8e08d8b0e 100644 --- a/library/fnmatch.po +++ b/library/fnmatch.po @@ -21,10 +21,10 @@ msgstr "" "Last-Translator: 石井明久, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../library/fnmatch.rst:2 diff --git a/library/fractions.po b/library/fractions.po index 48106deb0..6159060b3 100644 --- a/library/fractions.po +++ b/library/fractions.po @@ -18,10 +18,10 @@ msgstr "" "Last-Translator: 石井明久, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../library/fractions.rst:2 diff --git a/library/frameworks.po b/library/frameworks.po index bd744ed2c..a1d02cfea 100644 --- a/library/frameworks.po +++ b/library/frameworks.po @@ -17,10 +17,10 @@ msgstr "" "Last-Translator: Osamu NAKAMURA, 2021\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../library/frameworks.rst:5 diff --git a/library/ftplib.po b/library/ftplib.po index 2a46f854a..f30112505 100644 --- a/library/ftplib.po +++ b/library/ftplib.po @@ -1,5 +1,5 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2025, Python Software Foundation +# Copyright (C) 2001 Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # @@ -14,17 +14,17 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: Python 3.13\n" +"Project-Id-Version: Python 3.14\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2025-05-02 14:19+0000\n" +"POT-Creation-Date: 2025-05-23 14:20+0000\n" "PO-Revision-Date: 2021-06-28 01:06+0000\n" "Last-Translator: Takanori Suzuki , 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../library/ftplib.rst:2 diff --git a/library/functional.po b/library/functional.po index e7e21278d..b215afc4c 100644 --- a/library/functional.po +++ b/library/functional.po @@ -16,10 +16,10 @@ msgstr "" "Last-Translator: tomo, 2021\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../library/functional.rst:3 diff --git a/library/functions.po b/library/functions.po index 40670be58..f8ef69a48 100644 --- a/library/functions.po +++ b/library/functions.po @@ -33,10 +33,10 @@ msgstr "" "Last-Translator: TENMYO Masakazu, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../library/functions.rst:5 ../../library/functions.rst:11 @@ -2888,7 +2888,7 @@ msgid "" "``mode``, ``flags``." msgstr "" "引数 ``path``, ``mode``, ``flags`` を指定して :ref:`監査イベント ` " -"``open`` を送出します。 " +"``open`` を送出します。" #: ../../library/functions.rst:1534 msgid "" diff --git a/library/functools.po b/library/functools.po index e58e5f765..168370264 100644 --- a/library/functools.po +++ b/library/functools.po @@ -21,10 +21,10 @@ msgstr "" "Last-Translator: Atsuo Ishimoto , 2025\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../library/functools.rst:2 diff --git a/library/gc.po b/library/gc.po index 78c5d3b1e..48230ad7a 100644 --- a/library/gc.po +++ b/library/gc.po @@ -18,10 +18,10 @@ msgstr "" "Last-Translator: Arihiro TAKASE, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../library/gc.rst:2 diff --git a/library/getopt.po b/library/getopt.po index ae5857d10..ab49c851a 100644 --- a/library/getopt.po +++ b/library/getopt.po @@ -16,10 +16,10 @@ msgstr "" "Last-Translator: tomo, 2021\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../library/getopt.rst:2 diff --git a/library/getpass.po b/library/getpass.po index 1a904b618..eddc1d204 100644 --- a/library/getpass.po +++ b/library/getpass.po @@ -17,10 +17,10 @@ msgstr "" "Last-Translator: 石井明久, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../library/getpass.rst:2 diff --git a/library/gettext.po b/library/gettext.po index ae95c30fb..4cd3d505e 100644 --- a/library/gettext.po +++ b/library/gettext.po @@ -23,10 +23,10 @@ msgstr "" "Last-Translator: Takeshi Nakazato, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../library/gettext.rst:2 diff --git a/library/glob.po b/library/glob.po index 25320f12a..d71d39354 100644 --- a/library/glob.po +++ b/library/glob.po @@ -21,10 +21,10 @@ msgstr "" "Last-Translator: Takeshi Nakazato, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../library/glob.rst:2 diff --git a/library/graphlib.po b/library/graphlib.po index 61b00d2b5..2912b1fdd 100644 --- a/library/graphlib.po +++ b/library/graphlib.po @@ -20,10 +20,10 @@ msgstr "" "Last-Translator: 石井明久, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../library/graphlib.rst:2 diff --git a/library/grp.po b/library/grp.po index 78532d554..e8435f237 100644 --- a/library/grp.po +++ b/library/grp.po @@ -1,5 +1,5 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2025, Python Software Foundation +# Copyright (C) 2001 Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # @@ -12,17 +12,17 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: Python 3.13\n" +"Project-Id-Version: Python 3.14\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2025-05-02 14:19+0000\n" +"POT-Creation-Date: 2025-05-23 14:20+0000\n" "PO-Revision-Date: 2021-06-28 01:07+0000\n" "Last-Translator: 石井明久, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../library/grp.rst:2 diff --git a/library/gzip.po b/library/gzip.po index 82363bdcf..eb8e066bf 100644 --- a/library/gzip.po +++ b/library/gzip.po @@ -18,10 +18,10 @@ msgstr "" "Last-Translator: 石井明久, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../library/gzip.rst:2 diff --git a/library/hashlib.po b/library/hashlib.po index 1ea3622fd..7c6ce089d 100644 --- a/library/hashlib.po +++ b/library/hashlib.po @@ -1,5 +1,5 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2025, Python Software Foundation +# Copyright (C) 2001 Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # @@ -11,17 +11,17 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: Python 3.13\n" +"Project-Id-Version: Python 3.14\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2025-04-25 14:19+0000\n" +"POT-Creation-Date: 2025-05-09 14:19+0000\n" "PO-Revision-Date: 2021-06-28 01:07+0000\n" "Last-Translator: 石井明久, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../library/hashlib.rst:2 diff --git a/library/heapq.po b/library/heapq.po index 0c98237fe..f49d0d0c5 100644 --- a/library/heapq.po +++ b/library/heapq.po @@ -18,10 +18,10 @@ msgstr "" "Last-Translator: 石井明久, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../library/heapq.rst:2 diff --git a/library/hmac.po b/library/hmac.po index 7e3af7c90..3b90502d6 100644 --- a/library/hmac.po +++ b/library/hmac.po @@ -1,5 +1,5 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2025, Python Software Foundation +# Copyright (C) 2001 Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # @@ -10,17 +10,17 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: Python 3.13\n" +"Project-Id-Version: Python 3.14\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2025-05-02 14:19+0000\n" +"POT-Creation-Date: 2025-05-23 14:20+0000\n" "PO-Revision-Date: 2021-06-28 01:07+0000\n" "Last-Translator: 石井明久, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../library/hmac.rst:2 diff --git a/library/html.entities.po b/library/html.entities.po index 01159df7c..ee5c2eb24 100644 --- a/library/html.entities.po +++ b/library/html.entities.po @@ -1,5 +1,5 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2025, Python Software Foundation +# Copyright (C) 2001 Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # @@ -10,17 +10,17 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: Python 3.13\n" +"Project-Id-Version: Python 3.14\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2025-05-02 14:19+0000\n" +"POT-Creation-Date: 2025-05-23 14:20+0000\n" "PO-Revision-Date: 2021-06-28 01:07+0000\n" "Last-Translator: 石井明久, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../library/html.entities.rst:2 diff --git a/library/html.parser.po b/library/html.parser.po index 7c32bee84..19a1c2e8f 100644 --- a/library/html.parser.po +++ b/library/html.parser.po @@ -20,10 +20,10 @@ msgstr "" "Last-Translator: Atsuo Ishimoto , 2025\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../library/html.parser.rst:2 diff --git a/library/html.po b/library/html.po index 8f17e8650..fbeec1621 100644 --- a/library/html.po +++ b/library/html.po @@ -1,5 +1,5 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2025, Python Software Foundation +# Copyright (C) 2001 Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # @@ -10,17 +10,17 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: Python 3.13\n" +"Project-Id-Version: Python 3.14\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2025-05-02 14:19+0000\n" +"POT-Creation-Date: 2025-05-23 14:20+0000\n" "PO-Revision-Date: 2021-06-28 01:07+0000\n" "Last-Translator: 石井明久, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../library/html.rst:2 diff --git a/library/http.client.po b/library/http.client.po index 42b2889a2..58a1d34a4 100644 --- a/library/http.client.po +++ b/library/http.client.po @@ -1,5 +1,5 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2025, Python Software Foundation +# Copyright (C) 2001 Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # @@ -15,17 +15,17 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: Python 3.13\n" +"Project-Id-Version: Python 3.14\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2025-05-02 14:19+0000\n" +"POT-Creation-Date: 2025-05-23 14:20+0000\n" "PO-Revision-Date: 2021-06-28 01:07+0000\n" "Last-Translator: 石井明久, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../library/http.client.rst:2 diff --git a/library/http.cookiejar.po b/library/http.cookiejar.po index 9233d5ab7..b6bddb08d 100644 --- a/library/http.cookiejar.po +++ b/library/http.cookiejar.po @@ -19,10 +19,10 @@ msgstr "" "Last-Translator: 石井明久, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../library/http.cookiejar.rst:2 diff --git a/library/http.cookies.po b/library/http.cookies.po index 2a4f058cd..b47547408 100644 --- a/library/http.cookies.po +++ b/library/http.cookies.po @@ -18,10 +18,10 @@ msgstr "" "Last-Translator: 石井明久, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../library/http.cookies.rst:2 diff --git a/library/http.po b/library/http.po index a5235394a..6009dd712 100644 --- a/library/http.po +++ b/library/http.po @@ -1,5 +1,5 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2025, Python Software Foundation +# Copyright (C) 2001 Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # @@ -13,17 +13,17 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: Python 3.13\n" +"Project-Id-Version: Python 3.14\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2025-05-02 14:19+0000\n" +"POT-Creation-Date: 2025-05-23 14:20+0000\n" "PO-Revision-Date: 2021-06-28 01:07+0000\n" "Last-Translator: 石井明久, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../library/http.rst:2 diff --git a/library/http.server.po b/library/http.server.po index 1db89d803..dc2bc3392 100644 --- a/library/http.server.po +++ b/library/http.server.po @@ -17,15 +17,15 @@ msgid "" msgstr "" "Project-Id-Version: Python 3.14\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2025-05-08 02:53-0300\n" +"POT-Creation-Date: 2025-05-23 14:20+0000\n" "PO-Revision-Date: 2021-06-28 01:07+0000\n" "Last-Translator: HIdeo Haga, 2025\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../library/http.server.rst:2 @@ -634,31 +634,27 @@ msgstr "" #: ../../library/http.server.rst:431 msgid "" "Then follows a blank line signifying the end of the headers, and then the " -"contents of the file are output. If the file's MIME type starts with ``text/" -"`` the file is opened in text mode; otherwise binary mode is used." +"contents of the file are output." msgstr "" -"そしてヘッダの終了を示す空白行が続き、さらにその後にファイルの内容が続きま" -"す。このファイルはコンテントタイプが ``text/`` で始まっている場合はテキスト" -"モードで、そうでなければバイナリモードで開かれます。" -#: ../../library/http.server.rst:435 +#: ../../library/http.server.rst:434 msgid "" "For example usage, see the implementation of the ``test`` function in :" "source:`Lib/http/server.py`." msgstr "" -#: ../../library/http.server.rst:438 +#: ../../library/http.server.rst:437 msgid "Support of the ``'If-Modified-Since'`` header." msgstr "" -#: ../../library/http.server.rst:441 +#: ../../library/http.server.rst:440 msgid "" "The :class:`SimpleHTTPRequestHandler` class can be used in the following " "manner in order to create a very basic webserver serving files relative to " "the current directory::" msgstr "" -#: ../../library/http.server.rst:445 +#: ../../library/http.server.rst:444 msgid "" "import http.server\n" "import socketserver\n" @@ -672,14 +668,14 @@ msgid "" " httpd.serve_forever()" msgstr "" -#: ../../library/http.server.rst:457 +#: ../../library/http.server.rst:456 msgid "" ":class:`SimpleHTTPRequestHandler` can also be subclassed to enhance " "behavior, such as using different index file names by overriding the class " "attribute :attr:`index_pages`." msgstr "" -#: ../../library/http.server.rst:464 +#: ../../library/http.server.rst:463 msgid "" "This class is used to serve either files or output of CGI scripts from the " "current directory and below. Note that mapping HTTP hierarchic structure to " @@ -690,7 +686,7 @@ msgstr "" "ディレクトリ構造への対応付けは :class:`SimpleHTTPRequestHandler` と全く同じな" "ので注意してください。" -#: ../../library/http.server.rst:470 +#: ../../library/http.server.rst:469 msgid "" "CGI scripts run by the :class:`CGIHTTPRequestHandler` class cannot execute " "redirects (HTTP code 302), because code 200 (script output follows) is sent " @@ -701,7 +697,7 @@ msgstr "" "タスコードになります) ため、リダイレクト(コード302) を行なうことができませ" "ん。" -#: ../../library/http.server.rst:475 +#: ../../library/http.server.rst:474 msgid "" "The class will however, run the CGI script, instead of serving it as a file, " "if it guesses it to be a CGI script. Only directory-based CGI are used --- " @@ -713,7 +709,7 @@ msgstr "" "特殊な拡張子を使って CGI スクリプトであることを示すのに対し、ディレクトリベー" "スの CGI だけが使われます。" -#: ../../library/http.server.rst:480 +#: ../../library/http.server.rst:479 msgid "" "The :func:`do_GET` and :func:`do_HEAD` functions are modified to run CGI " "scripts and serve the output, instead of serving files, if the request leads " @@ -723,11 +719,11 @@ msgstr "" "``cgi_directories`` パス以下のどこかを指している場合、ファイルを提供するので" "はなく、CGI スクリプトを実行してその出力を提供するように変更されています。" -#: ../../library/http.server.rst:484 +#: ../../library/http.server.rst:483 msgid "The :class:`CGIHTTPRequestHandler` defines the following data member:" msgstr ":class:`CGIHTTPRequestHandler` では以下のデータメンバを定義しています:" -#: ../../library/http.server.rst:488 +#: ../../library/http.server.rst:487 msgid "" "This defaults to ``['/cgi-bin', '/htbin']`` and describes directories to " "treat as containing CGI scripts." @@ -735,11 +731,11 @@ msgstr "" "この値は標準で ``['/cgi-bin', '/htbin']`` であり、CGI スクリプトを含んでいる" "ことを示すディレクトリを記述します。" -#: ../../library/http.server.rst:491 +#: ../../library/http.server.rst:490 msgid "The :class:`CGIHTTPRequestHandler` defines the following method:" msgstr ":class:`CGIHTTPRequestHandler` は以下のメソッドを定義しています:" -#: ../../library/http.server.rst:495 +#: ../../library/http.server.rst:494 msgid "" "This method serves the ``'POST'`` request type, only allowed for CGI " "scripts. Error 501, \"Can only POST to CGI scripts\", is output when trying " @@ -749,7 +745,7 @@ msgstr "" "対するサービスを行います。CGI でない url に対して POST を試みた場合、出力は " "Error 501, \"Can only POST to CGI scripts\" になります。" -#: ../../library/http.server.rst:499 +#: ../../library/http.server.rst:498 msgid "" "Note that CGI scripts will be run with UID of user nobody, for security " "reasons. Problems with the CGI script will be translated to error 403." @@ -758,7 +754,7 @@ msgstr "" "注意してください。 CGI スクリプトが原因で発生した問題は、Error 403 に変換され" "ます。" -#: ../../library/http.server.rst:504 +#: ../../library/http.server.rst:503 msgid "" ":class:`CGIHTTPRequestHandler` is being removed in 3.15. CGI has not been " "considered a good way to do things for well over a decade. This code has " @@ -767,36 +763,36 @@ msgid "" "server-security>`." msgstr "" -#: ../../library/http.server.rst:514 +#: ../../library/http.server.rst:513 msgid "Command-line interface" msgstr "コマンドライン・インターフェース" -#: ../../library/http.server.rst:516 +#: ../../library/http.server.rst:515 msgid "" ":mod:`http.server` can also be invoked directly using the :option:`-m` " "switch of the interpreter. The following example illustrates how to serve " "files relative to the current directory::" msgstr "" -#: ../../library/http.server.rst:520 +#: ../../library/http.server.rst:519 msgid "python -m http.server [OPTIONS] [port]" msgstr "" -#: ../../library/http.server.rst:522 +#: ../../library/http.server.rst:521 msgid "The following options are accepted:" msgstr "以下のオプションが使用できます:" -#: ../../library/http.server.rst:528 +#: ../../library/http.server.rst:527 msgid "" "The server listens to port 8000 by default. The default can be overridden by " "passing the desired port number as an argument::" msgstr "" -#: ../../library/http.server.rst:531 +#: ../../library/http.server.rst:530 msgid "python -m http.server 9000" msgstr "" -#: ../../library/http.server.rst:535 +#: ../../library/http.server.rst:534 msgid "" "Specifies a specific address to which it should bind. Both IPv4 and IPv6 " "addresses are supported. By default, the server binds itself to all " @@ -804,80 +800,80 @@ msgid "" "localhost only::" msgstr "" -#: ../../library/http.server.rst:540 +#: ../../library/http.server.rst:539 msgid "python -m http.server --bind 127.0.0.1" msgstr "" -#: ../../library/http.server.rst:544 +#: ../../library/http.server.rst:543 msgid "Support IPv6 in the ``--bind`` option." msgstr "" -#: ../../library/http.server.rst:549 +#: ../../library/http.server.rst:548 msgid "" "Specifies a directory to which it should serve the files. By default, the " "server uses the current directory. For example, the following command uses a " "specific directory::" msgstr "" -#: ../../library/http.server.rst:553 +#: ../../library/http.server.rst:552 msgid "python -m http.server --directory /tmp/" msgstr "" -#: ../../library/http.server.rst:559 +#: ../../library/http.server.rst:558 msgid "" "Specifies the HTTP version to which the server is conformant. By default, " "the server is conformant to HTTP/1.0. For example, the following command " "runs an HTTP/1.1 conformant server::" msgstr "" -#: ../../library/http.server.rst:563 +#: ../../library/http.server.rst:562 msgid "python -m http.server --protocol HTTP/1.1" msgstr "" -#: ../../library/http.server.rst:569 +#: ../../library/http.server.rst:568 msgid "" ":class:`CGIHTTPRequestHandler` can be enabled in the command line by passing " "the ``--cgi`` option::" msgstr "" -#: ../../library/http.server.rst:572 +#: ../../library/http.server.rst:571 msgid "python -m http.server --cgi" msgstr "" -#: ../../library/http.server.rst:576 +#: ../../library/http.server.rst:575 msgid "" ":mod:`http.server` command line ``--cgi`` support is being removed because :" "class:`CGIHTTPRequestHandler` is being removed." msgstr "" -#: ../../library/http.server.rst:581 +#: ../../library/http.server.rst:580 msgid "" ":class:`CGIHTTPRequestHandler` and the ``--cgi`` command-line option are not " "intended for use by untrusted clients and may be vulnerable to exploitation. " "Always use within a secure environment." msgstr "" -#: ../../library/http.server.rst:587 +#: ../../library/http.server.rst:586 msgid "Specifies a TLS certificate chain for HTTPS connections::" msgstr "" -#: ../../library/http.server.rst:589 +#: ../../library/http.server.rst:588 msgid "python -m http.server --tls-cert fullchain.pem" msgstr "" -#: ../../library/http.server.rst:595 +#: ../../library/http.server.rst:594 msgid "Specifies a private key file for HTTPS connections." msgstr "" -#: ../../library/http.server.rst:597 +#: ../../library/http.server.rst:596 msgid "This option requires ``--tls-cert`` to be specified." msgstr "" -#: ../../library/http.server.rst:603 +#: ../../library/http.server.rst:602 msgid "Specifies the password file for password-protected private keys::" msgstr "" -#: ../../library/http.server.rst:605 +#: ../../library/http.server.rst:604 msgid "" "python -m http.server \\\n" " --tls-cert cert.pem \\\n" @@ -885,22 +881,22 @@ msgid "" " --tls-password-file password.txt" msgstr "" -#: ../../library/http.server.rst:610 +#: ../../library/http.server.rst:609 msgid "This option requires `--tls-cert`` to be specified." msgstr "" -#: ../../library/http.server.rst:618 +#: ../../library/http.server.rst:617 msgid "Security considerations" msgstr "セキュリティで考慮すべき点" -#: ../../library/http.server.rst:622 +#: ../../library/http.server.rst:621 msgid "" ":class:`SimpleHTTPRequestHandler` will follow symbolic links when handling " "requests, this makes it possible for files outside of the specified " "directory to be served." msgstr "" -#: ../../library/http.server.rst:626 +#: ../../library/http.server.rst:625 msgid "" "Earlier versions of Python did not scrub control characters from the log " "messages emitted to stderr from ``python -m http.server`` or the default :" @@ -909,7 +905,7 @@ msgid "" "codes to your terminal." msgstr "" -#: ../../library/http.server.rst:632 +#: ../../library/http.server.rst:631 msgid "Control characters are scrubbed in stderr logs." msgstr "" @@ -937,10 +933,10 @@ msgstr "URL" msgid "httpd" msgstr "" -#: ../../library/http.server.rst:620 +#: ../../library/http.server.rst:619 msgid "http.server" msgstr "http.server" -#: ../../library/http.server.rst:620 +#: ../../library/http.server.rst:619 msgid "security" msgstr "セキュリティ" diff --git a/library/i18n.po b/library/i18n.po index eac0dbe74..b2d5f1013 100644 --- a/library/i18n.po +++ b/library/i18n.po @@ -17,10 +17,10 @@ msgstr "" "Last-Translator: Taichi Haradaguchi, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../library/i18n.rst:5 diff --git a/library/idle.po b/library/idle.po index 3a6c4d172..a07ffc60a 100644 --- a/library/idle.po +++ b/library/idle.po @@ -1,5 +1,5 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2025, Python Software Foundation +# Copyright (C) 2001 Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # @@ -10,17 +10,17 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: Python 3.13\n" +"Project-Id-Version: Python 3.14\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2025-04-25 14:19+0000\n" +"POT-Creation-Date: 2025-05-16 14:19+0000\n" "PO-Revision-Date: 2021-06-28 01:07+0000\n" "Last-Translator: Arihiro TAKASE, 2023\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../library/idle.rst:4 diff --git a/library/imaplib.po b/library/imaplib.po index d367bbcfd..a7b5126fc 100644 --- a/library/imaplib.po +++ b/library/imaplib.po @@ -19,10 +19,10 @@ msgstr "" "Last-Translator: Takanori Suzuki , 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../library/imaplib.rst:2 diff --git a/library/imghdr.po b/library/imghdr.po index cb84936a7..d406c9dc1 100644 --- a/library/imghdr.po +++ b/library/imghdr.po @@ -1,21 +1,21 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2025, Python Software Foundation +# Copyright (C) 2001 Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # #, fuzzy msgid "" msgstr "" -"Project-Id-Version: Python 3.13\n" +"Project-Id-Version: Python 3.14\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2025-05-02 14:19+0000\n" +"POT-Creation-Date: 2025-05-23 14:20+0000\n" "PO-Revision-Date: 2024-11-19 01:02+0000\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../library/imghdr.rst:2 diff --git a/library/imp.po b/library/imp.po index c7a59b320..a8fa1bff9 100644 --- a/library/imp.po +++ b/library/imp.po @@ -1,21 +1,21 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2025, Python Software Foundation +# Copyright (C) 2001 Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # #, fuzzy msgid "" msgstr "" -"Project-Id-Version: Python 3.13\n" +"Project-Id-Version: Python 3.14\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2025-05-02 14:19+0000\n" +"POT-Creation-Date: 2025-05-23 14:20+0000\n" "PO-Revision-Date: 2024-11-19 01:02+0000\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../library/imp.rst:2 diff --git a/library/importlib.metadata.po b/library/importlib.metadata.po index f3507b704..2e8d699be 100644 --- a/library/importlib.metadata.po +++ b/library/importlib.metadata.po @@ -18,10 +18,10 @@ msgstr "" "Last-Translator: 石井明久, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../library/importlib.metadata.rst:5 @@ -187,7 +187,7 @@ msgstr "" #: ../../library/importlib.metadata.rst:111 msgid "Functional API" -msgstr "機能 API" +msgstr "関数 API" #: ../../library/importlib.metadata.rst:113 msgid "This package provides the following functionality via its public API." diff --git a/library/importlib.po b/library/importlib.po index f069a731a..722fdc9ae 100644 --- a/library/importlib.po +++ b/library/importlib.po @@ -18,10 +18,10 @@ msgstr "" "Last-Translator: 石井明久, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../library/importlib.rst:2 @@ -1775,10 +1775,10 @@ msgstr "" "う。 ``_whiz`` がバイナリモジュール ``sources/foo/bar/_whiz.abi3.so`` で実装" "されており、 ``sources`` のアプリケーションバンドルからの相対パスが ``sys." "path`` に登録されています。このモジュールは ``Frameworks/foo.bar._whiz." -"framework/foo.bar._whiz`` (フレームワーク名はモジュールの完全なインポートパ" -"スから命名されています)として、 ``Info.plist`` ファイルをバイナリをフレーム" -"ワークとして識別する ``.framework`` ディレクトリ内に設置して配布しなければな" -"りません。 ``foo.bar._whiz`` モジュールは、元の場所で、 ``Frameworks/foo.bar." +"framework/foo.bar._whiz`` (フレームワーク名はモジュールの完全なインポートパス" +"から命名されています) として、バイナリをフレームワークとして識別する ``Info." +"plist`` ファイルを ``.framework`` ディレクトリ内に設置して配布しなければなり" +"ません。 ``foo.bar._whiz`` モジュールは、元の場所で、 ``Frameworks/foo.bar." "_whiz/foo.bar._whiz`` のパスを含む ``sources/foo/bar/_whiz.abi3.fwork`` マー" "カーファイルに記述されます。 また、フレームワークは、 ``.fwork`` へのパスを含" "む ``Frameworks/foo.bar._whiz.framework/foo.bar._whiz.origin`` も含まなければ" diff --git a/library/importlib.resources.abc.po b/library/importlib.resources.abc.po index b553744f9..673700aec 100644 --- a/library/importlib.resources.abc.po +++ b/library/importlib.resources.abc.po @@ -1,5 +1,5 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2025, Python Software Foundation +# Copyright (C) 2001 Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # @@ -10,17 +10,17 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: Python 3.13\n" +"Project-Id-Version: Python 3.14\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2025-04-25 14:19+0000\n" +"POT-Creation-Date: 2025-05-16 14:19+0000\n" "PO-Revision-Date: 2022-11-05 19:49+0000\n" "Last-Translator: 石井明久, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../library/importlib.resources.abc.rst:2 diff --git a/library/importlib.resources.po b/library/importlib.resources.po index d6a49359f..0ab69e9af 100644 --- a/library/importlib.resources.po +++ b/library/importlib.resources.po @@ -1,5 +1,5 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2025, Python Software Foundation +# Copyright (C) 2001 Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # @@ -11,17 +11,17 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: Python 3.13\n" +"Project-Id-Version: Python 3.14\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2025-05-02 14:19+0000\n" +"POT-Creation-Date: 2025-05-23 14:20+0000\n" "PO-Revision-Date: 2022-11-05 19:49+0000\n" "Last-Translator: 石井明久, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../library/importlib.resources.rst:2 diff --git a/library/index.po b/library/index.po index 005af31b1..ed68fd7be 100644 --- a/library/index.po +++ b/library/index.po @@ -17,10 +17,10 @@ msgstr "" "Last-Translator: Takanori Suzuki , 2023\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../library/index.rst:5 diff --git a/library/inspect.po b/library/inspect.po index 68d8aa9bf..63abba737 100644 --- a/library/inspect.po +++ b/library/inspect.po @@ -20,10 +20,10 @@ msgstr "" "Last-Translator: Takeshi Nakazato, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../library/inspect.rst:2 @@ -866,6 +866,9 @@ msgid "" "This may be of use for sync functions that return a :term:`coroutine`, if " "the function is passed to an API that requires :func:`iscoroutinefunction`." msgstr "" +"これは、コルーチン :term:`coroutine` を返す同期関数が、 :func:" +"`iscoroutinefunction` が真であることを要求するAPIに渡される場合に役に立つかも" +"しれません。" #: ../../library/inspect.rst:447 msgid "" @@ -873,6 +876,9 @@ msgid "" "acceptable is calling the function and testing the return with :func:" "`iscoroutine`." msgstr "" +"可能なら、 :keyword:`async def` を使った関数定義が好ましいです。また、関数を" +"呼び出した上でその戻り値を :func:`iscoroutine` でテストする方法も容認できま" +"す。" #: ../../library/inspect.rst:456 msgid "" @@ -893,6 +899,7 @@ msgid "" "Can also be used to distinguish generator-based coroutines from regular " "generators:" msgstr "" +"ジェネレータベースのコルーチンと通常のジェネレータを区別するのにも使えます:" #: ../../library/inspect.rst:469 msgid "" @@ -907,12 +914,24 @@ msgid "" "assert not isawaitable(gen())\n" "assert isawaitable(gen_coro())" msgstr "" +"import types\n" +"\n" +"def gen():\n" +" yield\n" +"@types.coroutine\n" +"def gen_coro():\n" +" yield\n" +"\n" +"assert not isawaitable(gen())\n" +"assert isawaitable(gen_coro())" #: ../../library/inspect.rst:487 msgid "" "Return ``True`` if the object is an :term:`asynchronous generator` function, " "for example:" msgstr "" +"オブジェクトが非同期ジェネレータ :term:`asynchronous generator` 関数である場" +"合に ``True`` を返します。使用例:" #: ../../library/inspect.rst:490 msgid "" @@ -922,12 +941,20 @@ msgid "" ">>> inspect.isasyncgenfunction(agen)\n" "True" msgstr "" +">>> async def agen():\n" +"... yield 1\n" +"...\n" +">>> inspect.isasyncgenfunction(agen)\n" +"True" #: ../../library/inspect.rst:500 msgid "" "Functions wrapped in :func:`functools.partial` now return ``True`` if the " "wrapped function is an :term:`asynchronous generator` function." msgstr "" +":func:`functools.partial` でラップされた関数でも、元の関数が非同期ジェネレー" +"タ :term:`asynchronous generator` 関数であれば ``True`` を返すようになりまし" +"た。" #: ../../library/inspect.rst:510 msgid "" @@ -961,12 +988,17 @@ msgstr "" msgid "" "Return ``True`` if the type of object is a :class:`~types.MethodWrapperType`." msgstr "" +"オブジェクトの型が :class:`~types.MethodWrapperType` である場合に ``True`` を" +"返します。" #: ../../library/inspect.rst:539 msgid "" "These are instances of :class:`~types.MethodWrapperType`, such as :meth:" "`~object.__str__`, :meth:`~object.__eq__` and :meth:`~object.__repr__`." msgstr "" +"真を返すのは :class:`~types.MethodWrapperType` のインスタンスで、 :meth:" +"`~object.__str__`, :meth:`~object.__eq__`, :meth:`~object.__repr__` などで" +"す。" #: ../../library/inspect.rst:547 msgid "" @@ -998,6 +1030,11 @@ msgid "" "attributes varies. A :attr:`~definition.__name__` attribute is usually " "sensible, and :attr:`~definition.__doc__` often is." msgstr "" +"これはたとえば、 ``int.__add__`` で真を返します。この関数によるテストをパスす" +"る(真を返す)オブジェクトは :meth:`~object.__get__` メソッドを持ちますが、 :" +"meth:`~object.__set__` メソッドや :meth:`~object.__delete__` メソッドは持ちま" +"せん。それ以外の属性の有無はさまざまです。 :attr:`~definition.__name__` 属性" +"は普通は存在しますし、 :attr:`~definition.__doc__` 属性もしばしば見られます。" #: ../../library/inspect.rst:567 msgid "" @@ -1006,6 +1043,11 @@ msgid "" "the other tests promise more -- you can, e.g., count on having the :attr:" "`~method.__func__` attribute (etc) when an object passes :func:`ismethod`." msgstr "" +"デスクリプタによって実装されたメソッドがこのメソッド以外のテストをパスする場" +"合、 :func:`ismethoddescriptor` によるテストでは ``False`` を返します。これは" +"単純に、他のテストはより多くを約束するからです -- たとえば、あるオブジェクト" +"が :func:`ismethod` のテストをパスするとき、そのオブジェクトが :attr:" +"`~method.__func__` 属性 (など) を持っていることを期待することができます。" #: ../../library/inspect.rst:573 msgid "" @@ -1014,6 +1056,10 @@ msgid "" "being method descriptors (such objects are data descriptors, not method " "descriptors)." msgstr "" +"この関数は、 :meth:`~object.__get__` 属性と :meth:`~object.__delete__` 属性を" +"持ち、 :meth:`~object.__set__` 属性を持たないオブジェクトをメソッドデスクリプ" +"タであると不正に報告することはなくなりました (そのようなオブジェクトはデータ" +"デスクリプタであって、メソッドデスクリプタではありません)。" #: ../../library/inspect.rst:581 msgid "Return ``True`` if the object is a data descriptor." @@ -1029,6 +1075,14 @@ msgid "" "`~definition.__name__` and :attr:`!__doc__` attributes (properties, getsets, " "and members have both of these attributes), but this is not guaranteed." msgstr "" +"データデスクリプタは :attr:`~object.__set__` メソッドか :attr:`~object." +"__delete__` メソッドのいずれかを持ちます。例としては、 (Python で定義された) " +"プロパティ、 getset デスクリプタ、メンバーデスクリプタがあります。後者2つは " +"C で定義されており、それぞれの型に対して特別なテストが存在します。それらのテ" +"ストは、全ての Python 実装に対して堅牢です。概して、データデスクリプタは :" +"attr:`~definition.__name__` 属性や :attr:`!__doc__` 属性も持ちますが、このこ" +"とは保証されてはいません (一方でプロパティ、 getset デスクリプタ、メンバーデ" +"スクリプタはこれら2つの属性を両方持っています)。" #: ../../library/inspect.rst:594 msgid "Return ``True`` if the object is a getset descriptor." @@ -1070,6 +1124,12 @@ msgid "" "documentation string from the inheritance hierarchy. Return ``None`` if the " "documentation string is invalid or missing." msgstr "" +"オブジェクトのドキュメンテーション文字列を、 :func:`cleandoc` で整理した上で" +"取得します。オブジェクトに対するドキュメンテーション文字列が与えられていない" +"場合で、かつオブジェクトがクラス、メソッド、プロパティ、デスクリプタのいずれ" +"かである場合、継承の階層構造からドキュメンテーション文字列を探し出して返しま" +"す。ドキュメンテーション文字列がないか、または不正な場合は ``None`` を返しま" +"す。" #: ../../library/inspect.rst:627 msgid "Documentation strings are now inherited if not overridden." @@ -1085,6 +1145,11 @@ msgid "" "code is unavailable, return ``None``. This could happen if the object has " "been defined in C or the interactive shell." msgstr "" +"オブジェクトのソースコード直前 (クラス、関数、メソッドの場合) または Python " +"ソースファイルの先頭 (モジュールの場合) の任意の行数にわたるコメントを、ひと" +"つの文字列として返します。オブジェクトのソースコードが存在しない場合は " +"``None`` を返します。オブジェクトが C で定義されている場合や、対話型シェルで" +"定義したオブジェクトの場合にこのようなことが起こり得ます。" #: ../../library/inspect.rst:642 msgid "" @@ -1101,6 +1166,8 @@ msgid "" "Try to guess which module an object was defined in. Return ``None`` if the " "module cannot be determined." msgstr "" +"オブジェクトが定義されているモジュールの推定を試みます。モジュールが決められ" +"ない場合は ``None`` を返します。" #: ../../library/inspect.rst:655 msgid "" @@ -1108,6 +1175,9 @@ msgid "" "``None`` if no way can be identified to get the source. This will fail with " "a :exc:`TypeError` if the object is a built-in module, class, or function." msgstr "" +"オブジェクトが定義されている Python ソースファイルの名前を返します。ソースを" +"取得する方法がない場合は ``None`` を返します。組み込みのモジュール、クラス、" +"関数に対しては :exc:`TypeError` で失敗します。" #: ../../library/inspect.rst:663 msgid "" @@ -1119,6 +1189,13 @@ msgid "" "code cannot be retrieved. A :exc:`TypeError` is raised if the object is a " "built-in module, class, or function." msgstr "" +"オブジェクトを定義しているソースコードの行のリストと、定義の開始行番号を返し" +"ます。引数にはモジュール、クラス、メソッド、関数、トレースバック、またはコー" +"ドオブジェクトを渡すことができます。オブジェクトに対応するソースコードが行の" +"リストとして返されます。また行番号は、元のソースファイル中でコードが見つかっ" +"た最初の行を示します。ソースコードを探し出すことができなかった場合、 :exc:" +"`OSError` 例外が送出されます。オブジェクトが組み込みのモジュール、クラス、ま" +"たは関数である場合は :exc:`TypeError` 例外が送出されます。" #: ../../library/inspect.rst:672 ../../library/inspect.rst:686 msgid "" @@ -1136,6 +1213,12 @@ msgid "" "the source code cannot be retrieved. A :exc:`TypeError` is raised if the " "object is a built-in module, class, or function." msgstr "" +"オブジェクトを定義しているソースコードのテキストを返します。引数にはモジュー" +"ル、クラス、メソッド、関数、トレースバック、フレーム、またはコードオブジェク" +"トを渡すことができます。ソースコードはひとつの文字列として返されます。ソース" +"コードを探し出すことができなかった場合、 :exc:`OSError` 例外が送出されます。" +"オブジェクトが組み込みのモジュール、クラス、または関数である場合は :exc:" +"`TypeError` 例外が送出されます。" #: ../../library/inspect.rst:693 msgid "" @@ -1165,10 +1248,15 @@ msgid "" "object and its return annotation. To retrieve a :class:`!Signature` object, " "use the :func:`!signature` function." msgstr "" +":class:`Signature` オブジェクトは、呼び出し可能オブジェクトの呼び出しシグネ" +"チャと戻り値のアノテーションを表現します。 :class:`!Signature` オブジェクトを" +"取得するには、 :func:`!signature` 関数を使ってください。" #: ../../library/inspect.rst:716 msgid "Return a :class:`Signature` object for the given *callable*:" msgstr "" +"*callable* で与えられたオブジェクトに対する :class:`Signature` オブジェクトを" +"返します:" #: ../../library/inspect.rst:718 msgid "" @@ -1187,6 +1275,20 @@ msgid "" ">>> sig.parameters['b'].annotation\n" "" msgstr "" +">>> from inspect import signature\n" +">>> def foo(a, *, b:int, **kwargs):\n" +"... pass\n" +"\n" +">>> sig = signature(foo)\n" +"\n" +">>> str(sig)\n" +"'(a, *, b: int, **kwargs)'\n" +"\n" +">>> str(sig.parameters['b'])\n" +"'b: int'\n" +"\n" +">>> sig.parameters['b'].annotation\n" +"" #: ../../library/inspect.rst:735 msgid "" @@ -1210,6 +1312,17 @@ msgid "" "annotations. For example, use ``annotation_format=annotationlib.Format." "STRING`` to return annotations in string format." msgstr "" +"アノテーションのいくつかが (たとえば ``from __future__ import annotations`` " +"が使われていることを理由に) 文字列である場合、 :func:`signature` は :func:" +"`annotationlib.get_annotations` を使って「非文字列化」すなわち文字列アノテー" +"ションを解決して本来のアノテーションに戻すことを試みます。アノテーションの解" +"決を行う際には *globals*, *locals*, および *eval_str* パラメータが :func:`!" +"annotationlib.get_annotations` に渡されます; これらのパラメータを使う方法につ" +"いての説明は :func:`!annotationlib.get_annotations` のドキュメンテーションを" +"参照してください。返されるアノテーションの形式を制御するため、 " +"*annotation_format* パラメータには :class:`annotationlib.Format` 列挙型のメン" +"バーを渡すことができます。たとえばアノテーションを文字列形式で返すためには " +"``annotation_format=annotationlib.Format.STRING`` を使ってください。" #: ../../library/inspect.rst:752 msgid "" @@ -1219,6 +1332,12 @@ msgid "" "call(s) to un-stringize the annotations in :func:`annotationlib." "get_annotations` could potentially raise any kind of exception." msgstr "" +"シグネチャを提供できない場合は :exc:`ValueError` 例外を送出します。またオブ" +"ジェクトの型がサポートされていない場合は :exc:`TypeError` 例外を送出します。" +"さらに、アノテーションが文字列化されており、 *eval_str* が偽でない場合、アノ" +"テーションを「非文字列化」するために :func:`annotationlib.get_annotations` 内" +"部で呼ばれる ``eval()`` により、いかなる種類の例外も送出される可能性がありま" +"す。" #: ../../library/inspect.rst:758 msgid "" @@ -1226,6 +1345,9 @@ msgid "" "to it are positional-only. For more info, see :ref:`the FAQ entry on " "positional-only parameters `." msgstr "" +"関数シグネチャにおけるスラッシュ (/) は、それより前のパラメータが位置専用引数" +"であることを示します。より詳しい情報は、 :ref:`位置専用引数に関する FAQ エン" +"トリ ` を参照してください。" #: ../../library/inspect.rst:762 msgid "" @@ -1233,14 +1355,18 @@ msgid "" "of *callable* specifically (``callable.__wrapped__`` will not be used to " "unwrap decorated callables.)" msgstr "" +"*follow_wrapped* パラメータが追加されました。parameter was added. 特に " +"*callable* そのものについてのシグネチャを取得するためには ``False`` を指定し" +"てください (そうすることで、デコレータで修飾された呼び出し可能オブジェクトに" +"対して``callable.__wrapped__`` が使われなくなります)。" #: ../../library/inspect.rst:768 ../../library/inspect.rst:904 msgid "The *globals*, *locals*, and *eval_str* parameters were added." -msgstr "" +msgstr "*globals*, *locals*, および *eval_str* パラメータが追加されました。" #: ../../library/inspect.rst:771 msgid "The *annotation_format* parameter was added." -msgstr "" +msgstr "*annotation_format* パラメータが追加されました。" #: ../../library/inspect.rst:776 msgid "" @@ -1248,6 +1374,10 @@ msgid "" "Python. For example, in CPython, some built-in functions defined in C " "provide no metadata about their arguments." msgstr "" +"いくつかの呼び出し可能オブジェクトは、ある Python 実装の下ではイントロスペク" +"ション (実行時オブジェクト調査) ができないかもしれません。たとえば CPython で" +"は、 C で定義されたいくつかの組み込み関数はそれらの引数に関するメタデータを提" +"供しません。" #: ../../library/inspect.rst:782 msgid "" @@ -1256,6 +1386,10 @@ msgid "" "and are subject to unannounced changes. Consult the source code for current " "semantics." msgstr "" +"渡されたオブジェクトが :attr:`!__signature__` 属性を持つ場合、それにもとづい" +"てシグネチャを作ることができるかもしれません。厳密なセマンティクスは実装レベ" +"ルの詳細であり、予告なく変更される可能性があります。現在のセマンティクスにつ" +"いてはソースコードをを参照してください。" #: ../../library/inspect.rst:790 msgid "" @@ -1263,6 +1397,10 @@ msgid "" "its return annotation. For each parameter accepted by the function it " "stores a :class:`Parameter` object in its :attr:`parameters` collection." msgstr "" +":class:`!Signature` オブジェクトは、関数の呼び出しシグネチャと戻り値のアノ" +"テーションを表現します。このオブジェクトは :attr:`parameters` 集合として、関" +"数が受け取るパラメータそれぞれについての :class:`Parameter` オブジェクトを保" +"存します。" #: ../../library/inspect.rst:795 msgid "" @@ -1272,22 +1410,36 @@ msgid "" "positional-only first, then positional-or-keyword, and that parameters with " "defaults follow parameters without defaults." msgstr "" +"オプション引数 *parameters* は :class:`Parameter` オブジェクトのシーケンス" +"で、重複した名前のパラメータはないか、パラメータの並び順は正しいか、すなわち" +"位置専用引数からはじまり次に位置引数としてもキーワード引数としても指定可能な" +"パラメータが続くかどうか、またデフォルト値のあるパラメータがデフォルト値のな" +"いパラメータの後にあるかどうか、といった項目をチェックするための検証が行われ" +"ます。" #: ../../library/inspect.rst:801 msgid "" "The optional *return_annotation* argument can be an arbitrary Python object. " "It represents the \"return\" annotation of the callable." msgstr "" +"オプション引数 *return_annotation* は任意の Python オブジェクトをとることがで" +"きます。この引数は、呼び出し可能オブジェクトの \"戻り値\" に対するアノテー" +"ションを表します。" #: ../../library/inspect.rst:804 msgid "" ":class:`!Signature` objects are *immutable*. Use :meth:`Signature.replace` " "or :func:`copy.replace` to make a modified copy." msgstr "" +":class:`!Signature` オブジェクトは *immutable* すなわち変更不可能です。変更さ" +"れたコピーを生成するためには、 :meth:`Signature.replace` または :func:`copy." +"replace` を使ってください。" #: ../../library/inspect.rst:807 msgid ":class:`!Signature` objects are now picklable and :term:`hashable`." msgstr "" +":class:`!Signature` オブジェクトは pickle 可能かつ :term:`ハッシュ可能` にな" +"りました。" #: ../../library/inspect.rst:812 msgid "A special class-level marker to specify absence of a return annotation." @@ -1299,6 +1451,9 @@ msgid "" "`Parameter` objects. Parameters appear in strict definition order, " "including keyword-only parameters." msgstr "" +"パラメータの名前と対応する :class:`Parameter` オブジェクトの、順序ありマッピ" +"ングです。パラメータは、キーワード専用パラメータも含めて、厳密な定義順に現れ" +"ます。" #: ../../library/inspect.rst:820 ../../library/inspect.rst:1184 msgid "" @@ -1306,6 +1461,9 @@ msgid "" "keyword-only parameters as of version 3.7, although in practice this order " "had always been preserved in Python 3." msgstr "" +"バージョン 3.7 までは、Python はキーワード専用パラメータだけしか順序を保つこ" +"とを明確に保証していませんでした。とはいえ Python 3 では事実上パラメータの順" +"序は維持されていました。" #: ../../library/inspect.rst:827 msgid "" @@ -1322,6 +1480,10 @@ msgid "" "Returns :class:`BoundArguments` if ``*args`` and ``**kwargs`` match the " "signature, or raises a :exc:`TypeError`." msgstr "" +"位置引数およびキーワード引数からパラメータへのマッピングを生成します。 " +"``*args`` と ``**kwargs`` がシグネチャに一致した場合 :class:`BoundArguments` " +"を返します。引数がシグネチャと一致しない場合は :exc:`TypeError` 例外を送出し" +"ます。" #: ../../library/inspect.rst:838 msgid "" @@ -1330,6 +1492,10 @@ msgid "" "Returns :class:`BoundArguments`, or raises a :exc:`TypeError` if the passed " "arguments do not match the signature." msgstr "" +":meth:`Signature.bind` と同様に動作しますが、いくつかの必要な引数を省略するこ" +"とができます (:func:`functools.partial` の振る舞いによく似たものです) 。 :" +"class:`BoundArguments` を返します。引数がシグネチャと一致しない場合は :exc:" +"`TypeError` 例外を送出します。" #: ../../library/inspect.rst:845 msgid "" @@ -1339,6 +1505,11 @@ msgid "" "signature. To remove ``return_annotation`` from the copied :class:`!" "Signature`, pass in :attr:`Signature.empty`." msgstr "" +":meth:`replace` メソッドが呼び出されたインスタンスから、新しい :class:" +"`Signature` インスタンスを生成します。元になるシグネチャのプロパティをオー" +"バーライドするために異なる *parameters* や *return_annotation* を渡すことが可" +"能です。 ``return_annotation`` をコピーされた :class:`!Signature` インスタン" +"スから削除したい場合、 :attr:`Signature.empty` を渡してください。" #: ../../library/inspect.rst:853 msgid "" @@ -1350,16 +1521,25 @@ msgid "" ">>> str(new_sig)\n" "\"(a, b) -> 'new return anno'\"" msgstr "" +">>> def test(a, b):\n" +"... pass\n" +"...\n" +">>> sig = signature(test)\n" +">>> new_sig = sig.replace(return_annotation=\"new return anno\")\n" +">>> str(new_sig)\n" +"\"(a, b) -> 'new return anno'\"" #: ../../library/inspect.rst:863 msgid "" ":class:`Signature` objects are also supported by the generic function :func:" "`copy.replace`." msgstr "" +":class:`Signature` オブジェクトのコピーは、汎用の関数 :func:`copy.replace` で" +"もサポートされています。" #: ../../library/inspect.rst:868 msgid "Create a string representation of the :class:`Signature` object." -msgstr "" +msgstr ":class:`Signature` オブジェクトの文字列表現を生成します。" #: ../../library/inspect.rst:870 msgid "" @@ -1367,6 +1547,9 @@ msgid "" "lines of at most *max_width* characters. If the signature is longer than " "*max_width*, all parameters will be on separate lines." msgstr "" +"*max_width* が指定されると、メソッドはシグネチャをそれぞれの行が最大 " +"*max_width* 文字になるようにフォーマットを試みます。シグネチャが *max_width* " +"よりも長くなってしまう場合は、全てのパラメータごとに改行されます。" #: ../../library/inspect.rst:875 msgid "" @@ -1376,20 +1559,28 @@ msgid "" "`~annotationlib.Format.STRING` format or if ``from __future__ import " "annotations`` was used." msgstr "" +"*quote_annotation_strings* が偽の場合、文字列で表されたシグネチャの中の :" +"term:`アノテーション ` は、最初と最後のクォート記号無しで表示され" +"ます。この挙動は、シグネチャが :attr:`~annotationlib.Format.STRING` フォー" +"マットで作られた場合や ``from __future__ import annotations`` が使われた場合" +"に有用です。" #: ../../library/inspect.rst:883 msgid "The *unquote_annotations* parameter was added." -msgstr "" +msgstr "*unquote_annotations* パラメータが追加されました。" #: ../../library/inspect.rst:888 msgid "" "Return a :class:`Signature` (or its subclass) object for a given callable " "*obj*." msgstr "" +"与えられた呼び出し可能オブジェクト *obj* に対する :class:`Signature` (または" +"そのサブクラスの) オブジェクトを返します。" #: ../../library/inspect.rst:891 msgid "This method simplifies subclassing of :class:`Signature`:" msgstr "" +"このメソッドは :class:`Signature` からサブクラスを作る作業を簡素化します:" #: ../../library/inspect.rst:893 msgid "" @@ -1398,10 +1589,14 @@ msgid "" "sig = MySignature.from_callable(sum)\n" "assert isinstance(sig, MySignature)" msgstr "" +"class MySignature(Signature):\n" +" pass\n" +"sig = MySignature.from_callable(sum)\n" +"assert isinstance(sig, MySignature)" #: ../../library/inspect.rst:900 msgid "Its behavior is otherwise identical to that of :func:`signature`." -msgstr "" +msgstr "このメソッドの振る舞いは、上記を除けば :func:`signature` と同じです。" #: ../../library/inspect.rst:910 msgid "" @@ -1409,10 +1604,16 @@ msgid "" "Parameter` object, you can use :meth:`Parameter.replace` or :func:`copy." "replace` to create a modified copy." msgstr "" +":class:`!Parameter` オブジェクトはイミュータブル (*immutable*) すなわち変更不" +"可能です。 :class:`!Parameter` オブジェクトを変更する代わりに、 :meth:" +"`Parameter.replace` や :func:`copy.replace` を使ってオブジェクトの内容を変更" +"したコピーを作成することができます。" #: ../../library/inspect.rst:914 msgid "Parameter objects are now picklable and :term:`hashable`." msgstr "" +"Parameter オブジェクトはピックル化可能 (picklable) かつ ハッシュ化可能 (:" +"term:`hashable`) になりました。" #: ../../library/inspect.rst:919 msgid "" @@ -1433,12 +1634,16 @@ msgid "" "CPython generates implicit parameter names of the form ``.0`` on the code " "objects used to implement comprehensions and generator expressions." msgstr "" +"CPython は内包表記やジェネレータ式を実装するためのコードオブジェクトにおい" +"て、 ``.0`` という形式で暗黙のパラメータ名を生成します。" #: ../../library/inspect.rst:933 msgid "" "These parameter names are now exposed by this module as names like " "``implicit0``." msgstr "" +"このモジュールにより、これら暗黙のパラメータ名は ``implicit0`` のような名前で" +"公開されるようになりました。" #: ../../library/inspect.rst:939 msgid "" @@ -1462,6 +1667,9 @@ msgid "" "values are accessible via :class:`Parameter` (like ``Parameter." "KEYWORD_ONLY``), and support comparison and ordering, in the following order:" msgstr "" +"引数の値がどのようにパラメータと紐付けられるかを記述します。指定可能な値は :" +"class:`Parameter` を介して (``Parameter.KEYWORD_ONLY`` のように) アクセス可能" +"で、以下に示す順番で比較や順序付けをサポートしています:" #: ../../library/inspect.rst:956 msgid "Name" @@ -1481,6 +1689,8 @@ msgid "" "are those which appear before a ``/`` entry (if present) in a Python " "function definition." msgstr "" +"値は位置引数として渡されなければなりません。 Python の関数定義において、位置" +"専用引数は (もし存在すれば) ``/`` エントリの前に現れるものを指します。" #: ../../library/inspect.rst:963 msgid "*POSITIONAL_OR_KEYWORD*" @@ -1533,7 +1743,7 @@ msgstr "" #: ../../library/inspect.rst:984 msgid "Example: print all keyword-only arguments without default values:" -msgstr "" +msgstr "例: デフォルト値を持たないキーワード専用引数を全て出力します:" #: ../../library/inspect.rst:986 msgid "" @@ -1547,14 +1757,23 @@ msgid "" "... print('Parameter:', param)\n" "Parameter: c" msgstr "" +">>> def foo(a, b, *, c, d=10):\n" +"... pass\n" +"\n" +">>> sig = signature(foo)\n" +">>> for param in sig.parameters.values():\n" +"... if (param.kind == param.KEYWORD_ONLY and\n" +"... param.default is param.empty):\n" +"... print('Parameter:', param)\n" +"Parameter: c" #: ../../library/inspect.rst:1000 msgid "Describes an enum value of :attr:`Parameter.kind`." -msgstr "" +msgstr ":attr:`Parameter.kind` 列挙型の各定数を説明します。" #: ../../library/inspect.rst:1004 msgid "Example: print all descriptions of arguments:" -msgstr "" +msgstr "例: 全ての引数に対する説明を出力します:" #: ../../library/inspect.rst:1006 msgid "" @@ -1569,6 +1788,16 @@ msgid "" "keyword-only\n" "keyword-only" msgstr "" +">>> def foo(a, b, *, c, d=10):\n" +"... pass\n" +"\n" +">>> sig = signature(foo)\n" +">>> for param in sig.parameters.values():\n" +"... print(param.kind.description)\n" +"positional or keyword\n" +"positional or keyword\n" +"keyword-only\n" +"keyword-only" #: ../../library/inspect.rst:1021 msgid "" @@ -1577,6 +1806,11 @@ msgid "" "corresponding argument. To remove a default value or/and an annotation from " "a :class:`!Parameter`, pass :attr:`Parameter.empty`." msgstr "" +"このメソッドの呼び出し元のインスタンスをもとにして、新たな :class:" +"`Parameter` インスタンスを生成します。 :class:`!Parameter` の属性をオーバーラ" +"イドするには、対応する引数をこのメソッドに渡してください。 :class:`!" +"Parameter` からデフォルト値やアノテーションを取り除きたい場合は、 :attr:" +"`Parameter.empty` を渡してください。" #: ../../library/inspect.rst:1026 msgid "" @@ -1591,12 +1825,24 @@ msgid "" ">>> str(param.replace(default=Parameter.empty, annotation='spam'))\n" "\"foo: 'spam'\"" msgstr "" +">>> from inspect import Parameter\n" +">>> param = Parameter('foo', Parameter.KEYWORD_ONLY, default=42)\n" +">>> str(param)\n" +"'foo=42'\n" +"\n" +">>> str(param.replace()) # Will create a shallow copy of 'param'\n" +"'foo=42'\n" +"\n" +">>> str(param.replace(default=Parameter.empty, annotation='spam'))\n" +"\"foo: 'spam'\"" #: ../../library/inspect.rst:1039 msgid "" ":class:`Parameter` objects are also supported by the generic function :func:" "`copy.replace`." msgstr "" +":class:`Parameter` オブジェクトは汎用関数 :func:`copy.replace` でもサポートさ" +"れています。" #: ../../library/inspect.rst:1042 msgid "" @@ -1604,12 +1850,17 @@ msgid "" "to ``None`` if their ``kind`` was set to ``POSITIONAL_ONLY``. This is no " "longer permitted." msgstr "" +"Python 3.3 では、``kind`` が ``POSITIONAL_ONLY`` の場合に限り、 ``name`` が " +"``None`` であるような :class:`Parameter` オブジェクトが許されていました。です" +"が、そのようなオブジェクトはもはや許可されていません。" #: ../../library/inspect.rst:1049 msgid "" "Result of a :meth:`Signature.bind` or :meth:`Signature.bind_partial` call. " "Holds the mapping of arguments to the function's parameters." msgstr "" +":meth:`Signature.bind` または :meth:`Signature.bind_partial` を呼び出して得ら" +"れる結果です。引数と関数のパラメータとの間のマッピング情報を保持します。" #: ../../library/inspect.rst:1054 msgid "" @@ -1617,12 +1868,17 @@ msgid "" "explicitly bound arguments. Changes in :attr:`arguments` will reflect in :" "attr:`args` and :attr:`kwargs`." msgstr "" +"パラメータの名前と引数の値との間のミュータブルなマッピングです。明示的に紐付" +"けされた引数だけを含みます。 :attr:`arguments` に対する変更は :attr:`args` " +"と :attr:`kwargs` に反映されます。" #: ../../library/inspect.rst:1058 msgid "" "Should be used in conjunction with :attr:`Signature.parameters` for any " "argument processing purposes." msgstr "" +"いかなる引数処理の目的でも、 :attr:`Signature.parameters` とあわせて使うよう" +"にしてください。" #: ../../library/inspect.rst:1063 msgid "" @@ -1630,12 +1886,17 @@ msgid "" "relied on a default value are skipped. However, if needed, use :meth:" "`BoundArguments.apply_defaults` to add them." msgstr "" +":meth:`Signature.bind` または :meth:`Signature.bind_partial` でデフォルト値を" +"あてにするとされた引数は、スキップされます。それらをマッピングに加えたい場合" +"は、必要に応じて :meth:`BoundArguments.apply_defaults` を使ってください。" #: ../../library/inspect.rst:1068 msgid "" ":attr:`arguments` is now of type :class:`dict`. Formerly, it was of type :" "class:`collections.OrderedDict`." msgstr "" +":attr:`arguments` の型が :class:`dict` になりました。以前は :class:" +"`collections.OrderedDict` 型でした。" #: ../../library/inspect.rst:1074 msgid "" @@ -1650,6 +1911,9 @@ msgid "" "`arguments` attribute. Arguments that can be passed positionally are " "included in :attr:`args` instead." msgstr "" +"キーワード引数の値の辞書です。 :attr:`arguments` 属性から動的に計算されます。" +"位置引数として渡すことができる引数は、 :attr:`args` に含まれることに注意して" +"ください。" #: ../../library/inspect.rst:1085 msgid "A reference to the parent :class:`Signature` object." @@ -1662,12 +1926,13 @@ msgstr "存在しない引数のデフォルト値を設定します。" #: ../../library/inspect.rst:1091 msgid "" "For variable-positional arguments (``*args``) the default is an empty tuple." -msgstr "" +msgstr "可変長位置引数 (``*args``) に対するデフォルト値は、空のタプルです。" #: ../../library/inspect.rst:1094 msgid "" "For variable-keyword arguments (``**kwargs``) the default is an empty dict." msgstr "" +"可変長キーワード引数 (``**kwargs``) に対するデフォルト値は、空の辞書です。" #: ../../library/inspect.rst:1097 msgid "" @@ -1677,12 +1942,19 @@ msgid "" ">>> ba.arguments\n" "{'a': 'spam', 'b': 'ham', 'args': ()}" msgstr "" +">>> def foo(a, b='ham', *args): pass\n" +">>> ba = inspect.signature(foo).bind('spam')\n" +">>> ba.apply_defaults()\n" +">>> ba.arguments\n" +"{'a': 'spam', 'b': 'ham', 'args': ()}" #: ../../library/inspect.rst:1107 msgid "" "The :attr:`args` and :attr:`kwargs` properties can be used to invoke " "functions:" msgstr "" +":attr:`args` と :attr:`kwargs` の2つのプロパティは、関数の呼び出しに使うこと" +"ができます:" #: ../../library/inspect.rst:1110 msgid "" @@ -1693,6 +1965,12 @@ msgid "" "ba = sig.bind(10, b=20)\n" "test(*ba.args, **ba.kwargs)" msgstr "" +"def test(a, *, b):\n" +" ...\n" +"\n" +"sig = signature(test)\n" +"ba = sig.bind(10, b=20)\n" +"test(*ba.args, **ba.kwargs)" #: ../../library/inspect.rst:1122 msgid ":pep:`362` - Function Signature Object." @@ -1700,7 +1978,7 @@ msgstr ":pep:`362`: - 関数シグニチャオブジェクト" #: ../../library/inspect.rst:1123 msgid "The detailed specification, implementation details and examples." -msgstr "" +msgstr "仕様の詳細、実装の詳細および使用例を示しています。" #: ../../library/inspect.rst:1129 msgid "Classes and functions" @@ -1727,6 +2005,8 @@ msgid "" "Get the names and default values of a Python function's parameters. A :term:" "`named tuple` is returned:" msgstr "" +"Python 関数のパラメータの名前とデフォルト値を取得します。 :term:`named " +"tuple` を返します:" #: ../../library/inspect.rst:1147 msgid "" @@ -1750,6 +2030,16 @@ msgid "" "parameter names to annotations. The special key ``\"return\"`` is used to " "report the function return value annotation (if any)." msgstr "" +"*args* は位置引数の名前のリストです。 *varargs* は ``*`` で始まる可変長位置引" +"数の名前で、この引数を受け付けない場合は ``None`` です。 *varkw* は ``**`` で" +"始まる可変長キーワード引数の名前で、この引数を受け付けない場合は ``None`` で" +"す。 *defaults* は末尾 *n* 個の位置引数に対応するデフォルト引数の *n*-タプル" +"で、 そのようなデフォルト値が定義されていない場合は ``None`` です。 " +"*kwonlyargs* は宣言順に並んだキーワード専用引数の名前のリストです。 " +"*kwonlydefaults* はそれらに対して値が渡されなかった場合の、 *kwonlyargs* の名" +"前からデフォルト値へのマッピングを行う辞書です。 *annotations* 引数名からアノ" +"テーションへのマッピングを行う辞書です。特殊キー ``\"return\"`` は (もしあれ" +"ば) 関数の戻り値に対するアノテーションを伝えるために使われます。" #: ../../library/inspect.rst:1165 msgid "" @@ -1760,6 +2050,12 @@ msgid "" "for use in code that needs to maintain compatibility with the Python 2 " "``inspect`` module API." msgstr "" +":func:`signature` と :ref:`Signature オブジェクト ` が呼び出し可能オブジェクトのイントロスペクション (実行時オブジェクト" +"調査) のための推奨される API を提供しており、かつ拡張モジュール API でときど" +"き遭遇する追加の振る舞い (位置専用引数など) もサポートしていることに注意して" +"ください。この関数は、主に Python 2 の ``inspect`` モジュール API との互換性" +"を維持することが必要なコードで利用されるために残されています。" #: ../../library/inspect.rst:1172 msgid "" @@ -1767,6 +2063,9 @@ msgid "" "``__wrapped__`` attributes and includes the already bound first parameter in " "the signature output for bound methods." msgstr "" +"この関数は :func:`signature` をもとに実装されています。ただし、 " +"``__wrapped__`` 属性を無視します。また、束縛されたメソッドに対するシグネチャ" +"の出力において、すでに束縛された最初のパラメータを含みます。" #: ../../library/inspect.rst:1177 msgid "" @@ -1775,6 +2074,10 @@ msgid "" "restore a clearly supported standard interface for single-source Python 2/3 " "code migrating away from the legacy :func:`getargspec` API." msgstr "" +"Python 3.5 ではこのメソッドは非推奨とされ、代わりに :func:`signature` の利用" +"が推奨されていました。ですが、レガシー API である :func:`getargspec` から移行" +"し、明確にサポートされた標準インターフェースによる単一ソースでの Python 2/3 " +"互換コードを復活させるため、非推奨の決定は取り消されました。" #: ../../library/inspect.rst:1192 msgid "" @@ -1792,7 +2095,7 @@ msgstr "" #: ../../library/inspect.rst:1199 ../../library/inspect.rst:1209 msgid "This function was inadvertently marked as deprecated in Python 3.5." -msgstr "" +msgstr "この関数は Python 3.5 において、不注意により非推奨とされていました。" #: ../../library/inspect.rst:1204 msgid "" @@ -1827,6 +2130,14 @@ msgid "" "exception of the same type and the same or similar message is raised. For " "example:" msgstr "" +"*args* と *kwds* を、あたかもそれらをパラメータとして呼ばれたかのように、 " +"Python 関数またはメソッド *func* に束縛します。また、第一引数 (通常 ``self`` " +"という名前です) を関連するインスタンスに束縛します。引数名 (もし存在すれば " +"``*`` や ``**`` で始まる引数も含む) を *args* および *kwds* で与えられた値に" +"マッピングする辞書を返します。 *func* を不正に呼び出した場合、すなわち " +"``func(*args, **kwds)`` の呼び出しが不完全なシグネチャにより例外を送出するよ" +"うな場合は、同じ型の例外を同一またはよく似たメッセージとともに送出します。以" +"下は使用例です:" #: ../../library/inspect.rst:1231 msgid "" @@ -1844,10 +2155,25 @@ msgid "" "...\n" "TypeError: f() missing 1 required positional argument: 'a'" msgstr "" +">>> from inspect import getcallargs\n" +">>> def f(a, b=1, *pos, **named):\n" +"... pass\n" +"...\n" +">>> getcallargs(f, 1, 2, 3) == {'a': 1, 'named': {}, 'b': 2, 'pos': (3,)}\n" +"True\n" +">>> getcallargs(f, a=2, x=4) == {'a': 2, 'named': {'x': 4}, 'b': 1, 'pos': " +"()}\n" +"True\n" +">>> getcallargs(f)\n" +"Traceback (most recent call last):\n" +"...\n" +"TypeError: f() missing 1 required positional argument: 'a'" #: ../../library/inspect.rst:1248 msgid "Use :meth:`Signature.bind` and :meth:`Signature.bind_partial` instead." msgstr "" +"代わりに :meth:`Signature.bind` や :meth:`Signature.bind_partial` を使ってく" +"ださい。" #: ../../library/inspect.rst:1254 msgid "" @@ -1860,6 +2186,14 @@ msgid "" "that could not be resolved at all given the current module globals and " "builtins." msgstr "" +"Python 関数またはメソッド *func* の外部の名前参照と、それらの現在の値のマッピ" +"ングを取得します。 :term:`named tuple` ``ClosureVars(nonlocals, globals, " +"builtins, unbound)`` を返します。参照名を、 *nonlocals* はレキシカルクロー" +"ジャ変数、すなわち外側のスコープで定義された変数の値にマップし、 *globals* は" +"関数が属するモジュールのグローバル変数にマップし、 *builtins* は関数本体から" +"見える組み込み変数にマップします。 *unbound* は、現在のモジュールにおけるグ" +"ローバル変数や組み込み変数において解決できないにもかかわらず、関数内で参照さ" +"れている名前の集合です。" #: ../../library/inspect.rst:1263 msgid "" @@ -1872,6 +2206,8 @@ msgid "" "Get the object wrapped by *func*. It follows the chain of :attr:" "`__wrapped__` attributes returning the last object in the chain." msgstr "" +"*func* によりラップされたオブジェクトを取得します。 :attr:`__wrapped__` 属性" +"の連鎖をたどり、ラップの連鎖の最後にあるオブジェクトを返します。" #: ../../library/inspect.rst:1273 msgid "" @@ -1882,26 +2218,37 @@ msgid "" "`signature` uses this to stop unwrapping if any object in the chain has a " "``__signature__`` attribute defined." msgstr "" +"*stop* はオプションで指定可能なコールバック関数で、ラッパーの連鎖におけるオブ" +"ジェクトをただひとつの引数として取ります。このコールバック関数が真値を返した" +"段階で、オブジェクトのアンラップを早期に終了させることができます。コールバッ" +"ク関数が真値を返さない場合は、通常通りラッパーの連鎖における最後のオブジェク" +"トを返します。例えば、 :func:`signature` は、オブジェクトに " +"``__signature__`` 属性が定義されていたらオブジェクトのアンラップを停止するた" +"めに、このオプションを使っています。" #: ../../library/inspect.rst:1280 msgid ":exc:`ValueError` is raised if a cycle is encountered." -msgstr "" +msgstr "循環を検知した場合は :exc:`ValueError` を送出します。 " #: ../../library/inspect.rst:1287 msgid "Compute the annotations dict for an object." -msgstr "" +msgstr "オブジェクトに対するアノテーション辞書を計算します。" #: ../../library/inspect.rst:1289 msgid "" "This is an alias for :func:`annotationlib.get_annotations`; see the " "documentation of that function for more information." msgstr "" +"これは :func:`annotationlib.get_annotations` のエイリアスです; 詳細はその関数" +"のドキュメントを参照してください。" #: ../../library/inspect.rst:1294 msgid "" "This function is now an alias for :func:`annotationlib.get_annotations`. " "Calling it as ``inspect.get_annotations`` will continue to work." msgstr "" +"この関数は :func:`annotationlib.get_annotations` のエイリアスになりました。 " +"``inspect.get_annotations`` として呼び出しても、引き続き正しく動作します。" #: ../../library/inspect.rst:1302 msgid "The interpreter stack" @@ -1914,40 +2261,51 @@ msgid "" "attributes except ``positions``. This behavior is considered deprecated and " "may be removed in the future." msgstr "" +"以下の関数のうちいくつかは :class:`FrameInfo` オブジェクトを返します。これら" +"のオブジェクトは、後方互換性のために ``positions`` を除く全ての属性に対して、" +"タプル的な演算を許可します。この振る舞いは非推奨と考えられており、将来削除さ" +"れるかもしれません。" #: ../../library/inspect.rst:1313 msgid "The :ref:`frame object ` that the record corresponds to." msgstr "" +"そのレコードに相当する :ref:`フレームオブジェクト ` です。" #: ../../library/inspect.rst:1317 msgid "" "The file name associated with the code being executed by the frame this " "record corresponds to." msgstr "" +"このレコードに相当するフレームによって実行されるコードのファイル名です。" #: ../../library/inspect.rst:1322 msgid "" "The line number of the current line associated with the code being executed " "by the frame this record corresponds to." msgstr "" +"このレコードに相当するフレームによって実行されるコードの、現在の行の行番号で" +"す。" #: ../../library/inspect.rst:1327 msgid "" "The function name that is being executed by the frame this record " "corresponds to." -msgstr "" +msgstr "このレコードに相当するフレームによって実行される関数名です。" #: ../../library/inspect.rst:1331 msgid "" "A list of lines of context from the source code that's being executed by the " "frame this record corresponds to." msgstr "" +"このレコードに相当するフレームによって実行される、ソースコードから生成された" +"コンテキストの行のリストです。" #: ../../library/inspect.rst:1336 ../../library/inspect.rst:1375 msgid "" "The index of the current line being executed in the :attr:`code_context` " "list." msgstr "" +":attr:`code_context` リストにおいて実行される現在の行のインデックスです。" #: ../../library/inspect.rst:1340 msgid "" @@ -1955,40 +2313,51 @@ msgid "" "number, start column offset, and end column offset associated with the " "instruction being executed by the frame this record corresponds to." msgstr "" +"このレコードに相当するフレームによって実行される命令に結びついた :class:`dis." +"Positions` オブジェクトで、開始行番号、終了行番号、開始カラムオフセット、終了" +"カラムオフセットを含んでいます。" #: ../../library/inspect.rst:1344 msgid "Return a :term:`named tuple` instead of a :class:`tuple`." -msgstr "" +msgstr ":class:`tuple` ではなく :term:`named tuple` を返すようになりました。" #: ../../library/inspect.rst:1347 msgid "" ":class:`!FrameInfo` is now a class instance (that is backwards compatible " "with the previous :term:`named tuple`)." msgstr "" +":class:`!FrameInfo` はクラスインスタンスになりました (ただしそれ以前の :term:" +"`named tuple` とは後方互換です) 。" #: ../../library/inspect.rst:1356 msgid "" "The file name associated with the code being executed by the frame this " "traceback corresponds to." msgstr "" +"このトレースバックに対応するフレームによって実行されるコードのファイル名で" +"す。" #: ../../library/inspect.rst:1361 msgid "" "The line number of the current line associated with the code being executed " "by the frame this traceback corresponds to." msgstr "" +"このトレースバックに対応するフレームによって実行されるコードの、現在の行の行" +"番号です。" #: ../../library/inspect.rst:1366 msgid "" "The function name that is being executed by the frame this traceback " "corresponds to." -msgstr "" +msgstr "このトレースバックに対応するフレームによって実行される関数名です。" #: ../../library/inspect.rst:1370 msgid "" "A list of lines of context from the source code that's being executed by the " "frame this traceback corresponds to." msgstr "" +"このトレースバックに対応するフレームによって実行される、ソースコードから生成" +"されたコンテキストの行のリストです。" #: ../../library/inspect.rst:1379 msgid "" @@ -1996,12 +2365,17 @@ msgid "" "number, start column offset, and end column offset associated with the " "instruction being executed by the frame this traceback corresponds to." msgstr "" +"このトレースバックに対応するフレームによって実行される命令の開始行番号、終了" +"行番号、開始カラムオフセット、終了カラムオフセットを含む :class:`dis." +"Positions` オブジェクトです。" #: ../../library/inspect.rst:1384 msgid "" ":class:`!Traceback` is now a class instance (that is backwards compatible " "with the previous :term:`named tuple`)." msgstr "" +":class:`!Traceback` はクラスインスタンスになりました (ただしそれ以前の :term:" +"`named tuple` とは後方互換です) 。" #: ../../library/inspect.rst:1391 msgid "" @@ -2041,6 +2415,12 @@ msgid "" " finally:\n" " del frame" msgstr "" +"def handle_stackframe_without_leak():\n" +" frame = inspect.currentframe()\n" +" try:\n" +" # フレーム上で何か処理をします\n" +" finally:\n" +" del frame" #: ../../library/inspect.rst:1411 msgid "" @@ -2048,6 +2428,9 @@ msgid "" "later), you can also break reference cycles by using the :meth:`frame.clear` " "method." msgstr "" +"(たとえばトレースバックをあとで表示したいなどの理由で) フレームを削除せずに" +"とっておきたい場合は、 :meth:`frame.clear` メソッドを使って循環参照を壊すこと" +"もできます。" #: ../../library/inspect.rst:1415 msgid "" @@ -2064,10 +2447,14 @@ msgid "" "Get information about a frame or traceback object. A :class:`Traceback` " "object is returned." msgstr "" +"フレームまたはトレースバックオブジェクトの情報を取得します。 :class:" +"`Traceback` オブジェクトが返されます。" #: ../../library/inspect.rst:1425 msgid "A :class:`Traceback` object is returned instead of a named tuple." msgstr "" +"名前付きタプルの代わりに :class:`Traceback` オブジェクトが返されるようになり" +"ました。" #: ../../library/inspect.rst:1430 msgid "" @@ -2094,7 +2481,7 @@ msgstr "" #: ../../library/inspect.rst:1440 ../../library/inspect.rst:1455 #: ../../library/inspect.rst:1481 ../../library/inspect.rst:1496 msgid "A list of :class:`FrameInfo` objects is returned." -msgstr "" +msgstr ":class:`FrameInfo` オブジェクトのリストが返されるようになりました。" #: ../../library/inspect.rst:1445 msgid "" @@ -2155,6 +2542,10 @@ msgid "" "properties, will be invoked and :meth:`~object.__getattr__` and :meth:" "`~object.__getattribute__` may be called." msgstr "" +":func:`getattr` や :func:`hasattr` は属性の存在確認や属性値の取得に際してコー" +"ドの実行を伴うことがあります。プロパティなどのデスクリプタが呼び出され、ま" +"た :meth:`~object.__getattr__` や :meth:`~object.__getattribute__` が呼び出さ" +"れたりするかもしれません。" #: ../../library/inspect.rst:1508 msgid "" @@ -2162,6 +2553,9 @@ msgid "" "this can be inconvenient. :func:`getattr_static` has the same signature as :" "func:`getattr` but avoids executing code when it fetches attributes." msgstr "" +"たとえばドキュメントツールのように受動的なイントロスペクションをしたい場合、" +"この振る舞いは不便です。 :func:`getattr_static` は :func:`getattr` と同じシグ" +"ネチャを持ちますが、属性値を取得する際にコードの実行をしないようにします。" #: ../../library/inspect.rst:1514 msgid "" diff --git a/library/internet.po b/library/internet.po index 201349651..8f6cbf318 100644 --- a/library/internet.po +++ b/library/internet.po @@ -18,10 +18,10 @@ msgstr "" "Last-Translator: Inada Naoki , 2023\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../library/internet.rst:5 diff --git a/library/intro.po b/library/intro.po index 68973ca72..d023b7be0 100644 --- a/library/intro.po +++ b/library/intro.po @@ -18,10 +18,10 @@ msgstr "" "Last-Translator: 石井明久, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../library/intro.rst:5 diff --git a/library/io.po b/library/io.po index dea8906bf..9eafcef9c 100644 --- a/library/io.po +++ b/library/io.po @@ -9,7 +9,6 @@ # Mikami Akiko, 2021 # Atsuo Ishimoto , 2022 # Takeshi Nakazato, 2022 -# Arihiro TAKASE, 2023 # Eisuke Kawashima, 2023 # 石井明久, 2024 # tomo, 2025 @@ -19,15 +18,15 @@ msgid "" msgstr "" "Project-Id-Version: Python 3.14\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2025-05-08 02:53-0300\n" +"POT-Creation-Date: 2025-05-23 14:20+0000\n" "PO-Revision-Date: 2021-06-28 01:08+0000\n" "Last-Translator: tomo, 2025\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../library/io.rst:2 @@ -88,7 +87,7 @@ msgstr "" "以前 :exc:`IOError` を送出していた操作が :exc:`OSError` を送出するようになり" "ました。 :exc:`IOError` は今は :exc:`OSError` の別名です。" -#: ../../library/io.rst:51 ../../library/io.rst:870 ../../library/io.rst:1219 +#: ../../library/io.rst:51 ../../library/io.rst:867 ../../library/io.rst:1217 msgid "Text I/O" msgstr "テキスト I/O" @@ -138,7 +137,7 @@ msgstr "" "テキストストリームの API は :class:`TextIOBase` のドキュメントで詳しく解説し" "ます。" -#: ../../library/io.rst:78 ../../library/io.rst:1207 +#: ../../library/io.rst:78 ../../library/io.rst:1205 msgid "Binary I/O" msgstr "バイナリ I/O" @@ -773,7 +772,7 @@ msgid "" "negative" msgstr "" -#: ../../library/io.rst:426 ../../library/io.rst:945 +#: ../../library/io.rst:426 ../../library/io.rst:943 msgid "The :data:`!SEEK_*` constants." msgstr "" @@ -942,27 +941,18 @@ msgstr "" msgid "" "The main difference with :class:`RawIOBase` is that methods :meth:`read`, :" "meth:`readinto` and :meth:`write` will try (respectively) to read as much " -"input as requested or to consume all given output, at the expense of making " -"perhaps more than one system call." +"input as requested or to emit all provided data." msgstr "" -":class:`RawIOBase` との主な違いは、メソッド :meth:`read`、 :meth:`readinto` " -"および :meth:`write` は 、ことによると複数回のシステムコールを行って、(それぞ" -"れ) 要求されただけの入力を読み込もうとしたり与えられた出力の全てを消費しよう" -"としたりする点です。" -#: ../../library/io.rst:535 +#: ../../library/io.rst:534 msgid "" -"In addition, those methods can raise :exc:`BlockingIOError` if the " -"underlying raw stream is in non-blocking mode and cannot take or give enough " -"data; unlike their :class:`RawIOBase` counterparts, they will never return " -"``None``." +"In addition, if the underlying raw stream is in non-blocking mode, when the " +"system returns would block :meth:`write` will raise :exc:`BlockingIOError` " +"with :attr:`BlockingIOError.characters_written` and :meth:`read` will return " +"data read so far or ``None`` if no data is available." msgstr "" -"加えて、元になる生ストリームが非ブロッキングモードでかつ準備ができていない場" -"合に、これらのメソッドは、 :exc:`BlockingIOError` を送出するかもしれません。" -"対応する :class:`RawIOBase` バージョンと違って、 ``None`` を返すことはありま" -"せん。" -#: ../../library/io.rst:540 +#: ../../library/io.rst:539 msgid "" "Besides, the :meth:`read` method does not have a default implementation that " "defers to :meth:`readinto`." @@ -970,7 +960,7 @@ msgstr "" "さらに、 :meth:`read` メソッドは、 :meth:`readinto` に従うデフォルト実装を持" "ちません。" -#: ../../library/io.rst:543 +#: ../../library/io.rst:542 msgid "" "A typical :class:`BufferedIOBase` implementation should not inherit from a :" "class:`RawIOBase` implementation, but wrap one, like :class:`BufferedWriter` " @@ -980,7 +970,7 @@ msgstr "" "class:`BufferedWriter` と :class:`BufferedReader` がするようにこれをラップす" "べきです。" -#: ../../library/io.rst:547 +#: ../../library/io.rst:546 msgid "" ":class:`BufferedIOBase` provides or overrides these data attributes and " "methods in addition to those from :class:`IOBase`:" @@ -988,7 +978,7 @@ msgstr "" ":class:`BufferedIOBase` は :class:`IOBase` から継承した属性とメソッドに加え" "て、以下のデータ属性とメソッドを提供またはオーバーライドします:" -#: ../../library/io.rst:552 +#: ../../library/io.rst:551 msgid "" "The underlying raw stream (a :class:`RawIOBase` instance) that :class:" "`BufferedIOBase` deals with. This is not part of the :class:" @@ -998,16 +988,16 @@ msgstr "" "ンス) を返します。これは :class:`BufferedIOBase` API には含まれず、よって実装" "に含まれないことがあります。" -#: ../../library/io.rst:558 +#: ../../library/io.rst:557 msgid "Separate the underlying raw stream from the buffer and return it." msgstr "根底の生ストリームをバッファから分離して返します。" -#: ../../library/io.rst:560 +#: ../../library/io.rst:559 msgid "" "After the raw stream has been detached, the buffer is in an unusable state." msgstr "生ストリームが取り外された後、バッファは使用不能状態になります。" -#: ../../library/io.rst:563 +#: ../../library/io.rst:562 msgid "" "Some buffers, like :class:`BytesIO`, do not have the concept of a single raw " "stream to return from this method. They raise :exc:`UnsupportedOperation`." @@ -1016,59 +1006,46 @@ msgstr "" "という概念を持たないものがあります。これらは :exc:`UnsupportedOperation` を送" "出します。" -#: ../../library/io.rst:571 +#: ../../library/io.rst:570 msgid "" -"Read and return up to *size* bytes. If the argument is omitted, ``None``, " -"or negative, data is read and returned until EOF is reached. An empty :" -"class:`bytes` object is returned if the stream is already at EOF." +"Read and return up to *size* bytes. If the argument is omitted, ``None``, or " +"negative read as much as possible." msgstr "" -"最大で *size* バイト読み込んで返します。 引数が省略されるか、 ``None`` か、ま" -"たは負の値であった場合、 データは EOF に到達するまで読み込まれます。 ストリー" -"ムが既に EOF に到達していた場合は空の :class:`bytes` オブジェクトが返されま" -"す。" -#: ../../library/io.rst:575 +#: ../../library/io.rst:573 msgid "" -"If the argument is positive, and the underlying raw stream is not " -"interactive, multiple raw reads may be issued to satisfy the byte count " -"(unless EOF is reached first). But for interactive raw streams, at most one " -"raw read will be issued, and a short result does not imply that EOF is " -"imminent." +"Fewer bytes may be returned than requested. An empty :class:`bytes` object " +"is returned if the stream is already at EOF. More than one read may be made " +"and calls may be retried if specific errors are encountered, see :meth:`os." +"read` and :pep:`475` for more details. Less than size bytes being returned " +"does not imply that EOF is imminent." msgstr "" -"引数が正で、元になる生ストリームが対話的でなければ、必要なバイト数を満たすよ" -"うに複数回の生 read が発行されるかもしれません (先に EOF に到達しない限り" -"は)。対話的な場合は、最大で一回の raw read しか発行されず、短い結果でも EOF " -"に達したことを意味しません。" -#: ../../library/io.rst:581 ../../library/io.rst:604 ../../library/io.rst:614 +#: ../../library/io.rst:579 msgid "" -"A :exc:`BlockingIOError` is raised if the underlying raw stream is in non " -"blocking-mode, and has no data available at the moment." +"When reading as much as possible the default implementation will use ``raw." +"readall`` if available (which should implement :meth:`RawIOBase.readall`), " +"otherwise will read in a loop until read returns ``None``, an empty :class:" +"`bytes`, or a non-retryable error. For most streams this is to EOF, but for " +"non-blocking streams more data may become available." msgstr "" -"元になる生ストリームがノンブロッキングモードで、呼び出された時点でデータを" -"持っていなければ、 :exc:`BlockingIOError` が送出されます。" -#: ../../library/io.rst:586 +#: ../../library/io.rst:588 ../../library/io.rst:601 msgid "" -"Read and return up to *size* bytes, with at most one call to the underlying " -"raw stream's :meth:`~RawIOBase.read` (or :meth:`~RawIOBase.readinto`) " -"method. This can be useful if you are implementing your own buffering on " -"top of a :class:`BufferedIOBase` object." +"When the underlying raw stream is non-blocking, implementations may either " +"raise :exc:`BlockingIOError` or return ``None`` if no data is available. :" +"mod:`io` implementations return ``None``." msgstr "" -"根底の raw ストリームの :meth:`~RawIOBase.read` (または :meth:`~RawIOBase." -"readinto` ) メソッドを高々 1 回呼び出し、最大で *size* バイト読み込み、返しま" -"す。これは、 :class:`BufferedIOBase` オブジェクトの上に独自のバッファリングを" -"実装するときに便利です。" -#: ../../library/io.rst:592 +#: ../../library/io.rst:594 msgid "" -"If *size* is ``-1`` (the default), an arbitrary number of bytes are returned " -"(more than zero unless EOF is reached)." +"Read and return up to *size* bytes, calling :meth:`~RawIOBase.readinto` " +"which may retry if :py:const:`~errno.EINTR` is encountered per :pep:`475`. " +"If *size* is ``-1`` or not provided, the implementation will choose an " +"arbitrary value for *size*." msgstr "" -"*size* に ``-1`` (デフォルト値)を指定すると任意バイト長を返します(EOFに到達" -"していなければ返されるバイト数は 0 より大きくなります)" -#: ../../library/io.rst:597 +#: ../../library/io.rst:607 msgid "" "Read bytes into a pre-allocated, writable :term:`bytes-like object` *b* and " "return the number of bytes read. For example, *b* might be a :class:" @@ -1078,7 +1055,7 @@ msgstr "" "object>` *b* にバイト列を読み込み、読み込んだバイト数を返します。\n" "例えば、 *b* は :class:`bytearray` です。" -#: ../../library/io.rst:601 +#: ../../library/io.rst:611 msgid "" "Like :meth:`read`, multiple reads may be issued to the underlying raw " "stream, unless the latter is interactive." @@ -1086,7 +1063,15 @@ msgstr "" ":meth:`read` と同様に、下層の raw ストリームが対話的でない限り、複数の読み込" "みは下層の raw ストリームに与えられるかもしれません。" -#: ../../library/io.rst:609 +#: ../../library/io.rst:614 ../../library/io.rst:624 +msgid "" +"A :exc:`BlockingIOError` is raised if the underlying raw stream is in non " +"blocking-mode, and has no data available at the moment." +msgstr "" +"元になる生ストリームがノンブロッキングモードで、呼び出された時点でデータを" +"持っていなければ、 :exc:`BlockingIOError` が送出されます。" + +#: ../../library/io.rst:619 msgid "" "Read bytes into a pre-allocated, writable :term:`bytes-like object` *b*, " "using at most one call to the underlying raw stream's :meth:`~RawIOBase." @@ -1098,7 +1083,7 @@ msgstr "" "term:`bytes-like オブジェクト ` *b* にバイト列を読み込みま" "す。読み込んだバイト数を返します。" -#: ../../library/io.rst:621 +#: ../../library/io.rst:631 msgid "" "Write the given :term:`bytes-like object`, *b*, and return the number of " "bytes written (always equal to the length of *b* in bytes, since if the " @@ -1113,7 +1098,7 @@ msgstr "" "ともあれば、パフォーマンスやレイテンシの関係でバッファに保持されることもあり" "ます。" -#: ../../library/io.rst:628 +#: ../../library/io.rst:638 msgid "" "When in non-blocking mode, a :exc:`BlockingIOError` is raised if the data " "needed to be written to the raw stream but it couldn't accept all the data " @@ -1123,7 +1108,7 @@ msgstr "" "み時点でさらなるデータを受け付けられない場合 :exc:`BlockingIOError` が送出さ" "れます。" -#: ../../library/io.rst:632 +#: ../../library/io.rst:642 msgid "" "The caller may release or mutate *b* after this method returns, so the " "implementation should only access *b* during the method call." @@ -1131,21 +1116,21 @@ msgstr "" "このメソッドが戻った後で、呼び出し元は *b* を解放、または変更するかもしれない" "ので、実装はメソッド呼び出しの間だけ *b* にアクセスすべきです。" -#: ../../library/io.rst:637 +#: ../../library/io.rst:647 msgid "Raw File I/O" msgstr "生ファイルI/O" -#: ../../library/io.rst:641 +#: ../../library/io.rst:651 msgid "" "A raw binary stream representing an OS-level file containing bytes data. It " "inherits from :class:`RawIOBase`." msgstr "" -#: ../../library/io.rst:644 +#: ../../library/io.rst:654 msgid "The *name* can be one of two things:" msgstr "*name* は、次の 2 つのいずれかです。" -#: ../../library/io.rst:646 +#: ../../library/io.rst:656 msgid "" "a character string or :class:`bytes` object representing the path to the " "file which will be opened. In this case closefd must be ``True`` (the " @@ -1155,7 +1140,7 @@ msgstr "" "この場合、closefd は ``True`` (デフォルト) でなければなりません。\n" "``True`` でない場合、エラーが送出されます。" -#: ../../library/io.rst:649 +#: ../../library/io.rst:659 msgid "" "an integer representing the number of an existing OS-level file descriptor " "to which the resulting :class:`FileIO` object will give access. When the " @@ -1166,7 +1151,7 @@ msgstr "" "ル記述子の数を表す整数。FileIO オブジェクトが閉じられると、*closefd* が " "``False`` に設定されていない場合、この fd も閉じられます。" -#: ../../library/io.rst:654 +#: ../../library/io.rst:664 msgid "" "The *mode* can be ``'r'``, ``'w'``, ``'x'`` or ``'a'`` for reading " "(default), writing, exclusive creation or appending. The file will be " @@ -1184,14 +1169,14 @@ msgstr "" "じように振る舞います。読み込みと書き込みを同時に許可するにはモードに ``'+'`` " "を加えてください。" -#: ../../library/io.rst:662 +#: ../../library/io.rst:672 msgid "" "The :meth:`~RawIOBase.read` (when called with a positive argument), :meth:" "`~RawIOBase.readinto` and :meth:`~RawIOBase.write` methods on this class " "will only make one system call." msgstr "" -#: ../../library/io.rst:666 +#: ../../library/io.rst:676 msgid "" "A custom opener can be used by passing a callable as *opener*. The " "underlying file descriptor for the file object is then obtained by calling " @@ -1205,26 +1190,26 @@ msgstr "" "ルディスクリプタを返さなければなりません。 (:mod:`os.open` を *opener* として" "渡すと、``None`` を渡したのと同様の機能になります。)" -#: ../../library/io.rst:672 +#: ../../library/io.rst:682 msgid "The newly created file is :ref:`non-inheritable `." msgstr "新たに作成されたファイルは :ref:`継承不可 ` です。" -#: ../../library/io.rst:674 +#: ../../library/io.rst:684 msgid "" "See the :func:`open` built-in function for examples on using the *opener* " "parameter." msgstr "" "*opener* 引数を使う例については :func:`open` 組み込み関数を参照してください。" -#: ../../library/io.rst:677 +#: ../../library/io.rst:687 msgid "The *opener* parameter was added. The ``'x'`` mode was added." msgstr "*opener* 引数が追加されました。``'x'`` モードが追加されました。" -#: ../../library/io.rst:681 +#: ../../library/io.rst:691 msgid "The file is now non-inheritable." msgstr "ファイルが継承不可になりました。" -#: ../../library/io.rst:684 +#: ../../library/io.rst:694 msgid "" ":class:`FileIO` provides these data attributes in addition to those from :" "class:`RawIOBase` and :class:`IOBase`:" @@ -1232,11 +1217,11 @@ msgstr "" ":class:`FileIO` は :class:`RawIOBase` と :class:`IOBase` から継承したデータ属" "性に加えて以下のデータ属性を提供します:" -#: ../../library/io.rst:689 +#: ../../library/io.rst:699 msgid "The mode as given in the constructor." msgstr "コンストラクタに渡されたモードです。" -#: ../../library/io.rst:693 +#: ../../library/io.rst:703 msgid "" "The file name. This is the file descriptor of the file when no name is " "given in the constructor." @@ -1244,11 +1229,11 @@ msgstr "" "ファイル名。コンストラクタに名前が渡されなかったときはファイル記述子になりま" "す。" -#: ../../library/io.rst:698 +#: ../../library/io.rst:708 msgid "Buffered Streams" msgstr "バッファ付きストリーム" -#: ../../library/io.rst:700 +#: ../../library/io.rst:710 msgid "" "Buffered I/O streams provide a higher-level interface to an I/O device than " "raw I/O does." @@ -1256,14 +1241,14 @@ msgstr "" "バッファ付き I/O ストリームは、I/O デバイスに生 I/O より高レベルなインター" "フェースを提供します。" -#: ../../library/io.rst:705 +#: ../../library/io.rst:715 msgid "" "A binary stream using an in-memory bytes buffer. It inherits from :class:" "`BufferedIOBase`. The buffer is discarded when the :meth:`~IOBase.close` " "method is called." msgstr "" -#: ../../library/io.rst:709 +#: ../../library/io.rst:719 msgid "" "The optional argument *initial_bytes* is a :term:`bytes-like object` that " "contains initial data." @@ -1271,7 +1256,7 @@ msgstr "" "省略可能な引数 *initial_bytes* は、初期データを含んだ :term:`bytes-like オブ" "ジェクト ` です。" -#: ../../library/io.rst:712 +#: ../../library/io.rst:722 msgid "" ":class:`BytesIO` provides or overrides these methods in addition to those " "from :class:`BufferedIOBase` and :class:`IOBase`:" @@ -1279,7 +1264,7 @@ msgstr "" ":class:`BytesIO` は :class:`BufferedIOBase` または :class:`IOBase` からのメ" "ソッドに加えて、以下のメソッドを提供もしくはオーバーライドします:" -#: ../../library/io.rst:717 +#: ../../library/io.rst:727 msgid "" "Return a readable and writable view over the contents of the buffer without " "copying them. Also, mutating the view will transparently update the " @@ -1289,7 +1274,7 @@ msgstr "" "能なビューを返します。また、このビューを変更すると、バッファの内容は透過的に" "更新されます::" -#: ../../library/io.rst:721 +#: ../../library/io.rst:731 msgid "" ">>> b = io.BytesIO(b\"abcdef\")\n" ">>> view = b.getbuffer()\n" @@ -1298,7 +1283,7 @@ msgid "" "b'ab56ef'" msgstr "" -#: ../../library/io.rst:728 +#: ../../library/io.rst:738 msgid "" "As long as the view exists, the :class:`BytesIO` object cannot be resized or " "closed." @@ -1306,35 +1291,35 @@ msgstr "" "ビューが存在する限り、:class:`BytesIO` オブジェクトはリサイズやクローズされま" "せん。" -#: ../../library/io.rst:735 +#: ../../library/io.rst:745 msgid "Return :class:`bytes` containing the entire contents of the buffer." msgstr "バッファの全内容を含む :class:`bytes` を返します。" -#: ../../library/io.rst:740 +#: ../../library/io.rst:750 msgid "In :class:`BytesIO`, this is the same as :meth:`~BufferedIOBase.read`." msgstr "" ":class:`BytesIO` においては、このメソッドは :meth:`~BufferedIOBase.read` と同" "じです。" -#: ../../library/io.rst:742 ../../library/io.rst:790 +#: ../../library/io.rst:752 ../../library/io.rst:792 msgid "The *size* argument is now optional." msgstr "*size* 引数が任意になりました。" -#: ../../library/io.rst:747 +#: ../../library/io.rst:757 msgid "" "In :class:`BytesIO`, this is the same as :meth:`~BufferedIOBase.readinto`." msgstr "" ":class:`BytesIO` においては、このメソッドは :meth:`~BufferedIOBase.readinto` " "と同じです。" -#: ../../library/io.rst:753 +#: ../../library/io.rst:763 msgid "" "A buffered binary stream providing higher-level access to a readable, non " "seekable :class:`RawIOBase` raw binary stream. It inherits from :class:" "`BufferedIOBase`." msgstr "" -#: ../../library/io.rst:757 +#: ../../library/io.rst:767 msgid "" "When reading data from this object, a larger amount of data may be requested " "from the underlying raw stream, and kept in an internal buffer. The buffered " @@ -1345,7 +1330,7 @@ msgstr "" "保持されることがあります。バッファされたデータはその後の読み出し処理で直接返" "すことができます。" -#: ../../library/io.rst:761 +#: ../../library/io.rst:771 msgid "" "The constructor creates a :class:`BufferedReader` for the given readable " "*raw* stream and *buffer_size*. If *buffer_size* is omitted, :data:" @@ -1355,7 +1340,7 @@ msgstr "" "class:`BufferedReader` を生成します。 *buffer_size* が省略された場合、代わり" "に :data:`DEFAULT_BUFFER_SIZE` が使われます。" -#: ../../library/io.rst:765 +#: ../../library/io.rst:775 msgid "" ":class:`BufferedReader` provides or overrides these methods in addition to " "those from :class:`BufferedIOBase` and :class:`IOBase`:" @@ -1363,49 +1348,32 @@ msgstr "" ":class:`BufferedReader` は :class:`BufferedIOBase` または :class:`IOBase` か" "らのメソッドに加えて、以下のメソッドを提供もしくはオーバーライドします:" -#: ../../library/io.rst:770 +#: ../../library/io.rst:780 msgid "" -"Return bytes from the stream without advancing the position. At most one " -"single read on the raw stream is done to satisfy the call. The number of " -"bytes returned may be less or more than requested." +"Return bytes from the stream without advancing the position. The number of " +"bytes returned may be less or more than requested. If the underlying raw " +"stream is non-blocking and the operation would block, returns empty bytes." msgstr "" -"位置を進めずにストリームからバイト列を返します。これを果たすために生ストリー" -"ムに対して行われる read は高々一度だけです。返されるバイト数は、要求より少な" -"いかもしれませんし、多いかもしれません。" -#: ../../library/io.rst:776 +#: ../../library/io.rst:786 msgid "" -"Read and return *size* bytes, or if *size* is not given or negative, until " -"EOF or if the read call would block in non-blocking mode." +"In :class:`BufferedReader` this is the same as :meth:`io.BufferedIOBase.read`" msgstr "" -"*size* バイトを読み込んで返します。*size* が与えられないか負の値ならば、EOF " -"まで、または非ブロッキングモード中で read 呼び出しがブロックされるまでを返し" -"ます。" -#: ../../library/io.rst:781 ../../library/io.rst:795 ../../library/io.rst:1028 +#: ../../library/io.rst:790 msgid "" -"When the underlying raw stream is non-blocking, a :exc:`BlockingIOError` may " -"be raised if a read operation cannot be completed immediately." +"In :class:`BufferedReader` this is the same as :meth:`io.BufferedIOBase." +"read1`" msgstr "" -#: ../../library/io.rst:786 -msgid "" -"Read and return up to *size* bytes with only one call on the raw stream. If " -"at least one byte is buffered, only buffered bytes are returned. Otherwise, " -"one raw stream read call is made." -msgstr "" -"raw ストリームに対しただ一度の呼び出しで最大 *size* バイトを読み込んで返しま" -"す。少なくとも 1 バイトがバッファされていれば、バッファされているバイト列だけ" -"が返されます。それ以外の場合は raw ストリームの読み込みが一回呼び出されます。" - -#: ../../library/io.rst:800 +#: ../../library/io.rst:797 msgid "" "A buffered binary stream providing higher-level access to a writeable, non " "seekable :class:`RawIOBase` raw binary stream. It inherits from :class:" "`BufferedIOBase`." msgstr "" -#: ../../library/io.rst:804 +#: ../../library/io.rst:801 msgid "" "When writing to this object, data is normally placed into an internal " "buffer. The buffer will be written out to the underlying :class:`RawIOBase` " @@ -1415,26 +1383,26 @@ msgstr "" "置されます。バッファは以下に示すさまざまな条件で背後にある :class:" "`RawIOBase` オブジェクトに書き込まれます:" -#: ../../library/io.rst:808 +#: ../../library/io.rst:805 msgid "when the buffer gets too small for all pending data;" msgstr "保留中の全データに対してバッファが足りなくなったとき;" -#: ../../library/io.rst:809 +#: ../../library/io.rst:806 msgid "when :meth:`flush` is called;" msgstr "" -#: ../../library/io.rst:810 +#: ../../library/io.rst:807 msgid "" "when a :meth:`~IOBase.seek` is requested (for :class:`BufferedRandom` " "objects);" msgstr "" -#: ../../library/io.rst:811 +#: ../../library/io.rst:808 msgid "when the :class:`BufferedWriter` object is closed or destroyed." msgstr "" ":class:`BufferedWriter` オブジェクトが閉じられたり破棄されたりしたとき。" -#: ../../library/io.rst:813 +#: ../../library/io.rst:810 msgid "" "The constructor creates a :class:`BufferedWriter` for the given writeable " "*raw* stream. If the *buffer_size* is not given, it defaults to :data:" @@ -1444,7 +1412,7 @@ msgstr "" "`BufferedWriter` を生成します。 *buffer_size* が省略された場合、 :data:" "`DEFAULT_BUFFER_SIZE` がデフォルトになります。" -#: ../../library/io.rst:817 +#: ../../library/io.rst:814 msgid "" ":class:`BufferedWriter` provides or overrides these methods in addition to " "those from :class:`BufferedIOBase` and :class:`IOBase`:" @@ -1452,7 +1420,7 @@ msgstr "" ":class:`BufferedWriter` は :class:`BufferedIOBase` または :class:`IOBase` か" "らのメソッドに加えて、以下のメソッドを提供もしくはオーバーライドします:" -#: ../../library/io.rst:822 +#: ../../library/io.rst:819 msgid "" "Force bytes held in the buffer into the raw stream. A :exc:" "`BlockingIOError` should be raised if the raw stream blocks." @@ -1460,24 +1428,22 @@ msgstr "" "バッファに保持されたバイト列を生ストリームに強制的に流し込みます。生ストリー" "ムがブロックした場合 :exc:`BlockingIOError` が送出されます。" -#: ../../library/io.rst:827 +#: ../../library/io.rst:824 msgid "" "Write the :term:`bytes-like object`, *b*, and return the number of bytes " -"written. When in non-blocking mode, a :exc:`BlockingIOError` is raised if " -"the buffer needs to be written out but the raw stream blocks." +"written. When in non-blocking mode, a :exc:`BlockingIOError` with :attr:" +"`BlockingIOError.characters_written` set is raised if the buffer needs to be " +"written out but the raw stream blocks." msgstr "" -":term:`bytes-like オブジェクト ` *b* を書き込み、書き込ん" -"だバイト数を返します。ノンブロッキング時、バッファが書き込まれるべきなのに生" -"ストリームがブロックした場合 :exc:`BlockingIOError` が送出されます。" -#: ../../library/io.rst:835 +#: ../../library/io.rst:832 msgid "" "A buffered binary stream providing higher-level access to a seekable :class:" "`RawIOBase` raw binary stream. It inherits from :class:`BufferedReader` " "and :class:`BufferedWriter`." msgstr "" -#: ../../library/io.rst:839 +#: ../../library/io.rst:836 msgid "" "The constructor creates a reader and writer for a seekable raw stream, given " "in the first argument. If the *buffer_size* is omitted it defaults to :data:" @@ -1487,21 +1453,21 @@ msgstr "" "リーダーおよびライターを作成します。 *buffer_size* が省略された場合、 :data:" "`DEFAULT_BUFFER_SIZE` がデフォルトになります。" -#: ../../library/io.rst:843 +#: ../../library/io.rst:840 msgid "" ":class:`BufferedRandom` is capable of anything :class:`BufferedReader` or :" "class:`BufferedWriter` can do. In addition, :meth:`~IOBase.seek` and :meth:" "`~IOBase.tell` are guaranteed to be implemented." msgstr "" -#: ../../library/io.rst:850 +#: ../../library/io.rst:847 msgid "" "A buffered binary stream providing higher-level access to two non seekable :" "class:`RawIOBase` raw binary streams---one readable, the other writeable. It " "inherits from :class:`BufferedIOBase`." msgstr "" -#: ../../library/io.rst:854 +#: ../../library/io.rst:851 msgid "" "*reader* and *writer* are :class:`RawIOBase` objects that are readable and " "writeable respectively. If the *buffer_size* is omitted it defaults to :" @@ -1511,7 +1477,7 @@ msgstr "" "`RawIOBase` オブジェクトです。 *buffer_size* が省略された場合 :data:" "`DEFAULT_BUFFER_SIZE` がデフォルトになります。" -#: ../../library/io.rst:858 +#: ../../library/io.rst:855 msgid "" ":class:`BufferedRWPair` implements all of :class:`BufferedIOBase`\\'s " "methods except for :meth:`~BufferedIOBase.detach`, which raises :exc:" @@ -1521,7 +1487,7 @@ msgstr "" "`~BufferedIOBase.detach` を除く、 :class:`BufferedIOBase` の全てのメソッドを" "実装します。" -#: ../../library/io.rst:864 +#: ../../library/io.rst:861 msgid "" ":class:`BufferedRWPair` does not attempt to synchronize accesses to its " "underlying raw streams. You should not pass it the same object as reader " @@ -1531,13 +1497,13 @@ msgstr "" "ん。同じオブジェクトをリーダとライタとして渡してはいけません。その場合は代わ" "りに :class:`BufferedRandom` を使用してください。" -#: ../../library/io.rst:874 +#: ../../library/io.rst:871 msgid "" "Base class for text streams. This class provides a character and line based " "interface to stream I/O. It inherits from :class:`IOBase`." msgstr "" -#: ../../library/io.rst:877 +#: ../../library/io.rst:874 msgid "" ":class:`TextIOBase` provides or overrides these data attributes and methods " "in addition to those from :class:`IOBase`:" @@ -1545,7 +1511,7 @@ msgstr "" ":class:`IOBase` から継承した属性とメソッドに加えて、 :class:`TextIOBase` は以" "下のデータ属性とメソッドを提供しています:" -#: ../../library/io.rst:882 +#: ../../library/io.rst:879 msgid "" "The name of the encoding used to decode the stream's bytes into strings, and " "to encode strings into bytes." @@ -1553,11 +1519,11 @@ msgstr "" "エンコーディング名で、ストリームのバイト列を文字列にデコードするとき、また文" "字列をバイト列にエンコードするときに使われます。" -#: ../../library/io.rst:887 +#: ../../library/io.rst:884 msgid "The error setting of the decoder or encoder." msgstr "このエンコーダやデコーダのエラー設定です。" -#: ../../library/io.rst:891 +#: ../../library/io.rst:888 msgid "" "A string, a tuple of strings, or ``None``, indicating the newlines " "translated so far. Depending on the implementation and the initial " @@ -1567,23 +1533,20 @@ msgstr "" "を指定します。実装や内部コンストラクタのフラグに依って、これは利用できないこ" "とがあります。" -#: ../../library/io.rst:897 +#: ../../library/io.rst:894 msgid "" -"The underlying binary buffer (a :class:`BufferedIOBase` instance) that :" -"class:`TextIOBase` deals with. This is not part of the :class:`TextIOBase` " -"API and may not exist in some implementations." +"The underlying binary buffer (a :class:`BufferedIOBase` or :class:" +"`RawIOBase` instance) that :class:`TextIOBase` deals with. This is not part " +"of the :class:`TextIOBase` API and may not exist in some implementations." msgstr "" -":class:`TextIOBase` が扱う根底のバイナリバッファ (:class:`BufferedIOBase` イ" -"ンスタンス) です。これは :class:`TextIOBase` API には含まれず、よって実装に含" -"まれない場合があります。" -#: ../../library/io.rst:903 +#: ../../library/io.rst:901 msgid "" "Separate the underlying binary buffer from the :class:`TextIOBase` and " "return it." msgstr "根底のバイナリバッファを :class:`TextIOBase` から分離して返します。" -#: ../../library/io.rst:906 +#: ../../library/io.rst:904 msgid "" "After the underlying buffer has been detached, the :class:`TextIOBase` is in " "an unusable state." @@ -1591,7 +1554,7 @@ msgstr "" "根底のバッファが取り外された後、 :class:`TextIOBase` は使用不能状態になりま" "す。" -#: ../../library/io.rst:909 +#: ../../library/io.rst:907 msgid "" "Some :class:`TextIOBase` implementations, like :class:`StringIO`, may not " "have the concept of an underlying buffer and calling this method will raise :" @@ -1601,7 +1564,7 @@ msgstr "" "念を持たないものがあります。これらを呼び出すと :exc:`UnsupportedOperation` を" "送出します。" -#: ../../library/io.rst:917 +#: ../../library/io.rst:915 msgid "" "Read and return at most *size* characters from the stream as a single :class:" "`str`. If *size* is negative or ``None``, reads until EOF." @@ -1609,46 +1572,46 @@ msgstr "" "最大 *size* 文字をストリームから読み込み、一つの :class:`str` にして返しま" "す。 *size* が負の値または ``None`` ならば、 EOF まで読みます。" -#: ../../library/io.rst:922 +#: ../../library/io.rst:920 msgid "" "Read until newline or EOF and return a single :class:`str`. If the stream " "is already at EOF, an empty string is returned." msgstr "" -#: ../../library/io.rst:925 +#: ../../library/io.rst:923 msgid "If *size* is specified, at most *size* characters will be read." msgstr "*size* が指定された場合、最大 *size* 文字が読み込まれます。" -#: ../../library/io.rst:929 +#: ../../library/io.rst:927 msgid "" "Change the stream position to the given *offset*. Behaviour depends on the " "*whence* parameter. The default value for *whence* is :data:`!SEEK_SET`." msgstr "" -#: ../../library/io.rst:933 +#: ../../library/io.rst:931 msgid "" ":data:`!SEEK_SET` or ``0``: seek from the start of the stream (the default); " "*offset* must either be a number returned by :meth:`TextIOBase.tell`, or " "zero. Any other *offset* value produces undefined behaviour." msgstr "" -#: ../../library/io.rst:937 +#: ../../library/io.rst:935 msgid "" ":data:`!SEEK_CUR` or ``1``: \"seek\" to the current position; *offset* must " "be zero, which is a no-operation (all other values are unsupported)." msgstr "" -#: ../../library/io.rst:940 +#: ../../library/io.rst:938 msgid "" ":data:`!SEEK_END` or ``2``: seek to the end of the stream; *offset* must be " "zero (all other values are unsupported)." msgstr "" -#: ../../library/io.rst:943 +#: ../../library/io.rst:941 msgid "Return the new absolute position as an opaque number." msgstr "新しい絶対位置を、不透明な数値で返します。" -#: ../../library/io.rst:950 +#: ../../library/io.rst:948 msgid "" "Return the current stream position as an opaque number. The number does not " "usually represent a number of bytes in the underlying binary storage." @@ -1656,20 +1619,20 @@ msgstr "" "ストリームの現在位置を不透明な数値で返します。この値は根底のバイナリストレー" "ジ内でのバイト数を表すとは限りません。" -#: ../../library/io.rst:956 +#: ../../library/io.rst:954 msgid "" "Write the string *s* to the stream and return the number of characters " "written." msgstr "文字列 *s* をストリームに書き出し、書き出された文字数を返します。" -#: ../../library/io.rst:963 +#: ../../library/io.rst:961 msgid "" "A buffered text stream providing higher-level access to a :class:" "`BufferedIOBase` buffered binary stream. It inherits from :class:" "`TextIOBase`." msgstr "" -#: ../../library/io.rst:967 +#: ../../library/io.rst:965 msgid "" "*encoding* gives the name of the encoding that the stream will be decoded or " "encoded with. In :ref:`UTF-8 Mode `, this defaults to UTF-8. " @@ -1678,7 +1641,7 @@ msgid "" "explicitly. See :ref:`io-text-encoding` for more information." msgstr "" -#: ../../library/io.rst:973 +#: ../../library/io.rst:971 msgid "" "*errors* is an optional string that specifies how encoding and decoding " "errors are to be handled. Pass ``'strict'`` to raise a :exc:`ValueError` " @@ -1704,7 +1667,7 @@ msgstr "" "ケンスに置換) も使えます。他にも :func:`codecs.register_error` で登録されたエ" "ラー処理名が有効です。" -#: ../../library/io.rst:989 +#: ../../library/io.rst:987 msgid "" "*newline* controls how line endings are handled. It can be ``None``, " "``''``, ``'\\n'``, ``'\\r'``, and ``'\\r\\n'``. It works as follows:" @@ -1713,7 +1676,7 @@ msgstr "" "``'\\n'``, ``'\\r'``, ``'\\r\\n'`` のいずれかです。これは以下のように動作しま" "す:" -#: ../../library/io.rst:992 +#: ../../library/io.rst:990 msgid "" "When reading input from the stream, if *newline* is ``None``, :term:" "`universal newlines` mode is enabled. Lines in the input can end in " @@ -1732,7 +1695,7 @@ msgstr "" "し元に返されます。 *newline* がその他の有効な値の場合は、入力行は与えられた文" "字列のみで終端され、行末は変換されずに呼び出し元に返されます。" -#: ../../library/io.rst:1001 +#: ../../library/io.rst:999 msgid "" "When writing output to the stream, if *newline* is ``None``, any ``'\\n'`` " "characters written are translated to the system default line separator, :" @@ -1746,13 +1709,13 @@ msgstr "" "*newline* がその他の正当な値の場合、全ての ``'\\n'`` 文字は与えられた文字列に" "変換されます。" -#: ../../library/io.rst:1007 +#: ../../library/io.rst:1005 msgid "" "If *line_buffering* is ``True``, :meth:`~IOBase.flush` is implied when a " "call to write contains a newline character or a carriage return." msgstr "" -#: ../../library/io.rst:1010 +#: ../../library/io.rst:1008 msgid "" "If *write_through* is ``True``, calls to :meth:`~BufferedIOBase.write` are " "guaranteed not to be buffered: any data written on the :class:" @@ -1760,11 +1723,11 @@ msgid "" "*buffer*." msgstr "" -#: ../../library/io.rst:1014 +#: ../../library/io.rst:1012 msgid "The *write_through* argument has been added." msgstr "*write_through* 引数が追加されました。" -#: ../../library/io.rst:1017 +#: ../../library/io.rst:1015 msgid "" "The default *encoding* is now ``locale.getpreferredencoding(False)`` instead " "of ``locale.getpreferredencoding()``. Don't change temporary the locale " @@ -1777,12 +1740,18 @@ msgstr "" "はいけません。ユーザが望むエンコーディングではなく現在のロケールのエンコー" "ディングを使用してください。" -#: ../../library/io.rst:1023 +#: ../../library/io.rst:1021 msgid "" "The *encoding* argument now supports the ``\"locale\"`` dummy encoding name." msgstr "" -#: ../../library/io.rst:1031 +#: ../../library/io.rst:1026 +msgid "" +"When the underlying raw stream is non-blocking, a :exc:`BlockingIOError` may " +"be raised if a read operation cannot be completed immediately." +msgstr "" + +#: ../../library/io.rst:1029 msgid "" ":class:`TextIOWrapper` provides these data attributes and methods in " "addition to those from :class:`TextIOBase` and :class:`IOBase`:" @@ -1790,15 +1759,15 @@ msgstr "" ":class:`TextIOWrapper` は :class:`TextIOBase` と :class:`IOBase` から継承した" "ものに加えて以下のデータ属性をメソッドを提供します:" -#: ../../library/io.rst:1036 +#: ../../library/io.rst:1034 msgid "Whether line buffering is enabled." msgstr "行バッファリングが有効かどうか。" -#: ../../library/io.rst:1040 +#: ../../library/io.rst:1038 msgid "Whether writes are passed immediately to the underlying binary buffer." msgstr "書き込みが、根柢のバイナリバッファに即座に渡されるかどうか。" -#: ../../library/io.rst:1048 +#: ../../library/io.rst:1046 msgid "" "Reconfigure this text stream using new settings for *encoding*, *errors*, " "*newline*, *line_buffering* and *write_through*." @@ -1806,7 +1775,7 @@ msgstr "" "このテキストストリームを *encoding*, *errors*, *newline*, *line_buffering* " "と *write_through* を新しい設定として再設定します。" -#: ../../library/io.rst:1051 +#: ../../library/io.rst:1049 msgid "" "Parameters not specified keep current settings, except ``errors='strict'`` " "is used when *encoding* is specified but *errors* is not specified." @@ -1815,7 +1784,7 @@ msgstr "" "``errors='strict'`` が使われている場合を除き、指定されなかったパラメータは現" "在の設定が保持されます。" -#: ../../library/io.rst:1055 +#: ../../library/io.rst:1053 msgid "" "It is not possible to change the encoding or newline if some data has " "already been read from the stream. On the other hand, changing encoding " @@ -1824,73 +1793,73 @@ msgstr "" "ストリームからすでにデータが読み出されていた場合、encodingとnewlineは変更でき" "ません。一方で、書き込み後にencodingを変更することはできます。" -#: ../../library/io.rst:1059 +#: ../../library/io.rst:1057 msgid "" "This method does an implicit stream flush before setting the new parameters." msgstr "" "このメソッドは、新しい設定を適用するまえにストリームをフラッシュします。" -#: ../../library/io.rst:1064 +#: ../../library/io.rst:1062 msgid "The method supports ``encoding=\"locale\"`` option." msgstr "" -#: ../../library/io.rst:1069 +#: ../../library/io.rst:1067 msgid "" "Set the stream position. Return the new stream position as an :class:`int`." msgstr "" -#: ../../library/io.rst:1072 +#: ../../library/io.rst:1070 msgid "" "Four operations are supported, given by the following argument combinations:" msgstr "" -#: ../../library/io.rst:1075 +#: ../../library/io.rst:1073 msgid "``seek(0, SEEK_SET)``: Rewind to the start of the stream." msgstr "" -#: ../../library/io.rst:1076 +#: ../../library/io.rst:1074 msgid "" "``seek(cookie, SEEK_SET)``: Restore a previous position; *cookie* **must " "be** a number returned by :meth:`tell`." msgstr "" -#: ../../library/io.rst:1078 +#: ../../library/io.rst:1076 msgid "``seek(0, SEEK_END)``: Fast-forward to the end of the stream." msgstr "" -#: ../../library/io.rst:1079 +#: ../../library/io.rst:1077 msgid "``seek(0, SEEK_CUR)``: Leave the current stream position unchanged." msgstr "" -#: ../../library/io.rst:1081 +#: ../../library/io.rst:1079 msgid "Any other argument combinations are invalid, and may raise exceptions." msgstr "" -#: ../../library/io.rst:1086 +#: ../../library/io.rst:1084 msgid ":data:`os.SEEK_SET`, :data:`os.SEEK_CUR`, and :data:`os.SEEK_END`." msgstr "" -#: ../../library/io.rst:1090 +#: ../../library/io.rst:1088 msgid "" "Return the stream position as an opaque number. The return value of :meth:`!" "tell` can be given as input to :meth:`seek`, to restore a previous stream " "position." msgstr "" -#: ../../library/io.rst:1097 +#: ../../library/io.rst:1095 msgid "" "A text stream using an in-memory text buffer. It inherits from :class:" "`TextIOBase`." msgstr "" -#: ../../library/io.rst:1100 +#: ../../library/io.rst:1098 msgid "" "The text buffer is discarded when the :meth:`~IOBase.close` method is called." msgstr "" "テキストバッファは :meth:`~IOBase.close` メソッドが呼び出されたときに破棄され" "ます。" -#: ../../library/io.rst:1103 +#: ../../library/io.rst:1101 msgid "" "The initial value of the buffer can be set by providing *initial_value*. If " "newline translation is enabled, newlines will be encoded as if by :meth:" @@ -1902,7 +1871,7 @@ msgid "" "at the end of the buffer." msgstr "" -#: ../../library/io.rst:1112 +#: ../../library/io.rst:1110 msgid "" "The *newline* argument works like that of :class:`TextIOWrapper`, except " "that when writing output to the stream, if *newline* is ``None``, newlines " @@ -1912,7 +1881,7 @@ msgstr "" "だし、出力をストリームに書き込む時に *newline* が ``None`` の場合には、改行は" "全てのプラットフォームで ``\\n`` になります。" -#: ../../library/io.rst:1116 +#: ../../library/io.rst:1114 msgid "" ":class:`StringIO` provides this method in addition to those from :class:" "`TextIOBase` and :class:`IOBase`:" @@ -1920,18 +1889,18 @@ msgstr "" ":class:`TextIOBase` と :class:`IOBase` から継承したメソッドに加えて :class:" "`StringIO` は以下のメソッドを提供しています:" -#: ../../library/io.rst:1121 +#: ../../library/io.rst:1119 msgid "" "Return a :class:`str` containing the entire contents of the buffer. Newlines " "are decoded as if by :meth:`~TextIOBase.read`, although the stream position " "is not changed." msgstr "" -#: ../../library/io.rst:1125 +#: ../../library/io.rst:1123 msgid "Example usage::" msgstr "使用例::" -#: ../../library/io.rst:1127 +#: ../../library/io.rst:1125 msgid "" "import io\n" "\n" @@ -1948,85 +1917,85 @@ msgid "" "output.close()" msgstr "" -#: ../../library/io.rst:1147 +#: ../../library/io.rst:1145 msgid "" "A helper codec that decodes newlines for :term:`universal newlines` mode. It " "inherits from :class:`codecs.IncrementalDecoder`." msgstr "" -#: ../../library/io.rst:1152 +#: ../../library/io.rst:1150 msgid "Static Typing" msgstr "" -#: ../../library/io.rst:1154 +#: ../../library/io.rst:1152 msgid "" "The following protocols can be used for annotating function and method " "arguments for simple stream reading or writing operations. They are " "decorated with :deco:`typing.runtime_checkable`." msgstr "" -#: ../../library/io.rst:1160 +#: ../../library/io.rst:1158 msgid "" "Generic protocol for reading from a file or other input stream. ``T`` will " "usually be :class:`str` or :class:`bytes`, but can be any type that is read " "from the stream." msgstr "" -#: ../../library/io.rst:1169 +#: ../../library/io.rst:1167 msgid "" "Read data from the input stream and return it. If *size* is specified, it " "should be an integer, and at most *size* items (bytes/characters) will be " "read." msgstr "" -#: ../../library/io.rst:1173 ../../library/io.rst:1192 +#: ../../library/io.rst:1171 ../../library/io.rst:1190 msgid "For example::" msgstr "例えば::" -#: ../../library/io.rst:1175 +#: ../../library/io.rst:1173 msgid "" "def read_it(reader: Reader[str]):\n" " data = reader.read(11)\n" " assert isinstance(data, str)" msgstr "" -#: ../../library/io.rst:1181 +#: ../../library/io.rst:1179 msgid "" "Generic protocol for writing to a file or other output stream. ``T`` will " "usually be :class:`str` or :class:`bytes`, but can be any type that can be " "written to the stream." msgstr "" -#: ../../library/io.rst:1189 +#: ../../library/io.rst:1187 msgid "" "Write *data* to the output stream and return the number of items (bytes/" "characters) written." msgstr "" -#: ../../library/io.rst:1194 +#: ../../library/io.rst:1192 msgid "" "def write_binary(writer: Writer[bytes]):\n" " writer.write(b\"Hello world!\\n\")" msgstr "" -#: ../../library/io.rst:1197 +#: ../../library/io.rst:1195 msgid "" "See :ref:`typing-io` for other I/O related protocols and classes that can be " "used for static type checking." msgstr "" -#: ../../library/io.rst:1201 +#: ../../library/io.rst:1199 msgid "Performance" msgstr "性能" -#: ../../library/io.rst:1203 +#: ../../library/io.rst:1201 msgid "" "This section discusses the performance of the provided concrete I/O " "implementations." msgstr "" "このセクションでは与えられた具体的な I/O 実装の性能について議論します。" -#: ../../library/io.rst:1209 +#: ../../library/io.rst:1207 msgid "" "By reading and writing only large chunks of data even when the user asks for " "a single byte, buffered I/O hides any inefficiency in calling and executing " @@ -2048,7 +2017,7 @@ msgstr "" "は、バッファ無し I/O を使用するより、バッファ付きの I/O を使用するほうが望ま" "しい場合がほとんどです。" -#: ../../library/io.rst:1221 +#: ../../library/io.rst:1219 msgid "" "Text I/O over a binary storage (such as a file) is significantly slower than " "binary I/O over the same storage, because it requires conversions between " @@ -2058,7 +2027,7 @@ msgid "" "the reconstruction algorithm used." msgstr "" -#: ../../library/io.rst:1228 +#: ../../library/io.rst:1226 msgid "" ":class:`StringIO`, however, is a native in-memory unicode container and will " "exhibit similar speed to :class:`BytesIO`." @@ -2066,18 +2035,18 @@ msgstr "" "しかし :class:`StringIO` は、ネイティブなインメモリ Unicode コンテナで、 :" "class:`BytesIO` と同程度の速度を示します。" -#: ../../library/io.rst:1232 +#: ../../library/io.rst:1230 msgid "Multi-threading" msgstr "マルチスレッディング" -#: ../../library/io.rst:1234 +#: ../../library/io.rst:1232 msgid "" ":class:`FileIO` objects are thread-safe to the extent that the operating " "system calls (such as :manpage:`read(2)` under Unix) they wrap are thread-" "safe too." msgstr "" -#: ../../library/io.rst:1237 +#: ../../library/io.rst:1235 msgid "" "Binary buffered objects (instances of :class:`BufferedReader`, :class:" "`BufferedWriter`, :class:`BufferedRandom` and :class:`BufferedRWPair`) " @@ -2089,15 +2058,15 @@ msgstr "" "ンスタンス) は、その内部構造をロックを使って保護します。このため、これらを複" "数のスレッドから同時に呼び出しても安全です。" -#: ../../library/io.rst:1242 +#: ../../library/io.rst:1240 msgid ":class:`TextIOWrapper` objects are not thread-safe." msgstr ":class:`TextIOWrapper` オブジェクトはスレッドセーフではありません。" -#: ../../library/io.rst:1245 +#: ../../library/io.rst:1243 msgid "Reentrancy" msgstr "リエントラント性" -#: ../../library/io.rst:1247 +#: ../../library/io.rst:1245 msgid "" "Binary buffered objects (instances of :class:`BufferedReader`, :class:" "`BufferedWriter`, :class:`BufferedRandom` and :class:`BufferedRWPair`) are " @@ -2116,7 +2085,7 @@ msgstr "" "ファ付きオブジェクトに複数のスレッドから入ることを禁止するわけではありませ" "ん。" -#: ../../library/io.rst:1255 +#: ../../library/io.rst:1253 msgid "" "The above implicitly extends to text files, since the :func:`open` function " "will wrap a buffered object inside a :class:`TextIOWrapper`. This includes " @@ -2132,14 +2101,14 @@ msgstr "file object" msgid "io module" msgstr "io module" -#: ../../library/io.rst:986 ../../library/io.rst:1142 +#: ../../library/io.rst:984 ../../library/io.rst:1140 msgid "universal newlines" msgstr "universal newlines" -#: ../../library/io.rst:986 +#: ../../library/io.rst:984 msgid "io.TextIOWrapper class" msgstr "io.TextIOWrapper class" -#: ../../library/io.rst:1142 +#: ../../library/io.rst:1140 msgid "io.IncrementalNewlineDecoder class" msgstr "io.IncrementalNewlineDecoder class" diff --git a/library/ipaddress.po b/library/ipaddress.po index bcbaa46e3..d8c6fae60 100644 --- a/library/ipaddress.po +++ b/library/ipaddress.po @@ -20,10 +20,10 @@ msgstr "" "Last-Translator: 石井明久, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../library/ipaddress.rst:2 diff --git a/library/ipc.po b/library/ipc.po index e628754f4..bcc0c098d 100644 --- a/library/ipc.po +++ b/library/ipc.po @@ -16,10 +16,10 @@ msgstr "" "Last-Translator: tomo, 2021\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../library/ipc.rst:5 diff --git a/library/itertools.po b/library/itertools.po index e39e2210c..cfe29630a 100644 --- a/library/itertools.po +++ b/library/itertools.po @@ -23,10 +23,10 @@ msgstr "" "Last-Translator: tomo, 2025\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../library/itertools.rst:2 diff --git a/library/json.po b/library/json.po index d6b24c1ce..b5f827191 100644 --- a/library/json.po +++ b/library/json.po @@ -16,15 +16,15 @@ msgid "" msgstr "" "Project-Id-Version: Python 3.14\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2025-05-08 02:53-0300\n" +"POT-Creation-Date: 2025-05-23 14:20+0000\n" "PO-Revision-Date: 2021-06-28 01:08+0000\n" "Last-Translator: tomo, 2025\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../library/json.rst:2 @@ -47,6 +47,13 @@ msgstr "" #: ../../library/json.rst:22 msgid "" +"The term \"object\" in the context of JSON processing in Python can be " +"ambiguous. All values in Python are objects. In JSON, an object refers to " +"any data wrapped in curly braces, similar to a Python dictionary." +msgstr "" + +#: ../../library/json.rst:27 +msgid "" "Be cautious when parsing JSON data from untrusted sources. A malicious JSON " "string may cause the decoder to consume considerable CPU and memory " "resources. Limiting the size of data to be parsed is recommended." @@ -55,19 +62,17 @@ msgstr "" "い。悪意を持った JSON 文字列はデコーダに著しい量の CPU とメモリリソースを消費" "させる可能性があります。パースするデータ量を制限することを推奨します。" -#: ../../library/json.rst:26 +#: ../../library/json.rst:31 msgid "" -":mod:`json` exposes an API familiar to users of the standard library :mod:" +"This module exposes an API familiar to users of the standard library :mod:" "`marshal` and :mod:`pickle` modules." msgstr "" -":mod:`json` の API は標準ライブラリの :mod:`marshal` や :mod:`pickle` のユー" -"ザに馴染み深いものです。" -#: ../../library/json.rst:29 +#: ../../library/json.rst:34 msgid "Encoding basic Python object hierarchies::" msgstr "基本的な Python オブジェクト階層のエンコーディング::" -#: ../../library/json.rst:31 +#: ../../library/json.rst:36 msgid "" ">>> import json\n" ">>> json.dumps(['foo', {'bar': ('baz', None, 1.0, 2)}])\n" @@ -87,22 +92,22 @@ msgid "" "'[\"streaming API\"]'" msgstr "" -#: ../../library/json.rst:48 +#: ../../library/json.rst:53 msgid "Compact encoding::" msgstr "コンパクトなエンコーディング::" -#: ../../library/json.rst:50 +#: ../../library/json.rst:55 msgid "" ">>> import json\n" ">>> json.dumps([1, 2, 3, {'4': 5, '6': 7}], separators=(',', ':'))\n" "'[1,2,3,{\"4\":5,\"6\":7}]'" msgstr "" -#: ../../library/json.rst:54 +#: ../../library/json.rst:59 msgid "Pretty printing::" msgstr "見やすい表示::" -#: ../../library/json.rst:56 +#: ../../library/json.rst:61 msgid "" ">>> import json\n" ">>> print(json.dumps({'6': 7, '4': 5}, sort_keys=True, indent=4))\n" @@ -112,11 +117,11 @@ msgid "" "}" msgstr "" -#: ../../library/json.rst:63 -msgid "Specializing JSON object encoding::" -msgstr "JSON オブジェクトのエンコーディングに特化する::" +#: ../../library/json.rst:68 +msgid "Customizing JSON object encoding::" +msgstr "" -#: ../../library/json.rst:65 +#: ../../library/json.rst:70 msgid "" ">>> import json\n" ">>> def custom_json(obj):\n" @@ -129,11 +134,11 @@ msgid "" "'{\"__complex__\": true, \"real\": 1.0, \"imag\": 2.0}'" msgstr "" -#: ../../library/json.rst:74 +#: ../../library/json.rst:79 msgid "Decoding JSON::" msgstr "JSON のデコーディング::" -#: ../../library/json.rst:76 +#: ../../library/json.rst:81 msgid "" ">>> import json\n" ">>> json.loads('[\"foo\", {\"bar\":[\"baz\", null, 1.0, 2]}]')\n" @@ -146,11 +151,11 @@ msgid "" "['streaming API']" msgstr "" -#: ../../library/json.rst:86 -msgid "Specializing JSON object decoding::" -msgstr "JSON オブジェクトのデコーディング方法を誂える::" +#: ../../library/json.rst:91 +msgid "Customizing JSON object decoding::" +msgstr "" -#: ../../library/json.rst:88 +#: ../../library/json.rst:93 msgid "" ">>> import json\n" ">>> def as_complex(dct):\n" @@ -166,11 +171,11 @@ msgid "" "Decimal('1.1')" msgstr "" -#: ../../library/json.rst:101 +#: ../../library/json.rst:106 msgid "Extending :class:`JSONEncoder`::" msgstr ":class:`JSONEncoder` の拡張::" -#: ../../library/json.rst:103 +#: ../../library/json.rst:108 msgid "" ">>> import json\n" ">>> class ComplexEncoder(json.JSONEncoder):\n" @@ -188,11 +193,11 @@ msgid "" "['[2.0', ', 1.0', ']']" msgstr "" -#: ../../library/json.rst:119 +#: ../../library/json.rst:124 msgid "Using :mod:`json` from the shell to validate and pretty-print:" msgstr "" -#: ../../library/json.rst:121 +#: ../../library/json.rst:126 msgid "" "$ echo '{\"json\":\"obj\"}' | python -m json\n" "{\n" @@ -202,11 +207,11 @@ msgid "" "Expecting property name enclosed in double quotes: line 1 column 2 (char 1)" msgstr "" -#: ../../library/json.rst:130 +#: ../../library/json.rst:135 msgid "See :ref:`json-commandline` for detailed documentation." msgstr "詳細については :ref:`json-commandline` を参照してください。" -#: ../../library/json.rst:134 +#: ../../library/json.rst:139 msgid "" "JSON is a subset of `YAML `_ 1.2. The JSON produced by " "this module's default settings (in particular, the default *separators* " @@ -218,7 +223,7 @@ msgstr "" "1.0 および 1.1 のサブセットでもあります。このモジュールは YAML シリアライザと" "しても使えます。" -#: ../../library/json.rst:141 +#: ../../library/json.rst:146 msgid "" "This module's encoders and decoders preserve input and output order by " "default. Order is only lost if the underlying containers are unordered." @@ -226,18 +231,18 @@ msgstr "" "このモジュールのエンコーダとデコーダは、デフォルトで入力順と出力順を保つよう" "になっています。根底のコンテナに順序がない場合のみ、順序が失われます。" -#: ../../library/json.rst:146 +#: ../../library/json.rst:151 msgid "Basic Usage" msgstr "基本的な使い方" -#: ../../library/json.rst:153 +#: ../../library/json.rst:158 msgid "" "Serialize *obj* as a JSON formatted stream to *fp* (a ``.write()``-" "supporting :term:`file-like object`) using this :ref:`Python-to-JSON " "conversion table `." msgstr "" -#: ../../library/json.rst:159 +#: ../../library/json.rst:164 msgid "" "Unlike :mod:`pickle` and :mod:`marshal`, JSON is not a framed protocol, so " "trying to serialize multiple objects with repeated calls to :func:`dump` " @@ -251,39 +256,39 @@ msgstr "" msgid "Parameters" msgstr "パラメーター" -#: ../../library/json.rst:163 +#: ../../library/json.rst:168 msgid "The Python object to be serialized." msgstr "" -#: ../../library/json.rst:166 +#: ../../library/json.rst:171 msgid "" "The file-like object *obj* will be serialized to. The :mod:`!json` module " "always produces :class:`str` objects, not :class:`bytes` objects, therefore " "``fp.write()`` must support :class:`str` input." msgstr "" -#: ../../library/json.rst:173 +#: ../../library/json.rst:178 msgid "" "If ``True``, keys that are not of a basic type (:class:`str`, :class:`int`, :" "class:`float`, :class:`bool`, ``None``) will be skipped instead of raising " "a :exc:`TypeError`. Default ``False``." msgstr "" -#: ../../library/json.rst:179 +#: ../../library/json.rst:184 msgid "" "If ``True`` (the default), the output is guaranteed to have all incoming non-" "ASCII characters escaped. If ``False``, these characters will be outputted " "as-is." msgstr "" -#: ../../library/json.rst:184 +#: ../../library/json.rst:189 msgid "" "If ``False``, the circular reference check for container types is skipped " "and a circular reference will result in a :exc:`RecursionError` (or worse). " "Default ``True``." msgstr "" -#: ../../library/json.rst:189 +#: ../../library/json.rst:194 msgid "" "If ``False``, serialization of out-of-range :class:`float` values (``nan``, " "``inf``, ``-inf``) will result in a :exc:`ValueError`, in strict compliance " @@ -291,14 +296,14 @@ msgid "" "equivalents (``NaN``, ``Infinity``, ``-Infinity``) are used." msgstr "" -#: ../../library/json.rst:196 +#: ../../library/json.rst:201 msgid "" "If set, a custom JSON encoder with the :meth:`~JSONEncoder.default` method " "overridden, for serializing into custom datatypes. If ``None`` (the " "default), :class:`!JSONEncoder` is used." msgstr "" -#: ../../library/json.rst:203 +#: ../../library/json.rst:208 msgid "" "If a positive integer or string, JSON array elements and object members will " "be pretty-printed with that indent level. A positive integer indents that " @@ -307,7 +312,7 @@ msgid "" "inserted. If ``None`` (the default), the most compact representation is used." msgstr "" -#: ../../library/json.rst:213 +#: ../../library/json.rst:218 msgid "" "A two-tuple: ``(item_separator, key_separator)``. If ``None`` (the default), " "*separators* defaults to ``(', ', ': ')`` if *indent* is ``None``, and " @@ -315,35 +320,35 @@ msgid "" "to eliminate whitespace." msgstr "" -#: ../../library/json.rst:222 +#: ../../library/json.rst:227 msgid "" "A function that is called for objects that can't otherwise be serialized. It " "should return a JSON encodable version of the object or raise a :exc:" "`TypeError`. If ``None`` (the default), :exc:`!TypeError` is raised." msgstr "" -#: ../../library/json.rst:229 +#: ../../library/json.rst:234 msgid "" "If ``True``, dictionaries will be outputted sorted by key. Default ``False``." msgstr "" -#: ../../library/json.rst:233 ../../library/json.rst:518 +#: ../../library/json.rst:238 ../../library/json.rst:523 msgid "Allow strings for *indent* in addition to integers." msgstr "整数に加えて、文字列が *indent* に使用できるようになりました。" -#: ../../library/json.rst:236 ../../library/json.rst:526 +#: ../../library/json.rst:241 ../../library/json.rst:531 msgid "Use ``(',', ': ')`` as default if *indent* is not ``None``." msgstr "" "*indent* が ``None`` でなければ ``(',', ': ')`` がデフォルトで使われます。" -#: ../../library/json.rst:239 ../../library/json.rst:338 +#: ../../library/json.rst:244 ../../library/json.rst:343 msgid "" "All optional parameters are now :ref:`keyword-only `." msgstr "" "すべてのオプション引数は、 :ref:`キーワード専用 ` に" "なりました。 " -#: ../../library/json.rst:248 +#: ../../library/json.rst:253 msgid "" "Serialize *obj* to a JSON formatted :class:`str` using this :ref:`conversion " "table `. The arguments have the same meaning as in :func:" @@ -352,7 +357,7 @@ msgstr "" "この :ref:`変換表 ` を使って、*obj* を JSON 形式の :class:" "`str` オブジェクトに直列化します。引数は :func:`dump` と同じ意味です。" -#: ../../library/json.rst:254 +#: ../../library/json.rst:259 msgid "" "Keys in key/value pairs of JSON are always of the type :class:`str`. When a " "dictionary is converted into JSON, all the keys of the dictionary are " @@ -366,44 +371,44 @@ msgstr "" "りません。つまり文字列ではないキーを持っている場合、 ``loads(dumps(x)) != " "x`` となるということです。" -#: ../../library/json.rst:265 +#: ../../library/json.rst:270 msgid "" "Deserialize *fp* to a Python object using the :ref:`JSON-to-Python " "conversion table `." msgstr "" -#: ../../library/json.rst:268 +#: ../../library/json.rst:273 msgid "" "A ``.read()``-supporting :term:`text file` or :term:`binary file` containing " "the JSON document to be deserialized." msgstr "" -#: ../../library/json.rst:273 +#: ../../library/json.rst:278 msgid "" "If set, a custom JSON decoder. Additional keyword arguments to :func:`!load` " "will be passed to the constructor of *cls*. If ``None`` (the default), :" "class:`!JSONDecoder` is used." msgstr "" -#: ../../library/json.rst:280 +#: ../../library/json.rst:285 msgid "" -"If set, a function that is called with the result of any object literal " +"If set, a function that is called with the result of any JSON object literal " "decoded (a :class:`dict`). The return value of this function will be used " "instead of the :class:`dict`. This feature can be used to implement custom " "decoders, for example `JSON-RPC `_ class hinting. " "Default ``None``." msgstr "" -#: ../../library/json.rst:290 +#: ../../library/json.rst:295 msgid "" -"If set, a function that is called with the result of any object literal " +"If set, a function that is called with the result of any JSON object literal " "decoded with an ordered list of pairs. The return value of this function " "will be used instead of the :class:`dict`. This feature can be used to " "implement custom decoders. If *object_hook* is also set, *object_pairs_hook* " "takes priority. Default ``None``." msgstr "" -#: ../../library/json.rst:300 +#: ../../library/json.rst:305 msgid "" "If set, a function that is called with the string of every JSON float to be " "decoded. If ``None`` (the default), it is equivalent to ``float(num_str)``. " @@ -411,7 +416,7 @@ msgid "" "class:`decimal.Decimal`." msgstr "" -#: ../../library/json.rst:308 +#: ../../library/json.rst:313 msgid "" "If set, a function that is called with the string of every JSON int to be " "decoded. If ``None`` (the default), it is equivalent to ``int(num_str)``. " @@ -419,7 +424,7 @@ msgid "" "class:`float`." msgstr "" -#: ../../library/json.rst:316 +#: ../../library/json.rst:321 msgid "" "If set, a function that is called with one of the following strings: ``'-" "Infinity'``, ``'Infinity'``, or ``'NaN'``. This can be used to raise an " @@ -430,25 +435,25 @@ msgstr "" msgid "Raises" msgstr "" -#: ../../library/json.rst:324 +#: ../../library/json.rst:329 msgid "When the data being deserialized is not a valid JSON document." msgstr "" -#: ../../library/json.rst:327 +#: ../../library/json.rst:332 msgid "" "When the data being deserialized does not contain UTF-8, UTF-16 or UTF-32 " "encoded data." msgstr "" -#: ../../library/json.rst:333 +#: ../../library/json.rst:338 msgid "Added the optional *object_pairs_hook* parameter." msgstr "" -#: ../../library/json.rst:334 +#: ../../library/json.rst:339 msgid "*parse_constant* doesn't get called on 'null', 'true', 'false' anymore." msgstr "'null', 'true', 'false' に対して *parse_constant* は呼びされません。" -#: ../../library/json.rst:339 +#: ../../library/json.rst:344 msgid "" "*fp* can now be a :term:`binary file`. The input encoding should be UTF-8, " "UTF-16 or UTF-32." @@ -456,7 +461,7 @@ msgstr "" "*fp* には :term:`binary file` 型も使えるようになりました。入力のエンコーディ" "ングは UTF-8, UTF-16, UTF-32 のいずれかでなければなりません。" -#: ../../library/json.rst:342 +#: ../../library/json.rst:347 msgid "" "The default *parse_int* of :func:`int` now limits the maximum length of the " "integer string via the interpreter's :ref:`integer string conversion length " @@ -466,7 +471,7 @@ msgstr "" "`integer string conversion length limitation ` により整数" "文字列の最大長を制限するようになり、サービスを妨害する攻撃を拒否します。" -#: ../../library/json.rst:350 +#: ../../library/json.rst:355 msgid "" "Identical to :func:`load`, but instead of a file-like object, deserialize " "*s* (a :class:`str`, :class:`bytes` or :class:`bytearray` instance " @@ -474,7 +479,7 @@ msgid "" "table `." msgstr "" -#: ../../library/json.rst:355 +#: ../../library/json.rst:360 msgid "" "*s* can now be of type :class:`bytes` or :class:`bytearray`. The input " "encoding should be UTF-8, UTF-16 or UTF-32." @@ -483,95 +488,95 @@ msgstr "" "た。\n" "入力エンコーディングは UTF-8, UTF-16, UTF-32 のいずれかでなければなりません。" -#: ../../library/json.rst:359 +#: ../../library/json.rst:364 msgid "The keyword argument *encoding* has been removed." msgstr "キーワード引数 *encoding* が削除されました。" -#: ../../library/json.rst:364 +#: ../../library/json.rst:369 msgid "Encoders and Decoders" msgstr "エンコーダとデコーダ" -#: ../../library/json.rst:368 +#: ../../library/json.rst:373 msgid "Simple JSON decoder." msgstr "単純な JSON デコーダ。" -#: ../../library/json.rst:370 +#: ../../library/json.rst:375 msgid "Performs the following translations in decoding by default:" msgstr "デフォルトではデコーディングの際、以下の変換を行います:" -#: ../../library/json.rst:375 ../../library/json.rst:463 +#: ../../library/json.rst:380 ../../library/json.rst:468 msgid "JSON" msgstr "JSON" -#: ../../library/json.rst:375 ../../library/json.rst:463 +#: ../../library/json.rst:380 ../../library/json.rst:468 msgid "Python" msgstr "Python" -#: ../../library/json.rst:377 ../../library/json.rst:465 +#: ../../library/json.rst:382 ../../library/json.rst:470 msgid "object" msgstr "object" -#: ../../library/json.rst:377 ../../library/json.rst:465 +#: ../../library/json.rst:382 ../../library/json.rst:470 msgid "dict" -msgstr "dict" +msgstr "辞書" -#: ../../library/json.rst:379 ../../library/json.rst:467 +#: ../../library/json.rst:384 ../../library/json.rst:472 msgid "array" msgstr "array" -#: ../../library/json.rst:379 +#: ../../library/json.rst:384 msgid "list" msgstr "list" -#: ../../library/json.rst:381 ../../library/json.rst:469 +#: ../../library/json.rst:386 ../../library/json.rst:474 msgid "string" msgstr "string" -#: ../../library/json.rst:381 ../../library/json.rst:469 +#: ../../library/json.rst:386 ../../library/json.rst:474 msgid "str" msgstr "str" -#: ../../library/json.rst:383 +#: ../../library/json.rst:388 msgid "number (int)" msgstr "number (int)" -#: ../../library/json.rst:383 +#: ../../library/json.rst:388 msgid "int" msgstr "int" -#: ../../library/json.rst:385 +#: ../../library/json.rst:390 msgid "number (real)" msgstr "number (real)" -#: ../../library/json.rst:385 +#: ../../library/json.rst:390 msgid "float" msgstr "浮動小数点数" -#: ../../library/json.rst:387 ../../library/json.rst:473 +#: ../../library/json.rst:392 ../../library/json.rst:478 msgid "true" msgstr "true" -#: ../../library/json.rst:387 ../../library/json.rst:473 +#: ../../library/json.rst:392 ../../library/json.rst:478 msgid "True" msgstr "True" -#: ../../library/json.rst:389 ../../library/json.rst:475 +#: ../../library/json.rst:394 ../../library/json.rst:480 msgid "false" msgstr "false" -#: ../../library/json.rst:389 ../../library/json.rst:475 +#: ../../library/json.rst:394 ../../library/json.rst:480 msgid "False" msgstr "False" -#: ../../library/json.rst:391 ../../library/json.rst:477 +#: ../../library/json.rst:396 ../../library/json.rst:482 msgid "null" msgstr "null" -#: ../../library/json.rst:391 ../../library/json.rst:477 +#: ../../library/json.rst:396 ../../library/json.rst:482 msgid "None" msgstr "None" -#: ../../library/json.rst:394 +#: ../../library/json.rst:399 msgid "" "It also understands ``NaN``, ``Infinity``, and ``-Infinity`` as their " "corresponding ``float`` values, which is outside the JSON spec." @@ -579,7 +584,7 @@ msgstr "" "また、このデコーダは ``NaN``, ``Infinity``, ``-Infinity`` を対応する " "``float`` の値として、JSON の仕様からは外れますが、理解します。" -#: ../../library/json.rst:397 +#: ../../library/json.rst:402 msgid "" "*object_hook* is an optional function that will be called with the result of " "every JSON object decoded and its return value will be used in place of the " @@ -587,7 +592,7 @@ msgid "" "g. to support `JSON-RPC `_ class hinting)." msgstr "" -#: ../../library/json.rst:402 +#: ../../library/json.rst:407 msgid "" "*object_pairs_hook* is an optional function that will be called with the " "result of every JSON object decoded with an ordered list of pairs. The " @@ -596,11 +601,11 @@ msgid "" "*object_hook* is also defined, the *object_pairs_hook* takes priority." msgstr "" -#: ../../library/json.rst:408 +#: ../../library/json.rst:413 msgid "Added support for *object_pairs_hook*." msgstr "*object_pairs_hook* のサポートが追加されました。" -#: ../../library/json.rst:411 +#: ../../library/json.rst:416 msgid "" "*parse_float* is an optional function that will be called with the string of " "every JSON float to be decoded. By default, this is equivalent to " @@ -608,7 +613,7 @@ msgid "" "JSON floats (e.g. :class:`decimal.Decimal`)." msgstr "" -#: ../../library/json.rst:416 +#: ../../library/json.rst:421 msgid "" "*parse_int* is an optional function that will be called with the string of " "every JSON int to be decoded. By default, this is equivalent to " @@ -616,14 +621,14 @@ msgid "" "JSON integers (e.g. :class:`float`)." msgstr "" -#: ../../library/json.rst:421 +#: ../../library/json.rst:426 msgid "" "*parse_constant* is an optional function that will be called with one of the " "following strings: ``'-Infinity'``, ``'Infinity'``, ``'NaN'``. This can be " "used to raise an exception if invalid JSON numbers are encountered." msgstr "" -#: ../../library/json.rst:425 +#: ../../library/json.rst:430 msgid "" "If *strict* is false (``True`` is the default), then control characters will " "be allowed inside strings. Control characters in this context are those " @@ -634,7 +639,7 @@ msgstr "" "とができます。ここで言う制御文字とは、``'\\t'`` (タブ)、``'\\n'``、" "``'\\r'``、``'\\0'`` を含む 0-31 の範囲のコードを持つ文字のことです。" -#: ../../library/json.rst:430 +#: ../../library/json.rst:435 msgid "" "If the data being deserialized is not a valid JSON document, a :exc:" "`JSONDecodeError` will be raised." @@ -642,13 +647,13 @@ msgstr "" "脱直列化しようとしているデータが不正な JSON ドキュメントだった場合、 :exc:" "`JSONDecodeError` が送出されます。" -#: ../../library/json.rst:433 ../../library/json.rst:534 +#: ../../library/json.rst:438 ../../library/json.rst:539 msgid "All parameters are now :ref:`keyword-only `." msgstr "" "すべての引数は、 :ref:`キーワード専用 ` になりまし" "た。 " -#: ../../library/json.rst:438 +#: ../../library/json.rst:443 msgid "" "Return the Python representation of *s* (a :class:`str` instance containing " "a JSON document)." @@ -656,7 +661,7 @@ msgstr "" "*s* (:class:`str` インスタンスで JSON 文書を含むもの) の Python 表現を返しま" "す。" -#: ../../library/json.rst:441 +#: ../../library/json.rst:446 msgid "" ":exc:`JSONDecodeError` will be raised if the given JSON document is not " "valid." @@ -664,7 +669,7 @@ msgstr "" "不正な JSON ドキュメントが与えられた場合、 :exc:`JSONDecodeError` が送出され" "ます。" -#: ../../library/json.rst:446 +#: ../../library/json.rst:451 msgid "" "Decode a JSON document from *s* (a :class:`str` beginning with a JSON " "document) and return a 2-tuple of the Python representation and the index in " @@ -674,7 +679,7 @@ msgstr "" "コードし、Python 表現と *s* の文書の終わるところのインデックスからなる 2 要素" "のタプルを返します。" -#: ../../library/json.rst:450 +#: ../../library/json.rst:455 msgid "" "This can be used to decode a JSON document from a string that may have " "extraneous data at the end." @@ -682,31 +687,31 @@ msgstr "" "このメソッドは後ろに余分なデータを従えた文字列から JSON 文書をデコードするの" "に使えます。" -#: ../../library/json.rst:456 +#: ../../library/json.rst:461 msgid "Extensible JSON encoder for Python data structures." msgstr "Python データ構造に対する拡張可能な JSON エンコーダ。" -#: ../../library/json.rst:458 +#: ../../library/json.rst:463 msgid "Supports the following objects and types by default:" msgstr "デフォルトでは以下のオブジェクトと型をサポートします:" -#: ../../library/json.rst:467 +#: ../../library/json.rst:472 msgid "list, tuple" msgstr "list, tuple" -#: ../../library/json.rst:471 +#: ../../library/json.rst:476 msgid "int, float, int- & float-derived Enums" msgstr "int、float と int や float の派生列挙型" -#: ../../library/json.rst:471 +#: ../../library/json.rst:476 msgid "number" msgstr "number" -#: ../../library/json.rst:480 +#: ../../library/json.rst:485 msgid "Added support for int- and float-derived Enum classes." msgstr "int と float の派生列挙型クラスの対応が追加されました。" -#: ../../library/json.rst:483 +#: ../../library/json.rst:488 msgid "" "To extend this to recognize other objects, subclass and implement a :meth:" "`~JSONEncoder.default` method with another method that returns a " @@ -719,7 +724,7 @@ msgstr "" "呼び出すようにします。変換できない時はスーパークラスの実装を (:exc:" "`TypeError` を送出させるために) 呼ばなければなりません。" -#: ../../library/json.rst:488 +#: ../../library/json.rst:493 msgid "" "If *skipkeys* is false (the default), a :exc:`TypeError` will be raised when " "trying to encode keys that are not :class:`str`, :class:`int`, :class:" @@ -727,7 +732,7 @@ msgid "" "simply skipped." msgstr "" -#: ../../library/json.rst:492 +#: ../../library/json.rst:497 msgid "" "If *ensure_ascii* is true (the default), the output is guaranteed to have " "all incoming non-ASCII characters escaped. If *ensure_ascii* is false, " @@ -737,7 +742,7 @@ msgstr "" "ASCII 文字はエスケープされていることが保証されています。*ensure_ascii* が " "false の場合、これらの文字はそのまま出力されます。" -#: ../../library/json.rst:496 +#: ../../library/json.rst:501 msgid "" "If *check_circular* is true (the default), then lists, dicts, and custom " "encoded objects will be checked for circular references during encoding to " @@ -749,7 +754,7 @@ msgstr "" "(これは :exc:`RecursionError` を引き起こします) を防止します。 ``True`` でな" "い場合は、そういったチェックは施されません。" -#: ../../library/json.rst:501 +#: ../../library/json.rst:506 msgid "" "If *allow_nan* is true (the default), then ``NaN``, ``Infinity``, and ``-" "Infinity`` will be encoded as such. This behavior is not JSON specification " @@ -762,7 +767,7 @@ msgstr "" "``True`` でない場合は、そのような浮動小数点数をエンコードすると :exc:" "`ValueError` が送出されます。" -#: ../../library/json.rst:507 +#: ../../library/json.rst:512 msgid "" "If *sort_keys* is true (default: ``False``), then the output of dictionaries " "will be sorted by key; this is useful for regression tests to ensure that " @@ -772,7 +777,7 @@ msgstr "" "されます。これは JSON の直列化がいつでも比較できるようになるので回帰試験の際" "に便利です。" -#: ../../library/json.rst:511 +#: ../../library/json.rst:516 msgid "" "If *indent* is a non-negative integer or string, then JSON array elements " "and object members will be pretty-printed with that indent level. An indent " @@ -788,7 +793,7 @@ msgstr "" "ペースでインデントします。もし *indent* が文字列 (``\"\\t\"`` のような) であ" "れば、その文字列が個々のレベルのインデントに使用されます。" -#: ../../library/json.rst:521 +#: ../../library/json.rst:526 msgid "" "If specified, *separators* should be an ``(item_separator, key_separator)`` " "tuple. The default is ``(', ', ': ')`` if *indent* is ``None`` and ``(',', " @@ -800,7 +805,7 @@ msgstr "" "': ')`` で、そうでなければ ``(',', ': ')`` です。最もコンパクトな JSON の表現" "を得たければ空白を削った ``(',', ':')`` を指定すればいいでしょう。" -#: ../../library/json.rst:529 +#: ../../library/json.rst:534 msgid "" "If specified, *default* should be a function that gets called for objects " "that can't otherwise be serialized. It should return a JSON encodable " @@ -813,7 +818,7 @@ msgstr "" "もなければ :exc:`TypeError` を送出しなければなりません。\n" "指定しない場合は、 :exc:`TypeError` が送出されます。" -#: ../../library/json.rst:540 +#: ../../library/json.rst:545 msgid "" "Implement this method in a subclass such that it returns a serializable " "object for *o*, or calls the base implementation (to raise a :exc:" @@ -823,7 +828,7 @@ msgstr "" "を返すか、基底クラスの実装を (:exc:`TypeError` を送出するために) 呼び出すかし" "ます。" -#: ../../library/json.rst:544 +#: ../../library/json.rst:549 msgid "" "For example, to support arbitrary iterators, you could implement :meth:" "`~JSONEncoder.default` like this::" @@ -831,7 +836,7 @@ msgstr "" "例えば、任意のイテレータをサポートする場合、 :meth:`~JSONEncoder.default` を" "このように実装できます ::" -#: ../../library/json.rst:547 +#: ../../library/json.rst:552 msgid "" "def default(self, o):\n" " try:\n" @@ -844,19 +849,19 @@ msgid "" " return super().default(o)" msgstr "" -#: ../../library/json.rst:560 +#: ../../library/json.rst:565 msgid "" "Return a JSON string representation of a Python data structure, *o*. For " "example::" msgstr "Python データ構造 *o* の JSON 文字列表現を返します。たとえば::" -#: ../../library/json.rst:563 +#: ../../library/json.rst:568 msgid "" ">>> json.JSONEncoder().encode({\"foo\": [\"bar\", \"baz\"]})\n" "'{\"foo\": [\"bar\", \"baz\"]}'" msgstr "" -#: ../../library/json.rst:569 +#: ../../library/json.rst:574 msgid "" "Encode the given object, *o*, and yield each string representation as " "available. For example::" @@ -864,45 +869,45 @@ msgstr "" "与えられたオブジェクト *o* をエンコードし、得られた文字列表現ごとに yield し" "ます。たとえば::" -#: ../../library/json.rst:572 +#: ../../library/json.rst:577 msgid "" "for chunk in json.JSONEncoder().iterencode(bigobject):\n" " mysocket.write(chunk)" msgstr "" -#: ../../library/json.rst:577 +#: ../../library/json.rst:582 msgid "Exceptions" msgstr "例外" -#: ../../library/json.rst:581 +#: ../../library/json.rst:586 msgid "Subclass of :exc:`ValueError` with the following additional attributes:" msgstr ":exc:`ValueError` のサブクラスで、以下の追加の属性を持ちます:" -#: ../../library/json.rst:585 +#: ../../library/json.rst:590 msgid "The unformatted error message." msgstr "フォーマットされていないエラーメッセージです。" -#: ../../library/json.rst:589 +#: ../../library/json.rst:594 msgid "The JSON document being parsed." msgstr "パース対象 JSON ドキュメントです。" -#: ../../library/json.rst:593 +#: ../../library/json.rst:598 msgid "The start index of *doc* where parsing failed." msgstr "*doc* の、解析に失敗した開始インデクスです。" -#: ../../library/json.rst:597 +#: ../../library/json.rst:602 msgid "The line corresponding to *pos*." msgstr "*pos* に対応する行です。" -#: ../../library/json.rst:601 +#: ../../library/json.rst:606 msgid "The column corresponding to *pos*." msgstr "*pos* に対応する列です。" -#: ../../library/json.rst:607 +#: ../../library/json.rst:612 msgid "Standard Compliance and Interoperability" msgstr "標準への準拠と互換性" -#: ../../library/json.rst:609 +#: ../../library/json.rst:614 msgid "" "The JSON format is specified by :rfc:`7159` and by `ECMA-404 `_. This " @@ -911,7 +916,7 @@ msgid "" "parameters other than those explicitly mentioned, are not considered." msgstr "" -#: ../../library/json.rst:615 +#: ../../library/json.rst:620 msgid "" "This module does not comply with the RFC in a strict fashion, implementing " "some extensions that are valid JavaScript but not valid JSON. In particular:" @@ -919,11 +924,11 @@ msgstr "" "このモジュールは、JavaScript では正しいが JSON では不正ないくつかの拡張が実装" "されているため、厳密な意味では RFC に準拠していません。特に:" -#: ../../library/json.rst:618 +#: ../../library/json.rst:623 msgid "Infinite and NaN number values are accepted and output;" msgstr "無限および NaN の数値を受け付け、また出力します;" -#: ../../library/json.rst:619 +#: ../../library/json.rst:624 msgid "" "Repeated names within an object are accepted, and only the value of the last " "name-value pair is used." @@ -931,7 +936,7 @@ msgstr "" "あるオブジェクト内での同じ名前の繰り返しを受け付け、最後の名前と値のペアの値" "のみを使用します。" -#: ../../library/json.rst:622 +#: ../../library/json.rst:627 msgid "" "Since the RFC permits RFC-compliant parsers to accept input texts that are " "not RFC-compliant, this module's deserializer is technically RFC-compliant " @@ -941,11 +946,11 @@ msgstr "" "許容しているので、このモジュールの脱直列化は技術的に言えば、デフォルトの設定" "では RFC に準拠しています。" -#: ../../library/json.rst:627 +#: ../../library/json.rst:632 msgid "Character Encodings" msgstr "文字エンコーディング" -#: ../../library/json.rst:629 +#: ../../library/json.rst:634 msgid "" "The RFC requires that JSON be represented using either UTF-8, UTF-16, or " "UTF-32, with UTF-8 being the recommended default for maximum " @@ -954,7 +959,7 @@ msgstr "" "RFC は、UTF-8、UTF-16、UTF-32のいずれかでJSONを表現するように要求しており、" "UTF-8 が最大の互換性を確保するために推奨されるデフォルトです。" -#: ../../library/json.rst:632 +#: ../../library/json.rst:637 msgid "" "As permitted, though not required, by the RFC, this module's serializer sets " "*ensure_ascii=True* by default, thus escaping the output so that the " @@ -964,7 +969,7 @@ msgstr "" "トで *ensure_ascii=True* という設定を用い、従って、結果の文字列が ASCII 文字" "しか含まないように出力をエスケープします。" -#: ../../library/json.rst:636 +#: ../../library/json.rst:641 msgid "" "Other than the *ensure_ascii* parameter, this module is defined strictly in " "terms of conversion between Python objects and :class:`Unicode strings " @@ -975,7 +980,7 @@ msgstr "" "class:`Unicode 文字列 ` の間の変換において厳密に定義されていて、それ以外" "のパラメータで文字エンコーディングに直接的に関わるものはありません。" -#: ../../library/json.rst:641 +#: ../../library/json.rst:646 msgid "" "The RFC prohibits adding a byte order mark (BOM) to the start of a JSON " "text, and this module's serializer does not add a BOM to its output. The RFC " @@ -989,7 +994,7 @@ msgstr "" "ん。このモジュールのデシリアライザは一番最初の BOM を見つけると :exc:" "`ValueError` を送出します。" -#: ../../library/json.rst:647 +#: ../../library/json.rst:652 msgid "" "The RFC does not explicitly forbid JSON strings which contain byte sequences " "that don't correspond to valid Unicode characters (e.g. unpaired UTF-16 " @@ -1003,11 +1008,11 @@ msgstr "" "ルは(オリジナルの :class:`str` にある場合)そのようなシーケンスのコードポイン" "トを受け取り、出力します。" -#: ../../library/json.rst:655 +#: ../../library/json.rst:660 msgid "Infinite and NaN Number Values" msgstr "無限および NaN の数値" -#: ../../library/json.rst:657 +#: ../../library/json.rst:662 msgid "" "The RFC does not permit the representation of infinite or NaN number values. " "Despite that, by default, this module accepts and outputs ``Infinity``, ``-" @@ -1017,7 +1022,7 @@ msgstr "" "フォルトでは、このモジュールは ``Infinity``、``-Infinity``、``NaN`` を正しい " "JSON の数値リテラルの値であるかのように受け付け、出力します::" -#: ../../library/json.rst:661 +#: ../../library/json.rst:666 msgid "" ">>> # Neither of these calls raises an exception, but the results are not " "valid JSON\n" @@ -1032,7 +1037,7 @@ msgid "" "nan" msgstr "" -#: ../../library/json.rst:672 +#: ../../library/json.rst:677 msgid "" "In the serializer, the *allow_nan* parameter can be used to alter this " "behavior. In the deserializer, the *parse_constant* parameter can be used " @@ -1042,11 +1047,11 @@ msgstr "" "す。デシリアライザでは、この振る舞いを変更するのに *parse_constant* パラメー" "タが使えます。" -#: ../../library/json.rst:678 +#: ../../library/json.rst:683 msgid "Repeated Names Within an Object" msgstr "オブジェクト中に重複した名前の扱い" -#: ../../library/json.rst:680 +#: ../../library/json.rst:685 msgid "" "The RFC specifies that the names within a JSON object should be unique, but " "does not mandate how repeated names in JSON objects should be handled. By " @@ -1058,22 +1063,22 @@ msgstr "" "デフォルトでは、このモジュールは例外を送出せず、かわりに重複した名前のうち、" "最後に出現した名前と値のペア以外を無視します。" -#: ../../library/json.rst:685 +#: ../../library/json.rst:690 msgid "" ">>> weird_json = '{\"x\": 1, \"x\": 2, \"x\": 3}'\n" ">>> json.loads(weird_json)\n" "{'x': 3}" msgstr "" -#: ../../library/json.rst:689 +#: ../../library/json.rst:694 msgid "The *object_pairs_hook* parameter can be used to alter this behavior." msgstr "*object_pairs_hook* パラメータでこの動作を変更できます。" -#: ../../library/json.rst:693 +#: ../../library/json.rst:698 msgid "Top-level Non-Object, Non-Array Values" msgstr "トップレベルの非オブジェクト、非配列の値の扱い" -#: ../../library/json.rst:695 +#: ../../library/json.rst:700 msgid "" "The old version of JSON specified by the obsolete :rfc:`4627` required that " "the top-level value of a JSON text must be either a JSON object or array " @@ -1089,7 +1094,7 @@ msgstr "" "り払われました。このモジュールはこの制限を持っていませんし、シリアライザでも" "デシリアライズでも、一度としてこの制限で実装されたことはありません。" -#: ../../library/json.rst:702 +#: ../../library/json.rst:707 msgid "" "Regardless, for maximum interoperability, you may wish to voluntarily adhere " "to the restriction yourself." @@ -1097,32 +1102,32 @@ msgstr "" "それにも関わらず、相互運用可能性を最大化したいならば、あなた自身の手で自発的" "にその制約に忠実に従いたいと思うでしょう。" -#: ../../library/json.rst:707 +#: ../../library/json.rst:712 msgid "Implementation Limitations" msgstr "実装の制限" -#: ../../library/json.rst:709 +#: ../../library/json.rst:714 msgid "Some JSON deserializer implementations may set limits on:" msgstr "" "いくつかの JSON デシリアライザの実装は、以下の制限を設定することがあります。" -#: ../../library/json.rst:711 +#: ../../library/json.rst:716 msgid "the size of accepted JSON texts" msgstr "受け入れられる JSON テキストのサイズ" -#: ../../library/json.rst:712 +#: ../../library/json.rst:717 msgid "the maximum level of nesting of JSON objects and arrays" msgstr "JSON オブジェクトと配列のネストの最大の深さ" -#: ../../library/json.rst:713 +#: ../../library/json.rst:718 msgid "the range and precision of JSON numbers" msgstr "JSON 数値の範囲と精度" -#: ../../library/json.rst:714 +#: ../../library/json.rst:719 msgid "the content and maximum length of JSON strings" msgstr "JSON 文字列の内容と最大の長さ" -#: ../../library/json.rst:716 +#: ../../library/json.rst:721 msgid "" "This module does not impose any such limits beyond those of the relevant " "Python datatypes themselves or the Python interpreter itself." @@ -1130,7 +1135,7 @@ msgstr "" "このモジュールは関連する Python データ型や Python インタプリタ自身の制約の世" "界を超えたそのような制約を強要はしません。" -#: ../../library/json.rst:719 +#: ../../library/json.rst:724 msgid "" "When serializing to JSON, beware any such limitations in applications that " "may consume your JSON. In particular, it is common for JSON numbers to be " @@ -1147,22 +1152,22 @@ msgstr "" "ライズするとき、あるいは :class:`decimal.Decimal` のような \"風変わりな\" 数" "値型をシリアライズするとき、に特に関係があります。" -#: ../../library/json.rst:732 +#: ../../library/json.rst:737 msgid "Command-line interface" msgstr "コマンドライン・インターフェース" -#: ../../library/json.rst:737 +#: ../../library/json.rst:742 msgid "**Source code:** :source:`Lib/json/tool.py`" msgstr "**ソースコード:** :source:`Lib/json/tool.py`" -#: ../../library/json.rst:741 +#: ../../library/json.rst:746 msgid "" "The :mod:`json` module can be invoked as a script via ``python -m json`` to " "validate and pretty-print JSON objects. The :mod:`json.tool` submodule " "implements this interface." msgstr "" -#: ../../library/json.rst:745 +#: ../../library/json.rst:750 msgid "" "If the optional ``infile`` and ``outfile`` arguments are not specified, :" "data:`sys.stdin` and :data:`sys.stdout` will be used respectively:" @@ -1170,7 +1175,7 @@ msgstr "" "オプション引数の ``infile`` と ``outfile`` が指定されない場合、それぞれ :" "data:`sys.stdin` と :data:`sys.stdout` が使用されます。" -#: ../../library/json.rst:748 +#: ../../library/json.rst:753 msgid "" "$ echo '{\"json\": \"obj\"}' | python -m json\n" "{\n" @@ -1180,7 +1185,7 @@ msgid "" "Expecting property name enclosed in double quotes: line 1 column 2 (char 1)" msgstr "" -#: ../../library/json.rst:757 +#: ../../library/json.rst:762 msgid "" "The output is now in the same order as the input. Use the :option:`--sort-" "keys` option to sort the output of dictionaries alphabetically by key." @@ -1188,22 +1193,22 @@ msgstr "" "出力が、入力と同じ順序になりました。辞書をキーでアルファベット順に並べ替えた" "出力が欲しければ、 :option:`--sort-keys` オプションを使ってください。" -#: ../../library/json.rst:762 +#: ../../library/json.rst:767 msgid "" "The :mod:`json` module may now be directly executed as ``python -m json``. " "For backwards compatibility, invoking the CLI as ``python -m json.tool`` " "remains supported." msgstr "" -#: ../../library/json.rst:769 +#: ../../library/json.rst:774 msgid "Command-line options" msgstr "コマンドラインオプション" -#: ../../library/json.rst:773 +#: ../../library/json.rst:778 msgid "The JSON file to be validated or pretty-printed:" msgstr "検証を行う、あるいは整形出力を行う JSON ファイルを指定します:" -#: ../../library/json.rst:775 +#: ../../library/json.rst:780 msgid "" "$ python -m json mp_films.json\n" "[\n" @@ -1218,11 +1223,11 @@ msgid "" "]" msgstr "" -#: ../../library/json.rst:789 +#: ../../library/json.rst:794 msgid "If *infile* is not specified, read from :data:`sys.stdin`." msgstr "*infile* が指定されない場合、 :data:`sys.stdin` から読み込みます。" -#: ../../library/json.rst:793 +#: ../../library/json.rst:798 msgid "" "Write the output of the *infile* to the given *outfile*. Otherwise, write it " "to :data:`sys.stdout`." @@ -1230,11 +1235,11 @@ msgstr "" "*infile* の出力を *outfile* に書き込みます。そうでない場合、 :data:`sys." "stdout` に書き込みます。" -#: ../../library/json.rst:798 +#: ../../library/json.rst:803 msgid "Sort the output of dictionaries alphabetically by key." msgstr "辞書の出力を、キーのアルファベット順にソートします。" -#: ../../library/json.rst:804 +#: ../../library/json.rst:809 msgid "" "Disable escaping of non-ascii characters, see :func:`json.dumps` for more " "information." @@ -1242,23 +1247,23 @@ msgstr "" "非 ASCII 文字のエスケープを無効化します。より詳しくは :func:`json.dumps` を参" "照してください。" -#: ../../library/json.rst:810 +#: ../../library/json.rst:815 msgid "Parse every input line as separate JSON object." msgstr "すべての入力行を個別のJSON オブジェクトとしてパースします。" -#: ../../library/json.rst:816 +#: ../../library/json.rst:821 msgid "Mutually exclusive options for whitespace control." msgstr "空白文字の制御のための排他的なオプション。" -#: ../../library/json.rst:822 +#: ../../library/json.rst:827 msgid "Show the help message." msgstr "ヘルプメッセージを出力します" -#: ../../library/json.rst:826 +#: ../../library/json.rst:831 msgid "Footnotes" msgstr "脚注" -#: ../../library/json.rst:827 +#: ../../library/json.rst:832 msgid "" "As noted in `the errata for RFC 7159 `_, JSON permits literal U+2028 (LINE SEPARATOR) " diff --git a/library/keyword.po b/library/keyword.po index 332c029dc..5deccde89 100644 --- a/library/keyword.po +++ b/library/keyword.po @@ -1,5 +1,5 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2025, Python Software Foundation +# Copyright (C) 2001 Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # @@ -11,17 +11,17 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: Python 3.13\n" +"Project-Id-Version: Python 3.14\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2025-05-02 14:19+0000\n" +"POT-Creation-Date: 2025-05-23 14:20+0000\n" "PO-Revision-Date: 2021-06-28 01:08+0000\n" "Last-Translator: 石井明久, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../library/keyword.rst:2 diff --git a/library/language.po b/library/language.po index 321e5ca7e..3463aac55 100644 --- a/library/language.po +++ b/library/language.po @@ -16,10 +16,10 @@ msgstr "" "Last-Translator: tomo, 2021\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../library/language.rst:5 diff --git a/library/linecache.po b/library/linecache.po index ba7ba69e6..f59d1be19 100644 --- a/library/linecache.po +++ b/library/linecache.po @@ -18,10 +18,10 @@ msgstr "" "Last-Translator: 石井明久, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../library/linecache.rst:2 diff --git a/library/locale.po b/library/locale.po index f911c5e97..dc96db687 100644 --- a/library/locale.po +++ b/library/locale.po @@ -18,10 +18,10 @@ msgstr "" "Last-Translator: tomo, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../library/locale.rst:2 diff --git a/library/logging.config.po b/library/logging.config.po index 074df1ac5..a5c8674b7 100644 --- a/library/logging.config.po +++ b/library/logging.config.po @@ -1,5 +1,5 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2025, Python Software Foundation +# Copyright (C) 2001 Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # @@ -16,17 +16,17 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: Python 3.13\n" +"Project-Id-Version: Python 3.14\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2025-05-02 14:19+0000\n" +"POT-Creation-Date: 2025-05-23 14:20+0000\n" "PO-Revision-Date: 2021-06-28 01:09+0000\n" "Last-Translator: Takuya Futatsugi, 2025\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../library/logging.config.rst:2 diff --git a/library/logging.handlers.po b/library/logging.handlers.po index ca3f7768f..dde92d538 100644 --- a/library/logging.handlers.po +++ b/library/logging.handlers.po @@ -21,10 +21,10 @@ msgstr "" "Last-Translator: tomo, 2025\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../library/logging.handlers.rst:2 diff --git a/library/logging.po b/library/logging.po index 1624658c3..5c259d761 100644 --- a/library/logging.po +++ b/library/logging.po @@ -24,10 +24,10 @@ msgstr "" "Last-Translator: Takeshi Nakazato, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../library/logging.rst:2 diff --git a/library/lzma.po b/library/lzma.po index c2fb0532a..9dec96145 100644 --- a/library/lzma.po +++ b/library/lzma.po @@ -1,5 +1,5 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2025, Python Software Foundation +# Copyright (C) 2001 Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # @@ -11,17 +11,17 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: Python 3.13\n" +"Project-Id-Version: Python 3.14\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2025-05-02 14:19+0000\n" +"POT-Creation-Date: 2025-05-23 14:20+0000\n" "PO-Revision-Date: 2021-06-28 01:09+0000\n" "Last-Translator: 石井明久, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../library/lzma.rst:2 diff --git a/library/mailbox.po b/library/mailbox.po index c5fa01a6d..9da384a30 100644 --- a/library/mailbox.po +++ b/library/mailbox.po @@ -19,10 +19,10 @@ msgstr "" "Last-Translator: Arihiro TAKASE, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../library/mailbox.rst:2 diff --git a/library/mailcap.po b/library/mailcap.po index 69a037a0d..efd224ab1 100644 --- a/library/mailcap.po +++ b/library/mailcap.po @@ -1,21 +1,21 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2025, Python Software Foundation +# Copyright (C) 2001 Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # #, fuzzy msgid "" msgstr "" -"Project-Id-Version: Python 3.13\n" +"Project-Id-Version: Python 3.14\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2025-05-02 14:19+0000\n" +"POT-Creation-Date: 2025-05-23 14:20+0000\n" "PO-Revision-Date: 2024-11-19 01:03+0000\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../library/mailcap.rst:2 diff --git a/library/markup.po b/library/markup.po index 04d1f4501..3dd68e8a1 100644 --- a/library/markup.po +++ b/library/markup.po @@ -17,10 +17,10 @@ msgstr "" "Last-Translator: Osamu NAKAMURA, 2021\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../library/markup.rst:5 diff --git a/library/marshal.po b/library/marshal.po index fac1108cb..48f01714a 100644 --- a/library/marshal.po +++ b/library/marshal.po @@ -20,10 +20,10 @@ msgstr "" "Last-Translator: tomo, 2025\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../library/marshal.rst:2 diff --git a/library/math.po b/library/math.po index cbcb24f15..c5d64f66b 100644 --- a/library/math.po +++ b/library/math.po @@ -14,15 +14,15 @@ msgid "" msgstr "" "Project-Id-Version: Python 3.14\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2025-05-08 02:53-0300\n" +"POT-Creation-Date: 2025-05-16 14:19+0000\n" "PO-Revision-Date: 2021-06-28 01:09+0000\n" "Last-Translator: 石井明久, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../library/math.rst:2 @@ -635,7 +635,7 @@ msgstr "" "これは ``(1 + x)ⁿ`` の多項式展開における第 k 項の係数と等しいので、二項係数と" "も呼ばれます。" -#: ../../library/math.rst:139 ../../library/math.rst:205 +#: ../../library/math.rst:139 ../../library/math.rst:204 msgid "" "Raises :exc:`TypeError` if either of the arguments are not integers. Raises :" "exc:`ValueError` if either of the arguments are negative." @@ -644,18 +644,14 @@ msgstr "" "が負であれば :exc:`ValueError` を送出します。" #: ../../library/math.rst:147 -msgid "" -"Return *n* factorial as an integer. Raises :exc:`ValueError` if *n* is not " -"integral or is negative." +msgid "Return factorial of the nonnegative integer *n*." msgstr "" -"*n* の階乗を整数で返します。*n* が整数でないか、負の数の場合は、 :exc:" -"`ValueError` を送出します。" -#: ../../library/math.rst:150 +#: ../../library/math.rst:149 msgid "Floats with integral values (like ``5.0``) are no longer accepted." msgstr "" -#: ../../library/math.rst:156 +#: ../../library/math.rst:155 msgid "" "Return the greatest common divisor of the specified integer arguments. If " "any of the arguments is nonzero, then the returned value is the largest " @@ -667,7 +663,7 @@ msgstr "" "全ての引数の約数である最大の正の整数です。全ての引数が 0 なら、返される値は " "``0`` です。引数の無い ``gcd()`` は ``0`` を返します。" -#: ../../library/math.rst:164 +#: ../../library/math.rst:163 msgid "" "Added support for an arbitrary number of arguments. Formerly, only two " "arguments were supported." @@ -675,7 +671,7 @@ msgstr "" "任意の数の引数のサポートが追加されました。以前は、二つの引数のみがサポートさ" "れていました。" -#: ../../library/math.rst:171 +#: ../../library/math.rst:170 msgid "" "Return the integer square root of the nonnegative integer *n*. This is the " "floor of the exact square root of *n*, or equivalently the greatest integer " @@ -684,7 +680,7 @@ msgstr "" "非負整数 *n* の整数平方根を返します。これは *n* の正確な平方根の床であり、 " "*a*\\ ² |nbsp| ≤ |nbsp| *n* を満たす最大の整数 *a* と等価です。" -#: ../../library/math.rst:175 +#: ../../library/math.rst:174 msgid "" "For some applications, it may be more convenient to have the least integer " "*a* such that *n* |nbsp| ≤ |nbsp| *a*\\ ², or in other words the ceiling of " @@ -695,7 +691,7 @@ msgstr "" "れば *n* の正確な平方根の天井を効率的に得られます。正の *n* に対して、これは " "``a = 1 + isqrt(n - 1)`` を使って計算できます。" -#: ../../library/math.rst:185 +#: ../../library/math.rst:184 msgid "" "Return the least common multiple of the specified integer arguments. If all " "arguments are nonzero, then the returned value is the smallest positive " @@ -707,13 +703,13 @@ msgstr "" "値は全ての引数の倍数である最小の正の整数です。引数に 0 があれば、返される値" "は ``0`` です。引数の無い ``lcm()`` は ``1`` を返します。" -#: ../../library/math.rst:196 +#: ../../library/math.rst:195 msgid "" "Return the number of ways to choose *k* items from *n* items without " "repetition and with order." msgstr "*n* 個の中から *k* 個を重複無く順序をつけて選ぶ方法の数を返します。" -#: ../../library/math.rst:199 +#: ../../library/math.rst:198 msgid "" "Evaluates to ``n! / (n - k)!`` when ``k <= n`` and evaluates to zero when " "``k > n``." @@ -721,17 +717,17 @@ msgstr "" "``k <= n`` のとき ``n! / (n - k)!`` と評価し、``k > n`` のとき 0 と評価しま" "す。" -#: ../../library/math.rst:202 +#: ../../library/math.rst:201 msgid "" "If *k* is not specified or is ``None``, then *k* defaults to *n* and the " "function returns ``n!``." msgstr "" -#: ../../library/math.rst:212 +#: ../../library/math.rst:211 msgid "Floating point arithmetic" msgstr "" -#: ../../library/math.rst:216 +#: ../../library/math.rst:215 msgid "" "Return the ceiling of *x*, the smallest integer greater than or equal to " "*x*. If *x* is not a float, delegates to :meth:`x.__ceil__ ` が実行され、 :class:" "`~numbers.Integral` 値が返されます。" -#: ../../library/math.rst:223 +#: ../../library/math.rst:222 msgid "Return the absolute value of *x*." msgstr "*x* の絶対値を返します。" -#: ../../library/math.rst:228 +#: ../../library/math.rst:227 msgid "" "Return the floor of *x*, the largest integer less than or equal to *x*. If " "*x* is not a float, delegates to :meth:`x.__floor__ `, " @@ -755,7 +751,7 @@ msgstr "" "ば、内部的に :meth:`x.__floor__ ` が実行され、 :class:" "`~numbers.Integral` 値が返されます。" -#: ../../library/math.rst:235 +#: ../../library/math.rst:234 msgid "" "Fused multiply-add operation. Return ``(x * y) + z``, computed as though " "with infinite precision and range followed by a single round to the " @@ -763,7 +759,7 @@ msgid "" "direct expression ``(x * y) + z``." msgstr "" -#: ../../library/math.rst:240 +#: ../../library/math.rst:239 msgid "" "This function follows the specification of the fusedMultiplyAdd operation " "described in the IEEE 754 standard. The standard leaves one case " @@ -772,7 +768,7 @@ msgid "" "not raise any exception." msgstr "" -#: ../../library/math.rst:251 +#: ../../library/math.rst:250 msgid "" "Return the floating-point remainder of ``x / y``, as defined by the platform " "C library function ``fmod(x, y)``. Note that the Python expression ``x % y`` " @@ -788,7 +784,7 @@ msgid "" "floats, while Python's ``x % y`` is preferred when working with integers." msgstr "" -#: ../../library/math.rst:267 +#: ../../library/math.rst:266 msgid "" "Return the fractional and integer parts of *x*. Both results carry the sign " "of *x* and are floats." @@ -796,7 +792,7 @@ msgstr "" "*x* の小数部分と整数部分を返します。両方の結果は *x* の符号を受け継ぎます。整" "数部はfloat型で返されます。" -#: ../../library/math.rst:270 +#: ../../library/math.rst:269 msgid "" "Note that :func:`modf` has a different call/return pattern than its C " "equivalents: it takes a single argument and return a pair of values, rather " @@ -804,7 +800,7 @@ msgid "" "is no such thing in Python)." msgstr "" -#: ../../library/math.rst:278 +#: ../../library/math.rst:277 msgid "" "Return the IEEE 754-style remainder of *x* with respect to *y*. For finite " "*x* and finite nonzero *y*, this is the difference ``x - n*y``, where ``n`` " @@ -821,7 +817,7 @@ msgstr "" "従って、剰余 ``r = remainder(x, y)`` は常に ``abs(r) <= 0.5 * abs(y)`` を満た" "します。" -#: ../../library/math.rst:285 +#: ../../library/math.rst:284 msgid "" "Special cases follow IEEE 754: in particular, ``remainder(x, math.inf)`` is " "*x* for any finite *x*, and ``remainder(x, 0)`` and ``remainder(math.inf, " @@ -834,13 +830,13 @@ msgstr "" "します。\n" "剰余演算の結果がゼロの場合、そのゼロは *x* と同じ符号を持ちます。" -#: ../../library/math.rst:291 +#: ../../library/math.rst:290 msgid "" "On platforms using IEEE 754 binary floating point, the result of this " "operation is always exactly representable: no rounding error is introduced." msgstr "" -#: ../../library/math.rst:299 +#: ../../library/math.rst:298 msgid "" "Return *x* with the fractional part removed, leaving the integer part. This " "rounds toward 0: ``trunc()`` is equivalent to :func:`floor` for positive " @@ -854,7 +850,7 @@ msgstr "" "`x.__trunc__ ` が実行され、 :class:`~numbers.Integral` 値が" "返されます。" -#: ../../library/math.rst:306 +#: ../../library/math.rst:305 msgid "" "For the :func:`ceil`, :func:`floor`, and :func:`modf` functions, note that " "*all* floating-point numbers of sufficiently large magnitude are exact " @@ -868,11 +864,11 @@ msgstr "" "おける C double 型と同じ) ので、結果的に ``abs(x) >= 2**52`` であるような浮動" "小数点型 *x* は小数部分を持たなくなるのです。" -#: ../../library/math.rst:314 +#: ../../library/math.rst:313 msgid "Floating point manipulation functions" msgstr "" -#: ../../library/math.rst:318 +#: ../../library/math.rst:317 msgid "" "Return a float with the magnitude (absolute value) of *x* but the sign of " "*y*. On platforms that support signed zeros, ``copysign(1.0, -0.0)`` " @@ -882,7 +878,7 @@ msgstr "" "ロをサポートしているプラットフォームでは、``copysign(1.0, -0.0)`` は *-1.0* " "を返します。" -#: ../../library/math.rst:325 +#: ../../library/math.rst:324 msgid "" "Return the mantissa and exponent of *x* as the pair ``(m, e)``. *m* is a " "float and *e* is an integer such that ``x == m * 2**e`` exactly. If *x* is " @@ -894,7 +890,7 @@ msgstr "" "0)`` を返し、それ以外の場合は、``0.5 <= abs(m) < 1`` です。これは浮動小数点型" "の内部表現を可搬性を保ったまま \"分解 (pick apart)\" するために使われます。" -#: ../../library/math.rst:330 +#: ../../library/math.rst:329 msgid "" "Note that :func:`frexp` has a different call/return pattern than its C " "equivalents: it takes a single argument and return a pair of values, rather " @@ -902,7 +898,7 @@ msgid "" "is no such thing in Python)." msgstr "" -#: ../../library/math.rst:337 +#: ../../library/math.rst:336 msgid "" "Return ``True`` if the values *a* and *b* are close to each other and " "``False`` otherwise." @@ -910,14 +906,14 @@ msgstr "" "値 *a* と *b* が互いに近い場合 ``True`` を、そうでない場合は ``False`` を返し" "ます。" -#: ../../library/math.rst:340 +#: ../../library/math.rst:339 msgid "" "Whether or not two values are considered close is determined according to " "given absolute and relative tolerances. If no errors occur, the result will " "be: ``abs(a-b) <= max(rel_tol * max(abs(a), abs(b)), abs_tol)``." msgstr "" -#: ../../library/math.rst:344 +#: ../../library/math.rst:343 msgid "" "*rel_tol* is the relative tolerance -- it is the maximum allowed difference " "between *a* and *b*, relative to the larger absolute value of *a* or *b*. " @@ -927,7 +923,7 @@ msgid "" "``1.0``." msgstr "" -#: ../../library/math.rst:351 +#: ../../library/math.rst:350 msgid "" "*abs_tol* is the absolute tolerance; it defaults to ``0.0`` and it must be " "nonnegative. When comparing ``x`` to ``0.0``, ``isclose(x, 0)`` is computed " @@ -936,7 +932,7 @@ msgid "" "argument to the call." msgstr "" -#: ../../library/math.rst:357 +#: ../../library/math.rst:356 msgid "" "The IEEE 754 special values of ``NaN``, ``inf``, and ``-inf`` will be " "handled according to IEEE rules. Specifically, ``NaN`` is not considered " @@ -948,11 +944,11 @@ msgstr "" "具体的には、``NaN`` は自身を含めたあらゆる値に近いとは見なされません。\n" "``inf`` と ``-inf`` は自身とのみ近いと見なされます。" -#: ../../library/math.rst:366 +#: ../../library/math.rst:365 msgid ":pep:`485` -- A function for testing approximate equality" msgstr ":pep:`485` -- A function for testing approximate equality" -#: ../../library/math.rst:371 +#: ../../library/math.rst:370 msgid "" "Return ``True`` if *x* is neither an infinity nor a NaN, and ``False`` " "otherwise. (Note that ``0.0`` *is* considered finite.)" @@ -960,7 +956,7 @@ msgstr "" "*x* が無限でも NaN でもない場合に ``True`` を返します。それ以外の時には " "``False`` を返します。 (注意: ``0.0`` は有限数と扱われます。)" -#: ../../library/math.rst:379 +#: ../../library/math.rst:378 msgid "" "Return ``True`` if *x* is a positive or negative infinity, and ``False`` " "otherwise." @@ -968,73 +964,73 @@ msgstr "" "*x* が正ないし負の無限数ならば ``True`` を返します。それ以外の時には " "``False`` を返します。" -#: ../../library/math.rst:385 +#: ../../library/math.rst:384 msgid "" "Return ``True`` if *x* is a NaN (not a number), and ``False`` otherwise." msgstr "" "*x* がNaN (not a number、非数) の時に ``True`` を返します。それ以外の場合に" "は ``False`` を返します。" -#: ../../library/math.rst:390 +#: ../../library/math.rst:389 msgid "" "Return ``x * (2**i)``. This is essentially the inverse of function :func:" "`frexp`." msgstr "``x * (2**i)`` を返します。これは本質的に :func:`frexp` の逆関数です。" -#: ../../library/math.rst:396 +#: ../../library/math.rst:395 msgid "Return the floating-point value *steps* steps after *x* towards *y*." msgstr "" -#: ../../library/math.rst:398 +#: ../../library/math.rst:397 msgid "If *x* is equal to *y*, return *y*, unless *steps* is zero." msgstr "" -#: ../../library/math.rst:400 +#: ../../library/math.rst:399 msgid "Examples:" msgstr "例:" -#: ../../library/math.rst:402 +#: ../../library/math.rst:401 msgid "``math.nextafter(x, math.inf)`` goes up: towards positive infinity." msgstr "" -#: ../../library/math.rst:403 +#: ../../library/math.rst:402 msgid "``math.nextafter(x, -math.inf)`` goes down: towards minus infinity." msgstr "" -#: ../../library/math.rst:404 +#: ../../library/math.rst:403 msgid "``math.nextafter(x, 0.0)`` goes towards zero." msgstr "``math.nextafter(x, 0.0)`` は 0 に近づきます。" -#: ../../library/math.rst:405 +#: ../../library/math.rst:404 msgid "``math.nextafter(x, math.copysign(math.inf, x))`` goes away from zero." msgstr "" "``math.nextafter(x, math.copysign(math.inf, x))`` は 0 から遠ざかります。" -#: ../../library/math.rst:407 +#: ../../library/math.rst:406 msgid "See also :func:`math.ulp`." msgstr ":func:`math.ulp` を参照してください。" -#: ../../library/math.rst:411 +#: ../../library/math.rst:410 msgid "Added the *steps* argument." msgstr "" -#: ../../library/math.rst:417 +#: ../../library/math.rst:416 msgid "Return the value of the least significant bit of the float *x*:" msgstr "浮動小数点数 *x* の最下位ビットの値を返します:" -#: ../../library/math.rst:419 +#: ../../library/math.rst:418 msgid "If *x* is a NaN (not a number), return *x*." msgstr "*x* が NaN (非数) なら、*x* を返します。" -#: ../../library/math.rst:420 +#: ../../library/math.rst:419 msgid "If *x* is negative, return ``ulp(-x)``." msgstr "*x* が負なら、``ulp(-x)`` を返します。" -#: ../../library/math.rst:421 +#: ../../library/math.rst:420 msgid "If *x* is a positive infinity, return *x*." msgstr "*x* が正の無限大なら、*x* を返します。" -#: ../../library/math.rst:422 +#: ../../library/math.rst:421 msgid "" "If *x* is equal to zero, return the smallest positive *denormalized* " "representable float (smaller than the minimum positive *normalized* float, :" @@ -1044,7 +1040,7 @@ msgstr "" "float_info.min ` よりも小さい) 最小の正の表現可能な *非正規化" "* 浮動小数点数を返します。 " -#: ../../library/math.rst:425 +#: ../../library/math.rst:424 msgid "" "If *x* is equal to the largest positive representable float, return the " "value of the least significant bit of *x*, such that the first float smaller " @@ -1053,7 +1049,7 @@ msgstr "" "*x* が表現可能な最大の正の浮動小数点数に等しいなら、*x* より小さい最初の浮動" "小数点数が ``x - ulp(x)`` であるような、*x* の最下位ビットの値を返します。" -#: ../../library/math.rst:428 +#: ../../library/math.rst:427 msgid "" "Otherwise (*x* is a positive finite number), return the value of the least " "significant bit of *x*, such that the first float bigger than *x* is ``x + " @@ -1062,11 +1058,11 @@ msgstr "" "それ以外 (*x* が正の有限な数) なら、*x* より大きい最初の浮動小数点数が ``x + " "ulp(x)`` であるような、*x* の最下位ビットの値を返します。" -#: ../../library/math.rst:432 +#: ../../library/math.rst:431 msgid "ULP stands for \"Unit in the Last Place\"." msgstr "ULP は \"Unit in the Last Place\" の略です。" -#: ../../library/math.rst:434 +#: ../../library/math.rst:433 msgid "" "See also :func:`math.nextafter` and :data:`sys.float_info.epsilon `." @@ -1074,15 +1070,15 @@ msgstr "" ":func:`math.nextafter` および :data:`sys.float_info.epsilon ` も参照してください。" -#: ../../library/math.rst:441 +#: ../../library/math.rst:440 msgid "Power, exponential and logarithmic functions" msgstr "" -#: ../../library/math.rst:445 +#: ../../library/math.rst:444 msgid "Return the cube root of *x*." msgstr "*x* の立方根を返します。" -#: ../../library/math.rst:452 +#: ../../library/math.rst:451 msgid "" "Return *e* raised to the power *x*, where *e* = 2.718281... is the base of " "natural logarithms. This is usually more accurate than ``math.e ** x`` or " @@ -1091,11 +1087,11 @@ msgstr "" "*e* = 2.718281... を自然対数の底として、 *e* の *x* 乗を返します。\n" "この値は、通常は ``math.e ** x`` や ``pow(math.e, x)`` よりも精度が高いです。" -#: ../../library/math.rst:459 +#: ../../library/math.rst:458 msgid "Return *2* raised to the power *x*." msgstr "*2* の *x* 乗を返します。" -#: ../../library/math.rst:466 +#: ../../library/math.rst:465 msgid "" "Return *e* raised to the power *x*, minus 1. Here *e* is the base of " "natural logarithms. For small floats *x*, the subtraction in ``exp(x) - 1`` " @@ -1104,11 +1100,11 @@ msgid "" "compute this quantity to full precision:" msgstr "" -#: ../../library/math.rst:483 +#: ../../library/math.rst:482 msgid "With one argument, return the natural logarithm of *x* (to base *e*)." msgstr "引数が1つの場合、*x* の (*e* を底とする)自然対数を返します。" -#: ../../library/math.rst:485 +#: ../../library/math.rst:484 msgid "" "With two arguments, return the logarithm of *x* to the given *base*, " "calculated as ``log(x)/log(base)``." @@ -1116,7 +1112,7 @@ msgstr "" "引数が2つの場合、``log(x)/log(base)`` として求められる *base* を底とした *x* " "の対数を返します。" -#: ../../library/math.rst:491 +#: ../../library/math.rst:490 msgid "" "Return the natural logarithm of *1+x* (base *e*). The result is calculated " "in a way which is accurate for *x* near zero." @@ -1124,7 +1120,7 @@ msgstr "" "*1+x* の自然対数(つまり底 *e* の対数)を返します。結果はゼロに近い *x* に対し" "て正確になるような方法で計算されます。" -#: ../../library/math.rst:497 +#: ../../library/math.rst:496 msgid "" "Return the base-2 logarithm of *x*. This is usually more accurate than " "``log(x, 2)``." @@ -1132,7 +1128,7 @@ msgstr "" "2を底とする *x* の対数を返します。この関数は、一般に ``log(x, 2)`` よりも正確" "な値を返します。" -#: ../../library/math.rst:504 +#: ../../library/math.rst:503 msgid "" ":meth:`int.bit_length` returns the number of bits necessary to represent an " "integer in binary, excluding the sign and leading zeros." @@ -1140,7 +1136,7 @@ msgstr "" ":meth:`int.bit_length` は、その整数を二進法で表すのに何ビット必要かを返す関数" "です。符号と先頭のゼロは無視されます。" -#: ../../library/math.rst:510 +#: ../../library/math.rst:509 msgid "" "Return the base-10 logarithm of *x*. This is usually more accurate than " "``log(x, 10)``." @@ -1148,7 +1144,7 @@ msgstr "" "*x* の10を底とした対数(常用対数)を返します。この関数は通常、``log(x, 10)`` よ" "りも高精度です。" -#: ../../library/math.rst:516 +#: ../../library/math.rst:515 msgid "" "Return *x* raised to the power *y*. Exceptional cases follow the IEEE 754 " "standard as far as possible. In particular, ``pow(1.0, x)`` and ``pow(x, " @@ -1157,7 +1153,7 @@ msgid "" "y)`` is undefined, and raises :exc:`ValueError`." msgstr "" -#: ../../library/math.rst:523 +#: ../../library/math.rst:522 msgid "" "Unlike the built-in ``**`` operator, :func:`math.pow` converts both its " "arguments to type :class:`float`. Use ``**`` or the built-in :func:`pow` " @@ -1167,7 +1163,7 @@ msgstr "" "`float` 型に変換します。正確な整数の冪乗を計算するには ``**`` もしくは組み込" "みの :func:`pow` 関数を使ってください。" -#: ../../library/math.rst:527 +#: ../../library/math.rst:526 msgid "" "The special cases ``pow(0.0, -inf)`` and ``pow(-0.0, -inf)`` were changed to " "return ``inf`` instead of raising :exc:`ValueError`, for consistency with " @@ -1177,15 +1173,15 @@ msgstr "" "``pow(-0.0, -inf)`` は :exc:`ValueError` を送出する代わりに ``inf`` を返すよ" "うに変更されました。" -#: ../../library/math.rst:535 +#: ../../library/math.rst:534 msgid "Return the square root of *x*." msgstr "*x* の平方根を返します。" -#: ../../library/math.rst:539 +#: ../../library/math.rst:538 msgid "Summation and product functions" msgstr "" -#: ../../library/math.rst:543 +#: ../../library/math.rst:542 msgid "" "Return the Euclidean distance between two points *p* and *q*, each given as " "a sequence (or iterable) of coordinates. The two points must have the same " @@ -1194,21 +1190,21 @@ msgstr "" "それぞれ座標のシーケンス (またはイテラブル) として与えられる点 *p* と *q* の" "間のユークリッド距離を返します。二点の次元は同じでなければなりません。" -#: ../../library/math.rst:547 ../../library/math.rst:608 +#: ../../library/math.rst:546 ../../library/math.rst:607 msgid "Roughly equivalent to::" msgstr "およそ次と等価です::" -#: ../../library/math.rst:549 +#: ../../library/math.rst:548 msgid "sqrt(sum((px - qx) ** 2.0 for px, qx in zip(p, q)))" msgstr "" -#: ../../library/math.rst:556 +#: ../../library/math.rst:555 msgid "" "Return an accurate floating-point sum of values in the iterable. Avoids " "loss of precision by tracking multiple intermediate partial sums." msgstr "" -#: ../../library/math.rst:559 +#: ../../library/math.rst:558 msgid "" "The algorithm's accuracy depends on IEEE-754 arithmetic guarantees and the " "typical case where the rounding mode is half-even. On some non-Windows " @@ -1221,7 +1217,7 @@ msgstr "" "層の C ライブラリが拡張精度の加算を行い、時々計算途中の和を double 型へ丸めて" "しまうため、最下位ビットが消失することがあります。" -#: ../../library/math.rst:565 +#: ../../library/math.rst:564 msgid "" "For further discussion and two alternative approaches, see the `ASPN " "cookbook recipes for accurate floating-point summation `_\\." msgstr "" -#: ../../library/math.rst:572 +#: ../../library/math.rst:571 msgid "" "Return the Euclidean norm, ``sqrt(sum(x**2 for x in coordinates))``. This is " "the length of the vector from the origin to the point given by the " @@ -1238,7 +1234,7 @@ msgstr "" "ユークリッドノルム ``sqrt(sum(x**2 for x in coordinates))`` を返します。これ" "は原点から座標で与えられる点までのベクトルの長さです。" -#: ../../library/math.rst:576 +#: ../../library/math.rst:575 msgid "" "For a two dimensional point ``(x, y)``, this is equivalent to computing the " "hypotenuse of a right triangle using the Pythagorean theorem, ``sqrt(x*x + " @@ -1247,7 +1243,7 @@ msgstr "" "二次元の点 ``(x, y)`` では、これは直角三角形の斜辺をピタゴラスの定理 " "``sqrt(x*x + y*y)`` を用いて計算することと等価です。" -#: ../../library/math.rst:580 +#: ../../library/math.rst:579 msgid "" "Added support for n-dimensional points. Formerly, only the two dimensional " "case was supported." @@ -1255,7 +1251,7 @@ msgstr "" "n 次元の点のサポートが追加されました。以前は、二次元の場合しかサポートされて" "いませんでした。" -#: ../../library/math.rst:584 +#: ../../library/math.rst:583 msgid "" "Improved the algorithm's accuracy so that the maximum error is under 1 ulp " "(unit in the last place). More typically, the result is almost always " @@ -1264,7 +1260,7 @@ msgstr "" "アルゴリズムの精度を改良し、最大の誤差が 1 ulp (最終桁単位) 未満になりまし" "た。より一般的には、結果はほとんどの場合に 1/2 ulp 以内に正しく丸められます。" -#: ../../library/math.rst:592 +#: ../../library/math.rst:591 msgid "" "Calculate the product of all the elements in the input *iterable*. The " "default *start* value for the product is ``1``." @@ -1272,7 +1268,7 @@ msgstr "" "入力 *iterable* の全ての要素の積を計算します。積のデフォルト *start* 値は " "``1`` です。" -#: ../../library/math.rst:595 +#: ../../library/math.rst:594 msgid "" "When the iterable is empty, return the start value. This function is " "intended specifically for use with numeric values and may reject non-numeric " @@ -1281,61 +1277,61 @@ msgstr "" "イテラブルが空のとき、初期値を返します。この関数は特に数値に使うことを意図さ" "れており、非数値を受け付けないことがあります。" -#: ../../library/math.rst:604 +#: ../../library/math.rst:603 msgid "Return the sum of products of values from two iterables *p* and *q*." msgstr "" -#: ../../library/math.rst:606 +#: ../../library/math.rst:605 msgid "Raises :exc:`ValueError` if the inputs do not have the same length." msgstr "" -#: ../../library/math.rst:610 +#: ../../library/math.rst:609 msgid "sum(map(operator.mul, p, q, strict=True))" msgstr "" -#: ../../library/math.rst:612 +#: ../../library/math.rst:611 msgid "" "For float and mixed int/float inputs, the intermediate products and sums are " "computed with extended precision." msgstr "" -#: ../../library/math.rst:619 +#: ../../library/math.rst:618 msgid "Angular conversion" msgstr "角度変換" -#: ../../library/math.rst:623 +#: ../../library/math.rst:622 msgid "Convert angle *x* from radians to degrees." msgstr "角 *x* をラジアンから度に変換します。" -#: ../../library/math.rst:628 +#: ../../library/math.rst:627 msgid "Convert angle *x* from degrees to radians." msgstr "角 *x* を度からラジアンに変換します。" -#: ../../library/math.rst:632 +#: ../../library/math.rst:631 msgid "Trigonometric functions" msgstr "三角関数" -#: ../../library/math.rst:636 +#: ../../library/math.rst:635 msgid "" "Return the arc cosine of *x*, in radians. The result is between ``0`` and " "``pi``." msgstr "*x* の逆余弦を、ラジアンで返します。結果は ``0`` と ``pi`` の間です。" -#: ../../library/math.rst:642 +#: ../../library/math.rst:641 msgid "" "Return the arc sine of *x*, in radians. The result is between ``-pi/2`` and " "``pi/2``." msgstr "" "*x* の逆正弦を、ラジアンで返します。結果は ``-pi/2`` と ``pi/2`` の間です。" -#: ../../library/math.rst:648 +#: ../../library/math.rst:647 msgid "" "Return the arc tangent of *x*, in radians. The result is between ``-pi/2`` " "and ``pi/2``." msgstr "" "*x* の逆正接を、ラジアンで返します。結果は ``-pi/2`` と ``pi/2`` の間です。" -#: ../../library/math.rst:654 +#: ../../library/math.rst:653 msgid "" "Return ``atan(y / x)``, in radians. The result is between ``-pi`` and " "``pi``. The vector in the plane from the origin to point ``(x, y)`` makes " @@ -1351,58 +1347,58 @@ msgstr "" "``atan(1)`` と ``atan2(1, 1)`` はいずれも ``pi/4`` ですが、 ``atan2(-1, " "-1)`` は ``-3*pi/4`` になります。" -#: ../../library/math.rst:664 +#: ../../library/math.rst:663 msgid "Return the cosine of *x* radians." msgstr "*x* ラジアンの余弦を返します。" -#: ../../library/math.rst:669 +#: ../../library/math.rst:668 msgid "Return the sine of *x* radians." msgstr "*x* ラジアンの正弦を返します。" -#: ../../library/math.rst:674 +#: ../../library/math.rst:673 msgid "Return the tangent of *x* radians." msgstr "*x* ラジアンの正接を返します。" -#: ../../library/math.rst:678 +#: ../../library/math.rst:677 msgid "Hyperbolic functions" msgstr "双曲線関数" -#: ../../library/math.rst:680 +#: ../../library/math.rst:679 msgid "" "`Hyperbolic functions `_ " "are analogs of trigonometric functions that are based on hyperbolas instead " "of circles." msgstr "" -#: ../../library/math.rst:686 +#: ../../library/math.rst:685 msgid "Return the inverse hyperbolic cosine of *x*." msgstr "*x* の逆双曲線余弦を返します。" -#: ../../library/math.rst:691 +#: ../../library/math.rst:690 msgid "Return the inverse hyperbolic sine of *x*." msgstr "*x* の逆双曲線正弦を返します。" -#: ../../library/math.rst:696 +#: ../../library/math.rst:695 msgid "Return the inverse hyperbolic tangent of *x*." msgstr "*x* の逆双曲線正接を返します。" -#: ../../library/math.rst:701 +#: ../../library/math.rst:700 msgid "Return the hyperbolic cosine of *x*." msgstr "*x* の双曲線余弦を返します。" -#: ../../library/math.rst:706 +#: ../../library/math.rst:705 msgid "Return the hyperbolic sine of *x*." msgstr "*x* の双曲線正弦を返します。" -#: ../../library/math.rst:711 +#: ../../library/math.rst:710 msgid "Return the hyperbolic tangent of *x*." msgstr "*x* の双曲線正接を返します。" -#: ../../library/math.rst:715 +#: ../../library/math.rst:714 msgid "Special functions" msgstr "特殊関数" -#: ../../library/math.rst:719 +#: ../../library/math.rst:718 msgid "" "Return the `error function `_ " "at *x*." @@ -1410,21 +1406,21 @@ msgstr "" "*x* の `誤差関数 `_ を返します。" -#: ../../library/math.rst:722 +#: ../../library/math.rst:721 msgid "" "The :func:`erf` function can be used to compute traditional statistical " "functions such as the `cumulative standard normal distribution `_::" msgstr "" -#: ../../library/math.rst:726 +#: ../../library/math.rst:725 msgid "" "def phi(x):\n" " 'Cumulative distribution function for the standard normal distribution'\n" " return (1.0 + erf(x / sqrt(2.0))) / 2.0" msgstr "" -#: ../../library/math.rst:735 +#: ../../library/math.rst:734 msgid "" "Return the complementary error function at *x*. The `complementary error " "function `_ is defined as " @@ -1438,7 +1434,7 @@ msgstr "" "%E8%AA%A4%E5%B7%AE#.E6.A1.81.E8.90.BD.E3.81.A1>`_ をするような大きな *x* に対" "し使われます。" -#: ../../library/math.rst:746 +#: ../../library/math.rst:745 msgid "" "Return the `Gamma function `_ " "at *x*." @@ -1446,25 +1442,25 @@ msgstr "" "*x* の `ガンマ関数 `_ を返します。" -#: ../../library/math.rst:754 +#: ../../library/math.rst:753 msgid "" "Return the natural logarithm of the absolute value of the Gamma function at " "*x*." msgstr "*x* のガンマ関数の絶対値の自然対数を返します。" -#: ../../library/math.rst:761 +#: ../../library/math.rst:760 msgid "Constants" msgstr "定数" -#: ../../library/math.rst:765 +#: ../../library/math.rst:764 msgid "The mathematical constant *π* = 3.141592..., to available precision." msgstr "利用可能なだけの精度の数学定数 *π* = 3.141592... (円周率)。" -#: ../../library/math.rst:770 +#: ../../library/math.rst:769 msgid "The mathematical constant *e* = 2.718281..., to available precision." msgstr "利用可能なだけの精度の数学定数 *e* = 2.718281... (自然対数の底)。" -#: ../../library/math.rst:775 +#: ../../library/math.rst:774 msgid "" "The mathematical constant *τ* = 6.283185..., to available precision. Tau is " "a circle constant equal to 2\\ *π*, the ratio of a circle's circumference to " @@ -1478,7 +1474,7 @@ msgstr "" "youtube.com/watch?v=jG7vhMMXagQ>`_ をチェックして、パイを二倍食べて `Tau day " "`_ を祝い始めましょう!" -#: ../../library/math.rst:786 +#: ../../library/math.rst:785 msgid "" "A floating-point positive infinity. (For negative infinity, use ``-math." "inf``.) Equivalent to the output of ``float('inf')``." @@ -1486,7 +1482,7 @@ msgstr "" "浮動小数の正の無限大です。(負の無限大には ``-math.inf`` を使います。) " "``float('inf')`` の出力と等価です。" -#: ../../library/math.rst:794 +#: ../../library/math.rst:793 msgid "" "A floating-point \"not a number\" (NaN) value. Equivalent to the output of " "``float('nan')``. Due to the requirements of the `IEEE-754 standard , 2025\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../library/mimetypes.rst:2 diff --git a/library/mm.po b/library/mm.po index 9cd2fc6b2..7a750dafc 100644 --- a/library/mm.po +++ b/library/mm.po @@ -16,10 +16,10 @@ msgstr "" "Last-Translator: tomo, 2021\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../library/mm.rst:5 diff --git a/library/mmap.po b/library/mmap.po index 6b6cfdc97..63fbf7401 100644 --- a/library/mmap.po +++ b/library/mmap.po @@ -1,5 +1,5 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2025, Python Software Foundation +# Copyright (C) 2001 Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # @@ -13,17 +13,17 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: Python 3.13\n" +"Project-Id-Version: Python 3.14\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2025-05-02 14:19+0000\n" +"POT-Creation-Date: 2025-05-23 14:20+0000\n" "PO-Revision-Date: 2021-06-28 01:09+0000\n" "Last-Translator: Arihiro TAKASE, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../library/mmap.rst:2 diff --git a/library/modulefinder.po b/library/modulefinder.po index e519c15e0..662d5bf0f 100644 --- a/library/modulefinder.po +++ b/library/modulefinder.po @@ -1,5 +1,5 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2025, Python Software Foundation +# Copyright (C) 2001 Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # @@ -10,17 +10,17 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: Python 3.13\n" +"Project-Id-Version: Python 3.14\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2025-05-02 14:19+0000\n" +"POT-Creation-Date: 2025-05-23 14:20+0000\n" "PO-Revision-Date: 2021-06-28 01:09+0000\n" "Last-Translator: 石井明久, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../library/modulefinder.rst:2 diff --git a/library/modules.po b/library/modules.po index fc63ef243..b677db939 100644 --- a/library/modules.po +++ b/library/modules.po @@ -16,10 +16,10 @@ msgstr "" "Last-Translator: tomo, 2021\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../library/modules.rst:5 diff --git a/library/msilib.po b/library/msilib.po index 908d3d40e..49801b9ff 100644 --- a/library/msilib.po +++ b/library/msilib.po @@ -1,21 +1,21 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2025, Python Software Foundation +# Copyright (C) 2001 Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # #, fuzzy msgid "" msgstr "" -"Project-Id-Version: Python 3.13\n" +"Project-Id-Version: Python 3.14\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2025-05-02 14:19+0000\n" +"POT-Creation-Date: 2025-05-23 14:20+0000\n" "PO-Revision-Date: 2024-11-19 01:03+0000\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../library/msilib.rst:2 diff --git a/library/msvcrt.po b/library/msvcrt.po index 9ce94630d..f75476c36 100644 --- a/library/msvcrt.po +++ b/library/msvcrt.po @@ -1,5 +1,5 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2025, Python Software Foundation +# Copyright (C) 2001 Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # @@ -11,17 +11,17 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: Python 3.13\n" +"Project-Id-Version: Python 3.14\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2025-05-02 14:19+0000\n" +"POT-Creation-Date: 2025-05-23 14:20+0000\n" "PO-Revision-Date: 2021-06-28 01:09+0000\n" "Last-Translator: Arihiro TAKASE, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../library/msvcrt.rst:2 diff --git a/library/multiprocessing.po b/library/multiprocessing.po index 36ea743a6..d198cf570 100644 --- a/library/multiprocessing.po +++ b/library/multiprocessing.po @@ -22,10 +22,10 @@ msgstr "" "Last-Translator: tomo, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../library/multiprocessing.rst:2 diff --git a/library/multiprocessing.shared_memory.po b/library/multiprocessing.shared_memory.po index 92097ee69..fe4ad18c5 100644 --- a/library/multiprocessing.shared_memory.po +++ b/library/multiprocessing.shared_memory.po @@ -1,5 +1,5 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2025, Python Software Foundation +# Copyright (C) 2001 Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # @@ -11,17 +11,17 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: Python 3.13\n" +"Project-Id-Version: Python 3.14\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2025-05-02 14:19+0000\n" +"POT-Creation-Date: 2025-05-23 14:20+0000\n" "PO-Revision-Date: 2021-06-28 01:10+0000\n" "Last-Translator: 石井明久, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../library/multiprocessing.shared_memory.rst:2 diff --git a/library/netdata.po b/library/netdata.po index 56121038e..81aae2d48 100644 --- a/library/netdata.po +++ b/library/netdata.po @@ -16,10 +16,10 @@ msgstr "" "Last-Translator: tomo, 2021\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../library/netdata.rst:6 diff --git a/library/netrc.po b/library/netrc.po index a64b3631d..a7cb14e80 100644 --- a/library/netrc.po +++ b/library/netrc.po @@ -1,5 +1,5 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2025, Python Software Foundation +# Copyright (C) 2001 Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # @@ -10,17 +10,17 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: Python 3.13\n" +"Project-Id-Version: Python 3.14\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2025-05-02 14:19+0000\n" +"POT-Creation-Date: 2025-05-23 14:20+0000\n" "PO-Revision-Date: 2021-06-28 01:10+0000\n" "Last-Translator: 石井明久, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../library/netrc.rst:2 diff --git a/library/nis.po b/library/nis.po index a9e8a49e6..118a20446 100644 --- a/library/nis.po +++ b/library/nis.po @@ -1,21 +1,21 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2025, Python Software Foundation +# Copyright (C) 2001 Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # #, fuzzy msgid "" msgstr "" -"Project-Id-Version: Python 3.13\n" +"Project-Id-Version: Python 3.14\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2025-05-02 14:19+0000\n" +"POT-Creation-Date: 2025-05-23 14:20+0000\n" "PO-Revision-Date: 2024-11-19 01:03+0000\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../library/nis.rst:2 diff --git a/library/nntplib.po b/library/nntplib.po index 95d363094..e9a45ec12 100644 --- a/library/nntplib.po +++ b/library/nntplib.po @@ -1,21 +1,21 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2025, Python Software Foundation +# Copyright (C) 2001 Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # #, fuzzy msgid "" msgstr "" -"Project-Id-Version: Python 3.13\n" +"Project-Id-Version: Python 3.14\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2025-05-02 14:19+0000\n" +"POT-Creation-Date: 2025-05-23 14:20+0000\n" "PO-Revision-Date: 2024-11-19 01:03+0000\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../library/nntplib.rst:2 diff --git a/library/numbers.po b/library/numbers.po index aa8e0cd67..bf46c0076 100644 --- a/library/numbers.po +++ b/library/numbers.po @@ -1,5 +1,5 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2025, Python Software Foundation +# Copyright (C) 2001 Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # @@ -12,17 +12,17 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: Python 3.13\n" +"Project-Id-Version: Python 3.14\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2025-04-25 14:19+0000\n" +"POT-Creation-Date: 2025-05-16 14:19+0000\n" "PO-Revision-Date: 2021-06-28 01:10+0000\n" "Last-Translator: 石井明久, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../library/numbers.rst:2 diff --git a/library/numeric.po b/library/numeric.po index 29a0777de..6aa06b738 100644 --- a/library/numeric.po +++ b/library/numeric.po @@ -16,10 +16,10 @@ msgstr "" "Last-Translator: tomo, 2021\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../library/numeric.rst:6 diff --git a/library/operator.po b/library/operator.po index 11ae39250..fb3c0569c 100644 --- a/library/operator.po +++ b/library/operator.po @@ -17,10 +17,10 @@ msgstr "" "Last-Translator: 石井明久, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../library/operator.rst:2 diff --git a/library/optparse.po b/library/optparse.po index f96cbf802..24ff8662e 100644 --- a/library/optparse.po +++ b/library/optparse.po @@ -1,5 +1,5 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2025, Python Software Foundation +# Copyright (C) 2001 Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # @@ -11,17 +11,17 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: Python 3.13\n" +"Project-Id-Version: Python 3.14\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2025-04-25 14:19+0000\n" +"POT-Creation-Date: 2025-05-16 14:19+0000\n" "PO-Revision-Date: 2021-06-28 01:10+0000\n" "Last-Translator: tomo, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../library/optparse.rst:2 diff --git a/library/os.path.po b/library/os.path.po index 49ddf8d90..3dcafe6ca 100644 --- a/library/os.path.po +++ b/library/os.path.po @@ -1,5 +1,5 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2025, Python Software Foundation +# Copyright (C) 2001 Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # @@ -17,17 +17,17 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: Python 3.13\n" +"Project-Id-Version: Python 3.14\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2025-05-02 14:19+0000\n" +"POT-Creation-Date: 2025-05-23 14:20+0000\n" "PO-Revision-Date: 2021-06-28 01:10+0000\n" "Last-Translator: Takeshi Nakazato, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../library/os.path.rst:2 diff --git a/library/os.po b/library/os.po index 6b43a5b77..55e2adee0 100644 --- a/library/os.po +++ b/library/os.po @@ -25,10 +25,10 @@ msgstr "" "Last-Translator: Arihiro TAKASE, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../library/os.rst:2 @@ -109,6 +109,12 @@ msgid "" "getpid` are emulated or stubs. WebAssembly platforms also lack support for " "signals (e.g. :func:`~os.kill`, :func:`~os.wait`)." msgstr "" +"WebAssembly プラットフォーム、Android、iOSにおいては、:mod:`os` モジュールの" +"大部分は利用不可能か、異なる振る舞いをします。プロセスに関連する API (:func:" +"`~os.fork` や :func:`~os.execve` など) やリソース (:func:`~os.nice` など) は" +"利用不可能です。 :func:`~os.getuid` や :func:`~os.getpid` などの他のものは、" +"エミュレートされるか、スタブです。 WebAssembly プラットフォームでは、シグナ" +"ル (:func:`~os.kill` や :func:`~os.wait` など) のサポートもありません。" #: ../../library/os.rst:47 msgid "" @@ -173,6 +179,11 @@ msgid "" "filesystem_encoding` and :c:member:`~PyConfig.filesystem_errors` members of :" "c:type:`PyConfig`." msgstr "" +"term:`ファイルシステムのエンコーディングとエラーハンドラ ` は、Pythonの開始時に:c:func:`PyConfig_Read` 関数" +"により設定されます。 :c:type:`PyConfig` のメンバー :c:member:`~PyConfig." +"filesystem_encoding` と :c:member:`~PyConfig.filesystem_errors` を参照してく" +"ださい。" #: ../../library/os.rst:87 msgid "" @@ -493,7 +504,7 @@ msgid "" msgstr "" "FreeBSD や macOS など一部のプラットフォームでは ``environ`` の値を変更すると" "メモリリークが発生する可能性があります。各システムのドキュメントで :c:func:`!" -"putenv` の項目を参照してください。 " +"putenv` の項目を参照してください。" #: ../../library/os.rst:220 msgid "" @@ -884,7 +895,7 @@ msgid "" msgstr "" "FreeBSD や macOS など一部のプラットフォームでは ``environ`` の値を変更すると" "メモリリークが発生する可能性があります。\n" -"各システムのドキュメントで :c:func:`!putenv` の項目を参照してください。 " +"各システムのドキュメントで :c:func:`!putenv` の項目を参照してください。" #: ../../library/os.rst:594 msgid "" @@ -892,7 +903,7 @@ msgid "" "``key``, ``value``." msgstr "" "引数 ``key``, ``value`` を指定して :ref:`監査イベント ` ``os." -"putenv`` を送出します。 " +"putenv`` を送出します。" #: ../../library/os.rst:596 msgid "The function is now always available." @@ -1178,7 +1189,7 @@ msgid "" "``key``." msgstr "" "引数 ``key`` を指定して :ref:`監査イベント ` ``os.unsetenv`` を送出" -"します。 " +"します。" #: ../../library/os.rst:841 msgid "The function is now always available and is also available on Windows." @@ -1426,7 +1437,7 @@ msgid "" "``path``, ``mode``, ``dir_fd``." msgstr "" "引数 ``path``, ``mode``, ``dir_fd`` を指定して :ref:`監査イベント " -"` ``os.chmod`` を送出します。 " +"` ``os.chmod`` を送出します。" #: ../../library/os.rst:1038 ../../library/os.rst:1056 #: ../../library/os.rst:1147 ../../library/os.rst:1759 @@ -1459,7 +1470,7 @@ msgid "" "``path``, ``uid``, ``gid``, ``dir_fd``." msgstr "" "引数 ``path``, ``uid``, ``gid``, ``dir_fd`` を指定して :ref:`監査イベント " -"` ``os.chown`` を送出します。 " +"` ``os.chown`` を送出します。" #: ../../library/os.rst:1062 msgid "" @@ -1569,7 +1580,7 @@ msgid "" "``fd``, ``length``." msgstr "" "引数 ``fd``, ``length`` を指定して :ref:`監査イベント ` ``os." -"truncate`` を送出します。 " +"truncate`` を送出します。" #: ../../library/os.rst:1134 ../../library/os.rst:3571 msgid "Added support for Windows" @@ -1636,7 +1647,7 @@ msgid "" "``fd``, ``cmd``, ``len``." msgstr "" "引数 ``fd``, ``cmd``, ``len`` を指定して :ref:`監査イベント ` ``os." -"lockf`` を送出します。 " +"lockf`` を送出します。" #: ../../library/os.rst:1197 msgid "Flags that specify what action :func:`lockf` will take." @@ -1788,7 +1799,7 @@ msgid "" "``mode``, ``flags``." msgstr "" "引数 ``path``, ``mode``, ``flags`` を指定して :ref:`監査イベント ` " -"``open`` を送出します。 " +"``open`` を送出します。" #: ../../library/os.rst:1298 msgid "" @@ -2828,7 +2839,7 @@ msgid "" "``path``." msgstr "" "引数 ``path`` を指定して :ref:`監査イベント ` ``os.chdir`` を送出し" -"ます。 " +"ます。" #: ../../library/os.rst:2130 msgid "" @@ -2907,7 +2918,7 @@ msgid "" "``path``, ``flags``." msgstr "" "引数 ``path``, ``flags`` を指定して :ref:`監査イベント ` ``os." -"chflags`` を送出します。 " +"chflags`` を送出します。" #: ../../library/os.rst:2162 msgid "Added the *follow_symlinks* parameter." @@ -3140,7 +3151,7 @@ msgid "" "``src``, ``dst``, ``src_dir_fd``, ``dst_dir_fd``." msgstr "" "引数 ``src``, ``dst``, ``src_dir_fd``, ``dst_dir_fd`` を指定して :ref:`監査イ" -"ベント ` ``os.link`` を送出します。 " +"ベント ` ``os.link`` を送出します。" #: ../../library/os.rst:2347 ../../library/os.rst:4617 msgid "Added Windows support." @@ -3196,7 +3207,7 @@ msgid "" "``path``." msgstr "" "引数 ``path`` を指定して :ref:`監査イベント ` ``os.listdir`` を送出" -"します。 " +"します。" #: ../../library/os.rst:2376 msgid "To encode ``str`` filenames to ``bytes``, use :func:`~os.fsencode`." @@ -3388,7 +3399,7 @@ msgid "" "``path``, ``mode``, ``dir_fd``." msgstr "" "引数 ``path``, ``mode``, ``dir_fd`` を指定して :ref:`監査イベント " -"` ``os.mkdir`` を送出します。 " +"` ``os.mkdir`` を送出します。" #: ../../library/os.rst:2525 msgid "Windows now handles a *mode* of ``0o700``." @@ -3627,7 +3638,7 @@ msgid "" "``path``, ``dir_fd``." msgstr "" "引数 ``path``, ``dir_fd`` を指定して :ref:`監査イベント ` ``os." -"remove`` を送出します。 " +"remove`` を送出します。" #: ../../library/os.rst:2734 msgid "" @@ -3697,7 +3708,7 @@ msgid "" "``src``, ``dst``, ``src_dir_fd``, ``dst_dir_fd``." msgstr "" "引数 ``src``, ``dst``, ``src_dir_fd``, ``dst_dir_fd`` を指定して :ref:`監査イ" -"ベント ` ``os.rename`` を送出します。 " +"ベント ` ``os.rename`` を送出します。" #: ../../library/os.rst:2774 msgid "Added the *src_dir_fd* and *dst_dir_fd* parameters." @@ -3757,7 +3768,7 @@ msgid "" "``path``, ``dir_fd``." msgstr "" "引数 ``path``, ``dir_fd`` を指定して :ref:`監査イベント ` ``os." -"rmdir`` を送出します。 " +"rmdir`` を送出します。" #: ../../library/os.rst:2839 msgid "" @@ -3805,7 +3816,7 @@ msgid "" "``path``." msgstr "" "引数 ``path`` を指定して :ref:`監査イベント ` ``os.scandir`` を送出" -"します。 " +"します。" #: ../../library/os.rst:2867 msgid "" @@ -4763,7 +4774,7 @@ msgid "" "``src``, ``dst``, ``dir_fd``." msgstr "" "引数 ``src``, ``dst``, ``dir_fd`` を指定して :ref:`監査イベント ` " -"``os.symlink`` を送出します。 " +"``os.symlink`` を送出します。" #: ../../library/os.rst:3538 msgid "" @@ -4793,7 +4804,7 @@ msgid "" "``path``, ``length``." msgstr "" "引数 ``path``, ``length`` を指定して :ref:`監査イベント ` ``os." -"truncate`` を送出します。 " +"truncate`` を送出します。" #: ../../library/os.rst:3580 msgid "" @@ -4801,9 +4812,9 @@ msgid "" "to :func:`remove`; the ``unlink`` name is its traditional Unix name. Please " "see the documentation for :func:`remove` for further information." msgstr "" -"ファイル *path* を削除します。意味上は :func:`remove` と等価です。 " -"``unlink`` の名前は伝統的な Unix の関数名です。詳細は :func:`remove` のドキュ" -"メントを参照してください。" +"ファイル *path* を削除します。意味上は :func:`remove` と等価です。``unlink`` " +"の名前は伝統的な Unix の関数名です。詳細は :func:`remove` のドキュメントを参" +"照してください。" #: ../../library/os.rst:3596 msgid "Set the access and modified times of the file specified by *path*." @@ -4868,7 +4879,7 @@ msgid "" "``path``, ``times``, ``ns``, ``dir_fd``." msgstr "" "引数 ``path``, ``times``, ``ns``, ``dir_fd`` を指定して :ref:`監査イベント " -"` ``os.utime`` を送出します。 " +"` ``os.utime`` を送出します。" #: ../../library/os.rst:3626 msgid "" @@ -4915,7 +4926,7 @@ msgid "" "its subdirectories are generated." msgstr "" "オプション引数 *topdown* が ``True`` であるか、指定されなかった場合、各ディレ" -"クトリからタプルを生成した後で、サブディレクトリからタプルを生成します。 " +"クトリからタプルを生成した後で、サブディレクトリからタプルを生成します。" "( ディレクトリはトップダウンで生成 ) 。 *topdown* が ``False`` の場合、ディレ" "クトリに対応するタプルは、そのディレクトリ以下の全てのサブディレクトリに対応" "するタプルの後で ( ボトムアップで ) 生成されます。 *topdown* の値によらず、サ" @@ -5039,7 +5050,7 @@ msgid "" "``top``, ``topdown``, ``onerror``, ``followlinks``." msgstr "" "引数 ``top``, ``topdown``, ``onerror``, ``followlinks`` を指定して :ref:`監査" -"イベント ` ``os.walk`` を送出します。 " +"イベント ` ``os.walk`` を送出します。" #: ../../library/os.rst:3726 msgid "" @@ -5128,7 +5139,7 @@ msgid "" "``top``, ``topdown``, ``onerror``, ``follow_symlinks``, ``dir_fd``." msgstr "" "引数 ``top``, ``topdown``, ``onerror``, ``follow_symlinks`` を指定して :ref:`" -"監査イベント ` ``os.fwalk`` を送出します。 " +"監査イベント ` ``os.fwalk`` を送出します。" #: ../../library/os.rst:3794 msgid "Added support for :class:`bytes` paths." @@ -5556,7 +5567,7 @@ msgid "" "``path``, ``attribute``." msgstr "" "引数 ``path``, ``attribute`` を指定して :ref:`監査イベント ` ``os." -"getxattr`` を送出します。 " +"getxattr`` を送出します。" #: ../../library/os.rst:4172 ../../library/os.rst:4204 #: ../../library/os.rst:4229 @@ -5582,7 +5593,7 @@ msgid "" "``path``." msgstr "" "引数 ``path`` を指定して :ref:`監査イベント ` ``os.listxattr`` を送" -"出します。 " +"出します。" #: ../../library/os.rst:4194 msgid "" @@ -5598,7 +5609,7 @@ msgid "" "``path``, ``attribute``." msgstr "" "引数 ``path``, ``attribute`` を指定して :ref:`監査イベント ` ``os." -"removexattr`` を送出します。 " +"removexattr`` を送出します。" #: ../../library/os.rst:4210 msgid "" @@ -5626,7 +5637,7 @@ msgid "" "``path``, ``attribute``, ``value``, ``flags``." msgstr "" "引数 ``path``, ``attribute``, ``value``, ``flags`` を指定して :ref:`監査イベ" -"ント ` ``os.setxattr`` を送出します。 " +"ント ` ``os.setxattr`` を送出します。" #: ../../library/os.rst:4235 msgid "" @@ -5721,7 +5732,7 @@ msgid "" "argument ``path``." msgstr "" "引数 ``path`` を指定して :ref:`監査イベント ` ``os." -"add_dll_directory`` を送出します。 " +"add_dll_directory`` を送出します。" #: ../../library/os.rst:4295 msgid "" @@ -5825,7 +5836,7 @@ msgid "" "``path``, ``args``, ``env``." msgstr "" "引数 ``path``, ``args``, ``env`` を指定して :ref:`監査イベント ` " -"``os.exec`` を送出します。 " +"``os.exec`` を送出します。" #: ../../library/os.rst:4364 msgid "" @@ -5984,7 +5995,7 @@ msgstr "" #: ../../library/os.rst:4527 msgid "" "Raises an :ref:`auditing event ` ``os.fork`` with no arguments." -msgstr "引数無しで :ref:`監査イベント ` ``os.fork`` を送出します。 " +msgstr "引数無しで :ref:`監査イベント ` ``os.fork`` を送出します。" #: ../../library/os.rst:4531 msgid "" @@ -6053,7 +6064,7 @@ msgstr "" msgid "" "Raises an :ref:`auditing event ` ``os.forkpty`` with no arguments." msgstr "" -"引数無しで :ref:`監査イベント ` ``os.forkpty`` を送出します。 " +"引数無しで :ref:`監査イベント ` ``os.forkpty`` を送出します。" #: ../../library/os.rst:4583 msgid "" @@ -6096,7 +6107,7 @@ msgid "" "``pid``, ``sig``." msgstr "" "引数 ``pid``, ``sig`` を指定して :ref:`監査イベント ` ``os.kill`` " -"を送出します。 " +"を送出します。" #: ../../library/os.rst:4627 msgid "Send the signal *sig* to the process group *pgid*." @@ -6108,7 +6119,7 @@ msgid "" "``pgid``, ``sig``." msgstr "" "引数 ``pgid``, ``sig`` を指定して :ref:`監査イベント ` ``os." -"killpg`` を送出します。 " +"killpg`` を送出します。" #: ../../library/os.rst:4636 msgid "" @@ -6356,7 +6367,7 @@ msgid "" "``path``, ``argv``, ``env``." msgstr "" "引数 ``path``, ``argv``, ``env`` を指定して :ref:`監査イベント ` " -"``os.posix_spawn`` を送出します。 " +"``os.posix_spawn`` を送出します。" #: ../../library/os.rst:4807 msgid "" @@ -6536,7 +6547,7 @@ msgid "" "``mode``, ``path``, ``args``, ``env``." msgstr "" "引数 ``mode``, ``path``, ``args``, ``env`` を指定して :ref:`監査イベント " -"` ``os.spawn`` を送出します。 " +"` ``os.spawn`` を送出します。" #: ../../library/os.rst:4932 msgid "" @@ -6654,7 +6665,7 @@ msgid "" "``path``, ``operation``." msgstr "" "引数 ``path``, ``operation`` を指定して :ref:`監査イベント ` ``os." -"startfile`` を送出します。 " +"startfile`` を送出します。" #: ../../library/os.rst:5019 msgid "" @@ -6720,7 +6731,7 @@ msgid "" "``command``." msgstr "" "引数 ``command`` を指定して :ref:`監査イベント ` ``os.system`` を送" -"出します。 " +"出します。" #: ../../library/os.rst:5063 msgid "" diff --git a/library/ossaudiodev.po b/library/ossaudiodev.po index 36af3ee82..d8d32f803 100644 --- a/library/ossaudiodev.po +++ b/library/ossaudiodev.po @@ -1,21 +1,21 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2025, Python Software Foundation +# Copyright (C) 2001 Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # #, fuzzy msgid "" msgstr "" -"Project-Id-Version: Python 3.13\n" +"Project-Id-Version: Python 3.14\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2025-05-02 14:19+0000\n" +"POT-Creation-Date: 2025-05-23 14:20+0000\n" "PO-Revision-Date: 2024-11-19 01:03+0000\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../library/ossaudiodev.rst:2 diff --git a/library/othergui.po b/library/othergui.po index 01d9d8a32..bea0051ef 100644 --- a/library/othergui.po +++ b/library/othergui.po @@ -2,11 +2,11 @@ # Copyright (C) 2001-2021, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # tomo, 2021 # Osamu NAKAMURA, 2021 -# +# #, fuzzy msgid "" msgstr "" @@ -15,11 +15,12 @@ msgstr "" "POT-Creation-Date: 2021-08-03 13:12+0000\n" "PO-Revision-Date: 2021-06-28 01:10+0000\n" "Last-Translator: Osamu NAKAMURA, 2021\n" -"Language-Team: Japanese (https://www.transifex.com/python-doc/teams/5390/ja/)\n" +"Language-Team: Japanese (https://www.transifex.com/python-doc/teams/5390/" +"ja/)\n" +"Language: 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" #: ../../library/othergui.rst:4 @@ -41,13 +42,16 @@ msgid "" "PyGObject provides introspection bindings for C libraries using `GObject " "`_. One of these libraries is " "the `GTK+ 3 `_ widget set. GTK+ comes with many more " -"widgets than Tkinter provides. An online `Python GTK+ 3 Tutorial `_ is available." +"widgets than Tkinter provides. An online `Python GTK+ 3 Tutorial `_ is available." msgstr "" -"PyGObject は `GObject `_ の GObject introspection を利用するバインディングです。\n" -"これらのライブラリの一つが `GTK+ 3 `_ ウィジットセットです。\n" +"PyGObject は `GObject `_ の " +"GObject introspection を利用するバインディングです。\n" +"これらのライブラリの一つが `GTK+ 3 `_ ウィジットセット" +"です。\n" "GTK+ には、Tkinter が提供するよりも多くのウィジェットが付属しています。\n" -"オンラインで利用できる `Python GTK+ 3 Tutorial `_ があります。" +"オンラインで利用できる `Python GTK+ 3 Tutorial `_ があります。" #: ../../library/othergui.rst:24 msgid "`PyGTK `_" @@ -56,15 +60,18 @@ msgstr "`PyGTK `_" #: ../../library/othergui.rst:20 msgid "" "PyGTK provides bindings for an older version of the library, GTK+ 2. It " -"provides an object oriented interface that is slightly higher level than the" -" C one. There are also bindings to `GNOME `_. An " +"provides an object oriented interface that is slightly higher level than the " +"C one. There are also bindings to `GNOME `_. An " "online `tutorial `_ is " "available." msgstr "" -"PyGTK はより古いバージョンであるライブラリ GTK+ 2 に対するバインディングを提供しています。\n" -"それは C での実装よりはやや高級なオブジェクト指向インターフェイスを提供しています。\n" +"PyGTK はより古いバージョンであるライブラリ GTK+ 2 に対するバインディングを提" +"供しています。\n" +"それは C での実装よりはやや高級なオブジェクト指向インターフェイスを提供してい" +"ます。\n" "`GNOME `_ へのバインディングもあります。\n" -"オンラインで利用できる `チュートリアル `_ があります。" +"オンラインで利用できる `チュートリアル `_ があります。" #: ../../library/othergui.rst:31 msgid "`PyQt `_" @@ -75,8 +82,7 @@ msgid "" "PyQt is a :program:`sip`\\ -wrapped binding to the Qt toolkit. Qt is an " "extensive C++ GUI application development framework that is available for " "Unix, Windows and macOS. :program:`sip` is a tool for generating bindings " -"for C++ libraries as Python classes, and is specifically designed for " -"Python." +"for C++ libraries as Python classes, and is specifically designed for Python." msgstr "" #: ../../library/othergui.rst:37 @@ -87,12 +93,14 @@ msgstr "`PySide2 `_" msgid "" "Also known as the Qt for Python project, PySide2 is a newer binding to the " "Qt toolkit. It is provided by The Qt Company and aims to provide a complete " -"port of PySide to Qt 5. Compared to PyQt, its licensing scheme is friendlier" -" to non-open source applications." +"port of PySide to Qt 5. Compared to PyQt, its licensing scheme is friendlier " +"to non-open source applications." msgstr "" -"Python プロジェクトのための Qt としても知られている PySide2 は、Qt ツールキットへのより新しいバインディングです。これは The " -"Qt Company から提供されており、 PySide から Qt 5 への完全な移植を提供することを目標としています。PyQt " -"と比較して、非オープンソースのアプリケーションでより扱いやすいライセンス形態になっています。" +"Python プロジェクトのための Qt としても知られている PySide2 は、Qt ツールキッ" +"トへのより新しいバインディングです。これは The Qt Company から提供されてお" +"り、 PySide から Qt 5 への完全な移植を提供することを目標としています。PyQt と" +"比較して、非オープンソースのアプリケーションでより扱いやすいライセンス形態に" +"なっています。" #: ../../library/othergui.rst:48 msgid "`wxPython `_" @@ -100,8 +108,8 @@ msgstr "`wxPython `_" #: ../../library/othergui.rst:40 msgid "" -"wxPython is a cross-platform GUI toolkit for Python that is built around the" -" popular `wxWidgets `_ (formerly wxWindows) C++ " +"wxPython is a cross-platform GUI toolkit for Python that is built around the " +"popular `wxWidgets `_ (formerly wxWindows) C++ " "toolkit. It provides a native look and feel for applications on Windows, " "macOS, and Unix systems by using each platform's native widgets where ever " "possible, (GTK+ on Unix-like systems). In addition to an extensive set of " @@ -113,15 +121,16 @@ msgstr "" #: ../../library/othergui.rst:51 msgid "" -"PyGTK, PyQt, PySide2, and wxPython, all have a modern look and feel and more" -" widgets than Tkinter. In addition, there are many other GUI toolkits for " -"Python, both cross-platform, and platform-specific. See the `GUI Programming" -" `_ page in the Python Wiki for" -" a much more complete list, and also for links to documents where the " +"PyGTK, PyQt, PySide2, and wxPython, all have a modern look and feel and more " +"widgets than Tkinter. In addition, there are many other GUI toolkits for " +"Python, both cross-platform, and platform-specific. See the `GUI Programming " +"`_ page in the Python Wiki for " +"a much more complete list, and also for links to documents where the " "different GUI toolkits are compared." msgstr "" -"PyGTK、PyQt、PySide2、wxPython は全て現代的なルック&フィールをそなえ、 Tkinter " -"より豊富なウィジェットを持ちます。これらに加えて、他にも Python 用 GUI " -"ツールキットが、クロスプラットフォームのもの、プラットフォーム固有のものを含め、沢山あります。Python Wiki の `GUI " -"Programming `_ " -"ページも参照してください。もっとずっと完全なリストや、GUI ツールキット同士の比較をしたドキュメントへのリンクがあります。" +"PyGTK、PyQt、PySide2、wxPython は全て現代的なルック&フィールをそなえ、 " +"Tkinter より豊富なウィジェットを持ちます。これらに加えて、他にも Python 用 " +"GUI ツールキットが、クロスプラットフォームのもの、プラットフォーム固有のもの" +"を含め、沢山あります。Python Wiki の `GUI Programming `_ ページも参照してください。もっとずっと完全なリスト" +"や、GUI ツールキット同士の比較をしたドキュメントへのリンクがあります。" diff --git a/library/pathlib.po b/library/pathlib.po index 98c831c3c..321616757 100644 --- a/library/pathlib.po +++ b/library/pathlib.po @@ -7,7 +7,7 @@ # Osamu NAKAMURA, 2021 # Naoki Nakamura , 2021 # Masato HASHIMOTO , 2023 -# righteous, 2023 +# digdugdog, 2023 # Tetsuo Koyama , 2024 # Arihiro TAKASE, 2024 # Takanori Suzuki , 2025 @@ -18,15 +18,15 @@ msgid "" msgstr "" "Project-Id-Version: Python 3.14\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2025-05-08 02:53-0300\n" +"POT-Creation-Date: 2025-05-23 14:20+0000\n" "PO-Revision-Date: 2021-06-28 01:11+0000\n" "Last-Translator: tomo, 2025\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../library/pathlib.rst:2 @@ -2551,18 +2551,24 @@ msgid "``[seq]``" msgstr "``[seq]``" #: ../../library/pathlib.rst:1784 -msgid "Matches one character in *seq*." -msgstr "*seq* にある1つの文字にマッチします" +msgid "" +"Matches one character in *seq*, where *seq* is a sequence of characters. " +"Range expressions are supported; for example, ``[a-z]`` matches any " +"lowercase ASCII letter. Multiple ranges can be combined: ``[a-zA-Z0-9_]`` " +"matches any ASCII letter, digit, or underscore." +msgstr "" -#: ../../library/pathlib.rst:1785 +#: ../../library/pathlib.rst:1788 msgid "``[!seq]``" msgstr "``[!seq]``" -#: ../../library/pathlib.rst:1786 -msgid "Matches one character not in *seq*." -msgstr "*seq* にない1つの文字にマッチします" +#: ../../library/pathlib.rst:1789 +msgid "" +"Matches one character not in *seq*, where *seq* follows the same rules as " +"above." +msgstr "" -#: ../../library/pathlib.rst:1788 +#: ../../library/pathlib.rst:1791 msgid "" "For a literal match, wrap the meta-characters in brackets. For example, " "``\"[?]\"`` matches the character ``\"?\"``." @@ -2570,118 +2576,118 @@ msgstr "" "リテラルにマッチさせるには、メタ文字を括弧に入れてください。例えば、" "``\"[?]\"`` は文字 ``\"?\"`` にマッチします。" -#: ../../library/pathlib.rst:1791 +#: ../../library/pathlib.rst:1794 msgid "The \"``**``\" wildcard enables recursive globbing. A few examples:" msgstr "" -#: ../../library/pathlib.rst:1794 +#: ../../library/pathlib.rst:1797 msgid "Pattern" msgstr "Pattern" -#: ../../library/pathlib.rst:1794 +#: ../../library/pathlib.rst:1797 msgid "Meaning" msgstr "意味" -#: ../../library/pathlib.rst:1796 +#: ../../library/pathlib.rst:1799 msgid "\"``**/*``\"" msgstr "\"``**/*``\"" -#: ../../library/pathlib.rst:1796 +#: ../../library/pathlib.rst:1799 msgid "Any path with at least one segment." msgstr "1つ以上の要素がある任意のパス。" -#: ../../library/pathlib.rst:1797 +#: ../../library/pathlib.rst:1800 msgid "\"``**/*.py``\"" msgstr "\"``**/*.py``\"" -#: ../../library/pathlib.rst:1797 +#: ../../library/pathlib.rst:1800 msgid "Any path with a final segment ending \"``.py``\"." msgstr "最後の要素が \"``.py``\" で終わる任意のパス。" -#: ../../library/pathlib.rst:1798 +#: ../../library/pathlib.rst:1801 msgid "\"``assets/**``\"" msgstr "\"``assets/**``\"" -#: ../../library/pathlib.rst:1798 +#: ../../library/pathlib.rst:1801 msgid "Any path starting with \"``assets/``\"." msgstr "\"``assets/``\" で始まる任意のパス。" -#: ../../library/pathlib.rst:1799 +#: ../../library/pathlib.rst:1802 msgid "\"``assets/**/*``\"" msgstr "\"``assets/**/*``\"" -#: ../../library/pathlib.rst:1799 +#: ../../library/pathlib.rst:1802 msgid "" "Any path starting with \"``assets/``\", excluding \"``assets/``\" itself." msgstr "\"``assets/``\" で始まる任意のパス(\"``assets/``\" 自身を除く)。" -#: ../../library/pathlib.rst:1803 +#: ../../library/pathlib.rst:1806 msgid "" "Globbing with the \"``**``\" wildcard visits every directory in the tree. " "Large directory trees may take a long time to search." msgstr "" -#: ../../library/pathlib.rst:1806 +#: ../../library/pathlib.rst:1809 msgid "" "Globbing with a pattern that ends with \"``**``\" returns both files and " "directories. In previous versions, only directories were returned." msgstr "" -#: ../../library/pathlib.rst:1810 +#: ../../library/pathlib.rst:1813 msgid "" "In :meth:`Path.glob` and :meth:`~Path.rglob`, a trailing slash may be added " "to the pattern to match only directories." msgstr "" -#: ../../library/pathlib.rst:1813 +#: ../../library/pathlib.rst:1816 msgid "" "Globbing with a pattern that ends with a pathname components separator (:" "data:`~os.sep` or :data:`~os.altsep`) returns only directories." msgstr "" -#: ../../library/pathlib.rst:1819 +#: ../../library/pathlib.rst:1822 msgid "Comparison to the :mod:`glob` module" msgstr ":mod:`glob` モジュールとの比較" -#: ../../library/pathlib.rst:1821 +#: ../../library/pathlib.rst:1824 msgid "" "The patterns accepted and results generated by :meth:`Path.glob` and :meth:" "`Path.rglob` differ slightly from those by the :mod:`glob` module:" msgstr "" -#: ../../library/pathlib.rst:1824 +#: ../../library/pathlib.rst:1827 msgid "" "Files beginning with a dot are not special in pathlib. This is like passing " "``include_hidden=True`` to :func:`glob.glob`." msgstr "" -#: ../../library/pathlib.rst:1826 +#: ../../library/pathlib.rst:1829 msgid "" "\"``**``\" pattern components are always recursive in pathlib. This is like " "passing ``recursive=True`` to :func:`glob.glob`." msgstr "" -#: ../../library/pathlib.rst:1828 +#: ../../library/pathlib.rst:1831 msgid "" "\"``**``\" pattern components do not follow symlinks by default in pathlib. " "This behaviour has no equivalent in :func:`glob.glob`, but you can pass " "``recurse_symlinks=True`` to :meth:`Path.glob` for compatible behaviour." msgstr "" -#: ../../library/pathlib.rst:1831 +#: ../../library/pathlib.rst:1834 msgid "" "Like all :class:`PurePath` and :class:`Path` objects, the values returned " "from :meth:`Path.glob` and :meth:`Path.rglob` don't include trailing slashes." msgstr "" -#: ../../library/pathlib.rst:1834 +#: ../../library/pathlib.rst:1837 msgid "" "The values returned from pathlib's ``path.glob()`` and ``path.rglob()`` " "include the *path* as a prefix, unlike the results of ``glob." "glob(root_dir=path)``." msgstr "" -#: ../../library/pathlib.rst:1837 +#: ../../library/pathlib.rst:1840 msgid "" "The values returned from pathlib's ``path.glob()`` and ``path.rglob()`` may " "include *path* itself, for example when globbing \"``**``\", whereas the " @@ -2689,11 +2695,11 @@ msgid "" "would correspond to *path*." msgstr "" -#: ../../library/pathlib.rst:1844 +#: ../../library/pathlib.rst:1847 msgid "Comparison to the :mod:`os` and :mod:`os.path` modules" msgstr ":mod:`os` と :mod:`os.path` モジュールの比較" -#: ../../library/pathlib.rst:1846 +#: ../../library/pathlib.rst:1849 msgid "" "pathlib implements path operations using :class:`PurePath` and :class:`Path` " "objects, and so it's said to be *object-oriented*. On the other hand, the :" @@ -2702,21 +2708,21 @@ msgid "" "Some users consider the object-oriented style to be more readable." msgstr "" -#: ../../library/pathlib.rst:1852 +#: ../../library/pathlib.rst:1855 msgid "" "Many functions in :mod:`os` and :mod:`os.path` support ``bytes`` paths and :" "ref:`paths relative to directory descriptors `. These features " "aren't available in pathlib." msgstr "" -#: ../../library/pathlib.rst:1856 +#: ../../library/pathlib.rst:1859 msgid "" "Python's ``str`` and ``bytes`` types, and portions of the :mod:`os` and :mod:" "`os.path` modules, are written in C and are very speedy. pathlib is written " "in pure Python and is often slower, but rarely slow enough to matter." msgstr "" -#: ../../library/pathlib.rst:1860 +#: ../../library/pathlib.rst:1863 msgid "" "pathlib's path normalization is slightly more opinionated and consistent " "than :mod:`os.path`. For example, whereas :func:`os.path.abspath` eliminates " @@ -2725,12 +2731,12 @@ msgid "" "safety." msgstr "" -#: ../../library/pathlib.rst:1865 +#: ../../library/pathlib.rst:1868 msgid "" "pathlib's path normalization may render it unsuitable for some applications:" msgstr "" -#: ../../library/pathlib.rst:1867 +#: ../../library/pathlib.rst:1870 msgid "" "pathlib normalizes ``Path(\"my_folder/\")`` to ``Path(\"my_folder\")``, " "which changes a path's meaning when supplied to various operating system " @@ -2739,7 +2745,7 @@ msgid "" "rather than a directory only." msgstr "" -#: ../../library/pathlib.rst:1872 +#: ../../library/pathlib.rst:1875 msgid "" "pathlib normalizes ``Path(\"./my_program\")`` to ``Path(\"my_program\")``, " "which changes a path's meaning when used as an executable search path, such " @@ -2748,17 +2754,17 @@ msgid "" "rather than the current directory." msgstr "" -#: ../../library/pathlib.rst:1878 +#: ../../library/pathlib.rst:1881 msgid "" "As a consequence of these differences, pathlib is not a drop-in replacement " "for :mod:`os.path`." msgstr "" -#: ../../library/pathlib.rst:1883 +#: ../../library/pathlib.rst:1886 msgid "Corresponding tools" msgstr "対応するツール" -#: ../../library/pathlib.rst:1885 +#: ../../library/pathlib.rst:1888 msgid "" "Below is a table mapping various :mod:`os` functions to their corresponding :" "class:`PurePath`/:class:`Path` equivalent." @@ -2766,267 +2772,267 @@ msgstr "" "下にあるのは、様々な :mod:`os` 関数とそれに相当する :class:`PurePath` あるい" "は :class:`Path` の同等のものとの対応表です。" -#: ../../library/pathlib.rst:1889 +#: ../../library/pathlib.rst:1892 msgid ":mod:`os` and :mod:`os.path`" msgstr ":mod:`os` と :mod:`os.path`" -#: ../../library/pathlib.rst:1889 +#: ../../library/pathlib.rst:1892 msgid ":mod:`pathlib`" msgstr ":mod:`pathlib`" -#: ../../library/pathlib.rst:1891 +#: ../../library/pathlib.rst:1894 msgid ":func:`os.path.dirname`" msgstr ":func:`os.path.dirname`" -#: ../../library/pathlib.rst:1891 +#: ../../library/pathlib.rst:1894 msgid ":attr:`PurePath.parent`" msgstr ":attr:`PurePath.parent`" -#: ../../library/pathlib.rst:1892 +#: ../../library/pathlib.rst:1895 msgid ":func:`os.path.basename`" msgstr ":func:`os.path.basename`" -#: ../../library/pathlib.rst:1892 +#: ../../library/pathlib.rst:1895 msgid ":attr:`PurePath.name`" msgstr ":attr:`PurePath.name`" -#: ../../library/pathlib.rst:1893 +#: ../../library/pathlib.rst:1896 msgid ":func:`os.path.splitext`" msgstr ":func:`os.path.splitext`" -#: ../../library/pathlib.rst:1893 +#: ../../library/pathlib.rst:1896 msgid ":attr:`PurePath.stem`, :attr:`PurePath.suffix`" msgstr ":attr:`PurePath.stem`, :attr:`PurePath.suffix`" -#: ../../library/pathlib.rst:1894 +#: ../../library/pathlib.rst:1897 msgid ":func:`os.path.join`" msgstr ":func:`os.path.join`" -#: ../../library/pathlib.rst:1894 +#: ../../library/pathlib.rst:1897 msgid ":meth:`PurePath.joinpath`" msgstr ":meth:`PurePath.joinpath`" -#: ../../library/pathlib.rst:1895 +#: ../../library/pathlib.rst:1898 msgid ":func:`os.path.isabs`" msgstr ":func:`os.path.isabs`" -#: ../../library/pathlib.rst:1895 +#: ../../library/pathlib.rst:1898 msgid ":meth:`PurePath.is_absolute`" msgstr ":meth:`PurePath.is_absolute`" -#: ../../library/pathlib.rst:1896 +#: ../../library/pathlib.rst:1899 msgid ":func:`os.path.relpath`" msgstr ":func:`os.path.relpath`" -#: ../../library/pathlib.rst:1896 +#: ../../library/pathlib.rst:1899 msgid ":meth:`PurePath.relative_to` [1]_" msgstr ":meth:`PurePath.relative_to` [1]_" -#: ../../library/pathlib.rst:1897 +#: ../../library/pathlib.rst:1900 msgid ":func:`os.path.expanduser`" msgstr ":func:`os.path.expanduser`" -#: ../../library/pathlib.rst:1897 +#: ../../library/pathlib.rst:1900 msgid ":meth:`Path.expanduser` [2]_" msgstr ":meth:`Path.expanduser` [2]_" -#: ../../library/pathlib.rst:1898 +#: ../../library/pathlib.rst:1901 msgid ":func:`os.path.realpath`" msgstr ":func:`os.path.realpath`" -#: ../../library/pathlib.rst:1898 +#: ../../library/pathlib.rst:1901 msgid ":meth:`Path.resolve`" msgstr ":meth:`Path.resolve`" -#: ../../library/pathlib.rst:1899 +#: ../../library/pathlib.rst:1902 msgid ":func:`os.path.abspath`" msgstr ":func:`os.path.abspath`" -#: ../../library/pathlib.rst:1899 +#: ../../library/pathlib.rst:1902 msgid ":meth:`Path.absolute` [3]_" msgstr ":meth:`Path.absolute` [3]_" -#: ../../library/pathlib.rst:1900 +#: ../../library/pathlib.rst:1903 msgid ":func:`os.path.exists`" msgstr ":func:`os.path.exists`" -#: ../../library/pathlib.rst:1900 +#: ../../library/pathlib.rst:1903 msgid ":meth:`Path.exists`" msgstr ":meth:`Path.exists`" -#: ../../library/pathlib.rst:1901 +#: ../../library/pathlib.rst:1904 msgid ":func:`os.path.isfile`" msgstr ":func:`os.path.isfile`" -#: ../../library/pathlib.rst:1901 +#: ../../library/pathlib.rst:1904 msgid ":meth:`Path.is_file`" msgstr ":meth:`Path.is_file`" -#: ../../library/pathlib.rst:1902 +#: ../../library/pathlib.rst:1905 msgid ":func:`os.path.isdir`" msgstr ":func:`os.path.isdir`" -#: ../../library/pathlib.rst:1902 +#: ../../library/pathlib.rst:1905 msgid ":meth:`Path.is_dir`" msgstr ":meth:`Path.is_dir`" -#: ../../library/pathlib.rst:1903 +#: ../../library/pathlib.rst:1906 msgid ":func:`os.path.islink`" msgstr ":func:`os.path.islink`" -#: ../../library/pathlib.rst:1903 +#: ../../library/pathlib.rst:1906 msgid ":meth:`Path.is_symlink`" msgstr ":meth:`Path.is_symlink`" -#: ../../library/pathlib.rst:1904 +#: ../../library/pathlib.rst:1907 msgid ":func:`os.path.isjunction`" msgstr ":func:`os.path.isjunction`" -#: ../../library/pathlib.rst:1904 +#: ../../library/pathlib.rst:1907 msgid ":meth:`Path.is_junction`" msgstr ":meth:`Path.is_junction`" -#: ../../library/pathlib.rst:1905 +#: ../../library/pathlib.rst:1908 msgid ":func:`os.path.ismount`" msgstr ":func:`os.path.ismount`" -#: ../../library/pathlib.rst:1905 +#: ../../library/pathlib.rst:1908 msgid ":meth:`Path.is_mount`" msgstr ":meth:`Path.is_mount`" -#: ../../library/pathlib.rst:1906 +#: ../../library/pathlib.rst:1909 msgid ":func:`os.path.samefile`" msgstr ":func:`os.path.samefile`" -#: ../../library/pathlib.rst:1906 +#: ../../library/pathlib.rst:1909 msgid ":meth:`Path.samefile`" msgstr ":meth:`Path.samefile`" -#: ../../library/pathlib.rst:1907 +#: ../../library/pathlib.rst:1910 msgid ":func:`os.getcwd`" msgstr ":func:`os.getcwd`" -#: ../../library/pathlib.rst:1907 +#: ../../library/pathlib.rst:1910 msgid ":meth:`Path.cwd`" msgstr ":meth:`Path.cwd`" -#: ../../library/pathlib.rst:1908 +#: ../../library/pathlib.rst:1911 msgid ":func:`os.stat`" msgstr ":func:`os.stat`" -#: ../../library/pathlib.rst:1908 +#: ../../library/pathlib.rst:1911 msgid ":meth:`Path.stat`" msgstr ":meth:`Path.stat`" -#: ../../library/pathlib.rst:1909 +#: ../../library/pathlib.rst:1912 msgid ":func:`os.lstat`" msgstr ":func:`os.lstat`" -#: ../../library/pathlib.rst:1909 +#: ../../library/pathlib.rst:1912 msgid ":meth:`Path.lstat`" msgstr ":meth:`Path.lstat`" -#: ../../library/pathlib.rst:1910 +#: ../../library/pathlib.rst:1913 msgid ":func:`os.listdir`" msgstr ":func:`os.listdir`" -#: ../../library/pathlib.rst:1910 +#: ../../library/pathlib.rst:1913 msgid ":meth:`Path.iterdir`" msgstr ":meth:`Path.iterdir`" -#: ../../library/pathlib.rst:1911 +#: ../../library/pathlib.rst:1914 msgid ":func:`os.walk`" msgstr ":func:`os.walk`" -#: ../../library/pathlib.rst:1911 +#: ../../library/pathlib.rst:1914 msgid ":meth:`Path.walk` [4]_" msgstr ":meth:`Path.walk` [4]_" -#: ../../library/pathlib.rst:1912 +#: ../../library/pathlib.rst:1915 msgid ":func:`os.mkdir`, :func:`os.makedirs`" msgstr ":func:`os.mkdir`, :func:`os.makedirs`" -#: ../../library/pathlib.rst:1912 +#: ../../library/pathlib.rst:1915 msgid ":meth:`Path.mkdir`" msgstr ":meth:`Path.mkdir`" -#: ../../library/pathlib.rst:1913 +#: ../../library/pathlib.rst:1916 msgid ":func:`os.link`" msgstr ":func:`os.link`" -#: ../../library/pathlib.rst:1913 +#: ../../library/pathlib.rst:1916 msgid ":meth:`Path.hardlink_to`" msgstr ":meth:`Path.hardlink_to`" -#: ../../library/pathlib.rst:1914 +#: ../../library/pathlib.rst:1917 msgid ":func:`os.symlink`" msgstr ":func:`os.symlink`" -#: ../../library/pathlib.rst:1914 +#: ../../library/pathlib.rst:1917 msgid ":meth:`Path.symlink_to`" msgstr ":meth:`Path.symlink_to`" -#: ../../library/pathlib.rst:1915 +#: ../../library/pathlib.rst:1918 msgid ":func:`os.readlink`" msgstr ":func:`os.readlink`" -#: ../../library/pathlib.rst:1915 +#: ../../library/pathlib.rst:1918 msgid ":meth:`Path.readlink`" msgstr ":meth:`Path.readlink`" -#: ../../library/pathlib.rst:1916 +#: ../../library/pathlib.rst:1919 msgid ":func:`os.rename`" msgstr ":func:`os.rename`" -#: ../../library/pathlib.rst:1916 +#: ../../library/pathlib.rst:1919 msgid ":meth:`Path.rename`" msgstr ":meth:`Path.rename`" -#: ../../library/pathlib.rst:1917 +#: ../../library/pathlib.rst:1920 msgid ":func:`os.replace`" msgstr ":func:`os.replace`" -#: ../../library/pathlib.rst:1917 +#: ../../library/pathlib.rst:1920 msgid ":meth:`Path.replace`" msgstr ":meth:`Path.replace`" -#: ../../library/pathlib.rst:1918 +#: ../../library/pathlib.rst:1921 msgid ":func:`os.remove`, :func:`os.unlink`" msgstr ":func:`os.remove`, :func:`os.unlink`" -#: ../../library/pathlib.rst:1918 +#: ../../library/pathlib.rst:1921 msgid ":meth:`Path.unlink`" msgstr ":meth:`Path.unlink`" -#: ../../library/pathlib.rst:1919 +#: ../../library/pathlib.rst:1922 msgid ":func:`os.rmdir`" msgstr ":func:`os.rmdir`" -#: ../../library/pathlib.rst:1919 +#: ../../library/pathlib.rst:1922 msgid ":meth:`Path.rmdir`" msgstr ":meth:`Path.rmdir`" -#: ../../library/pathlib.rst:1920 +#: ../../library/pathlib.rst:1923 msgid ":func:`os.chmod`" msgstr ":func:`os.chmod`" -#: ../../library/pathlib.rst:1920 +#: ../../library/pathlib.rst:1923 msgid ":meth:`Path.chmod`" msgstr ":meth:`Path.chmod`" -#: ../../library/pathlib.rst:1921 +#: ../../library/pathlib.rst:1924 msgid ":func:`os.lchmod`" msgstr ":func:`os.lchmod`" -#: ../../library/pathlib.rst:1921 +#: ../../library/pathlib.rst:1924 msgid ":meth:`Path.lchmod`" msgstr ":meth:`Path.lchmod`" -#: ../../library/pathlib.rst:1925 +#: ../../library/pathlib.rst:1928 msgid "Footnotes" msgstr "脚注" -#: ../../library/pathlib.rst:1926 +#: ../../library/pathlib.rst:1929 msgid "" ":func:`os.path.relpath` calls :func:`~os.path.abspath` to make paths " "absolute and remove \"``..``\" parts, whereas :meth:`PurePath.relative_to` " @@ -3034,84 +3040,84 @@ msgid "" "anchors differ (e.g. if one path is absolute and the other relative.)" msgstr "" -#: ../../library/pathlib.rst:1930 +#: ../../library/pathlib.rst:1933 msgid "" ":func:`os.path.expanduser` returns the path unchanged if the home directory " "can't be resolved, whereas :meth:`Path.expanduser` raises :exc:" "`RuntimeError`." msgstr "" -#: ../../library/pathlib.rst:1933 +#: ../../library/pathlib.rst:1936 msgid "" ":func:`os.path.abspath` removes \"``..``\" components without resolving " "symlinks, which may change the meaning of the path, whereas :meth:`Path." "absolute` leaves any \"``..``\" components in the path." msgstr "" -#: ../../library/pathlib.rst:1936 +#: ../../library/pathlib.rst:1939 msgid "" ":func:`os.walk` always follows symlinks when categorizing paths into " "*dirnames* and *filenames*, whereas :meth:`Path.walk` categorizes all " "symlinks into *filenames* when *follow_symlinks* is false (the default.)" msgstr "" -#: ../../library/pathlib.rst:1942 +#: ../../library/pathlib.rst:1945 msgid "Protocols" msgstr "プロトコル" -#: ../../library/pathlib.rst:1948 +#: ../../library/pathlib.rst:1951 msgid "" "The :mod:`pathlib.types` module provides types for static type checking." msgstr "" -#: ../../library/pathlib.rst:1955 +#: ../../library/pathlib.rst:1958 msgid "" "A :class:`typing.Protocol` describing the :attr:`Path.info ` attribute. Implementations may return cached results from their " "methods." msgstr "" -#: ../../library/pathlib.rst:1961 +#: ../../library/pathlib.rst:1964 msgid "" "Return ``True`` if the path is an existing file or directory, or any other " "kind of file; return ``False`` if the path doesn't exist." msgstr "" -#: ../../library/pathlib.rst:1964 +#: ../../library/pathlib.rst:1967 msgid "" "If *follow_symlinks* is ``False``, return ``True`` for symlinks without " "checking if their targets exist." msgstr "" -#: ../../library/pathlib.rst:1969 +#: ../../library/pathlib.rst:1972 msgid "" "Return ``True`` if the path is a directory, or a symbolic link pointing to a " "directory; return ``False`` if the path is (or points to) any other kind of " "file, or if it doesn't exist." msgstr "" -#: ../../library/pathlib.rst:1973 +#: ../../library/pathlib.rst:1976 msgid "" "If *follow_symlinks* is ``False``, return ``True`` only if the path is a " "directory (without following symlinks); return ``False`` if the path is any " "other kind of file, or if it doesn't exist." msgstr "" -#: ../../library/pathlib.rst:1979 +#: ../../library/pathlib.rst:1982 msgid "" "Return ``True`` if the path is a file, or a symbolic link pointing to a " "file; return ``False`` if the path is (or points to) a directory or other " "non-file, or if it doesn't exist." msgstr "" -#: ../../library/pathlib.rst:1983 +#: ../../library/pathlib.rst:1986 msgid "" "If *follow_symlinks* is ``False``, return ``True`` only if the path is a " "file (without following symlinks); return ``False`` if the path is a " "directory or other other non-file, or if it doesn't exist." msgstr "" -#: ../../library/pathlib.rst:1989 +#: ../../library/pathlib.rst:1992 msgid "" "Return ``True`` if the path is a symbolic link (even if broken); return " "``False`` if the path is a directory or any kind of file, or if it doesn't " diff --git a/library/pdb.po b/library/pdb.po index f3824e7c3..e5d67cfbf 100644 --- a/library/pdb.po +++ b/library/pdb.po @@ -15,15 +15,15 @@ msgid "" msgstr "" "Project-Id-Version: Python 3.14\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2025-05-08 02:53-0300\n" +"POT-Creation-Date: 2025-05-23 14:20+0000\n" "PO-Revision-Date: 2021-06-28 01:11+0000\n" "Last-Translator: Takanori Suzuki , 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../library/pdb.rst:4 @@ -152,7 +152,7 @@ msgid "" msgstr "" #: ../../library/pdb.rst:83 -msgid "python -m pdb [-c command] (-m module | pyfile) [args ...]" +msgid "python -m pdb [-c command] (-m module | -p pid | pyfile) [args ...]" msgstr "" #: ../../library/pdb.rst:85 @@ -189,11 +189,32 @@ msgstr "" msgid "Added the ``-m`` option." msgstr "" -#: ../../library/pdb.rst:107 +#: ../../library/pdb.rst:109 +msgid "Attach to the process with the specified PID." +msgstr "" + +#: ../../library/pdb.rst:114 +msgid "" +"To attach to a running Python process for remote debugging, use the ``-p`` " +"or ``--pid`` option with the target process's PID::" +msgstr "" + +#: ../../library/pdb.rst:117 +msgid "python -m pdb -p 1234" +msgstr "" + +#: ../../library/pdb.rst:121 +msgid "" +"Attaching to a process that is blocked in a system call or waiting for I/O " +"will only work once the next bytecode instruction is executed or when the " +"process receives a signal." +msgstr "" + +#: ../../library/pdb.rst:125 msgid "Typical usage to execute a statement under control of the debugger is::" msgstr "" -#: ../../library/pdb.rst:109 +#: ../../library/pdb.rst:127 msgid "" ">>> import pdb\n" ">>> def f(x):\n" @@ -205,12 +226,12 @@ msgid "" ">>>" msgstr "" -#: ../../library/pdb.rst:118 +#: ../../library/pdb.rst:136 msgid "The typical usage to inspect a crashed program is::" msgstr "" "クラッシュしたプログラムを調べるための典型的な使い方は以下のようになります::" -#: ../../library/pdb.rst:120 +#: ../../library/pdb.rst:138 msgid "" ">>> import pdb\n" ">>> def f(x):\n" @@ -228,14 +249,14 @@ msgid "" "(Pdb)" msgstr "" -#: ../../library/pdb.rst:135 +#: ../../library/pdb.rst:153 msgid "" "The implementation of :pep:`667` means that name assignments made via " "``pdb`` will immediately affect the active scope, even when running inside " "an :term:`optimized scope`." msgstr "" -#: ../../library/pdb.rst:141 +#: ../../library/pdb.rst:159 msgid "" "The module defines the following functions; each enters the debugger in a " "slightly different way:" @@ -243,7 +264,7 @@ msgstr "" "このモジュールは以下の関数を定義しています。それぞれが少しづつ違った方法でデ" "バッガに入ります:" -#: ../../library/pdb.rst:146 +#: ../../library/pdb.rst:164 msgid "" "Execute the *statement* (given as a string or a code object) under debugger " "control. The debugger prompt appears before any code is executed; you can " @@ -263,7 +284,7 @@ msgstr "" "は、モジュール :mod:`__main__` の辞書が使われます。(組み込み関数 :func:" "`exec` または :func:`eval` の説明を参照してください。)" -#: ../../library/pdb.rst:158 +#: ../../library/pdb.rst:176 msgid "" "Evaluate the *expression* (given as a string or a code object) under " "debugger control. When :func:`runeval` returns, it returns the value of the " @@ -273,7 +294,7 @@ msgstr "" "る) *expression* を評価します。:func:`runeval` から復帰するとき、式の値を返し" "ます。その他の点では、この関数は :func:`run` と同様です。" -#: ../../library/pdb.rst:165 +#: ../../library/pdb.rst:183 msgid "" "Call the *function* (a function or method object, not a string) with the " "given arguments. When :func:`runcall` returns, it returns whatever the " @@ -285,7 +306,7 @@ msgstr "" "返したものはなんでも返します。関数に入るとすぐにデバッガプロンプトが現れま" "す。" -#: ../../library/pdb.rst:173 +#: ../../library/pdb.rst:191 msgid "" "Enter the debugger at the calling stack frame. This is useful to hard-code " "a breakpoint at a given point in a program, even if the code is not " @@ -295,55 +316,55 @@ msgid "" "starts." msgstr "" -#: ../../library/pdb.rst:181 +#: ../../library/pdb.rst:199 msgid "The keyword-only argument *header*." msgstr "*header* キーワード専用引数。" -#: ../../library/pdb.rst:184 +#: ../../library/pdb.rst:202 msgid "" ":func:`set_trace` will enter the debugger immediately, rather than on the " "next line of code to be executed." msgstr "" -#: ../../library/pdb.rst:188 +#: ../../library/pdb.rst:206 msgid "The *commands* argument." msgstr "" -#: ../../library/pdb.rst:194 +#: ../../library/pdb.rst:212 msgid "" "async version of :func:`set_trace`. This function should be used inside an " "async function with :keyword:`await`." msgstr "" -#: ../../library/pdb.rst:197 +#: ../../library/pdb.rst:215 msgid "" "async def f():\n" " await pdb.set_trace_async()" msgstr "" -#: ../../library/pdb.rst:202 +#: ../../library/pdb.rst:220 msgid "" ":keyword:`await` statements are supported if the debugger is invoked by this " "function." msgstr "" -#: ../../library/pdb.rst:208 +#: ../../library/pdb.rst:226 msgid "" "Enter post-mortem debugging of the given exception or :ref:`traceback object " "`. If no value is given, it uses the exception that is " "currently being handled, or raises ``ValueError`` if there isn’t one." msgstr "" -#: ../../library/pdb.rst:213 +#: ../../library/pdb.rst:231 msgid "Support for exception objects was added." msgstr "" -#: ../../library/pdb.rst:218 +#: ../../library/pdb.rst:236 msgid "" "Enter post-mortem debugging of the exception found in :data:`sys.last_exc`." msgstr "" -#: ../../library/pdb.rst:223 +#: ../../library/pdb.rst:241 msgid "" "There are two supported backends for pdb: ``'settrace'`` and " "``'monitoring'``. See :class:`bdb.Bdb` for details. The user can set the " @@ -351,17 +372,17 @@ msgid "" "If no backend is specified, the default is ``'settrace'``." msgstr "" -#: ../../library/pdb.rst:230 +#: ../../library/pdb.rst:248 msgid "" ":func:`breakpoint` and :func:`set_trace` will not be affected by this " "function. They always use ``'monitoring'`` backend." msgstr "" -#: ../../library/pdb.rst:237 +#: ../../library/pdb.rst:255 msgid "Returns the default backend for pdb." msgstr "" -#: ../../library/pdb.rst:241 +#: ../../library/pdb.rst:259 msgid "" "The ``run*`` functions and :func:`set_trace` are aliases for instantiating " "the :class:`Pdb` class and calling the method of the same name. If you want " @@ -371,11 +392,11 @@ msgstr "" "て同名のメソッドを実行することのエイリアス関数です。それ以上の機能を利用した" "い場合は、インスタンス化を自分で行わなければなりません:" -#: ../../library/pdb.rst:248 +#: ../../library/pdb.rst:266 msgid ":class:`Pdb` is the debugger class." msgstr ":class:`Pdb` はデバッガクラスです。" -#: ../../library/pdb.rst:250 +#: ../../library/pdb.rst:268 msgid "" "The *completekey*, *stdin* and *stdout* arguments are passed to the " "underlying :class:`cmd.Cmd` class; see the description there." @@ -383,7 +404,7 @@ msgstr "" "*completekey*, *stdin*, *stdout* 引数は、基底にある :class:`cmd.Cmd` クラスに" "渡されます。そちらの解説を参照してください。" -#: ../../library/pdb.rst:253 +#: ../../library/pdb.rst:271 msgid "" "The *skip* argument, if given, must be an iterable of glob-style module name " "patterns. The debugger will not step into frames that originate in a module " @@ -393,7 +414,7 @@ msgstr "" "(イテレート可能オブジェクト) でなければなりません。デバッガはこのパターンのど" "れかにマッチするモジュールに属するフレームにはステップインしません。 [1]_" -#: ../../library/pdb.rst:257 +#: ../../library/pdb.rst:275 msgid "" "By default, Pdb sets a handler for the SIGINT signal (which is sent when the " "user presses :kbd:`Ctrl-C` on the console) when you give a :pdbcmd:" @@ -407,7 +428,7 @@ msgstr "" "ることができます。Pdb に SIGINT ハンドラーを変更させたくない場合は " "*nosigint* を true に設定してください。" -#: ../../library/pdb.rst:262 +#: ../../library/pdb.rst:280 msgid "" "The *readrc* argument defaults to true and controls whether Pdb will load ." "pdbrc files from the filesystem." @@ -415,7 +436,7 @@ msgstr "" "*readrc* 引数はデフォルトでは真で、 Pdb が .pdbrc ファイルをファイルシステム" "から読み込むかどうかを制御します。" -#: ../../library/pdb.rst:265 +#: ../../library/pdb.rst:283 msgid "" "The *mode* argument specifies how the debugger was invoked. It impacts the " "workings of some debugger commands. Valid values are ``'inline'`` (used by " @@ -424,7 +445,7 @@ msgid "" "argument was added)." msgstr "" -#: ../../library/pdb.rst:272 +#: ../../library/pdb.rst:290 msgid "" "The *backend* argument specifies the backend to use for the debugger. If " "``None`` is passed, the default backend will be used. See :func:" @@ -432,68 +453,68 @@ msgid "" "and ``'monitoring'``." msgstr "" -#: ../../library/pdb.rst:276 +#: ../../library/pdb.rst:294 msgid "" "The *colorize* argument, if set to ``True``, will enable colorized output in " "the debugger, if color is supported. This will highlight source code " "displayed in pdb." msgstr "" -#: ../../library/pdb.rst:279 +#: ../../library/pdb.rst:297 msgid "Example call to enable tracing with *skip*::" msgstr "*skip* を使ってトレースする呼び出しの例::" -#: ../../library/pdb.rst:281 +#: ../../library/pdb.rst:299 msgid "import pdb; pdb.Pdb(skip=['django.*']).set_trace()" msgstr "" -#: ../../library/pdb.rst:283 +#: ../../library/pdb.rst:301 msgid "" "Raises an :ref:`auditing event ` ``pdb.Pdb`` with no arguments." msgstr "引数無しで :ref:`監査イベント ` ``pdb.Pdb`` を送出します。 " -#: ../../library/pdb.rst:285 +#: ../../library/pdb.rst:303 msgid "Added the *skip* parameter." msgstr "*skip* パラメータが追加されました。" -#: ../../library/pdb.rst:288 +#: ../../library/pdb.rst:306 msgid "" "Added the *nosigint* parameter. Previously, a SIGINT handler was never set " "by Pdb." msgstr "" -#: ../../library/pdb.rst:292 +#: ../../library/pdb.rst:310 msgid "The *readrc* argument." msgstr "*readrc* 引数。" -#: ../../library/pdb.rst:295 +#: ../../library/pdb.rst:313 msgid "Added the *mode* argument." msgstr "" -#: ../../library/pdb.rst:298 +#: ../../library/pdb.rst:316 msgid "Added the *backend* argument." msgstr "" -#: ../../library/pdb.rst:301 +#: ../../library/pdb.rst:319 msgid "Added the *colorize* argument." msgstr "" -#: ../../library/pdb.rst:304 +#: ../../library/pdb.rst:322 msgid "" "Inline breakpoints like :func:`breakpoint` or :func:`pdb.set_trace` will " "always stop the program at calling frame, ignoring the *skip* pattern (if " "any)." msgstr "" -#: ../../library/pdb.rst:313 +#: ../../library/pdb.rst:331 msgid "See the documentation for the functions explained above." msgstr "前述のこれら関数のドキュメントを参照してください。" -#: ../../library/pdb.rst:319 +#: ../../library/pdb.rst:337 msgid "Debugger Commands" msgstr "デバッガコマンド" -#: ../../library/pdb.rst:321 +#: ../../library/pdb.rst:339 msgid "" "The commands recognized by the debugger are listed below. Most commands can " "be abbreviated to one or two letters as indicated; e.g. ``h(elp)`` means " @@ -512,7 +533,7 @@ msgstr "" "(``[]``) で括られています (実際に大括弧はタイプしないでください)。いくつかか" "ら選択できる引数は縦線 (``|``) で分割されて記述されています。" -#: ../../library/pdb.rst:330 +#: ../../library/pdb.rst:348 msgid "" "Entering a blank line repeats the last command entered. Exception: if the " "last command was a :pdbcmd:`list` command, the next 11 lines are listed." @@ -520,7 +541,7 @@ msgstr "" "空行を入力すると入力された直前のコマンドを繰り返します。例外: 直前のコマンド" "が :pdbcmd:`list` コマンドならば、次の 11 行がリストされます。" -#: ../../library/pdb.rst:333 +#: ../../library/pdb.rst:351 msgid "" "Commands that the debugger doesn't recognize are assumed to be Python " "statements and are executed in the context of the program being debugged. " @@ -537,13 +558,13 @@ msgstr "" "ような文で例外が発生した場合には例外名が出力されますが、デバッガの状態は変化" "しません。" -#: ../../library/pdb.rst:341 +#: ../../library/pdb.rst:359 msgid "" "Expressions/Statements whose prefix is a pdb command are now correctly " "identified and executed." msgstr "" -#: ../../library/pdb.rst:345 +#: ../../library/pdb.rst:363 msgid "" "The debugger supports :ref:`aliases `. Aliases can have " "parameters which allows one a certain level of adaptability to the context " @@ -553,7 +574,7 @@ msgstr "" "リアスはデバッグ中のコンテキストに適用可能な一定レベルのパラメータを保持する" "ことができます。" -#: ../../library/pdb.rst:349 +#: ../../library/pdb.rst:367 msgid "" "Multiple commands may be entered on a single line, separated by ``;;``. (A " "single ``;`` is not used as it is the separator for multiple commands in a " @@ -564,7 +585,7 @@ msgid "" "\"\";\"``." msgstr "" -#: ../../library/pdb.rst:356 +#: ../../library/pdb.rst:374 msgid "" "To set a temporary global variable, use a *convenience variable*. A " "*convenience variable* is a variable whose name starts with ``$``. For " @@ -574,35 +595,35 @@ msgid "" "compared to using normal variables like ``foo = 1``." msgstr "" -#: ../../library/pdb.rst:363 +#: ../../library/pdb.rst:381 msgid "There are four preset *convenience variables*:" msgstr "" -#: ../../library/pdb.rst:365 +#: ../../library/pdb.rst:383 msgid "``$_frame``: the current frame you are debugging" msgstr "" -#: ../../library/pdb.rst:366 +#: ../../library/pdb.rst:384 msgid "``$_retval``: the return value if the frame is returning" msgstr "" -#: ../../library/pdb.rst:367 +#: ../../library/pdb.rst:385 msgid "``$_exception``: the exception if the frame is raising an exception" msgstr "" -#: ../../library/pdb.rst:368 +#: ../../library/pdb.rst:386 msgid "``$_asynctask``: the asyncio task if pdb stops in an async function" msgstr "" -#: ../../library/pdb.rst:372 +#: ../../library/pdb.rst:390 msgid "Added the *convenience variable* feature." msgstr "" -#: ../../library/pdb.rst:374 +#: ../../library/pdb.rst:392 msgid "Added the ``$_asynctask`` convenience variable." msgstr "" -#: ../../library/pdb.rst:381 +#: ../../library/pdb.rst:399 msgid "" "If a file :file:`.pdbrc` exists in the user's home directory or in the " "current directory, it is read with ``'utf-8'`` encoding and executed as if " @@ -612,7 +633,7 @@ msgid "" "read first and aliases defined there can be overridden by the local file." msgstr "" -#: ../../library/pdb.rst:388 +#: ../../library/pdb.rst:406 msgid "" ":file:`.pdbrc` can now contain commands that continue debugging, such as :" "pdbcmd:`continue` or :pdbcmd:`next`. Previously, these commands had no " @@ -622,13 +643,13 @@ msgstr "" "するコマンドが使用できるようになりました。以前はこのようなコマンドは無視され" "ていました。" -#: ../../library/pdb.rst:393 +#: ../../library/pdb.rst:411 msgid "" ":file:`.pdbrc` is now read with ``'utf-8'`` encoding. Previously, it was " "read with the system locale encoding." msgstr "" -#: ../../library/pdb.rst:400 +#: ../../library/pdb.rst:418 msgid "" "Without argument, print the list of available commands. With a *command* as " "argument, print help about that command. ``help pdb`` displays the full " @@ -642,7 +663,7 @@ msgstr "" "*command* 引数は識別子でなければならないため、``!`` コマンドのヘルプを表示す" "るには ``help exec`` と入力します。" -#: ../../library/pdb.rst:408 +#: ../../library/pdb.rst:426 msgid "" "Print a stack trace, with the most recent frame at the bottom. if *count* " "is 0, print the current frame entry. If *count* is negative, print the least " @@ -651,11 +672,11 @@ msgid "" "determines the context of most commands." msgstr "" -#: ../../library/pdb.rst:414 +#: ../../library/pdb.rst:432 msgid "*count* argument is added." msgstr "" -#: ../../library/pdb.rst:419 +#: ../../library/pdb.rst:437 msgid "" "Move the current frame *count* (default one) levels down in the stack trace " "(to a newer frame)." @@ -663,7 +684,7 @@ msgstr "" "スタックフレーム内で現在のフレームを *count* レベル (デフォルトは 1) 新しいフ" "レーム方向に移動します。" -#: ../../library/pdb.rst:424 +#: ../../library/pdb.rst:442 msgid "" "Move the current frame *count* (default one) levels up in the stack trace " "(to an older frame)." @@ -671,7 +692,7 @@ msgstr "" "スタックフレーム内で現在のフレームを *count* レベル (デフォルトは 1) 古いフ" "レーム方向に移動します。" -#: ../../library/pdb.rst:429 +#: ../../library/pdb.rst:447 msgid "" "With a *lineno* argument, set a break at line *lineno* in the current file. " "The line number may be prefixed with a *filename* and a colon, to specify a " @@ -680,14 +701,14 @@ msgid "" "abspath/to/file.py``, ``relpath/file.py``, ``module`` and ``package.module``." msgstr "" -#: ../../library/pdb.rst:436 +#: ../../library/pdb.rst:454 msgid "" "With a *function* argument, set a break at the first executable statement " "within that function. *function* can be any expression that evaluates to a " "function in the current namespace." msgstr "" -#: ../../library/pdb.rst:440 +#: ../../library/pdb.rst:458 msgid "" "If a second argument is present, it is an expression which must evaluate to " "true before the breakpoint is honored." @@ -695,7 +716,7 @@ msgstr "" "第二引数を指定する場合、その値は式で、その評価値が真でなければブレークポイン" "トは有効になりません。" -#: ../../library/pdb.rst:443 +#: ../../library/pdb.rst:461 msgid "" "Without argument, list all breaks, including for each breakpoint, the number " "of times that breakpoint has been hit, the current ignore count, and the " @@ -705,13 +726,13 @@ msgstr "" "行き当たった回数、現在の通過カウント ( ignore count ) と、もしあれば関連条件" "を含めてすべてのブレークポイントをリストします。" -#: ../../library/pdb.rst:447 +#: ../../library/pdb.rst:465 msgid "" "Each breakpoint is assigned a number to which all the other breakpoint " "commands refer." msgstr "" -#: ../../library/pdb.rst:452 +#: ../../library/pdb.rst:470 msgid "" "Temporary breakpoint, which is removed automatically when it is first hit. " "The arguments are the same as for :pdbcmd:`break`." @@ -719,7 +740,7 @@ msgstr "" "一時的なブレークポイントで、最初にそこに達したときに自動的に取り除かれます。" "引数は :pdbcmd:`break` と同じです。" -#: ../../library/pdb.rst:457 +#: ../../library/pdb.rst:475 msgid "" "With a *filename:lineno* argument, clear all the breakpoints at this line. " "With a space separated list of breakpoint numbers, clear those breakpoints. " @@ -730,7 +751,7 @@ msgstr "" "のブレークポイントを解除します。引数なしの場合は、すべてのブレークポイントを" "解除します ( が、はじめに確認します ) 。" -#: ../../library/pdb.rst:463 +#: ../../library/pdb.rst:481 msgid "" "Disable the breakpoints given as a space separated list of breakpoint " "numbers. Disabling a breakpoint means it cannot cause the program to stop " @@ -742,11 +763,11 @@ msgstr "" "レークポイントの解除と違いブレークポイントのリストに残っており、(再び) 有効に" "できます。" -#: ../../library/pdb.rst:470 +#: ../../library/pdb.rst:488 msgid "Enable the breakpoints specified." msgstr "指定したブレークポイントを有効にします。" -#: ../../library/pdb.rst:474 +#: ../../library/pdb.rst:492 msgid "" "Set the ignore count for the given breakpoint number. If *count* is " "omitted, the ignore count is set to 0. A breakpoint becomes active when the " @@ -760,7 +781,7 @@ msgstr "" "トが無効にされず、どんな関連条件も真に評価されていて、ブレークポイントに来る" "たびに *count* が減らされます。" -#: ../../library/pdb.rst:482 +#: ../../library/pdb.rst:500 msgid "" "Set a new *condition* for the breakpoint, an expression which must evaluate " "to true before the breakpoint is honored. If *condition* is absent, any " @@ -771,7 +792,7 @@ msgstr "" "ます。*condition* を指定しないと既存の条件が除去されます; ブレークポイントは" "常に有効になります。" -#: ../../library/pdb.rst:488 +#: ../../library/pdb.rst:506 msgid "" "Specify a list of commands for breakpoint number *bpnumber*. The commands " "themselves appear on the following lines. Type a line containing just " @@ -781,7 +802,7 @@ msgstr "" "そのものはその後の行に続けます。``end`` だけからなる行を入力することでコマン" "ド群の終わりを示します。例を挙げます::" -#: ../../library/pdb.rst:492 +#: ../../library/pdb.rst:510 msgid "" "(Pdb) commands 1\n" "(com) p some_variable\n" @@ -789,7 +810,7 @@ msgid "" "(Pdb)" msgstr "" -#: ../../library/pdb.rst:497 +#: ../../library/pdb.rst:515 msgid "" "To remove all commands from a breakpoint, type ``commands`` and follow it " "immediately with ``end``; that is, give no commands." @@ -797,14 +818,14 @@ msgstr "" "ブレークポイントからコマンドを取り除くには、 ``commands`` のあとに ``end`` だ" "けを続けます。つまり、コマンドを一つも指定しないようにします。" -#: ../../library/pdb.rst:500 +#: ../../library/pdb.rst:518 msgid "" "With no *bpnumber* argument, ``commands`` refers to the last breakpoint set." msgstr "" "*bpnumber* 引数を指定しない場合、``commands`` は最後にセットしたブレークポイ" "ントを参照します。" -#: ../../library/pdb.rst:502 +#: ../../library/pdb.rst:520 msgid "" "You can use breakpoint commands to start your program up again. Simply use " "the :pdbcmd:`continue` command, or :pdbcmd:`step`, or any other command that " @@ -814,7 +835,7 @@ msgstr "" "`continue` コマンドや :pdbcmd:`step`、その他実行を再開するコマンドを使えば良" "いのです。" -#: ../../library/pdb.rst:506 +#: ../../library/pdb.rst:524 msgid "" "Specifying any command resuming execution (currently :pdbcmd:`continue`, :" "pdbcmd:`step`, :pdbcmd:`next`, :pdbcmd:`return`, :pdbcmd:`until`, :pdbcmd:" @@ -825,20 +846,20 @@ msgid "" "to ambiguities about which list to execute." msgstr "" -#: ../../library/pdb.rst:515 +#: ../../library/pdb.rst:533 msgid "" "If the list of commands contains the ``silent`` command, or a command that " "resumes execution, then the breakpoint message containing information about " "the frame is not displayed." msgstr "" -#: ../../library/pdb.rst:519 +#: ../../library/pdb.rst:537 msgid "" "Frame information will not be displayed if a command that resumes execution " "is present in the command list." msgstr "" -#: ../../library/pdb.rst:525 +#: ../../library/pdb.rst:543 msgid "" "Execute the current line, stop at the first possible occasion (either in a " "function that is called or on the next line in the current function)." @@ -846,7 +867,7 @@ msgstr "" "現在の行を実行し、最初に実行可能なものがあらわれたときに (呼び出された関数の" "中か、現在の関数の次の行で) 停止します。" -#: ../../library/pdb.rst:530 +#: ../../library/pdb.rst:548 msgid "" "Continue execution until the next line in the current function is reached or " "it returns. (The difference between :pdbcmd:`next` and :pdbcmd:`step` is " @@ -859,13 +880,13 @@ msgstr "" "部で停止するのに対し、 :pdbcmd:`next` は呼び出された関数を (ほぼ) 全速力で実" "行し、現在の関数内の次の行で停止するだけです。)" -#: ../../library/pdb.rst:538 +#: ../../library/pdb.rst:556 msgid "" "Without argument, continue execution until the line with a number greater " "than the current one is reached." msgstr "引数なしだと、現在の行から 1 行先まで実行します。" -#: ../../library/pdb.rst:541 +#: ../../library/pdb.rst:559 msgid "" "With *lineno*, continue execution until a line with a number greater or " "equal to *lineno* is reached. In both cases, also stop when the current " @@ -874,19 +895,19 @@ msgstr "" "*lineno* を指定すると、番号が *lineno* 以上である行に到達するまで実行します。" "どちらにしても現在のフレームが返ってきた時点で停止します。" -#: ../../library/pdb.rst:545 +#: ../../library/pdb.rst:563 msgid "Allow giving an explicit line number." msgstr "明示的に行数指定ができるようになりました。" -#: ../../library/pdb.rst:550 +#: ../../library/pdb.rst:568 msgid "Continue execution until the current function returns." msgstr "現在の関数が返るまで実行を継続します。" -#: ../../library/pdb.rst:554 +#: ../../library/pdb.rst:572 msgid "Continue execution, only stop when a breakpoint is encountered." msgstr "ブレークポイントに出会うまで、実行を継続します。" -#: ../../library/pdb.rst:558 +#: ../../library/pdb.rst:576 msgid "" "Set the next line that will be executed. Only available in the bottom-most " "frame. This lets you jump back and execute code again, or jump forward to " @@ -895,7 +916,7 @@ msgstr "" "次に実行する行を指定します。最も底のフレーム中でのみ実行可能です。前に戻って" "実行したり、不要な部分をスキップして先の処理を実行する場合に使用します。" -#: ../../library/pdb.rst:562 +#: ../../library/pdb.rst:580 msgid "" "It should be noted that not all jumps are allowed -- for instance it is not " "possible to jump into the middle of a :keyword:`for` loop or out of a :" @@ -904,7 +925,7 @@ msgstr "" "ジャンプには制限があり、例えば :keyword:`for` ループの中には飛び込めません" "し、 :keyword:`finally` 節の外にも飛ぶ事ができません。" -#: ../../library/pdb.rst:568 +#: ../../library/pdb.rst:586 msgid "" "List source code for the current file. Without arguments, list 11 lines " "around the current line or continue the previous listing. With ``.`` as " @@ -919,7 +940,7 @@ msgstr "" "の引数が 1 個め未満だった場合、1 個目を開始行、2 個めを開始行からの行数とみな" "します。" -#: ../../library/pdb.rst:574 +#: ../../library/pdb.rst:592 msgid "" "The current line in the current frame is indicated by ``->``. If an " "exception is being debugged, the line where the exception was originally " @@ -930,11 +951,11 @@ msgstr "" "例外が発生または伝搬した行は、それが現在の行とは異なるとき ``>>`` で表示され" "ます。" -#: ../../library/pdb.rst:579 +#: ../../library/pdb.rst:597 msgid "Added the ``>>`` marker." msgstr "``>>`` マーカーが追加されました。" -#: ../../library/pdb.rst:584 +#: ../../library/pdb.rst:602 msgid "" "List all source code for the current function or frame. Interesting lines " "are marked as for :pdbcmd:`list`." @@ -942,16 +963,16 @@ msgstr "" "現在の関数またはフレームの全ソースコードを表示します。注目する行は :pdbcmd:" "`list` と同じようにマーカーがつきます。" -#: ../../library/pdb.rst:591 +#: ../../library/pdb.rst:609 msgid "Print the arguments of the current function and their current values." msgstr "" -#: ../../library/pdb.rst:595 +#: ../../library/pdb.rst:613 msgid "Evaluate *expression* in the current context and print its value." msgstr "" "現在のコンテキストにおいて *expression* を評価し、その値をプリントします。" -#: ../../library/pdb.rst:599 +#: ../../library/pdb.rst:617 msgid "" "``print()`` can also be used, but is not a debugger command --- this " "executes the Python :func:`print` function." @@ -959,7 +980,7 @@ msgstr "" "``print()`` も使えますが、これはデバッガーコマンドではありません --- これは " "Python の関数 :func:`print` が実行されます。" -#: ../../library/pdb.rst:605 +#: ../../library/pdb.rst:623 msgid "" "Like the :pdbcmd:`p` command, except the value of *expression* is pretty-" "printed using the :mod:`pprint` module." @@ -967,15 +988,15 @@ msgstr "" ":pdbcmd:`p` コマンドに似ていますが、*expression* の値以外は :mod:`pprint` モ" "ジュールを使用して \"pretty-print\" されます。" -#: ../../library/pdb.rst:610 +#: ../../library/pdb.rst:628 msgid "Print the type of *expression*." msgstr "*expression* の型を表示します。" -#: ../../library/pdb.rst:614 +#: ../../library/pdb.rst:632 msgid "Try to get source code of *expression* and display it." msgstr "*expression* のソースコードの取得を試み、可能であれば表示します。" -#: ../../library/pdb.rst:620 +#: ../../library/pdb.rst:638 msgid "" "Display the value of *expression* if it changed, each time execution stops " "in the current frame." @@ -983,24 +1004,24 @@ msgstr "" "*expression* の値が変更されていれば表示します。毎回実行は現在のフレームで停止" "します。" -#: ../../library/pdb.rst:623 +#: ../../library/pdb.rst:641 msgid "" "Without *expression*, list all display expressions for the current frame." msgstr "" "*expression* を指定しない場合、現在のフレームのすべての式を表示します。" -#: ../../library/pdb.rst:627 +#: ../../library/pdb.rst:645 msgid "" "Display evaluates *expression* and compares to the result of the previous " "evaluation of *expression*, so when the result is mutable, display may not " "be able to pick up the changes." msgstr "" -#: ../../library/pdb.rst:631 ../../library/pdb.rst:796 +#: ../../library/pdb.rst:649 ../../library/pdb.rst:814 msgid "Example::" msgstr "以下はプログラム例です::" -#: ../../library/pdb.rst:633 +#: ../../library/pdb.rst:651 msgid "" "lst = []\n" "breakpoint()\n" @@ -1009,13 +1030,13 @@ msgid "" "print(lst)" msgstr "" -#: ../../library/pdb.rst:639 +#: ../../library/pdb.rst:657 msgid "" "Display won't realize ``lst`` has been changed because the result of " "evaluation is modified in place by ``lst.append(1)`` before being compared::" msgstr "" -#: ../../library/pdb.rst:642 +#: ../../library/pdb.rst:660 msgid "" "> example.py(3)()\n" "-> pass\n" @@ -1030,11 +1051,11 @@ msgid "" "(Pdb)" msgstr "" -#: ../../library/pdb.rst:654 +#: ../../library/pdb.rst:672 msgid "You can do some tricks with copy mechanism to make it work::" msgstr "" -#: ../../library/pdb.rst:656 +#: ../../library/pdb.rst:674 msgid "" "> example.py(3)()\n" "-> pass\n" @@ -1050,7 +1071,7 @@ msgid "" "(Pdb)" msgstr "" -#: ../../library/pdb.rst:673 +#: ../../library/pdb.rst:691 msgid "" "Do not display *expression* anymore in the current frame. Without " "*expression*, clear all display expressions for the current frame." @@ -1059,7 +1080,7 @@ msgstr "" "*expression* を指定しない場合、現在のフレームで display 指定されている式を全" "てクリアします。" -#: ../../library/pdb.rst:680 +#: ../../library/pdb.rst:698 msgid "" "Start an interactive interpreter (using the :mod:`code` module) in a new " "global namespace initialised from the local and global namespaces for the " @@ -1067,7 +1088,7 @@ msgid "" "return to the debugger." msgstr "" -#: ../../library/pdb.rst:687 +#: ../../library/pdb.rst:705 msgid "" "As ``interact`` creates a new dedicated namespace for code execution, " "assignments to variables will not affect the original namespaces. However, " @@ -1075,18 +1096,18 @@ msgid "" "original namespaces as usual." msgstr "" -#: ../../library/pdb.rst:694 +#: ../../library/pdb.rst:712 msgid "" "``exit()`` and ``quit()`` can be used to exit the :pdbcmd:`interact` command." msgstr "" -#: ../../library/pdb.rst:698 +#: ../../library/pdb.rst:716 msgid "" ":pdbcmd:`interact` directs its output to the debugger's output channel " "rather than :data:`sys.stderr`." msgstr "" -#: ../../library/pdb.rst:706 +#: ../../library/pdb.rst:724 msgid "" "Create an alias called *name* that executes *command*. The *command* must " "*not* be enclosed in quotes. Replaceable parameters can be indicated by " @@ -1095,7 +1116,7 @@ msgid "" "If no arguments are given, all aliases are listed." msgstr "" -#: ../../library/pdb.rst:712 +#: ../../library/pdb.rst:730 msgid "" "Aliases may be nested and can contain anything that can be legally typed at " "the pdb prompt. Note that internal pdb commands *can* be overridden by " @@ -1109,7 +1130,7 @@ msgstr "" "隠されます。エイリアス化はコマンド行の最初の語へ再帰的に適用されます。行の他" "のすべての語はそのままです。" -#: ../../library/pdb.rst:718 +#: ../../library/pdb.rst:736 msgid "" "As an example, here are two useful aliases (especially when placed in the :" "file:`.pdbrc` file)::" @@ -1117,7 +1138,7 @@ msgstr "" "例として、二つの便利なエイリアスがあります (特に :file:`.pdbrc` ファイルに置" "かれたときに)::" -#: ../../library/pdb.rst:721 +#: ../../library/pdb.rst:739 msgid "" "# Print instance variables (usage \"pi classInst\")\n" "alias pi for k in %1.__dict__.keys(): print(f\"%1.{k} = {%1.__dict__[k]}\")\n" @@ -1125,36 +1146,36 @@ msgid "" "alias ps pi self" msgstr "" -#: ../../library/pdb.rst:728 +#: ../../library/pdb.rst:746 msgid "Delete the specified alias *name*." msgstr "指定したエイリアス *name* を削除します。" -#: ../../library/pdb.rst:732 +#: ../../library/pdb.rst:750 msgid "" "Execute the (one-line) *statement* in the context of the current stack " "frame. The exclamation point can be omitted unless the first word of the " "statement resembles a debugger command, e.g.:" msgstr "" -#: ../../library/pdb.rst:736 +#: ../../library/pdb.rst:754 msgid "" "(Pdb) ! n=42\n" "(Pdb)" msgstr "" -#: ../../library/pdb.rst:741 +#: ../../library/pdb.rst:759 msgid "" "To set a global variable, you can prefix the assignment command with a :" "keyword:`global` statement on the same line, e.g.:" msgstr "" -#: ../../library/pdb.rst:744 +#: ../../library/pdb.rst:762 msgid "" "(Pdb) global list_options; list_options = ['-l']\n" "(Pdb)" msgstr "" -#: ../../library/pdb.rst:752 +#: ../../library/pdb.rst:770 msgid "" "Restart the debugged Python program. If *args* is supplied, it is split " "with :mod:`shlex` and the result is used as the new :data:`sys.argv`. " @@ -1166,26 +1187,26 @@ msgstr "" "リー、ブレークポイント、アクション、そして、デバッガーオプションは引き継がれ" "ます。 :pdbcmd:`restart` は :pdbcmd:`run` の別名です。" -#: ../../library/pdb.rst:757 +#: ../../library/pdb.rst:775 msgid "" ":pdbcmd:`run` and :pdbcmd:`restart` commands are disabled when the debugger " "is invoked in ``'inline'`` mode." msgstr "" -#: ../../library/pdb.rst:763 +#: ../../library/pdb.rst:781 msgid "" "Quit from the debugger. The program being executed is aborted. An end-of-" "file input is equivalent to :pdbcmd:`quit`." msgstr "" -#: ../../library/pdb.rst:766 +#: ../../library/pdb.rst:784 msgid "" "A confirmation prompt will be shown if the debugger is invoked in " "``'inline'`` mode. Either ``y``, ``Y``, ```` or ``EOF`` will confirm " "the quit." msgstr "" -#: ../../library/pdb.rst:770 +#: ../../library/pdb.rst:788 msgid "" "A confirmation prompt will be shown if the debugger is invoked in " "``'inline'`` mode. After the confirmation, the debugger will call :func:`sys." @@ -1193,21 +1214,21 @@ msgid "" "event." msgstr "" -#: ../../library/pdb.rst:778 +#: ../../library/pdb.rst:796 msgid "" "Enter a recursive debugger that steps through *code* (which is an arbitrary " "expression or statement to be executed in the current environment)." msgstr "" -#: ../../library/pdb.rst:784 +#: ../../library/pdb.rst:802 msgid "Print the return value for the last return of the current function." msgstr "" -#: ../../library/pdb.rst:788 +#: ../../library/pdb.rst:806 msgid "List or jump between chained exceptions." msgstr "" -#: ../../library/pdb.rst:790 +#: ../../library/pdb.rst:808 msgid "" "When using ``pdb.pm()`` or ``Pdb.post_mortem(...)`` with a chained " "exception instead of a traceback, it allows the user to move between the " @@ -1215,7 +1236,7 @@ msgid "" "``exceptions `` to switch to that exception." msgstr "" -#: ../../library/pdb.rst:798 +#: ../../library/pdb.rst:816 msgid "" "def out():\n" " try:\n" @@ -1235,11 +1256,11 @@ msgid "" " out()" msgstr "" -#: ../../library/pdb.rst:815 +#: ../../library/pdb.rst:833 msgid "calling ``pdb.pm()`` will allow to move between exceptions::" msgstr "" -#: ../../library/pdb.rst:817 +#: ../../library/pdb.rst:835 msgid "" "> example.py(5)out()\n" "-> raise ValueError(\"reraise middle() error\") from e\n" @@ -1258,11 +1279,11 @@ msgid "" "-> return inner(0)" msgstr "" -#: ../../library/pdb.rst:836 +#: ../../library/pdb.rst:854 msgid "Footnotes" msgstr "脚注" -#: ../../library/pdb.rst:837 +#: ../../library/pdb.rst:855 msgid "" "Whether a frame is considered to originate in a certain module is determined " "by the ``__name__`` in the frame globals." @@ -1290,18 +1311,18 @@ msgstr "" msgid "cmd" msgstr "" -#: ../../library/pdb.rst:377 +#: ../../library/pdb.rst:395 msgid ".pdbrc" msgstr "" -#: ../../library/pdb.rst:377 +#: ../../library/pdb.rst:395 msgid "file" msgstr "ファイル" -#: ../../library/pdb.rst:377 +#: ../../library/pdb.rst:395 msgid "debugger" msgstr "debugger" -#: ../../library/pdb.rst:377 +#: ../../library/pdb.rst:395 msgid "configuration" msgstr "設定" diff --git a/library/persistence.po b/library/persistence.po index f3cb9cb05..b39c6d2fa 100644 --- a/library/persistence.po +++ b/library/persistence.po @@ -16,10 +16,10 @@ msgstr "" "Last-Translator: tomo, 2021\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../library/persistence.rst:5 diff --git a/library/pickle.po b/library/pickle.po index 7931f029a..efec45ed2 100644 --- a/library/pickle.po +++ b/library/pickle.po @@ -27,10 +27,10 @@ msgstr "" "Last-Translator: HIdeo Haga, 2025\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../library/pickle.rst:2 diff --git a/library/pickletools.po b/library/pickletools.po index fafe5fbf1..2d044bd2f 100644 --- a/library/pickletools.po +++ b/library/pickletools.po @@ -18,10 +18,10 @@ msgstr "" "Last-Translator: Takanori Suzuki , 2025\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../library/pickletools.rst:2 diff --git a/library/pipes.po b/library/pipes.po index 7cf3edf94..a8fc6111b 100644 --- a/library/pipes.po +++ b/library/pipes.po @@ -1,21 +1,21 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2025, Python Software Foundation +# Copyright (C) 2001 Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # #, fuzzy msgid "" msgstr "" -"Project-Id-Version: Python 3.13\n" +"Project-Id-Version: Python 3.14\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2025-05-02 14:19+0000\n" +"POT-Creation-Date: 2025-05-23 14:20+0000\n" "PO-Revision-Date: 2024-11-19 01:03+0000\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../library/pipes.rst:2 diff --git a/library/pkgutil.po b/library/pkgutil.po index febec8afc..b249ce899 100644 --- a/library/pkgutil.po +++ b/library/pkgutil.po @@ -18,10 +18,10 @@ msgstr "" "Last-Translator: 石井明久, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../library/pkgutil.rst:2 diff --git a/library/platform.po b/library/platform.po index 7deb78464..b4aee77a2 100644 --- a/library/platform.po +++ b/library/platform.po @@ -22,10 +22,10 @@ msgstr "" "Last-Translator: tomo, 2025\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../library/platform.rst:2 diff --git a/library/plistlib.po b/library/plistlib.po index 913444b45..77d329882 100644 --- a/library/plistlib.po +++ b/library/plistlib.po @@ -19,10 +19,10 @@ msgstr "" "Last-Translator: 石井明久, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../library/plistlib.rst:2 diff --git a/library/poplib.po b/library/poplib.po index 53330a571..dede25e15 100644 --- a/library/poplib.po +++ b/library/poplib.po @@ -1,5 +1,5 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2025, Python Software Foundation +# Copyright (C) 2001 Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # @@ -13,17 +13,17 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: Python 3.13\n" +"Project-Id-Version: Python 3.14\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2025-05-02 14:19+0000\n" +"POT-Creation-Date: 2025-05-23 14:20+0000\n" "PO-Revision-Date: 2021-06-28 01:11+0000\n" "Last-Translator: tomo, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../library/poplib.rst:2 diff --git a/library/posix.po b/library/posix.po index adc4afd0b..e5354c11e 100644 --- a/library/posix.po +++ b/library/posix.po @@ -1,5 +1,5 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2025, Python Software Foundation +# Copyright (C) 2001 Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # @@ -13,17 +13,17 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: Python 3.13\n" +"Project-Id-Version: Python 3.14\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2025-05-02 14:19+0000\n" +"POT-Creation-Date: 2025-05-23 14:20+0000\n" "PO-Revision-Date: 2021-06-28 01:11+0000\n" "Last-Translator: tomo, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../library/posix.rst:2 diff --git a/library/pprint.po b/library/pprint.po index eb04dafa6..d6ee5c598 100644 --- a/library/pprint.po +++ b/library/pprint.po @@ -1,5 +1,5 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2025, Python Software Foundation +# Copyright (C) 2001 Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # @@ -14,17 +14,17 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: Python 3.13\n" +"Project-Id-Version: Python 3.14\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2025-04-25 14:19+0000\n" +"POT-Creation-Date: 2025-05-16 14:19+0000\n" "PO-Revision-Date: 2021-06-28 01:11+0000\n" "Last-Translator: tomo, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../library/pprint.rst:2 diff --git a/library/profile.po b/library/profile.po index 29b57d174..f8a043ed5 100644 --- a/library/profile.po +++ b/library/profile.po @@ -19,10 +19,10 @@ msgstr "" "Last-Translator: Arihiro TAKASE, 2023\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../library/profile.rst:5 diff --git a/library/pty.po b/library/pty.po index 4dd37368a..e3f5faa5a 100644 --- a/library/pty.po +++ b/library/pty.po @@ -1,5 +1,5 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2025, Python Software Foundation +# Copyright (C) 2001 Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # @@ -11,17 +11,17 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: Python 3.13\n" +"Project-Id-Version: Python 3.14\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2025-05-02 14:19+0000\n" +"POT-Creation-Date: 2025-05-23 14:20+0000\n" "PO-Revision-Date: 2021-06-28 01:11+0000\n" "Last-Translator: Arihiro TAKASE, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../library/pty.rst:2 diff --git a/library/pwd.po b/library/pwd.po index 2d8954f44..75afac8fa 100644 --- a/library/pwd.po +++ b/library/pwd.po @@ -1,5 +1,5 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2025, Python Software Foundation +# Copyright (C) 2001 Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # @@ -10,17 +10,17 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: Python 3.13\n" +"Project-Id-Version: Python 3.14\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2025-05-02 14:19+0000\n" +"POT-Creation-Date: 2025-05-23 14:20+0000\n" "PO-Revision-Date: 2021-06-28 01:11+0000\n" "Last-Translator: 石井明久, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../library/pwd.rst:2 diff --git a/library/py_compile.po b/library/py_compile.po index a0d4b1db4..9c2729448 100644 --- a/library/py_compile.po +++ b/library/py_compile.po @@ -1,5 +1,5 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2025, Python Software Foundation +# Copyright (C) 2001 Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # @@ -13,17 +13,17 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: Python 3.13\n" +"Project-Id-Version: Python 3.14\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2025-05-02 14:19+0000\n" +"POT-Creation-Date: 2025-05-23 14:20+0000\n" "PO-Revision-Date: 2021-06-28 01:11+0000\n" "Last-Translator: 石井明久, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../library/py_compile.rst:2 diff --git a/library/pyclbr.po b/library/pyclbr.po index 431e57bb9..52db5908a 100644 --- a/library/pyclbr.po +++ b/library/pyclbr.po @@ -1,5 +1,5 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2025, Python Software Foundation +# Copyright (C) 2001 Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # @@ -10,17 +10,17 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: Python 3.13\n" +"Project-Id-Version: Python 3.14\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2025-05-02 14:19+0000\n" +"POT-Creation-Date: 2025-05-23 14:20+0000\n" "PO-Revision-Date: 2021-06-28 01:11+0000\n" "Last-Translator: 石井明久, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../library/pyclbr.rst:2 diff --git a/library/pydoc.po b/library/pydoc.po index 1ecb13bf1..112a961ee 100644 --- a/library/pydoc.po +++ b/library/pydoc.po @@ -1,5 +1,5 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2025, Python Software Foundation +# Copyright (C) 2001 Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # @@ -11,17 +11,17 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: Python 3.13\n" +"Project-Id-Version: Python 3.14\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2025-05-02 14:19+0000\n" +"POT-Creation-Date: 2025-05-23 14:20+0000\n" "PO-Revision-Date: 2021-06-28 01:12+0000\n" "Last-Translator: 石井明久, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../library/pydoc.rst:2 diff --git a/library/pyexpat.po b/library/pyexpat.po index 83bee43df..23084c827 100644 --- a/library/pyexpat.po +++ b/library/pyexpat.po @@ -18,10 +18,10 @@ msgstr "" "Last-Translator: 石井明久, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../library/pyexpat.rst:2 diff --git a/library/python.po b/library/python.po index 997cec25d..dc5cece8f 100644 --- a/library/python.po +++ b/library/python.po @@ -16,10 +16,10 @@ msgstr "" "Last-Translator: tomo, 2021\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../library/python.rst:5 diff --git a/library/queue.po b/library/queue.po index 9b561ba60..7a929cd3e 100644 --- a/library/queue.po +++ b/library/queue.po @@ -1,5 +1,5 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2025, Python Software Foundation +# Copyright (C) 2001 Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # @@ -12,17 +12,17 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: Python 3.13\n" +"Project-Id-Version: Python 3.14\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2025-05-02 14:19+0000\n" +"POT-Creation-Date: 2025-05-23 14:20+0000\n" "PO-Revision-Date: 2021-06-28 01:12+0000\n" "Last-Translator: 石井明久, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../library/queue.rst:2 diff --git a/library/quopri.po b/library/quopri.po index 32e29c697..a2943c7e5 100644 --- a/library/quopri.po +++ b/library/quopri.po @@ -1,5 +1,5 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2025, Python Software Foundation +# Copyright (C) 2001 Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # @@ -11,17 +11,17 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: Python 3.13\n" +"Project-Id-Version: Python 3.14\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2025-05-02 14:19+0000\n" +"POT-Creation-Date: 2025-05-23 14:20+0000\n" "PO-Revision-Date: 2021-06-28 01:12+0000\n" "Last-Translator: 石井明久, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../library/quopri.rst:2 diff --git a/library/random.po b/library/random.po index 0febb48d8..8ba0d6fb3 100644 --- a/library/random.po +++ b/library/random.po @@ -21,10 +21,10 @@ msgstr "" "Last-Translator: Arihiro TAKASE, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../library/random.rst:2 diff --git a/library/re.po b/library/re.po index eb3e35032..039cb77b4 100644 --- a/library/re.po +++ b/library/re.po @@ -18,15 +18,15 @@ msgid "" msgstr "" "Project-Id-Version: Python 3.14\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2025-05-08 02:53-0300\n" +"POT-Creation-Date: 2025-05-23 14:20+0000\n" "PO-Revision-Date: 2021-06-28 01:12+0000\n" "Last-Translator: Takeshi Nakazato, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../library/re.rst:2 @@ -214,7 +214,7 @@ msgstr "" msgid "The special characters are:" msgstr "特殊文字を以下に示します:" -#: ../../library/re.rst:101 ../../library/re.rst:1661 +#: ../../library/re.rst:101 ../../library/re.rst:1663 msgid "``.``" msgstr "``.``" @@ -1522,8 +1522,8 @@ msgstr "" #: ../../library/re.rst:899 ../../library/re.rst:931 ../../library/re.rst:949 #: ../../library/re.rst:960 ../../library/re.rst:1006 ../../library/re.rst:1040 -#: ../../library/re.rst:1055 ../../library/re.rst:1114 -#: ../../library/re.rst:1150 +#: ../../library/re.rst:1055 ../../library/re.rst:1117 +#: ../../library/re.rst:1152 msgid "" "The expression's behaviour can be modified by specifying a *flags* value. " "Values can be any of the `flags`_ variables, combined using bitwise OR (the " @@ -1669,11 +1669,9 @@ msgstr "" #: ../../library/re.rst:994 msgid "" -"Empty matches for the pattern split the string only when not adjacent to a " -"previous empty match." +"Adjacent empty matches are not possible, but an empty match can occur " +"immediately after a non-empty match." msgstr "" -"パターンへの空マッチは、直前の空マッチに隣接していないときのみ文字列を分割し" -"ます。" #: ../../library/re.rst:997 msgid "" @@ -1686,7 +1684,7 @@ msgid "" "'']" msgstr "" -#: ../../library/re.rst:1010 ../../library/re.rst:1118 +#: ../../library/re.rst:1010 ../../library/re.rst:1121 msgid "Added the optional flags argument." msgstr "オプションの flags 引数が追加されました。" @@ -1802,16 +1800,17 @@ msgstr "パターンは、文字列でも :class:`~re.Pattern` でも構いま msgid "" "The optional argument *count* is the maximum number of pattern occurrences " "to be replaced; *count* must be a non-negative integer. If omitted or zero, " -"all occurrences will be replaced. Empty matches for the pattern are replaced " -"only when not adjacent to a previous empty match, so ``sub('x*', '-', " -"'abxd')`` returns ``'-a-b--d-'``." +"all occurrences will be replaced." +msgstr "" + +#: ../../library/re.rst:1100 +msgid "" +"Adjacent empty matches are not possible, but an empty match can occur " +"immediately after a non-empty match. As a result, ``sub('x*', '-', 'abxd')`` " +"returns ``'-a-b--d-'`` instead of ``'-a-b-d-'``." msgstr "" -"オプション引数 *count* は出現したパターンを置換する最大の回数です。 *count* " -"は非負整数です。省略されるか 0 なら、出現した全てが置換されます。パターンへの" -"空マッチは前の空マッチに隣接していないときのみ置換されるので、 ``sub('x*', " -"'-', 'abxd')`` は ``'-a-b--d-'`` を返します。" -#: ../../library/re.rst:1104 +#: ../../library/re.rst:1107 msgid "" "In string-type *repl* arguments, in addition to the character escapes and " "backreferences described above, ``\\g`` will use the substring matched " @@ -1832,11 +1831,11 @@ msgstr "" "せん。後方参照 ``\\g<0>`` は正規表現とマッチした部分文字列全体で置き換わりま" "す。" -#: ../../library/re.rst:1121 ../../library/re.rst:1399 +#: ../../library/re.rst:1124 ../../library/re.rst:1401 msgid "Unmatched groups are replaced with an empty string." msgstr "マッチしなかったグループは空文字列に置き換えられます。" -#: ../../library/re.rst:1124 +#: ../../library/re.rst:1127 msgid "" "Unknown escapes in *pattern* consisting of ``'\\'`` and an ASCII letter now " "are errors." @@ -1844,28 +1843,27 @@ msgstr "" "*pattern* 中に ``'\\'`` と ASCII 文字からなる未知のエスケープがあると、エラー" "になります。" -#: ../../library/re.rst:1128 +#: ../../library/re.rst:1131 msgid "" "Unknown escapes in *repl* consisting of ``'\\'`` and an ASCII letter now are " -"errors. Empty matches for the pattern are replaced when adjacent to a " -"previous non-empty match." +"errors. An empty match can occur immediately after a non-empty match." msgstr "" -#: ../../library/re.rst:1134 +#: ../../library/re.rst:1136 msgid "" "Group *id* can only contain ASCII digits. In :class:`bytes` replacement " "strings, group *name* can only contain bytes in the ASCII range " "(``b'\\x00'``-``b'\\x7f'``)." msgstr "" -#: ../../library/re.rst:1139 +#: ../../library/re.rst:1141 msgid "" "Passing *count* and *flags* as positional arguments is deprecated. In future " "Python versions they will be :ref:`keyword-only parameters `." msgstr "" -#: ../../library/re.rst:1147 +#: ../../library/re.rst:1149 msgid "" "Perform the same operation as :func:`sub`, but return a tuple ``(new_string, " "number_of_subs_made)``." @@ -1873,7 +1871,7 @@ msgstr "" ":func:`sub` と同じ操作を行いますが、タプル ``(new_string、 " "number_of_subs_made)`` を返します。" -#: ../../library/re.rst:1157 +#: ../../library/re.rst:1159 msgid "" "Escape special characters in *pattern*. This is useful if you want to match " "an arbitrary literal string that may have regular expression metacharacters " @@ -1882,7 +1880,7 @@ msgstr "" "*pattern* 中の特殊文字をエスケープします。これは正規表現メタ文字を含みうる任" "意のリテラル文字列にマッチしたい時に便利です。" -#: ../../library/re.rst:1161 +#: ../../library/re.rst:1163 msgid "" ">>> print(re.escape('https://www.python.org'))\n" "https://www\\.python\\.org\n" @@ -1897,7 +1895,7 @@ msgid "" "/|\\-|\\+|\\*\\*|\\*" msgstr "" -#: ../../library/re.rst:1172 +#: ../../library/re.rst:1174 msgid "" "This function must not be used for the replacement string in :func:`sub` " "and :func:`subn`, only backslashes should be escaped. For example::" @@ -1905,7 +1903,7 @@ msgstr "" "この関数は、バックスラッシュのみをエスケープするべき :func:`sub` および :" "func:`subn` における置換文字列に使われてはなりません。例えば::" -#: ../../library/re.rst:1175 +#: ../../library/re.rst:1177 msgid "" ">>> digits_re = r'\\d+'\n" ">>> sample = '/usr/sbin/sendmail - 0 errors, 12 warnings'\n" @@ -1913,11 +1911,11 @@ msgid "" "/usr/sbin/sendmail - \\d+ errors, \\d+ warnings" msgstr "" -#: ../../library/re.rst:1180 +#: ../../library/re.rst:1182 msgid "The ``'_'`` character is no longer escaped." msgstr "``'_'`` 文字がエスケープされなくなりました。" -#: ../../library/re.rst:1183 +#: ../../library/re.rst:1185 msgid "" "Only characters that can have special meaning in a regular expression are " "escaped. As a result, ``'!'``, ``'\"'``, ``'%'``, ``\"'\"``, ``','``, " @@ -1929,15 +1927,15 @@ msgstr "" "``';'``、 ``'<'``、 ``'='``、 ``'>'``、 ``'@'``、 と ``\"`\"`` はもはやエス" "ケープされません。" -#: ../../library/re.rst:1192 +#: ../../library/re.rst:1194 msgid "Clear the regular expression cache." msgstr "正規表現キャッシュをクリアします。" -#: ../../library/re.rst:1196 +#: ../../library/re.rst:1198 msgid "Exceptions" msgstr "例外" -#: ../../library/re.rst:1200 +#: ../../library/re.rst:1202 msgid "" "Exception raised when a string passed to one of the functions here is not a " "valid regular expression (for example, it might contain unmatched " @@ -1947,53 +1945,53 @@ msgid "" "attributes:" msgstr "" -#: ../../library/re.rst:1208 +#: ../../library/re.rst:1210 msgid "The unformatted error message." msgstr "フォーマットされていないエラーメッセージです。" -#: ../../library/re.rst:1212 +#: ../../library/re.rst:1214 msgid "The regular expression pattern." msgstr "正規表現のパターンです。" -#: ../../library/re.rst:1216 +#: ../../library/re.rst:1218 msgid "The index in *pattern* where compilation failed (may be ``None``)." msgstr "" "*pattern* のコンパイルに失敗した場所のインデックスです (``None`` の場合もあり" "ます)。" -#: ../../library/re.rst:1220 +#: ../../library/re.rst:1222 msgid "The line corresponding to *pos* (may be ``None``)." msgstr "*pos* に対応する行です (``None`` の場合もあります)。" -#: ../../library/re.rst:1224 +#: ../../library/re.rst:1226 msgid "The column corresponding to *pos* (may be ``None``)." msgstr "*pos* に対応する列です (``None`` の場合もあります)。" -#: ../../library/re.rst:1226 +#: ../../library/re.rst:1228 msgid "Added additional attributes." msgstr "追加の属性が追加されました。" -#: ../../library/re.rst:1229 +#: ../../library/re.rst:1231 msgid "" "``PatternError`` was originally named ``error``; the latter is kept as an " "alias for backward compatibility." msgstr "" -#: ../../library/re.rst:1236 +#: ../../library/re.rst:1238 msgid "Regular Expression Objects" msgstr "正規表現オブジェクト" -#: ../../library/re.rst:1240 +#: ../../library/re.rst:1242 msgid "Compiled regular expression object returned by :func:`re.compile`." msgstr "" -#: ../../library/re.rst:1242 +#: ../../library/re.rst:1244 msgid "" ":py:class:`re.Pattern` supports ``[]`` to indicate a Unicode (str) or bytes " "pattern. See :ref:`types-genericalias`." msgstr "" -#: ../../library/re.rst:1248 +#: ../../library/re.rst:1250 msgid "" "Scan through *string* looking for the first location where this regular " "expression produces a match, and return a corresponding :class:`~re.Match`. " @@ -2006,7 +2004,7 @@ msgstr "" "る位置がないならば、 ``None`` を返します;これは、文字列内のある点で長さゼロ" "のマッチを探すこととは異なることに注意して下さい。" -#: ../../library/re.rst:1253 +#: ../../library/re.rst:1255 msgid "" "The optional second parameter *pos* gives an index in the string where the " "search is to start; it defaults to ``0``. This is not completely equivalent " @@ -2019,7 +2017,7 @@ msgstr "" "せん。パターン文字 ``'^'`` は本当の文字列の先頭と改行の直後でマッチしますが、" "検索を開始するインデックスでマッチするとは限りません。" -#: ../../library/re.rst:1259 +#: ../../library/re.rst:1261 msgid "" "The optional parameter *endpos* limits how far the string will be searched; " "it will be as if the string is *endpos* characters long, so only the " @@ -2035,7 +2033,7 @@ msgstr "" "て、``rx.search(string, 0, 50)`` は ``rx.search(string[:50], 0)`` と等価で" "す。 ::" -#: ../../library/re.rst:1266 +#: ../../library/re.rst:1268 msgid "" ">>> pattern = re.compile(\"d\")\n" ">>> pattern.search(\"dog\") # Match at index 0\n" @@ -2043,7 +2041,7 @@ msgid "" ">>> pattern.search(\"dog\", 1) # No match; search doesn't include the \"d\"" msgstr "" -#: ../../library/re.rst:1274 +#: ../../library/re.rst:1276 msgid "" "If zero or more characters at the *beginning* of *string* match this regular " "expression, return a corresponding :class:`~re.Match`. Return ``None`` if " @@ -2054,7 +2052,7 @@ msgstr "" "class:`~re.Match` を返します。もし文字列がパターンとマッチしなければ、 " "``None`` を返します;これは長さゼロのマッチとは異なることに注意して下さい。" -#: ../../library/re.rst:1279 ../../library/re.rst:1297 +#: ../../library/re.rst:1281 ../../library/re.rst:1299 msgid "" "The optional *pos* and *endpos* parameters have the same meaning as for the :" "meth:`~Pattern.search` method. ::" @@ -2062,7 +2060,7 @@ msgstr "" "オプションの *pos* および *endpos* 引数は :meth:`~Pattern.search` メソッドの" "ものと同じ意味です。" -#: ../../library/re.rst:1282 +#: ../../library/re.rst:1284 msgid "" ">>> pattern = re.compile(\"o\")\n" ">>> pattern.match(\"dog\") # No match as \"o\" is not at the start of " @@ -2072,7 +2070,7 @@ msgid "" "" msgstr "" -#: ../../library/re.rst:1287 +#: ../../library/re.rst:1289 msgid "" "If you want to locate a match anywhere in *string*, use :meth:`~Pattern." "search` instead (see also :ref:`search-vs-match`)." @@ -2080,7 +2078,7 @@ msgstr "" "*string* 中のどこででもマッチさせたいなら、代わりに :meth:`~Pattern.search` " "を使ってください (:ref:`search-vs-match` も参照してください)。" -#: ../../library/re.rst:1293 +#: ../../library/re.rst:1295 msgid "" "If the whole *string* matches this regular expression, return a " "corresponding :class:`~re.Match`. Return ``None`` if the string does not " @@ -2090,7 +2088,7 @@ msgstr "" "します。文字列がパターンにマッチしないなら ``None`` を返します。これは長さ 0 " "のマッチとは異なることに注意して下さい。" -#: ../../library/re.rst:1300 +#: ../../library/re.rst:1302 msgid "" ">>> pattern = re.compile(\"o[gh]\")\n" ">>> pattern.fullmatch(\"dog\") # No match as \"o\" is not at the start " @@ -2101,11 +2099,11 @@ msgid "" "" msgstr "" -#: ../../library/re.rst:1311 +#: ../../library/re.rst:1313 msgid "Identical to the :func:`split` function, using the compiled pattern." msgstr ":func:`split` 関数にこのコンパイル済みパターンを使うのと同じです。" -#: ../../library/re.rst:1316 +#: ../../library/re.rst:1318 msgid "" "Similar to the :func:`findall` function, using the compiled pattern, but " "also accepts optional *pos* and *endpos* parameters that limit the search " @@ -2115,7 +2113,7 @@ msgstr "" "ションの *pos* および *endpos* 引数で :meth:`search` のように検索範囲を制限で" "きます。" -#: ../../library/re.rst:1323 +#: ../../library/re.rst:1325 msgid "" "Similar to the :func:`finditer` function, using the compiled pattern, but " "also accepts optional *pos* and *endpos* parameters that limit the search " @@ -2125,15 +2123,15 @@ msgstr "" "ションの *pos* および *endpos* 引数で :meth:`search` のように検索範囲を制限で" "きます。" -#: ../../library/re.rst:1330 +#: ../../library/re.rst:1332 msgid "Identical to the :func:`sub` function, using the compiled pattern." msgstr ":func:`sub` 関数にこのコンパイル済みパターンを使うのと同じです。" -#: ../../library/re.rst:1335 +#: ../../library/re.rst:1337 msgid "Identical to the :func:`subn` function, using the compiled pattern." msgstr ":func:`subn` 関数にこのコンパイル済みパターンを使うのと同じです。" -#: ../../library/re.rst:1340 +#: ../../library/re.rst:1342 msgid "" "The regex matching flags. This is a combination of the flags given to :func:" "`.compile`, any ``(?...)`` inline flags in the pattern, and implicit flags " @@ -2143,11 +2141,11 @@ msgstr "" "パターン中の ``(?...)`` インラインフラグ、およびパターンが Unicode 文字列だっ" "た時の :py:const:`~re.UNICODE` のような暗黙のフラグの組み合わせです。" -#: ../../library/re.rst:1347 +#: ../../library/re.rst:1349 msgid "The number of capturing groups in the pattern." msgstr "パターン中のキャプチャグループの数です。" -#: ../../library/re.rst:1352 +#: ../../library/re.rst:1354 msgid "" "A dictionary mapping any symbolic group names defined by ``(?P)`` to " "group numbers. The dictionary is empty if no symbolic groups were used in " @@ -2157,11 +2155,11 @@ msgstr "" "る辞書です。シンボリックグループがパターン中で全く使われていなければ、この辞" "書は空です。" -#: ../../library/re.rst:1359 +#: ../../library/re.rst:1361 msgid "The pattern string from which the pattern object was compiled." msgstr "パターンオブジェクトがコンパイルされた元のパターン文字列です。" -#: ../../library/re.rst:1362 +#: ../../library/re.rst:1364 msgid "" "Added support of :func:`copy.copy` and :func:`copy.deepcopy`. Compiled " "regular expression objects are considered atomic." @@ -2169,11 +2167,11 @@ msgstr "" ":func:`copy.copy` および :func:`copy.deepcopy` をサポートするようになりまし" "た。コンパイル済み正規表現オブジェクトはアトミックであると見なされます。" -#: ../../library/re.rst:1370 +#: ../../library/re.rst:1372 msgid "Match Objects" msgstr "マッチオブジェクト" -#: ../../library/re.rst:1372 +#: ../../library/re.rst:1374 msgid "" "Match objects always have a boolean value of ``True``. Since :meth:`~Pattern." "match` and :meth:`~Pattern.search` return ``None`` when there is no match, " @@ -2183,24 +2181,24 @@ msgstr "" "よび :meth:`~Pattern.search` はマッチがないとき ``None`` を返すので、マッチが" "あるか単純な ``if`` 文で判定できます。" -#: ../../library/re.rst:1377 +#: ../../library/re.rst:1379 msgid "" "match = re.search(pattern, string)\n" "if match:\n" " process(match)" msgstr "" -#: ../../library/re.rst:1383 +#: ../../library/re.rst:1385 msgid "Match object returned by successful ``match``\\ es and ``search``\\ es." msgstr "" -#: ../../library/re.rst:1385 +#: ../../library/re.rst:1387 msgid "" ":py:class:`re.Match` supports ``[]`` to indicate a Unicode (str) or bytes " "match. See :ref:`types-genericalias`." msgstr "" -#: ../../library/re.rst:1391 +#: ../../library/re.rst:1393 msgid "" "Return the string obtained by doing backslash substitution on the template " "string *template*, as done by the :meth:`~Pattern.sub` method. Escapes such " @@ -2210,7 +2208,7 @@ msgid "" "backreference ``\\g<0>`` will be replaced by the entire match." msgstr "" -#: ../../library/re.rst:1404 +#: ../../library/re.rst:1406 msgid "" "Returns one or more subgroups of the match. If there is a single argument, " "the result is a single string; if there are multiple arguments, the result " @@ -2234,7 +2232,7 @@ msgstr "" "応する結果は ``None`` です。あるグループがパターンの複数回マッチした部分に含" "まれているなら、最後のマッチが返されます。 ::" -#: ../../library/re.rst:1416 +#: ../../library/re.rst:1418 msgid "" ">>> m = re.match(r\"(\\w+) (\\w+)\", \"Isaac Newton, physicist\")\n" ">>> m.group(0) # The entire match\n" @@ -2247,7 +2245,7 @@ msgid "" "('Isaac', 'Newton')" msgstr "" -#: ../../library/re.rst:1426 +#: ../../library/re.rst:1428 msgid "" "If the regular expression uses the ``(?P...)`` syntax, the *groupN* " "arguments may also be strings identifying groups by their group name. If a " @@ -2258,11 +2256,11 @@ msgstr "" "ループを識別する文字列でも構いません。文字列引数がパターン中でグループ名とし" "て使われていなければ、 :exc:`IndexError` 例外が送出されます。" -#: ../../library/re.rst:1431 +#: ../../library/re.rst:1433 msgid "A moderately complicated example::" msgstr "やや複雑な例::" -#: ../../library/re.rst:1433 +#: ../../library/re.rst:1435 msgid "" ">>> m = re.match(r\"(?P\\w+) (?P\\w+)\", \"Malcolm " "Reynolds\")\n" @@ -2272,11 +2270,11 @@ msgid "" "'Reynolds'" msgstr "" -#: ../../library/re.rst:1439 +#: ../../library/re.rst:1441 msgid "Named groups can also be referred to by their index::" msgstr "名前付きグループはインデックスでも参照できます::" -#: ../../library/re.rst:1441 +#: ../../library/re.rst:1443 msgid "" ">>> m.group(1)\n" "'Malcolm'\n" @@ -2284,19 +2282,19 @@ msgid "" "'Reynolds'" msgstr "" -#: ../../library/re.rst:1446 +#: ../../library/re.rst:1448 msgid "If a group matches multiple times, only the last match is accessible::" msgstr "" "あるグループが複数回マッチすると、その最後のマッチにのみアクセスできます::" -#: ../../library/re.rst:1448 +#: ../../library/re.rst:1450 msgid "" ">>> m = re.match(r\"(..)+\", \"a1b2c3\") # Matches 3 times.\n" ">>> m.group(1) # Returns only the last match.\n" "'c3'" msgstr "" -#: ../../library/re.rst:1455 +#: ../../library/re.rst:1457 msgid "" "This is identical to ``m.group(g)``. This allows easier access to an " "individual group from a match::" @@ -2304,7 +2302,7 @@ msgstr "" "これは ``m.group(g)`` と同等です。これでマッチの個別のグループに簡単にアクセ" "スできます::" -#: ../../library/re.rst:1458 +#: ../../library/re.rst:1460 msgid "" ">>> m = re.match(r\"(\\w+) (\\w+)\", \"Isaac Newton, physicist\")\n" ">>> m[0] # The entire match\n" @@ -2315,11 +2313,11 @@ msgid "" "'Newton'" msgstr "" -#: ../../library/re.rst:1466 +#: ../../library/re.rst:1468 msgid "Named groups are supported as well::" msgstr "" -#: ../../library/re.rst:1468 +#: ../../library/re.rst:1470 msgid "" ">>> m = re.match(r\"(?P\\w+) (?P\\w+)\", \"Isaac " "Newton\")\n" @@ -2329,7 +2327,7 @@ msgid "" "'Newton'" msgstr "" -#: ../../library/re.rst:1479 +#: ../../library/re.rst:1481 msgid "" "Return a tuple containing all the subgroups of the match, from 1 up to " "however many groups are in the pattern. The *default* argument is used for " @@ -2339,18 +2337,18 @@ msgstr "" "ルを返します。*default* 引数はマッチに関係しなかったグループに使われます。デ" "フォルトでは ``None`` です。" -#: ../../library/re.rst:1483 ../../library/re.rst:1708 +#: ../../library/re.rst:1485 ../../library/re.rst:1710 msgid "For example::" msgstr "例えば::" -#: ../../library/re.rst:1485 +#: ../../library/re.rst:1487 msgid "" ">>> m = re.match(r\"(\\d+)\\.(\\d+)\", \"24.1632\")\n" ">>> m.groups()\n" "('24', '1632')" msgstr "" -#: ../../library/re.rst:1489 +#: ../../library/re.rst:1491 msgid "" "If we make the decimal place and everything after it optional, not all " "groups might participate in the match. These groups will default to " @@ -2360,7 +2358,7 @@ msgstr "" "るとは限りません。そういったグループは *default* 引数が与えられない限りデフォ" "ルトで ``None`` になります。" -#: ../../library/re.rst:1493 +#: ../../library/re.rst:1495 msgid "" ">>> m = re.match(r\"(\\d+)\\.?(\\d+)?\", \"24\")\n" ">>> m.groups() # Second group defaults to None.\n" @@ -2369,7 +2367,7 @@ msgid "" "('24', '0')" msgstr "" -#: ../../library/re.rst:1502 +#: ../../library/re.rst:1504 msgid "" "Return a dictionary containing all the *named* subgroups of the match, keyed " "by the subgroup name. The *default* argument is used for groups that did " @@ -2379,7 +2377,7 @@ msgstr "" "る辞書を返します。 *default* 引数はマッチに関係しなかったグループに使われま" "す。デフォルトは ``None`` です。例えば::" -#: ../../library/re.rst:1506 +#: ../../library/re.rst:1508 msgid "" ">>> m = re.match(r\"(?P\\w+) (?P\\w+)\", \"Malcolm " "Reynolds\")\n" @@ -2387,7 +2385,7 @@ msgid "" "{'first_name': 'Malcolm', 'last_name': 'Reynolds'}" msgstr "" -#: ../../library/re.rst:1514 +#: ../../library/re.rst:1516 msgid "" "Return the indices of the start and end of the substring matched by *group*; " "*group* defaults to zero (meaning the whole matched substring). Return " @@ -2401,11 +2399,11 @@ msgstr "" "*m* と、マッチに寄与したグループ *g* に対して、グループ *g* がマッチした部分" "文字列 (``m.group(g)`` と等価です) は以下の通りです ::" -#: ../../library/re.rst:1520 +#: ../../library/re.rst:1522 msgid "m.string[m.start(g):m.end(g)]" msgstr "" -#: ../../library/re.rst:1522 +#: ../../library/re.rst:1524 msgid "" "Note that ``m.start(group)`` will equal ``m.end(group)`` if *group* matched " "a null string. For example, after ``m = re.search('b(c?)', 'cba')``, ``m." @@ -2418,11 +2416,11 @@ msgstr "" "``m.end(1)`` はともに 2 であり、 ``m.start(2)`` は :exc:`IndexError` 例外を発" "生します。" -#: ../../library/re.rst:1527 +#: ../../library/re.rst:1529 msgid "An example that will remove *remove_this* from email addresses::" msgstr "メールアドレスから *remove_this* を取り除く例::" -#: ../../library/re.rst:1529 +#: ../../library/re.rst:1531 msgid "" ">>> email = \"tony@tiremove_thisger.net\"\n" ">>> m = re.search(\"remove_this\", email)\n" @@ -2430,7 +2428,7 @@ msgid "" "'tony@tiger.net'" msgstr "" -#: ../../library/re.rst:1537 +#: ../../library/re.rst:1539 msgid "" "For a match *m*, return the 2-tuple ``(m.start(group), m.end(group))``. Note " "that if *group* did not contribute to the match, this is ``(-1, -1)``. " @@ -2440,7 +2438,7 @@ msgstr "" "す。 *group* がマッチに寄与していなければ、これは ``(-1, -1)`` です。 " "*group* はデフォルトで 0 、マッチ全体です。" -#: ../../library/re.rst:1544 +#: ../../library/re.rst:1546 msgid "" "The value of *pos* which was passed to the :meth:`~Pattern.search` or :meth:" "`~Pattern.match` method of a :ref:`regex object `. This is the " @@ -2450,7 +2448,7 @@ msgstr "" "`~Pattern.match` に渡された *pos* の値です。これは正規表現エンジンがマッチを" "探し始める位置の文字列のインデックスです。" -#: ../../library/re.rst:1551 +#: ../../library/re.rst:1553 msgid "" "The value of *endpos* which was passed to the :meth:`~Pattern.search` or :" "meth:`~Pattern.match` method of a :ref:`regex object `. This is " @@ -2460,7 +2458,7 @@ msgstr "" "`~Pattern.match` に渡された *endpos* の値です。これは正規表現エンジンがそれ以" "上は進まない文字列のインデックスです。" -#: ../../library/re.rst:1558 +#: ../../library/re.rst:1560 msgid "" "The integer index of the last matched capturing group, or ``None`` if no " "group was matched at all. For example, the expressions ``(a)b``, ``((a)" @@ -2473,7 +2471,7 @@ msgstr "" "``((ab))`` が ``'ab'`` に適用されると ``lastindex == 1`` となり、同じ文字列" "に ``(a)(b)`` が適用されると ``lastindex == 2`` となります。" -#: ../../library/re.rst:1567 +#: ../../library/re.rst:1569 msgid "" "The name of the last matched capturing group, or ``None`` if the group " "didn't have a name, or if no group was matched at all." @@ -2481,7 +2479,7 @@ msgstr "" "最後にマッチしたキャプチャグループの名前です。そのグループに名前がないか、ど" "のグループも全くマッチしていなければ ``None`` です。" -#: ../../library/re.rst:1573 +#: ../../library/re.rst:1575 msgid "" "The :ref:`regular expression object ` whose :meth:`~Pattern." "match` or :meth:`~Pattern.search` method produced this match instance." @@ -2490,12 +2488,12 @@ msgstr "" "`~Pattern.search` メソッドの属する :ref:`正規表現オブジェクト ` " "です。" -#: ../../library/re.rst:1579 +#: ../../library/re.rst:1581 msgid "The string passed to :meth:`~Pattern.match` or :meth:`~Pattern.search`." msgstr "" ":meth:`~Pattern.match` や :meth:`~Pattern.search` へ渡された文字列です。" -#: ../../library/re.rst:1582 +#: ../../library/re.rst:1584 msgid "" "Added support of :func:`copy.copy` and :func:`copy.deepcopy`. Match objects " "are considered atomic." @@ -2503,15 +2501,15 @@ msgstr "" ":func:`copy.copy` および :func:`copy.deepcopy` をサポートするようになりまし" "た。マッチオブジェクトはアトミックであると見なされます。" -#: ../../library/re.rst:1590 +#: ../../library/re.rst:1592 msgid "Regular Expression Examples" msgstr "正規表現の例" -#: ../../library/re.rst:1594 +#: ../../library/re.rst:1596 msgid "Checking for a Pair" msgstr "ペアの確認" -#: ../../library/re.rst:1596 +#: ../../library/re.rst:1598 msgid "" "In this example, we'll use the following helper function to display match " "objects a little more gracefully::" @@ -2519,7 +2517,7 @@ msgstr "" "この例では、マッチオブジェクトをより美しく表示するために、この補助関数を使用" "します:: " -#: ../../library/re.rst:1599 +#: ../../library/re.rst:1601 msgid "" "def displaymatch(match):\n" " if match is None:\n" @@ -2527,7 +2525,7 @@ msgid "" " return '' % (match.group(), match.groups())" msgstr "" -#: ../../library/re.rst:1604 +#: ../../library/re.rst:1606 msgid "" "Suppose you are writing a poker program where a player's hand is represented " "as a 5-character string with each character representing a card, \"a\" for " @@ -2539,11 +2537,11 @@ msgstr "" "ス、 \"k\" はキング、 \"q\" はクイーン、 \"j\" はジャック、 \"t\" は 10、そし" "て \"2\" から \"9\" はその数字のカードを表します。" -#: ../../library/re.rst:1609 +#: ../../library/re.rst:1611 msgid "To see if a given string is a valid hand, one could do the following::" msgstr "与えられた文字列が有効な手札であるか見るには、以下のようにできます::" -#: ../../library/re.rst:1611 +#: ../../library/re.rst:1613 msgid "" ">>> valid = re.compile(r\"^[a2-9tjqk]{5}$\")\n" ">>> displaymatch(valid.match(\"akt5q\")) # Valid.\n" @@ -2554,7 +2552,7 @@ msgid "" "\"\"" msgstr "" -#: ../../library/re.rst:1619 +#: ../../library/re.rst:1621 msgid "" "That last hand, ``\"727ak\"``, contained a pair, or two of the same valued " "cards. To match this with a regular expression, one could use backreferences " @@ -2563,7 +2561,7 @@ msgstr "" "最後の手札、 ``\"727ak\"`` 、はペア、すなわち同じ値の 2 枚のカードを含みま" "す。正規表現でこれにマッチするには、このように後方参照を使えます::" -#: ../../library/re.rst:1622 +#: ../../library/re.rst:1624 msgid "" ">>> pair = re.compile(r\".*(.).*\\1\")\n" ">>> displaymatch(pair.match(\"717ak\")) # Pair of 7s.\n" @@ -2573,7 +2571,7 @@ msgid "" "\"\"" msgstr "" -#: ../../library/re.rst:1629 +#: ../../library/re.rst:1631 msgid "" "To find out what card the pair consists of, one could use the :meth:`~Match." "group` method of the match object in the following manner::" @@ -2581,7 +2579,7 @@ msgstr "" "ペアになっているのがどのカードか調べるには、このようにマッチオブジェクトの :" "meth:`~Match.group` メソッドを使えます::" -#: ../../library/re.rst:1632 +#: ../../library/re.rst:1634 msgid "" ">>> pair = re.compile(r\".*(.).*\\1\")\n" ">>> pair.match(\"717ak\").group(1)\n" @@ -2599,11 +2597,11 @@ msgid "" "'a'" msgstr "" -#: ../../library/re.rst:1648 +#: ../../library/re.rst:1650 msgid "Simulating scanf()" msgstr "scanf() をシミュレートする" -#: ../../library/re.rst:1652 +#: ../../library/re.rst:1654 msgid "" "Python does not currently have an equivalent to :c:func:`!scanf`. Regular " "expressions are generally more powerful, though also more verbose, than :c:" @@ -2616,130 +2614,130 @@ msgstr "" "あります。以下の表に、 :c:func:`!scanf` のフォーマットトークンと正規表現のお" "およその対応付けを示します。" -#: ../../library/re.rst:1659 +#: ../../library/re.rst:1661 msgid ":c:func:`!scanf` Token" msgstr ":c:func:`!scanf` トークン" -#: ../../library/re.rst:1659 +#: ../../library/re.rst:1661 msgid "Regular Expression" msgstr "正規表現" -#: ../../library/re.rst:1661 +#: ../../library/re.rst:1663 msgid "``%c``" msgstr "``%c``" -#: ../../library/re.rst:1663 +#: ../../library/re.rst:1665 msgid "``%5c``" msgstr "``%5c``" -#: ../../library/re.rst:1663 +#: ../../library/re.rst:1665 msgid "``.{5}``" msgstr "``.{5}``" -#: ../../library/re.rst:1665 +#: ../../library/re.rst:1667 msgid "``%d``" msgstr "``%d``" -#: ../../library/re.rst:1665 +#: ../../library/re.rst:1667 msgid "``[-+]?\\d+``" msgstr "``[-+]?\\d+``" -#: ../../library/re.rst:1667 +#: ../../library/re.rst:1669 msgid "``%e``, ``%E``, ``%f``, ``%g``" msgstr "``%e``, ``%E``, ``%f``, ``%g``" -#: ../../library/re.rst:1667 +#: ../../library/re.rst:1669 msgid "``[-+]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?``" msgstr "``[-+]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?``" -#: ../../library/re.rst:1669 +#: ../../library/re.rst:1671 msgid "``%i``" msgstr "``%i``" -#: ../../library/re.rst:1669 +#: ../../library/re.rst:1671 msgid "``[-+]?(0[xX][\\dA-Fa-f]+|0[0-7]*|\\d+)``" msgstr "``[-+]?(0[xX][\\dA-Fa-f]+|0[0-7]*|\\d+)``" -#: ../../library/re.rst:1671 +#: ../../library/re.rst:1673 msgid "``%o``" msgstr "``%o``" -#: ../../library/re.rst:1671 +#: ../../library/re.rst:1673 msgid "``[-+]?[0-7]+``" msgstr "``[-+]?[0-7]+``" -#: ../../library/re.rst:1673 +#: ../../library/re.rst:1675 msgid "``%s``" msgstr "``%s``" -#: ../../library/re.rst:1673 +#: ../../library/re.rst:1675 msgid "``\\S+``" msgstr "``\\S+``" -#: ../../library/re.rst:1675 +#: ../../library/re.rst:1677 msgid "``%u``" msgstr "``%u``" -#: ../../library/re.rst:1675 +#: ../../library/re.rst:1677 msgid "``\\d+``" msgstr "``\\d+``" -#: ../../library/re.rst:1677 +#: ../../library/re.rst:1679 msgid "``%x``, ``%X``" msgstr "``%x``, ``%X``" -#: ../../library/re.rst:1677 +#: ../../library/re.rst:1679 msgid "``[-+]?(0[xX])?[\\dA-Fa-f]+``" msgstr "``[-+]?(0[xX])?[\\dA-Fa-f]+``" -#: ../../library/re.rst:1680 +#: ../../library/re.rst:1682 msgid "To extract the filename and numbers from a string like ::" msgstr "以下のような文字列からファイル名と数を抽出するには ::" -#: ../../library/re.rst:1682 +#: ../../library/re.rst:1684 msgid "/usr/sbin/sendmail - 0 errors, 4 warnings" msgstr "" -#: ../../library/re.rst:1684 +#: ../../library/re.rst:1686 msgid "you would use a :c:func:`!scanf` format like ::" msgstr "以下のように :c:func:`!scanf` フォーマットを使えます ::" -#: ../../library/re.rst:1686 +#: ../../library/re.rst:1688 msgid "%s - %d errors, %d warnings" msgstr "" -#: ../../library/re.rst:1688 +#: ../../library/re.rst:1690 msgid "The equivalent regular expression would be ::" msgstr "等価な正規表現はこうです ::" -#: ../../library/re.rst:1690 +#: ../../library/re.rst:1692 msgid "(\\S+) - (\\d+) errors, (\\d+) warnings" msgstr "" -#: ../../library/re.rst:1696 +#: ../../library/re.rst:1698 msgid "search() vs. match()" msgstr "search() vs. match()" -#: ../../library/re.rst:1700 +#: ../../library/re.rst:1702 msgid "" "Python offers different primitive operations based on regular expressions:" msgstr "" -#: ../../library/re.rst:1702 +#: ../../library/re.rst:1704 msgid ":func:`re.match` checks for a match only at the beginning of the string" msgstr "" -#: ../../library/re.rst:1703 +#: ../../library/re.rst:1705 msgid "" ":func:`re.search` checks for a match anywhere in the string (this is what " "Perl does by default)" msgstr "" -#: ../../library/re.rst:1705 +#: ../../library/re.rst:1707 msgid ":func:`re.fullmatch` checks for entire string to be a match" msgstr "" -#: ../../library/re.rst:1710 +#: ../../library/re.rst:1712 msgid "" ">>> re.match(\"c\", \"abcdef\") # No match\n" ">>> re.search(\"c\", \"abcdef\") # Match\n" @@ -2749,7 +2747,7 @@ msgid "" ">>> re.fullmatch(\"r.*n\", \"python\") # No match" msgstr "" -#: ../../library/re.rst:1717 +#: ../../library/re.rst:1719 msgid "" "Regular expressions beginning with ``'^'`` can be used with :func:`search` " "to restrict the match at the beginning of the string::" @@ -2757,7 +2755,7 @@ msgstr "" "``'^'`` で始まる正規表現を :func:`search` で使って、マッチを文字列の先頭での" "みに制限できます::" -#: ../../library/re.rst:1720 +#: ../../library/re.rst:1722 msgid "" ">>> re.match(\"c\", \"abcdef\") # No match\n" ">>> re.search(\"^c\", \"abcdef\") # No match\n" @@ -2765,7 +2763,7 @@ msgid "" "" msgstr "" -#: ../../library/re.rst:1725 +#: ../../library/re.rst:1727 msgid "" "Note however that in :const:`MULTILINE` mode :func:`match` only matches at " "the beginning of the string, whereas using :func:`search` with a regular " @@ -2776,18 +2774,18 @@ msgstr "" "マッチし、 ``'^'`` で始まる正規表現で :func:`search` を使うと各行の先頭でマッ" "チすることに注意してください。" -#: ../../library/re.rst:1729 +#: ../../library/re.rst:1731 msgid "" ">>> re.match(\"X\", \"A\\nB\\nX\", re.MULTILINE) # No match\n" ">>> re.search(\"^X\", \"A\\nB\\nX\", re.MULTILINE) # Match\n" "" msgstr "" -#: ../../library/re.rst:1735 +#: ../../library/re.rst:1737 msgid "Making a Phonebook" msgstr "電話帳を作る" -#: ../../library/re.rst:1737 +#: ../../library/re.rst:1739 msgid "" ":func:`split` splits a string into a list delimited by the passed pattern. " "The method is invaluable for converting textual data into data structures " @@ -2799,7 +2797,7 @@ msgstr "" "する電話帳作成のように Python で編集したりしやすくするのに、非常に役に立ちま" "す。" -#: ../../library/re.rst:1742 +#: ../../library/re.rst:1744 msgid "" "First, here is the input. Normally it may come from a file, here we are " "using triple-quoted string syntax" @@ -2807,7 +2805,7 @@ msgstr "" "最初に、入力を示します。通常、これはファイルからの入力になるでしょう。ここで" "は、3重引用符の書式とします。" -#: ../../library/re.rst:1745 +#: ../../library/re.rst:1747 msgid "" ">>> text = \"\"\"Ross McFluff: 834.345.1254 155 Elm Street\n" "...\n" @@ -2818,7 +2816,7 @@ msgid "" "... Heather Albrecht: 548.326.4584 919 Park Place\"\"\"" msgstr "" -#: ../../library/re.rst:1755 +#: ../../library/re.rst:1757 msgid "" "The entries are separated by one or more newlines. Now we convert the string " "into a list with each nonempty line having its own entry:" @@ -2826,7 +2824,7 @@ msgstr "" "各項目は 1 つ以上の改行で区切られています。まずは文字列を変換して、空行でない" "各行を項目とするリストにします:" -#: ../../library/re.rst:1758 +#: ../../library/re.rst:1760 msgid "" ">>> entries = re.split(\"\\n+\", text)\n" ">>> entries\n" @@ -2836,7 +2834,7 @@ msgid "" "'Heather Albrecht: 548.326.4584 919 Park Place']" msgstr "" -#: ../../library/re.rst:1768 +#: ../../library/re.rst:1770 msgid "" "Finally, split each entry into a list with first name, last name, telephone " "number, and address. We use the ``maxsplit`` parameter of :func:`split` " @@ -2846,7 +2844,7 @@ msgstr "" "トにします。分割パターンである空白文字は住所にも含まれるので、 :func:`split` " "の ``maxsplit`` 引数を使います:" -#: ../../library/re.rst:1772 +#: ../../library/re.rst:1774 msgid "" ">>> [re.split(\":? \", entry, maxsplit=3) for entry in entries]\n" "[['Ross', 'McFluff', '834.345.1254', '155 Elm Street'],\n" @@ -2855,7 +2853,7 @@ msgid "" "['Heather', 'Albrecht', '548.326.4584', '919 Park Place']]" msgstr "" -#: ../../library/re.rst:1781 +#: ../../library/re.rst:1783 msgid "" "The ``:?`` pattern matches the colon after the last name, so that it does " "not occur in the result list. With a ``maxsplit`` of ``4``, we could " @@ -2865,7 +2863,7 @@ msgstr "" "に出てこないようにします。 ``maxsplit`` を ``4`` にすれば、家屋番号とストリー" "ト名を分割できます:" -#: ../../library/re.rst:1785 +#: ../../library/re.rst:1787 msgid "" ">>> [re.split(\":? \", entry, maxsplit=4) for entry in entries]\n" "[['Ross', 'McFluff', '834.345.1254', '155', 'Elm Street'],\n" @@ -2874,11 +2872,11 @@ msgid "" "['Heather', 'Albrecht', '548.326.4584', '919', 'Park Place']]" msgstr "" -#: ../../library/re.rst:1796 +#: ../../library/re.rst:1798 msgid "Text Munging" msgstr "テキストの秘匿" -#: ../../library/re.rst:1798 +#: ../../library/re.rst:1800 msgid "" ":func:`sub` replaces every occurrence of a pattern with a string or the " "result of a function. This example demonstrates using :func:`sub` with a " @@ -2890,7 +2888,7 @@ msgstr "" "実演します。具体的には、文中の各単語について、最初と最後の文字を除く全ての文" "字をランダムに並び替えます::" -#: ../../library/re.rst:1803 +#: ../../library/re.rst:1805 msgid "" ">>> def repl(m):\n" "... inner_word = list(m.group(2))\n" @@ -2904,11 +2902,11 @@ msgid "" "'Pofsroser Aodlambelk, plasee reoprt yuor asnebces potlmrpy.'" msgstr "" -#: ../../library/re.rst:1816 +#: ../../library/re.rst:1818 msgid "Finding all Adverbs" msgstr "全ての副詞を見つける" -#: ../../library/re.rst:1818 +#: ../../library/re.rst:1820 msgid "" ":func:`findall` matches *all* occurrences of a pattern, not just the first " "one as :func:`search` does. For example, if a writer wanted to find all of " @@ -2919,18 +2917,18 @@ msgstr "" "する *全ての* パターンにマッチします。例えば、ライターがあるテキストの全ての" "副詞を見つけたいなら、以下のように :func:`findall` を使えます::" -#: ../../library/re.rst:1823 +#: ../../library/re.rst:1825 msgid "" ">>> text = \"He was carefully disguised but captured quickly by police.\"\n" ">>> re.findall(r\"\\w+ly\\b\", text)\n" "['carefully', 'quickly']" msgstr "" -#: ../../library/re.rst:1829 +#: ../../library/re.rst:1831 msgid "Finding all Adverbs and their Positions" msgstr "全ての副詞とその位置を見つける" -#: ../../library/re.rst:1831 +#: ../../library/re.rst:1833 msgid "" "If one wants more information about all matches of a pattern than the " "matched text, :func:`finditer` is useful as it provides :class:`~re.Match` " @@ -2943,7 +2941,7 @@ msgstr "" "いて、ライターがあるテキストの全ての副詞 *およびその位置* を見つけたいなら、" "以下のように :func:`finditer` を使えます::" -#: ../../library/re.rst:1837 +#: ../../library/re.rst:1839 msgid "" ">>> text = \"He was carefully disguised but captured quickly by police.\"\n" ">>> for m in re.finditer(r\"\\w+ly\\b\", text):\n" @@ -2952,11 +2950,11 @@ msgid "" "40-47: quickly" msgstr "" -#: ../../library/re.rst:1845 +#: ../../library/re.rst:1847 msgid "Raw String Notation" msgstr "Raw 文字列記法" -#: ../../library/re.rst:1847 +#: ../../library/re.rst:1849 msgid "" "Raw string notation (``r\"text\"``) keeps regular expressions sane. Without " "it, every backslash (``'\\'``) in a regular expression would have to be " @@ -2967,7 +2965,7 @@ msgstr "" "正規表現中のバックスラッシュ (``'\\'``) を個々にバックスラッシュを前置してエ" "スケープしなければなりません。例えば、以下の 2 行のコードは機能的に等価です::" -#: ../../library/re.rst:1852 +#: ../../library/re.rst:1854 msgid "" ">>> re.match(r\"\\W(.)\\1\\W\", \" ff \")\n" "\n" @@ -2975,7 +2973,7 @@ msgid "" "" msgstr "" -#: ../../library/re.rst:1857 +#: ../../library/re.rst:1859 msgid "" "When one wants to match a literal backslash, it must be escaped in the " "regular expression. With raw string notation, this means ``r\"\\\\\"``. " @@ -2987,7 +2985,7 @@ msgstr "" "を用いないと、``\"\\\\\\\\\"`` としなくてはならず、以下のコードは機能的に等価" "です::" -#: ../../library/re.rst:1862 +#: ../../library/re.rst:1864 msgid "" ">>> re.match(r\"\\\\\", r\"\\\\\")\n" "\n" @@ -2995,11 +2993,11 @@ msgid "" "" msgstr "" -#: ../../library/re.rst:1869 +#: ../../library/re.rst:1871 msgid "Writing a Tokenizer" msgstr "トークナイザを書く" -#: ../../library/re.rst:1871 +#: ../../library/re.rst:1873 msgid "" "A `tokenizer or scanner `_ " "analyzes a string to categorize groups of characters. This is a useful " @@ -3009,7 +3007,7 @@ msgstr "" "文字列を解析し、文字のグループにカテゴリ分けします。これはコンパイラやインタ" "プリタを書くうえで役立つ第一段階です。" -#: ../../library/re.rst:1875 +#: ../../library/re.rst:1877 msgid "" "The text categories are specified with regular expressions. The technique " "is to combine those into a single master regular expression and to loop over " @@ -3018,7 +3016,7 @@ msgstr "" "テキストのカテゴリは正規表現で指定されます。この技法では、それらを一つのマス" "ター正規表現に結合し、マッチの連続についてループします::" -#: ../../library/re.rst:1879 +#: ../../library/re.rst:1881 msgid "" "from typing import NamedTuple\n" "import re\n" @@ -3074,11 +3072,11 @@ msgid "" " print(token)" msgstr "" -#: ../../library/re.rst:1931 +#: ../../library/re.rst:1933 msgid "The tokenizer produces the following output::" msgstr "このトークナイザは以下の出力を作成します::" -#: ../../library/re.rst:1933 +#: ../../library/re.rst:1935 msgid "" "Token(type='IF', value='IF', line=2, column=4)\n" "Token(type='ID', value='quantity', line=2, column=7)\n" @@ -3101,7 +3099,7 @@ msgid "" "Token(type='END', value=';', line=5, column=9)" msgstr "" -#: ../../library/re.rst:1954 +#: ../../library/re.rst:1956 msgid "" "Friedl, Jeffrey. Mastering Regular Expressions. 3rd ed., O'Reilly Media, " "2009. The third edition of the book no longer covers Python at all, but the " @@ -3129,7 +3127,7 @@ msgstr ". (ドット)" #: ../../library/re.rst:587 ../../library/re.rst:603 ../../library/re.rst:611 #: ../../library/re.rst:625 ../../library/re.rst:633 ../../library/re.rst:650 #: ../../library/re.rst:664 ../../library/re.rst:675 ../../library/re.rst:866 -#: ../../library/re.rst:1102 +#: ../../library/re.rst:1105 msgid "in regular expressions" msgstr "" @@ -3329,10 +3327,10 @@ msgstr "\\\\" msgid "# (hash)" msgstr "# (hash)" -#: ../../library/re.rst:1102 +#: ../../library/re.rst:1105 msgid "\\g" msgstr "\\g" -#: ../../library/re.rst:1650 +#: ../../library/re.rst:1652 msgid "scanf (C function)" msgstr "" diff --git a/library/readline.po b/library/readline.po index 8cc91b74b..01cfe9297 100644 --- a/library/readline.po +++ b/library/readline.po @@ -19,10 +19,10 @@ msgstr "" "Last-Translator: Takanori Suzuki , 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../library/readline.rst:2 diff --git a/library/reprlib.po b/library/reprlib.po index b1ae47472..ac7067edb 100644 --- a/library/reprlib.po +++ b/library/reprlib.po @@ -1,5 +1,5 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2025, Python Software Foundation +# Copyright (C) 2001 Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # @@ -11,17 +11,17 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: Python 3.13\n" +"Project-Id-Version: Python 3.14\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2025-05-02 14:19+0000\n" +"POT-Creation-Date: 2025-05-23 14:20+0000\n" "PO-Revision-Date: 2021-06-28 01:12+0000\n" "Last-Translator: 石井明久, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../library/reprlib.rst:2 diff --git a/library/resource.po b/library/resource.po index b062bab69..cd5d66a74 100644 --- a/library/resource.po +++ b/library/resource.po @@ -1,5 +1,5 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2025, Python Software Foundation +# Copyright (C) 2001 Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # @@ -13,17 +13,17 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: Python 3.13\n" +"Project-Id-Version: Python 3.14\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2025-05-02 14:19+0000\n" +"POT-Creation-Date: 2025-05-23 14:20+0000\n" "PO-Revision-Date: 2021-06-28 01:12+0000\n" "Last-Translator: Arihiro TAKASE, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../library/resource.rst:2 diff --git a/library/rlcompleter.po b/library/rlcompleter.po index 17bfdc137..9a35d6e2e 100644 --- a/library/rlcompleter.po +++ b/library/rlcompleter.po @@ -1,5 +1,5 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2025, Python Software Foundation +# Copyright (C) 2001 Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # @@ -10,17 +10,17 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: Python 3.13\n" +"Project-Id-Version: Python 3.14\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2025-05-02 14:19+0000\n" +"POT-Creation-Date: 2025-05-23 14:20+0000\n" "PO-Revision-Date: 2021-06-28 01:12+0000\n" "Last-Translator: 石井明久, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../library/rlcompleter.rst:2 diff --git a/library/runpy.po b/library/runpy.po index eb639022f..5754ec2de 100644 --- a/library/runpy.po +++ b/library/runpy.po @@ -1,5 +1,5 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2025, Python Software Foundation +# Copyright (C) 2001 Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # @@ -12,17 +12,17 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: Python 3.13\n" +"Project-Id-Version: Python 3.14\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2025-05-02 14:19+0000\n" +"POT-Creation-Date: 2025-05-23 14:20+0000\n" "PO-Revision-Date: 2021-06-28 01:12+0000\n" "Last-Translator: 石井明久, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../library/runpy.rst:2 diff --git a/library/sched.po b/library/sched.po index 5af486d62..042d27cdc 100644 --- a/library/sched.po +++ b/library/sched.po @@ -1,5 +1,5 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2025, Python Software Foundation +# Copyright (C) 2001 Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # @@ -11,17 +11,17 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: Python 3.13\n" +"Project-Id-Version: Python 3.14\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2025-05-02 14:19+0000\n" +"POT-Creation-Date: 2025-05-23 14:20+0000\n" "PO-Revision-Date: 2021-06-28 01:12+0000\n" "Last-Translator: 石井明久, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../library/sched.rst:2 diff --git a/library/secrets.po b/library/secrets.po index b833cad3b..a0d9e7561 100644 --- a/library/secrets.po +++ b/library/secrets.po @@ -1,5 +1,5 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2025, Python Software Foundation +# Copyright (C) 2001 Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # @@ -11,17 +11,17 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: Python 3.13\n" +"Project-Id-Version: Python 3.14\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2025-04-18 14:18+0000\n" +"POT-Creation-Date: 2025-05-09 14:19+0000\n" "PO-Revision-Date: 2021-06-28 01:12+0000\n" "Last-Translator: 石井明久, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../library/secrets.rst:2 diff --git a/library/security_warnings.po b/library/security_warnings.po index 43e702faa..b70f69918 100644 --- a/library/security_warnings.po +++ b/library/security_warnings.po @@ -1,5 +1,5 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2025, Python Software Foundation +# Copyright (C) 2001 Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # @@ -9,17 +9,17 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: Python 3.13\n" +"Project-Id-Version: Python 3.14\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2025-04-25 14:19+0000\n" +"POT-Creation-Date: 2025-05-16 14:19+0000\n" "PO-Revision-Date: 2021-08-10 13:22+0000\n" "Last-Translator: tomo, 2021\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../library/security_warnings.rst:6 diff --git a/library/select.po b/library/select.po index 8a49e8833..6fc583237 100644 --- a/library/select.po +++ b/library/select.po @@ -21,10 +21,10 @@ msgstr "" "Last-Translator: 石井明久, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../library/select.rst:2 diff --git a/library/selectors.po b/library/selectors.po index 9240f51c6..150773b62 100644 --- a/library/selectors.po +++ b/library/selectors.po @@ -1,5 +1,5 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2025, Python Software Foundation +# Copyright (C) 2001 Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # @@ -11,17 +11,17 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: Python 3.13\n" +"Project-Id-Version: Python 3.14\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2025-04-25 14:19+0000\n" +"POT-Creation-Date: 2025-05-16 14:19+0000\n" "PO-Revision-Date: 2021-06-28 01:12+0000\n" "Last-Translator: 石井明久, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../library/selectors.rst:2 diff --git a/library/shelve.po b/library/shelve.po index bdf4afbf4..af6099cf0 100644 --- a/library/shelve.po +++ b/library/shelve.po @@ -1,5 +1,5 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2025, Python Software Foundation +# Copyright (C) 2001 Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # @@ -12,17 +12,17 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: Python 3.13\n" +"Project-Id-Version: Python 3.14\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2025-05-02 14:19+0000\n" +"POT-Creation-Date: 2025-05-23 14:20+0000\n" "PO-Revision-Date: 2021-06-28 01:12+0000\n" "Last-Translator: 石井明久, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../library/shelve.rst:2 diff --git a/library/shlex.po b/library/shlex.po index 7a587cad7..4c7be77b4 100644 --- a/library/shlex.po +++ b/library/shlex.po @@ -1,5 +1,5 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2025, Python Software Foundation +# Copyright (C) 2001 Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # @@ -11,17 +11,17 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: Python 3.13\n" +"Project-Id-Version: Python 3.14\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2025-05-02 14:19+0000\n" +"POT-Creation-Date: 2025-05-23 14:20+0000\n" "PO-Revision-Date: 2021-06-28 01:13+0000\n" "Last-Translator: 石井明久, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../library/shlex.rst:2 diff --git a/library/shutil.po b/library/shutil.po index ad5b17ce9..86226bdf7 100644 --- a/library/shutil.po +++ b/library/shutil.po @@ -18,15 +18,15 @@ msgid "" msgstr "" "Project-Id-Version: Python 3.14\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2025-05-08 02:53-0300\n" +"POT-Creation-Date: 2025-05-16 14:19+0000\n" "PO-Revision-Date: 2021-06-28 01:13+0000\n" "Last-Translator: Atsuo Ishimoto , 2025\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../library/shutil.rst:2 @@ -730,6 +730,13 @@ msgstr "" #: ../../library/shutil.rst:457 msgid "" +"If *cmd* contains a directory component, :func:`!which` only checks the " +"specified path directly and does not search the directories listed in *path* " +"or in the system's :envvar:`PATH` environment variable." +msgstr "" + +#: ../../library/shutil.rst:461 +msgid "" "On Windows, the current directory is prepended to the *path* if *mode* does " "not include ``os.X_OK``. When the *mode* does include ``os.X_OK``, the " "Windows API ``NeedCurrentDirectoryForExePathW`` will be consulted to " @@ -738,7 +745,7 @@ msgid "" "environment variable ``NoDefaultCurrentDirectoryInExePath``." msgstr "" -#: ../../library/shutil.rst:464 +#: ../../library/shutil.rst:468 msgid "" "Also on Windows, the :envvar:`PATHEXT` environment variable is used to " "resolve commands that may not already include an extension. For example, if " @@ -747,25 +754,25 @@ msgid "" "directories. For example, on Windows::" msgstr "" -#: ../../library/shutil.rst:470 +#: ../../library/shutil.rst:474 msgid "" ">>> shutil.which(\"python\")\n" "'C:\\\\Python33\\\\python.EXE'" msgstr "" -#: ../../library/shutil.rst:473 +#: ../../library/shutil.rst:477 msgid "" "This is also applied when *cmd* is a path that contains a directory " "component::" msgstr "" -#: ../../library/shutil.rst:476 +#: ../../library/shutil.rst:480 msgid "" ">>> shutil.which(\"C:\\\\Python33\\\\python\")\n" "'C:\\\\Python33\\\\python.EXE'" msgstr "" -#: ../../library/shutil.rst:481 +#: ../../library/shutil.rst:485 msgid "" "The :class:`bytes` type is now accepted. If *cmd* type is :class:`bytes`, " "the result type is also :class:`bytes`." @@ -773,7 +780,7 @@ msgstr "" ":class:`bytes` 型も使用できるようになりました。 *cmd* が :class:`bytes` 型の" "場合、戻り値も :class:`bytes` 型です。" -#: ../../library/shutil.rst:485 +#: ../../library/shutil.rst:489 msgid "" "On Windows, the current directory is no longer prepended to the search path " "if *mode* includes ``os.X_OK`` and WinAPI " @@ -784,7 +791,7 @@ msgid "" "now be found." msgstr "" -#: ../../library/shutil.rst:496 +#: ../../library/shutil.rst:500 msgid "" "This exception collects exceptions that are raised during a multi-file " "operation. For :func:`copytree`, the exception argument is a list of 3-" @@ -794,11 +801,11 @@ msgstr "" "す。 :func:`copytree` に対しては例外の引数は3つのタプル(*srcname*, " "*dstname*, *exception*)からなるリストです。" -#: ../../library/shutil.rst:503 +#: ../../library/shutil.rst:507 msgid "Platform-dependent efficient copy operations" msgstr "プラットフォーム依存の効率的なコピー操作" -#: ../../library/shutil.rst:505 +#: ../../library/shutil.rst:509 msgid "" "Starting from Python 3.8, all functions involving a file copy (:func:" "`copyfile`, :func:`~shutil.copy`, :func:`copy2`, :func:`copytree`, and :func:" @@ -815,21 +822,21 @@ msgstr "" "空間のバッファを利用することを避け、コピー操作がカーネル空間内で行われること" "を意味します。" -#: ../../library/shutil.rst:513 +#: ../../library/shutil.rst:517 msgid "On macOS `fcopyfile`_ is used to copy the file content (not metadata)." msgstr "" "macOS では `fcopyfile`_ がファイルの内容(メタデータを除く)をコピーするため" "に利用されます。" -#: ../../library/shutil.rst:515 +#: ../../library/shutil.rst:519 msgid "On Linux :func:`os.copy_file_range` or :func:`os.sendfile` is used." msgstr "" -#: ../../library/shutil.rst:517 +#: ../../library/shutil.rst:521 msgid "On Solaris :func:`os.sendfile` is used." msgstr "" -#: ../../library/shutil.rst:519 +#: ../../library/shutil.rst:523 msgid "" "On Windows :func:`shutil.copyfile` uses a bigger default buffer size (1 MiB " "instead of 64 KiB) and a :func:`memoryview`-based variant of :func:`shutil." @@ -839,7 +846,7 @@ msgstr "" "して使います (6 KiB の代わりに 1 MiB が使われます)。また、 :func:" "`memoryview` ベースの変形である :func:`shutil.copyfileobj` が使われます。" -#: ../../library/shutil.rst:523 +#: ../../library/shutil.rst:527 msgid "" "If the fast-copy operation fails and no data was written in the destination " "file then shutil will silently fallback on using less efficient :func:" @@ -849,32 +856,32 @@ msgstr "" "shutil はユーザーへの通知なしでより効率の低い :func:`copyfileobj` 関数に" "フォールバックします。" -#: ../../library/shutil.rst:529 +#: ../../library/shutil.rst:533 msgid "Solaris now uses :func:`os.sendfile`." msgstr "" -#: ../../library/shutil.rst:532 +#: ../../library/shutil.rst:536 msgid "" "Copy-on-write or server-side copy may be used internally via :func:`os." "copy_file_range` on supported Linux filesystems." msgstr "" -#: ../../library/shutil.rst:539 +#: ../../library/shutil.rst:543 msgid "copytree example" msgstr "copytree の例" -#: ../../library/shutil.rst:541 +#: ../../library/shutil.rst:545 msgid "An example that uses the :func:`ignore_patterns` helper::" msgstr ":func:`ignore_patterns` ヘルパ関数を利用する例です::" -#: ../../library/shutil.rst:543 +#: ../../library/shutil.rst:547 msgid "" "from shutil import copytree, ignore_patterns\n" "\n" "copytree(source, destination, ignore=ignore_patterns('*.pyc', 'tmp*'))" msgstr "" -#: ../../library/shutil.rst:547 +#: ../../library/shutil.rst:551 msgid "" "This will copy everything except ``.pyc`` files and files or directories " "whose name starts with ``tmp``." @@ -882,11 +889,11 @@ msgstr "" "この例では、 ``.pyc`` ファイルと、 ``tmp`` で始まる全てのファイルやディレクト" "リを除いて、全てをコピーします。" -#: ../../library/shutil.rst:550 +#: ../../library/shutil.rst:554 msgid "Another example that uses the *ignore* argument to add a logging call::" msgstr "*ignore* 引数にロギングさせる別の例です。 ::" -#: ../../library/shutil.rst:552 +#: ../../library/shutil.rst:556 msgid "" "from shutil import copytree\n" "import logging\n" @@ -898,11 +905,11 @@ msgid "" "copytree(source, destination, ignore=_logpath)" msgstr "" -#: ../../library/shutil.rst:565 +#: ../../library/shutil.rst:569 msgid "rmtree example" msgstr "rmtree の例" -#: ../../library/shutil.rst:567 +#: ../../library/shutil.rst:571 msgid "" "This example shows how to remove a directory tree on Windows where some of " "the files have their read-only bit set. It uses the onexc callback to clear " @@ -910,7 +917,7 @@ msgid "" "propagate. ::" msgstr "" -#: ../../library/shutil.rst:572 +#: ../../library/shutil.rst:576 msgid "" "import os, stat\n" "import shutil\n" @@ -923,15 +930,15 @@ msgid "" "shutil.rmtree(directory, onexc=remove_readonly)" msgstr "" -#: ../../library/shutil.rst:585 +#: ../../library/shutil.rst:589 msgid "Archiving operations" msgstr "アーカイブ化操作" -#: ../../library/shutil.rst:589 +#: ../../library/shutil.rst:593 msgid "Added support for the *xztar* format." msgstr "*xztar* 形式のサポートが追加されました。" -#: ../../library/shutil.rst:593 +#: ../../library/shutil.rst:597 msgid "" "High-level utilities to create and read compressed and archived files are " "also provided. They rely on the :mod:`zipfile` and :mod:`tarfile` modules." @@ -940,17 +947,17 @@ msgstr "" "されています。これらは :mod:`zipfile` 、 :mod:`tarfile` モジュールに依拠して" "います。" -#: ../../library/shutil.rst:598 +#: ../../library/shutil.rst:602 msgid "Create an archive file (such as zip or tar) and return its name." msgstr "アーカイブファイル (zip や tar) を作成してその名前を返します。" -#: ../../library/shutil.rst:600 +#: ../../library/shutil.rst:604 msgid "" "*base_name* is the name of the file to create, including the path, minus any " "format-specific extension." msgstr "" -#: ../../library/shutil.rst:603 +#: ../../library/shutil.rst:607 msgid "" "*format* is the archive format: one of \"zip\" (if the :mod:`zlib` module is " "available), \"tar\", \"gztar\" (if the :mod:`zlib` module is available), " @@ -958,7 +965,7 @@ msgid "" "`lzma` module is available)." msgstr "" -#: ../../library/shutil.rst:608 +#: ../../library/shutil.rst:612 msgid "" "*root_dir* is a directory that will be the root directory of the archive, " "all paths in the archive will be relative to it; for example, we typically " @@ -968,7 +975,7 @@ msgstr "" "まれる全てのパスは *root_dir* からの相対パスになります。これは、アーカイブ" "ファイルを生成する前に *root_dir* へ移動することに相当します。" -#: ../../library/shutil.rst:612 +#: ../../library/shutil.rst:616 msgid "" "*base_dir* is the directory where we start archiving from; i.e. *base_dir* " "will be the common prefix of all files and directories in the archive. " @@ -981,12 +988,12 @@ msgstr "" "*base_dir* と *root_dir* を組み合わせて使う方法については :ref:`shutil-" "archiving-example-with-basedir` を参照してください。" -#: ../../library/shutil.rst:618 +#: ../../library/shutil.rst:622 msgid "*root_dir* and *base_dir* both default to the current directory." msgstr "" "*root_dir* と *base_dir* のどちらも、デフォルトはカレントディレクトリです。" -#: ../../library/shutil.rst:620 +#: ../../library/shutil.rst:624 msgid "" "If *dry_run* is true, no archive is created, but the operations that would " "be executed are logged to *logger*." @@ -994,7 +1001,7 @@ msgstr "" "*dry_run* が真の場合、アーカイブは作成されませんが実行される操作は *logger* " "に記録されます。" -#: ../../library/shutil.rst:623 +#: ../../library/shutil.rst:627 msgid "" "*owner* and *group* are used when creating a tar archive. By default, uses " "the current owner and group." @@ -1002,7 +1009,7 @@ msgstr "" "*owner* と *group* は、tar アーカイブを作成するときに使われます。デフォルトで" "は、カレントのオーナーとグループを使います。" -#: ../../library/shutil.rst:626 +#: ../../library/shutil.rst:630 msgid "" "*logger* must be an object compatible with :pep:`282`, usually an instance " "of :class:`logging.Logger`." @@ -1010,11 +1017,11 @@ msgstr "" "*logger* は :pep:`282` に互換なオブジェクトでなければなりません。これは普通" "は :class:`logging.Logger` のインスタンスです。" -#: ../../library/shutil.rst:629 +#: ../../library/shutil.rst:633 msgid "The *verbose* argument is unused and deprecated." msgstr "*verbose* 引数は使用されず、非推奨です。" -#: ../../library/shutil.rst:631 +#: ../../library/shutil.rst:635 msgid "" "Raises an :ref:`auditing event ` ``shutil.make_archive`` with " "arguments ``base_name``, ``format``, ``root_dir``, ``base_dir``." @@ -1022,7 +1029,7 @@ msgstr "" "引数 ``base_name``, ``format``, ``root_dir``, ``base_dir`` を指定して :ref:`" "監査イベント ` ``shutil.make_archive`` を送出します。" -#: ../../library/shutil.rst:635 +#: ../../library/shutil.rst:639 msgid "" "This function is not thread-safe when custom archivers registered with :func:" "`register_archive_format` do not support the *root_dir* argument. In this " @@ -1030,7 +1037,7 @@ msgid "" "*root_dir* to perform archiving." msgstr "" -#: ../../library/shutil.rst:641 +#: ../../library/shutil.rst:645 msgid "" "The modern pax (POSIX.1-2001) format is now used instead of the legacy GNU " "format for archives created with ``format=\"tar\"``." @@ -1038,13 +1045,13 @@ msgstr "" "``format=\"tar\"`` で作成されたアーカイブでは、レガシーなGNU形式に代わってモ" "ダンな pax (POSIX.1-2001) 形式が使われます。" -#: ../../library/shutil.rst:645 +#: ../../library/shutil.rst:649 msgid "" "This function is now made thread-safe during creation of standard ``.zip`` " "and tar archives." msgstr "" -#: ../../library/shutil.rst:651 +#: ../../library/shutil.rst:655 msgid "" "Return a list of supported formats for archiving. Each element of the " "returned sequence is a tuple ``(name, description)``." @@ -1052,38 +1059,38 @@ msgstr "" "アーカイブ化をサポートしているフォーマットのリストを返します。返されるシーケ" "ンスのそれぞれの要素は、タプル ``(name, description)`` です。" -#: ../../library/shutil.rst:654 ../../library/shutil.rst:769 +#: ../../library/shutil.rst:658 ../../library/shutil.rst:773 msgid "By default :mod:`shutil` provides these formats:" msgstr "デフォルトでは、 :mod:`shutil` は次のフォーマットを提供しています。" -#: ../../library/shutil.rst:656 +#: ../../library/shutil.rst:660 msgid "*zip*: ZIP file (if the :mod:`zlib` module is available)." msgstr "*zip*: ZIP ファイル (:mod:`zlib` モジュールが利用可能な場合)。" -#: ../../library/shutil.rst:657 +#: ../../library/shutil.rst:661 msgid "" "*tar*: Uncompressed tar file. Uses POSIX.1-2001 pax format for new archives." msgstr "*tar*: 非圧縮の tar ファイル。 POSIX.1-2001 pax 形式が使われます。" -#: ../../library/shutil.rst:658 ../../library/shutil.rst:774 +#: ../../library/shutil.rst:662 ../../library/shutil.rst:778 msgid "*gztar*: gzip'ed tar-file (if the :mod:`zlib` module is available)." msgstr "" "*gztar*: gzip で圧縮された tar ファイル (:mod:`zlib` モジュールが利用可能な場" "合)。" -#: ../../library/shutil.rst:659 ../../library/shutil.rst:775 +#: ../../library/shutil.rst:663 ../../library/shutil.rst:779 msgid "*bztar*: bzip2'ed tar-file (if the :mod:`bz2` module is available)." msgstr "" "*bztar*: bzip2 で圧縮された tar ファイル (:mod:`bz2` モジュールが利用可能な場" "合)。" -#: ../../library/shutil.rst:660 ../../library/shutil.rst:776 +#: ../../library/shutil.rst:664 ../../library/shutil.rst:780 msgid "*xztar*: xz'ed tar-file (if the :mod:`lzma` module is available)." msgstr "" "*xztar*: xz で圧縮された tar ファイル (:mod:`lzma` モジュールが利用可能な場" "合)。" -#: ../../library/shutil.rst:662 +#: ../../library/shutil.rst:666 msgid "" "You can register new formats or provide your own archiver for any existing " "formats, by using :func:`register_archive_format`." @@ -1091,11 +1098,11 @@ msgstr "" ":func:`register_archive_format` を使って、新しいフォーマットを登録したり、既" "存のフォーマットに独自のアーカイバを提供したりできます。" -#: ../../library/shutil.rst:668 +#: ../../library/shutil.rst:672 msgid "Register an archiver for the format *name*." msgstr "アーカイバをフォーマット *name* に登録します。" -#: ../../library/shutil.rst:670 +#: ../../library/shutil.rst:674 msgid "" "*function* is the callable that will be used to unpack archives. The " "callable will receive the *base_name* of the file to create, followed by the " @@ -1109,7 +1116,7 @@ msgstr "" "次のキーワード引数として渡されます: *owner*, *group*, *dry_run* ならびに " "*logger* (:func:`make_archive` に渡されます)。" -#: ../../library/shutil.rst:676 +#: ../../library/shutil.rst:680 msgid "" "If *function* has the custom attribute ``function.supports_root_dir`` set to " "``True``, the *root_dir* argument is passed as a keyword argument. Otherwise " @@ -1118,7 +1125,7 @@ msgid "" "not thread-safe." msgstr "" -#: ../../library/shutil.rst:682 +#: ../../library/shutil.rst:686 msgid "" "If given, *extra_args* is a sequence of ``(name, value)`` pairs that will be " "used as extra keywords arguments when the archiver callable is used." @@ -1127,7 +1134,7 @@ msgstr "" "カイバ呼び出し可能オブジェクトが使われるときに追加のキーワード引数として使わ" "れます。" -#: ../../library/shutil.rst:685 +#: ../../library/shutil.rst:689 msgid "" "*description* is used by :func:`get_archive_formats` which returns the list " "of archivers. Defaults to an empty string." @@ -1135,21 +1142,21 @@ msgstr "" "*description* は、アーカイバのリストを返す :func:`get_archive_formats` で使わ" "れます。デフォルトでは空の文字列です。" -#: ../../library/shutil.rst:688 +#: ../../library/shutil.rst:692 msgid "Added support for functions supporting the *root_dir* argument." msgstr "" -#: ../../library/shutil.rst:694 +#: ../../library/shutil.rst:698 msgid "Remove the archive format *name* from the list of supported formats." msgstr "" "アーカイブフォーマット *name* を、サポートされているフォーマットのリストから" "取り除きます。" -#: ../../library/shutil.rst:699 +#: ../../library/shutil.rst:703 msgid "Unpack an archive. *filename* is the full path of the archive." msgstr "アーカイブをアンパックします。 *filename* はアーカイブのフルパスです。" -#: ../../library/shutil.rst:701 +#: ../../library/shutil.rst:705 msgid "" "*extract_dir* is the name of the target directory where the archive is " "unpacked. If not provided, the current working directory is used." @@ -1157,7 +1164,7 @@ msgstr "" "*extract_dir* はアーカイブをアンパックする先のディレクトリ名です。指定されな" "かった場合は現在の作業ディレクトリを利用します。" -#: ../../library/shutil.rst:704 +#: ../../library/shutil.rst:708 msgid "" "*format* is the archive format: one of \"zip\", \"tar\", \"gztar\", " "\"bztar\", or \"xztar\". Or any other format registered with :func:" @@ -1172,7 +1179,7 @@ msgstr "" "に対して登録されたアンパッカーを利用します。\n" "アンパッカーが見つからなかった場合、 :exc:`ValueError` を発生させます。" -#: ../../library/shutil.rst:711 +#: ../../library/shutil.rst:715 msgid "" "The keyword-only *filter* argument is passed to the underlying unpacking " "function. For zip files, *filter* is not accepted. For tar files, it is " @@ -1181,7 +1188,7 @@ msgid "" "extraction-filter` for details.)" msgstr "" -#: ../../library/shutil.rst:717 +#: ../../library/shutil.rst:721 msgid "" "Raises an :ref:`auditing event ` ``shutil.unpack_archive`` with " "arguments ``filename``, ``extract_dir``, ``format``." @@ -1189,7 +1196,7 @@ msgstr "" "引数 ``filename``, ``extract_dir``, ``format`` を指定して :ref:`監査イベント " "` ``shutil.unpack_archive`` を送出します。 " -#: ../../library/shutil.rst:721 +#: ../../library/shutil.rst:725 msgid "" "Never extract archives from untrusted sources without prior inspection. It " "is possible that files are created outside of the path specified in the " @@ -1197,7 +1204,7 @@ msgid "" "with \"/\" or filenames with two dots \"..\"." msgstr "" -#: ../../library/shutil.rst:726 +#: ../../library/shutil.rst:730 msgid "" "Since Python 3.14, the defaults for both built-in formats (zip and tar " "files) will prevent the most dangerous of such security issues, but will not " @@ -1205,17 +1212,17 @@ msgid "" "verification` section for tar-specific details." msgstr "" -#: ../../library/shutil.rst:732 +#: ../../library/shutil.rst:736 msgid "Accepts a :term:`path-like object` for *filename* and *extract_dir*." msgstr "" "*filename* と *extract_dir* が :term:`path-like object` を受け付けるようにな" "りました。" -#: ../../library/shutil.rst:735 +#: ../../library/shutil.rst:739 msgid "Added the *filter* argument." msgstr "" -#: ../../library/shutil.rst:740 +#: ../../library/shutil.rst:744 msgid "" "Registers an unpack format. *name* is the name of the format and " "*extensions* is a list of extensions corresponding to the format, like ``." @@ -1225,34 +1232,34 @@ msgstr "" "*extensions* はそのフォーマットに対応する拡張子 (例えば Zip ファイルに対して " "``.zip``) のリストです。" -#: ../../library/shutil.rst:744 +#: ../../library/shutil.rst:748 msgid "" "*function* is the callable that will be used to unpack archives. The " "callable will receive:" msgstr "" -#: ../../library/shutil.rst:747 +#: ../../library/shutil.rst:751 msgid "the path of the archive, as a positional argument;" msgstr "" -#: ../../library/shutil.rst:748 +#: ../../library/shutil.rst:752 msgid "" "the directory the archive must be extracted to, as a positional argument;" msgstr "" -#: ../../library/shutil.rst:749 +#: ../../library/shutil.rst:753 msgid "" "possibly a *filter* keyword argument, if it was given to :func:" "`unpack_archive`;" msgstr "" -#: ../../library/shutil.rst:751 +#: ../../library/shutil.rst:755 msgid "" "additional keyword arguments, specified by *extra_args* as a sequence of " "``(name, value)`` tuples." msgstr "" -#: ../../library/shutil.rst:754 +#: ../../library/shutil.rst:758 msgid "" "*description* can be provided to describe the format, and will be returned " "by the :func:`get_unpack_formats` function." @@ -1260,12 +1267,12 @@ msgstr "" "フォーマットの説明として *description* を指定することができます。これは :" "func:`get_unpack_formats` 関数によって返されます。" -#: ../../library/shutil.rst:760 +#: ../../library/shutil.rst:764 msgid "Unregister an unpack format. *name* is the name of the format." msgstr "" "アンパックフォーマットを登録解除します。 *name* はフォーマットの名前です。" -#: ../../library/shutil.rst:765 +#: ../../library/shutil.rst:769 msgid "" "Return a list of all registered formats for unpacking. Each element of the " "returned sequence is a tuple ``(name, extensions, description)``." @@ -1273,7 +1280,7 @@ msgstr "" "登録されているすべてのアンパックフォーマットをリストで返します。戻り値のリス" "トの各要素は ``(name, extensions, description)`` の形のタプルです。" -#: ../../library/shutil.rst:771 +#: ../../library/shutil.rst:775 msgid "" "*zip*: ZIP file (unpacking compressed files works only if the corresponding " "module is available)." @@ -1281,11 +1288,11 @@ msgstr "" "*zip*: ZIP ファイル (対応するモジュールが利用可能な場合にのみ圧縮ファイルはア" "ンパックされます)。" -#: ../../library/shutil.rst:773 +#: ../../library/shutil.rst:777 msgid "*tar*: uncompressed tar file." msgstr "*tar*: 圧縮されていない tar ファイル。" -#: ../../library/shutil.rst:778 +#: ../../library/shutil.rst:782 msgid "" "You can register new formats or provide your own unpacker for any existing " "formats, by using :func:`register_unpack_format`." @@ -1293,11 +1300,11 @@ msgstr "" ":func:`register_unpack_format` を使って新しいフォーマットや既存のフォーマット" "に対する別のアンパッカーを登録することができます。" -#: ../../library/shutil.rst:785 +#: ../../library/shutil.rst:789 msgid "Archiving example" msgstr "アーカイブ化の例" -#: ../../library/shutil.rst:787 +#: ../../library/shutil.rst:791 msgid "" "In this example, we create a gzip'ed tar-file archive containing all files " "found in the :file:`.ssh` directory of the user::" @@ -1305,7 +1312,7 @@ msgstr "" "この例では、ユーザの :file:`.ssh` ディレクトリにあるすべてのファイルを含む、 " "gzip された tar ファイルアーカイブを作成します::" -#: ../../library/shutil.rst:790 +#: ../../library/shutil.rst:794 msgid "" ">>> from shutil import make_archive\n" ">>> import os\n" @@ -1315,11 +1322,11 @@ msgid "" "'/Users/tarek/myarchive.tar.gz'" msgstr "" -#: ../../library/shutil.rst:797 +#: ../../library/shutil.rst:801 msgid "The resulting archive contains:" msgstr "結果のアーカイブは、以下のものを含みます:" -#: ../../library/shutil.rst:799 +#: ../../library/shutil.rst:803 msgid "" "$ tar -tzvf /Users/tarek/myarchive.tar.gz\n" "drwx------ tarek/staff 0 2010-02-01 16:23:40 ./\n" @@ -1332,11 +1339,11 @@ msgid "" "-rw-r--r-- tarek/staff 37192 2010-02-06 18:23:10 ./known_hosts" msgstr "" -#: ../../library/shutil.rst:815 +#: ../../library/shutil.rst:819 msgid "Archiving example with *base_dir*" msgstr "*base_dir* を使ったアーカイブ化の例" -#: ../../library/shutil.rst:817 +#: ../../library/shutil.rst:821 msgid "" "In this example, similar to the `one above `_, we " "show how to use :func:`make_archive`, but this time with the usage of " @@ -1346,7 +1353,7 @@ msgstr "" "`make_archive` の使い方を示しますが、ここでは特に *base_dir* の使い方を説明し" "ます。以下のようなディレクトリ構造があるとします。" -#: ../../library/shutil.rst:821 +#: ../../library/shutil.rst:825 msgid "" "$ tree tmp\n" "tmp\n" @@ -1357,7 +1364,7 @@ msgid "" " └── do_not_add.txt" msgstr "" -#: ../../library/shutil.rst:831 +#: ../../library/shutil.rst:835 msgid "" "In the final archive, :file:`please_add.txt` should be included, but :file:" "`do_not_add.txt` should not. Therefore we use the following::" @@ -1365,7 +1372,7 @@ msgstr "" "作成するアーカイブには :file:`please_add.txt` が含まれますが、いっぽう :file:" "`do_not_add.txt` は含まないようにします。この場合以下のようにします。" -#: ../../library/shutil.rst:834 +#: ../../library/shutil.rst:838 msgid "" ">>> from shutil import make_archive\n" ">>> import os\n" @@ -1379,26 +1386,26 @@ msgid "" "'/Users/tarek/my_archive.tar'" msgstr "" -#: ../../library/shutil.rst:845 +#: ../../library/shutil.rst:849 msgid "Listing the files in the resulting archive gives us:" msgstr "アーカイブに含まれるファイルをリストすると、以下のようになります。" -#: ../../library/shutil.rst:847 +#: ../../library/shutil.rst:851 msgid "" "$ python -m tarfile -l /Users/tarek/myarchive.tar\n" "structure/content/\n" "structure/content/please_add.txt" msgstr "" -#: ../../library/shutil.rst:855 +#: ../../library/shutil.rst:859 msgid "Querying the size of the output terminal" msgstr "出力ターミナルのサイズの取得" -#: ../../library/shutil.rst:859 +#: ../../library/shutil.rst:863 msgid "Get the size of the terminal window." msgstr "ターミナルウィンドウのサイズを取得します。" -#: ../../library/shutil.rst:861 +#: ../../library/shutil.rst:865 msgid "" "For each of the two dimensions, the environment variable, ``COLUMNS`` and " "``LINES`` respectively, is checked. If the variable is defined and the value " @@ -1407,7 +1414,7 @@ msgstr "" "幅と高さについて、それぞれ ``COLUMNS`` と ``LINES`` という環境変数をチェック" "します。その変数が定義されていて値が正の整数であればそれを利用します。" -#: ../../library/shutil.rst:865 +#: ../../library/shutil.rst:869 msgid "" "When ``COLUMNS`` or ``LINES`` is not defined, which is the common case, the " "terminal connected to :data:`sys.__stdout__` is queried by invoking :func:" @@ -1417,7 +1424,7 @@ msgstr "" "__stdout__` に接続されているターミナルに :func:`os.get_terminal_size` を呼び" "出して問い合わせます。" -#: ../../library/shutil.rst:869 +#: ../../library/shutil.rst:873 msgid "" "If the terminal size cannot be successfully queried, either because the " "system doesn't support querying, or because we are not connected to a " @@ -1430,11 +1437,11 @@ msgstr "" "ます。 ``fallback`` のデフォルト値は ``(80, 24)`` で、これは多くのターミナル" "エミュレーターが利用しているデフォルトサイズです。" -#: ../../library/shutil.rst:875 +#: ../../library/shutil.rst:879 msgid "The value returned is a named tuple of type :class:`os.terminal_size`." msgstr "戻り値は :class:`os.terminal_size` 型の名前付きタプルです。" -#: ../../library/shutil.rst:877 +#: ../../library/shutil.rst:881 msgid "" "See also: The Single UNIX Specification, Version 2, `Other Environment " "Variables`_." @@ -1442,7 +1449,7 @@ msgstr "" "参考: The Single UNIX Specification, Version 2, `Other Environment " "Variables`_." -#: ../../library/shutil.rst:882 +#: ../../library/shutil.rst:886 msgid "" "The ``fallback`` values are also used if :func:`os.get_terminal_size` " "returns zeroes." diff --git a/library/signal.po b/library/signal.po index 0cb25b4bc..8a816358e 100644 --- a/library/signal.po +++ b/library/signal.po @@ -20,10 +20,10 @@ msgstr "" "Last-Translator: Arihiro TAKASE, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../library/signal.rst:2 diff --git a/library/site.po b/library/site.po index 85d8b570b..9415fdaf1 100644 --- a/library/site.po +++ b/library/site.po @@ -21,10 +21,10 @@ msgstr "" "Last-Translator: 石井明久, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../library/site.rst:2 diff --git a/library/smtpd.po b/library/smtpd.po index 55855aa91..efcecc2b9 100644 --- a/library/smtpd.po +++ b/library/smtpd.po @@ -1,21 +1,21 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2025, Python Software Foundation +# Copyright (C) 2001 Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # #, fuzzy msgid "" msgstr "" -"Project-Id-Version: Python 3.13\n" +"Project-Id-Version: Python 3.14\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2025-05-02 14:19+0000\n" +"POT-Creation-Date: 2025-05-23 14:20+0000\n" "PO-Revision-Date: 2024-11-19 01:03+0000\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../library/smtpd.rst:2 diff --git a/library/smtplib.po b/library/smtplib.po index b90ac0507..cab8ba4b8 100644 --- a/library/smtplib.po +++ b/library/smtplib.po @@ -21,10 +21,10 @@ msgstr "" "Last-Translator: tomo, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../library/smtplib.rst:2 diff --git a/library/sndhdr.po b/library/sndhdr.po index a9291ed59..47f2fce84 100644 --- a/library/sndhdr.po +++ b/library/sndhdr.po @@ -1,21 +1,21 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2025, Python Software Foundation +# Copyright (C) 2001 Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # #, fuzzy msgid "" msgstr "" -"Project-Id-Version: Python 3.13\n" +"Project-Id-Version: Python 3.14\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2025-05-02 14:19+0000\n" +"POT-Creation-Date: 2025-05-23 14:20+0000\n" "PO-Revision-Date: 2024-11-19 01:03+0000\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../library/sndhdr.rst:2 diff --git a/library/socket.po b/library/socket.po index b129f6a9c..8b7996ad1 100644 --- a/library/socket.po +++ b/library/socket.po @@ -20,10 +20,10 @@ msgstr "" "Last-Translator: Arihiro TAKASE, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../library/socket.rst:2 diff --git a/library/socketserver.po b/library/socketserver.po index 97bfc28be..2ac15dbfe 100644 --- a/library/socketserver.po +++ b/library/socketserver.po @@ -20,10 +20,10 @@ msgstr "" "Last-Translator: 石井明久, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../library/socketserver.rst:2 diff --git a/library/spwd.po b/library/spwd.po index edbd5b64f..797072056 100644 --- a/library/spwd.po +++ b/library/spwd.po @@ -1,21 +1,21 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2025, Python Software Foundation +# Copyright (C) 2001 Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # #, fuzzy msgid "" msgstr "" -"Project-Id-Version: Python 3.13\n" +"Project-Id-Version: Python 3.14\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2025-05-02 14:19+0000\n" +"POT-Creation-Date: 2025-05-23 14:20+0000\n" "PO-Revision-Date: 2024-11-19 01:03+0000\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../library/spwd.rst:2 diff --git a/library/sqlite3.po b/library/sqlite3.po index 61114fc3f..6ded030f5 100644 --- a/library/sqlite3.po +++ b/library/sqlite3.po @@ -21,10 +21,10 @@ msgstr "" "Last-Translator: Arihiro TAKASE, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../library/sqlite3.rst:2 diff --git a/library/ssl.po b/library/ssl.po index c06f2fc37..78cce6e52 100644 --- a/library/ssl.po +++ b/library/ssl.po @@ -21,10 +21,10 @@ msgstr "" "Last-Translator: Arihiro TAKASE, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../library/ssl.rst:2 diff --git a/library/stat.po b/library/stat.po index e2e98ee2d..2a572ae04 100644 --- a/library/stat.po +++ b/library/stat.po @@ -1,5 +1,5 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2025, Python Software Foundation +# Copyright (C) 2001 Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # @@ -11,17 +11,17 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: Python 3.13\n" +"Project-Id-Version: Python 3.14\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2025-05-02 14:19+0000\n" +"POT-Creation-Date: 2025-05-23 14:20+0000\n" "PO-Revision-Date: 2021-06-28 01:13+0000\n" "Last-Translator: tomo, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../library/stat.rst:2 diff --git a/library/statistics.po b/library/statistics.po index 9354e7bcd..a251563b3 100644 --- a/library/statistics.po +++ b/library/statistics.po @@ -20,10 +20,10 @@ msgstr "" "Last-Translator: 石井明久, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../library/statistics.rst:2 diff --git a/library/stdtypes.po b/library/stdtypes.po index 07268ac9f..018706454 100644 --- a/library/stdtypes.po +++ b/library/stdtypes.po @@ -12,7 +12,7 @@ # Osamu NAKAMURA, 2023 # Hano, 2023 # Nozomu Kaneko , 2023 -# righteous, 2023 +# digdugdog, 2023 # TENMYO Masakazu, 2024 # Arihiro TAKASE, 2024 # Takanori Suzuki , 2025 @@ -25,15 +25,15 @@ msgid "" msgstr "" "Project-Id-Version: Python 3.14\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2025-05-09 14:19+0000\n" +"POT-Creation-Date: 2025-05-23 14:20+0000\n" "PO-Revision-Date: 2021-06-28 01:13+0000\n" "Last-Translator: tomo, 2025\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../library/stdtypes.rst:8 @@ -158,8 +158,8 @@ msgstr "結果" #: ../../library/stdtypes.rst:86 ../../library/stdtypes.rst:282 #: ../../library/stdtypes.rst:422 ../../library/stdtypes.rst:1007 -#: ../../library/stdtypes.rst:1212 ../../library/stdtypes.rst:2714 -#: ../../library/stdtypes.rst:3973 +#: ../../library/stdtypes.rst:1212 ../../library/stdtypes.rst:2742 +#: ../../library/stdtypes.rst:4001 msgid "Notes" msgstr "注釈" @@ -173,7 +173,7 @@ msgstr "*x* が真なら *x*, そうでなければ *y*" #: ../../library/stdtypes.rst:88 ../../library/stdtypes.rst:1009 #: ../../library/stdtypes.rst:1012 ../../library/stdtypes.rst:1223 -#: ../../library/stdtypes.rst:2720 ../../library/stdtypes.rst:3979 +#: ../../library/stdtypes.rst:2748 ../../library/stdtypes.rst:4007 msgid "\\(1)" msgstr "\\(1)" @@ -187,8 +187,8 @@ msgstr "*x* が偽なら *x*, そうでなければ *y*" #: ../../library/stdtypes.rst:91 ../../library/stdtypes.rst:295 #: ../../library/stdtypes.rst:315 ../../library/stdtypes.rst:1251 -#: ../../library/stdtypes.rst:2724 ../../library/stdtypes.rst:2726 -#: ../../library/stdtypes.rst:3983 ../../library/stdtypes.rst:3985 +#: ../../library/stdtypes.rst:2752 ../../library/stdtypes.rst:2754 +#: ../../library/stdtypes.rst:4011 ../../library/stdtypes.rst:4013 msgid "\\(2)" msgstr "\\(2)" @@ -201,18 +201,18 @@ msgid "if *x* is false, then ``True``, else ``False``" msgstr "*x* が偽なら ``True``, そうでなければ ``False``" #: ../../library/stdtypes.rst:94 ../../library/stdtypes.rst:1021 -#: ../../library/stdtypes.rst:1254 ../../library/stdtypes.rst:2728 -#: ../../library/stdtypes.rst:2730 ../../library/stdtypes.rst:2732 -#: ../../library/stdtypes.rst:2734 ../../library/stdtypes.rst:3987 -#: ../../library/stdtypes.rst:3989 ../../library/stdtypes.rst:3991 -#: ../../library/stdtypes.rst:3993 +#: ../../library/stdtypes.rst:1254 ../../library/stdtypes.rst:2756 +#: ../../library/stdtypes.rst:2758 ../../library/stdtypes.rst:2760 +#: ../../library/stdtypes.rst:2762 ../../library/stdtypes.rst:4015 +#: ../../library/stdtypes.rst:4017 ../../library/stdtypes.rst:4019 +#: ../../library/stdtypes.rst:4021 msgid "\\(3)" msgstr "\\(3)" #: ../../library/stdtypes.rst:103 ../../library/stdtypes.rst:326 #: ../../library/stdtypes.rst:440 ../../library/stdtypes.rst:1058 -#: ../../library/stdtypes.rst:1263 ../../library/stdtypes.rst:2760 -#: ../../library/stdtypes.rst:4023 +#: ../../library/stdtypes.rst:1263 ../../library/stdtypes.rst:2788 +#: ../../library/stdtypes.rst:4051 msgid "Notes:" msgstr "注釈:" @@ -261,9 +261,9 @@ msgstr "" msgid "This table summarizes the comparison operations:" msgstr "以下の表に比較演算をまとめます:" -#: ../../library/stdtypes.rst:144 ../../library/stdtypes.rst:2546 -#: ../../library/stdtypes.rst:2691 ../../library/stdtypes.rst:2714 -#: ../../library/stdtypes.rst:3950 ../../library/stdtypes.rst:3973 +#: ../../library/stdtypes.rst:144 ../../library/stdtypes.rst:2574 +#: ../../library/stdtypes.rst:2719 ../../library/stdtypes.rst:2742 +#: ../../library/stdtypes.rst:3978 ../../library/stdtypes.rst:4001 msgid "Meaning" msgstr "意味" @@ -599,7 +599,7 @@ msgid "" msgstr "実部 *re*, 虚部 *im* の複素数。 *im* の既定値はゼロ。" #: ../../library/stdtypes.rst:308 ../../library/stdtypes.rst:1244 -#: ../../library/stdtypes.rst:2722 ../../library/stdtypes.rst:4010 +#: ../../library/stdtypes.rst:2750 ../../library/stdtypes.rst:4038 msgid "\\(6)" msgstr "\\(6)" @@ -637,9 +637,9 @@ msgstr "*x* の *y* 乗" #: ../../library/stdtypes.rst:317 ../../library/stdtypes.rst:319 #: ../../library/stdtypes.rst:1233 ../../library/stdtypes.rst:1236 -#: ../../library/stdtypes.rst:2747 ../../library/stdtypes.rst:2750 -#: ../../library/stdtypes.rst:2753 ../../library/stdtypes.rst:4006 -#: ../../library/stdtypes.rst:4013 +#: ../../library/stdtypes.rst:2775 ../../library/stdtypes.rst:2778 +#: ../../library/stdtypes.rst:2781 ../../library/stdtypes.rst:4034 +#: ../../library/stdtypes.rst:4041 msgid "\\(5)" msgstr "\\(5)" @@ -810,8 +810,8 @@ msgstr "*x* と *y* のビット単位 :dfn:`論理和`" #: ../../library/stdtypes.rst:424 ../../library/stdtypes.rst:427 #: ../../library/stdtypes.rst:430 ../../library/stdtypes.rst:1258 -#: ../../library/stdtypes.rst:2736 ../../library/stdtypes.rst:2740 -#: ../../library/stdtypes.rst:3995 ../../library/stdtypes.rst:3999 +#: ../../library/stdtypes.rst:2764 ../../library/stdtypes.rst:2768 +#: ../../library/stdtypes.rst:4023 ../../library/stdtypes.rst:4027 msgid "\\(4)" msgstr "\\(4)" @@ -1781,7 +1781,7 @@ msgstr "" "*s* 中で *x* が最初に出現するインデックス (インデックス *i* 以降からインデッ" "クス *j* までの範囲)" -#: ../../library/stdtypes.rst:1034 ../../library/stdtypes.rst:3981 +#: ../../library/stdtypes.rst:1034 ../../library/stdtypes.rst:4009 msgid "\\(8)" msgstr "\\(8)" @@ -3309,13 +3309,20 @@ msgstr "" msgid "" "Return centered in a string of length *width*. Padding is done using the " "specified *fillchar* (default is an ASCII space). The original string is " -"returned if *width* is less than or equal to ``len(s)``." +"returned if *width* is less than or equal to ``len(s)``. For example::" +msgstr "" + +#: ../../library/stdtypes.rst:1793 +msgid "" +">>> 'Python'.center(10)\n" +"' Python '\n" +">>> 'Python'.center(10, '-')\n" +"'--Python--'\n" +">>> 'Python'.center(4)\n" +"'Python'" msgstr "" -"*width* の長さをもつ中央寄せされた文字列を返します。パディングには " -"*fillchar* で指定された値 (デフォルトでは ASCII スペース) が使われます。 " -"*width* が ``len(s)`` 以下なら元の文字列が返されます。" -#: ../../library/stdtypes.rst:1797 +#: ../../library/stdtypes.rst:1803 msgid "" "Return the number of non-overlapping occurrences of substring *sub* in the " "range [*start*, *end*]. Optional arguments *start* and *end* are " @@ -3325,19 +3332,31 @@ msgstr "" "す。オプション引数 *start* および *end* はスライス表記と同じように解釈されま" "す。" -#: ../../library/stdtypes.rst:1801 +#: ../../library/stdtypes.rst:1807 msgid "" "If *sub* is empty, returns the number of empty strings between characters " -"which is the length of the string plus one." +"which is the length of the string plus one. For example::" msgstr "" -"*sub* が空の場合は、文字と文字の間にある空文字列の数、すなわち文字列の長さに1" -"を加えたものを返します。" -#: ../../library/stdtypes.rst:1807 +#: ../../library/stdtypes.rst:1810 +msgid "" +">>> 'spam, spam, spam'.count('spam')\n" +"3\n" +">>> 'spam, spam, spam'.count('spam', 5)\n" +"2\n" +">>> 'spam, spam, spam'.count('spam', 5, 10)\n" +"1\n" +">>> 'spam, spam, spam'.count('eggs')\n" +"0\n" +">>> 'spam, spam, spam'.count('')\n" +"17" +msgstr "" + +#: ../../library/stdtypes.rst:1823 msgid "Return the string encoded to :class:`bytes`." msgstr ":class:`bytes` にエンコードされた文字列を返します。" -#: ../../library/stdtypes.rst:1809 ../../library/stdtypes.rst:3146 +#: ../../library/stdtypes.rst:1825 ../../library/stdtypes.rst:3174 msgid "" "*encoding* defaults to ``'utf-8'``; see :ref:`standard-encodings` for " "possible values." @@ -3345,7 +3364,7 @@ msgstr "" "*encoding* のデフォルト値は ``'utf-8'`` です; 指定可能な値については :ref:" "`standard-encodings` を参照してください。" -#: ../../library/stdtypes.rst:1812 +#: ../../library/stdtypes.rst:1828 msgid "" "*errors* controls how encoding errors are handled. If ``'strict'`` (the " "default), a :exc:`UnicodeError` exception is raised. Other possible values " @@ -3359,7 +3378,7 @@ msgstr "" "``'backslashreplace'`` と、そして :func:`codecs.register_error` で登録された" "名前です。詳しくは :ref:`error-handlers` を参照してください。" -#: ../../library/stdtypes.rst:1819 +#: ../../library/stdtypes.rst:1835 msgid "" "For performance reasons, the value of *errors* is not checked for validity " "unless an encoding error actually occurs, :ref:`devmode` is enabled or a :" @@ -3369,11 +3388,11 @@ msgstr "" "が実際に発生するか、 :ref:`devmode` が有効になっているか、もしくは :ref:`デ" "バッグビルド ` が使われていない限りチェックされません。" -#: ../../library/stdtypes.rst:1824 ../../library/stdtypes.rst:3165 +#: ../../library/stdtypes.rst:1840 ../../library/stdtypes.rst:3193 msgid "Added support for keyword arguments." msgstr "キーワード引数のサポートが追加されました。" -#: ../../library/stdtypes.rst:1827 ../../library/stdtypes.rst:3168 +#: ../../library/stdtypes.rst:1843 ../../library/stdtypes.rst:3196 msgid "" "The value of the *errors* argument is now checked in :ref:`devmode` and in :" "ref:`debug mode `." @@ -3381,7 +3400,7 @@ msgstr "" "*errors* 引数の値は :ref:`devmode` と :ref:`デバッグモード ` で" "チェックされるようになりました。" -#: ../../library/stdtypes.rst:1834 +#: ../../library/stdtypes.rst:1850 msgid "" "Return ``True`` if the string ends with the specified *suffix*, otherwise " "return ``False``. *suffix* can also be a tuple of suffixes to look for. " @@ -3393,7 +3412,7 @@ msgstr "" "ん。オプションの *start* があれば、その位置から判定を始めます。オプションの " "*end* があれば、その位置で比較を止めます。" -#: ../../library/stdtypes.rst:1842 +#: ../../library/stdtypes.rst:1858 msgid "" "Return a copy of the string where all tab characters are replaced by one or " "more spaces, depending on the current column and the given tab size. Tab " @@ -3419,7 +3438,7 @@ msgstr "" "文字は変更されずにコピーされ、現桁位置は、その文字の表示のされ方 (訳注: 全" "角、半角など) に関係なく、1 ずつ増加します。" -#: ../../library/stdtypes.rst:1863 +#: ../../library/stdtypes.rst:1879 msgid "" "Return the lowest index in the string where substring *sub* is found within " "the slice ``s[start:end]``. Optional arguments *start* and *end* are " @@ -3429,7 +3448,7 @@ msgstr "" "のインデックスを返します。オプション引数 *start* および *end* はスライス表記" "と同様に解釈されます。 *sub* が見つからなかった場合 ``-1`` を返します。" -#: ../../library/stdtypes.rst:1869 +#: ../../library/stdtypes.rst:1885 msgid "" "The :meth:`~str.find` method should be used only if you need to know the " "position of *sub*. To check if *sub* is a substring or not, use the :" @@ -3439,13 +3458,13 @@ msgstr "" "す。 *sub* が部分文字列であるかどうかのみを調べるには、 :keyword:`in` 演算子" "を使ってください::" -#: ../../library/stdtypes.rst:1873 +#: ../../library/stdtypes.rst:1889 msgid "" ">>> 'Py' in 'Python'\n" "True" msgstr "" -#: ../../library/stdtypes.rst:1879 +#: ../../library/stdtypes.rst:1895 msgid "" "Perform a string formatting operation. The string on which this method is " "called can contain literal text or replacement fields delimited by braces " @@ -3460,7 +3479,7 @@ msgstr "" "値は、それぞれの置換フィールドが対応する引数の文字列値で置換された文字列のコ" "ピーです。" -#: ../../library/stdtypes.rst:1889 +#: ../../library/stdtypes.rst:1905 msgid "" "See :ref:`formatstrings` for a description of the various formatting options " "that can be specified in format strings." @@ -3468,7 +3487,7 @@ msgstr "" "書式指定のオプションについては、書式指定文字列を規定する :ref:" "`formatstrings` を参照してください。" -#: ../../library/stdtypes.rst:1893 +#: ../../library/stdtypes.rst:1909 msgid "" "When formatting a number (:class:`int`, :class:`float`, :class:`complex`, :" "class:`decimal.Decimal` and subclasses) with the ``n`` type (ex: ``'{:n}'." @@ -3486,7 +3505,7 @@ msgstr "" "フィールドを読み取るため一時的に ``LC_CTYPE`` ロケールに ``LC_NUMERIC`` のロ" "ケール値を設定します。この一時的な変更は他のスレッドの動作に影響します。" -#: ../../library/stdtypes.rst:1902 +#: ../../library/stdtypes.rst:1918 msgid "" "When formatting a number with the ``n`` type, the function sets temporarily " "the ``LC_CTYPE`` locale to the ``LC_NUMERIC`` locale in some cases." @@ -3494,7 +3513,7 @@ msgstr "" "数値を ``n`` の整数表現型でフォーマットするとき、この関数は一時的に " "``LC_CTYPE`` ロケールに ``LC_NUMERIC`` のロケール値を設定する場合があります。" -#: ../../library/stdtypes.rst:1910 +#: ../../library/stdtypes.rst:1926 msgid "" "Similar to ``str.format(**mapping)``, except that ``mapping`` is used " "directly and not copied to a :class:`dict`. This is useful if for example " @@ -3504,7 +3523,7 @@ msgstr "" "ピーされず、直接使われます。これは例えば ``mapping`` が dict のサブクラスであ" "るときに便利です:" -#: ../../library/stdtypes.rst:1926 +#: ../../library/stdtypes.rst:1942 msgid "" "Like :meth:`~str.find`, but raise :exc:`ValueError` when the substring is " "not found." @@ -3512,7 +3531,7 @@ msgstr "" ":meth:`~str.find` と同様ですが、部分文字列が見つからなかったとき :exc:" "`ValueError` を送出します。" -#: ../../library/stdtypes.rst:1932 +#: ../../library/stdtypes.rst:1948 msgid "" "Return ``True`` if all characters in the string are alphanumeric and there " "is at least one character, ``False`` otherwise. A character ``c`` is " @@ -3524,7 +3543,7 @@ msgstr "" "英数字です: ``c.isalpha()`` 、 ``c.isdecimal()`` 、 ``c.isdigit()`` 、 ``c." "isnumeric()`` 。" -#: ../../library/stdtypes.rst:1940 +#: ../../library/stdtypes.rst:1956 msgid "" "Return ``True`` if all characters in the string are alphabetic and there is " "at least one character, ``False`` otherwise. Alphabetic characters are " @@ -3536,7 +3555,7 @@ msgid "" "spec/chapter-4/#G91002>`_." msgstr "" -#: ../../library/stdtypes.rst:1951 +#: ../../library/stdtypes.rst:1967 msgid "" "Return ``True`` if the string is empty or all characters in the string are " "ASCII, ``False`` otherwise. ASCII characters have code points in the range " @@ -3546,7 +3565,7 @@ msgstr "" "以外の場合に ``False`` を返します。\n" "ASCII 文字のコードポイントは U+0000-U+007F の範囲にあります。" -#: ../../library/stdtypes.rst:1960 +#: ../../library/stdtypes.rst:1976 msgid "" "Return ``True`` if all characters in the string are decimal characters and " "there is at least one character, ``False`` otherwise. Decimal characters are " @@ -3559,7 +3578,7 @@ msgstr "" "で、たとえば U+0660 (ARABIC-INDIC DIGIT ZERO) なども含みます。正式には、" "Unicode の一般カテゴリ \"Nd\" に含まれる文字を指します。" -#: ../../library/stdtypes.rst:1970 +#: ../../library/stdtypes.rst:1986 msgid "" "Return ``True`` if all characters in the string are digits and there is at " "least one character, ``False`` otherwise. Digits include decimal characters " @@ -3574,7 +3593,7 @@ msgstr "" "いカローシュティー数字のような体系の文字も含みます。正式には、数字とは、プロ" "パティ値 Numeric_Type=Digit または Numeric_Type=Decimal を持つ文字です。" -#: ../../library/stdtypes.rst:1980 +#: ../../library/stdtypes.rst:1996 msgid "" "Return ``True`` if the string is a valid identifier according to the " "language definition, section :ref:`identifiers`." @@ -3582,7 +3601,7 @@ msgstr "" "文字列が、 :ref:`identifiers` 節の言語定義における有効な識別子であれば " "``True`` を返します。" -#: ../../library/stdtypes.rst:1983 +#: ../../library/stdtypes.rst:1999 msgid "" ":func:`keyword.iskeyword` can be used to test whether string ``s`` is a " "reserved identifier, such as :keyword:`def` and :keyword:`class`." @@ -3590,11 +3609,11 @@ msgstr "" ":func:`keyword.iskeyword` は、文字列 ``s`` が :keyword:`def` や :keyword:" "`class` のような予約済みの識別子かどうかを調べるのに使うことができます。" -#: ../../library/stdtypes.rst:1986 +#: ../../library/stdtypes.rst:2002 msgid "Example: ::" msgstr "例: ::" -#: ../../library/stdtypes.rst:1989 +#: ../../library/stdtypes.rst:2005 msgid "" ">>> from keyword import iskeyword\n" "\n" @@ -3604,7 +3623,7 @@ msgid "" "(True, True)" msgstr "" -#: ../../library/stdtypes.rst:1999 +#: ../../library/stdtypes.rst:2015 msgid "" "Return ``True`` if all cased characters [4]_ in the string are lowercase and " "there is at least one cased character, ``False`` otherwise." @@ -3613,7 +3632,7 @@ msgstr "" "ある文字が 1 文字以上あるなら ``True`` を、そうでなければ ``False`` を返しま" "す。" -#: ../../library/stdtypes.rst:2005 +#: ../../library/stdtypes.rst:2021 msgid "" "Return ``True`` if all characters in the string are numeric characters, and " "there is at least one character, ``False`` otherwise. Numeric characters " @@ -3628,13 +3647,13 @@ msgstr "" "FIFTH)。正式には、数を表す文字は、プロパティ値 Numeric_Type=Digit、 " "Numeric_Type=Decimal または Numeric_Type=Numeric を持つものです。" -#: ../../library/stdtypes.rst:2015 +#: ../../library/stdtypes.rst:2031 msgid "" "Return ``True`` if all characters in the string are printable, ``False`` if " "it contains at least one non-printable character." msgstr "" -#: ../../library/stdtypes.rst:2018 +#: ../../library/stdtypes.rst:2034 msgid "" "Here \"printable\" means the character is suitable for :func:`repr` to use " "in its output; \"non-printable\" means that :func:`repr` on built-in types " @@ -3642,7 +3661,7 @@ msgid "" "written to :data:`sys.stdout` or :data:`sys.stderr`." msgstr "" -#: ../../library/stdtypes.rst:2023 +#: ../../library/stdtypes.rst:2039 msgid "" "The printable characters are those which in the Unicode character database " "(see :mod:`unicodedata`) have a general category in group Letter, Mark, " @@ -3651,7 +3670,7 @@ msgid "" "C), except the ASCII space." msgstr "" -#: ../../library/stdtypes.rst:2032 +#: ../../library/stdtypes.rst:2048 msgid "" "Return ``True`` if there are only whitespace characters in the string and " "there is at least one character, ``False`` otherwise." @@ -3659,7 +3678,7 @@ msgstr "" "文字列が空白文字だけからなり、かつ 1 文字以上ある場合には ``True`` を返し、そ" "うでない場合は ``False`` を返します。" -#: ../../library/stdtypes.rst:2035 +#: ../../library/stdtypes.rst:2051 msgid "" "A character is *whitespace* if in the Unicode character database (see :mod:" "`unicodedata`), either its general category is ``Zs`` (\"Separator, " @@ -3669,7 +3688,7 @@ msgstr "" "(\"Seperator, space\") であるか、 双方向クラスが ``WS``、``B``、 ``S`` のい" "ずれかである場合、その文字は *空白文字(whitespace)* です。 " -#: ../../library/stdtypes.rst:2043 +#: ../../library/stdtypes.rst:2059 msgid "" "Return ``True`` if the string is a titlecased string and there is at least " "one character, for example uppercase characters may only follow uncased " @@ -3681,7 +3700,7 @@ msgstr "" "にのみ続く場合には ``True`` を返します。そうでない場合は ``False`` を返しま" "す。" -#: ../../library/stdtypes.rst:2050 +#: ../../library/stdtypes.rst:2066 msgid "" "Return ``True`` if all cased characters [4]_ in the string are uppercase and " "there is at least one cased character, ``False`` otherwise." @@ -3690,7 +3709,7 @@ msgstr "" "ある文字が 1 文字以上あるなら ``True`` を、そうでなければ ``False`` を返しま" "す。" -#: ../../library/stdtypes.rst:2068 +#: ../../library/stdtypes.rst:2084 msgid "" "Return a string which is the concatenation of the strings in *iterable*. A :" "exc:`TypeError` will be raised if there are any non-string values in " @@ -3701,7 +3720,7 @@ msgstr "" "`bytes` オブジェクトのような非文字列の値が存在するなら、 :exc:`TypeError` が" "送出されます。要素間のセパレータは、このメソッドを提供する文字列です。" -#: ../../library/stdtypes.rst:2076 +#: ../../library/stdtypes.rst:2092 msgid "" "Return the string left justified in a string of length *width*. Padding is " "done using the specified *fillchar* (default is an ASCII space). The " @@ -3711,7 +3730,7 @@ msgstr "" "(デフォルトでは ASCII スペース) を使って行われます。 *width* が ``len(s)`` 以" "下ならば、元の文字列が返されます。" -#: ../../library/stdtypes.rst:2083 +#: ../../library/stdtypes.rst:2099 msgid "" "Return a copy of the string with all the cased characters [4]_ converted to " "lowercase." @@ -3719,14 +3738,14 @@ msgstr "" "全ての大小文字の区別のある文字 [4]_ が小文字に変換された、文字列のコピーを返" "します。" -#: ../../library/stdtypes.rst:2086 +#: ../../library/stdtypes.rst:2102 msgid "" "The lowercasing algorithm used is `described in section 3.13 'Default Case " "Folding' of the Unicode Standard `__." msgstr "" -#: ../../library/stdtypes.rst:2093 +#: ../../library/stdtypes.rst:2109 msgid "" "Return a copy of the string with leading characters removed. The *chars* " "argument is a string specifying the set of characters to be removed. If " @@ -3739,7 +3758,7 @@ msgstr "" "除去されます。 *chars* 文字列は接頭辞ではなく、その値に含まれる文字の組み合わ" "せ全てがはぎ取られます::" -#: ../../library/stdtypes.rst:2098 +#: ../../library/stdtypes.rst:2114 msgid "" ">>> ' spacious '.lstrip()\n" "'spacious '\n" @@ -3747,7 +3766,7 @@ msgid "" "'example.com'" msgstr "" -#: ../../library/stdtypes.rst:2103 +#: ../../library/stdtypes.rst:2119 msgid "" "See :meth:`str.removeprefix` for a method that will remove a single prefix " "string rather than all of a set of characters. For example::" @@ -3755,7 +3774,7 @@ msgstr "" "文字の集合全てではなく、指定した文字列そのものを接頭辞として削除するメソッド" "については、 :meth:`str.removeprefix` を参照してください。使用例::" -#: ../../library/stdtypes.rst:2106 +#: ../../library/stdtypes.rst:2122 msgid "" ">>> 'Arthur: three!'.lstrip('Arthur: ')\n" "'ee!'\n" @@ -3763,14 +3782,14 @@ msgid "" "'three!'" msgstr "" -#: ../../library/stdtypes.rst:2114 +#: ../../library/stdtypes.rst:2130 msgid "" "This static method returns a translation table usable for :meth:`str." "translate`." msgstr "" "この静的メソッドは :meth:`str.translate` に使える変換テーブルを返します。" -#: ../../library/stdtypes.rst:2116 +#: ../../library/stdtypes.rst:2132 msgid "" "If there is only one argument, it must be a dictionary mapping Unicode " "ordinals (integers) or characters (strings of length 1) to Unicode ordinals, " @@ -3781,7 +3800,7 @@ msgstr "" "文字列) を、Unicode 序数、(任意長の) 文字列、または ``None`` に対応づける辞書" "でなければなりません。このとき、文字で指定したキーは序数に変換されます。" -#: ../../library/stdtypes.rst:2121 +#: ../../library/stdtypes.rst:2137 msgid "" "If there are two arguments, they must be strings of equal length, and in the " "resulting dictionary, each character in x will be mapped to the character at " @@ -3793,7 +3812,7 @@ msgstr "" "指定する場合、文字列を指定する必要があり、それに含まれる文字が ``None`` に対" "応付けられます。" -#: ../../library/stdtypes.rst:2129 +#: ../../library/stdtypes.rst:2145 msgid "" "Split the string at the first occurrence of *sep*, and return a 3-tuple " "containing the part before the separator, the separator itself, and the part " @@ -3805,7 +3824,7 @@ msgstr "" "す。もし区切れなければ、タプルには元の文字列そのものとその後ろに二つの空文字" "列が入ります。" -#: ../../library/stdtypes.rst:2137 +#: ../../library/stdtypes.rst:2153 msgid "" "If the string starts with the *prefix* string, return " "``string[len(prefix):]``. Otherwise, return a copy of the original string::" @@ -3813,7 +3832,7 @@ msgstr "" "文字列が *prefix* で始まる場合、 ``string[len(prefix):]`` を返します。それ以" "外の場合、元の文字列のコピーを返します::" -#: ../../library/stdtypes.rst:2141 +#: ../../library/stdtypes.rst:2157 msgid "" ">>> 'TestHook'.removeprefix('Test')\n" "'Hook'\n" @@ -3821,7 +3840,7 @@ msgid "" "'BaseTestCase'" msgstr "" -#: ../../library/stdtypes.rst:2151 +#: ../../library/stdtypes.rst:2167 msgid "" "If the string ends with the *suffix* string and that *suffix* is not empty, " "return ``string[:-len(suffix)]``. Otherwise, return a copy of the original " @@ -3830,7 +3849,7 @@ msgstr "" "文字列が *suffix* で終わる場合、 ``string[:-len(suffix)]`` を返します。それ以" "外の場合、元の文字列のコピーを返します::" -#: ../../library/stdtypes.rst:2155 +#: ../../library/stdtypes.rst:2171 msgid "" ">>> 'MiscTests'.removesuffix('Tests')\n" "'Misc'\n" @@ -3838,7 +3857,7 @@ msgid "" "'TmpDirMixin'" msgstr "" -#: ../../library/stdtypes.rst:2165 +#: ../../library/stdtypes.rst:2181 msgid "" "Return a copy of the string with all occurrences of substring *old* replaced " "by *new*. If *count* is given, only the first *count* occurrences are " @@ -3850,11 +3869,11 @@ msgstr "" "部分文字列だけを置き換えます。 *count* の指定がないか、または ``-1`` が与えら" "れた場合、全ての部分文字列が置き換えられます。" -#: ../../library/stdtypes.rst:2169 +#: ../../library/stdtypes.rst:2185 msgid "*count* is now supported as a keyword argument." msgstr "*count* はキーワード引数として指定可能になりました。" -#: ../../library/stdtypes.rst:2175 +#: ../../library/stdtypes.rst:2191 msgid "" "Return the highest index in the string where substring *sub* is found, such " "that *sub* is contained within ``s[start:end]``. Optional arguments *start* " @@ -3864,7 +3883,7 @@ msgstr "" "スを返します。オプション引数 *start* および *end* はスライス表記と同様に解釈" "されます。 *sub* が見つからなかった場合 ``-1`` を返します。" -#: ../../library/stdtypes.rst:2182 +#: ../../library/stdtypes.rst:2198 msgid "" "Like :meth:`rfind` but raises :exc:`ValueError` when the substring *sub* is " "not found." @@ -3872,7 +3891,7 @@ msgstr "" ":meth:`rfind` と同様ですが、 *sub* が見つからなかった場合 :exc:`ValueError` " "を送出します。" -#: ../../library/stdtypes.rst:2188 +#: ../../library/stdtypes.rst:2204 msgid "" "Return the string right justified in a string of length *width*. Padding is " "done using the specified *fillchar* (default is an ASCII space). The " @@ -3882,7 +3901,7 @@ msgstr "" "指定された文字(デフォルトでは ASCII スペース)が使われます。 *width* が " "``len(s)`` 以下の場合、元の文字列が返されます。" -#: ../../library/stdtypes.rst:2195 +#: ../../library/stdtypes.rst:2211 msgid "" "Split the string at the last occurrence of *sep*, and return a 3-tuple " "containing the part before the separator, the separator itself, and the part " @@ -3894,7 +3913,7 @@ msgstr "" "す。もし区切れなければ、タプルには二つの空文字列とその後ろに元の文字列そのも" "のが入ります。" -#: ../../library/stdtypes.rst:2203 +#: ../../library/stdtypes.rst:2219 msgid "" "Return a list of the words in the string, using *sep* as the delimiter " "string. If *maxsplit* is given, at most *maxsplit* splits are done, the " @@ -3908,7 +3927,7 @@ msgstr "" "ます。右から分割していくことを除けば、 :meth:`rsplit` は後ほど詳しく述べる :" "meth:`split` と同様に振る舞います。" -#: ../../library/stdtypes.rst:2212 +#: ../../library/stdtypes.rst:2228 msgid "" "Return a copy of the string with trailing characters removed. The *chars* " "argument is a string specifying the set of characters to be removed. If " @@ -3921,7 +3940,7 @@ msgstr "" "されます。 *chars* 文字列は接尾語ではなく、そこに含まれる文字の組み合わせ全て" "がはぎ取られます::" -#: ../../library/stdtypes.rst:2217 +#: ../../library/stdtypes.rst:2233 msgid "" ">>> ' spacious '.rstrip()\n" "' spacious'\n" @@ -3929,7 +3948,7 @@ msgid "" "'mississ'" msgstr "" -#: ../../library/stdtypes.rst:2222 +#: ../../library/stdtypes.rst:2238 msgid "" "See :meth:`str.removesuffix` for a method that will remove a single suffix " "string rather than all of a set of characters. For example::" @@ -3937,7 +3956,7 @@ msgstr "" "文字の集合全てではなく、指定した文字列そのものを接尾辞として削除するメソッド" "については :meth:`str.removesuffix` を参照してください。使用例::" -#: ../../library/stdtypes.rst:2225 +#: ../../library/stdtypes.rst:2241 msgid "" ">>> 'Monty Python'.rstrip(' Python')\n" "'M'\n" @@ -3945,7 +3964,7 @@ msgid "" "'Monty'" msgstr "" -#: ../../library/stdtypes.rst:2232 +#: ../../library/stdtypes.rst:2248 msgid "" "Return a list of the words in the string, using *sep* as the delimiter " "string. If *maxsplit* is given, at most *maxsplit* splits are done (thus, " @@ -3958,7 +3977,7 @@ msgstr "" "トは最大 ``maxsplit+1`` 要素になります)。 *maxsplit* が与えられないか ``-1`` " "なら、分割の回数に制限はありません (可能なだけ分割されます)。" -#: ../../library/stdtypes.rst:2238 +#: ../../library/stdtypes.rst:2254 msgid "" "If *sep* is given, consecutive delimiters are not grouped together and are " "deemed to delimit empty strings (for example, ``'1,,2'.split(',')`` returns " @@ -3973,20 +3992,20 @@ msgstr "" "字で分割するには :func:`re.split` を使用します)。区切り文字を指定して空の文字" "列を分割すると、 ``['']`` を返します。" -#: ../../library/stdtypes.rst:2245 ../../library/stdtypes.rst:2263 -#: ../../library/stdtypes.rst:2315 ../../library/stdtypes.rst:2383 -#: ../../library/stdtypes.rst:2451 ../../library/stdtypes.rst:3483 -#: ../../library/stdtypes.rst:3501 ../../library/stdtypes.rst:3592 -#: ../../library/stdtypes.rst:3608 ../../library/stdtypes.rst:3633 -#: ../../library/stdtypes.rst:3647 ../../library/stdtypes.rst:3675 -#: ../../library/stdtypes.rst:3689 ../../library/stdtypes.rst:3707 -#: ../../library/stdtypes.rst:3734 ../../library/stdtypes.rst:3757 -#: ../../library/stdtypes.rst:3784 ../../library/stdtypes.rst:3826 -#: ../../library/stdtypes.rst:3850 +#: ../../library/stdtypes.rst:2261 ../../library/stdtypes.rst:2279 +#: ../../library/stdtypes.rst:2291 ../../library/stdtypes.rst:2343 +#: ../../library/stdtypes.rst:2411 ../../library/stdtypes.rst:2479 +#: ../../library/stdtypes.rst:3511 ../../library/stdtypes.rst:3529 +#: ../../library/stdtypes.rst:3620 ../../library/stdtypes.rst:3636 +#: ../../library/stdtypes.rst:3661 ../../library/stdtypes.rst:3675 +#: ../../library/stdtypes.rst:3703 ../../library/stdtypes.rst:3717 +#: ../../library/stdtypes.rst:3735 ../../library/stdtypes.rst:3762 +#: ../../library/stdtypes.rst:3785 ../../library/stdtypes.rst:3812 +#: ../../library/stdtypes.rst:3854 ../../library/stdtypes.rst:3878 msgid "For example::" msgstr "例えば::" -#: ../../library/stdtypes.rst:2247 +#: ../../library/stdtypes.rst:2263 msgid "" ">>> '1,2,3'.split(',')\n" "['1', '2', '3']\n" @@ -3998,7 +4017,7 @@ msgid "" "['1', '2', '3<4']" msgstr "" -#: ../../library/stdtypes.rst:2256 +#: ../../library/stdtypes.rst:2272 msgid "" "If *sep* is not specified or is ``None``, a different splitting algorithm is " "applied: runs of consecutive whitespace are regarded as a single separator, " @@ -4012,7 +4031,7 @@ msgstr "" "末尾に空白があっても、結果の最初や最後に空文字列は含まれません。よって、空文" "字列や空白だけの文字列を ``None`` デリミタで分割すると ``[]`` が返されます。" -#: ../../library/stdtypes.rst:2265 +#: ../../library/stdtypes.rst:2281 msgid "" ">>> '1 2 3'.split()\n" "['1', '2', '3']\n" @@ -4022,7 +4041,23 @@ msgid "" "['1', '2', '3']" msgstr "" -#: ../../library/stdtypes.rst:2278 +#: ../../library/stdtypes.rst:2288 +msgid "" +"If *sep* is not specified or is ``None`` and *maxsplit* is ``0``, only " +"leading runs of consecutive whitespace are considered." +msgstr "" + +#: ../../library/stdtypes.rst:2293 +msgid "" +">>> \"\".split(None, 0)\n" +"[]\n" +">>> \" \".split(None, 0)\n" +"[]\n" +">>> \" foo \".split(maxsplit=0)\n" +"['foo ']" +msgstr "" + +#: ../../library/stdtypes.rst:2306 msgid "" "Return a list of the lines in the string, breaking at line boundaries. Line " "breaks are not included in the resulting list unless *keepends* is given and " @@ -4031,7 +4066,7 @@ msgstr "" "文字列を改行部分で分解し、各行からなるリストを返します。 *keepends* に真が与" "えらない限り、返されるリストに改行は含まれません。" -#: ../../library/stdtypes.rst:2282 +#: ../../library/stdtypes.rst:2310 msgid "" "This method splits on the following line boundaries. In particular, the " "boundaries are a superset of :term:`universal newlines`." @@ -4039,107 +4074,107 @@ msgstr "" "このメソッドは以下の行境界で分解します。特に、以下の境界は :term:`universal " "newlines` のスーパーセットです。" -#: ../../library/stdtypes.rst:2286 +#: ../../library/stdtypes.rst:2314 msgid "Representation" msgstr "表現" -#: ../../library/stdtypes.rst:2286 +#: ../../library/stdtypes.rst:2314 msgid "Description" msgstr "説明" -#: ../../library/stdtypes.rst:2288 +#: ../../library/stdtypes.rst:2316 msgid "``\\n``" msgstr "``\\n``" -#: ../../library/stdtypes.rst:2288 +#: ../../library/stdtypes.rst:2316 msgid "Line Feed" msgstr "改行" -#: ../../library/stdtypes.rst:2290 +#: ../../library/stdtypes.rst:2318 msgid "``\\r``" msgstr "``\\r``" -#: ../../library/stdtypes.rst:2290 +#: ../../library/stdtypes.rst:2318 msgid "Carriage Return" msgstr "復帰" -#: ../../library/stdtypes.rst:2292 +#: ../../library/stdtypes.rst:2320 msgid "``\\r\\n``" msgstr "``\\r\\n``" -#: ../../library/stdtypes.rst:2292 +#: ../../library/stdtypes.rst:2320 msgid "Carriage Return + Line Feed" msgstr "改行 + 復帰" -#: ../../library/stdtypes.rst:2294 +#: ../../library/stdtypes.rst:2322 msgid "``\\v`` or ``\\x0b``" msgstr "``\\v`` or ``\\x0b``" -#: ../../library/stdtypes.rst:2294 +#: ../../library/stdtypes.rst:2322 msgid "Line Tabulation" msgstr "垂直タブ" -#: ../../library/stdtypes.rst:2296 +#: ../../library/stdtypes.rst:2324 msgid "``\\f`` or ``\\x0c``" msgstr "``\\f`` or ``\\x0c``" -#: ../../library/stdtypes.rst:2296 +#: ../../library/stdtypes.rst:2324 msgid "Form Feed" msgstr "改ページ" -#: ../../library/stdtypes.rst:2298 +#: ../../library/stdtypes.rst:2326 msgid "``\\x1c``" msgstr "``\\x1c``" -#: ../../library/stdtypes.rst:2298 +#: ../../library/stdtypes.rst:2326 msgid "File Separator" msgstr "ファイル区切り" -#: ../../library/stdtypes.rst:2300 +#: ../../library/stdtypes.rst:2328 msgid "``\\x1d``" msgstr "``\\x1d``" -#: ../../library/stdtypes.rst:2300 +#: ../../library/stdtypes.rst:2328 msgid "Group Separator" msgstr "グループ区切り" -#: ../../library/stdtypes.rst:2302 +#: ../../library/stdtypes.rst:2330 msgid "``\\x1e``" msgstr "``\\x1e``" -#: ../../library/stdtypes.rst:2302 +#: ../../library/stdtypes.rst:2330 msgid "Record Separator" msgstr "レコード区切り" -#: ../../library/stdtypes.rst:2304 +#: ../../library/stdtypes.rst:2332 msgid "``\\x85``" msgstr "``\\x85``" -#: ../../library/stdtypes.rst:2304 +#: ../../library/stdtypes.rst:2332 msgid "Next Line (C1 Control Code)" msgstr "改行 (C1 制御コード)" -#: ../../library/stdtypes.rst:2306 +#: ../../library/stdtypes.rst:2334 msgid "``\\u2028``" msgstr "``\\u2028``" -#: ../../library/stdtypes.rst:2306 +#: ../../library/stdtypes.rst:2334 msgid "Line Separator" msgstr "行区切り" -#: ../../library/stdtypes.rst:2308 +#: ../../library/stdtypes.rst:2336 msgid "``\\u2029``" msgstr "``\\u2029``" -#: ../../library/stdtypes.rst:2308 +#: ../../library/stdtypes.rst:2336 msgid "Paragraph Separator" msgstr "段落区切り" -#: ../../library/stdtypes.rst:2313 +#: ../../library/stdtypes.rst:2341 msgid "``\\v`` and ``\\f`` added to list of line boundaries." msgstr "``\\v`` と ``\\f`` が行境界のリストに追加されました。" -#: ../../library/stdtypes.rst:2317 +#: ../../library/stdtypes.rst:2345 msgid "" ">>> 'ab c\\n\\nde fg\\rkl\\r\\n'.splitlines()\n" "['ab c', '', 'de fg', 'kl']\n" @@ -4147,7 +4182,7 @@ msgid "" "['ab c\\n', '\\n', 'de fg\\r', 'kl\\r\\n']" msgstr "" -#: ../../library/stdtypes.rst:2322 +#: ../../library/stdtypes.rst:2350 msgid "" "Unlike :meth:`~str.split` when a delimiter string *sep* is given, this " "method returns an empty list for the empty string, and a terminal line break " @@ -4156,7 +4191,7 @@ msgstr "" ":meth:`~str.split` とは違って、デリミタ文字列 *sep* が与えられたとき、このメ" "ソッドは空文字列に空リストを返し、終末の改行は結果に行を追加しません::" -#: ../../library/stdtypes.rst:2326 +#: ../../library/stdtypes.rst:2354 msgid "" ">>> \"\".splitlines()\n" "[]\n" @@ -4164,11 +4199,11 @@ msgid "" "['One line']" msgstr "" -#: ../../library/stdtypes.rst:2331 +#: ../../library/stdtypes.rst:2359 msgid "For comparison, ``split('\\n')`` gives::" msgstr "比較のために ``split('\\n')`` は以下のようになります::" -#: ../../library/stdtypes.rst:2333 +#: ../../library/stdtypes.rst:2361 msgid "" ">>> ''.split('\\n')\n" "['']\n" @@ -4176,7 +4211,7 @@ msgid "" "['Two lines', '']" msgstr "" -#: ../../library/stdtypes.rst:2341 +#: ../../library/stdtypes.rst:2369 msgid "" "Return ``True`` if string starts with the *prefix*, otherwise return " "``False``. *prefix* can also be a tuple of prefixes to look for. With " @@ -4188,7 +4223,7 @@ msgstr "" "ん。オプションの *start* があれば、その位置から判定を始めます。オプションの " "*end* があれば、その位置で比較を止めます。" -#: ../../library/stdtypes.rst:2349 +#: ../../library/stdtypes.rst:2377 msgid "" "Return a copy of the string with the leading and trailing characters " "removed. The *chars* argument is a string specifying the set of characters " @@ -4201,7 +4236,7 @@ msgstr "" "文字が除去されます。 *chars* 文字列は接頭語でも接尾語でもなく、そこに含まれる" "文字の組み合わせ全てがはぎ取られます::" -#: ../../library/stdtypes.rst:2355 +#: ../../library/stdtypes.rst:2383 msgid "" ">>> ' spacious '.strip()\n" "'spacious'\n" @@ -4209,7 +4244,7 @@ msgid "" "'example'" msgstr "" -#: ../../library/stdtypes.rst:2360 +#: ../../library/stdtypes.rst:2388 msgid "" "The outermost leading and trailing *chars* argument values are stripped from " "the string. Characters are removed from the leading end until reaching a " @@ -4221,14 +4256,14 @@ msgstr "" "す。文字列の末尾に対しても同様の操作が行われます。例えば、次のようになりま" "す::" -#: ../../library/stdtypes.rst:2366 +#: ../../library/stdtypes.rst:2394 msgid "" ">>> comment_string = '#....... Section 3.2.1 Issue #32 .......'\n" ">>> comment_string.strip('.#! ')\n" "'Section 3.2.1 Issue #32'" msgstr "" -#: ../../library/stdtypes.rst:2373 +#: ../../library/stdtypes.rst:2401 msgid "" "Return a copy of the string with uppercase characters converted to lowercase " "and vice versa. Note that it is not necessarily true that ``s.swapcase()." @@ -4237,7 +4272,7 @@ msgstr "" "大文字が小文字に、小文字が大文字に変換された、文字列のコピーを返します。な" "お、 ``s.swapcase().swapcase() == s`` が真であるとは限りません。" -#: ../../library/stdtypes.rst:2380 +#: ../../library/stdtypes.rst:2408 msgid "" "Return a titlecased version of the string where words start with an " "uppercase character and the remaining characters are lowercase." @@ -4245,13 +4280,13 @@ msgstr "" "文字列を、単語ごとに大文字から始まり、残りの文字のうち大小文字の区別があるも" "のは全て小文字にする、タイトルケースにして返します。" -#: ../../library/stdtypes.rst:2385 +#: ../../library/stdtypes.rst:2413 msgid "" ">>> 'Hello world'.title()\n" "'Hello World'" msgstr "" -#: ../../library/stdtypes.rst:2388 ../../library/stdtypes.rst:3794 +#: ../../library/stdtypes.rst:2416 ../../library/stdtypes.rst:3822 msgid "" "The algorithm uses a simple language-independent definition of a word as " "groups of consecutive letters. The definition works in many contexts but it " @@ -4263,13 +4298,13 @@ msgstr "" "アポストロフィが単語の境界になってしまい、望みの結果を得られない場合がありま" "す::" -#: ../../library/stdtypes.rst:2393 +#: ../../library/stdtypes.rst:2421 msgid "" ">>> \"they're bill's friends from the UK\".title()\n" "\"They'Re Bill'S Friends From The Uk\"" msgstr "" -#: ../../library/stdtypes.rst:2396 +#: ../../library/stdtypes.rst:2424 msgid "" "The :func:`string.capwords` function does not have this problem, as it " "splits words on spaces only." @@ -4277,13 +4312,13 @@ msgstr "" ":func:`string.capwords` 関数は単語をスペースでのみ分割するため、この問題はあ" "りません。" -#: ../../library/stdtypes.rst:2399 +#: ../../library/stdtypes.rst:2427 msgid "" "Alternatively, a workaround for apostrophes can be constructed using regular " "expressions::" msgstr "または、正規表現を使うことでアポストロフィに対応できます::" -#: ../../library/stdtypes.rst:2402 +#: ../../library/stdtypes.rst:2430 msgid "" ">>> import re\n" ">>> def titlecase(s):\n" @@ -4295,7 +4330,7 @@ msgid "" "\"They're Bill's Friends.\"" msgstr "" -#: ../../library/stdtypes.rst:2414 +#: ../../library/stdtypes.rst:2442 msgid "" "Return a copy of the string in which each character has been mapped through " "the given translation table. The table must be an object that implements " @@ -4316,7 +4351,7 @@ msgstr "" "ること、例外 :exc:`LookupError` を送出して文字をその文字自身にマッピングする" "こと。" -#: ../../library/stdtypes.rst:2423 +#: ../../library/stdtypes.rst:2451 msgid "" "You can use :meth:`str.maketrans` to create a translation map from character-" "to-character mappings in different formats." @@ -4324,7 +4359,7 @@ msgstr "" "文字から文字への異なる形式のマッピングから変換マップを作成するために、 :meth:" "`str.maketrans` が使えます。" -#: ../../library/stdtypes.rst:2426 +#: ../../library/stdtypes.rst:2454 msgid "" "See also the :mod:`codecs` module for a more flexible approach to custom " "character mappings." @@ -4332,7 +4367,7 @@ msgstr "" "文字のマッピングを好みに合わせてより柔軟に変更する方法については、:mod:" "`codecs` モジュールも参照してください。" -#: ../../library/stdtypes.rst:2432 +#: ../../library/stdtypes.rst:2460 msgid "" "Return a copy of the string with all the cased characters [4]_ converted to " "uppercase. Note that ``s.upper().isupper()`` might be ``False`` if ``s`` " @@ -4345,14 +4380,14 @@ msgstr "" "含まなかったり、結果の文字の Unicode カテゴリが \"Lu\" ではなく例えば " "\"Lt\" (Letter, titlecase) などであったら、 ``False`` になりえます。" -#: ../../library/stdtypes.rst:2438 +#: ../../library/stdtypes.rst:2466 msgid "" "The uppercasing algorithm used is `described in section 3.13 'Default Case " "Folding' of the Unicode Standard `__." msgstr "" -#: ../../library/stdtypes.rst:2445 +#: ../../library/stdtypes.rst:2473 msgid "" "Return a copy of the string left filled with ASCII ``'0'`` digits to make a " "string of length *width*. A leading sign prefix (``'+'``/``'-'``) is handled " @@ -4364,7 +4399,7 @@ msgstr "" "く *後* に挿入されます。*width* が ``len(s)`` 以下の場合元の文字列を返しま" "す。" -#: ../../library/stdtypes.rst:2453 +#: ../../library/stdtypes.rst:2481 msgid "" ">>> \"42\".zfill(5)\n" "'00042'\n" @@ -4372,27 +4407,27 @@ msgid "" "'-0042'" msgstr "" -#: ../../library/stdtypes.rst:2474 +#: ../../library/stdtypes.rst:2502 msgid "Formatted String Literals (f-strings)" msgstr "" -#: ../../library/stdtypes.rst:2477 +#: ../../library/stdtypes.rst:2505 msgid "" "The :keyword:`await` and :keyword:`async for` can be used in expressions " "within f-strings." msgstr "" -#: ../../library/stdtypes.rst:2480 +#: ../../library/stdtypes.rst:2508 msgid "Added the debugging operator (``=``)" msgstr "" -#: ../../library/stdtypes.rst:2482 +#: ../../library/stdtypes.rst:2510 msgid "" "Many restrictions on expressions within f-strings have been removed. " "Notably, nested strings, comments, and backslashes are now permitted." msgstr "" -#: ../../library/stdtypes.rst:2486 +#: ../../library/stdtypes.rst:2514 msgid "" "An :dfn:`f-string` (formally a :dfn:`formatted string literal`) is a string " "literal that is prefixed with ``f`` or ``F``. This type of string literal " @@ -4402,7 +4437,7 @@ msgid "" "into regular :class:`str` objects. For example:" msgstr "" -#: ../../library/stdtypes.rst:2494 +#: ../../library/stdtypes.rst:2522 msgid "" ">>> who = 'nobody'\n" ">>> nationality = 'Spanish'\n" @@ -4410,104 +4445,104 @@ msgid "" "'Nobody expects the Spanish Inquisition!'" msgstr "" -#: ../../library/stdtypes.rst:2501 +#: ../../library/stdtypes.rst:2529 msgid "It is also possible to use a multi line f-string:" msgstr "" -#: ../../library/stdtypes.rst:2503 +#: ../../library/stdtypes.rst:2531 msgid "" ">>> f'''This is a string\n" "... on two lines'''\n" "'This is a string\\non two lines'" msgstr "" -#: ../../library/stdtypes.rst:2509 +#: ../../library/stdtypes.rst:2537 msgid "" "A single opening curly bracket, ``'{'``, marks a *replacement field* that " "can contain any Python expression:" msgstr "" -#: ../../library/stdtypes.rst:2512 +#: ../../library/stdtypes.rst:2540 msgid "" ">>> nationality = 'Spanish'\n" ">>> f'The {nationality} Inquisition!'\n" "'The Spanish Inquisition!'" msgstr "" -#: ../../library/stdtypes.rst:2518 +#: ../../library/stdtypes.rst:2546 msgid "To include a literal ``{`` or ``}``, use a double bracket:" msgstr "" -#: ../../library/stdtypes.rst:2520 +#: ../../library/stdtypes.rst:2548 msgid "" ">>> x = 42\n" ">>> f'{{x}} is {x}'\n" "'{x} is 42'" msgstr "" -#: ../../library/stdtypes.rst:2526 +#: ../../library/stdtypes.rst:2554 msgid "" "Functions can also be used, and :ref:`format specifiers `:" msgstr "" -#: ../../library/stdtypes.rst:2528 +#: ../../library/stdtypes.rst:2556 msgid "" ">>> from math import sqrt\n" ">>> f'√2 \\N{ALMOST EQUAL TO} {sqrt(2):.5f}'\n" "'√2 ≈ 1.41421'" msgstr "" -#: ../../library/stdtypes.rst:2534 +#: ../../library/stdtypes.rst:2562 msgid "Any non-string expression is converted using :func:`str`, by default:" msgstr "" -#: ../../library/stdtypes.rst:2536 +#: ../../library/stdtypes.rst:2564 msgid "" ">>> from fractions import Fraction\n" ">>> f'{Fraction(1, 3)}'\n" "'1/3'" msgstr "" -#: ../../library/stdtypes.rst:2542 +#: ../../library/stdtypes.rst:2570 msgid "" "To use an explicit conversion, use the ``!`` (exclamation mark) operator, " "followed by any of the valid formats, which are:" msgstr "" -#: ../../library/stdtypes.rst:2546 ../../library/stdtypes.rst:2714 -#: ../../library/stdtypes.rst:3973 +#: ../../library/stdtypes.rst:2574 ../../library/stdtypes.rst:2742 +#: ../../library/stdtypes.rst:4001 msgid "Conversion" msgstr "変換" -#: ../../library/stdtypes.rst:2548 +#: ../../library/stdtypes.rst:2576 msgid "``!a``" msgstr "" -#: ../../library/stdtypes.rst:2548 +#: ../../library/stdtypes.rst:2576 msgid ":func:`ascii`" msgstr ":func:`ascii`" -#: ../../library/stdtypes.rst:2549 +#: ../../library/stdtypes.rst:2577 msgid "``!r``" msgstr "" -#: ../../library/stdtypes.rst:2549 +#: ../../library/stdtypes.rst:2577 msgid ":func:`repr`" msgstr ":func:`repr`" -#: ../../library/stdtypes.rst:2550 +#: ../../library/stdtypes.rst:2578 msgid "``!s``" msgstr "" -#: ../../library/stdtypes.rst:2550 +#: ../../library/stdtypes.rst:2578 msgid ":func:`str`" msgstr ":func:`str`" -#: ../../library/stdtypes.rst:2553 +#: ../../library/stdtypes.rst:2581 msgid "For example:" msgstr "例えば:" -#: ../../library/stdtypes.rst:2555 +#: ../../library/stdtypes.rst:2583 msgid "" ">>> from fractions import Fraction\n" ">>> f'{Fraction(1, 3)!s}'\n" @@ -4519,7 +4554,7 @@ msgid "" "'\\xbfD\\xf3nde est\\xe1 el Presidente?'" msgstr "" -#: ../../library/stdtypes.rst:2566 +#: ../../library/stdtypes.rst:2594 msgid "" "While debugging it may be helpful to see both the expression and its value, " "by using the equals sign (``=``) after the expression. This preserves spaces " @@ -4527,7 +4562,7 @@ msgid "" "debugging operator uses the :func:`repr` (``!r``) conversion. For example:" msgstr "" -#: ../../library/stdtypes.rst:2572 +#: ../../library/stdtypes.rst:2600 msgid "" ">>> from fractions import Fraction\n" ">>> calculation = Fraction(1, 3)\n" @@ -4539,7 +4574,7 @@ msgid "" "'calculation = 1/3'" msgstr "" -#: ../../library/stdtypes.rst:2583 +#: ../../library/stdtypes.rst:2611 msgid "" "Once the output has been evaluated, it can be formatted using a :ref:`format " "specifier ` following a colon (``':'``). After the expression " @@ -4549,7 +4584,7 @@ msgid "" "used as the final value for the replacement field. For example:" msgstr "" -#: ../../library/stdtypes.rst:2591 +#: ../../library/stdtypes.rst:2619 msgid "" ">>> from fractions import Fraction\n" ">>> f'{Fraction(1, 7):.6f}'\n" @@ -4558,11 +4593,11 @@ msgid "" "'___+1/7___'" msgstr "" -#: ../../library/stdtypes.rst:2603 +#: ../../library/stdtypes.rst:2631 msgid "``printf``-style String Formatting" msgstr "``printf`` 形式の文字列書式化" -#: ../../library/stdtypes.rst:2616 +#: ../../library/stdtypes.rst:2644 msgid "" "The formatting operations described here exhibit a variety of quirks that " "lead to a number of common errors (such as failing to display tuples and " @@ -4580,7 +4615,7 @@ msgstr "" "これらの代替手段には、それ自身に、トレードオフや、簡潔さ、柔軟さ、拡張性と" "いった利点があります。" -#: ../../library/stdtypes.rst:2624 +#: ../../library/stdtypes.rst:2652 msgid "" "String objects have one unique built-in operation: the ``%`` operator " "(modulo). This is also known as the string *formatting* or *interpolation* " @@ -4595,13 +4630,13 @@ msgstr "" "の ``%`` による変換の指定は0こ以上の *values* の要素で置き換えられます。この" "動作は C 言語における :c:func:`sprintf` 関数の利用方法に似ています。使用例:" -#: ../../library/stdtypes.rst:2631 +#: ../../library/stdtypes.rst:2659 msgid "" ">>> print('%s has %d quote types.' % ('Python', 2))\n" "Python has 2 quote types." msgstr "" -#: ../../library/stdtypes.rst:2636 +#: ../../library/stdtypes.rst:2664 msgid "" "If *format* requires a single argument, *values* may be a single non-tuple " "object. [5]_ Otherwise, *values* must be a tuple with exactly the number of " @@ -4613,7 +4648,7 @@ msgstr "" "列中で指定された項目と正確に同じ数の要素からなるタプルか、単一のマップオブ" "ジェクトでなければなりません。" -#: ../../library/stdtypes.rst:2646 ../../library/stdtypes.rst:3905 +#: ../../library/stdtypes.rst:2674 ../../library/stdtypes.rst:3933 msgid "" "A conversion specifier contains two or more characters and has the following " "components, which must occur in this order:" @@ -4621,11 +4656,11 @@ msgstr "" "一つの変換指定子は 2 またはそれ以上の文字を含み、その構成要素は以下からなりま" "すが、示した順に出現しなければなりません:" -#: ../../library/stdtypes.rst:2649 ../../library/stdtypes.rst:3908 +#: ../../library/stdtypes.rst:2677 ../../library/stdtypes.rst:3936 msgid "The ``'%'`` character, which marks the start of the specifier." msgstr "指定子の開始を示す文字 ``'%'`` 。" -#: ../../library/stdtypes.rst:2651 ../../library/stdtypes.rst:3910 +#: ../../library/stdtypes.rst:2679 ../../library/stdtypes.rst:3938 msgid "" "Mapping key (optional), consisting of a parenthesised sequence of characters " "(for example, ``(somename)``)." @@ -4633,13 +4668,13 @@ msgstr "" "マップキー (オプション)。丸括弧で囲った文字列からなります (例えば " "``(somename)``) 。" -#: ../../library/stdtypes.rst:2654 ../../library/stdtypes.rst:3913 +#: ../../library/stdtypes.rst:2682 ../../library/stdtypes.rst:3941 msgid "" "Conversion flags (optional), which affect the result of some conversion " "types." msgstr "変換フラグ (オプション)。一部の変換型の結果に影響します。" -#: ../../library/stdtypes.rst:2657 ../../library/stdtypes.rst:3916 +#: ../../library/stdtypes.rst:2685 ../../library/stdtypes.rst:3944 msgid "" "Minimum field width (optional). If specified as an ``'*'`` (asterisk), the " "actual width is read from the next element of the tuple in *values*, and the " @@ -4650,7 +4685,7 @@ msgstr "" "フィールド幅やオプションの精度指定の後に変換したいオブジェクトがくるようにし" "ます。" -#: ../../library/stdtypes.rst:2661 ../../library/stdtypes.rst:3920 +#: ../../library/stdtypes.rst:2689 ../../library/stdtypes.rst:3948 msgid "" "Precision (optional), given as a ``'.'`` (dot) followed by the precision. " "If specified as ``'*'`` (an asterisk), the actual precision is read from the " @@ -4661,15 +4696,15 @@ msgstr "" "``'*'`` (アスタリスク) を指定した場合、精度の桁数は *values* タプルの次の要素" "から読み出されます。タプルには精度指定の後に変換したい値がくるようにします。" -#: ../../library/stdtypes.rst:2666 ../../library/stdtypes.rst:3925 +#: ../../library/stdtypes.rst:2694 ../../library/stdtypes.rst:3953 msgid "Length modifier (optional)." msgstr "精度長変換子 (オプション)。" -#: ../../library/stdtypes.rst:2668 ../../library/stdtypes.rst:3927 +#: ../../library/stdtypes.rst:2696 ../../library/stdtypes.rst:3955 msgid "Conversion type." msgstr "変換型。" -#: ../../library/stdtypes.rst:2670 +#: ../../library/stdtypes.rst:2698 msgid "" "When the right argument is a dictionary (or other mapping type), then the " "formats in the string *must* include a parenthesised mapping key into that " @@ -4681,7 +4716,7 @@ msgstr "" "後にくるようにしたものが含まれていなければ *なりません* 。マップキーはフォー" "マット化したい値をマップから選び出します。例えば:" -#: ../../library/stdtypes.rst:2679 ../../library/stdtypes.rst:3938 +#: ../../library/stdtypes.rst:2707 ../../library/stdtypes.rst:3966 msgid "" "In this case no ``*`` specifiers may occur in a format (since they require a " "sequential parameter list)." @@ -4689,36 +4724,36 @@ msgstr "" "この場合、 ``*`` 指定子をフォーマットに含めてはいけません (``*`` 指定子は順番" "付けされたパラメタのリストが必要だからです)。" -#: ../../library/stdtypes.rst:2682 ../../library/stdtypes.rst:3941 +#: ../../library/stdtypes.rst:2710 ../../library/stdtypes.rst:3969 msgid "The conversion flag characters are:" msgstr "変換フラグ文字を以下に示します:" -#: ../../library/stdtypes.rst:2691 ../../library/stdtypes.rst:3950 +#: ../../library/stdtypes.rst:2719 ../../library/stdtypes.rst:3978 msgid "Flag" msgstr "Flag" -#: ../../library/stdtypes.rst:2693 ../../library/stdtypes.rst:3952 +#: ../../library/stdtypes.rst:2721 ../../library/stdtypes.rst:3980 msgid "``'#'``" msgstr "``'#'``" -#: ../../library/stdtypes.rst:2693 ../../library/stdtypes.rst:3952 +#: ../../library/stdtypes.rst:2721 ../../library/stdtypes.rst:3980 msgid "" "The value conversion will use the \"alternate form\" (where defined below)." msgstr "値の変換に (下で定義されている) \"別の形式\" を使います。" -#: ../../library/stdtypes.rst:2696 ../../library/stdtypes.rst:3955 +#: ../../library/stdtypes.rst:2724 ../../library/stdtypes.rst:3983 msgid "``'0'``" msgstr "``'0'``" -#: ../../library/stdtypes.rst:2696 ../../library/stdtypes.rst:3955 +#: ../../library/stdtypes.rst:2724 ../../library/stdtypes.rst:3983 msgid "The conversion will be zero padded for numeric values." msgstr "数値型に対してゼロによるパディングを行います。" -#: ../../library/stdtypes.rst:2698 ../../library/stdtypes.rst:3957 +#: ../../library/stdtypes.rst:2726 ../../library/stdtypes.rst:3985 msgid "``'-'``" msgstr "``'-'``" -#: ../../library/stdtypes.rst:2698 ../../library/stdtypes.rst:3957 +#: ../../library/stdtypes.rst:2726 ../../library/stdtypes.rst:3985 msgid "" "The converted value is left adjusted (overrides the ``'0'`` conversion if " "both are given)." @@ -4726,11 +4761,11 @@ msgstr "" "変換された値を左寄せにします (``'0'`` と同時に与えた場合、 ``'0'`` を上書きし" "ます) 。" -#: ../../library/stdtypes.rst:2701 ../../library/stdtypes.rst:3960 +#: ../../library/stdtypes.rst:2729 ../../library/stdtypes.rst:3988 msgid "``' '``" msgstr "``' '``" -#: ../../library/stdtypes.rst:2701 ../../library/stdtypes.rst:3960 +#: ../../library/stdtypes.rst:2729 ../../library/stdtypes.rst:3988 msgid "" "(a space) A blank should be left before a positive number (or empty string) " "produced by a signed conversion." @@ -4738,11 +4773,11 @@ msgstr "" "(スペース) 符号付きの変換で正の数の場合、前に一つスペースを空けます (そうでな" "い場合は空文字になります) 。" -#: ../../library/stdtypes.rst:2704 ../../library/stdtypes.rst:3963 +#: ../../library/stdtypes.rst:2732 ../../library/stdtypes.rst:3991 msgid "``'+'``" msgstr "``'+'``" -#: ../../library/stdtypes.rst:2704 ../../library/stdtypes.rst:3963 +#: ../../library/stdtypes.rst:2732 ../../library/stdtypes.rst:3991 msgid "" "A sign character (``'+'`` or ``'-'``) will precede the conversion (overrides " "a \"space\" flag)." @@ -4750,7 +4785,7 @@ msgstr "" "変換の先頭に符号文字 (``'+'`` または ``'-'``) を付けます(\"スペース\" フラグ" "を上書きします) 。" -#: ../../library/stdtypes.rst:2708 ../../library/stdtypes.rst:3967 +#: ../../library/stdtypes.rst:2736 ../../library/stdtypes.rst:3995 msgid "" "A length modifier (``h``, ``l``, or ``L``) may be present, but is ignored as " "it is not necessary for Python -- so e.g. ``%ld`` is identical to ``%d``." @@ -4758,89 +4793,89 @@ msgstr "" "精度長変換子(``h``, ``l``,または ``L``) を使うことができますが、 Python では" "必要ないため無視されます。 -- つまり、例えば ``%ld`` は ``%d`` と等価です。" -#: ../../library/stdtypes.rst:2711 ../../library/stdtypes.rst:3970 +#: ../../library/stdtypes.rst:2739 ../../library/stdtypes.rst:3998 msgid "The conversion types are:" msgstr "変換型を以下に示します:" -#: ../../library/stdtypes.rst:2716 ../../library/stdtypes.rst:3975 +#: ../../library/stdtypes.rst:2744 ../../library/stdtypes.rst:4003 msgid "``'d'``" msgstr "``'d'``" -#: ../../library/stdtypes.rst:2716 ../../library/stdtypes.rst:2718 -#: ../../library/stdtypes.rst:3975 ../../library/stdtypes.rst:3977 +#: ../../library/stdtypes.rst:2744 ../../library/stdtypes.rst:2746 +#: ../../library/stdtypes.rst:4003 ../../library/stdtypes.rst:4005 msgid "Signed integer decimal." msgstr "符号付き 10 進整数。" -#: ../../library/stdtypes.rst:2718 ../../library/stdtypes.rst:3977 +#: ../../library/stdtypes.rst:2746 ../../library/stdtypes.rst:4005 msgid "``'i'``" msgstr "``'i'``" -#: ../../library/stdtypes.rst:2720 ../../library/stdtypes.rst:3979 +#: ../../library/stdtypes.rst:2748 ../../library/stdtypes.rst:4007 msgid "``'o'``" msgstr "``'o'``" -#: ../../library/stdtypes.rst:2720 ../../library/stdtypes.rst:3979 +#: ../../library/stdtypes.rst:2748 ../../library/stdtypes.rst:4007 msgid "Signed octal value." msgstr "符号付き 8 進数。" -#: ../../library/stdtypes.rst:2722 ../../library/stdtypes.rst:3981 +#: ../../library/stdtypes.rst:2750 ../../library/stdtypes.rst:4009 msgid "``'u'``" msgstr "``'u'``" -#: ../../library/stdtypes.rst:2722 ../../library/stdtypes.rst:3981 +#: ../../library/stdtypes.rst:2750 ../../library/stdtypes.rst:4009 msgid "Obsolete type -- it is identical to ``'d'``." msgstr "旧式の型 -- ``'d'`` と同じです。" -#: ../../library/stdtypes.rst:2724 ../../library/stdtypes.rst:3983 +#: ../../library/stdtypes.rst:2752 ../../library/stdtypes.rst:4011 msgid "``'x'``" msgstr "``'x'``" -#: ../../library/stdtypes.rst:2724 ../../library/stdtypes.rst:3983 +#: ../../library/stdtypes.rst:2752 ../../library/stdtypes.rst:4011 msgid "Signed hexadecimal (lowercase)." msgstr "符号付き 16 進数 (小文字)。" -#: ../../library/stdtypes.rst:2726 ../../library/stdtypes.rst:3985 +#: ../../library/stdtypes.rst:2754 ../../library/stdtypes.rst:4013 msgid "``'X'``" msgstr "``'X'``" -#: ../../library/stdtypes.rst:2726 ../../library/stdtypes.rst:3985 +#: ../../library/stdtypes.rst:2754 ../../library/stdtypes.rst:4013 msgid "Signed hexadecimal (uppercase)." msgstr "符号付き 16 進数 (大文字)。" -#: ../../library/stdtypes.rst:2728 ../../library/stdtypes.rst:3987 +#: ../../library/stdtypes.rst:2756 ../../library/stdtypes.rst:4015 msgid "``'e'``" msgstr "``'e'``" -#: ../../library/stdtypes.rst:2728 ../../library/stdtypes.rst:3987 +#: ../../library/stdtypes.rst:2756 ../../library/stdtypes.rst:4015 msgid "Floating-point exponential format (lowercase)." msgstr "指数表記の浮動小数点数 (小文字)。" -#: ../../library/stdtypes.rst:2730 ../../library/stdtypes.rst:3989 +#: ../../library/stdtypes.rst:2758 ../../library/stdtypes.rst:4017 msgid "``'E'``" msgstr "``'E'``" -#: ../../library/stdtypes.rst:2730 ../../library/stdtypes.rst:3989 +#: ../../library/stdtypes.rst:2758 ../../library/stdtypes.rst:4017 msgid "Floating-point exponential format (uppercase)." msgstr "指数表記の浮動小数点数 (大文字)。" -#: ../../library/stdtypes.rst:2732 ../../library/stdtypes.rst:3991 +#: ../../library/stdtypes.rst:2760 ../../library/stdtypes.rst:4019 msgid "``'f'``" msgstr "``'f'``" -#: ../../library/stdtypes.rst:2732 ../../library/stdtypes.rst:2734 -#: ../../library/stdtypes.rst:3991 ../../library/stdtypes.rst:3993 +#: ../../library/stdtypes.rst:2760 ../../library/stdtypes.rst:2762 +#: ../../library/stdtypes.rst:4019 ../../library/stdtypes.rst:4021 msgid "Floating-point decimal format." msgstr "10 進浮動小数点数。" -#: ../../library/stdtypes.rst:2734 ../../library/stdtypes.rst:3993 +#: ../../library/stdtypes.rst:2762 ../../library/stdtypes.rst:4021 msgid "``'F'``" msgstr "``'F'``" -#: ../../library/stdtypes.rst:2736 ../../library/stdtypes.rst:3995 +#: ../../library/stdtypes.rst:2764 ../../library/stdtypes.rst:4023 msgid "``'g'``" msgstr "``'g'``" -#: ../../library/stdtypes.rst:2736 ../../library/stdtypes.rst:3995 +#: ../../library/stdtypes.rst:2764 ../../library/stdtypes.rst:4023 msgid "" "Floating-point format. Uses lowercase exponential format if exponent is less " "than -4 or not less than precision, decimal format otherwise." @@ -4848,11 +4883,11 @@ msgstr "" "浮動小数点数。指数部が -4 以上または精度以下の場合には小文字指数表記、それ以" "外の場合には10進表記。" -#: ../../library/stdtypes.rst:2740 ../../library/stdtypes.rst:3999 +#: ../../library/stdtypes.rst:2768 ../../library/stdtypes.rst:4027 msgid "``'G'``" msgstr "``'G'``" -#: ../../library/stdtypes.rst:2740 ../../library/stdtypes.rst:3999 +#: ../../library/stdtypes.rst:2768 ../../library/stdtypes.rst:4027 msgid "" "Floating-point format. Uses uppercase exponential format if exponent is less " "than -4 or not less than precision, decimal format otherwise." @@ -4860,47 +4895,47 @@ msgstr "" "浮動小数点数。指数部が -4 以上または精度以下の場合には大文字指数表記、それ以" "外の場合には10進表記。" -#: ../../library/stdtypes.rst:2744 ../../library/stdtypes.rst:4003 +#: ../../library/stdtypes.rst:2772 ../../library/stdtypes.rst:4031 msgid "``'c'``" msgstr "``'c'``" -#: ../../library/stdtypes.rst:2744 +#: ../../library/stdtypes.rst:2772 msgid "Single character (accepts integer or single character string)." msgstr "文字一文字 (整数または一文字からなる文字列を受理します)。" -#: ../../library/stdtypes.rst:2747 ../../library/stdtypes.rst:4016 +#: ../../library/stdtypes.rst:2775 ../../library/stdtypes.rst:4044 msgid "``'r'``" msgstr "``'r'``" -#: ../../library/stdtypes.rst:2747 +#: ../../library/stdtypes.rst:2775 msgid "String (converts any Python object using :func:`repr`)." msgstr "文字列 (Python オブジェクトを :func:`repr` で変換します)。" -#: ../../library/stdtypes.rst:2750 ../../library/stdtypes.rst:4010 +#: ../../library/stdtypes.rst:2778 ../../library/stdtypes.rst:4038 msgid "``'s'``" msgstr "``'s'``" -#: ../../library/stdtypes.rst:2750 +#: ../../library/stdtypes.rst:2778 msgid "String (converts any Python object using :func:`str`)." msgstr "文字列 (Python オブジェクトを :func:`str` で変換します)。" -#: ../../library/stdtypes.rst:2753 ../../library/stdtypes.rst:4013 +#: ../../library/stdtypes.rst:2781 ../../library/stdtypes.rst:4041 msgid "``'a'``" msgstr "``'a'``" -#: ../../library/stdtypes.rst:2753 +#: ../../library/stdtypes.rst:2781 msgid "String (converts any Python object using :func:`ascii`)." msgstr "文字列 (Python オブジェクトを :func:`ascii` で変換します)。" -#: ../../library/stdtypes.rst:2756 ../../library/stdtypes.rst:4019 +#: ../../library/stdtypes.rst:2784 ../../library/stdtypes.rst:4047 msgid "``'%'``" msgstr "``'%'``" -#: ../../library/stdtypes.rst:2756 ../../library/stdtypes.rst:4019 +#: ../../library/stdtypes.rst:2784 ../../library/stdtypes.rst:4047 msgid "No argument is converted, results in a ``'%'`` character in the result." msgstr "引数を変換せず、返される文字列中では文字 ``'%'`` になります。" -#: ../../library/stdtypes.rst:2763 ../../library/stdtypes.rst:4026 +#: ../../library/stdtypes.rst:2791 ../../library/stdtypes.rst:4054 msgid "" "The alternate form causes a leading octal specifier (``'0o'``) to be " "inserted before the first digit." @@ -4908,7 +4943,7 @@ msgstr "" "別の形式を指定(訳注: 変換フラグ ``#`` を使用)すると 8 進数を表す接頭辞 " "(``'0o'``) が最初の数字の前に挿入されます。" -#: ../../library/stdtypes.rst:2767 ../../library/stdtypes.rst:4030 +#: ../../library/stdtypes.rst:2795 ../../library/stdtypes.rst:4058 msgid "" "The alternate form causes a leading ``'0x'`` or ``'0X'`` (depending on " "whether the ``'x'`` or ``'X'`` format was used) to be inserted before the " @@ -4918,7 +4953,7 @@ msgstr "" "``'0x'`` または ``'0X'`` (使用するフォーマット文字が ``'x'`` か ``'X'`` に依" "存します) が最初の数字の前に挿入されます。" -#: ../../library/stdtypes.rst:2771 ../../library/stdtypes.rst:4034 +#: ../../library/stdtypes.rst:2799 ../../library/stdtypes.rst:4062 msgid "" "The alternate form causes the result to always contain a decimal point, even " "if no digits follow it." @@ -4926,13 +4961,13 @@ msgstr "" "この形式にした場合、変換結果には常に小数点が含まれ、それはその後ろに数字が続" "かない場合にも適用されます。" -#: ../../library/stdtypes.rst:2774 ../../library/stdtypes.rst:4037 +#: ../../library/stdtypes.rst:2802 ../../library/stdtypes.rst:4065 msgid "" "The precision determines the number of digits after the decimal point and " "defaults to 6." msgstr "指定精度は小数点の後の桁数を決定し、そのデフォルトは 6 です。" -#: ../../library/stdtypes.rst:2778 ../../library/stdtypes.rst:4041 +#: ../../library/stdtypes.rst:2806 ../../library/stdtypes.rst:4069 msgid "" "The alternate form causes the result to always contain a decimal point, and " "trailing zeroes are not removed as they would otherwise be." @@ -4940,21 +4975,21 @@ msgstr "" "この形式にした場合、変換結果には常に小数点が含まれ他の形式とは違って末尾の 0 " "は取り除かれません。" -#: ../../library/stdtypes.rst:2781 ../../library/stdtypes.rst:4044 +#: ../../library/stdtypes.rst:2809 ../../library/stdtypes.rst:4072 msgid "" "The precision determines the number of significant digits before and after " "the decimal point and defaults to 6." msgstr "指定精度は小数点の前後の有効桁数を決定し、そのデフォルトは 6 です。" -#: ../../library/stdtypes.rst:2785 ../../library/stdtypes.rst:4048 +#: ../../library/stdtypes.rst:2813 ../../library/stdtypes.rst:4076 msgid "If precision is ``N``, the output is truncated to ``N`` characters." msgstr "精度が ``N`` なら、出力は ``N`` 文字に切り詰められます。" -#: ../../library/stdtypes.rst:2788 ../../library/stdtypes.rst:4057 +#: ../../library/stdtypes.rst:2816 ../../library/stdtypes.rst:4085 msgid "See :pep:`237`." msgstr ":pep:`237` を参照してください。" -#: ../../library/stdtypes.rst:2790 +#: ../../library/stdtypes.rst:2818 msgid "" "Since Python strings have an explicit length, ``%s`` conversions do not " "assume that ``'\\0'`` is the end of the string." @@ -4962,7 +4997,7 @@ msgstr "" "Python 文字列には明示的な長さ情報があるので、 ``%s`` 変換において ``'\\0'`` " "を文字列の末端と仮定したりはしません。" -#: ../../library/stdtypes.rst:2795 +#: ../../library/stdtypes.rst:2823 msgid "" "``%f`` conversions for numbers whose absolute value is over 1e50 are no " "longer replaced by ``%g`` conversions." @@ -4970,7 +5005,7 @@ msgstr "" "絶対値が 1e50 を超える数値の ``%f`` 変換が ``%g`` 変換に置き換えられなくなり" "ました。" -#: ../../library/stdtypes.rst:2806 +#: ../../library/stdtypes.rst:2834 msgid "" "Binary Sequence Types --- :class:`bytes`, :class:`bytearray`, :class:" "`memoryview`" @@ -4978,7 +5013,7 @@ msgstr "" "バイナリシーケンス型 --- :class:`bytes`, :class:`bytearray`, :class:" "`memoryview`" -#: ../../library/stdtypes.rst:2814 +#: ../../library/stdtypes.rst:2842 msgid "" "The core built-in types for manipulating binary data are :class:`bytes` and :" "class:`bytearray`. They are supported by :class:`memoryview` which uses the :" @@ -4990,7 +5025,7 @@ msgstr "" "ること無くアクセスするための :ref:`バッファプロトコル ` を利用" "する :class:`memoryview` でサポートされています。" -#: ../../library/stdtypes.rst:2819 +#: ../../library/stdtypes.rst:2847 msgid "" "The :mod:`array` module supports efficient storage of basic data types like " "32-bit integers and IEEE754 double-precision floating values." @@ -4998,11 +5033,11 @@ msgstr "" ":mod:`array` モジュールは、32 ビット整数や IEEE754 倍精度浮動小数点値のような" "基本データ型の、効率的な保存をサポートしています。" -#: ../../library/stdtypes.rst:2825 +#: ../../library/stdtypes.rst:2853 msgid "Bytes Objects" msgstr "バイトオブジェクト" -#: ../../library/stdtypes.rst:2829 +#: ../../library/stdtypes.rst:2857 msgid "" "Bytes objects are immutable sequences of single bytes. Since many major " "binary protocols are based on the ASCII text encoding, bytes objects offer " @@ -5014,7 +5049,7 @@ msgstr "" "データに対してのみ動作する幾つかのメソッドを提供していて、文字列オブジェクト" "と他の多くの点で近いです。" -#: ../../library/stdtypes.rst:2836 +#: ../../library/stdtypes.rst:2864 msgid "" "Firstly, the syntax for bytes literals is largely the same as that for " "string literals, except that a ``b`` prefix is added:" @@ -5022,21 +5057,21 @@ msgstr "" "まず、 bytes リテラルの構文は文字列リテラルとほぼ同じで、 ``b`` というプリ" "フィックスを付けます:" -#: ../../library/stdtypes.rst:2839 +#: ../../library/stdtypes.rst:2867 msgid "Single quotes: ``b'still allows embedded \"double\" quotes'``" msgstr "シングルクォート: ``b'still allows embedded \"double\" quotes'``" -#: ../../library/stdtypes.rst:2840 +#: ../../library/stdtypes.rst:2868 msgid "Double quotes: ``b\"still allows embedded 'single' quotes\"``" msgstr "ダブルクォート: ``b\"still allows embedded 'single' quotes\"``." -#: ../../library/stdtypes.rst:2841 +#: ../../library/stdtypes.rst:2869 msgid "" "Triple quoted: ``b'''3 single quotes'''``, ``b\"\"\"3 double quotes\"\"\"``" msgstr "" "3重クォート: ``b'''3 single quotes'''``, ``b\"\"\"3 double quotes\"\"\"``" -#: ../../library/stdtypes.rst:2843 +#: ../../library/stdtypes.rst:2871 msgid "" "Only ASCII characters are permitted in bytes literals (regardless of the " "declared source code encoding). Any binary values over 127 must be entered " @@ -5046,7 +5081,7 @@ msgstr "" "許可されています。 127より大きい値を bytes リテラルに記述する場合は適切なエス" "ケープシーケンスを書く必要があります。" -#: ../../library/stdtypes.rst:2847 +#: ../../library/stdtypes.rst:2875 msgid "" "As with string literals, bytes literals may also use a ``r`` prefix to " "disable processing of escape sequences. See :ref:`strings` for more about " @@ -5057,7 +5092,7 @@ msgstr "" "やサポートされているエスケープシーケンスについては :ref:`strings` を参照して" "ください。" -#: ../../library/stdtypes.rst:2851 +#: ../../library/stdtypes.rst:2879 msgid "" "While bytes literals and representations are based on ASCII text, bytes " "objects actually behave like immutable sequences of integers, with each " @@ -5078,29 +5113,29 @@ msgstr "" "設計されました (何も考えずにテキスト操作アルゴリズムをASCII非互換なバイナリ" "データフォーマットに対して行うとデータを破壊することがあります)。" -#: ../../library/stdtypes.rst:2861 +#: ../../library/stdtypes.rst:2889 msgid "" "In addition to the literal forms, bytes objects can be created in a number " "of other ways:" msgstr "リテラル以外に、幾つかの方法で bytes オブジェクトを作ることができます:" -#: ../../library/stdtypes.rst:2864 +#: ../../library/stdtypes.rst:2892 msgid "A zero-filled bytes object of a specified length: ``bytes(10)``" msgstr "指定された長さの、0で埋められた bytes オブジェクト: ``bytes(10)``" -#: ../../library/stdtypes.rst:2865 +#: ../../library/stdtypes.rst:2893 msgid "From an iterable of integers: ``bytes(range(20))``" msgstr "整数の iterable から: ``bytes(range(20))``" -#: ../../library/stdtypes.rst:2866 +#: ../../library/stdtypes.rst:2894 msgid "Copying existing binary data via the buffer protocol: ``bytes(obj)``" msgstr "既存のバイナリデータからバッファプロトコルでコピーする: ``bytes(obj)``" -#: ../../library/stdtypes.rst:2868 +#: ../../library/stdtypes.rst:2896 msgid "Also see the :ref:`bytes ` built-in." msgstr ":ref:`bytes ` ビルトイン関数も参照してください。" -#: ../../library/stdtypes.rst:2870 +#: ../../library/stdtypes.rst:2898 msgid "" "Since 2 hexadecimal digits correspond precisely to a single byte, " "hexadecimal numbers are a commonly used format for describing binary data. " @@ -5111,7 +5146,7 @@ msgstr "" "表現する形式として広く使われています。 従って、 bytes 型にはその形式でデータ" "を読み取るための追加のクラスメソッドがあります。" -#: ../../library/stdtypes.rst:2876 +#: ../../library/stdtypes.rst:2904 msgid "" "This :class:`bytes` class method returns a bytes object, decoding the given " "string object. The string must contain two hexadecimal digits per byte, " @@ -5121,7 +5156,7 @@ msgstr "" "ドして bytes オブジェクトを返します。それぞれのバイトを 16 進数 2 桁で表現し" "た文字列を指定しなければなりません。ASCII 空白文字は無視されます。" -#: ../../library/stdtypes.rst:2883 +#: ../../library/stdtypes.rst:2911 msgid "" ":meth:`bytes.fromhex` now skips all ASCII whitespace in the string, not just " "spaces." @@ -5129,13 +5164,13 @@ msgstr "" ":meth:`bytes.fromhex` は文字列にある空白だけでなく、 ASCII の空白文字全てをス" "キップするようになりました。" -#: ../../library/stdtypes.rst:2887 +#: ../../library/stdtypes.rst:2915 msgid "" ":meth:`bytes.fromhex` now accepts ASCII :class:`bytes` and :term:`bytes-like " "objects ` as input." msgstr "" -#: ../../library/stdtypes.rst:2891 +#: ../../library/stdtypes.rst:2919 msgid "" "A reverse conversion function exists to transform a bytes object into its " "hexadecimal representation." @@ -5143,7 +5178,7 @@ msgstr "" "bytes オブジェクトをその 16 進表記に変換するための、反対向きの変換関数があり" "ます。" -#: ../../library/stdtypes.rst:2896 ../../library/stdtypes.rst:2985 +#: ../../library/stdtypes.rst:2924 ../../library/stdtypes.rst:3013 msgid "" "Return a string object containing two hexadecimal digits for each byte in " "the instance." @@ -5151,7 +5186,7 @@ msgstr "" "インスタンス内の 1 バイトにつき 2 つの 16 進数を含む、文字列オブジェクトを返" "します。" -#: ../../library/stdtypes.rst:2902 +#: ../../library/stdtypes.rst:2930 msgid "" "If you want to make the hex string easier to read, you can specify a single " "character separator *sep* parameter to include in the output. By default, " @@ -5165,7 +5200,7 @@ msgstr "" "*bytes_per_sep* はセパレータを入れる間隔を制御します。正の整数値はセパレータ" "の位置を右から計算し、負の整数値は左から計算します。" -#: ../../library/stdtypes.rst:2919 +#: ../../library/stdtypes.rst:2947 msgid "" ":meth:`bytes.hex` now supports optional *sep* and *bytes_per_sep* parameters " "to insert separators between bytes in the hex output." @@ -5174,7 +5209,7 @@ msgstr "" "のオプションパラメータ *sep* と *bytes_per_sep* をサポートするようになりまし" "た。" -#: ../../library/stdtypes.rst:2923 +#: ../../library/stdtypes.rst:2951 msgid "" "Since bytes objects are sequences of integers (akin to a tuple), for a bytes " "object *b*, ``b[0]`` will be an integer, while ``b[0:1]`` will be a bytes " @@ -5186,7 +5221,7 @@ msgstr "" "ジェクトになります。 (この動作は、文字列に対するインデックス指定もスライスも" "長さ 1 の文字列を返すのと対照的です。)" -#: ../../library/stdtypes.rst:2928 +#: ../../library/stdtypes.rst:2956 msgid "" "The representation of bytes objects uses the literal format (``b'...'``) " "since it is often more useful than e.g. ``bytes([46, 46, 46])``. You can " @@ -5196,11 +5231,11 @@ msgstr "" "``bytes([46, 46, 46])`` などの形式よりも便利な事が多いからです。 bytes オブ" "ジェクトはいつでも ``list(b)`` で整数のリストに変換できます。" -#: ../../library/stdtypes.rst:2936 +#: ../../library/stdtypes.rst:2964 msgid "Bytearray Objects" msgstr "bytearray オブジェクト" -#: ../../library/stdtypes.rst:2940 +#: ../../library/stdtypes.rst:2968 msgid "" ":class:`bytearray` objects are a mutable counterpart to :class:`bytes` " "objects." @@ -5208,33 +5243,33 @@ msgstr "" ":class:`bytearray` オブジェクトは :class:`bytes` オブジェクトの可変なバージョ" "ンです。" -#: ../../library/stdtypes.rst:2945 +#: ../../library/stdtypes.rst:2973 msgid "" "There is no dedicated literal syntax for bytearray objects, instead they are " "always created by calling the constructor:" msgstr "" "bytearray に専用のリテラル構文はないので、コンストラクタを使って作成します:" -#: ../../library/stdtypes.rst:2948 +#: ../../library/stdtypes.rst:2976 msgid "Creating an empty instance: ``bytearray()``" msgstr "空のインスタンスを作る: ``bytearray()``" -#: ../../library/stdtypes.rst:2949 +#: ../../library/stdtypes.rst:2977 msgid "Creating a zero-filled instance with a given length: ``bytearray(10)``" msgstr "指定された長さの0で埋められたインスタンスを作る: ``bytearray(10)``" -#: ../../library/stdtypes.rst:2950 +#: ../../library/stdtypes.rst:2978 msgid "From an iterable of integers: ``bytearray(range(20))``" msgstr "整数の iterable から: ``bytearray(range(20))``" -#: ../../library/stdtypes.rst:2951 +#: ../../library/stdtypes.rst:2979 msgid "" "Copying existing binary data via the buffer protocol: ``bytearray(b'Hi!')``" msgstr "" "既存のバイナリデータからバッファプロトコルを通してコピーする: " "``bytearray(b'Hi!')``" -#: ../../library/stdtypes.rst:2953 +#: ../../library/stdtypes.rst:2981 msgid "" "As bytearray objects are mutable, they support the :ref:`mutable ` sequence operations in addition to the common bytes and bytearray " @@ -5244,11 +5279,11 @@ msgstr "" "bytes オブジェクトと共通の操作に加えて、 :ref:`mutable ` " "シーケンス操作もサポートしています。" -#: ../../library/stdtypes.rst:2957 +#: ../../library/stdtypes.rst:2985 msgid "Also see the :ref:`bytearray ` built-in." msgstr ":ref:`bytearray ` ビルトイン関数も参照してください。" -#: ../../library/stdtypes.rst:2959 +#: ../../library/stdtypes.rst:2987 msgid "" "Since 2 hexadecimal digits correspond precisely to a single byte, " "hexadecimal numbers are a commonly used format for describing binary data. " @@ -5259,7 +5294,7 @@ msgstr "" "表現する形式として広く使われています。 従って、 bytearray 型にはその形式で" "データを読み取るための追加のクラスメソッドがあります。" -#: ../../library/stdtypes.rst:2965 +#: ../../library/stdtypes.rst:2993 msgid "" "This :class:`bytearray` class method returns bytearray object, decoding the " "given string object. The string must contain two hexadecimal digits per " @@ -5269,7 +5304,7 @@ msgstr "" "コードして bytearray オブジェクトを返します。それぞれのバイトを 16 進数 2 桁" "で表現した文字列を指定しなければなりません。ASCII 空白文字は無視されます。" -#: ../../library/stdtypes.rst:2972 +#: ../../library/stdtypes.rst:3000 msgid "" ":meth:`bytearray.fromhex` now skips all ASCII whitespace in the string, not " "just spaces." @@ -5277,13 +5312,13 @@ msgstr "" ":meth:`bytearray.fromhex` は文字列にある空白だけでなく、 ASCII の空白文字全て" "をスキップするようになりました。" -#: ../../library/stdtypes.rst:2976 +#: ../../library/stdtypes.rst:3004 msgid "" ":meth:`bytearray.fromhex` now accepts ASCII :class:`bytes` and :term:`bytes-" "like objects ` as input." msgstr "" -#: ../../library/stdtypes.rst:2980 +#: ../../library/stdtypes.rst:3008 msgid "" "A reverse conversion function exists to transform a bytearray object into " "its hexadecimal representation." @@ -5291,7 +5326,7 @@ msgstr "" "bytearray オブジェクトをその 16 進表記に変換するための、反対向きの変換関数が" "あります。" -#: ../../library/stdtypes.rst:2993 +#: ../../library/stdtypes.rst:3021 msgid "" "Similar to :meth:`bytes.hex`, :meth:`bytearray.hex` now supports optional " "*sep* and *bytes_per_sep* parameters to insert separators between bytes in " @@ -5301,32 +5336,32 @@ msgstr "" "分割するセパレータを挿入するためのオプションパラメータ *sep* と " "*bytes_per_sep* をサポートするようになりました。" -#: ../../library/stdtypes.rst:3000 +#: ../../library/stdtypes.rst:3028 msgid "" "Resize the :class:`bytearray` to contain *size* bytes. *size* must be " "greater than or equal to 0." msgstr "" -#: ../../library/stdtypes.rst:3003 +#: ../../library/stdtypes.rst:3031 msgid "" "If the :class:`bytearray` needs to shrink, bytes beyond *size* are truncated." msgstr "" -#: ../../library/stdtypes.rst:3005 +#: ../../library/stdtypes.rst:3033 msgid "" "If the :class:`bytearray` needs to grow, all new bytes, those beyond *size*, " "will be set to null bytes." msgstr "" -#: ../../library/stdtypes.rst:3009 +#: ../../library/stdtypes.rst:3037 msgid "This is equivalent to:" msgstr "" -#: ../../library/stdtypes.rst:3017 +#: ../../library/stdtypes.rst:3045 msgid "Examples:" msgstr "例:" -#: ../../library/stdtypes.rst:3030 +#: ../../library/stdtypes.rst:3058 msgid "" "Since bytearray objects are sequences of integers (akin to a list), for a " "bytearray object *b*, ``b[0]`` will be an integer, while ``b[0:1]`` will be " @@ -5338,7 +5373,7 @@ msgstr "" "さ 1 の bytearray オブジェクトになります。(これは、文字列においてインデックス" "指定もスライスも長さ 1 の文字列を返すのと対照的です。)" -#: ../../library/stdtypes.rst:3035 +#: ../../library/stdtypes.rst:3063 msgid "" "The representation of bytearray objects uses the bytes literal format " "(``bytearray(b'...')``) since it is often more useful than e.g. " @@ -5350,11 +5385,11 @@ msgstr "" "ためです。\n" "bytearray オブジェクトはいつでも ``list(b)`` で整数のリストに変換できます。" -#: ../../library/stdtypes.rst:3044 +#: ../../library/stdtypes.rst:3072 msgid "Bytes and Bytearray Operations" msgstr "bytes と bytearray の操作" -#: ../../library/stdtypes.rst:3049 +#: ../../library/stdtypes.rst:3077 msgid "" "Both bytes and bytearray objects support the :ref:`common ` " "sequence operations. They interoperate not just with operands of the same " @@ -5368,7 +5403,7 @@ msgstr "" "と bytearray を自由に混ぜてもエラーを起こすことなく扱うことができます。ただ" "し、操作の結果のオブジェクトはその操作の順序に依存することになります。" -#: ../../library/stdtypes.rst:3057 +#: ../../library/stdtypes.rst:3085 msgid "" "The methods on bytes and bytearray objects don't accept strings as their " "arguments, just as the methods on strings don't accept bytes as their " @@ -5378,23 +5413,23 @@ msgstr "" "と bytearray オブジェクトのメソッドは引数として文字列を受け付けません。例え" "ば、以下のように書かなければなりません::" -#: ../../library/stdtypes.rst:3061 +#: ../../library/stdtypes.rst:3089 msgid "" "a = \"abc\"\n" "b = a.replace(\"a\", \"f\")" msgstr "" -#: ../../library/stdtypes.rst:3064 +#: ../../library/stdtypes.rst:3092 msgid "and::" msgstr "および::" -#: ../../library/stdtypes.rst:3066 +#: ../../library/stdtypes.rst:3094 msgid "" "a = b\"abc\"\n" "b = a.replace(b\"a\", b\"f\")" msgstr "" -#: ../../library/stdtypes.rst:3069 +#: ../../library/stdtypes.rst:3097 msgid "" "Some bytes and bytearray operations assume the use of ASCII compatible " "binary formats, and hence should be avoided when working with arbitrary " @@ -5404,7 +5439,7 @@ msgstr "" "トが使われていると仮定していますので、フォーマットの不明なバイナリデータに対" "して使うことは避けるべきです。こうした制約については以下で説明します。" -#: ../../library/stdtypes.rst:3074 +#: ../../library/stdtypes.rst:3102 msgid "" "Using these ASCII based operations to manipulate binary data that is not " "stored in an ASCII based format may lead to data corruption." @@ -5412,7 +5447,7 @@ msgstr "" "これらの ASCII ベースの演算を使って ASCII ベースではないバイナリデータを操作" "すると、データを破壊する恐れがあります。" -#: ../../library/stdtypes.rst:3077 +#: ../../library/stdtypes.rst:3105 msgid "" "The following methods on bytes and bytearray objects can be used with " "arbitrary binary data." @@ -5420,7 +5455,7 @@ msgstr "" "以下の bytes および bytearray オブジェクトのメソッドは、任意のバイナリデータ" "に対して使用できます。" -#: ../../library/stdtypes.rst:3083 +#: ../../library/stdtypes.rst:3111 msgid "" "Return the number of non-overlapping occurrences of subsequence *sub* in the " "range [*start*, *end*]. Optional arguments *start* and *end* are " @@ -5430,9 +5465,9 @@ msgstr "" "ます。オプション引数 *start* および *end* はスライス表記と同じように解釈され" "ます。" -#: ../../library/stdtypes.rst:3087 ../../library/stdtypes.rst:3192 -#: ../../library/stdtypes.rst:3214 ../../library/stdtypes.rst:3280 -#: ../../library/stdtypes.rst:3293 +#: ../../library/stdtypes.rst:3115 ../../library/stdtypes.rst:3220 +#: ../../library/stdtypes.rst:3242 ../../library/stdtypes.rst:3308 +#: ../../library/stdtypes.rst:3321 msgid "" "The subsequence to search for may be any :term:`bytes-like object` or an " "integer in the range 0 to 255." @@ -5440,7 +5475,7 @@ msgstr "" "検索対象の部分シーケンスは、任意の :term:`bytes-like object` または 0 から " "255 の範囲の整数にできます。" -#: ../../library/stdtypes.rst:3090 +#: ../../library/stdtypes.rst:3118 msgid "" "If *sub* is empty, returns the number of empty slices between characters " "which is the length of the bytes object plus one." @@ -5448,14 +5483,14 @@ msgstr "" "*sub* が空の場合は、文字と文字の間にある空のスライスの数、すなわちbytesオブ" "ジェクトの長さに1を加えたものを返します。" -#: ../../library/stdtypes.rst:3093 ../../library/stdtypes.rst:3204 -#: ../../library/stdtypes.rst:3217 ../../library/stdtypes.rst:3283 -#: ../../library/stdtypes.rst:3296 +#: ../../library/stdtypes.rst:3121 ../../library/stdtypes.rst:3232 +#: ../../library/stdtypes.rst:3245 ../../library/stdtypes.rst:3311 +#: ../../library/stdtypes.rst:3324 msgid "Also accept an integer in the range 0 to 255 as the subsequence." msgstr "" "部分シーケンスとして 0 から 255 の範囲の整数も受け取れるようになりました。" -#: ../../library/stdtypes.rst:3100 +#: ../../library/stdtypes.rst:3128 msgid "" "If the binary data starts with the *prefix* string, return " "``bytes[len(prefix):]``. Otherwise, return a copy of the original binary " @@ -5464,7 +5499,7 @@ msgstr "" "バリナリーデータが文字列 *prefix* で始まる場合、 ``bytes[len(prefix):]`` を" "返します。それ以外の場合、元のバイナリーデータのコピーを返します::" -#: ../../library/stdtypes.rst:3104 +#: ../../library/stdtypes.rst:3132 msgid "" ">>> b'TestHook'.removeprefix(b'Test')\n" "b'Hook'\n" @@ -5472,19 +5507,19 @@ msgid "" "b'BaseTestCase'" msgstr "" -#: ../../library/stdtypes.rst:3109 +#: ../../library/stdtypes.rst:3137 msgid "The *prefix* may be any :term:`bytes-like object`." msgstr "*prefix* は、任意の :term:`bytes-like object` にできます。" -#: ../../library/stdtypes.rst:3113 ../../library/stdtypes.rst:3135 -#: ../../library/stdtypes.rst:3268 ../../library/stdtypes.rst:3361 -#: ../../library/stdtypes.rst:3375 ../../library/stdtypes.rst:3406 -#: ../../library/stdtypes.rst:3420 ../../library/stdtypes.rst:3462 -#: ../../library/stdtypes.rst:3533 ../../library/stdtypes.rst:3551 -#: ../../library/stdtypes.rst:3579 ../../library/stdtypes.rst:3718 -#: ../../library/stdtypes.rst:3773 ../../library/stdtypes.rst:3816 -#: ../../library/stdtypes.rst:3837 ../../library/stdtypes.rst:3859 -#: ../../library/stdtypes.rst:4061 +#: ../../library/stdtypes.rst:3141 ../../library/stdtypes.rst:3163 +#: ../../library/stdtypes.rst:3296 ../../library/stdtypes.rst:3389 +#: ../../library/stdtypes.rst:3403 ../../library/stdtypes.rst:3434 +#: ../../library/stdtypes.rst:3448 ../../library/stdtypes.rst:3490 +#: ../../library/stdtypes.rst:3561 ../../library/stdtypes.rst:3579 +#: ../../library/stdtypes.rst:3607 ../../library/stdtypes.rst:3746 +#: ../../library/stdtypes.rst:3801 ../../library/stdtypes.rst:3844 +#: ../../library/stdtypes.rst:3865 ../../library/stdtypes.rst:3887 +#: ../../library/stdtypes.rst:4089 msgid "" "The bytearray version of this method does *not* operate in place - it always " "produces a new object, even if no changes were made." @@ -5492,7 +5527,7 @@ msgstr "" "bytearray のこのメソッドはインプレースでは動作 *しません* -- 一切変化が無い場" "合でも、常に新しいオブジェクトを生成します。" -#: ../../library/stdtypes.rst:3122 +#: ../../library/stdtypes.rst:3150 msgid "" "If the binary data ends with the *suffix* string and that *suffix* is not " "empty, return ``bytes[:-len(suffix)]``. Otherwise, return a copy of the " @@ -5502,7 +5537,7 @@ msgstr "" "``bytes[:-len(suffix)]`` を返します。それ以外の場合、元のバイナリーデータのコ" "ピーを返します::" -#: ../../library/stdtypes.rst:3126 +#: ../../library/stdtypes.rst:3154 msgid "" ">>> b'MiscTests'.removesuffix(b'Tests')\n" "b'Misc'\n" @@ -5510,15 +5545,15 @@ msgid "" "b'TmpDirMixin'" msgstr "" -#: ../../library/stdtypes.rst:3131 +#: ../../library/stdtypes.rst:3159 msgid "The *suffix* may be any :term:`bytes-like object`." msgstr "*suffix* は、任意の :term:`bytes-like object` にできます。" -#: ../../library/stdtypes.rst:3144 +#: ../../library/stdtypes.rst:3172 msgid "Return the bytes decoded to a :class:`str`." msgstr ":class:`str` にデコードされたbytesを返します。" -#: ../../library/stdtypes.rst:3149 +#: ../../library/stdtypes.rst:3177 msgid "" "*errors* controls how decoding errors are handled. If ``'strict'`` (the " "default), a :exc:`UnicodeError` exception is raised. Other possible values " @@ -5531,7 +5566,7 @@ msgstr "" "register_error` で登録された名前です。詳しくは :ref:`error-handlers` を参照し" "てください。" -#: ../../library/stdtypes.rst:3155 +#: ../../library/stdtypes.rst:3183 msgid "" "For performance reasons, the value of *errors* is not checked for validity " "unless a decoding error actually occurs, :ref:`devmode` is enabled or a :ref:" @@ -5541,7 +5576,7 @@ msgstr "" "実際に発生するか、 :ref:`devmode` が有効になっているか、もしくは :ref:`デバッ" "グビルド ` が使われていない限りチェックされません。" -#: ../../library/stdtypes.rst:3161 +#: ../../library/stdtypes.rst:3189 msgid "" "Passing the *encoding* argument to :class:`str` allows decoding any :term:" "`bytes-like object` directly, without needing to make a temporary :class:`!" @@ -5551,7 +5586,7 @@ msgstr "" "コードすることができます。つまり、一時的な :class:`!bytes` や :class:`!" "bytearray` オブジェクトを作成する必要はありません。" -#: ../../library/stdtypes.rst:3176 +#: ../../library/stdtypes.rst:3204 msgid "" "Return ``True`` if the binary data ends with the specified *suffix*, " "otherwise return ``False``. *suffix* can also be a tuple of suffixes to " @@ -5563,12 +5598,12 @@ msgstr "" "せん。オプションの *start* が指定されている場合、その位置から判定を開始しま" "す。オプションの *end* が指定されている場合、その位置で比較を終了します。" -#: ../../library/stdtypes.rst:3181 +#: ../../library/stdtypes.rst:3209 msgid "The suffix(es) to search for may be any :term:`bytes-like object`." msgstr "" "検索対象の接尾語 (複数も可) は、任意の :term:`bytes-like object` にできます。" -#: ../../library/stdtypes.rst:3187 +#: ../../library/stdtypes.rst:3215 msgid "" "Return the lowest index in the data where the subsequence *sub* is found, " "such that *sub* is contained in the slice ``s[start:end]``. Optional " @@ -5580,7 +5615,7 @@ msgstr "" "はスライス表記と同様に解釈されます。 *sub* が見つからなかった場合、 ``-1`` を" "返します。" -#: ../../library/stdtypes.rst:3197 +#: ../../library/stdtypes.rst:3225 msgid "" "The :meth:`~bytes.find` method should be used only if you need to know the " "position of *sub*. To check if *sub* is a substring or not, use the :" @@ -5590,13 +5625,13 @@ msgstr "" "す。 *sub* が部分文字列 (訳注: おそらく原文の誤り、正しくは部分シーケンス) で" "あるかどうかのみを調べるには、 :keyword:`in` 演算子を使ってください::" -#: ../../library/stdtypes.rst:3201 +#: ../../library/stdtypes.rst:3229 msgid "" ">>> b'Py' in b'Python'\n" "True" msgstr "" -#: ../../library/stdtypes.rst:3211 +#: ../../library/stdtypes.rst:3239 msgid "" "Like :meth:`~bytes.find`, but raise :exc:`ValueError` when the subsequence " "is not found." @@ -5604,7 +5639,7 @@ msgstr "" ":meth:`~bytes.find` と同様ですが、部分シーケンスが見つからなかった場合 :exc:" "`ValueError` を送出します。" -#: ../../library/stdtypes.rst:3224 +#: ../../library/stdtypes.rst:3252 msgid "" "Return a bytes or bytearray object which is the concatenation of the binary " "data sequences in *iterable*. A :exc:`TypeError` will be raised if there " @@ -5619,7 +5654,7 @@ msgstr "" "が送出されます。なお要素間のセパレータは、このメソッドを提供する bytes また" "は bytearray オブジェクトとなります。" -#: ../../library/stdtypes.rst:3235 +#: ../../library/stdtypes.rst:3263 msgid "" "This static method returns a translation table usable for :meth:`bytes." "translate` that will map each character in *from* into the character at the " @@ -5631,7 +5666,7 @@ msgstr "" "マッピングします。 *from* と *to* は両方とも同じ長さの :term:`bytes-like " "objects ` でなければなりません。" -#: ../../library/stdtypes.rst:3246 +#: ../../library/stdtypes.rst:3274 msgid "" "Split the sequence at the first occurrence of *sep*, and return a 3-tuple " "containing the part before the separator, the separator itself or its " @@ -5645,12 +5680,12 @@ msgstr "" "れば、タプルには元のシーケンスのコピーと、その後ろに二つの空の bytes または " "bytearray オブジェクトが入ります。" -#: ../../library/stdtypes.rst:3253 ../../library/stdtypes.rst:3310 +#: ../../library/stdtypes.rst:3281 ../../library/stdtypes.rst:3338 msgid "The separator to search for may be any :term:`bytes-like object`." msgstr "" "検索する区切りとしては、任意の :term:`bytes-like object` を指定できます。" -#: ../../library/stdtypes.rst:3259 +#: ../../library/stdtypes.rst:3287 msgid "" "Return a copy of the sequence with all occurrences of subsequence *old* " "replaced by *new*. If the optional argument *count* is given, only the " @@ -5660,7 +5695,7 @@ msgstr "" "引数 *count* が与えられている場合、先頭から *count* 個の *old* だけを置換しま" "す。" -#: ../../library/stdtypes.rst:3263 +#: ../../library/stdtypes.rst:3291 msgid "" "The subsequence to search for and its replacement may be any :term:`bytes-" "like object`." @@ -5668,7 +5703,7 @@ msgstr "" "検索する部分シーケンスおよび置換後の部分シーケンスとしては、任意の :term:" "`bytes-like object` を指定できます。" -#: ../../library/stdtypes.rst:3275 +#: ../../library/stdtypes.rst:3303 msgid "" "Return the highest index in the sequence where the subsequence *sub* is " "found, such that *sub* is contained within ``s[start:end]``. Optional " @@ -5679,7 +5714,7 @@ msgstr "" "デックスを返します。オプション引数 *start* および *end* はスライス表記と同様" "に解釈されます。 *sub* が見つからなかった場合 ``-1`` を返します。" -#: ../../library/stdtypes.rst:3290 +#: ../../library/stdtypes.rst:3318 msgid "" "Like :meth:`~bytes.rfind` but raises :exc:`ValueError` when the subsequence " "*sub* is not found." @@ -5687,7 +5722,7 @@ msgstr "" ":meth:`~bytes.rfind` と同様ですが、部分シーケンス *sub* が見つからなかった場" "合 :exc:`ValueError` を送出します。" -#: ../../library/stdtypes.rst:3303 +#: ../../library/stdtypes.rst:3331 msgid "" "Split the sequence at the last occurrence of *sep*, and return a 3-tuple " "containing the part before the separator, the separator itself or its " @@ -5701,7 +5736,7 @@ msgstr "" "ルには二つの空の bytes または bytearray オブジェクトと、その後ろに元のシーケ" "ンスのコピーが入ります。" -#: ../../library/stdtypes.rst:3316 +#: ../../library/stdtypes.rst:3344 msgid "" "Return ``True`` if the binary data starts with the specified *prefix*, " "otherwise return ``False``. *prefix* can also be a tuple of prefixes to " @@ -5713,12 +5748,12 @@ msgstr "" "せん。オプションの *start* が指定されている場合、その位置から判定を開始しま" "す。オプションの *end* が指定されている場合、その位置で比較を終了します。" -#: ../../library/stdtypes.rst:3321 +#: ../../library/stdtypes.rst:3349 msgid "The prefix(es) to search for may be any :term:`bytes-like object`." msgstr "" "検索対象の接頭語 (複数も可) は、任意の :term:`bytes-like object` にできます。" -#: ../../library/stdtypes.rst:3327 +#: ../../library/stdtypes.rst:3355 msgid "" "Return a copy of the bytes or bytearray object where all bytes occurring in " "the optional argument *delete* are removed, and the remaining bytes have " @@ -5730,30 +5765,30 @@ msgstr "" "を返します。変換テーブルは長さ 256 のバイト列オブジェクトでなければなりませ" "ん。" -#: ../../library/stdtypes.rst:3332 +#: ../../library/stdtypes.rst:3360 msgid "" "You can use the :func:`bytes.maketrans` method to create a translation table." msgstr "" "変換テーブルの作成に、 :func:`bytes.maketrans` メソッドを使うこともできます。" -#: ../../library/stdtypes.rst:3335 +#: ../../library/stdtypes.rst:3363 msgid "" "Set the *table* argument to ``None`` for translations that only delete " "characters::" msgstr "" "文字を削除するだけの変換には、 *table* 引数を ``None`` に設定してください::" -#: ../../library/stdtypes.rst:3338 +#: ../../library/stdtypes.rst:3366 msgid "" ">>> b'read this short text'.translate(None, b'aeiou')\n" "b'rd ths shrt txt'" msgstr "" -#: ../../library/stdtypes.rst:3341 +#: ../../library/stdtypes.rst:3369 msgid "*delete* is now supported as a keyword argument." msgstr "*delete* はキーワード引数として指定可能になりました。" -#: ../../library/stdtypes.rst:3345 +#: ../../library/stdtypes.rst:3373 msgid "" "The following methods on bytes and bytearray objects have default behaviours " "that assume the use of ASCII compatible binary formats, but can still be " @@ -5767,7 +5802,7 @@ msgstr "" "のメソッドはすべてインプレースで動作 *せず* 、新しいオブジェクトを生成しま" "す。" -#: ../../library/stdtypes.rst:3354 +#: ../../library/stdtypes.rst:3382 msgid "" "Return a copy of the object centered in a sequence of length *width*. " "Padding is done using the specified *fillbyte* (default is an ASCII space). " @@ -5779,7 +5814,7 @@ msgstr "" "class:`bytes` オブジェクトの場合、 *width* が ``len(s)`` 以下なら元のシーケン" "スが返されます。" -#: ../../library/stdtypes.rst:3368 +#: ../../library/stdtypes.rst:3396 msgid "" "Return a copy of the object left justified in a sequence of length *width*. " "Padding is done using the specified *fillbyte* (default is an ASCII space). " @@ -5791,7 +5826,7 @@ msgstr "" "class:`bytes` オブジェクトの場合、 *width* が ``len(s)`` 以下なら元のシーケン" "スが返されます。" -#: ../../library/stdtypes.rst:3382 +#: ../../library/stdtypes.rst:3410 msgid "" "Return a copy of the sequence with specified leading bytes removed. The " "*chars* argument is a binary sequence specifying the set of byte values to " @@ -5807,7 +5842,7 @@ msgstr "" "`bytearray.isspace` を参照) が除去されます。なお *chars* 引数と一致する接頭辞" "が除去されるのではなく、それに含まれるバイトの組み合わせ全てが除去されます::" -#: ../../library/stdtypes.rst:3389 +#: ../../library/stdtypes.rst:3417 msgid "" ">>> b' spacious '.lstrip()\n" "b'spacious '\n" @@ -5815,7 +5850,7 @@ msgid "" "b'example.com'" msgstr "" -#: ../../library/stdtypes.rst:3394 +#: ../../library/stdtypes.rst:3422 msgid "" "The binary sequence of byte values to remove may be any :term:`bytes-like " "object`. See :meth:`~bytes.removeprefix` for a method that will remove a " @@ -5826,7 +5861,7 @@ msgstr "" "した文字列そのものを接頭辞として削除するメソッドについては、 :meth:`~bytes." "removeprefix` を参照してください。使用例::" -#: ../../library/stdtypes.rst:3399 +#: ../../library/stdtypes.rst:3427 msgid "" ">>> b'Arthur: three!'.lstrip(b'Arthur: ')\n" "b'ee!'\n" @@ -5834,7 +5869,7 @@ msgid "" "b'three!'" msgstr "" -#: ../../library/stdtypes.rst:3413 +#: ../../library/stdtypes.rst:3441 msgid "" "Return a copy of the object right justified in a sequence of length *width*. " "Padding is done using the specified *fillbyte* (default is an ASCII space). " @@ -5846,7 +5881,7 @@ msgstr "" "class:`bytes` オブジェクトの場合、 *width* が ``len(s)`` 以下なら元のシーケン" "スが返されます。" -#: ../../library/stdtypes.rst:3427 +#: ../../library/stdtypes.rst:3455 msgid "" "Split the binary sequence into subsequences of the same type, using *sep* as " "the delimiter string. If *maxsplit* is given, at most *maxsplit* splits are " @@ -5861,7 +5896,7 @@ msgstr "" "れる部分シーケンスすべてが区切りとなります。右から分割していくことを除け" "ば、 :meth:`rsplit` は後ほど詳しく述べる :meth:`split` と同様に振る舞います。" -#: ../../library/stdtypes.rst:3438 +#: ../../library/stdtypes.rst:3466 msgid "" "Return a copy of the sequence with specified trailing bytes removed. The " "*chars* argument is a binary sequence specifying the set of byte values to " @@ -5877,7 +5912,7 @@ msgstr "" "`bytearray.isspace` を参照) が除去されます。なお *chars* 引数と一致する接尾辞" "が除去されるのではなく、それに含まれるバイトの組み合わせ全てが除去されます::" -#: ../../library/stdtypes.rst:3445 +#: ../../library/stdtypes.rst:3473 msgid "" ">>> b' spacious '.rstrip()\n" "b' spacious'\n" @@ -5885,7 +5920,7 @@ msgid "" "b'mississ'" msgstr "" -#: ../../library/stdtypes.rst:3450 +#: ../../library/stdtypes.rst:3478 msgid "" "The binary sequence of byte values to remove may be any :term:`bytes-like " "object`. See :meth:`~bytes.removesuffix` for a method that will remove a " @@ -5896,7 +5931,7 @@ msgstr "" "した文字列そのものを接尾辞として削除するメソッドについては、 :meth:`~bytes." "removesuffix` を参照してください。使用例::" -#: ../../library/stdtypes.rst:3455 +#: ../../library/stdtypes.rst:3483 msgid "" ">>> b'Monty Python'.rstrip(b' Python')\n" "b'M'\n" @@ -5904,7 +5939,7 @@ msgid "" "b'Monty'" msgstr "" -#: ../../library/stdtypes.rst:3469 +#: ../../library/stdtypes.rst:3497 msgid "" "Split the binary sequence into subsequences of the same type, using *sep* as " "the delimiter string. If *maxsplit* is given and non-negative, at most " @@ -5918,7 +5953,7 @@ msgstr "" "す)。 *maxsplit* が指定されていないか ``-1`` のとき、分割の回数に制限はありま" "せん (可能なだけ分割されます)。" -#: ../../library/stdtypes.rst:3475 +#: ../../library/stdtypes.rst:3503 msgid "" "If *sep* is given, consecutive delimiters are not grouped together and are " "deemed to delimit empty subsequences (for example, ``b'1,,2'.split(b',')`` " @@ -5935,7 +5970,7 @@ msgstr "" "によって ``[b'']`` または ``[bytearray(b'')]`` が返ります。引数 *sep* には、" "あらゆる :term:`bytes-like object` を指定できます。" -#: ../../library/stdtypes.rst:3485 +#: ../../library/stdtypes.rst:3513 msgid "" ">>> b'1,2,3'.split(b',')\n" "[b'1', b'2', b'3']\n" @@ -5947,7 +5982,7 @@ msgid "" "[b'1', b'2', b'3<4']" msgstr "" -#: ../../library/stdtypes.rst:3494 +#: ../../library/stdtypes.rst:3522 msgid "" "If *sep* is not specified or is ``None``, a different splitting algorithm is " "applied: runs of consecutive ASCII whitespace are regarded as a single " @@ -5962,7 +5997,7 @@ msgstr "" "がって区切りを指定せずに空のシーケンスや ASCII 空白文字だけのシーケンスを分割" "すると、 ``[]`` が返されます。" -#: ../../library/stdtypes.rst:3504 +#: ../../library/stdtypes.rst:3532 msgid "" ">>> b'1 2 3'.split()\n" "[b'1', b'2', b'3']\n" @@ -5972,7 +6007,7 @@ msgid "" "[b'1', b'2', b'3']" msgstr "" -#: ../../library/stdtypes.rst:3515 +#: ../../library/stdtypes.rst:3543 msgid "" "Return a copy of the sequence with specified leading and trailing bytes " "removed. The *chars* argument is a binary sequence specifying the set of " @@ -5989,7 +6024,7 @@ msgstr "" "する接頭辞および接尾辞が除去されるのではなく、それに含まれるバイトの組み合わ" "せ全てが除去されます::" -#: ../../library/stdtypes.rst:3523 +#: ../../library/stdtypes.rst:3551 msgid "" ">>> b' spacious '.strip()\n" "b'spacious'\n" @@ -5997,7 +6032,7 @@ msgid "" "b'example'" msgstr "" -#: ../../library/stdtypes.rst:3528 +#: ../../library/stdtypes.rst:3556 msgid "" "The binary sequence of byte values to remove may be any :term:`bytes-like " "object`." @@ -6005,7 +6040,7 @@ msgstr "" "除去対象のバイト値を含むバイナリシーケンスには、任意の :term:`bytes-like " "object` を指定できます。" -#: ../../library/stdtypes.rst:3537 +#: ../../library/stdtypes.rst:3565 msgid "" "The following methods on bytes and bytearray objects assume the use of ASCII " "compatible binary formats and should not be applied to arbitrary binary " @@ -6017,7 +6052,7 @@ msgstr "" "て使用すべきではありません。なお、このセクションで紹介する bytearray のメソッ" "ドはすべてインプレースで動作 *せず* 、新しいオブジェクトを生成します。" -#: ../../library/stdtypes.rst:3545 +#: ../../library/stdtypes.rst:3573 msgid "" "Return a copy of the sequence with each byte interpreted as an ASCII " "character, and the first byte capitalized and the rest lowercased. Non-ASCII " @@ -6027,7 +6062,7 @@ msgstr "" "シーケンスのコピーを返します。 ASCII 文字と解釈できないバイト値は、変更されま" "せん。" -#: ../../library/stdtypes.rst:3558 +#: ../../library/stdtypes.rst:3586 msgid "" "Return a copy of the sequence where all ASCII tab characters are replaced by " "one or more ASCII spaces, depending on the current column and the given tab " @@ -6055,7 +6090,7 @@ msgstr "" "ト値の表示のされ方(訳注: 全角、半角など)に関わらず現桁位置を 1 つ増加させま" "す::" -#: ../../library/stdtypes.rst:3572 +#: ../../library/stdtypes.rst:3600 msgid "" ">>> b'01\\t012\\t0123\\t01234'.expandtabs()\n" "b'01 012 0123 01234'\n" @@ -6063,7 +6098,7 @@ msgid "" "b'01 012 0123 01234'" msgstr "" -#: ../../library/stdtypes.rst:3586 +#: ../../library/stdtypes.rst:3614 msgid "" "Return ``True`` if all bytes in the sequence are alphabetical ASCII " "characters or ASCII decimal digits and the sequence is not empty, ``False`` " @@ -6077,7 +6112,7 @@ msgstr "" "``b'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ'`` に含まれるバイト" "値です。 ASCII 文字の数字とは ``b'0123456789'`` に含まれるバイト値です。" -#: ../../library/stdtypes.rst:3594 +#: ../../library/stdtypes.rst:3622 msgid "" ">>> b'ABCabc1'.isalnum()\n" "True\n" @@ -6085,7 +6120,7 @@ msgid "" "False" msgstr "" -#: ../../library/stdtypes.rst:3603 +#: ../../library/stdtypes.rst:3631 msgid "" "Return ``True`` if all bytes in the sequence are alphabetic ASCII characters " "and the sequence is not empty, ``False`` otherwise. Alphabetic ASCII " @@ -6098,7 +6133,7 @@ msgstr "" "``b'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ'`` に含まれるバイト" "値です。" -#: ../../library/stdtypes.rst:3610 +#: ../../library/stdtypes.rst:3638 msgid "" ">>> b'ABCabc'.isalpha()\n" "True\n" @@ -6106,7 +6141,7 @@ msgid "" "False" msgstr "" -#: ../../library/stdtypes.rst:3619 +#: ../../library/stdtypes.rst:3647 msgid "" "Return ``True`` if the sequence is empty or all bytes in the sequence are " "ASCII, ``False`` otherwise. ASCII bytes are in the range 0-0x7F." @@ -6115,7 +6150,7 @@ msgstr "" "``True`` を、それ以外の場合に ``False`` を返します。\n" "ASCII バイトは 0-0x7F の範囲にあります。" -#: ../../library/stdtypes.rst:3629 +#: ../../library/stdtypes.rst:3657 msgid "" "Return ``True`` if all bytes in the sequence are ASCII decimal digits and " "the sequence is not empty, ``False`` otherwise. ASCII decimal digits are " @@ -6125,7 +6160,7 @@ msgstr "" "``True`` を、そうでなければ ``False`` を返します。ここでの ASCII 文字の数字と" "は ``b'0123456789'`` に含まれるバイト値です。" -#: ../../library/stdtypes.rst:3635 +#: ../../library/stdtypes.rst:3663 msgid "" ">>> b'1234'.isdigit()\n" "True\n" @@ -6133,7 +6168,7 @@ msgid "" "False" msgstr "" -#: ../../library/stdtypes.rst:3644 +#: ../../library/stdtypes.rst:3672 msgid "" "Return ``True`` if there is at least one lowercase ASCII character in the " "sequence and no uppercase ASCII characters, ``False`` otherwise." @@ -6142,7 +6177,7 @@ msgstr "" "ファベットの ASCII 文字が一つも無い場合に ``True`` を返します。そうでなけれ" "ば ``False`` を返します。" -#: ../../library/stdtypes.rst:3649 +#: ../../library/stdtypes.rst:3677 msgid "" ">>> b'hello world'.islower()\n" "True\n" @@ -6150,9 +6185,9 @@ msgid "" "False" msgstr "" -#: ../../library/stdtypes.rst:3654 ../../library/stdtypes.rst:3696 -#: ../../library/stdtypes.rst:3712 ../../library/stdtypes.rst:3762 -#: ../../library/stdtypes.rst:3831 +#: ../../library/stdtypes.rst:3682 ../../library/stdtypes.rst:3724 +#: ../../library/stdtypes.rst:3740 ../../library/stdtypes.rst:3790 +#: ../../library/stdtypes.rst:3859 msgid "" "Lowercase ASCII characters are those byte values in the sequence " "``b'abcdefghijklmnopqrstuvwxyz'``. Uppercase ASCII characters are those byte " @@ -6162,7 +6197,7 @@ msgstr "" "バイト値です。また大文字の ASCII 文字とは ``b'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`` " "に含まれるバイト値です。" -#: ../../library/stdtypes.rst:3662 +#: ../../library/stdtypes.rst:3690 msgid "" "Return ``True`` if all bytes in the sequence are ASCII whitespace and the " "sequence is not empty, ``False`` otherwise. ASCII whitespace characters are " @@ -6174,7 +6209,7 @@ msgstr "" "シーケンス ``b' \\t\\n\\r\\x0b\\f'`` に含まれるバイト値です (半角スペース、タ" "ブ、ラインフィード、キャリッジリターン、垂直タブ、フォームフィード) 。" -#: ../../library/stdtypes.rst:3671 +#: ../../library/stdtypes.rst:3699 msgid "" "Return ``True`` if the sequence is ASCII titlecase and the sequence is not " "empty, ``False`` otherwise. See :meth:`bytes.title` for more details on the " @@ -6184,7 +6219,7 @@ msgstr "" "``True`` を、そうでなければ ``False`` を返します。「タイトルケース文字列」の" "定義については :meth:`bytes.title` を参照してください。" -#: ../../library/stdtypes.rst:3677 +#: ../../library/stdtypes.rst:3705 msgid "" ">>> b'Hello World'.istitle()\n" "True\n" @@ -6192,7 +6227,7 @@ msgid "" "False" msgstr "" -#: ../../library/stdtypes.rst:3686 +#: ../../library/stdtypes.rst:3714 msgid "" "Return ``True`` if there is at least one uppercase alphabetic ASCII " "character in the sequence and no lowercase ASCII characters, ``False`` " @@ -6202,7 +6237,7 @@ msgstr "" "ファベットの ASCII 文字が一つも無い場合に ``True`` を返します。そうでなけれ" "ば ``False`` を返します。" -#: ../../library/stdtypes.rst:3691 +#: ../../library/stdtypes.rst:3719 msgid "" ">>> b'HELLO WORLD'.isupper()\n" "True\n" @@ -6210,7 +6245,7 @@ msgid "" "False" msgstr "" -#: ../../library/stdtypes.rst:3704 +#: ../../library/stdtypes.rst:3732 msgid "" "Return a copy of the sequence with all the uppercase ASCII characters " "converted to their corresponding lowercase counterpart." @@ -6218,13 +6253,13 @@ msgstr "" "シーケンスに含まれる大文字アルファベットの ASCII 文字を全て小文字アルファベッ" "トに変換したシーケンスのコピーを返します。" -#: ../../library/stdtypes.rst:3709 +#: ../../library/stdtypes.rst:3737 msgid "" ">>> b'Hello World'.lower()\n" "b'hello world'" msgstr "" -#: ../../library/stdtypes.rst:3729 +#: ../../library/stdtypes.rst:3757 msgid "" "Return a list of the lines in the binary sequence, breaking at ASCII line " "boundaries. This method uses the :term:`universal newlines` approach to " @@ -6236,7 +6271,7 @@ msgstr "" "*keepends* 引数に真を与えた場合を除き、改行コードは結果のリストに含まれませ" "ん。" -#: ../../library/stdtypes.rst:3736 +#: ../../library/stdtypes.rst:3764 msgid "" ">>> b'ab c\\n\\nde fg\\rkl\\r\\n'.splitlines()\n" "[b'ab c', b'', b'de fg', b'kl']\n" @@ -6244,7 +6279,7 @@ msgid "" "[b'ab c\\n', b'\\n', b'de fg\\r', b'kl\\r\\n']" msgstr "" -#: ../../library/stdtypes.rst:3741 +#: ../../library/stdtypes.rst:3769 msgid "" "Unlike :meth:`~bytes.split` when a delimiter string *sep* is given, this " "method returns an empty list for the empty string, and a terminal line break " @@ -6254,7 +6289,7 @@ msgstr "" "び出すと空のリストを返します。またシーケンス末尾に改行コードがある場合、(訳" "註: その後ろに空行があるとは判断せず)余分な行を生成することはありません::" -#: ../../library/stdtypes.rst:3745 +#: ../../library/stdtypes.rst:3773 msgid "" ">>> b\"\".split(b'\\n'), b\"Two lines\\n\".split(b'\\n')\n" "([b''], [b'Two lines', b''])\n" @@ -6262,7 +6297,7 @@ msgid "" "([], [b'One line'])" msgstr "" -#: ../../library/stdtypes.rst:3754 +#: ../../library/stdtypes.rst:3782 msgid "" "Return a copy of the sequence with all the lowercase ASCII characters " "converted to their corresponding uppercase counterpart and vice-versa." @@ -6271,13 +6306,13 @@ msgstr "" "トに変換し、さらに大文字アルファベットを同様に小文字アルファベットに変換した" "シーケンスのコピーを返します。" -#: ../../library/stdtypes.rst:3759 +#: ../../library/stdtypes.rst:3787 msgid "" ">>> b'Hello World'.swapcase()\n" "b'hELLO wORLD'" msgstr "" -#: ../../library/stdtypes.rst:3766 +#: ../../library/stdtypes.rst:3794 msgid "" "Unlike :func:`str.swapcase`, it is always the case that ``bin.swapcase()." "swapcase() == bin`` for the binary versions. Case conversions are " @@ -6285,7 +6320,7 @@ msgid "" "Unicode code points." msgstr "" -#: ../../library/stdtypes.rst:3780 +#: ../../library/stdtypes.rst:3808 msgid "" "Return a titlecased version of the binary sequence where words start with an " "uppercase ASCII character and the remaining characters are lowercase. " @@ -6296,13 +6331,13 @@ msgstr "" "なっているシーケンスが返ります。大文字小文字の区別が無いバイト値については変" "更されずそのままになります。" -#: ../../library/stdtypes.rst:3786 +#: ../../library/stdtypes.rst:3814 msgid "" ">>> b'Hello world'.title()\n" "b'Hello World'" msgstr "" -#: ../../library/stdtypes.rst:3789 +#: ../../library/stdtypes.rst:3817 msgid "" "Lowercase ASCII characters are those byte values in the sequence " "``b'abcdefghijklmnopqrstuvwxyz'``. Uppercase ASCII characters are those byte " @@ -6314,18 +6349,18 @@ msgstr "" "に含まれるバイト値です。その他のバイト値については、大文字小文字の区別はあり" "ません。" -#: ../../library/stdtypes.rst:3799 +#: ../../library/stdtypes.rst:3827 msgid "" ">>> b\"they're bill's friends from the UK\".title()\n" "b\"They'Re Bill'S Friends From The Uk\"" msgstr "" -#: ../../library/stdtypes.rst:3802 +#: ../../library/stdtypes.rst:3830 msgid "" "A workaround for apostrophes can be constructed using regular expressions::" msgstr "正規表現を使うことでアポストロフィに対応できます::" -#: ../../library/stdtypes.rst:3804 +#: ../../library/stdtypes.rst:3832 msgid "" ">>> import re\n" ">>> def titlecase(s):\n" @@ -6338,7 +6373,7 @@ msgid "" "b\"They're Bill's Friends.\"" msgstr "" -#: ../../library/stdtypes.rst:3823 +#: ../../library/stdtypes.rst:3851 msgid "" "Return a copy of the sequence with all the lowercase ASCII characters " "converted to their corresponding uppercase counterpart." @@ -6346,13 +6381,13 @@ msgstr "" "シーケンスに含まれる小文字アルファベットの ASCII 文字を全て大文字アルファベッ" "トに変換したシーケンスのコピーを返します。" -#: ../../library/stdtypes.rst:3828 +#: ../../library/stdtypes.rst:3856 msgid "" ">>> b'Hello World'.upper()\n" "b'HELLO WORLD'" msgstr "" -#: ../../library/stdtypes.rst:3844 +#: ../../library/stdtypes.rst:3872 msgid "" "Return a copy of the sequence left filled with ASCII ``b'0'`` digits to make " "a sequence of length *width*. A leading sign prefix (``b'+'``/ ``b'-'``) is " @@ -6365,7 +6400,7 @@ msgstr "" "はなく *後* に挿入されます。 :class:`bytes` オブジェクトの場合、 *width* が " "``len(seq)`` 以下であれば元のシーケンスが返ります。" -#: ../../library/stdtypes.rst:3852 +#: ../../library/stdtypes.rst:3880 msgid "" ">>> b\"42\".zfill(5)\n" "b'00042'\n" @@ -6373,11 +6408,11 @@ msgid "" "b'-0042'" msgstr "" -#: ../../library/stdtypes.rst:3866 +#: ../../library/stdtypes.rst:3894 msgid "``printf``-style Bytes Formatting" msgstr "``printf`` 形式での bytes の書式化" -#: ../../library/stdtypes.rst:3883 +#: ../../library/stdtypes.rst:3911 msgid "" "The formatting operations described here exhibit a variety of quirks that " "lead to a number of common errors (such as failing to display tuples and " @@ -6388,7 +6423,7 @@ msgstr "" "ルや辞書を正しく表示できないなど)。もし表示する値がタプルや辞書かもしれない場" "合、それをタプルに包むようにしてください。" -#: ../../library/stdtypes.rst:3888 +#: ../../library/stdtypes.rst:3916 msgid "" "Bytes objects (``bytes``/``bytearray``) have one unique built-in operation: " "the ``%`` operator (modulo). This is also known as the bytes *formatting* or " @@ -6403,7 +6438,7 @@ msgstr "" "*format* 中の ``%`` 変換指定は *values* 中のゼロ個またはそれ以上の要素で置換" "されます。この動作は C 言語における :c:func:`sprintf` に似ています。" -#: ../../library/stdtypes.rst:3895 +#: ../../library/stdtypes.rst:3923 msgid "" "If *format* requires a single argument, *values* may be a single non-tuple " "object. [5]_ Otherwise, *values* must be a tuple with exactly the number of " @@ -6416,7 +6451,7 @@ msgstr "" "プルか、単一のマッピング型のオブジェクト (たとえば辞書) でなければなりませ" "ん。" -#: ../../library/stdtypes.rst:3929 +#: ../../library/stdtypes.rst:3957 msgid "" "When the right argument is a dictionary (or other mapping type), then the " "formats in the bytes object *must* include a parenthesised mapping key into " @@ -6428,17 +6463,17 @@ msgstr "" "``'%'`` の直後に書いたものが含まれていなければ *なりません* 。マップキーは書" "式化したい値をマッピングから選び出します。例えば:" -#: ../../library/stdtypes.rst:4003 +#: ../../library/stdtypes.rst:4031 msgid "Single byte (accepts integer or single byte objects)." msgstr "" "1 バイト (整数または要素 1 つの ``bytes``/``bytearray`` オブジェクトを受理し" "ます)" -#: ../../library/stdtypes.rst:4006 +#: ../../library/stdtypes.rst:4034 msgid "``'b'``" msgstr "``'b'``" -#: ../../library/stdtypes.rst:4006 +#: ../../library/stdtypes.rst:4034 msgid "" "Bytes (any object that follows the :ref:`buffer protocol ` or " "has :meth:`~object.__bytes__`)." @@ -6446,7 +6481,7 @@ msgstr "" "バイナリシーケンス (:ref:`buffer protocol ` をサポートする" "か、 :meth:`~object.__bytes__` メソッドがあるオブジェクト)" -#: ../../library/stdtypes.rst:4010 +#: ../../library/stdtypes.rst:4038 msgid "" "``'s'`` is an alias for ``'b'`` and should only be used for Python2/3 code " "bases." @@ -6454,7 +6489,7 @@ msgstr "" "``'s'`` は ``'b'`` の別名です。Python 2/3 の両方を対象としたコードでのみ使用" "すべきです。" -#: ../../library/stdtypes.rst:4013 +#: ../../library/stdtypes.rst:4041 msgid "" "Bytes (converts any Python object using ``repr(obj).encode('ascii', " "'backslashreplace')``)." @@ -6462,7 +6497,7 @@ msgstr "" "バイナリシーケンス (Python オブジェクトを ``repr(obj).encode('ascii', " "'backslashreplace')`` で変換します)。" -#: ../../library/stdtypes.rst:4016 +#: ../../library/stdtypes.rst:4044 msgid "" "``'r'`` is an alias for ``'a'`` and should only be used for Python2/3 code " "bases." @@ -6470,27 +6505,27 @@ msgstr "" "``'r'`` は ``'a'`` の別名です。Python 2/3 の両方を対象としたコードでのみ使用" "すべきです。" -#: ../../library/stdtypes.rst:4016 +#: ../../library/stdtypes.rst:4044 msgid "\\(7)" msgstr "\\(7)" -#: ../../library/stdtypes.rst:4051 +#: ../../library/stdtypes.rst:4079 msgid "``b'%s'`` is deprecated, but will not be removed during the 3.x series." msgstr "``b'%s'`` は非推奨ですが、3.x 系では削除されません。" -#: ../../library/stdtypes.rst:4054 +#: ../../library/stdtypes.rst:4082 msgid "``b'%r'`` is deprecated, but will not be removed during the 3.x series." msgstr "``b'%r'`` は非推奨ですが、3.x 系では削除されません。" -#: ../../library/stdtypes.rst:4066 +#: ../../library/stdtypes.rst:4094 msgid ":pep:`461` - Adding % formatting to bytes and bytearray" msgstr ":pep:`461` - bytes と bytearray への % 書式化の追加" -#: ../../library/stdtypes.rst:4073 +#: ../../library/stdtypes.rst:4101 msgid "Memory Views" msgstr "メモリビュー" -#: ../../library/stdtypes.rst:4075 +#: ../../library/stdtypes.rst:4103 msgid "" ":class:`memoryview` objects allow Python code to access the internal data of " "an object that supports the :ref:`buffer protocol ` without " @@ -6500,7 +6535,7 @@ msgstr "" "` をサポートするオブジェクトの内部データへ、コピーすることなく" "アクセスすることを可能にします。" -#: ../../library/stdtypes.rst:4081 +#: ../../library/stdtypes.rst:4109 msgid "" "Create a :class:`memoryview` that references *object*. *object* must " "support the buffer protocol. Built-in objects that support the buffer " @@ -6511,7 +6546,7 @@ msgstr "" "組み込みオブジェクトには、 :class:`bytes` 、 :class:`bytearray` などがありま" "す。" -#: ../../library/stdtypes.rst:4085 +#: ../../library/stdtypes.rst:4113 msgid "" "A :class:`memoryview` has the notion of an *element*, which is the atomic " "memory unit handled by the originating *object*. For many simple types such " @@ -6523,7 +6558,7 @@ msgstr "" "`bytearray` では、要素は単バイトになりますが、他の :class:`array.array` 等の" "型では、要素はより大きくなりえます。" -#: ../../library/stdtypes.rst:4090 +#: ../../library/stdtypes.rst:4118 msgid "" "``len(view)`` is equal to the length of :class:`~memoryview.tolist`, which " "is the nested list representation of the view. If ``view.ndim = 1``, this is " @@ -6533,7 +6568,7 @@ msgstr "" "tolist` の長さと等しくなります。ビューが ``view.ndim = 1`` を満たす場合は" "ビューの要素数とも等しくなります。" -#: ../../library/stdtypes.rst:4094 +#: ../../library/stdtypes.rst:4122 msgid "" "If ``view.ndim == 0``, ``len(view)`` now raises :exc:`TypeError` instead of " "returning 1." @@ -6541,13 +6576,13 @@ msgstr "" "``view.ndim == 0`` で ``len(view)`` の場合、1の代わりに :exc:`TypeError` を返" "すようになりました。" -#: ../../library/stdtypes.rst:4097 +#: ../../library/stdtypes.rst:4125 msgid "" "The :class:`~memoryview.itemsize` attribute will give you the number of " "bytes in a single element." msgstr ":class:`~memoryview.itemsize` 属性は各要素のバイト数を与えます。" -#: ../../library/stdtypes.rst:4100 +#: ../../library/stdtypes.rst:4128 msgid "" "A :class:`memoryview` supports slicing and indexing to expose its data. One-" "dimensional slicing will result in a subview::" @@ -6555,7 +6590,7 @@ msgstr "" ":class:`memoryview` はスライスおよびインデックス指定で内容を取得できます。一" "次元のスライスは部分ビューになります::" -#: ../../library/stdtypes.rst:4103 +#: ../../library/stdtypes.rst:4131 msgid "" ">>> v = memoryview(b'abcefg')\n" ">>> v[1]\n" @@ -6568,7 +6603,7 @@ msgid "" "b'bce'" msgstr "" -#: ../../library/stdtypes.rst:4113 +#: ../../library/stdtypes.rst:4141 msgid "" "If :class:`~memoryview.format` is one of the native format specifiers from " "the :mod:`struct` module, indexing with an integer or a tuple of integers is " @@ -6586,11 +6621,11 @@ msgstr "" "*ndim* 個の整数からなるタプルでインデックス指定できます。ゼロ次元のメモリ" "ビューでは、空のタプルでインデックス指定できます。" -#: ../../library/stdtypes.rst:4122 +#: ../../library/stdtypes.rst:4150 msgid "Here is an example with a non-byte format::" msgstr ":class:`~memoryview.format` が単バイト単位ではない例を示します::" -#: ../../library/stdtypes.rst:4124 +#: ../../library/stdtypes.rst:4152 msgid "" ">>> import array\n" ">>> a = array.array('l', [-11111111, 22222222, -33333333, 44444444])\n" @@ -6603,7 +6638,7 @@ msgid "" "[-11111111, -33333333]" msgstr "" -#: ../../library/stdtypes.rst:4134 +#: ../../library/stdtypes.rst:4162 msgid "" "If the underlying object is writable, the memoryview supports one-" "dimensional slice assignment. Resizing is not allowed::" @@ -6611,7 +6646,7 @@ msgstr "" "メモリビューの参照しているオブジェクトが書き込み可能であれば、一次元スライス" "での代入が可能です。ただしサイズの変更はできません::" -#: ../../library/stdtypes.rst:4137 +#: ../../library/stdtypes.rst:4165 msgid "" ">>> data = bytearray(b'abcefg')\n" ">>> v = memoryview(data)\n" @@ -6633,7 +6668,7 @@ msgid "" "bytearray(b'z1spam')" msgstr "" -#: ../../library/stdtypes.rst:4155 +#: ../../library/stdtypes.rst:4183 msgid "" "One-dimensional memoryviews of :term:`hashable` (read-only) types with " "formats 'B', 'b' or 'c' are also hashable. The hash is defined as ``hash(m) " @@ -6643,7 +6678,7 @@ msgstr "" "み出し専用の) 型の1次元メモリビューもまた、ハッシュ可能です。ハッシュは " "``hash(m) == hash(m.tobytes())`` として定義されています::" -#: ../../library/stdtypes.rst:4159 +#: ../../library/stdtypes.rst:4187 msgid "" ">>> v = memoryview(b'abcefg')\n" ">>> hash(v) == hash(b'abcefg')\n" @@ -6654,7 +6689,7 @@ msgid "" "True" msgstr "" -#: ../../library/stdtypes.rst:4167 +#: ../../library/stdtypes.rst:4195 msgid "" "One-dimensional memoryviews can now be sliced. One-dimensional memoryviews " "with formats 'B', 'b' or 'c' are now :term:`hashable`." @@ -6663,7 +6698,7 @@ msgstr "" "フォーマットの 1 次元のメモリビューが :term:`ハッシュ可能 ` になり" "ました。" -#: ../../library/stdtypes.rst:4171 +#: ../../library/stdtypes.rst:4199 msgid "" "memoryview is now registered automatically with :class:`collections.abc." "Sequence`" @@ -6671,19 +6706,19 @@ msgstr "" "memoryview は自動的に :class:`collections.abc.Sequence` へ登録されるようにな" "りました。" -#: ../../library/stdtypes.rst:4175 +#: ../../library/stdtypes.rst:4203 msgid "memoryviews can now be indexed with tuple of integers." msgstr "メモリビューは整数のタプルでインデックス指定できるようになりました。" -#: ../../library/stdtypes.rst:4178 +#: ../../library/stdtypes.rst:4206 msgid "memoryview is now a :term:`generic type`." msgstr "" -#: ../../library/stdtypes.rst:4181 +#: ../../library/stdtypes.rst:4209 msgid ":class:`memoryview` has several methods:" msgstr ":class:`memoryview` にはいくつかのメソッドがあります:" -#: ../../library/stdtypes.rst:4185 +#: ../../library/stdtypes.rst:4213 msgid "" "A memoryview and a :pep:`3118` exporter are equal if their shapes are " "equivalent and if all corresponding values are equal when the operands' " @@ -6692,7 +6727,7 @@ msgstr "" "memoryview と :pep:`3118` エクスポーターは、 shape が同じで、 :mod:`struct` " "のフォーマットで解釈したときの値が同じ場合に同値になります。" -#: ../../library/stdtypes.rst:4189 +#: ../../library/stdtypes.rst:4217 msgid "" "For the subset of :mod:`struct` format strings currently supported by :meth:" "`tolist`, ``v`` and ``w`` are equal if ``v.tolist() == w.tolist()``::" @@ -6700,7 +6735,7 @@ msgstr "" ":meth:`tolist` がサポートしている :mod:`struct` フォーマットの一部では、 ``v." "tolist() == w.tolist()`` が成り立つときに ``v`` == ``w`` になります::" -#: ../../library/stdtypes.rst:4192 +#: ../../library/stdtypes.rst:4220 msgid "" ">>> import array\n" ">>> a = array.array('I', [1, 2, 3, 4, 5])\n" @@ -6719,7 +6754,7 @@ msgid "" "True" msgstr "" -#: ../../library/stdtypes.rst:4208 +#: ../../library/stdtypes.rst:4236 msgid "" "If either format string is not supported by the :mod:`struct` module, then " "the objects will always compare as unequal (even if the format strings and " @@ -6729,7 +6764,7 @@ msgstr "" "(書式文字列とバッファの内容が同一でも) オブジェクトは常に等しくないものとして" "比較されます::" -#: ../../library/stdtypes.rst:4212 +#: ../../library/stdtypes.rst:4240 msgid "" ">>> from ctypes import BigEndianStructure, c_long\n" ">>> class BEPoint(BigEndianStructure):\n" @@ -6744,7 +6779,7 @@ msgid "" "False" msgstr "" -#: ../../library/stdtypes.rst:4224 +#: ../../library/stdtypes.rst:4252 msgid "" "Note that, as with floating-point numbers, ``v is w`` does *not* imply ``v " "== w`` for memoryview objects." @@ -6752,7 +6787,7 @@ msgstr "" "浮動小数点数の場合と同様 memoryview オブジェクトに対する ``v is w`` は ``v " "== w`` を意味 *しない* ことに注意してください。" -#: ../../library/stdtypes.rst:4227 +#: ../../library/stdtypes.rst:4255 msgid "" "Previous versions compared the raw memory disregarding the item format and " "the logical array structure." @@ -6760,7 +6795,7 @@ msgstr "" "以前のバージョンは、要素フォーマットと論理的な配列構造を無視して生のメモリを" "比較していました。" -#: ../../library/stdtypes.rst:4233 +#: ../../library/stdtypes.rst:4261 msgid "" "Return the data in the buffer as a bytestring. This is equivalent to " "calling the :class:`bytes` constructor on the memoryview. ::" @@ -6768,7 +6803,7 @@ msgstr "" "バッファ中のデータをバイト文字列として返します。これはメモリビューに対して :" "class:`bytes` コンストラクタを呼び出すのと同等です。 ::" -#: ../../library/stdtypes.rst:4236 +#: ../../library/stdtypes.rst:4264 msgid "" ">>> m = memoryview(b\"abc\")\n" ">>> m.tobytes()\n" @@ -6777,7 +6812,7 @@ msgid "" "b'abc'" msgstr "" -#: ../../library/stdtypes.rst:4242 +#: ../../library/stdtypes.rst:4270 msgid "" "For non-contiguous arrays the result is equal to the flattened list " "representation with all elements converted to bytes. :meth:`tobytes` " @@ -6788,7 +6823,7 @@ msgstr "" "ラットなリスト表現に等しくなります。 :meth:`tobytes` は、 :mod:`struct` モ" "ジュール文法にないものを含むすべての書式文字列をサポートします。" -#: ../../library/stdtypes.rst:4247 +#: ../../library/stdtypes.rst:4275 msgid "" "*order* can be {'C', 'F', 'A'}. When *order* is 'C' or 'F', the data of the " "original array is converted to C or Fortran order. For contiguous views, 'A' " @@ -6803,20 +6838,20 @@ msgstr "" "連続なデータに対するビューの場合、データはまず C のデータ並びに変換されま" "す。 *order=None* は *order='C'* と同じです。" -#: ../../library/stdtypes.rst:4256 +#: ../../library/stdtypes.rst:4284 msgid "" "Return a string object containing two hexadecimal digits for each byte in " "the buffer. ::" msgstr "バッファ中の各バイトを 2 つの 16 進数で表した文字列を返します::" -#: ../../library/stdtypes.rst:4259 +#: ../../library/stdtypes.rst:4287 msgid "" ">>> m = memoryview(b\"abc\")\n" ">>> m.hex()\n" "'616263'" msgstr "" -#: ../../library/stdtypes.rst:4265 +#: ../../library/stdtypes.rst:4293 msgid "" "Similar to :meth:`bytes.hex`, :meth:`memoryview.hex` now supports optional " "*sep* and *bytes_per_sep* parameters to insert separators between bytes in " @@ -6826,11 +6861,11 @@ msgstr "" "字列を分割するセパレータを挿入するためのオプションパラメータ *sep* と " "*bytes_per_sep* をサポートするようになりました。" -#: ../../library/stdtypes.rst:4272 +#: ../../library/stdtypes.rst:4300 msgid "Return the data in the buffer as a list of elements. ::" msgstr "バッファ中のデータを要素のリストとして返します。 ::" -#: ../../library/stdtypes.rst:4274 +#: ../../library/stdtypes.rst:4302 msgid "" ">>> memoryview(b'abc').tolist()\n" "[97, 98, 99]\n" @@ -6841,7 +6876,7 @@ msgid "" "[1.1, 2.2, 3.3]" msgstr "" -#: ../../library/stdtypes.rst:4282 +#: ../../library/stdtypes.rst:4310 msgid "" ":meth:`tolist` now supports all single character native formats in :mod:" "`struct` module syntax as well as multi-dimensional representations." @@ -6849,7 +6884,7 @@ msgstr "" ":meth:`tolist` が :mod:`struct` モジュール文法に含まれるすべての単一文字の " "native フォーマットと多次元の表現をサポートするようになりました。" -#: ../../library/stdtypes.rst:4289 +#: ../../library/stdtypes.rst:4317 msgid "" "Return a readonly version of the memoryview object. The original memoryview " "object is unchanged. ::" @@ -6857,7 +6892,7 @@ msgstr "" "読み込み専用のメモリビューオブジェクトを返します。元のメモリビューオブジェク" "トは変更されません。 ::" -#: ../../library/stdtypes.rst:4292 +#: ../../library/stdtypes.rst:4320 msgid "" ">>> m = memoryview(bytearray(b'abc'))\n" ">>> mm = m.toreadonly()\n" @@ -6872,7 +6907,7 @@ msgid "" "[43, 98, 99]" msgstr "" -#: ../../library/stdtypes.rst:4308 +#: ../../library/stdtypes.rst:4336 msgid "" "Release the underlying buffer exposed by the memoryview object. Many " "objects take special actions when a view is held on them (for example, a :" @@ -6886,14 +6921,14 @@ msgstr "" "release() を呼び出すことは、これらの制約をできるだけ早く取り除く (そしてぶら" "下がったリソースをすべて解放する) のに便利です。" -#: ../../library/stdtypes.rst:4314 +#: ../../library/stdtypes.rst:4342 msgid "" "After this method has been called, any further operation on the view raises " "a :class:`ValueError` (except :meth:`release` itself which can be called " "multiple times)::" msgstr "" -#: ../../library/stdtypes.rst:4318 +#: ../../library/stdtypes.rst:4346 msgid "" ">>> m = memoryview(b'abc')\n" ">>> m.release()\n" @@ -6903,7 +6938,7 @@ msgid "" "ValueError: operation forbidden on released memoryview object" msgstr "" -#: ../../library/stdtypes.rst:4325 +#: ../../library/stdtypes.rst:4353 msgid "" "The context management protocol can be used for a similar effect, using the " "``with`` statement::" @@ -6911,7 +6946,7 @@ msgstr "" "コンテキストマネージャプロトコルは、 ``with`` 文を使って同様の効果を得るのに" "使えます::" -#: ../../library/stdtypes.rst:4328 +#: ../../library/stdtypes.rst:4356 msgid "" ">>> with memoryview(b'abc') as m:\n" "... m[0]\n" @@ -6923,7 +6958,7 @@ msgid "" "ValueError: operation forbidden on released memoryview object" msgstr "" -#: ../../library/stdtypes.rst:4341 +#: ../../library/stdtypes.rst:4369 msgid "" "Cast a memoryview to a new format or shape. *shape* defaults to " "``[byte_length//new_itemsize]``, which means that the result view will be " @@ -6937,7 +6972,7 @@ msgstr "" "は 1次元配列 -> C言語型の連続配列 と C言語型の連続配列 -> 1次元配列 です(参" "考: :term:`contiguous`)。" -#: ../../library/stdtypes.rst:4347 +#: ../../library/stdtypes.rst:4375 msgid "" "The destination format is restricted to a single element native format in :" "mod:`struct` syntax. One of the formats must be a byte format ('B', 'b' or " @@ -6950,11 +6985,11 @@ msgstr "" "ばなりません。全てのフォーマットのバイト長は、オペレーティングシステムに依存" "することに注意してください。" -#: ../../library/stdtypes.rst:4353 +#: ../../library/stdtypes.rst:4381 msgid "Cast 1D/long to 1D/unsigned bytes::" msgstr "1次元 long から 1次元 unsigned byte へのキャスト::" -#: ../../library/stdtypes.rst:4355 +#: ../../library/stdtypes.rst:4383 msgid "" ">>> import array\n" ">>> a = array.array('l', [1,2,3])\n" @@ -6978,11 +7013,11 @@ msgid "" "24" msgstr "" -#: ../../library/stdtypes.rst:4376 +#: ../../library/stdtypes.rst:4404 msgid "Cast 1D/unsigned bytes to 1D/char::" msgstr "1次元 unsigned byte から 1次元 char へのキャスト::" -#: ../../library/stdtypes.rst:4378 +#: ../../library/stdtypes.rst:4406 msgid "" ">>> b = bytearray(b'zyz')\n" ">>> x = memoryview(b)\n" @@ -6996,11 +7031,11 @@ msgid "" "bytearray(b'ayz')" msgstr "" -#: ../../library/stdtypes.rst:4389 +#: ../../library/stdtypes.rst:4417 msgid "Cast 1D/bytes to 3D/ints to 1D/signed char::" msgstr "1次元 byte から 3次元 int へ、そして 1次元 signed char へのキャスト::" -#: ../../library/stdtypes.rst:4391 +#: ../../library/stdtypes.rst:4419 msgid "" ">>> import struct\n" ">>> buf = struct.pack(\"i\"*12, *list(range(12)))\n" @@ -7027,11 +7062,11 @@ msgid "" "48" msgstr "" -#: ../../library/stdtypes.rst:4415 +#: ../../library/stdtypes.rst:4443 msgid "Cast 1D/unsigned long to 2D/unsigned long::" msgstr "1次元 unsigned long から 2次元 unsigned long へのキャスト::" -#: ../../library/stdtypes.rst:4417 +#: ../../library/stdtypes.rst:4445 msgid "" ">>> buf = struct.pack(\"L\"*6, *list(range(6)))\n" ">>> x = memoryview(buf)\n" @@ -7044,35 +7079,35 @@ msgid "" "[[0, 1, 2], [3, 4, 5]]" msgstr "" -#: ../../library/stdtypes.rst:4429 +#: ../../library/stdtypes.rst:4457 msgid "The source format is no longer restricted when casting to a byte view." msgstr "" "単バイトのビューへキャストする場合、キャスト元のフォーマットについて制約は無" "くなりました。" -#: ../../library/stdtypes.rst:4434 +#: ../../library/stdtypes.rst:4462 msgid "Count the number of occurrences of *value*." msgstr "" -#: ../../library/stdtypes.rst:4440 +#: ../../library/stdtypes.rst:4468 msgid "" "Return the index of the first occurrence of *value* (at or after index " "*start* and before index *stop*)." msgstr "" -#: ../../library/stdtypes.rst:4443 +#: ../../library/stdtypes.rst:4471 msgid "Raises a :exc:`ValueError` if *value* cannot be found." msgstr "" -#: ../../library/stdtypes.rst:4447 +#: ../../library/stdtypes.rst:4475 msgid "There are also several readonly attributes available:" msgstr "読み出し専用の属性もいくつか使えます:" -#: ../../library/stdtypes.rst:4451 +#: ../../library/stdtypes.rst:4479 msgid "The underlying object of the memoryview::" msgstr "memoryview が参照しているオブジェクト::" -#: ../../library/stdtypes.rst:4453 +#: ../../library/stdtypes.rst:4481 msgid "" ">>> b = bytearray(b'xyz')\n" ">>> m = memoryview(b)\n" @@ -7080,7 +7115,7 @@ msgid "" "True" msgstr "" -#: ../../library/stdtypes.rst:4462 +#: ../../library/stdtypes.rst:4490 msgid "" "``nbytes == product(shape) * itemsize == len(m.tobytes())``. This is the " "amount of space in bytes that the array would use in a contiguous " @@ -7089,7 +7124,7 @@ msgstr "" "``nbytes == product(shape) * itemsize == len(m.tobytes())``. その配列が連続表" "現において利用するスペースです。これは ``len(m)`` と一致するとは限りません::" -#: ../../library/stdtypes.rst:4466 +#: ../../library/stdtypes.rst:4494 msgid "" ">>> import array\n" ">>> a = array.array('i', [1,2,3,4,5])\n" @@ -7107,11 +7142,11 @@ msgid "" "12" msgstr "" -#: ../../library/stdtypes.rst:4481 +#: ../../library/stdtypes.rst:4509 msgid "Multi-dimensional arrays::" msgstr "多次元配列::" -#: ../../library/stdtypes.rst:4483 +#: ../../library/stdtypes.rst:4511 msgid "" ">>> import struct\n" ">>> buf = struct.pack(\"d\"*12, *[1.5*x for x in range(12)])\n" @@ -7125,11 +7160,11 @@ msgid "" "96" msgstr "" -#: ../../library/stdtypes.rst:4498 +#: ../../library/stdtypes.rst:4526 msgid "A bool indicating whether the memory is read only." msgstr "メモリが読み出し専用かどうかを示す真偽値です。" -#: ../../library/stdtypes.rst:4502 +#: ../../library/stdtypes.rst:4530 msgid "" "A string containing the format (in :mod:`struct` module style) for each " "element in the view. A memoryview can be created from exporters with " @@ -7141,7 +7176,7 @@ msgstr "" "から作成することができます。しかし、いくつかのメソッド(例えば :meth:" "`tolist`) はネイティブの単一要素フォーマットに制限されます。" -#: ../../library/stdtypes.rst:4507 +#: ../../library/stdtypes.rst:4535 msgid "" "format ``'B'`` is now handled according to the struct module syntax. This " "means that ``memoryview(b'abc')[0] == b'abc'[0] == 97``." @@ -7149,11 +7184,11 @@ msgstr "" "フォーマット ``'B'`` は struct モジュール構文で扱われるようになりました。これ" "は ``memoryview(b'abc')[0] == b'abc'[0] == 97`` ということを意味します。" -#: ../../library/stdtypes.rst:4513 +#: ../../library/stdtypes.rst:4541 msgid "The size in bytes of each element of the memoryview::" msgstr "memoryview の各要素のバイト単位の大きさ::" -#: ../../library/stdtypes.rst:4515 +#: ../../library/stdtypes.rst:4543 msgid "" ">>> import array, struct\n" ">>> m = memoryview(array.array('H', [32000, 32001, 32002]))\n" @@ -7165,13 +7200,13 @@ msgid "" "True" msgstr "" -#: ../../library/stdtypes.rst:4526 +#: ../../library/stdtypes.rst:4554 msgid "" "An integer indicating how many dimensions of a multi-dimensional array the " "memory represents." msgstr "メモリが表す多次元配列が何次元かを示す整数です。" -#: ../../library/stdtypes.rst:4531 +#: ../../library/stdtypes.rst:4559 msgid "" "A tuple of integers the length of :attr:`ndim` giving the shape of the " "memory as an N-dimensional array." @@ -7179,12 +7214,12 @@ msgstr "" "メモリが表している N 次元配列の形状を表す、長さ :attr:`ndim` の整数のタプルで" "す。" -#: ../../library/stdtypes.rst:4534 ../../library/stdtypes.rst:4542 +#: ../../library/stdtypes.rst:4562 ../../library/stdtypes.rst:4570 msgid "An empty tuple instead of ``None`` when ndim = 0." msgstr "" "ndim = 0 の場合は ``None`` ではなく空のタプルとなるよう変更されました。" -#: ../../library/stdtypes.rst:4539 +#: ../../library/stdtypes.rst:4567 msgid "" "A tuple of integers the length of :attr:`ndim` giving the size in bytes to " "access each element for each dimension of the array." @@ -7192,34 +7227,34 @@ msgstr "" "配列のそれぞれの次元に対して、それぞれの要素にアクセスするのに必要なバイト数" "を表す、長さ :attr:`ndim` の整数のタプルです。" -#: ../../library/stdtypes.rst:4547 +#: ../../library/stdtypes.rst:4575 msgid "Used internally for PIL-style arrays. The value is informational only." msgstr "" "PILスタイルの配列の内部で利用している値。この値はただの情報として公開されてい" "ます。" -#: ../../library/stdtypes.rst:4551 +#: ../../library/stdtypes.rst:4579 msgid "A bool indicating whether the memory is C-:term:`contiguous`." msgstr "" "メモリーが C 形式の順序で連続しているかどうかを示す真偽値(参考: :term:" "`contiguous` )。" -#: ../../library/stdtypes.rst:4557 +#: ../../library/stdtypes.rst:4585 msgid "A bool indicating whether the memory is Fortran :term:`contiguous`." msgstr "" "メモリーがFortran形式の順序で連続しているかどうかを示す真偽値(参考: :term:" "`contiguous` )。" -#: ../../library/stdtypes.rst:4563 +#: ../../library/stdtypes.rst:4591 msgid "A bool indicating whether the memory is :term:`contiguous`." msgstr "" "メモリーが連続しているかどうかを示す真偽値(参考: :term:`contiguous` )。" -#: ../../library/stdtypes.rst:4571 +#: ../../library/stdtypes.rst:4599 msgid "Set Types --- :class:`set`, :class:`frozenset`" msgstr "set(集合)型 --- :class:`set`, :class:`frozenset`" -#: ../../library/stdtypes.rst:4575 +#: ../../library/stdtypes.rst:4603 msgid "" "A :dfn:`set` object is an unordered collection of distinct :term:`hashable` " "objects. Common uses include membership testing, removing duplicates from a " @@ -7234,7 +7269,7 @@ msgstr "" "(他のコンテナについては組み込みの :class:`dict`, :class:`list`, :class:" "`tuple` クラスや :mod:`collections` モジュールを参照してください。)" -#: ../../library/stdtypes.rst:4582 +#: ../../library/stdtypes.rst:4610 msgid "" "Like other collections, sets support ``x in set``, ``len(set)``, and ``for x " "in set``. Being an unordered collection, sets do not record element " @@ -7246,7 +7281,7 @@ msgstr "" "素の位置を記録しません。従って、集合はインデクシング、スライシング、その他の" "シーケンス的な振舞いをサポートしません。" -#: ../../library/stdtypes.rst:4587 +#: ../../library/stdtypes.rst:4615 msgid "" "There are currently two built-in set types, :class:`set` and :class:" "`frozenset`. The :class:`set` type is mutable --- the contents can be " @@ -7265,7 +7300,7 @@ msgstr "" "作成後に内容を改変できないため、辞書のキーや他の集合の要素として用いることが" "できます。" -#: ../../library/stdtypes.rst:4595 +#: ../../library/stdtypes.rst:4623 msgid "" "Non-empty sets (not frozensets) can be created by placing a comma-separated " "list of elements within braces, for example: ``{'jack', 'sjoerd'}``, in " @@ -7275,11 +7310,11 @@ msgstr "" "ラクタに加え、要素を波括弧中にカンマで区切って列挙することでも生成できます。" "例: ``{'jack', 'sjoerd'}``。" -#: ../../library/stdtypes.rst:4599 +#: ../../library/stdtypes.rst:4627 msgid "The constructors for both classes work the same:" msgstr "どちらのクラスのコンストラクタも同様に働きます:" -#: ../../library/stdtypes.rst:4604 +#: ../../library/stdtypes.rst:4632 msgid "" "Return a new set or frozenset object whose elements are taken from " "*iterable*. The elements of a set must be :term:`hashable`. To represent " @@ -7292,21 +7327,21 @@ msgstr "" "集合は :class:`frozenset` オブジェクトでなくてはなりません。*iterable* が指定" "されない場合、新しい空の集合が返されます。" -#: ../../library/stdtypes.rst:4610 +#: ../../library/stdtypes.rst:4638 msgid "Sets can be created by several means:" msgstr "集合はいくつかの方法で生成できます:" -#: ../../library/stdtypes.rst:4612 +#: ../../library/stdtypes.rst:4640 msgid "" "Use a comma-separated list of elements within braces: ``{'jack', 'sjoerd'}``" msgstr "波括弧内にカンマ区切りで要素を列挙する: ``{'jack', 'sjoerd'}``" -#: ../../library/stdtypes.rst:4613 +#: ../../library/stdtypes.rst:4641 msgid "" "Use a set comprehension: ``{c for c in 'abracadabra' if c not in 'abc'}``" msgstr "集合内包表記を使う: ``{c for c in 'abracadabra' if c not in 'abc'}``" -#: ../../library/stdtypes.rst:4614 +#: ../../library/stdtypes.rst:4642 msgid "" "Use the type constructor: ``set()``, ``set('foobar')``, ``set(['a', 'b', " "'foo'])``" @@ -7314,7 +7349,7 @@ msgstr "" "型コンストラクタを使う: ``set()``, ``set('foobar')``, ``set(['a', 'b', " "'foo'])``" -#: ../../library/stdtypes.rst:4616 +#: ../../library/stdtypes.rst:4644 msgid "" "Instances of :class:`set` and :class:`frozenset` provide the following " "operations:" @@ -7322,19 +7357,19 @@ msgstr "" ":class:`set` および :class:`frozenset` のインスタンスは以下の操作を提供しま" "す:" -#: ../../library/stdtypes.rst:4621 +#: ../../library/stdtypes.rst:4649 msgid "Return the number of elements in set *s* (cardinality of *s*)." msgstr "集合 *s* の要素数 (*s* の濃度) を返します。" -#: ../../library/stdtypes.rst:4625 +#: ../../library/stdtypes.rst:4653 msgid "Test *x* for membership in *s*." msgstr "*x* が *s* のメンバーに含まれるか判定します。" -#: ../../library/stdtypes.rst:4629 +#: ../../library/stdtypes.rst:4657 msgid "Test *x* for non-membership in *s*." msgstr "*x* が *s* のメンバーに含まれていないことを判定します。" -#: ../../library/stdtypes.rst:4633 +#: ../../library/stdtypes.rst:4661 msgid "" "Return ``True`` if the set has no elements in common with *other*. Sets are " "disjoint if and only if their intersection is the empty set." @@ -7342,11 +7377,11 @@ msgstr "" "集合が *other* と共通の要素を持たないとき、``True`` を返します。集合はそれら" "の積集合が空集合となるときのみ、互いに素 (disjoint) となります。" -#: ../../library/stdtypes.rst:4639 +#: ../../library/stdtypes.rst:4667 msgid "Test whether every element in the set is in *other*." msgstr "set の全ての要素が *other* に含まれるか判定します。" -#: ../../library/stdtypes.rst:4643 +#: ../../library/stdtypes.rst:4671 msgid "" "Test whether the set is a proper subset of *other*, that is, ``set <= other " "and set != other``." @@ -7354,11 +7389,11 @@ msgstr "" "set が *other* の真部分集合であるかを判定します。つまり、 ``set <= other and " "set != other`` と等価です。" -#: ../../library/stdtypes.rst:4649 +#: ../../library/stdtypes.rst:4677 msgid "Test whether every element in *other* is in the set." msgstr "*other* の全ての要素が set に含まれるか判定します。" -#: ../../library/stdtypes.rst:4653 +#: ../../library/stdtypes.rst:4681 msgid "" "Test whether the set is a proper superset of *other*, that is, ``set >= " "other and set != other``." @@ -7366,31 +7401,31 @@ msgstr "" "set が *other* の真上位集合であるかを判定します。つまり、 ``set >= other and " "set != other`` と等価です。" -#: ../../library/stdtypes.rst:4659 +#: ../../library/stdtypes.rst:4687 msgid "Return a new set with elements from the set and all others." msgstr "set と全ての other の要素からなる新しい集合を返します。" -#: ../../library/stdtypes.rst:4664 +#: ../../library/stdtypes.rst:4692 msgid "Return a new set with elements common to the set and all others." msgstr "set と全ての other に共通する要素を持つ、新しい集合を返します。" -#: ../../library/stdtypes.rst:4669 +#: ../../library/stdtypes.rst:4697 msgid "Return a new set with elements in the set that are not in the others." msgstr "" "set に含まれて、かつ、全ての other に含まれない要素を持つ、新しい集合を返しま" "す。" -#: ../../library/stdtypes.rst:4674 +#: ../../library/stdtypes.rst:4702 msgid "" "Return a new set with elements in either the set or *other* but not both." msgstr "" "set と *other* のいずれか一方だけに含まれる要素を持つ新しい集合を返します。" -#: ../../library/stdtypes.rst:4678 +#: ../../library/stdtypes.rst:4706 msgid "Return a shallow copy of the set." msgstr "集合の浅いコピーを返します。" -#: ../../library/stdtypes.rst:4681 +#: ../../library/stdtypes.rst:4709 msgid "" "Note, the non-operator versions of :meth:`union`, :meth:`intersection`, :" "meth:`difference`, :meth:`symmetric_difference`, :meth:`issubset`, and :meth:" @@ -7406,7 +7441,7 @@ msgstr "" "'cbs'`` のような誤りがちな構文を予防し、より読みやすい ``set('abc')." "intersection('cbs')`` を支持します。" -#: ../../library/stdtypes.rst:4688 +#: ../../library/stdtypes.rst:4716 msgid "" "Both :class:`set` and :class:`frozenset` support set to set comparisons. Two " "sets are equal if and only if every element of each set is contained in the " @@ -7423,7 +7458,7 @@ msgstr "" "(上位集合であるが等しくない) とき、かつそのときに限り一方の集合は他方の集合よ" "り大きいです。" -#: ../../library/stdtypes.rst:4695 +#: ../../library/stdtypes.rst:4723 msgid "" "Instances of :class:`set` are compared to instances of :class:`frozenset` " "based on their members. For example, ``set('abc') == frozenset('abc')`` " @@ -7433,7 +7468,7 @@ msgstr "" "づいて比較されます。例えば、 ``set('abc') == frozenset('abc')`` や " "``set('abc') in set([frozenset('abc')])`` は ``True`` を返します。" -#: ../../library/stdtypes.rst:4699 +#: ../../library/stdtypes.rst:4727 msgid "" "The subset and equality comparisons do not generalize to a total ordering " "function. For example, any two nonempty disjoint sets are not equal and are " @@ -7445,7 +7480,7 @@ msgstr "" "せんから、以下の *すべて* に ``False`` を返します: ``ab``." -#: ../../library/stdtypes.rst:4704 +#: ../../library/stdtypes.rst:4732 msgid "" "Since sets only define partial ordering (subset relationships), the output " "of the :meth:`list.sort` method is undefined for lists of sets." @@ -7453,13 +7488,13 @@ msgstr "" "集合は半順序(部分集合関係)しか定義しないので、集合のリストにおける :meth:" "`list.sort` メソッドの出力は未定義です。" -#: ../../library/stdtypes.rst:4707 +#: ../../library/stdtypes.rst:4735 msgid "Set elements, like dictionary keys, must be :term:`hashable`." msgstr "" "集合の要素は、辞書のキーのように、 :term:`ハッシュ可能 ` でなければ" "なりません。" -#: ../../library/stdtypes.rst:4709 +#: ../../library/stdtypes.rst:4737 msgid "" "Binary operations that mix :class:`set` instances with :class:`frozenset` " "return the type of the first operand. For example: ``frozenset('ab') | " @@ -7469,7 +7504,7 @@ msgstr "" "演算は、第一被演算子の型を返します。例えば: ``frozenset('ab') | set('bc')`` " "は :class:`frozenset` インスタンスを返します。" -#: ../../library/stdtypes.rst:4713 +#: ../../library/stdtypes.rst:4741 msgid "" "The following table lists operations available for :class:`set` that do not " "apply to immutable instances of :class:`frozenset`:" @@ -7477,28 +7512,28 @@ msgstr "" "以下の表に挙げる演算は :class:`set` に適用されますが、:class:`frozenset` のイ" "ミュータブルなインスタンスには適用されません:" -#: ../../library/stdtypes.rst:4719 +#: ../../library/stdtypes.rst:4747 msgid "Update the set, adding elements from all others." msgstr "全ての other の要素を追加し、 set を更新します。" -#: ../../library/stdtypes.rst:4724 +#: ../../library/stdtypes.rst:4752 msgid "Update the set, keeping only elements found in it and all others." msgstr "元の set と全ての other に共通する要素だけを残して set を更新します。" -#: ../../library/stdtypes.rst:4729 +#: ../../library/stdtypes.rst:4757 msgid "Update the set, removing elements found in others." msgstr "*other* に含まれる要素を取り除き、 set を更新します。" -#: ../../library/stdtypes.rst:4734 +#: ../../library/stdtypes.rst:4762 msgid "" "Update the set, keeping only elements found in either set, but not in both." msgstr "どちらかにのみ含まれて、共通には持たない要素のみで set を更新します。" -#: ../../library/stdtypes.rst:4738 +#: ../../library/stdtypes.rst:4766 msgid "Add element *elem* to the set." msgstr "要素 *elem* を set に追加します。" -#: ../../library/stdtypes.rst:4742 +#: ../../library/stdtypes.rst:4770 msgid "" "Remove element *elem* from the set. Raises :exc:`KeyError` if *elem* is not " "contained in the set." @@ -7506,11 +7541,11 @@ msgstr "" "要素 *elem* を set から取り除きます。*elem* が set に含まれていなければ :exc:" "`KeyError` を送出します。" -#: ../../library/stdtypes.rst:4747 +#: ../../library/stdtypes.rst:4775 msgid "Remove element *elem* from the set if it is present." msgstr "要素 *elem* が set に含まれていれば、取り除きます。" -#: ../../library/stdtypes.rst:4751 +#: ../../library/stdtypes.rst:4779 msgid "" "Remove and return an arbitrary element from the set. Raises :exc:`KeyError` " "if the set is empty." @@ -7518,11 +7553,11 @@ msgstr "" "*s* から任意の要素を取り除き、それを返します。集合が空の場合、 :exc:" "`KeyError` を送出します" -#: ../../library/stdtypes.rst:4756 +#: ../../library/stdtypes.rst:4784 msgid "Remove all elements from the set." msgstr "set の全ての要素を取り除きます。" -#: ../../library/stdtypes.rst:4759 +#: ../../library/stdtypes.rst:4787 msgid "" "Note, the non-operator versions of the :meth:`update`, :meth:" "`intersection_update`, :meth:`difference_update`, and :meth:" @@ -7533,7 +7568,7 @@ msgstr "" "`difference_update`, および :meth:`symmetric_difference_update` メソッドは、" "任意のイテラブルを引数として受け付けます。" -#: ../../library/stdtypes.rst:4764 +#: ../../library/stdtypes.rst:4792 msgid "" "Note, the *elem* argument to the :meth:`~object.__contains__`, :meth:" "`remove`, and :meth:`discard` methods may be a set. To support searching " @@ -7544,11 +7579,11 @@ msgstr "" "その集合と等価な :class:`frozenset` の検索をサポートするために、 *elem* から" "一時的な frozenset を作成します。" -#: ../../library/stdtypes.rst:4773 +#: ../../library/stdtypes.rst:4801 msgid "Mapping Types --- :class:`dict`" msgstr "マッピング型 --- :class:`dict`" -#: ../../library/stdtypes.rst:4783 +#: ../../library/stdtypes.rst:4811 msgid "" "A :term:`mapping` object maps :term:`hashable` values to arbitrary objects. " "Mappings are mutable objects. There is currently only one standard mapping " @@ -7562,7 +7597,7 @@ msgstr "" "す。 (他のコンテナについては組み込みの :class:`list`, :class:`set`, および :" "class:`tuple` クラスと、 :mod:`collections` モジュールを参照してください。)" -#: ../../library/stdtypes.rst:4789 +#: ../../library/stdtypes.rst:4817 msgid "" "A dictionary's keys are *almost* arbitrary values. Values that are not :" "term:`hashable`, that is, values containing lists, dictionaries or other " @@ -7577,7 +7612,7 @@ msgstr "" "比較した際に等しいとみなされる値 (例えば ``1`` と ``1.0`` と ``True``) は、ど" "れを使っても同じエントリーに関連付けられます。" -#: ../../library/stdtypes.rst:4800 +#: ../../library/stdtypes.rst:4828 msgid "" "Return a new dictionary initialized from an optional positional argument and " "a possibly empty set of keyword arguments." @@ -7585,11 +7620,11 @@ msgstr "" "オプションの位置引数と空の可能性もあるキーワード引数の集合により初期化された" "新しい辞書を返します。" -#: ../../library/stdtypes.rst:4803 +#: ../../library/stdtypes.rst:4831 msgid "Dictionaries can be created by several means:" msgstr "辞書はいくつかの方法で生成できます:" -#: ../../library/stdtypes.rst:4805 +#: ../../library/stdtypes.rst:4833 msgid "" "Use a comma-separated list of ``key: value`` pairs within braces: ``{'jack': " "4098, 'sjoerd': 4127}`` or ``{4098: 'jack', 4127: 'sjoerd'}``" @@ -7597,11 +7632,11 @@ msgstr "" "波括弧内にカンマ区切りで ``key: value`` 対を列挙する: ``{'jack': 4098, " "'sjoerd': 4127}`` あるいは ``{4098: 'jack', 4127: 'sjoerd'}``" -#: ../../library/stdtypes.rst:4807 +#: ../../library/stdtypes.rst:4835 msgid "Use a dict comprehension: ``{}``, ``{x: x ** 2 for x in range(10)}``" msgstr "辞書内包表記を使う: ``{}``, ``{x: x ** 2 for x in range(10)}``" -#: ../../library/stdtypes.rst:4808 +#: ../../library/stdtypes.rst:4836 msgid "" "Use the type constructor: ``dict()``, ``dict([('foo', 100), ('bar', " "200)])``, ``dict(foo=100, bar=200)``" @@ -7609,7 +7644,7 @@ msgstr "" "型コンストラクタを使う: ``dict()``, ``dict([('foo', 100), ('bar', 200)])``, " "``dict(foo=100, bar=200)``" -#: ../../library/stdtypes.rst:4811 +#: ../../library/stdtypes.rst:4839 msgid "" "If no positional argument is given, an empty dictionary is created. If a " "positional argument is given and it defines a ``keys()`` method, a " @@ -7622,7 +7657,7 @@ msgid "" "that key becomes the corresponding value in the new dictionary." msgstr "" -#: ../../library/stdtypes.rst:4821 +#: ../../library/stdtypes.rst:4849 msgid "" "If keyword arguments are given, the keyword arguments and their values are " "added to the dictionary created from the positional argument. If a key " @@ -7633,7 +7668,7 @@ msgstr "" "辞書に追加されます。既に存在しているキーが追加された場合、キーワード引数の値" "は位置引数の値を置き換えます。" -#: ../../library/stdtypes.rst:4826 ../../library/stdtypes.rst:4844 +#: ../../library/stdtypes.rst:4854 ../../library/stdtypes.rst:4872 msgid "" "Providing keyword arguments as in the first example only works for keys that " "are valid Python identifiers. Otherwise, any valid keys can be used." @@ -7642,7 +7677,7 @@ msgstr "" "でなければなりません。それ以外の方法では、辞書のキーとして有効などんなキーで" "も使えます。" -#: ../../library/stdtypes.rst:4829 +#: ../../library/stdtypes.rst:4857 msgid "" "Dictionaries compare equal if and only if they have the same ``(key, " "value)`` pairs (regardless of ordering). Order comparisons ('<', '<=', '>=', " @@ -7651,7 +7686,7 @@ msgid "" "``{\"one\": 1, \"two\": 2, \"three\": 3}``::" msgstr "" -#: ../../library/stdtypes.rst:4835 +#: ../../library/stdtypes.rst:4863 msgid "" ">>> a = dict(one=1, two=2, three=3)\n" ">>> b = {'one': 1, 'two': 2, 'three': 3}\n" @@ -7663,7 +7698,7 @@ msgid "" "True" msgstr "" -#: ../../library/stdtypes.rst:4847 +#: ../../library/stdtypes.rst:4875 msgid "" "Dictionaries preserve insertion order. Note that updating a key does not " "affect the order. Keys added after deletion are inserted at the end. ::" @@ -7672,7 +7707,7 @@ msgstr "" "キーの更新は順序には影響が無いことに注意してください。\n" "いったん削除されてから再度追加されたキーは末尾に挿入されます。::" -#: ../../library/stdtypes.rst:4850 +#: ../../library/stdtypes.rst:4878 msgid "" ">>> d = {\"one\": 1, \"two\": 2, \"three\": 3, \"four\": 4}\n" ">>> d\n" @@ -7690,7 +7725,7 @@ msgid "" "{'one': 42, 'three': 3, 'four': 4, 'two': None}" msgstr "" -#: ../../library/stdtypes.rst:4865 +#: ../../library/stdtypes.rst:4893 msgid "" "Dictionary order is guaranteed to be insertion order. This behavior was an " "implementation detail of CPython from 3.6." @@ -7698,7 +7733,7 @@ msgstr "" "辞書の順序が挿入順序であることが保証されるようになりました。この振る舞いは " "CPython 3.6 の実装詳細でした。" -#: ../../library/stdtypes.rst:4869 +#: ../../library/stdtypes.rst:4897 msgid "" "These are the operations that dictionaries support (and therefore, custom " "mapping types should support too):" @@ -7706,15 +7741,15 @@ msgstr "" "以下は辞書型がサポートする操作です (それゆえ、カスタムのマップ型もこれらの操" "作をサポートするべきです):" -#: ../../library/stdtypes.rst:4874 +#: ../../library/stdtypes.rst:4902 msgid "Return a list of all the keys used in the dictionary *d*." msgstr "辞書 *d* で使われている全てのキーのリストを返します。" -#: ../../library/stdtypes.rst:4878 +#: ../../library/stdtypes.rst:4906 msgid "Return the number of items in the dictionary *d*." msgstr "辞書 *d* の項目数を返します。" -#: ../../library/stdtypes.rst:4882 +#: ../../library/stdtypes.rst:4910 msgid "" "Return the item of *d* with key *key*. Raises a :exc:`KeyError` if *key* is " "not in the map." @@ -7722,7 +7757,7 @@ msgstr "" "*d* のキー *key* の項目を返します。マップに *key* が存在しなければ、 :exc:" "`KeyError` を送出します。" -#: ../../library/stdtypes.rst:4887 +#: ../../library/stdtypes.rst:4915 msgid "" "If a subclass of dict defines a method :meth:`__missing__` and *key* is not " "present, the ``d[key]`` operation calls that method with the key *key* as " @@ -7740,7 +7775,7 @@ msgstr "" "場合、 :exc:`KeyError` が送出されます。 :meth:`__missing__` はメソッドでなけ" "ればならず、インスタンス変数であってはなりません::" -#: ../../library/stdtypes.rst:4895 +#: ../../library/stdtypes.rst:4923 msgid "" ">>> class Counter(dict):\n" "... def __missing__(self, key):\n" @@ -7754,7 +7789,7 @@ msgid "" "1" msgstr "" -#: ../../library/stdtypes.rst:4906 +#: ../../library/stdtypes.rst:4934 msgid "" "The example above shows part of the implementation of :class:`collections." "Counter`. A different ``__missing__`` method is used by :class:`collections." @@ -7763,11 +7798,11 @@ msgstr "" "ここでお見せした例は :class:`collections.Counter` 実装の一部です。これとは" "違った ``__missing__`` が :class:`collections.defaultdict` で使われています。" -#: ../../library/stdtypes.rst:4912 +#: ../../library/stdtypes.rst:4940 msgid "Set ``d[key]`` to *value*." msgstr "``d[key]`` に *value* を設定します。" -#: ../../library/stdtypes.rst:4916 +#: ../../library/stdtypes.rst:4944 msgid "" "Remove ``d[key]`` from *d*. Raises a :exc:`KeyError` if *key* is not in the " "map." @@ -7775,17 +7810,17 @@ msgstr "" "*d* から ``d[key]`` を削除します。マップに *key* が存在しなければ、 :exc:" "`KeyError` を送出します。" -#: ../../library/stdtypes.rst:4921 +#: ../../library/stdtypes.rst:4949 msgid "Return ``True`` if *d* has a key *key*, else ``False``." msgstr "" "*d* がキー *key* を持っていれば ``True`` を、そうでなければ、 ``False`` を返" "します。" -#: ../../library/stdtypes.rst:4925 +#: ../../library/stdtypes.rst:4953 msgid "Equivalent to ``not key in d``." msgstr "``not key in d`` と等価です。" -#: ../../library/stdtypes.rst:4929 +#: ../../library/stdtypes.rst:4957 msgid "" "Return an iterator over the keys of the dictionary. This is a shortcut for " "``iter(d.keys())``." @@ -7793,21 +7828,21 @@ msgstr "" "辞書のキーに渡るイテレータを返します。これは ``iter(d.keys())`` へのショート" "カットです。" -#: ../../library/stdtypes.rst:4934 +#: ../../library/stdtypes.rst:4962 msgid "Remove all items from the dictionary." msgstr "辞書の全ての項目を消去します。" -#: ../../library/stdtypes.rst:4938 +#: ../../library/stdtypes.rst:4966 msgid "Return a shallow copy of the dictionary." msgstr "辞書の浅いコピーを返します。" -#: ../../library/stdtypes.rst:4942 +#: ../../library/stdtypes.rst:4970 msgid "" "Create a new dictionary with keys from *iterable* and values set to *value*." msgstr "" "*iterable* からキーを取り、値を *value* に設定した、新しい辞書を作成します。" -#: ../../library/stdtypes.rst:4944 +#: ../../library/stdtypes.rst:4972 msgid "" ":meth:`fromkeys` is a class method that returns a new dictionary. *value* " "defaults to ``None``. All of the values refer to just a single instance, so " @@ -7823,7 +7858,7 @@ msgstr "" "別々の値を指すようにしたい場合は、代わりに :ref:`辞書内包表記 ` を使用" "してください。" -#: ../../library/stdtypes.rst:4952 +#: ../../library/stdtypes.rst:4980 msgid "" "Return the value for *key* if *key* is in the dictionary, else *default*. If " "*default* is not given, it defaults to ``None``, so that this method never " @@ -7833,7 +7868,7 @@ msgstr "" "す。 *default* が与えられなかった場合、デフォルトでは ``None`` となります。そ" "のため、このメソッドは :exc:`KeyError` を送出することはありません。" -#: ../../library/stdtypes.rst:4958 +#: ../../library/stdtypes.rst:4986 msgid "" "Return a new view of the dictionary's items (``(key, value)`` pairs). See " "the :ref:`documentation of view objects `." @@ -7841,7 +7876,7 @@ msgstr "" "辞書の項目 (``(key, value)`` 対) の新しいビューを返します。:ref:`ビューオブ" "ジェクトのドキュメント ` を参照してください。" -#: ../../library/stdtypes.rst:4963 +#: ../../library/stdtypes.rst:4991 msgid "" "Return a new view of the dictionary's keys. See the :ref:`documentation of " "view objects `." @@ -7849,7 +7884,7 @@ msgstr "" "辞書のキーの新しいビューを返します。:ref:`ビューオブジェクトのドキュメント " "` を参照してください。" -#: ../../library/stdtypes.rst:4968 +#: ../../library/stdtypes.rst:4996 msgid "" "If *key* is in the dictionary, remove it and return its value, else return " "*default*. If *default* is not given and *key* is not in the dictionary, a :" @@ -7859,7 +7894,7 @@ msgstr "" "*default* を返します。 *default* が与えられず、かつ *key* が辞書に存在しなけ" "れば :exc:`KeyError` を送出します。" -#: ../../library/stdtypes.rst:4974 +#: ../../library/stdtypes.rst:5002 msgid "" "Remove and return a ``(key, value)`` pair from the dictionary. Pairs are " "returned in :abbr:`LIFO (last-in, first-out)` order." @@ -7867,7 +7902,7 @@ msgstr "" "任意の ``(key, value)`` 対を辞書から消去して返します。\n" "対は :abbr:`LIFO (後入れ、先出し)` の順序で返却されます。" -#: ../../library/stdtypes.rst:4977 +#: ../../library/stdtypes.rst:5005 msgid "" ":meth:`popitem` is useful to destructively iterate over a dictionary, as " "often used in set algorithms. If the dictionary is empty, calling :meth:" @@ -7877,7 +7912,7 @@ msgstr "" "適用して消去するのに便利です。辞書が空であれば、 :meth:`popitem` の呼び出し" "は :exc:`KeyError` を送出します。" -#: ../../library/stdtypes.rst:4981 +#: ../../library/stdtypes.rst:5009 msgid "" "LIFO order is now guaranteed. In prior versions, :meth:`popitem` would " "return an arbitrary key/value pair." @@ -7886,7 +7921,7 @@ msgstr "" "以前のバージョンでは、 :meth:`popitem` は任意の key/value 対を返していまし" "た。" -#: ../../library/stdtypes.rst:4987 +#: ../../library/stdtypes.rst:5015 msgid "" "Return a reverse iterator over the keys of the dictionary. This is a " "shortcut for ``reversed(d.keys())``." @@ -7894,7 +7929,7 @@ msgstr "" "辞書のキーに渡る逆イテレータを返します。これは ``reversed(d.keys())`` への" "ショートカットです。" -#: ../../library/stdtypes.rst:4994 +#: ../../library/stdtypes.rst:5022 msgid "" "If *key* is in the dictionary, return its value. If not, insert *key* with " "a value of *default* and return *default*. *default* defaults to ``None``." @@ -7903,7 +7938,7 @@ msgstr "" "*default* として *key* を挿入し、 *default* を返します。 *default* のデフォル" "トは ``None`` です。" -#: ../../library/stdtypes.rst:5000 +#: ../../library/stdtypes.rst:5028 msgid "" "Update the dictionary with the key/value pairs from *other*, overwriting " "existing keys. Return ``None``." @@ -7911,7 +7946,7 @@ msgstr "" "辞書の内容を *other* のキーと値で更新します。既存のキーは上書きされます。返り" "値は ``None`` です。" -#: ../../library/stdtypes.rst:5003 +#: ../../library/stdtypes.rst:5031 msgid "" ":meth:`update` accepts either another object with a ``keys()`` method (in " "which case :meth:`~object.__getitem__` is called with every key returned " @@ -7920,7 +7955,7 @@ msgid "" "is then updated with those key/value pairs: ``d.update(red=1, blue=2)``." msgstr "" -#: ../../library/stdtypes.rst:5011 +#: ../../library/stdtypes.rst:5039 msgid "" "Return a new view of the dictionary's values. See the :ref:`documentation " "of view objects `." @@ -7928,7 +7963,7 @@ msgstr "" "辞書の値の新しいビューを返します。:ref:`ビューオブジェクトのドキュメント " "` を参照してください。" -#: ../../library/stdtypes.rst:5014 +#: ../../library/stdtypes.rst:5042 msgid "" "An equality comparison between one ``dict.values()`` view and another will " "always return ``False``. This also applies when comparing ``dict.values()`` " @@ -7938,14 +7973,14 @@ msgstr "" "が返ります。\n" "``dict.values()`` どうしを比較したときも同様です::" -#: ../../library/stdtypes.rst:5018 +#: ../../library/stdtypes.rst:5046 msgid "" ">>> d = {'a': 1}\n" ">>> d.values() == d.values()\n" "False" msgstr "" -#: ../../library/stdtypes.rst:5024 +#: ../../library/stdtypes.rst:5052 msgid "" "Create a new dictionary with the merged keys and values of *d* and *other*, " "which must both be dictionaries. The values of *other* take priority when " @@ -7954,7 +7989,7 @@ msgstr "" "*d* と *other* のキーと値を統合した新しい辞書を作成します。\n" "*d* と *other* のキーに重複がある場合は、 *other* の方の値が優先されます。" -#: ../../library/stdtypes.rst:5032 +#: ../../library/stdtypes.rst:5060 msgid "" "Update the dictionary *d* with keys and values from *other*, which may be " "either a :term:`mapping` or an :term:`iterable` of key/value pairs. The " @@ -7965,11 +8000,11 @@ msgstr "" "テラブル ` です。\n" "*d* と *other* のキーに重複がある場合は、 *other* の方の値が優先されます。" -#: ../../library/stdtypes.rst:5038 +#: ../../library/stdtypes.rst:5066 msgid "Dictionaries and dictionary views are reversible. ::" msgstr "辞書と辞書のビューは ``reversed()`` で順序を逆にすることができます::" -#: ../../library/stdtypes.rst:5040 +#: ../../library/stdtypes.rst:5068 msgid "" ">>> d = {\"one\": 1, \"two\": 2, \"three\": 3, \"four\": 4}\n" ">>> d\n" @@ -7982,11 +8017,11 @@ msgid "" "[('four', 4), ('three', 3), ('two', 2), ('one', 1)]" msgstr "" -#: ../../library/stdtypes.rst:5050 +#: ../../library/stdtypes.rst:5078 msgid "Dictionaries are now reversible." msgstr "辞書がリバース可能になりました。" -#: ../../library/stdtypes.rst:5055 +#: ../../library/stdtypes.rst:5083 msgid "" ":class:`types.MappingProxyType` can be used to create a read-only view of a :" "class:`dict`." @@ -7994,11 +8029,11 @@ msgstr "" ":class:`dict` の読み出し専用ビューを作るために :class:`types." "MappingProxyType` を使うことができます。" -#: ../../library/stdtypes.rst:5062 +#: ../../library/stdtypes.rst:5090 msgid "Dictionary view objects" msgstr "辞書ビューオブジェクト" -#: ../../library/stdtypes.rst:5064 +#: ../../library/stdtypes.rst:5092 msgid "" "The objects returned by :meth:`dict.keys`, :meth:`dict.values` and :meth:" "`dict.items` are *view objects*. They provide a dynamic view on the " @@ -8009,7 +8044,7 @@ msgstr "" "ブジェクトは、 *ビューオブジェクト* です。これらは、辞書の項目の動的なビュー" "を提供し、辞書が変更された時、ビューはその変更を反映します。" -#: ../../library/stdtypes.rst:5069 +#: ../../library/stdtypes.rst:5097 msgid "" "Dictionary views can be iterated over to yield their respective data, and " "support membership tests:" @@ -8017,11 +8052,11 @@ msgstr "" "辞書ビューは、イテレートすることで対応するデータを yield できます。また、帰属" "判定をサポートします:" -#: ../../library/stdtypes.rst:5074 +#: ../../library/stdtypes.rst:5102 msgid "Return the number of entries in the dictionary." msgstr "辞書の項目数を返します。" -#: ../../library/stdtypes.rst:5078 +#: ../../library/stdtypes.rst:5106 msgid "" "Return an iterator over the keys, values or items (represented as tuples of " "``(key, value)``) in the dictionary." @@ -8029,7 +8064,7 @@ msgstr "" "辞書のキー、値、または (``(key, value)`` のタプルとして表される) 項目に渡るイ" "テレータを返します。" -#: ../../library/stdtypes.rst:5081 +#: ../../library/stdtypes.rst:5109 msgid "" "Keys and values are iterated over in insertion order. This allows the " "creation of ``(value, key)`` pairs using :func:`zip`: ``pairs = zip(d." @@ -8042,7 +8077,7 @@ msgstr "" "同じリストを作成する他の方法は、 ``pairs = [(v, k) for (k, v) in d." "items()]`` です。 " -#: ../../library/stdtypes.rst:5086 +#: ../../library/stdtypes.rst:5114 msgid "" "Iterating views while adding or deleting entries in the dictionary may raise " "a :exc:`RuntimeError` or fail to iterate over all entries." @@ -8050,11 +8085,11 @@ msgstr "" "辞書の項目の追加や削除中にビューをイテレートすると、 :exc:`RuntimeError` を送" "出したり、すべての項目に渡ってイテレートできなかったりします。" -#: ../../library/stdtypes.rst:5089 +#: ../../library/stdtypes.rst:5117 msgid "Dictionary order is guaranteed to be insertion order." msgstr "辞書の順序が挿入順序であると保証されるようになりました。" -#: ../../library/stdtypes.rst:5094 +#: ../../library/stdtypes.rst:5122 msgid "" "Return ``True`` if *x* is in the underlying dictionary's keys, values or " "items (in the latter case, *x* should be a ``(key, value)`` tuple)." @@ -8062,7 +8097,7 @@ msgstr "" "*x* が元の辞書のキー、値、または項目 (項目の場合、 *x* は ``(key, value)`` タ" "プルです) にあるとき ``True`` を返します。" -#: ../../library/stdtypes.rst:5099 +#: ../../library/stdtypes.rst:5127 msgid "" "Return a reverse iterator over the keys, values or items of the dictionary. " "The view will be iterated in reverse order of the insertion." @@ -8070,11 +8105,11 @@ msgstr "" "辞書のキーもしくは値、項目の順序を逆にしたイテレーターを返します。\n" "戻り値のビューは、挿入された順とは逆の順でイテレートします。" -#: ../../library/stdtypes.rst:5102 +#: ../../library/stdtypes.rst:5130 msgid "Dictionary views are now reversible." msgstr "辞書のビューがリバース可能になりました。" -#: ../../library/stdtypes.rst:5107 +#: ../../library/stdtypes.rst:5135 msgid "" "Return a :class:`types.MappingProxyType` that wraps the original dictionary " "to which the view refers." @@ -8082,7 +8117,7 @@ msgstr "" "ビューの参照先の辞書をラップする :class:`types.MappingProxyType` オブジェク" "ト を返します。" -#: ../../library/stdtypes.rst:5112 +#: ../../library/stdtypes.rst:5140 msgid "" "Keys views are set-like since their entries are unique and :term:`hashable`. " "Items views also have set-like operations since the (key, value) pairs are " @@ -8106,11 +8141,11 @@ msgstr "" "れら集合の特性を持つビューはオペランドとして任意のイテラブルを取ることができ" "ます。 " -#: ../../library/stdtypes.rst:5124 +#: ../../library/stdtypes.rst:5152 msgid "An example of dictionary view usage::" msgstr "辞書ビューの使用法の例::" -#: ../../library/stdtypes.rst:5126 +#: ../../library/stdtypes.rst:5154 msgid "" ">>> dishes = {'eggs': 2, 'sausage': 1, 'bacon': 1, 'spam': 500}\n" ">>> keys = dishes.keys()\n" @@ -8151,11 +8186,11 @@ msgid "" "500" msgstr "" -#: ../../library/stdtypes.rst:5168 +#: ../../library/stdtypes.rst:5196 msgid "Context Manager Types" msgstr "コンテキストマネージャ型" -#: ../../library/stdtypes.rst:5175 +#: ../../library/stdtypes.rst:5203 msgid "" "Python's :keyword:`with` statement supports the concept of a runtime context " "defined by a context manager. This is implemented using a pair of methods " @@ -8167,7 +8202,7 @@ msgstr "" "文の終わりで脱出する実行時コンテキストを、ユーザ定義クラスが定義できるように" "する一対のメソッドで実装されます:" -#: ../../library/stdtypes.rst:5183 +#: ../../library/stdtypes.rst:5211 msgid "" "Enter the runtime context and return either this object or another object " "related to the runtime context. The value returned by this method is bound " @@ -8178,7 +8213,7 @@ msgstr "" "したオブジェクトを返します。このメソッドが返す値はこのコンテキストマネージャ" "を使う :keyword:`with` 文の :keyword:`!as` 節の識別子に束縛されます。" -#: ../../library/stdtypes.rst:5188 +#: ../../library/stdtypes.rst:5216 msgid "" "An example of a context manager that returns itself is a :term:`file " "object`. File objects return themselves from __enter__() to allow :func:" @@ -8189,7 +8224,7 @@ msgstr "" "返し、 :func:`open` が :keyword:`with` 文のコンテキスト式として使われるように" "します。" -#: ../../library/stdtypes.rst:5192 +#: ../../library/stdtypes.rst:5220 msgid "" "An example of a context manager that returns a related object is the one " "returned by :func:`decimal.localcontext`. These managers set the active " @@ -8204,7 +8239,7 @@ msgstr "" "うすることで, :keyword:`with` 文の本体の内部で、:keyword:`!with` 文の外側の" "コードに影響を与えずに、 10進数コンテキストを変更できます。" -#: ../../library/stdtypes.rst:5202 +#: ../../library/stdtypes.rst:5230 msgid "" "Exit the runtime context and return a Boolean flag indicating if any " "exception that occurred should be suppressed. If an exception occurred while " @@ -8217,7 +8252,7 @@ msgstr "" "合、引数にはその例外の型と値とトレースバック情報を渡します。そうでない場合、" "引数は全て ``None`` となります。" -#: ../../library/stdtypes.rst:5207 +#: ../../library/stdtypes.rst:5235 msgid "" "Returning a true value from this method will cause the :keyword:`with` " "statement to suppress the exception and continue execution with the " @@ -8232,7 +8267,7 @@ msgstr "" "実行を終えると例外の伝播が続きます。このメソッドの実行中に起きた例外は :" "keyword:`!with` 文の本体の実行中に起こった例外を置き換えてしまいます。" -#: ../../library/stdtypes.rst:5214 +#: ../../library/stdtypes.rst:5242 msgid "" "The exception passed in should never be reraised explicitly - instead, this " "method should return a false value to indicate that the method completed " @@ -8245,7 +8280,7 @@ msgstr "" "るべきです。このようにすればコンテキストマネージャは :meth:`~object." "__exit__` メソッド自体が失敗したのかどうかを簡単に見分けることができます。" -#: ../../library/stdtypes.rst:5220 +#: ../../library/stdtypes.rst:5248 msgid "" "Python defines several context managers to support easy thread " "synchronisation, prompt closure of files or other objects, and simpler " @@ -8259,7 +8294,7 @@ msgstr "" "ているという以上の特別の取り扱いを受けるわけではありません。例については :" "mod:`contextlib` モジュールを参照してください。" -#: ../../library/stdtypes.rst:5226 +#: ../../library/stdtypes.rst:5254 msgid "" "Python's :term:`generator`\\s and the :class:`contextlib.contextmanager` " "decorator provide a convenient way to implement these protocols. If a " @@ -8276,7 +8311,7 @@ msgstr "" "`~contextmanager.__exit__` メソッドを実装したコンテキストマネージャを返すよう" "になります。" -#: ../../library/stdtypes.rst:5233 +#: ../../library/stdtypes.rst:5261 msgid "" "Note that there is no specific slot for any of these methods in the type " "structure for Python objects in the Python/C API. Extension types wanting to " @@ -8290,7 +8325,7 @@ msgstr "" "供しなければなりません。実行時コンテキストを準備するオーバーヘッドに比べた" "ら、一回のクラス辞書の探索のオーバーヘッドは無視できます。" -#: ../../library/stdtypes.rst:5241 +#: ../../library/stdtypes.rst:5269 msgid "" "Type Annotation Types --- :ref:`Generic Alias `, :ref:" "`Union `" @@ -8298,7 +8333,7 @@ msgstr "" "型アノテーション型 --- :ref:`ジェネリックエイリアス ` 、 :ref:`ユニオン `" -#: ../../library/stdtypes.rst:5246 +#: ../../library/stdtypes.rst:5274 msgid "" "The core built-in types for :term:`type annotations ` are :ref:" "`Generic Alias ` and :ref:`Union `." @@ -8307,11 +8342,11 @@ msgstr "" "リックエイリアス ` と :ref:`ユニオン ` で" "す。" -#: ../../library/stdtypes.rst:5253 +#: ../../library/stdtypes.rst:5281 msgid "Generic Alias Type" msgstr "ジェネリックエイリアス型" -#: ../../library/stdtypes.rst:5259 +#: ../../library/stdtypes.rst:5287 msgid "" "``GenericAlias`` objects are generally created by :ref:`subscripting " "` a class. They are most often used with :ref:`container " @@ -8329,7 +8364,7 @@ msgstr "" "``GenericAlias`` オブジェクトは主に :term:`型アノテーション ` の" "用途で使われます。" -#: ../../library/stdtypes.rst:5269 +#: ../../library/stdtypes.rst:5297 msgid "" "It is generally only possible to subscript a class if the class implements " "the special method :meth:`~object.__class_getitem__`." @@ -8337,7 +8372,7 @@ msgstr "" "一般に、クラスへの添字表記は、そのクラスが特殊メソッド :meth:`~object." "__class_getitem__` を実装しているときに限り可能です。" -#: ../../library/stdtypes.rst:5272 +#: ../../library/stdtypes.rst:5300 msgid "" "A ``GenericAlias`` object acts as a proxy for a :term:`generic type`, " "implementing *parameterized generics*." @@ -8345,7 +8380,7 @@ msgstr "" "``GenericAlias`` オブジェクトは *パラメータ付きジェネリック型* を実装したジェ" "ネリック型 (:term:`generic type`) の代用として振る舞います。" -#: ../../library/stdtypes.rst:5275 +#: ../../library/stdtypes.rst:5303 msgid "" "For a container class, the argument(s) supplied to a :ref:`subscription " "` of the class may indicate the type(s) of the elements an " @@ -8358,7 +8393,7 @@ msgstr "" "えば ``set[bytes]`` という表記は、全ての要素が :class:`bytes` であるような :" "class:`set` をあらわす型アノテーションとして使うことができます。" -#: ../../library/stdtypes.rst:5281 +#: ../../library/stdtypes.rst:5309 msgid "" "For a class which defines :meth:`~object.__class_getitem__` but is not a " "container, the argument(s) supplied to a subscription of the class will " @@ -8372,7 +8407,7 @@ msgstr "" "す。たとえば、 :mod:`正規表現操作 ` は :class:`str` と :class:`bytes` の" "両方のデータ型に対して使うことができます:" -#: ../../library/stdtypes.rst:5287 +#: ../../library/stdtypes.rst:5315 msgid "" "If ``x = re.search('foo', 'foo')``, ``x`` will be a :ref:`re.Match ` object where the return values of ``x.group(0)`` and ``x[0]`` will " @@ -8384,7 +8419,7 @@ msgstr "" "も :class:`str` となります。このようなオブジェクトは、 ``GenericAlias`` を" "使った型アノテーション ``re.Match[str]`` で表現することができます。" -#: ../../library/stdtypes.rst:5293 +#: ../../library/stdtypes.rst:5321 msgid "" "If ``y = re.search(b'bar', b'bar')``, (note the ``b`` for :class:`bytes`), " "``y`` will also be an instance of ``re.Match``, but the return values of ``y." @@ -8398,7 +8433,7 @@ msgstr "" "アノテーションでは、このような :ref:`re.Match ` オブジェクト" "は ``re.Match[bytes]`` と表現することになるでしょう。" -#: ../../library/stdtypes.rst:5299 +#: ../../library/stdtypes.rst:5327 msgid "" "``GenericAlias`` objects are instances of the class :class:`types." "GenericAlias`, which can also be used to create ``GenericAlias`` objects " @@ -8408,7 +8443,7 @@ msgstr "" "ンスです。このクラスは直接 ``GenericAlias`` オブジェクトを生成するのに使うこ" "ともできます。" -#: ../../library/stdtypes.rst:5305 +#: ../../library/stdtypes.rst:5333 msgid "" "Creates a ``GenericAlias`` representing a type ``T`` parameterized by types " "*X*, *Y*, and more depending on the ``T`` used. For example, a function " @@ -8419,13 +8454,13 @@ msgstr "" "す。たとえば、 :class:`float` 型の要素を含む :class:`list` を引数にとる関数の" "型アノテーションは次のようになります::" -#: ../../library/stdtypes.rst:5310 +#: ../../library/stdtypes.rst:5338 msgid "" "def average(values: list[float]) -> float:\n" " return sum(values) / len(values)" msgstr "" -#: ../../library/stdtypes.rst:5313 +#: ../../library/stdtypes.rst:5341 msgid "" "Another example for :term:`mapping` objects, using a :class:`dict`, which is " "a generic type expecting two type parameters representing the key type and " @@ -8437,13 +8472,13 @@ msgstr "" "ています。この例では、関数はキーが :class:`str` 型、値が :class:`int` 型であ" "るような ``dict`` を引数にとります::" -#: ../../library/stdtypes.rst:5318 +#: ../../library/stdtypes.rst:5346 msgid "" "def send_post_request(url: str, body: dict[str, int]) -> None:\n" " ..." msgstr "" -#: ../../library/stdtypes.rst:5321 +#: ../../library/stdtypes.rst:5349 msgid "" "The builtin functions :func:`isinstance` and :func:`issubclass` do not " "accept ``GenericAlias`` types for their second argument::" @@ -8451,7 +8486,7 @@ msgstr "" "組み込み関数 :func:`isinstance` と :func:`issubclass` は第二引数として " "``GenericAlias`` 型を指定することはできません::" -#: ../../library/stdtypes.rst:5324 +#: ../../library/stdtypes.rst:5352 msgid "" ">>> isinstance([1, 2], list[str])\n" "Traceback (most recent call last):\n" @@ -8459,7 +8494,7 @@ msgid "" "TypeError: isinstance() argument 2 cannot be a parameterized generic" msgstr "" -#: ../../library/stdtypes.rst:5329 +#: ../../library/stdtypes.rst:5357 msgid "" "The Python runtime does not enforce :term:`type annotations `. " "This extends to generic types and their type parameters. When creating a " @@ -8473,14 +8508,14 @@ msgstr "" "せん。たとえば、以下のコードは推奨されませんが、エラーになることなく実行でき" "ます::" -#: ../../library/stdtypes.rst:5335 +#: ../../library/stdtypes.rst:5363 msgid "" ">>> t = list[str]\n" ">>> t([1, 2, 3])\n" "[1, 2, 3]" msgstr "" -#: ../../library/stdtypes.rst:5339 +#: ../../library/stdtypes.rst:5367 msgid "" "Furthermore, parameterized generics erase type parameters during object " "creation::" @@ -8488,7 +8523,7 @@ msgstr "" "しかも、パラメータ付きジェネリック型は、オブジェクト生成時にパラメータの型情" "報を削除します::" -#: ../../library/stdtypes.rst:5342 +#: ../../library/stdtypes.rst:5370 msgid "" ">>> t = list[str]\n" ">>> type(t)\n" @@ -8499,7 +8534,7 @@ msgid "" "" msgstr "" -#: ../../library/stdtypes.rst:5350 +#: ../../library/stdtypes.rst:5378 msgid "" "Calling :func:`repr` or :func:`str` on a generic shows the parameterized " "type::" @@ -8507,7 +8542,7 @@ msgstr "" ":func:`repr` や :func:`str` のジェネリック型に対する呼び出しは、パラメータ型" "を表示します::" -#: ../../library/stdtypes.rst:5352 +#: ../../library/stdtypes.rst:5380 msgid "" ">>> repr(list[int])\n" "'list[int]'\n" @@ -8516,7 +8551,7 @@ msgid "" "'list[int]'" msgstr "" -#: ../../library/stdtypes.rst:5358 +#: ../../library/stdtypes.rst:5386 msgid "" "The :meth:`~object.__getitem__` method of generic containers will raise an " "exception to disallow mistakes like ``dict[str][str]``::" @@ -8524,7 +8559,7 @@ msgstr "" "ジェネリックコンテナ型の :meth:`~object.__getitem__` メソッドは、 ``dict[str]" "[str]`` のようなミスを許さないように、例外を送出します::" -#: ../../library/stdtypes.rst:5361 +#: ../../library/stdtypes.rst:5389 msgid "" ">>> dict[str][str]\n" "Traceback (most recent call last):\n" @@ -8532,7 +8567,7 @@ msgid "" "TypeError: dict[str] is not a generic class" msgstr "" -#: ../../library/stdtypes.rst:5366 +#: ../../library/stdtypes.rst:5394 msgid "" "However, such expressions are valid when :ref:`type variables ` " "are used. The index must have as many elements as there are type variable " @@ -8542,7 +8577,7 @@ msgstr "" "数は``GenericAlias`` オブジェクトの :attr:`~genericalias.__args__` 属性におけ" "る型変数の数と同じでなければなりません::" -#: ../../library/stdtypes.rst:5370 +#: ../../library/stdtypes.rst:5398 msgid "" ">>> from typing import TypeVar\n" ">>> Y = TypeVar('Y')\n" @@ -8550,11 +8585,11 @@ msgid "" "dict[str, int]" msgstr "" -#: ../../library/stdtypes.rst:5377 +#: ../../library/stdtypes.rst:5405 msgid "Standard Generic Classes" msgstr "標準ジェネリッククラス" -#: ../../library/stdtypes.rst:5379 +#: ../../library/stdtypes.rst:5407 msgid "" "The following standard library classes support parameterized generics. This " "list is non-exhaustive." @@ -8562,247 +8597,247 @@ msgstr "" "以下の標準ライブラリクラスは、パラメータ付きジェネリック型をサポートします。" "このリストは完全に網羅されていない可能性があります。" -#: ../../library/stdtypes.rst:5382 +#: ../../library/stdtypes.rst:5410 msgid ":class:`tuple`" msgstr ":class:`tuple`" -#: ../../library/stdtypes.rst:5383 +#: ../../library/stdtypes.rst:5411 msgid ":class:`list`" msgstr ":class:`list`" -#: ../../library/stdtypes.rst:5384 +#: ../../library/stdtypes.rst:5412 msgid ":class:`dict`" msgstr ":class:`dict`" -#: ../../library/stdtypes.rst:5385 +#: ../../library/stdtypes.rst:5413 msgid ":class:`set`" msgstr ":class:`set`" -#: ../../library/stdtypes.rst:5386 +#: ../../library/stdtypes.rst:5414 msgid ":class:`frozenset`" msgstr ":class:`frozenset`" -#: ../../library/stdtypes.rst:5387 +#: ../../library/stdtypes.rst:5415 msgid ":class:`type`" msgstr ":class:`type`" -#: ../../library/stdtypes.rst:5388 +#: ../../library/stdtypes.rst:5416 msgid ":class:`asyncio.Future`" msgstr "" -#: ../../library/stdtypes.rst:5389 +#: ../../library/stdtypes.rst:5417 msgid ":class:`asyncio.Task`" msgstr "" -#: ../../library/stdtypes.rst:5390 +#: ../../library/stdtypes.rst:5418 msgid ":class:`collections.deque`" msgstr ":class:`collections.deque`" -#: ../../library/stdtypes.rst:5391 +#: ../../library/stdtypes.rst:5419 msgid ":class:`collections.defaultdict`" msgstr ":class:`collections.defaultdict`" -#: ../../library/stdtypes.rst:5392 +#: ../../library/stdtypes.rst:5420 msgid ":class:`collections.OrderedDict`" msgstr ":class:`collections.OrderedDict`" -#: ../../library/stdtypes.rst:5393 +#: ../../library/stdtypes.rst:5421 msgid ":class:`collections.Counter`" msgstr ":class:`collections.Counter`" -#: ../../library/stdtypes.rst:5394 +#: ../../library/stdtypes.rst:5422 msgid ":class:`collections.ChainMap`" msgstr ":class:`collections.ChainMap`" -#: ../../library/stdtypes.rst:5395 +#: ../../library/stdtypes.rst:5423 msgid ":class:`collections.abc.Awaitable`" msgstr "’’:class:`collections.abc.Awaitable`" -#: ../../library/stdtypes.rst:5396 +#: ../../library/stdtypes.rst:5424 msgid ":class:`collections.abc.Coroutine`" msgstr ":class:`collections.abc.Coroutine`" -#: ../../library/stdtypes.rst:5397 +#: ../../library/stdtypes.rst:5425 msgid ":class:`collections.abc.AsyncIterable`" msgstr ":class:`collections.abc.AsyncIterable`" -#: ../../library/stdtypes.rst:5398 +#: ../../library/stdtypes.rst:5426 msgid ":class:`collections.abc.AsyncIterator`" msgstr ":class:`collections.abc.AsyncIterator`" -#: ../../library/stdtypes.rst:5399 +#: ../../library/stdtypes.rst:5427 msgid ":class:`collections.abc.AsyncGenerator`" msgstr ":class:`collections.abc.AsyncGenerator`" -#: ../../library/stdtypes.rst:5400 +#: ../../library/stdtypes.rst:5428 msgid ":class:`collections.abc.Iterable`" msgstr ":class:`collections.abc.Iterable`" -#: ../../library/stdtypes.rst:5401 +#: ../../library/stdtypes.rst:5429 msgid ":class:`collections.abc.Iterator`" msgstr ":class:`collections.abc.Iterator`" -#: ../../library/stdtypes.rst:5402 +#: ../../library/stdtypes.rst:5430 msgid ":class:`collections.abc.Generator`" msgstr ":class:`collections.abc.Generator`" -#: ../../library/stdtypes.rst:5403 +#: ../../library/stdtypes.rst:5431 msgid ":class:`collections.abc.Reversible`" msgstr ":class:`collections.abc.Reversible`" -#: ../../library/stdtypes.rst:5404 +#: ../../library/stdtypes.rst:5432 msgid ":class:`collections.abc.Container`" msgstr ":class:`collections.abc.Container`" -#: ../../library/stdtypes.rst:5405 +#: ../../library/stdtypes.rst:5433 msgid ":class:`collections.abc.Collection`" msgstr ":class:`collections.abc.Collection`" -#: ../../library/stdtypes.rst:5406 +#: ../../library/stdtypes.rst:5434 msgid ":class:`collections.abc.Callable`" msgstr ":class:`collections.abc.Callable`" -#: ../../library/stdtypes.rst:5407 +#: ../../library/stdtypes.rst:5435 msgid ":class:`collections.abc.Set`" msgstr ":class:`collections.abc.Set`" -#: ../../library/stdtypes.rst:5408 +#: ../../library/stdtypes.rst:5436 msgid ":class:`collections.abc.MutableSet`" msgstr ":class:`collections.abc.MutableSet`" -#: ../../library/stdtypes.rst:5409 +#: ../../library/stdtypes.rst:5437 msgid ":class:`collections.abc.Mapping`" msgstr ":class:`collections.abc.Mapping`" -#: ../../library/stdtypes.rst:5410 +#: ../../library/stdtypes.rst:5438 msgid ":class:`collections.abc.MutableMapping`" msgstr ":class:`collections.abc.MutableMapping`" -#: ../../library/stdtypes.rst:5411 +#: ../../library/stdtypes.rst:5439 msgid ":class:`collections.abc.Sequence`" msgstr ":class:`collections.abc.Sequence`" -#: ../../library/stdtypes.rst:5412 +#: ../../library/stdtypes.rst:5440 msgid ":class:`collections.abc.MutableSequence`" msgstr ":class:`collections.abc.MutableSequence`" -#: ../../library/stdtypes.rst:5413 +#: ../../library/stdtypes.rst:5441 msgid ":class:`collections.abc.MappingView`" msgstr ":class:`collections.abc.MappingView`" -#: ../../library/stdtypes.rst:5414 +#: ../../library/stdtypes.rst:5442 msgid ":class:`collections.abc.KeysView`" msgstr ":class:`collections.abc.KeysView`" -#: ../../library/stdtypes.rst:5415 +#: ../../library/stdtypes.rst:5443 msgid ":class:`collections.abc.ItemsView`" msgstr ":class:`collections.abc.ItemsView`" -#: ../../library/stdtypes.rst:5416 +#: ../../library/stdtypes.rst:5444 msgid ":class:`collections.abc.ValuesView`" msgstr ":class:`collections.abc.ValuesView`" -#: ../../library/stdtypes.rst:5417 +#: ../../library/stdtypes.rst:5445 msgid ":class:`contextlib.AbstractContextManager`" msgstr ":class:`contextlib.AbstractContextManager`" -#: ../../library/stdtypes.rst:5418 +#: ../../library/stdtypes.rst:5446 msgid ":class:`contextlib.AbstractAsyncContextManager`" msgstr ":class:`contextlib.AbstractAsyncContextManager`" -#: ../../library/stdtypes.rst:5419 +#: ../../library/stdtypes.rst:5447 msgid ":class:`dataclasses.Field`" msgstr ":class:`dataclasses.Field`" -#: ../../library/stdtypes.rst:5420 +#: ../../library/stdtypes.rst:5448 msgid ":class:`functools.cached_property`" msgstr ":class:`functools.cached_property`" -#: ../../library/stdtypes.rst:5421 +#: ../../library/stdtypes.rst:5449 msgid ":class:`functools.partialmethod`" msgstr ":class:`functools.partialmethod`" -#: ../../library/stdtypes.rst:5422 +#: ../../library/stdtypes.rst:5450 msgid ":class:`os.PathLike`" msgstr ":class:`os.PathLike`" -#: ../../library/stdtypes.rst:5423 +#: ../../library/stdtypes.rst:5451 msgid ":class:`queue.LifoQueue`" msgstr ":class:`queue.LifoQueue`" -#: ../../library/stdtypes.rst:5424 +#: ../../library/stdtypes.rst:5452 msgid ":class:`queue.Queue`" msgstr ":class:`queue.Queue`" -#: ../../library/stdtypes.rst:5425 +#: ../../library/stdtypes.rst:5453 msgid ":class:`queue.PriorityQueue`" msgstr ":class:`queue.PriorityQueue`" -#: ../../library/stdtypes.rst:5426 +#: ../../library/stdtypes.rst:5454 msgid ":class:`queue.SimpleQueue`" msgstr ":class:`queue.SimpleQueue`" -#: ../../library/stdtypes.rst:5427 +#: ../../library/stdtypes.rst:5455 msgid ":ref:`re.Pattern `" msgstr ":ref:`re.Pattern `" -#: ../../library/stdtypes.rst:5428 +#: ../../library/stdtypes.rst:5456 msgid ":ref:`re.Match `" msgstr ":ref:`re.Match `" -#: ../../library/stdtypes.rst:5429 +#: ../../library/stdtypes.rst:5457 msgid ":class:`shelve.BsdDbShelf`" msgstr ":class:`shelve.BsdDbShelf`" -#: ../../library/stdtypes.rst:5430 +#: ../../library/stdtypes.rst:5458 msgid ":class:`shelve.DbfilenameShelf`" msgstr ":class:`shelve.DbfilenameShelf`" -#: ../../library/stdtypes.rst:5431 +#: ../../library/stdtypes.rst:5459 msgid ":class:`shelve.Shelf`" msgstr ":class:`shelve.Shelf`" -#: ../../library/stdtypes.rst:5432 +#: ../../library/stdtypes.rst:5460 msgid ":class:`types.MappingProxyType`" msgstr ":class:`types.MappingProxyType`" -#: ../../library/stdtypes.rst:5433 +#: ../../library/stdtypes.rst:5461 msgid ":class:`weakref.WeakKeyDictionary`" msgstr ":class:`weakref.WeakKeyDictionary`" -#: ../../library/stdtypes.rst:5434 +#: ../../library/stdtypes.rst:5462 msgid ":class:`weakref.WeakMethod`" msgstr ":class:`weakref.WeakMethod`" -#: ../../library/stdtypes.rst:5435 +#: ../../library/stdtypes.rst:5463 msgid ":class:`weakref.WeakSet`" msgstr ":class:`weakref.WeakSet`" -#: ../../library/stdtypes.rst:5436 +#: ../../library/stdtypes.rst:5464 msgid ":class:`weakref.WeakValueDictionary`" msgstr ":class:`weakref.WeakValueDictionary`" -#: ../../library/stdtypes.rst:5441 +#: ../../library/stdtypes.rst:5469 msgid "Special Attributes of ``GenericAlias`` objects" msgstr "``GenericAlias`` オブジェクトの特別な属性" -#: ../../library/stdtypes.rst:5443 +#: ../../library/stdtypes.rst:5471 msgid "All parameterized generics implement special read-only attributes." msgstr "" "全てのパラメータ付きジェネリック型は、下記に示す読み出し専用の属性を実装して" "います。" -#: ../../library/stdtypes.rst:5447 +#: ../../library/stdtypes.rst:5475 msgid "This attribute points at the non-parameterized generic class::" msgstr "この属性は、対応するパラメータ付きでないジェネリッククラスを指します::" -#: ../../library/stdtypes.rst:5449 +#: ../../library/stdtypes.rst:5477 msgid "" ">>> list[int].__origin__\n" "" msgstr "" -#: ../../library/stdtypes.rst:5455 +#: ../../library/stdtypes.rst:5483 msgid "" "This attribute is a :class:`tuple` (possibly of length 1) of generic types " "passed to the original :meth:`~object.__class_getitem__` of the generic " @@ -8811,13 +8846,13 @@ msgstr "" "この属性は、ジェネリッククラスの元の :meth:`~object.__class_getitem__` に渡さ" "れた :class:`tuple` です (長さが1の場合もあります)::" -#: ../../library/stdtypes.rst:5459 +#: ../../library/stdtypes.rst:5487 msgid "" ">>> dict[str, list[int]].__args__\n" "(, list[int])" msgstr "" -#: ../../library/stdtypes.rst:5465 +#: ../../library/stdtypes.rst:5493 msgid "" "This attribute is a lazily computed tuple (possibly empty) of unique type " "variables found in ``__args__``::" @@ -8825,7 +8860,7 @@ msgstr "" "この属性は、 ``__args__`` にある固有の型変数のタプルで、必要に応じて遅延計算" "されます (空の可能性もあります)::" -#: ../../library/stdtypes.rst:5468 +#: ../../library/stdtypes.rst:5496 msgid "" ">>> from typing import TypeVar\n" "\n" @@ -8834,7 +8869,7 @@ msgid "" "(~T,)" msgstr "" -#: ../../library/stdtypes.rst:5476 +#: ../../library/stdtypes.rst:5504 msgid "" "A ``GenericAlias`` object with :class:`typing.ParamSpec` parameters may not " "have correct ``__parameters__`` after substitution because :class:`typing." @@ -8844,7 +8879,7 @@ msgstr "" "代入後に正しい ``__parameters__`` を持たない可能性があります。これは :class:" "`typing.ParamSpec` が主に静的な型チェックを目的としているためです。" -#: ../../library/stdtypes.rst:5483 +#: ../../library/stdtypes.rst:5511 msgid "" "A boolean that is true if the alias has been unpacked using the ``*`` " "operator (see :data:`~typing.TypeVarTuple`)." @@ -8852,20 +8887,20 @@ msgstr "" "これは、型エイリアスが ``*`` 演算子を使って取り出された場合に真となる真偽値で" "す (:data:`~typing.TypeVarTuple` を参照してください)。" -#: ../../library/stdtypes.rst:5491 +#: ../../library/stdtypes.rst:5519 msgid ":pep:`484` - Type Hints" msgstr ":pep:`484` - 型ヒント" -#: ../../library/stdtypes.rst:5492 +#: ../../library/stdtypes.rst:5520 msgid "Introducing Python's framework for type annotations." msgstr "型アノテーションのための Python のフレームワークへの導入です。" -#: ../../library/stdtypes.rst:5494 +#: ../../library/stdtypes.rst:5522 msgid ":pep:`585` - Type Hinting Generics In Standard Collections" msgstr "" ":pep:`585` - 標準コレクション型の型ヒントにおける総称型 (generics) の使用" -#: ../../library/stdtypes.rst:5495 +#: ../../library/stdtypes.rst:5523 msgid "" "Introducing the ability to natively parameterize standard-library classes, " "provided they implement the special class method :meth:`~object." @@ -8875,7 +8910,7 @@ msgstr "" "標準ライブラリのクラスに対してネイティブにパラメータ表記を可能にする機能への" "導入です。" -#: ../../library/stdtypes.rst:5499 +#: ../../library/stdtypes.rst:5527 msgid "" ":ref:`Generics`, :ref:`user-defined generics ` and :" "class:`typing.Generic`" @@ -8883,7 +8918,7 @@ msgstr "" ":ref:`Generics`, :ref:`ユーザー定義のジェネリック型 `, および :class:`typing.Generic`" -#: ../../library/stdtypes.rst:5500 +#: ../../library/stdtypes.rst:5528 msgid "" "Documentation on how to implement generic classes that can be parameterized " "at runtime and understood by static type-checkers." @@ -8891,11 +8926,11 @@ msgstr "" "実行時にパラメータ設定が可能であり、かつ静的な型チェッカーが理解できるジェネ" "リッククラスを実装する方法のドキュメントです。" -#: ../../library/stdtypes.rst:5509 +#: ../../library/stdtypes.rst:5537 msgid "Union Type" msgstr "Union 型" -#: ../../library/stdtypes.rst:5515 +#: ../../library/stdtypes.rst:5543 msgid "" "A union object holds the value of the ``|`` (bitwise or) operation on " "multiple :ref:`type objects `. These types are intended " @@ -8904,7 +8939,7 @@ msgid "" "class:`typing.Union`." msgstr "" -#: ../../library/stdtypes.rst:5522 +#: ../../library/stdtypes.rst:5550 msgid "" "Defines a union object which holds types *X*, *Y*, and so forth. ``X | Y`` " "means either X or Y. It is equivalent to ``typing.Union[X, Y]``. For " @@ -8916,13 +8951,13 @@ msgstr "" "以下の関数は引数として :class:`int` 型または :class:`float` 型を想定していま" "す。::" -#: ../../library/stdtypes.rst:5527 +#: ../../library/stdtypes.rst:5555 msgid "" "def square(number: int | float) -> int | float:\n" " return number ** 2" msgstr "" -#: ../../library/stdtypes.rst:5532 +#: ../../library/stdtypes.rst:5560 msgid "" "The ``|`` operand cannot be used at runtime to define unions where one or " "more members is a forward reference. For example, ``int | \"Foo\"``, where " @@ -8936,56 +8971,56 @@ msgstr "" "前方参照を含むユニオンは、 ``\"int | Foo\"`` のように、ユニオン全体を文字列と" "してあらわしてください。" -#: ../../library/stdtypes.rst:5540 +#: ../../library/stdtypes.rst:5568 msgid "" "Union objects can be tested for equality with other union objects. Details:" msgstr "" "Unionオブジェクトは他のUnionオブジェクトとの等価性をテストできます。以下は詳" "細です:" -#: ../../library/stdtypes.rst:5542 +#: ../../library/stdtypes.rst:5570 msgid "Unions of unions are flattened::" msgstr "ユニオン型のユニオン型は平滑化されます::" -#: ../../library/stdtypes.rst:5544 +#: ../../library/stdtypes.rst:5572 msgid "(int | str) | float == int | str | float" msgstr "" -#: ../../library/stdtypes.rst:5546 +#: ../../library/stdtypes.rst:5574 msgid "Redundant types are removed::" msgstr "余分な型は削除されます::" -#: ../../library/stdtypes.rst:5548 +#: ../../library/stdtypes.rst:5576 msgid "int | str | int == int | str" msgstr "" -#: ../../library/stdtypes.rst:5550 +#: ../../library/stdtypes.rst:5578 msgid "When comparing unions, the order is ignored::" msgstr "ユニオン型を比較すると順序は無視されます::" -#: ../../library/stdtypes.rst:5552 +#: ../../library/stdtypes.rst:5580 msgid "int | str == str | int" msgstr "" -#: ../../library/stdtypes.rst:5554 +#: ../../library/stdtypes.rst:5582 msgid "It creates instances of :class:`typing.Union`::" msgstr "" -#: ../../library/stdtypes.rst:5556 +#: ../../library/stdtypes.rst:5584 msgid "" "int | str == typing.Union[int, str]\n" "type(int | str) is typing.Union" msgstr "" -#: ../../library/stdtypes.rst:5559 +#: ../../library/stdtypes.rst:5587 msgid "Optional types can be spelled as a union with ``None``::" msgstr "Optional型は ``None`` とのUnion型で記述できます::" -#: ../../library/stdtypes.rst:5561 +#: ../../library/stdtypes.rst:5589 msgid "str | None == typing.Optional[str]" msgstr "" -#: ../../library/stdtypes.rst:5566 +#: ../../library/stdtypes.rst:5594 msgid "" "Calls to :func:`isinstance` and :func:`issubclass` are also supported with a " "union object::" @@ -8993,13 +9028,13 @@ msgstr "" ":func:`isinstance` と :func:`issubclass` の呼び出しはどちらもUnionオブジェク" "トをサポートしています。 " -#: ../../library/stdtypes.rst:5569 +#: ../../library/stdtypes.rst:5597 msgid "" ">>> isinstance(\"\", int | str)\n" "True" msgstr "" -#: ../../library/stdtypes.rst:5572 +#: ../../library/stdtypes.rst:5600 msgid "" "However, :ref:`parameterized generics ` in union objects " "cannot be checked::" @@ -9007,7 +9042,7 @@ msgstr "" "しかし、Unionオブジェクトの中の :ref:`parameterized generics ` はチェックできません::" -#: ../../library/stdtypes.rst:5575 +#: ../../library/stdtypes.rst:5603 msgid "" ">>> isinstance(1, int | list[int]) # short-circuit evaluation\n" "True\n" @@ -9017,13 +9052,13 @@ msgid "" "TypeError: isinstance() argument 2 cannot be a parameterized generic" msgstr "" -#: ../../library/stdtypes.rst:5582 +#: ../../library/stdtypes.rst:5610 msgid "" "The user-exposed type for the union object can be accessed from :class:" "`typing.Union` and used for :func:`isinstance` checks::" msgstr "" -#: ../../library/stdtypes.rst:5585 +#: ../../library/stdtypes.rst:5613 msgid "" ">>> import typing\n" ">>> isinstance(int | str, typing.Union)\n" @@ -9034,7 +9069,7 @@ msgid "" "TypeError: cannot create 'typing.Union' instances" msgstr "" -#: ../../library/stdtypes.rst:5594 +#: ../../library/stdtypes.rst:5622 msgid "" "The :meth:`!__or__` method for type objects was added to support the syntax " "``X | Y``. If a metaclass implements :meth:`!__or__`, the Union may " @@ -9044,7 +9079,7 @@ msgstr "" "が追加されました。メタクラスで :meth:`!__or__` を実装するとUnionをオーバーラ" "イドする場合があります::" -#: ../../library/stdtypes.rst:5598 +#: ../../library/stdtypes.rst:5626 msgid "" ">>> class M(type):\n" "... def __or__(self, other):\n" @@ -9059,22 +9094,22 @@ msgid "" "int | C" msgstr "" -#: ../../library/stdtypes.rst:5614 +#: ../../library/stdtypes.rst:5642 msgid ":pep:`604` -- PEP proposing the ``X | Y`` syntax and the Union type." msgstr ":pep:`604` -- ``X | Y`` 構文とUnion型を提案しているPEP" -#: ../../library/stdtypes.rst:5620 +#: ../../library/stdtypes.rst:5648 msgid "" "Union objects are now instances of :class:`typing.Union`. Previously, they " "were instances of :class:`types.UnionType`, which remains an alias for :" "class:`typing.Union`." msgstr "" -#: ../../library/stdtypes.rst:5627 +#: ../../library/stdtypes.rst:5655 msgid "Other Built-in Types" msgstr "その他の組み込み型" -#: ../../library/stdtypes.rst:5629 +#: ../../library/stdtypes.rst:5657 msgid "" "The interpreter supports several other kinds of objects. Most of these " "support only one or two operations." @@ -9082,11 +9117,11 @@ msgstr "" "インタプリタは、その他いくつかの種類のオブジェクトをサポートしています。これ" "らのほとんどは 1 つまたは 2 つの演算だけをサポートしています。" -#: ../../library/stdtypes.rst:5636 +#: ../../library/stdtypes.rst:5664 msgid "Modules" msgstr "モジュール" -#: ../../library/stdtypes.rst:5638 +#: ../../library/stdtypes.rst:5666 msgid "" "The only special operation on a module is attribute access: ``m.name``, " "where *m* is a module and *name* accesses a name defined in *m*'s symbol " @@ -9103,7 +9138,7 @@ msgstr "" "ん; ``import foo`` は *foo* と名づけられたモジュールオブジェクトの存在を必要" "とはせず、*foo* と名づけられたモジュールの (外部の) *定義* を必要とします。)" -#: ../../library/stdtypes.rst:5645 +#: ../../library/stdtypes.rst:5673 msgid "" "A special attribute of every module is :attr:`~object.__dict__`. This is the " "dictionary containing the module's symbol table. Modifying this dictionary " @@ -9121,7 +9156,7 @@ msgstr "" "とはできません)。 :attr:`~object.__dict__` を直接書き換えることは推奨されませ" "ん。" -#: ../../library/stdtypes.rst:5653 +#: ../../library/stdtypes.rst:5681 msgid "" "Modules built into the interpreter are written like this: ````. If loaded from a file, they are written as ```` と書かれます。" -#: ../../library/stdtypes.rst:5661 +#: ../../library/stdtypes.rst:5689 msgid "Classes and Class Instances" msgstr "クラスおよびクラスインスタンス" -#: ../../library/stdtypes.rst:5663 +#: ../../library/stdtypes.rst:5691 msgid "See :ref:`objects` and :ref:`class` for these." msgstr "" "これらについては :ref:`objects` および :ref:`class` を参照してください。" -#: ../../library/stdtypes.rst:5669 +#: ../../library/stdtypes.rst:5697 msgid "Functions" msgstr "関数" -#: ../../library/stdtypes.rst:5671 +#: ../../library/stdtypes.rst:5699 msgid "" "Function objects are created by function definitions. The only operation on " "a function object is to call it: ``func(argument-list)``." @@ -9152,7 +9187,7 @@ msgstr "" "関数オブジェクトは関数定義によって生成されます。関数オブジェクトに対する唯一" "の操作は、それを呼び出すことです: ``func(argument-list)`` 。" -#: ../../library/stdtypes.rst:5674 +#: ../../library/stdtypes.rst:5702 msgid "" "There are really two flavors of function objects: built-in functions and " "user-defined functions. Both support the same operation (to call the " @@ -9163,15 +9198,15 @@ msgstr "" "す。どちらも同じ操作 (関数の呼び出し) をサポートしますが、実装は異なるので、" "オブジェクトの型も異なります。" -#: ../../library/stdtypes.rst:5678 +#: ../../library/stdtypes.rst:5706 msgid "See :ref:`function` for more information." msgstr "詳細は、 :ref:`function` を参照してください。" -#: ../../library/stdtypes.rst:5684 +#: ../../library/stdtypes.rst:5712 msgid "Methods" msgstr "メソッド" -#: ../../library/stdtypes.rst:5688 +#: ../../library/stdtypes.rst:5716 msgid "" "Methods are functions that are called using the attribute notation. There " "are two flavors: :ref:`built-in methods ` (such as :meth:" @@ -9183,7 +9218,7 @@ msgstr "" "と、:ref:`class instance method ` です。組み込みメソッド" "は、それをサポートする型と一緒に記述されています。" -#: ../../library/stdtypes.rst:5693 +#: ../../library/stdtypes.rst:5721 msgid "" "If you access a method (a function defined in a class namespace) through an " "instance, you get a special object: a :dfn:`bound method` (also called :ref:" @@ -9205,7 +9240,7 @@ msgstr "" "``m(arg-1, arg-2, ..., arg-n)`` の呼び出しは、 ``m.__func__(m.__self__, " "arg-1, arg-2, ..., arg-n)`` の呼び出しと完全に等価です。" -#: ../../library/stdtypes.rst:5704 +#: ../../library/stdtypes.rst:5732 msgid "" "Like :ref:`function objects `, bound method objects " "support getting arbitrary attributes. However, since method attributes are " @@ -9223,7 +9258,7 @@ msgstr "" "ためには、次のようにその下層の関数オブジェクトに明示的に設定する必要がありま" "す::" -#: ../../library/stdtypes.rst:5712 +#: ../../library/stdtypes.rst:5740 msgid "" ">>> class C:\n" "... def method(self):\n" @@ -9239,15 +9274,15 @@ msgid "" "'my name is method'" msgstr "" -#: ../../library/stdtypes.rst:5727 +#: ../../library/stdtypes.rst:5755 msgid "See :ref:`instance-methods` for more information." msgstr "詳細は :ref:`instance-methods` を参照してください。" -#: ../../library/stdtypes.rst:5735 +#: ../../library/stdtypes.rst:5763 msgid "Code Objects" msgstr "コードオブジェクト" -#: ../../library/stdtypes.rst:5741 +#: ../../library/stdtypes.rst:5769 msgid "" "Code objects are used by the implementation to represent \"pseudo-compiled\" " "executable Python code such as a function body. They differ from function " @@ -9263,7 +9298,7 @@ msgstr "" "の :attr:`~function.__code__` 属性として取り出せます。 :mod:`code` モジュール" "も参照してください。" -#: ../../library/stdtypes.rst:5748 +#: ../../library/stdtypes.rst:5776 msgid "" "Accessing :attr:`~function.__code__` raises an :ref:`auditing event " "` ``object.__getattr__`` with arguments ``obj`` and " @@ -9273,7 +9308,7 @@ msgstr "" "と ``\"__code__\"`` を渡して行いますが、 :ref:`監査イベント ` を送" "出します。" -#: ../../library/stdtypes.rst:5755 +#: ../../library/stdtypes.rst:5783 msgid "" "A code object can be executed or evaluated by passing it (instead of a " "source string) to the :func:`exec` or :func:`eval` built-in functions." @@ -9281,15 +9316,15 @@ msgstr "" "コードオブジェクトは、組み込み関数 :func:`exec` や :func:`eval` に (ソース文" "字列の代わりに) 渡すことで、実行や評価できます。" -#: ../../library/stdtypes.rst:5758 +#: ../../library/stdtypes.rst:5786 msgid "See :ref:`types` for more information." msgstr "詳細は、 :ref:`types` を参照してください。" -#: ../../library/stdtypes.rst:5764 +#: ../../library/stdtypes.rst:5792 msgid "Type Objects" msgstr "型オブジェクト" -#: ../../library/stdtypes.rst:5770 +#: ../../library/stdtypes.rst:5798 msgid "" "Type objects represent the various object types. An object's type is " "accessed by the built-in function :func:`type`. There are no special " @@ -9300,15 +9335,15 @@ msgstr "" "数 :func:`type` でアクセスされます。型オブジェクトには特有の操作はありませ" "ん。標準モジュール :mod:`types` には全ての組み込み型名が定義されています。" -#: ../../library/stdtypes.rst:5775 +#: ../../library/stdtypes.rst:5803 msgid "Types are written like this: ````." msgstr "型はこのように書き表されます: ```` 。" -#: ../../library/stdtypes.rst:5781 +#: ../../library/stdtypes.rst:5809 msgid "The Null Object" msgstr "ヌルオブジェクト" -#: ../../library/stdtypes.rst:5783 +#: ../../library/stdtypes.rst:5811 msgid "" "This object is returned by functions that don't explicitly return a value. " "It supports no special operations. There is exactly one null object, named " @@ -9319,15 +9354,15 @@ msgstr "" "み名) と名づけられています。 ``type(None)()`` は同じシングルトンを作成しま" "す。" -#: ../../library/stdtypes.rst:5787 +#: ../../library/stdtypes.rst:5815 msgid "It is written as ``None``." msgstr "``None`` と書き表されます。" -#: ../../library/stdtypes.rst:5794 +#: ../../library/stdtypes.rst:5822 msgid "The Ellipsis Object" msgstr "Ellipsis オブジェクト" -#: ../../library/stdtypes.rst:5796 +#: ../../library/stdtypes.rst:5824 msgid "" "This object is commonly used by slicing (see :ref:`slicings`). It supports " "no special operations. There is exactly one ellipsis object, named :const:" @@ -9339,15 +9374,15 @@ msgstr "" "は一つだけで、その名前は :const:`Ellipsis` (組み込み名) です。" "``type(Ellipsis)()`` は単一の :const:`Ellipsis` を作成します。" -#: ../../library/stdtypes.rst:5801 +#: ../../library/stdtypes.rst:5829 msgid "It is written as ``Ellipsis`` or ``...``." msgstr "``Ellipsis`` または ``...`` と書き表されます。" -#: ../../library/stdtypes.rst:5807 +#: ../../library/stdtypes.rst:5835 msgid "The NotImplemented Object" msgstr "NotImplemented オブジェクト" -#: ../../library/stdtypes.rst:5809 +#: ../../library/stdtypes.rst:5837 msgid "" "This object is returned from comparisons and binary operations when they are " "asked to operate on types they don't support. See :ref:`comparisons` for " @@ -9359,15 +9394,15 @@ msgstr "" "い。 :data:`NotImplemented` オブジェクトは一つだけです。 :code:" "`type(NotImplemented)()` はこの単一のインスタンスを作成します。" -#: ../../library/stdtypes.rst:5814 +#: ../../library/stdtypes.rst:5842 msgid "It is written as :code:`NotImplemented`." msgstr ":code:`NotImplemented` と書き表されます。" -#: ../../library/stdtypes.rst:5820 +#: ../../library/stdtypes.rst:5848 msgid "Internal Objects" msgstr "内部オブジェクト" -#: ../../library/stdtypes.rst:5822 +#: ../../library/stdtypes.rst:5850 msgid "" "See :ref:`types` for this information. It describes :ref:`stack frame " "objects `, :ref:`traceback objects `, and " @@ -9377,11 +9412,11 @@ msgstr "" "objects>`、:ref:`traceback objects `、スライスオブジェクト" "について記述されています。" -#: ../../library/stdtypes.rst:5830 +#: ../../library/stdtypes.rst:5858 msgid "Special Attributes" msgstr "特殊属性" -#: ../../library/stdtypes.rst:5832 +#: ../../library/stdtypes.rst:5860 msgid "" "The implementation adds a few special read-only attributes to several object " "types, where they are relevant. Some of these are not reported by the :func:" @@ -9390,13 +9425,13 @@ msgstr "" "実装は、いくつかのオブジェクト型に対して、適切な場合には特殊な読み出し専用の" "属性を追加します。そのうちいくつかは :func:`dir` 組込み関数で報告されません。" -#: ../../library/stdtypes.rst:5839 +#: ../../library/stdtypes.rst:5867 msgid "" "The name of the class, function, method, descriptor, or generator instance." msgstr "" "クラス、関数、メソッド、デスクリプタ、ジェネレータインスタンスの名前です。" -#: ../../library/stdtypes.rst:5845 +#: ../../library/stdtypes.rst:5873 msgid "" "The :term:`qualified name` of the class, function, method, descriptor, or " "generator instance." @@ -9404,27 +9439,27 @@ msgstr "" "クラス、関数、メソッド、デスクリプタ、ジェネレータインスタンスの :term:`修飾" "名 ` です。" -#: ../../library/stdtypes.rst:5853 +#: ../../library/stdtypes.rst:5881 msgid "The name of the module in which a class or function was defined." msgstr "" -#: ../../library/stdtypes.rst:5858 +#: ../../library/stdtypes.rst:5886 msgid "" "The documentation string of a class or function, or ``None`` if undefined." msgstr "" -#: ../../library/stdtypes.rst:5863 +#: ../../library/stdtypes.rst:5891 msgid "" "The :ref:`type parameters ` of generic classes, functions, and :" "ref:`type aliases `. For classes and functions that are not " "generic, this will be an empty tuple." msgstr "" -#: ../../library/stdtypes.rst:5873 +#: ../../library/stdtypes.rst:5901 msgid "Integer string conversion length limitation" msgstr "整数と文字列の変換での長さ制限" -#: ../../library/stdtypes.rst:5875 +#: ../../library/stdtypes.rst:5903 msgid "" "CPython has a global limit for converting between :class:`int` and :class:" "`str` to mitigate denial of service attacks. This limit *only* applies to " @@ -9436,7 +9471,7 @@ msgstr "" "に *のみ* 適用されます。16進数、8進数と2進数は制限がありません。上限値は設定" "できます。" -#: ../../library/stdtypes.rst:5880 +#: ../../library/stdtypes.rst:5908 msgid "" "The :class:`int` type in CPython is an arbitrary length number stored in " "binary form (commonly known as a \"bignum\"). There exists no algorithm that " @@ -9453,14 +9488,14 @@ msgstr "" "CPU でも、 ``int('1' * 500_000)`` のような大きな数の変換は1秒以上かかる可能性" "があります。" -#: ../../library/stdtypes.rst:5887 +#: ../../library/stdtypes.rst:5915 msgid "" "Limiting conversion size offers a practical way to avoid :cve:`2020-10735`." msgstr "" "変換するサイズを制限することは、 :cve:`2020-10735` を回避する実践的な方法を提" "供します。" -#: ../../library/stdtypes.rst:5889 +#: ../../library/stdtypes.rst:5917 msgid "" "The limit is applied to the number of digit characters in the input or " "output string when a non-linear conversion algorithm would be involved. " @@ -9469,12 +9504,12 @@ msgstr "" "制限は、非線形な変換アルゴリズムが必要とされる場合に、入力または出力文字列の" "桁数に対して適用されます。アンダースコアや正負の符号はカウントされません。" -#: ../../library/stdtypes.rst:5893 +#: ../../library/stdtypes.rst:5921 msgid "" "When an operation would exceed the limit, a :exc:`ValueError` is raised:" msgstr "演算の結果が制限を超えると、:exc:`ValueError` が送出されます:" -#: ../../library/stdtypes.rst:5895 +#: ../../library/stdtypes.rst:5923 msgid "" ">>> import sys\n" ">>> sys.set_int_max_str_digits(4300) # Illustrative, this is the default.\n" @@ -9498,7 +9533,7 @@ msgid "" ">>> assert int(hex(i_squared), base=16) == i*i # Hexadecimal is unlimited." msgstr "" -#: ../../library/stdtypes.rst:5915 +#: ../../library/stdtypes.rst:5943 msgid "" "The default limit is 4300 digits as provided in :data:`sys.int_info." "default_max_str_digits `. The lowest limit that can be " @@ -9510,11 +9545,11 @@ msgstr "" "data:`sys.int_info.str_digits_check_threshold ` で定義されてい" "ます。" -#: ../../library/stdtypes.rst:5920 +#: ../../library/stdtypes.rst:5948 msgid "Verification:" msgstr "確認:" -#: ../../library/stdtypes.rst:5922 +#: ../../library/stdtypes.rst:5950 msgid "" ">>> import sys\n" ">>> assert sys.int_info.default_max_str_digits == 4300, sys.int_info\n" @@ -9525,11 +9560,11 @@ msgid "" "..." msgstr "" -#: ../../library/stdtypes.rst:5935 +#: ../../library/stdtypes.rst:5963 msgid "Affected APIs" msgstr "影響のあるAPI" -#: ../../library/stdtypes.rst:5937 +#: ../../library/stdtypes.rst:5965 msgid "" "The limitation only applies to potentially slow conversions between :class:" "`int` and :class:`str` or :class:`bytes`:" @@ -9537,23 +9572,23 @@ msgstr "" "制限は :class:`int` と :class:`str` または :class:`bytes` の間での変換で時間" "がかかる可能性があると適用されます:" -#: ../../library/stdtypes.rst:5940 +#: ../../library/stdtypes.rst:5968 msgid "``int(string)`` with default base 10." msgstr "``int(string)`` でデフォルトの基数10。" -#: ../../library/stdtypes.rst:5941 +#: ../../library/stdtypes.rst:5969 msgid "``int(string, base)`` for all bases that are not a power of 2." msgstr "``int(string, base)`` で2のべき乗以外のすべての基数。" -#: ../../library/stdtypes.rst:5942 +#: ../../library/stdtypes.rst:5970 msgid "``str(integer)``." msgstr "``str(integer)``" -#: ../../library/stdtypes.rst:5943 +#: ../../library/stdtypes.rst:5971 msgid "``repr(integer)``." msgstr "``repr(integer)``" -#: ../../library/stdtypes.rst:5944 +#: ../../library/stdtypes.rst:5972 msgid "" "any other string conversion to base 10, for example ``f\"{integer}\"``, " "``\"{}\".format(integer)``, or ``b\"%d\" % integer``." @@ -9561,39 +9596,39 @@ msgstr "" "他の10進数での文字列変換。たとえば ``f\"{integer}\"``、``\"{}\"." "format(integer)`` や ``b\"%d\" % integer``。 " -#: ../../library/stdtypes.rst:5947 +#: ../../library/stdtypes.rst:5975 msgid "The limitations do not apply to functions with a linear algorithm:" msgstr "制限は、線形アルゴリズムの関数では適用されません。" -#: ../../library/stdtypes.rst:5949 +#: ../../library/stdtypes.rst:5977 msgid "``int(string, base)`` with base 2, 4, 8, 16, or 32." msgstr "``int(string, base)`` で基数が2、4、8、16または32。" -#: ../../library/stdtypes.rst:5950 +#: ../../library/stdtypes.rst:5978 msgid ":func:`int.from_bytes` and :func:`int.to_bytes`." msgstr ":func:`int.from_bytes` と :func:`int.to_bytes` 。" -#: ../../library/stdtypes.rst:5951 +#: ../../library/stdtypes.rst:5979 msgid ":func:`hex`, :func:`oct`, :func:`bin`." msgstr ":func:`hex`, :func:`oct`, :func:`bin`." -#: ../../library/stdtypes.rst:5952 +#: ../../library/stdtypes.rst:5980 msgid ":ref:`formatspec` for hex, octal, and binary numbers." msgstr ":ref:`formatspec` での16進数、8進数、2進数での表現。" -#: ../../library/stdtypes.rst:5953 +#: ../../library/stdtypes.rst:5981 msgid ":class:`str` to :class:`float`." msgstr ":class:`str` から :class:`float`。" -#: ../../library/stdtypes.rst:5954 +#: ../../library/stdtypes.rst:5982 msgid ":class:`str` to :class:`decimal.Decimal`." msgstr ":class:`str` から :class:`decimal.Decimal`。" -#: ../../library/stdtypes.rst:5957 +#: ../../library/stdtypes.rst:5985 msgid "Configuring the limit" msgstr "上限値を設定する" -#: ../../library/stdtypes.rst:5959 +#: ../../library/stdtypes.rst:5987 msgid "" "Before Python starts up you can use an environment variable or an " "interpreter command line flag to configure the limit:" @@ -9601,7 +9636,7 @@ msgstr "" "Pythonを起動する前に環境変数またはインタープリタのコマンドラインのフラグで上" "限値を設定できます。" -#: ../../library/stdtypes.rst:5962 +#: ../../library/stdtypes.rst:5990 msgid "" ":envvar:`PYTHONINTMAXSTRDIGITS`, e.g. ``PYTHONINTMAXSTRDIGITS=640 python3`` " "to set the limit to 640 or ``PYTHONINTMAXSTRDIGITS=0 python3`` to disable " @@ -9611,7 +9646,7 @@ msgstr "" "python3`` は上限値を640に設定し、``PYTHONINTMAXSTRDIGITS=0 python3`` は制限を" "無効化します。" -#: ../../library/stdtypes.rst:5965 +#: ../../library/stdtypes.rst:5993 msgid "" ":option:`-X int_max_str_digits <-X>`, e.g. ``python3 -X " "int_max_str_digits=640``" @@ -9619,7 +9654,7 @@ msgstr "" ":option:`-X int_max_str_digits <-X>`、たとえば ``python3 -X " "int_max_str_digits=640``" -#: ../../library/stdtypes.rst:5967 +#: ../../library/stdtypes.rst:5995 msgid "" ":data:`sys.flags.int_max_str_digits` contains the value of :envvar:" "`PYTHONINTMAXSTRDIGITS` or :option:`-X int_max_str_digits <-X>`. If both the " @@ -9633,7 +9668,7 @@ msgstr "" "*-1* という値はどちらも未設定であることを表し、その場合は :data:`sys." "int_info.default_max_str_digits` の値が初期化時に使用されます。" -#: ../../library/stdtypes.rst:5973 +#: ../../library/stdtypes.rst:6001 msgid "" "From code, you can inspect the current limit and set a new one using these :" "mod:`sys` APIs:" @@ -9641,7 +9676,7 @@ msgstr "" "コードでは、以下の :mod:`sys` APIを使用して現在の上限値を調べ、新しい値を設定" "できます。" -#: ../../library/stdtypes.rst:5976 +#: ../../library/stdtypes.rst:6004 msgid "" ":func:`sys.get_int_max_str_digits` and :func:`sys.set_int_max_str_digits` " "are a getter and setter for the interpreter-wide limit. Subinterpreters have " @@ -9651,14 +9686,14 @@ msgstr "" "ンタープリタ全体での上限値を取得、設定できます。サブインタープリタはそれぞれ" "の上限値を持ちます。" -#: ../../library/stdtypes.rst:5980 +#: ../../library/stdtypes.rst:6008 msgid "" "Information about the default and minimum can be found in :data:`sys." "int_info`:" msgstr "" "デフォルト値と最小値に関する情報は :data:`sys.int_info` で参照できます:" -#: ../../library/stdtypes.rst:5982 +#: ../../library/stdtypes.rst:6010 msgid "" ":data:`sys.int_info.default_max_str_digits ` is the compiled-" "in default limit." @@ -9666,7 +9701,7 @@ msgstr "" ":data:`sys.int_info.default_max_str_digits ` はコンパイル時のデ" "フォルト上限値です。" -#: ../../library/stdtypes.rst:5984 +#: ../../library/stdtypes.rst:6012 msgid "" ":data:`sys.int_info.str_digits_check_threshold ` is the lowest " "accepted value for the limit (other than 0 which disables it)." @@ -9674,7 +9709,7 @@ msgstr "" ":data:`sys.int_info.str_digits_check_threshold ` は上限値として" "指定できる最低の値です(0の場合は無効になります)。" -#: ../../library/stdtypes.rst:5991 +#: ../../library/stdtypes.rst:6019 msgid "" "Setting a low limit *can* lead to problems. While rare, code exists that " "contains integer constants in decimal in their source that exceed the " @@ -9694,7 +9729,7 @@ msgstr "" "回避策は、その定数を、 ``0x`` を使って値の制限を持たない16進数の値に変換する" "ことです。" -#: ../../library/stdtypes.rst:6000 +#: ../../library/stdtypes.rst:6028 msgid "" "Test your application thoroughly if you use a low limit. Ensure your tests " "run with the limit set early via the environment or flag so that it applies " @@ -9706,11 +9741,11 @@ msgstr "" "``.py`` ファイルを事前にコンパイルして ``.pyc`` ファイルを作成する際にも適用" "されるようにした状態で、確実にテストが実行されるようにしてください。" -#: ../../library/stdtypes.rst:6006 +#: ../../library/stdtypes.rst:6034 msgid "Recommended configuration" msgstr "推奨設定" -#: ../../library/stdtypes.rst:6008 +#: ../../library/stdtypes.rst:6036 msgid "" "The default :data:`sys.int_info.default_max_str_digits` is expected to be " "reasonable for most applications. If your application requires a different " @@ -9724,11 +9759,11 @@ msgstr "" "理由は、これらの API が 3.12 以前のセキュリテイパッチリリースで追加されたため" "です。" -#: ../../library/stdtypes.rst:6013 +#: ../../library/stdtypes.rst:6041 msgid "Example::" msgstr "以下はプログラム例です::" -#: ../../library/stdtypes.rst:6015 +#: ../../library/stdtypes.rst:6043 msgid "" ">>> import sys\n" ">>> if hasattr(sys, \"set_int_max_str_digits\"):\n" @@ -9741,15 +9776,15 @@ msgid "" "... sys.set_int_max_str_digits(lower_bound)" msgstr "" -#: ../../library/stdtypes.rst:6025 +#: ../../library/stdtypes.rst:6053 msgid "If you need to disable it entirely, set it to ``0``." msgstr "完全に無効にするには、``0`` に設定します。" -#: ../../library/stdtypes.rst:6029 +#: ../../library/stdtypes.rst:6057 msgid "Footnotes" msgstr "脚注" -#: ../../library/stdtypes.rst:6030 +#: ../../library/stdtypes.rst:6058 msgid "" "Additional information on these special methods may be found in the Python " "Reference Manual (:ref:`customization`)." @@ -9757,7 +9792,7 @@ msgstr "" "これらの特殊なメソッドのさらなる情報については、 Python リファレンスマニュア" "ル (:ref:`customization`) を参照してください。" -#: ../../library/stdtypes.rst:6033 +#: ../../library/stdtypes.rst:6061 msgid "" "As a consequence, the list ``[1, 2]`` is considered equal to ``[1.0, 2.0]``, " "and similarly for tuples." @@ -9765,13 +9800,13 @@ msgstr "" "この結果として、リスト ``[1, 2]`` は ``[1.0, 2.0]`` と等しいと見なされます。" "タプルの場合も同様です。" -#: ../../library/stdtypes.rst:6036 +#: ../../library/stdtypes.rst:6064 msgid "They must have since the parser can't tell the type of the operands." msgstr "" "パーザが演算対象の型を識別できるようにするために、このような優先順位でなけれ" "ばならないのです。" -#: ../../library/stdtypes.rst:6038 +#: ../../library/stdtypes.rst:6066 msgid "" "Cased characters are those with general category property being one of " "\"Lu\" (Letter, uppercase), \"Ll\" (Letter, lowercase), or \"Lt\" (Letter, " @@ -9781,7 +9816,7 @@ msgstr "" "uppercase (大文字))、 \"Ll\" (Letter, lowercase (小文字))、 \"Lt\" (Letter、" "titlecase (先頭が大文字)) のいずれかであるものです。" -#: ../../library/stdtypes.rst:6041 +#: ../../library/stdtypes.rst:6069 msgid "" "To format only a tuple you should therefore provide a singleton tuple whose " "only element is the tuple to be formatted." @@ -9796,13 +9831,13 @@ msgstr "組み込み" #: ../../library/stdtypes.rst:13 ../../library/stdtypes.rst:322 #: ../../library/stdtypes.rst:399 ../../library/stdtypes.rst:992 #: ../../library/stdtypes.rst:1159 ../../library/stdtypes.rst:1181 -#: ../../library/stdtypes.rst:1196 ../../library/stdtypes.rst:4775 -#: ../../library/stdtypes.rst:5766 +#: ../../library/stdtypes.rst:1196 ../../library/stdtypes.rst:4803 +#: ../../library/stdtypes.rst:5794 msgid "types" msgstr "types" #: ../../library/stdtypes.rst:34 ../../library/stdtypes.rst:1196 -#: ../../library/stdtypes.rst:4775 +#: ../../library/stdtypes.rst:4803 msgid "statement" msgstr "statement" @@ -9924,11 +9959,11 @@ msgstr "is not" #: ../../library/stdtypes.rst:1181 ../../library/stdtypes.rst:1302 #: ../../library/stdtypes.rst:1381 ../../library/stdtypes.rst:1425 #: ../../library/stdtypes.rst:1546 ../../library/stdtypes.rst:1676 -#: ../../library/stdtypes.rst:2808 ../../library/stdtypes.rst:2827 -#: ../../library/stdtypes.rst:2938 ../../library/stdtypes.rst:4573 -#: ../../library/stdtypes.rst:4775 ../../library/stdtypes.rst:5255 -#: ../../library/stdtypes.rst:5511 ../../library/stdtypes.rst:5686 -#: ../../library/stdtypes.rst:5730 +#: ../../library/stdtypes.rst:2836 ../../library/stdtypes.rst:2855 +#: ../../library/stdtypes.rst:2966 ../../library/stdtypes.rst:4601 +#: ../../library/stdtypes.rst:4803 ../../library/stdtypes.rst:5283 +#: ../../library/stdtypes.rst:5539 ../../library/stdtypes.rst:5714 +#: ../../library/stdtypes.rst:5758 msgid "object" msgstr "object" @@ -10020,9 +10055,9 @@ msgid "arithmetic" msgstr "算術" #: ../../library/stdtypes.rst:249 ../../library/stdtypes.rst:992 -#: ../../library/stdtypes.rst:1159 ../../library/stdtypes.rst:4775 -#: ../../library/stdtypes.rst:5737 ../../library/stdtypes.rst:5751 -#: ../../library/stdtypes.rst:5766 +#: ../../library/stdtypes.rst:1159 ../../library/stdtypes.rst:4803 +#: ../../library/stdtypes.rst:5765 ../../library/stdtypes.rst:5779 +#: ../../library/stdtypes.rst:5794 msgid "built-in function" msgstr "組み込み関数" @@ -10038,8 +10073,8 @@ msgstr "浮動小数点数" msgid "complex" msgstr "複素数" -#: ../../library/stdtypes.rst:249 ../../library/stdtypes.rst:2684 -#: ../../library/stdtypes.rst:3943 +#: ../../library/stdtypes.rst:249 ../../library/stdtypes.rst:2712 +#: ../../library/stdtypes.rst:3971 msgid "+ (plus)" msgstr "+ (プラス記号)" @@ -10051,13 +10086,13 @@ msgstr "単項演算子" msgid "binary operator" msgstr "二項演算子" -#: ../../library/stdtypes.rst:249 ../../library/stdtypes.rst:2684 -#: ../../library/stdtypes.rst:3943 +#: ../../library/stdtypes.rst:249 ../../library/stdtypes.rst:2712 +#: ../../library/stdtypes.rst:3971 msgid "- (minus)" msgstr "- (負符号)" -#: ../../library/stdtypes.rst:249 ../../library/stdtypes.rst:2641 -#: ../../library/stdtypes.rst:3900 +#: ../../library/stdtypes.rst:249 ../../library/stdtypes.rst:2669 +#: ../../library/stdtypes.rst:3928 msgid "* (asterisk)" msgstr "* (アスタリスク)" @@ -10069,8 +10104,8 @@ msgstr "/ (スラッシュ)" msgid "//" msgstr "//" -#: ../../library/stdtypes.rst:249 ../../library/stdtypes.rst:2605 -#: ../../library/stdtypes.rst:3868 +#: ../../library/stdtypes.rst:249 ../../library/stdtypes.rst:2633 +#: ../../library/stdtypes.rst:3896 msgid "% (percent)" msgstr "% (パーセント)" @@ -10080,7 +10115,7 @@ msgstr "**" #: ../../library/stdtypes.rst:322 ../../library/stdtypes.rst:399 #: ../../library/stdtypes.rst:992 ../../library/stdtypes.rst:1196 -#: ../../library/stdtypes.rst:4775 +#: ../../library/stdtypes.rst:4803 msgid "operations on" msgstr "演算" @@ -10089,7 +10124,7 @@ msgid "conjugate() (complex number method)" msgstr "conjugate() (複素数のメソッド)" #: ../../library/stdtypes.rst:341 ../../library/stdtypes.rst:1742 -#: ../../library/stdtypes.rst:2808 ../../library/stdtypes.rst:5766 +#: ../../library/stdtypes.rst:2836 ../../library/stdtypes.rst:5794 msgid "module" msgstr "module" @@ -10157,7 +10192,7 @@ msgstr "``values``" msgid "iterator protocol" msgstr "イテレータプロトコル" -#: ../../library/stdtypes.rst:889 ../../library/stdtypes.rst:5170 +#: ../../library/stdtypes.rst:889 ../../library/stdtypes.rst:5198 msgid "protocol" msgstr "プロトコル" @@ -10183,7 +10218,7 @@ msgstr "コンテナ" msgid "iteration over" msgstr "での反復" -#: ../../library/stdtypes.rst:992 ../../library/stdtypes.rst:4775 +#: ../../library/stdtypes.rst:992 ../../library/stdtypes.rst:4803 msgid "len" msgstr "len" @@ -10260,14 +10295,14 @@ msgstr "mutable" msgid "list" msgstr "list" -#: ../../library/stdtypes.rst:1181 ../../library/stdtypes.rst:2808 -#: ../../library/stdtypes.rst:2938 ../../library/stdtypes.rst:3046 -#: ../../library/stdtypes.rst:3868 +#: ../../library/stdtypes.rst:1181 ../../library/stdtypes.rst:2836 +#: ../../library/stdtypes.rst:2966 ../../library/stdtypes.rst:3074 +#: ../../library/stdtypes.rst:3896 msgid "bytearray" msgstr "bytearray" -#: ../../library/stdtypes.rst:1196 ../../library/stdtypes.rst:4775 -#: ../../library/stdtypes.rst:5511 ../../library/stdtypes.rst:5766 +#: ../../library/stdtypes.rst:1196 ../../library/stdtypes.rst:4803 +#: ../../library/stdtypes.rst:5539 ../../library/stdtypes.rst:5794 msgid "type" msgstr "type" @@ -10275,7 +10310,7 @@ msgstr "type" msgid "assignment" msgstr "代入" -#: ../../library/stdtypes.rst:1196 ../../library/stdtypes.rst:4775 +#: ../../library/stdtypes.rst:1196 ../../library/stdtypes.rst:4803 msgid "del" msgstr "del" @@ -10316,8 +10351,8 @@ msgid "range" msgstr "range" #: ../../library/stdtypes.rst:1546 ../../library/stdtypes.rst:1689 -#: ../../library/stdtypes.rst:1734 ../../library/stdtypes.rst:2459 -#: ../../library/stdtypes.rst:2605 +#: ../../library/stdtypes.rst:1734 ../../library/stdtypes.rst:2487 +#: ../../library/stdtypes.rst:2633 msgid "string" msgstr "string" @@ -10338,17 +10373,17 @@ msgstr "(string も参照のこと)" msgid "io.StringIO" msgstr "io.StringIO" -#: ../../library/stdtypes.rst:1707 ../../library/stdtypes.rst:2800 +#: ../../library/stdtypes.rst:1707 ../../library/stdtypes.rst:2828 msgid "buffer protocol" msgstr "buffer protocol" -#: ../../library/stdtypes.rst:1707 ../../library/stdtypes.rst:2808 -#: ../../library/stdtypes.rst:2827 ../../library/stdtypes.rst:3046 -#: ../../library/stdtypes.rst:3868 +#: ../../library/stdtypes.rst:1707 ../../library/stdtypes.rst:2836 +#: ../../library/stdtypes.rst:2855 ../../library/stdtypes.rst:3074 +#: ../../library/stdtypes.rst:3896 msgid "bytes" msgstr "bytes" -#: ../../library/stdtypes.rst:1734 ../../library/stdtypes.rst:3046 +#: ../../library/stdtypes.rst:1734 ../../library/stdtypes.rst:3074 msgid "methods" msgstr "メソッド" @@ -10356,239 +10391,239 @@ msgstr "メソッド" msgid "re" msgstr "re" -#: ../../library/stdtypes.rst:2273 ../../library/stdtypes.rst:3722 +#: ../../library/stdtypes.rst:2301 ../../library/stdtypes.rst:3750 msgid "universal newlines" msgstr "universal newlines" -#: ../../library/stdtypes.rst:2273 +#: ../../library/stdtypes.rst:2301 msgid "str.splitlines method" msgstr "str.splitlines メソッド" -#: ../../library/stdtypes.rst:2459 +#: ../../library/stdtypes.rst:2487 msgid "! formatted string literal" msgstr "" -#: ../../library/stdtypes.rst:2459 +#: ../../library/stdtypes.rst:2487 msgid "formatted string literals" msgstr "" -#: ../../library/stdtypes.rst:2459 +#: ../../library/stdtypes.rst:2487 msgid "! f-string" msgstr "" -#: ../../library/stdtypes.rst:2459 +#: ../../library/stdtypes.rst:2487 msgid "f-strings" msgstr "" -#: ../../library/stdtypes.rst:2459 +#: ../../library/stdtypes.rst:2487 msgid "fstring" msgstr "" -#: ../../library/stdtypes.rst:2459 +#: ../../library/stdtypes.rst:2487 msgid "interpolated string literal" msgstr "" -#: ../../library/stdtypes.rst:2459 +#: ../../library/stdtypes.rst:2487 msgid "formatted literal" msgstr "" -#: ../../library/stdtypes.rst:2459 +#: ../../library/stdtypes.rst:2487 msgid "interpolated literal" msgstr "" -#: ../../library/stdtypes.rst:2459 +#: ../../library/stdtypes.rst:2487 msgid "{} (curly brackets)" msgstr "{} (波括弧)" -#: ../../library/stdtypes.rst:2459 +#: ../../library/stdtypes.rst:2487 msgid "in formatted string literal" msgstr "" -#: ../../library/stdtypes.rst:2459 +#: ../../library/stdtypes.rst:2487 msgid "! (exclamation mark)" msgstr "" -#: ../../library/stdtypes.rst:2459 +#: ../../library/stdtypes.rst:2487 msgid ": (colon)" msgstr ": (コロン)" -#: ../../library/stdtypes.rst:2459 +#: ../../library/stdtypes.rst:2487 msgid "= (equals)" msgstr "= (等号)" -#: ../../library/stdtypes.rst:2459 +#: ../../library/stdtypes.rst:2487 msgid "for help in debugging using string literals" msgstr "" -#: ../../library/stdtypes.rst:2605 +#: ../../library/stdtypes.rst:2633 msgid "formatting, string (%)" msgstr "書式化, 文字列 (%)" -#: ../../library/stdtypes.rst:2605 +#: ../../library/stdtypes.rst:2633 msgid "interpolation, string (%)" msgstr "補間, 文字列 (%)" -#: ../../library/stdtypes.rst:2605 +#: ../../library/stdtypes.rst:2633 msgid "formatting, printf" msgstr "formatting, printf" -#: ../../library/stdtypes.rst:2605 +#: ../../library/stdtypes.rst:2633 msgid "interpolation, printf" msgstr "interpolation, printf" -#: ../../library/stdtypes.rst:2605 ../../library/stdtypes.rst:3868 +#: ../../library/stdtypes.rst:2633 ../../library/stdtypes.rst:3896 msgid "printf-style formatting" msgstr "printf 形式の書式化" -#: ../../library/stdtypes.rst:2605 ../../library/stdtypes.rst:3868 +#: ../../library/stdtypes.rst:2633 ../../library/stdtypes.rst:3896 msgid "sprintf-style formatting" msgstr "sprintf 形式の書式化" -#: ../../library/stdtypes.rst:2641 ../../library/stdtypes.rst:3900 +#: ../../library/stdtypes.rst:2669 ../../library/stdtypes.rst:3928 msgid "() (parentheses)" msgstr "() (丸括弧)" -#: ../../library/stdtypes.rst:2641 ../../library/stdtypes.rst:2684 -#: ../../library/stdtypes.rst:3900 ../../library/stdtypes.rst:3943 +#: ../../library/stdtypes.rst:2669 ../../library/stdtypes.rst:2712 +#: ../../library/stdtypes.rst:3928 ../../library/stdtypes.rst:3971 msgid "in printf-style formatting" msgstr "in printf-style formatting" -#: ../../library/stdtypes.rst:2641 ../../library/stdtypes.rst:3900 +#: ../../library/stdtypes.rst:2669 ../../library/stdtypes.rst:3928 msgid ". (dot)" msgstr ". (ドット)" -#: ../../library/stdtypes.rst:2684 ../../library/stdtypes.rst:3943 +#: ../../library/stdtypes.rst:2712 ../../library/stdtypes.rst:3971 msgid "# (hash)" msgstr "# (hash)" -#: ../../library/stdtypes.rst:2684 ../../library/stdtypes.rst:3943 +#: ../../library/stdtypes.rst:2712 ../../library/stdtypes.rst:3971 msgid "space" msgstr "空白" -#: ../../library/stdtypes.rst:2800 +#: ../../library/stdtypes.rst:2828 msgid "binary sequence types" msgstr "バイナリシーケンス型" -#: ../../library/stdtypes.rst:2808 +#: ../../library/stdtypes.rst:2836 msgid "memoryview" msgstr "memoryview" -#: ../../library/stdtypes.rst:2808 +#: ../../library/stdtypes.rst:2836 msgid "array" msgstr "array" -#: ../../library/stdtypes.rst:3722 +#: ../../library/stdtypes.rst:3750 msgid "bytes.splitlines method" msgstr "bytes.splitlines メソッド" -#: ../../library/stdtypes.rst:3722 +#: ../../library/stdtypes.rst:3750 msgid "bytearray.splitlines method" msgstr "bytearray.splitlines メソッド" -#: ../../library/stdtypes.rst:3868 +#: ../../library/stdtypes.rst:3896 msgid "formatting" msgstr "書式化" -#: ../../library/stdtypes.rst:3868 +#: ../../library/stdtypes.rst:3896 msgid "bytes (%)" msgstr "bytes (%)" -#: ../../library/stdtypes.rst:3868 +#: ../../library/stdtypes.rst:3896 msgid "bytearray (%)" msgstr "bytearray (%)" -#: ../../library/stdtypes.rst:3868 +#: ../../library/stdtypes.rst:3896 msgid "interpolation" msgstr "補間" -#: ../../library/stdtypes.rst:4573 +#: ../../library/stdtypes.rst:4601 msgid "set" msgstr "集合" -#: ../../library/stdtypes.rst:4775 +#: ../../library/stdtypes.rst:4803 msgid "mapping" msgstr "mapping" -#: ../../library/stdtypes.rst:4775 +#: ../../library/stdtypes.rst:4803 msgid "dictionary" msgstr "dictionary" -#: ../../library/stdtypes.rst:4885 +#: ../../library/stdtypes.rst:4913 msgid "__missing__()" msgstr "__missing__()" -#: ../../library/stdtypes.rst:5170 +#: ../../library/stdtypes.rst:5198 msgid "context manager" msgstr "context manager" -#: ../../library/stdtypes.rst:5170 +#: ../../library/stdtypes.rst:5198 msgid "context management protocol" msgstr "コンテキスト管理プロトコル" -#: ../../library/stdtypes.rst:5170 +#: ../../library/stdtypes.rst:5198 msgid "context management" msgstr "コンテキスト管理" -#: ../../library/stdtypes.rst:5243 +#: ../../library/stdtypes.rst:5271 msgid "annotation" msgstr "注釈" -#: ../../library/stdtypes.rst:5243 +#: ../../library/stdtypes.rst:5271 msgid "type annotation; type hint" msgstr "type annotation; type hint" -#: ../../library/stdtypes.rst:5255 +#: ../../library/stdtypes.rst:5283 msgid "GenericAlias" msgstr "GenericAlias" -#: ../../library/stdtypes.rst:5255 +#: ../../library/stdtypes.rst:5283 msgid "Generic" msgstr "Generic" -#: ../../library/stdtypes.rst:5255 +#: ../../library/stdtypes.rst:5283 msgid "Alias" msgstr "Alias" -#: ../../library/stdtypes.rst:5511 +#: ../../library/stdtypes.rst:5539 msgid "Union" msgstr "Union" -#: ../../library/stdtypes.rst:5511 +#: ../../library/stdtypes.rst:5539 msgid "union" msgstr "union" -#: ../../library/stdtypes.rst:5686 +#: ../../library/stdtypes.rst:5714 msgid "method" msgstr "メソッド" -#: ../../library/stdtypes.rst:5730 +#: ../../library/stdtypes.rst:5758 msgid "code" msgstr "コード" -#: ../../library/stdtypes.rst:5730 +#: ../../library/stdtypes.rst:5758 msgid "code object" msgstr "コードオブジェクト" -#: ../../library/stdtypes.rst:5737 +#: ../../library/stdtypes.rst:5765 msgid "compile" msgstr "コンパイル" -#: ../../library/stdtypes.rst:5737 +#: ../../library/stdtypes.rst:5765 msgid "__code__ (function object attribute)" msgstr "__code__ (関数オブジェクトの属性)" -#: ../../library/stdtypes.rst:5751 +#: ../../library/stdtypes.rst:5779 msgid "exec" msgstr "exec" -#: ../../library/stdtypes.rst:5751 +#: ../../library/stdtypes.rst:5779 msgid "eval" msgstr "eval" -#: ../../library/stdtypes.rst:5790 +#: ../../library/stdtypes.rst:5818 msgid "..." msgstr "..." -#: ../../library/stdtypes.rst:5790 +#: ../../library/stdtypes.rst:5818 msgid "ellipsis literal" msgstr "ellipsisリテラル" diff --git a/library/string.po b/library/string.po index d18801509..9a18d2caf 100644 --- a/library/string.po +++ b/library/string.po @@ -22,10 +22,10 @@ msgstr "" "Last-Translator: Takeshi Nakazato, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../library/string.rst:2 @@ -1813,7 +1813,7 @@ msgstr "# (hash)" #: ../../library/string.rst:449 msgid ", (comma)" -msgstr ", (カンマ)" +msgstr ", (comma)" #: ../../library/string.rst:449 msgid "_ (underscore)" diff --git a/library/stringprep.po b/library/stringprep.po index 7794ff002..bede15349 100644 --- a/library/stringprep.po +++ b/library/stringprep.po @@ -1,5 +1,5 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2025, Python Software Foundation +# Copyright (C) 2001 Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # @@ -11,17 +11,17 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: Python 3.13\n" +"Project-Id-Version: Python 3.14\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2025-05-02 14:19+0000\n" +"POT-Creation-Date: 2025-05-23 14:20+0000\n" "PO-Revision-Date: 2021-06-28 01:14+0000\n" "Last-Translator: 石井明久, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../library/stringprep.rst:2 diff --git a/library/struct.po b/library/struct.po index ca0cb22c2..9bcd7d1e8 100644 --- a/library/struct.po +++ b/library/struct.po @@ -23,10 +23,10 @@ msgstr "" "Last-Translator: Nozomu Kaneko , 2025\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../library/struct.rst:2 diff --git a/library/subprocess.po b/library/subprocess.po index 82bb912af..e1d3a68de 100644 --- a/library/subprocess.po +++ b/library/subprocess.po @@ -24,10 +24,10 @@ msgstr "" "Last-Translator: 石井明久, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../library/subprocess.rst:2 diff --git a/library/sunau.po b/library/sunau.po index 0a1b69f57..27fd5f239 100644 --- a/library/sunau.po +++ b/library/sunau.po @@ -1,21 +1,21 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2025, Python Software Foundation +# Copyright (C) 2001 Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # #, fuzzy msgid "" msgstr "" -"Project-Id-Version: Python 3.13\n" +"Project-Id-Version: Python 3.14\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2025-05-02 14:19+0000\n" +"POT-Creation-Date: 2025-05-23 14:20+0000\n" "PO-Revision-Date: 2024-11-19 01:03+0000\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../library/sunau.rst:2 diff --git a/library/superseded.po b/library/superseded.po index 37f465963..eb3a946d3 100644 --- a/library/superseded.po +++ b/library/superseded.po @@ -1,5 +1,5 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2025, Python Software Foundation +# Copyright (C) 2001 Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # @@ -9,17 +9,17 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: Python 3.13\n" +"Project-Id-Version: Python 3.14\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2025-04-25 14:19+0000\n" +"POT-Creation-Date: 2025-05-16 14:19+0000\n" "PO-Revision-Date: 2021-06-28 01:14+0000\n" "Last-Translator: tomo, 2021\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../library/superseded.rst:5 diff --git a/library/symtable.po b/library/symtable.po index 789ee6037..e442b1d2d 100644 --- a/library/symtable.po +++ b/library/symtable.po @@ -19,10 +19,10 @@ msgstr "" "Last-Translator: tomo, 2025\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../library/symtable.rst:2 diff --git a/library/sys.po b/library/sys.po index abd6a5a94..366bd2b44 100644 --- a/library/sys.po +++ b/library/sys.po @@ -23,10 +23,10 @@ msgstr "" "Last-Translator: tomo, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../library/sys.rst:2 @@ -1219,6 +1219,11 @@ msgid "" "filesystem_encoding` and :c:member:`~PyConfig.filesystem_errors` members of :" "c:type:`PyConfig`." msgstr "" +"term:`ファイルシステムのエンコーディングとエラーハンドラ ` は、Pythonの開始時に:c:func:`PyConfig_Read` 関数" +"により設定されます。 :c:type:`PyConfig` のメンバー :c:member:`~PyConfig." +"filesystem_encoding` と :c:member:`~PyConfig.filesystem_errors` を参照してく" +"ださい。" #: ../../library/sys.rst:831 msgid ":func:`getfilesystemencoding` result cannot be ``None`` anymore." diff --git a/library/sys_path_init.po b/library/sys_path_init.po index f6cc27b72..3cf9860a0 100644 --- a/library/sys_path_init.po +++ b/library/sys_path_init.po @@ -17,10 +17,10 @@ msgstr "" "Last-Translator: 石井明久, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../library/sys_path_init.rst:4 diff --git a/library/sysconfig.po b/library/sysconfig.po index c05506963..dccabce6e 100644 --- a/library/sysconfig.po +++ b/library/sysconfig.po @@ -1,5 +1,5 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2025, Python Software Foundation +# Copyright (C) 2001 Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # @@ -12,17 +12,17 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: Python 3.13\n" +"Project-Id-Version: Python 3.14\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2025-05-02 14:19+0000\n" +"POT-Creation-Date: 2025-05-16 14:19+0000\n" "PO-Revision-Date: 2021-06-28 01:14+0000\n" "Last-Translator: Takanori Suzuki , 2025\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../library/sysconfig.rst:2 diff --git a/library/syslog.po b/library/syslog.po index 8b6e552d8..ac7b231c2 100644 --- a/library/syslog.po +++ b/library/syslog.po @@ -1,5 +1,5 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2025, Python Software Foundation +# Copyright (C) 2001 Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # @@ -13,17 +13,17 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: Python 3.13\n" +"Project-Id-Version: Python 3.14\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2025-05-02 14:19+0000\n" +"POT-Creation-Date: 2025-05-23 14:20+0000\n" "PO-Revision-Date: 2021-06-28 01:14+0000\n" "Last-Translator: 渋川よしき , 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../library/syslog.rst:2 diff --git a/library/tabnanny.po b/library/tabnanny.po index bc973dc88..b6ac45469 100644 --- a/library/tabnanny.po +++ b/library/tabnanny.po @@ -1,5 +1,5 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2025, Python Software Foundation +# Copyright (C) 2001 Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # @@ -10,17 +10,17 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: Python 3.13\n" +"Project-Id-Version: Python 3.14\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2025-05-02 14:19+0000\n" +"POT-Creation-Date: 2025-05-23 14:20+0000\n" "PO-Revision-Date: 2021-06-28 01:14+0000\n" "Last-Translator: 石井明久, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../library/tabnanny.rst:2 diff --git a/library/tarfile.po b/library/tarfile.po index 2314b8e0d..2c6caad08 100644 --- a/library/tarfile.po +++ b/library/tarfile.po @@ -19,10 +19,10 @@ msgstr "" "Last-Translator: 石井明久, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../library/tarfile.rst:2 diff --git a/library/telnetlib.po b/library/telnetlib.po index 73d9eb3c5..b37550740 100644 --- a/library/telnetlib.po +++ b/library/telnetlib.po @@ -1,21 +1,21 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2025, Python Software Foundation +# Copyright (C) 2001 Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # #, fuzzy msgid "" msgstr "" -"Project-Id-Version: Python 3.13\n" +"Project-Id-Version: Python 3.14\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2025-05-02 14:19+0000\n" +"POT-Creation-Date: 2025-05-23 14:20+0000\n" "PO-Revision-Date: 2024-11-19 01:03+0000\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../library/telnetlib.rst:2 diff --git a/library/tempfile.po b/library/tempfile.po index 8bed66bc8..799b6e189 100644 --- a/library/tempfile.po +++ b/library/tempfile.po @@ -1,5 +1,5 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2025, Python Software Foundation +# Copyright (C) 2001 Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # @@ -13,17 +13,17 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: Python 3.13\n" +"Project-Id-Version: Python 3.14\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2025-05-02 14:19+0000\n" +"POT-Creation-Date: 2025-05-23 14:20+0000\n" "PO-Revision-Date: 2021-06-28 01:14+0000\n" "Last-Translator: Takanori Suzuki , 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../library/tempfile.rst:2 diff --git a/library/termios.po b/library/termios.po index c4b3a1645..b5c76aafa 100644 --- a/library/termios.po +++ b/library/termios.po @@ -1,5 +1,5 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2025, Python Software Foundation +# Copyright (C) 2001 Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # @@ -12,17 +12,17 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: Python 3.13\n" +"Project-Id-Version: Python 3.14\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2025-05-02 14:19+0000\n" +"POT-Creation-Date: 2025-05-23 14:20+0000\n" "PO-Revision-Date: 2021-06-28 01:14+0000\n" "Last-Translator: 石井明久, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../library/termios.rst:2 diff --git a/library/test.po b/library/test.po index f4e79a060..d9d2ea967 100644 --- a/library/test.po +++ b/library/test.po @@ -20,10 +20,10 @@ msgstr "" "Last-Translator: tomo, 2023\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../library/test.rst:2 diff --git a/library/text.po b/library/text.po index 6012bea70..5e9f36c45 100644 --- a/library/text.po +++ b/library/text.po @@ -16,10 +16,10 @@ msgstr "" "Last-Translator: tomo, 2021\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../library/text.rst:6 diff --git a/library/textwrap.po b/library/textwrap.po index 021a9a331..efbd262ac 100644 --- a/library/textwrap.po +++ b/library/textwrap.po @@ -1,5 +1,5 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2025, Python Software Foundation +# Copyright (C) 2001 Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # @@ -13,17 +13,17 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: Python 3.13\n" +"Project-Id-Version: Python 3.14\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2025-05-02 14:19+0000\n" +"POT-Creation-Date: 2025-05-23 14:20+0000\n" "PO-Revision-Date: 2021-06-28 01:15+0000\n" "Last-Translator: tomo, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../library/textwrap.rst:2 diff --git a/library/threading.po b/library/threading.po index 45e23c565..c966bf822 100644 --- a/library/threading.po +++ b/library/threading.po @@ -8,24 +8,24 @@ # Osamu NAKAMURA, 2021 # 菊池 健志, 2023 # Arihiro TAKASE, 2023 -# tomo, 2023 # 石井明久, 2024 # souma987, 2025 +# tomo, 2025 # #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.14\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2025-05-08 02:53-0300\n" +"POT-Creation-Date: 2025-05-16 14:19+0000\n" "PO-Revision-Date: 2021-06-28 01:15+0000\n" -"Last-Translator: souma987, 2025\n" +"Last-Translator: tomo, 2025\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../library/threading.rst:2 @@ -44,13 +44,81 @@ msgstr "" "このモジュールでは、高水準のスレッドインターフェースをより低水準 な :mod:" "`_thread` モジュールの上に構築しています。" -#: ../../library/threading.rst:14 +#: ../../library/threading.rst:194 ../../library/threading.rst:293 +#: ../../library/threading.rst:678 ../../includes/wasm-notavail.rst:3 +msgid "Availability" +msgstr "" + +#: ../../includes/wasm-notavail.rst:5 +msgid "" +"This module does not work or is not available on WebAssembly. See :ref:`wasm-" +"availability` for more information." +msgstr "" +"このモジュールは WebAssembly では動作しないか、利用不可です。詳しくは、:ref:" +"`wasm-availability` を見てください。" + +#: ../../library/threading.rst:17 +msgid "Introduction" +msgstr "はじめに" + +#: ../../library/threading.rst:19 +msgid "" +"The :mod:`!threading` module provides a way to run multiple `threads " +"`_ (smaller units of a " +"process) concurrently within a single process. It allows for the creation " +"and management of threads, making it possible to execute tasks in parallel, " +"sharing memory space. Threads are particularly useful when tasks are I/O " +"bound, such as file operations or making network requests, where much of the " +"time is spent waiting for external resources." +msgstr "" + +#: ../../library/threading.rst:27 +msgid "" +"A typical use case for :mod:`!threading` includes managing a pool of worker " +"threads that can process multiple tasks concurrently. Here's a basic " +"example of creating and starting threads using :class:`~threading.Thread`::" +msgstr "" + +#: ../../library/threading.rst:31 +msgid "" +"import threading\n" +"import time\n" +"\n" +"def crawl(link, delay=3):\n" +" print(f\"crawl started for {link}\")\n" +" time.sleep(delay) # Blocking I/O (simulating a network request)\n" +" print(f\"crawl ended for {link}\")\n" +"\n" +"links = [\n" +" \"https://python.org\",\n" +" \"https://docs.python.org\",\n" +" \"https://peps.python.org\",\n" +"]\n" +"\n" +"# Start threads for each link\n" +"threads = []\n" +"for link in links:\n" +" # Using `args` to pass positional arguments and `kwargs` for keyword " +"arguments\n" +" t = threading.Thread(target=crawl, args=(link,), kwargs={\"delay\": 2})\n" +" threads.append(t)\n" +"\n" +"# Start each thread\n" +"for t in threads:\n" +" t.start()\n" +"\n" +"# Wait for all threads to finish\n" +"for t in threads:\n" +" t.join()" +msgstr "" + +#: ../../library/threading.rst:60 msgid "This module used to be optional, it is now always available." msgstr "" "このモジュールは以前はオプションでしたが、常に利用可能なモジュールとなりまし" "た。" -#: ../../library/threading.rst:19 +#: ../../library/threading.rst:65 msgid "" ":class:`concurrent.futures.ThreadPoolExecutor` offers a higher level " "interface to push tasks to a background thread without blocking execution of " @@ -58,26 +126,26 @@ msgid "" "needed." msgstr "" -#: ../../library/threading.rst:23 +#: ../../library/threading.rst:69 msgid "" ":mod:`queue` provides a thread-safe interface for exchanging data between " "running threads." msgstr "" -#: ../../library/threading.rst:26 +#: ../../library/threading.rst:72 msgid "" ":mod:`asyncio` offers an alternative approach to achieving task level " "concurrency without requiring the use of multiple operating system threads." msgstr "" -#: ../../library/threading.rst:31 +#: ../../library/threading.rst:77 msgid "" "In the Python 2.x series, this module contained ``camelCase`` names for some " "methods and functions. These are deprecated as of Python 3.10, but they are " "still supported for compatibility with Python 2.5 and lower." msgstr "" -#: ../../library/threading.rst:38 +#: ../../library/threading.rst:84 msgid "" "In CPython, due to the :term:`Global Interpreter Lock `, only one thread can execute Python code at once (even though certain " @@ -95,24 +163,37 @@ msgstr "" "ProcessPoolExecutor` の利用をお勧めします。 ただし、I/Oバウンドなタスクを並行" "して複数走らせたい場合においては、 マルチスレッドは正しい選択肢です。" -#: ../../library/threading.rst:130 ../../library/threading.rst:229 -#: ../../library/threading.rst:614 ../../includes/wasm-notavail.rst:3 -msgid "Availability" +#: ../../library/threading.rst:95 +msgid "GIL and performance considerations" msgstr "" -#: ../../includes/wasm-notavail.rst:5 +#: ../../library/threading.rst:97 msgid "" -"This module does not work or is not available on WebAssembly. See :ref:`wasm-" -"availability` for more information." +"Unlike the :mod:`multiprocessing` module, which uses separate processes to " +"bypass the :term:`global interpreter lock` (GIL), the threading module " +"operates within a single process, meaning that all threads share the same " +"memory space. However, the GIL limits the performance gains of threading " +"when it comes to CPU-bound tasks, as only one thread can execute Python " +"bytecode at a time. Despite this, threads remain a useful tool for achieving " +"concurrency in many scenarios." msgstr "" -"このモジュールは WebAssembly では動作しないか、利用不可です。詳しくは、:ref:" -"`wasm-availability` を見てください。" -#: ../../library/threading.rst:50 +#: ../../library/threading.rst:105 +msgid "" +"As of Python 3.13, experimental :term:`free-threaded ` " +"builds can disable the GIL, enabling true parallel execution of threads, but " +"this feature is not available by default (see :pep:`703`)." +msgstr "" + +#: ../../library/threading.rst:112 +msgid "Reference" +msgstr "リファレンス" + +#: ../../library/threading.rst:114 msgid "This module defines the following functions:" msgstr "このモジュールは以下の関数を定義しています:" -#: ../../library/threading.rst:55 +#: ../../library/threading.rst:119 msgid "" "Return the number of :class:`Thread` objects currently alive. The returned " "count is equal to the length of the list returned by :func:`.enumerate`." @@ -120,94 +201,90 @@ msgstr "" "生存中の :class:`Thread` オブジェクトの数を返します。この数は :func:`." "enumerate` の返すリストの長さと同じです。" -#: ../../library/threading.rst:58 +#: ../../library/threading.rst:122 msgid "The function ``activeCount`` is a deprecated alias for this function." msgstr "関数``activeCount``はこの関数の非推奨エイリアスです。" -#: ../../library/threading.rst:63 +#: ../../library/threading.rst:127 msgid "" "Return the current :class:`Thread` object, corresponding to the caller's " "thread of control. If the caller's thread of control was not created " -"through the :mod:`threading` module, a dummy thread object with limited " +"through the :mod:`!threading` module, a dummy thread object with limited " "functionality is returned." msgstr "" -"関数を呼び出している処理のスレッドに対応する :class:`Thread` オブジェクトを返" -"します。関数を呼び出している処理のスレッドが :mod:`threading` モジュールで生" -"成したものでない場合、限定的な機能しかもたないダミースレッドオブジェクトを返" -"します。" -#: ../../library/threading.rst:68 +#: ../../library/threading.rst:132 msgid "The function ``currentThread`` is a deprecated alias for this function." msgstr "関数``currentThread``はこの関数の非推奨エイリアスです。" -#: ../../library/threading.rst:73 +#: ../../library/threading.rst:137 msgid "Handle uncaught exception raised by :func:`Thread.run`." msgstr ":func:`Thread.run` で発生したキャッチされない例外を処理する。" -#: ../../library/threading.rst:75 +#: ../../library/threading.rst:139 msgid "The *args* argument has the following attributes:" msgstr "(実) 引数*args*は以下の属性をもちます:" -#: ../../library/threading.rst:77 +#: ../../library/threading.rst:141 msgid "*exc_type*: Exception type." msgstr "*exc_type*: 例外の型" -#: ../../library/threading.rst:78 +#: ../../library/threading.rst:142 msgid "*exc_value*: Exception value, can be ``None``." msgstr "*exc_value*: 例外の値、``None`` の可能性がある。" -#: ../../library/threading.rst:79 +#: ../../library/threading.rst:143 msgid "*exc_traceback*: Exception traceback, can be ``None``." msgstr "" -#: ../../library/threading.rst:80 +#: ../../library/threading.rst:144 msgid "*thread*: Thread which raised the exception, can be ``None``." msgstr "" -#: ../../library/threading.rst:82 +#: ../../library/threading.rst:146 msgid "" "If *exc_type* is :exc:`SystemExit`, the exception is silently ignored. " "Otherwise, the exception is printed out on :data:`sys.stderr`." msgstr "" -#: ../../library/threading.rst:85 +#: ../../library/threading.rst:149 msgid "" "If this function raises an exception, :func:`sys.excepthook` is called to " "handle it." msgstr "" -#: ../../library/threading.rst:88 +#: ../../library/threading.rst:152 msgid "" ":func:`threading.excepthook` can be overridden to control how uncaught " "exceptions raised by :func:`Thread.run` are handled." msgstr "" -#: ../../library/threading.rst:91 +#: ../../library/threading.rst:155 msgid "" "Storing *exc_value* using a custom hook can create a reference cycle. It " "should be cleared explicitly to break the reference cycle when the exception " "is no longer needed." msgstr "" -#: ../../library/threading.rst:95 +#: ../../library/threading.rst:159 msgid "" "Storing *thread* using a custom hook can resurrect it if it is set to an " "object which is being finalized. Avoid storing *thread* after the custom " "hook completes to avoid resurrecting objects." msgstr "" -#: ../../library/threading.rst:100 +#: ../../library/threading.rst:164 msgid ":func:`sys.excepthook` handles uncaught exceptions." msgstr "" -#: ../../library/threading.rst:106 +#: ../../library/threading.rst:170 msgid "" "Holds the original value of :func:`threading.excepthook`. It is saved so " "that the original value can be restored in case they happen to get replaced " "with broken or alternative objects." msgstr "" -#: ../../library/threading.rst:114 +#: ../../library/threading.rst:178 msgid "" "Return the 'thread identifier' of the current thread. This is a nonzero " "integer. Its value has no direct meaning; it is intended as a magic cookie " @@ -220,7 +297,7 @@ msgstr "" "な、マジッククッキーとして意図されています。スレッドが終了し、他のスレッドが" "作られたとき、スレッド ID は再利用されるかもしれません。" -#: ../../library/threading.rst:125 +#: ../../library/threading.rst:189 msgid "" "Return the native integral Thread ID of the current thread assigned by the " "kernel. This is a non-negative integer. Its value may be used to uniquely " @@ -228,11 +305,11 @@ msgid "" "after which the value may be recycled by the OS)." msgstr "" -#: ../../library/threading.rst:134 +#: ../../library/threading.rst:198 msgid "Added support for GNU/kFreeBSD." msgstr "" -#: ../../library/threading.rst:140 +#: ../../library/threading.rst:204 msgid "" "Return a list of all :class:`Thread` objects currently active. The list " "includes daemonic threads and dummy thread objects created by :func:" @@ -246,7 +323,7 @@ msgstr "" "レッドは入りません。しかし、主スレッドは、たとえ終了しても、常に結果に含まれ" "ます。" -#: ../../library/threading.rst:149 +#: ../../library/threading.rst:213 msgid "" "Return the main :class:`Thread` object. In normal conditions, the main " "thread is the thread from which the Python interpreter was started." @@ -254,59 +331,53 @@ msgstr "" "main :class:`Thread` オブジェクトを返します。通常の条件では、メインスレッドは" "Pythonインタプリタが起動したスレッドを指します。" -#: ../../library/threading.rst:160 +#: ../../library/threading.rst:224 msgid "" -"Set a trace function for all threads started from the :mod:`threading` " +"Set a trace function for all threads started from the :mod:`!threading` " "module. The *func* will be passed to :func:`sys.settrace` for each thread, " "before its :meth:`~Thread.run` method is called." msgstr "" -":mod:`threading` モジュールを使って開始した全てのスレッドにトレース関数を設定" -"します。 *func* は各スレッドの :meth:`~Thread.run` を呼び出す前にスレッドの :" -"func:`sys.settrace` に渡されます。" -#: ../../library/threading.rst:166 +#: ../../library/threading.rst:230 msgid "" -"Set a trace function for all threads started from the :mod:`threading` " +"Set a trace function for all threads started from the :mod:`!threading` " "module and all Python threads that are currently executing." msgstr "" -#: ../../library/threading.rst:169 +#: ../../library/threading.rst:233 msgid "" "The *func* will be passed to :func:`sys.settrace` for each thread, before " "its :meth:`~Thread.run` method is called." msgstr "" -#: ../../library/threading.rst:180 +#: ../../library/threading.rst:244 msgid "Get the trace function as set by :func:`settrace`." msgstr ":func:`settrace` 関数で設定したトレース関数を取得します。" -#: ../../library/threading.rst:189 +#: ../../library/threading.rst:253 msgid "" -"Set a profile function for all threads started from the :mod:`threading` " +"Set a profile function for all threads started from the :mod:`!threading` " "module. The *func* will be passed to :func:`sys.setprofile` for each " "thread, before its :meth:`~Thread.run` method is called." msgstr "" -":mod:`threading` モジュールを使って開始した全てのスレッドにプロファイル関数を" -"設定します。 *func* は各スレッドの :meth:`~Thread.run` を呼び出す前にスレッド" -"の :func:`sys.setprofile` に渡されます。" -#: ../../library/threading.rst:195 +#: ../../library/threading.rst:259 msgid "" -"Set a profile function for all threads started from the :mod:`threading` " +"Set a profile function for all threads started from the :mod:`!threading` " "module and all Python threads that are currently executing." msgstr "" -#: ../../library/threading.rst:198 +#: ../../library/threading.rst:262 msgid "" "The *func* will be passed to :func:`sys.setprofile` for each thread, before " "its :meth:`~Thread.run` method is called." msgstr "" -#: ../../library/threading.rst:207 +#: ../../library/threading.rst:271 msgid "Get the profiler function as set by :func:`setprofile`." msgstr ":func:`setprofile` 関数で設定したプロファイラ関数を取得します。" -#: ../../library/threading.rst:214 +#: ../../library/threading.rst:278 msgid "" "Return the thread stack size used when creating new threads. The optional " "*size* argument specifies the stack size to be used for subsequently created " @@ -339,15 +410,15 @@ msgstr "" "トフォームに関する情報がない場合は 4096 の整数倍のスタックサイズを選ぶといい" "かもしれません)。" -#: ../../library/threading.rst:231 +#: ../../library/threading.rst:295 msgid "Unix platforms with POSIX threads support." msgstr "" -#: ../../library/threading.rst:234 +#: ../../library/threading.rst:298 msgid "This module also defines the following constant:" msgstr "このモジュールでは以下の定数も定義しています:" -#: ../../library/threading.rst:238 +#: ../../library/threading.rst:302 msgid "" "The maximum value allowed for the *timeout* parameter of blocking functions " "(:meth:`Lock.acquire`, :meth:`RLock.acquire`, :meth:`Condition.wait`, etc.). " @@ -358,7 +429,7 @@ msgstr "" "`Condition.wait` など) の *timeout* 引数に許される最大値。これ以上の値を " "timeout に指定すると :exc:`OverflowError` が発生します。" -#: ../../library/threading.rst:246 +#: ../../library/threading.rst:310 msgid "" "This module defines a number of classes, which are detailed in the sections " "below." @@ -366,7 +437,7 @@ msgstr "" "このモジュールは多くのクラスを定義しています。それらは下記のセクションで詳し" "く説明されます。" -#: ../../library/threading.rst:249 +#: ../../library/threading.rst:313 msgid "" "The design of this module is loosely based on Java's threading model. " "However, where Java makes locks and condition variables basic behavior of " @@ -385,22 +456,22 @@ msgstr "" "込み (interrupt) は行えません。 Java の Thread クラスにおける静的メソッドに対" "応する機能が実装されている場合にはモジュールレベルの関数になっています。" -#: ../../library/threading.rst:257 +#: ../../library/threading.rst:321 msgid "All of the methods described below are executed atomically." msgstr "以下に説明するメソッドは全て原子的 (atomic) に実行されます。" -#: ../../library/threading.rst:261 -msgid "Thread-Local Data" -msgstr "スレッドローカルデータ" +#: ../../library/threading.rst:325 +msgid "Thread-local data" +msgstr "" -#: ../../library/threading.rst:263 +#: ../../library/threading.rst:327 msgid "" "Thread-local data is data whose values are thread specific. If you have data " "that you want to be local to a thread, create a :class:`local` object and " "use its attributes::" msgstr "" -#: ../../library/threading.rst:267 +#: ../../library/threading.rst:331 msgid "" ">>> mydata = local()\n" ">>> mydata.number = 42\n" @@ -408,11 +479,11 @@ msgid "" "42" msgstr "" -#: ../../library/threading.rst:272 +#: ../../library/threading.rst:336 msgid "You can also access the :class:`local`-object's dictionary::" msgstr "" -#: ../../library/threading.rst:274 +#: ../../library/threading.rst:338 msgid "" ">>> mydata.__dict__\n" "{'number': 42}\n" @@ -422,11 +493,11 @@ msgid "" "[]" msgstr "" -#: ../../library/threading.rst:281 +#: ../../library/threading.rst:345 msgid "If we access the data in a different thread::" msgstr "" -#: ../../library/threading.rst:283 +#: ../../library/threading.rst:347 msgid "" ">>> log = []\n" ">>> def f():\n" @@ -443,19 +514,19 @@ msgid "" "[[], 11]" msgstr "" -#: ../../library/threading.rst:297 +#: ../../library/threading.rst:361 msgid "" "we get different data. Furthermore, changes made in the other thread don't " "affect data seen in this thread::" msgstr "" -#: ../../library/threading.rst:300 +#: ../../library/threading.rst:364 msgid "" ">>> mydata.number\n" "42" msgstr "" -#: ../../library/threading.rst:303 +#: ../../library/threading.rst:367 msgid "" "Of course, values you get from a :class:`local` object, including their :" "attr:`~object.__dict__` attribute, are for whatever thread was current at " @@ -464,13 +535,13 @@ msgid "" "came from." msgstr "" -#: ../../library/threading.rst:309 +#: ../../library/threading.rst:373 msgid "" "You can create custom :class:`local` objects by subclassing the :class:" "`local` class::" msgstr "" -#: ../../library/threading.rst:312 +#: ../../library/threading.rst:376 msgid "" ">>> class MyLocal(local):\n" "... number = 2\n" @@ -480,7 +551,7 @@ msgid "" "... return self.number ** 2" msgstr "" -#: ../../library/threading.rst:319 +#: ../../library/threading.rst:383 msgid "" "This can be useful to support default values, methods and initialization. " "Note that if you define an :py:meth:`~object.__init__` method, it will be " @@ -488,50 +559,50 @@ msgid "" "This is necessary to initialize each thread's dictionary." msgstr "" -#: ../../library/threading.rst:325 +#: ../../library/threading.rst:389 msgid "Now if we create a :class:`local` object::" msgstr "" -#: ../../library/threading.rst:327 +#: ../../library/threading.rst:391 msgid ">>> mydata = MyLocal(color='red')" msgstr "" -#: ../../library/threading.rst:329 +#: ../../library/threading.rst:393 msgid "we have a default number::" msgstr "" -#: ../../library/threading.rst:331 +#: ../../library/threading.rst:395 msgid "" ">>> mydata.number\n" "2" msgstr "" -#: ../../library/threading.rst:334 +#: ../../library/threading.rst:398 msgid "an initial color::" msgstr "" -#: ../../library/threading.rst:336 +#: ../../library/threading.rst:400 msgid "" ">>> mydata.color\n" "'red'\n" ">>> del mydata.color" msgstr "" -#: ../../library/threading.rst:340 +#: ../../library/threading.rst:404 msgid "And a method that operates on the data::" msgstr "" -#: ../../library/threading.rst:342 +#: ../../library/threading.rst:406 msgid "" ">>> mydata.squared()\n" "4" msgstr "" -#: ../../library/threading.rst:345 +#: ../../library/threading.rst:409 msgid "As before, we can access the data in a separate thread::" msgstr "" -#: ../../library/threading.rst:347 +#: ../../library/threading.rst:411 msgid "" ">>> log = []\n" ">>> thread = threading.Thread(target=f)\n" @@ -541,11 +612,11 @@ msgid "" "[[('color', 'red')], 11]" msgstr "" -#: ../../library/threading.rst:354 +#: ../../library/threading.rst:418 msgid "without affecting this thread's data::" msgstr "" -#: ../../library/threading.rst:356 +#: ../../library/threading.rst:420 msgid "" ">>> mydata.number\n" "2\n" @@ -555,13 +626,13 @@ msgid "" "AttributeError: 'MyLocal' object has no attribute 'color'" msgstr "" -#: ../../library/threading.rst:363 +#: ../../library/threading.rst:427 msgid "" "Note that subclasses can define :term:`__slots__`, but they are not thread " "local. They are shared across threads::" msgstr "" -#: ../../library/threading.rst:366 +#: ../../library/threading.rst:430 msgid "" ">>> class MyLocal(local):\n" "... __slots__ = 'number'\n" @@ -571,36 +642,36 @@ msgid "" ">>> mydata.color = 'red'" msgstr "" -#: ../../library/threading.rst:373 +#: ../../library/threading.rst:437 msgid "So, the separate thread::" msgstr "" -#: ../../library/threading.rst:375 +#: ../../library/threading.rst:439 msgid "" ">>> thread = threading.Thread(target=f)\n" ">>> thread.start()\n" ">>> thread.join()" msgstr "" -#: ../../library/threading.rst:379 +#: ../../library/threading.rst:443 msgid "affects what we see::" msgstr "" -#: ../../library/threading.rst:381 +#: ../../library/threading.rst:445 msgid "" ">>> mydata.number\n" "11" msgstr "" -#: ../../library/threading.rst:387 +#: ../../library/threading.rst:451 msgid "A class that represents thread-local data." msgstr "スレッドローカルデータを表現するクラス。" -#: ../../library/threading.rst:393 -msgid "Thread Objects" -msgstr "Thread オブジェクト" +#: ../../library/threading.rst:457 +msgid "Thread objects" +msgstr "" -#: ../../library/threading.rst:395 +#: ../../library/threading.rst:459 msgid "" "The :class:`Thread` class represents an activity that is run in a separate " "thread of control. There are two ways to specify the activity: by passing a " @@ -610,7 +681,7 @@ msgid "" "``__init__()`` and :meth:`~Thread.run` methods of this class." msgstr "" -#: ../../library/threading.rst:402 +#: ../../library/threading.rst:466 msgid "" "Once a thread object is created, its activity must be started by calling the " "thread's :meth:`~Thread.start` method. This invokes the :meth:`~Thread.run` " @@ -620,7 +691,7 @@ msgstr "" "ソッドを呼び出して活動を開始しなければなりません。 :meth:`start` メソッド は" "それぞれのスレッドの :meth:`~Thread.run` メソッドを起動します。" -#: ../../library/threading.rst:406 +#: ../../library/threading.rst:470 msgid "" "Once the thread's activity is started, the thread is considered 'alive'. It " "stops being alive when its :meth:`~Thread.run` method terminates -- either " @@ -632,7 +703,7 @@ msgstr "" "外が送出されるまで生存中となります。 :meth:`~Thread.is_alive` メソッドは、ス" "レッドが生存中であるかどうか調べます。" -#: ../../library/threading.rst:411 +#: ../../library/threading.rst:475 msgid "" "Other threads can call a thread's :meth:`~Thread.join` method. This blocks " "the calling thread until the thread whose :meth:`~Thread.join` method is " @@ -642,7 +713,7 @@ msgstr "" "す。このメソッドは、 :meth:`~Thread.join` メソッドを呼ばれたスレッドが終了す" "るまでメソッドの呼び出し元のスレッドをブロックします。" -#: ../../library/threading.rst:415 +#: ../../library/threading.rst:479 msgid "" "A thread has a name. The name can be passed to the constructor, and read or " "changed through the :attr:`~Thread.name` attribute." @@ -650,7 +721,7 @@ msgstr "" "スレッドは名前を持っています。名前はコンストラクタに渡すことができ、 :attr:" "`~Thread.name` 属性を通して読み出したり変更したりできます。" -#: ../../library/threading.rst:418 +#: ../../library/threading.rst:482 msgid "" "If the :meth:`~Thread.run` method raises an exception, :func:`threading." "excepthook` is called to handle it. By default, :func:`threading.excepthook` " @@ -660,7 +731,7 @@ msgstr "" "excepthook` が呼び出され、例外を処理します。デフォルトでは、:func:`threading." "excepthook` は :exc:`SystemExit` を黙殺します。" -#: ../../library/threading.rst:422 +#: ../../library/threading.rst:486 msgid "" "A thread can be flagged as a \"daemon thread\". The significance of this " "flag is that the entire Python program exits when only daemon threads are " @@ -674,7 +745,7 @@ msgstr "" "レッドを生成したスレッドから継承します。フラグの値は :attr:`~Thread.daemon` " "プロパティまたは *daemon* コンストラクタ引数を通して設定できます。" -#: ../../library/threading.rst:429 +#: ../../library/threading.rst:493 msgid "" "Daemon threads are abruptly stopped at shutdown. Their resources (such as " "open files, database transactions, etc.) may not be released properly. If " @@ -687,7 +758,7 @@ msgstr "" "レッドを非デーモンスレッドにして、:class:`Event` のような適切なシグナル送信機" "構を使用してください。" -#: ../../library/threading.rst:434 +#: ../../library/threading.rst:498 msgid "" "There is a \"main thread\" object; this corresponds to the initial thread of " "control in the Python program. It is not a daemon thread." @@ -696,7 +767,7 @@ msgstr "" "は Python プログラムを最初に制御していたスレッドです。主スレッドはデーモンス" "レッドではありません。" -#: ../../library/threading.rst:437 +#: ../../library/threading.rst:501 msgid "" "There is the possibility that \"dummy thread objects\" are created. These " "are thread objects corresponding to \"alien threads\", which are threads of " @@ -714,7 +785,7 @@ msgstr "" "であるとみなされ、 :ref:`join ` できません。また、外来ス" "レッドの終了を検出するのは不可能なので、ダミースレッドは削除できません。" -#: ../../library/threading.rst:448 +#: ../../library/threading.rst:512 msgid "" "This constructor should always be called with keyword arguments. Arguments " "are:" @@ -722,13 +793,13 @@ msgstr "" "コンストラクタは常にキーワード引数を使って呼び出さなければなりません。各引数" "は以下の通りです:" -#: ../../library/threading.rst:451 +#: ../../library/threading.rst:515 msgid "" "*group* should be ``None``; reserved for future extension when a :class:`!" "ThreadGroup` class is implemented." msgstr "" -#: ../../library/threading.rst:454 +#: ../../library/threading.rst:518 msgid "" "*target* is the callable object to be invoked by the :meth:`run` method. " "Defaults to ``None``, meaning nothing is called." @@ -736,7 +807,7 @@ msgstr "" "*target* は :meth:`run` メソッドによって起動される呼び出し可能オブジェクトで" "す。デフォルトでは何も呼び出さないことを示す ``None`` になっています。" -#: ../../library/threading.rst:457 +#: ../../library/threading.rst:521 msgid "" "*name* is the thread name. By default, a unique name is constructed of the " "form \"Thread-*N*\" where *N* is a small decimal number, or \"Thread-*N* " @@ -747,7 +818,7 @@ msgstr "" "たは*target*引数が指定された場合\"Thread-*N* (target)\"(\"target\"は``target." "__name__``)という形式でユニークな名前が構成される。" -#: ../../library/threading.rst:462 +#: ../../library/threading.rst:526 msgid "" "*args* is a list or tuple of arguments for the target invocation. Defaults " "to ``()``." @@ -755,7 +826,7 @@ msgstr "" "*args* は *target* を呼び出すときの引数のリストかタプルです。デフォルトは " "``()`` です。" -#: ../../library/threading.rst:464 +#: ../../library/threading.rst:528 msgid "" "*kwargs* is a dictionary of keyword arguments for the target invocation. " "Defaults to ``{}``." @@ -763,7 +834,7 @@ msgstr "" "*kwargs* は *target* を呼び出すときのキーワード引数の辞書です。デフォルトは " "``{}`` です。" -#: ../../library/threading.rst:467 +#: ../../library/threading.rst:531 msgid "" "If not ``None``, *daemon* explicitly sets whether the thread is daemonic. If " "``None`` (the default), the daemonic property is inherited from the current " @@ -773,7 +844,7 @@ msgstr "" "す。``None`` の場合 (デフォルト)、デーモン属性は現在のスレッドから継承されま" "す。" -#: ../../library/threading.rst:471 +#: ../../library/threading.rst:535 msgid "" "*context* is the :class:`~contextvars.Context` value to use when starting " "the thread. The default value is ``None`` which indicates that the :data:" @@ -786,7 +857,7 @@ msgid "" "defaults true on free-threaded builds and false otherwise." msgstr "" -#: ../../library/threading.rst:481 +#: ../../library/threading.rst:545 msgid "" "If the subclass overrides the constructor, it must make sure to invoke the " "base class constructor (``Thread.__init__()``) before doing anything else to " @@ -796,23 +867,23 @@ msgstr "" "前に基底クラスのコンストラクタ (``Thread.__init__()``) を呼び出しておかなくて" "はなりません。" -#: ../../library/threading.rst:485 +#: ../../library/threading.rst:549 msgid "Added the *daemon* parameter." msgstr "" -#: ../../library/threading.rst:488 +#: ../../library/threading.rst:552 msgid "Use the *target* name if *name* argument is omitted." msgstr "*name* 引数が省略された場合、*target* 名を使用します。" -#: ../../library/threading.rst:491 +#: ../../library/threading.rst:555 msgid "Added the *context* parameter." msgstr "*context* パラメータを追加しました。" -#: ../../library/threading.rst:496 +#: ../../library/threading.rst:560 msgid "Start the thread's activity." msgstr "スレッドの活動を開始します。" -#: ../../library/threading.rst:498 +#: ../../library/threading.rst:562 msgid "" "It must be called at most once per thread object. It arranges for the " "object's :meth:`~Thread.run` method to be invoked in a separate thread of " @@ -822,7 +893,7 @@ msgstr "" "meth:`~Thread.start` は、オブジェクトの :meth:`~Thread.run` メソッドが個別の" "処理スレッド中で呼び出されるように調整します。" -#: ../../library/threading.rst:502 +#: ../../library/threading.rst:566 msgid "" "This method will raise a :exc:`RuntimeError` if called more than once on the " "same thread object." @@ -830,22 +901,22 @@ msgstr "" "同じスレッドオブジェクトに対し、このメソッドを2回以上呼び出した場合、 :exc:" "`RuntimeError` を送出します。" -#: ../../library/threading.rst:505 +#: ../../library/threading.rst:569 msgid "" "If supported, set the operating system thread name to :attr:`threading." "Thread.name`. The name can be truncated depending on the operating system " "thread name limits." msgstr "" -#: ../../library/threading.rst:509 +#: ../../library/threading.rst:573 msgid "Set the operating system thread name." msgstr "" -#: ../../library/threading.rst:514 +#: ../../library/threading.rst:578 msgid "Method representing the thread's activity." msgstr "スレッドの活動をもたらすメソッドです。" -#: ../../library/threading.rst:516 +#: ../../library/threading.rst:580 msgid "" "You may override this method in a subclass. The standard :meth:`run` method " "invokes the callable object passed to the object's constructor as the " @@ -857,7 +928,7 @@ msgstr "" "指定した場合、 *args* および *kwargs* の位置引数およびキーワード引数とともに" "呼び出します。" -#: ../../library/threading.rst:521 +#: ../../library/threading.rst:585 msgid "" "Using list or tuple as the *args* argument which passed to the :class:" "`Thread` could achieve the same effect." @@ -865,11 +936,11 @@ msgstr "" ":class:`Thread` に渡される *args* の引数にリストやタプルを使っても、同じ効果" "が得られます。" -#: ../../library/threading.rst:524 +#: ../../library/threading.rst:588 msgid "Example::" msgstr "以下はプログラム例です::" -#: ../../library/threading.rst:526 +#: ../../library/threading.rst:590 msgid "" ">>> from threading import Thread\n" ">>> t = Thread(target=print, args=[1])\n" @@ -880,7 +951,7 @@ msgid "" "1" msgstr "" -#: ../../library/threading.rst:538 +#: ../../library/threading.rst:602 msgid "" "Wait until the thread terminates. This blocks the calling thread until the " "thread whose :meth:`~Thread.join` method is called terminates -- either " @@ -892,7 +963,7 @@ msgstr "" "理されない例外によって終了するか、オプションのタイムアウトが発生するまで、メ" "ソッドの呼び出し元のスレッドをブロックします。" -#: ../../library/threading.rst:543 +#: ../../library/threading.rst:607 msgid "" "When the *timeout* argument is present and not ``None``, it should be a " "floating-point number specifying a timeout for the operation in seconds (or " @@ -902,7 +973,7 @@ msgid "" "`~Thread.join` call timed out." msgstr "" -#: ../../library/threading.rst:550 +#: ../../library/threading.rst:614 msgid "" "When the *timeout* argument is not present or ``None``, the operation will " "block until the thread terminates." @@ -910,11 +981,11 @@ msgstr "" "*timeout* が指定されないかまたは ``None`` であるときは、この操作はスレッドが" "終了するまでブロックします。" -#: ../../library/threading.rst:553 +#: ../../library/threading.rst:617 msgid "A thread can be joined many times." msgstr "1つのスレッドは何回も join されることができます。" -#: ../../library/threading.rst:555 +#: ../../library/threading.rst:619 msgid "" ":meth:`~Thread.join` raises a :exc:`RuntimeError` if an attempt is made to " "join the current thread as that would cause a deadlock. It is also an error " @@ -926,18 +997,18 @@ msgstr "" "前に :meth:`~Thread.join` を呼び出すことも同様のエラーのため、同じ例外が送出" "されます。" -#: ../../library/threading.rst:560 +#: ../../library/threading.rst:624 msgid "" "If an attempt is made to join a running daemonic thread in in late stages " "of :term:`Python finalization ` :meth:`!join` raises " "a :exc:`PythonFinalizationError`." msgstr "" -#: ../../library/threading.rst:566 +#: ../../library/threading.rst:630 msgid "May raise :exc:`PythonFinalizationError`." msgstr "" -#: ../../library/threading.rst:570 +#: ../../library/threading.rst:634 msgid "" "A string used for identification purposes only. It has no semantics. " "Multiple threads may be given the same name. The initial name is set by the " @@ -947,7 +1018,7 @@ msgstr "" "ありません。複数のスレッドに同じ名前をつけてもかまいません。名前の初期値はコ" "ンストラクタで設定されます。" -#: ../../library/threading.rst:574 +#: ../../library/threading.rst:638 msgid "" "On some platforms, the thread name is set at the operating system level when " "the thread starts, so that it is visible in task managers. This name may be " @@ -955,14 +1026,14 @@ msgid "" "or 63 bytes on macOS)." msgstr "" -#: ../../library/threading.rst:579 +#: ../../library/threading.rst:643 msgid "" "Changes to *name* are only reflected at the OS level when the currently " "running thread is renamed. (Setting the *name* attribute of a different " "thread only updates the Python Thread object.)" msgstr "" -#: ../../library/threading.rst:586 +#: ../../library/threading.rst:650 msgid "" "Deprecated getter/setter API for :attr:`~Thread.name`; use it directly as a " "property instead." @@ -970,7 +1041,7 @@ msgstr "" ":attr:`~Thread.name` に対する非推奨 getter/setter API; 代わりにプロパティを直" "接使用してください。" -#: ../../library/threading.rst:593 +#: ../../library/threading.rst:657 msgid "" "The 'thread identifier' of this thread or ``None`` if the thread has not " "been started. This is a nonzero integer. See the :func:`get_ident` " @@ -983,7 +1054,7 @@ msgstr "" "が終了した後、新たなスレッドが生成された場合、再利用され得ます。スレッド識別" "子は、スレッドが終了した後でも利用できます。" -#: ../../library/threading.rst:601 +#: ../../library/threading.rst:665 msgid "" "The Thread ID (``TID``) of this thread, as assigned by the OS (kernel). This " "is a non-negative integer, or ``None`` if the thread has not been started. " @@ -992,18 +1063,18 @@ msgid "" "after which the value may be recycled by the OS)." msgstr "" -#: ../../library/threading.rst:610 +#: ../../library/threading.rst:674 msgid "" "Similar to Process IDs, Thread IDs are only valid (guaranteed unique system-" "wide) from the time the thread is created until the thread has been " "terminated." msgstr "" -#: ../../library/threading.rst:620 +#: ../../library/threading.rst:684 msgid "Return whether the thread is alive." msgstr "スレッドが生存中かどうかを返します。" -#: ../../library/threading.rst:622 +#: ../../library/threading.rst:686 msgid "" "This method returns ``True`` just before the :meth:`~Thread.run` method " "starts until just after the :meth:`~Thread.run` method terminates. The " @@ -1013,7 +1084,7 @@ msgstr "" "`~Thread.run` メソッドが終了する直後までの間 ``True`` を返します。モジュール" "関数 :func:`.enumerate` は、全ての生存中のスレッドのリストを返します。" -#: ../../library/threading.rst:628 +#: ../../library/threading.rst:692 msgid "" "A boolean value indicating whether this thread is a daemon thread (``True``) " "or not (``False``). This must be set before :meth:`~Thread.start` is " @@ -1029,14 +1100,14 @@ msgstr "" "作成されたすべてのスレッドは、デフォルトで :attr:`~Thread.daemon` = " "``False`` になります。" -#: ../../library/threading.rst:635 +#: ../../library/threading.rst:699 msgid "" "The entire Python program exits when no alive non-daemon threads are left." msgstr "" "デーモンでない生存中のスレッドが全てなくなると、 Python プログラム全体が終了" "します。" -#: ../../library/threading.rst:640 +#: ../../library/threading.rst:704 msgid "" "Deprecated getter/setter API for :attr:`~Thread.daemon`; use it directly as " "a property instead." @@ -1044,11 +1115,11 @@ msgstr "" ":attr:`~Thread.daemon` に対する非推奨 getter/setter API; 代わりにプロパティを" "直接使用してください。" -#: ../../library/threading.rst:649 -msgid "Lock Objects" -msgstr "Lock オブジェクト" +#: ../../library/threading.rst:713 +msgid "Lock objects" +msgstr "" -#: ../../library/threading.rst:651 +#: ../../library/threading.rst:715 msgid "" "A primitive lock is a synchronization primitive that is not owned by a " "particular thread when locked. In Python, it is currently the lowest level " @@ -1059,7 +1130,7 @@ msgstr "" "同期プリミティブです。 Python では現在のところ拡張モジュール :mod:`_thread` " "で直接実装されている最も低水準の同期プリミティブを使えます。" -#: ../../library/threading.rst:656 +#: ../../library/threading.rst:720 msgid "" "A primitive lock is in one of two states, \"locked\" or \"unlocked\". It is " "created in the unlocked state. It has two basic methods, :meth:`~Lock." @@ -1084,13 +1155,13 @@ msgstr "" "に処理を戻します。 アンロックの状態のロックを解放しようとすると :exc:" "`RuntimeError` が送出されます。" -#: ../../library/threading.rst:667 +#: ../../library/threading.rst:731 msgid "Locks also support the :ref:`context management protocol `." msgstr "" "ロックは :ref:`コンテキストマネージメントプロトコル ` もサポート" "します。" -#: ../../library/threading.rst:669 +#: ../../library/threading.rst:733 msgid "" "When more than one thread is blocked in :meth:`~Lock.acquire` waiting for " "the state to turn to unlocked, only one thread proceeds when a :meth:`~Lock." @@ -1103,11 +1174,11 @@ msgstr "" "ドが処理を進行できるのかは定義されておらず、実装によって異なるかもしれませ" "ん。" -#: ../../library/threading.rst:674 +#: ../../library/threading.rst:738 msgid "All methods are executed atomically." msgstr "全てのメソッドはアトミックに実行されます。" -#: ../../library/threading.rst:679 +#: ../../library/threading.rst:743 msgid "" "The class implementing primitive lock objects. Once a thread has acquired a " "lock, subsequent attempts to acquire it block, until it is released; any " @@ -1117,17 +1188,17 @@ msgstr "" "レッドが一度ロックを獲得すると、それ以後のロック獲得の試みはロックが解放され" "るまでブロックします。どのスレッドでもロックを解放できます。" -#: ../../library/threading.rst:683 +#: ../../library/threading.rst:747 msgid "" "``Lock`` is now a class. In earlier Pythons, ``Lock`` was a factory function " "which returned an instance of the underlying private lock type." msgstr "" -#: ../../library/threading.rst:691 ../../library/threading.rst:785 +#: ../../library/threading.rst:755 ../../library/threading.rst:849 msgid "Acquire a lock, blocking or non-blocking." msgstr "ブロックあり、またはブロックなしでロックを獲得します。" -#: ../../library/threading.rst:693 +#: ../../library/threading.rst:757 msgid "" "When invoked with the *blocking* argument set to ``True`` (the default), " "block until the lock is unlocked, then set it to locked and return ``True``." @@ -1136,7 +1207,7 @@ msgstr "" "ンロック状態になるまでブロックします。そしてそれをロック状態にしてから " "``True`` を返します。" -#: ../../library/threading.rst:696 +#: ../../library/threading.rst:760 msgid "" "When invoked with the *blocking* argument set to ``False``, do not block. If " "a call with *blocking* set to ``True`` would block, return ``False`` " @@ -1147,7 +1218,7 @@ msgstr "" "に ``False`` を返します。それ以外の場合には、ロックをロック状態にして " "``True`` を返します。" -#: ../../library/threading.rst:700 +#: ../../library/threading.rst:764 msgid "" "When invoked with the floating-point *timeout* argument set to a positive " "value, block for at most the number of seconds specified by *timeout* and as " @@ -1160,7 +1231,7 @@ msgstr "" "*timeout* 引数の ``-1`` は無制限の待機を指定します。*blocking* が ``False`` " "の場合に *timeout* を指定することは禁止されています。" -#: ../../library/threading.rst:706 +#: ../../library/threading.rst:770 msgid "" "The return value is ``True`` if the lock is acquired successfully, ``False`` " "if not (for example if the *timeout* expired)." @@ -1168,22 +1239,22 @@ msgstr "" "ロックを獲得すると ``True`` を、ロックを獲得できなかったとき (例えば " "*timeout* が過ぎた場合) には ``False`` を返します。" -#: ../../library/threading.rst:709 ../../library/threading.rst:823 -#: ../../library/threading.rst:1083 +#: ../../library/threading.rst:773 ../../library/threading.rst:887 +#: ../../library/threading.rst:1147 msgid "The *timeout* parameter is new." msgstr "新しい *timeout* 引数。" -#: ../../library/threading.rst:712 +#: ../../library/threading.rst:776 msgid "" "Lock acquisition can now be interrupted by signals on POSIX if the " "underlying threading implementation supports it." msgstr "" -#: ../../library/threading.rst:716 +#: ../../library/threading.rst:780 msgid "Lock acquisition can now be interrupted by signals on Windows." msgstr "" -#: ../../library/threading.rst:722 +#: ../../library/threading.rst:786 msgid "" "Release a lock. This can be called from any thread, not only the thread " "which has acquired the lock." @@ -1191,7 +1262,7 @@ msgstr "" "ロックを解放します。これはロックを獲得したスレッドだけでなく、任意のスレッド" "から呼ぶことができます。" -#: ../../library/threading.rst:725 +#: ../../library/threading.rst:789 msgid "" "When the lock is locked, reset it to unlocked, and return. If any other " "threads are blocked waiting for the lock to become unlocked, allow exactly " @@ -1201,25 +1272,25 @@ msgstr "" "のスレッドがロックがアンロック状態になるのを待ってブロックしている場合、ただ" "一つのスレッドだけが処理を継続できるようにします。" -#: ../../library/threading.rst:729 +#: ../../library/threading.rst:793 msgid "When invoked on an unlocked lock, a :exc:`RuntimeError` is raised." msgstr "" "アンロック状態のロックに対して呼び出された場合、:exc:`RuntimeError` が送出さ" "れます。" -#: ../../library/threading.rst:731 ../../library/threading.rst:839 +#: ../../library/threading.rst:795 ../../library/threading.rst:903 msgid "There is no return value." msgstr "戻り値はありません。" -#: ../../library/threading.rst:735 +#: ../../library/threading.rst:799 msgid "Return ``True`` if the lock is acquired." msgstr "ロック状態のとき ``True`` を返します。" -#: ../../library/threading.rst:742 -msgid "RLock Objects" -msgstr "RLock オブジェクト" +#: ../../library/threading.rst:806 +msgid "RLock objects" +msgstr "" -#: ../../library/threading.rst:744 +#: ../../library/threading.rst:808 msgid "" "A reentrant lock is a synchronization primitive that may be acquired " "multiple times by the same thread. Internally, it uses the concepts of " @@ -1234,13 +1305,13 @@ msgstr "" "がロックを所有しており、アンロック状態ではいかなるスレッドもロックを所有して" "いません。" -#: ../../library/threading.rst:750 +#: ../../library/threading.rst:814 msgid "" "Threads call a lock's :meth:`~RLock.acquire` method to lock it, and its :" "meth:`~Lock.release` method to unlock it." msgstr "" -#: ../../library/threading.rst:755 +#: ../../library/threading.rst:819 msgid "" "Reentrant locks support the :ref:`context management protocol `, " "so it is recommended to use :keyword:`with` instead of manually calling :" @@ -1248,7 +1319,7 @@ msgid "" "releasing the lock for a block of code." msgstr "" -#: ../../library/threading.rst:760 +#: ../../library/threading.rst:824 msgid "" "RLock's :meth:`~RLock.acquire`/:meth:`~RLock.release` call pairs may be " "nested, unlike Lock's :meth:`~Lock.acquire`/:meth:`~Lock.release`. Only the " @@ -1257,7 +1328,7 @@ msgid "" "in :meth:`~RLock.acquire` to proceed." msgstr "" -#: ../../library/threading.rst:766 +#: ../../library/threading.rst:830 msgid "" ":meth:`~RLock.acquire`/:meth:`~RLock.release` must be used in pairs: each " "acquire must have a release in the thread that has acquired the lock. " @@ -1265,7 +1336,7 @@ msgid "" "deadlock." msgstr "" -#: ../../library/threading.rst:773 +#: ../../library/threading.rst:837 msgid "" "This class implements reentrant lock objects. A reentrant lock must be " "released by the thread that acquired it. Once a thread has acquired a " @@ -1277,7 +1348,7 @@ msgstr "" "ロックを獲得すると、同じスレッドはブロックされずにもう一度それを獲得できま" "す ; そのスレッドは獲得した回数だけ解放しなければいけません。" -#: ../../library/threading.rst:778 +#: ../../library/threading.rst:842 msgid "" "Note that ``RLock`` is actually a factory function which returns an instance " "of the most efficient version of the concrete RLock class that is supported " @@ -1287,32 +1358,32 @@ msgstr "" "率的なバージョンの具体的な RLock クラスのインスタンスを返すことに注意してくだ" "さい。" -#: ../../library/threading.rst:789 +#: ../../library/threading.rst:853 msgid ":ref:`Using RLock as a context manager `" msgstr "" -#: ../../library/threading.rst:790 +#: ../../library/threading.rst:854 msgid "" "Recommended over manual :meth:`!acquire` and :meth:`release` calls whenever " "practical." msgstr "" -#: ../../library/threading.rst:794 +#: ../../library/threading.rst:858 msgid "" "When invoked with the *blocking* argument set to ``True`` (the default):" msgstr "" -#: ../../library/threading.rst:796 ../../library/threading.rst:808 +#: ../../library/threading.rst:860 ../../library/threading.rst:872 msgid "If no thread owns the lock, acquire the lock and return immediately." msgstr "" -#: ../../library/threading.rst:798 +#: ../../library/threading.rst:862 msgid "" "If another thread owns the lock, block until we are able to acquire lock, or " "*timeout*, if set to a positive float value." msgstr "" -#: ../../library/threading.rst:801 +#: ../../library/threading.rst:865 msgid "" "If the same thread owns the lock, acquire the lock again, and return " "immediately. This is the difference between :class:`Lock` and :class:`!" @@ -1320,35 +1391,35 @@ msgid "" "until the lock can be acquired." msgstr "" -#: ../../library/threading.rst:806 +#: ../../library/threading.rst:870 msgid "When invoked with the *blocking* argument set to ``False``:" msgstr "" -#: ../../library/threading.rst:810 +#: ../../library/threading.rst:874 msgid "If another thread owns the lock, return immediately." msgstr "" -#: ../../library/threading.rst:812 +#: ../../library/threading.rst:876 msgid "" "If the same thread owns the lock, acquire the lock again and return " "immediately." msgstr "" -#: ../../library/threading.rst:815 +#: ../../library/threading.rst:879 msgid "" "In all cases, if the thread was able to acquire the lock, return ``True``. " "If the thread was unable to acquire the lock (i.e. if not blocking or the " "timeout was reached) return ``False``." msgstr "" -#: ../../library/threading.rst:819 +#: ../../library/threading.rst:883 msgid "" "If called multiple times, failing to call :meth:`~RLock.release` as many " "times may lead to deadlock. Consider using :class:`!RLock` as a context " "manager rather than calling acquire/release directly." msgstr "" -#: ../../library/threading.rst:829 +#: ../../library/threading.rst:893 msgid "" "Release a lock, decrementing the recursion level. If after the decrement it " "is zero, reset the lock to unlocked (not owned by any thread), and if any " @@ -1363,22 +1434,22 @@ msgstr "" "す。デクリメント後も再帰レベルがゼロでない場合、ロックの状態はロックのまま" "で、呼び出し側のスレッドに所有されたままになります。" -#: ../../library/threading.rst:835 +#: ../../library/threading.rst:899 msgid "" "Only call this method when the calling thread owns the lock. A :exc:" "`RuntimeError` is raised if this method is called when the lock is not " "acquired." msgstr "" -#: ../../library/threading.rst:844 ../../library/threading.rst:943 +#: ../../library/threading.rst:908 ../../library/threading.rst:1007 msgid "Return a boolean indicating whether this object is locked right now." msgstr "" -#: ../../library/threading.rst:852 -msgid "Condition Objects" -msgstr "Condition オブジェクト" +#: ../../library/threading.rst:916 +msgid "Condition objects" +msgstr "" -#: ../../library/threading.rst:854 +#: ../../library/threading.rst:918 msgid "" "A condition variable is always associated with some kind of lock; this can " "be passed in or one will be created by default. Passing one in is useful " @@ -1391,7 +1462,7 @@ msgstr "" "便利です。ロックは条件オブジェクトの一部です: それを別々に扱う必要はありませ" "ん。" -#: ../../library/threading.rst:859 +#: ../../library/threading.rst:923 msgid "" "A condition variable obeys the :ref:`context management protocol `: using the ``with`` statement acquires the associated lock for the " @@ -1405,7 +1476,7 @@ msgstr "" "release` メソッドは、さらに関連付けられたロックの対応するメソッドを呼び出しま" "す。" -#: ../../library/threading.rst:865 +#: ../../library/threading.rst:929 msgid "" "Other methods must be called with the associated lock held. The :meth:" "`~Condition.wait` method releases the lock, and then blocks until another " @@ -1420,7 +1491,7 @@ msgstr "" "`~Condition.wait` は再びロックを得て戻ります。タイムアウトを指定することも可" "能です。" -#: ../../library/threading.rst:871 +#: ../../library/threading.rst:935 msgid "" "The :meth:`~Condition.notify` method wakes up one of the threads waiting for " "the condition variable, if any are waiting. The :meth:`~Condition." @@ -1430,7 +1501,7 @@ msgstr "" "meth:`~Condition.notify_all` メソッドは条件変数待ちの全てのスレッドを起こしま" "す。" -#: ../../library/threading.rst:875 +#: ../../library/threading.rst:939 msgid "" "Note: the :meth:`~Condition.notify` and :meth:`~Condition.notify_all` " "methods don't release the lock; this means that the thread or threads " @@ -1444,7 +1515,7 @@ msgstr "" "`~Condition.notify_all` を呼び出したスレッドが最終的にロックの所有権を放棄し" "たときに初めて処理を返すのです。" -#: ../../library/threading.rst:881 +#: ../../library/threading.rst:945 msgid "" "The typical programming style using condition variables uses the lock to " "synchronize access to some shared state; threads that are interested in a " @@ -1464,7 +1535,7 @@ msgstr "" "す。例えば、以下のコードは無制限のバッファ容量のときの一般的な生産者-消費者問" "題です::" -#: ../../library/threading.rst:890 +#: ../../library/threading.rst:954 msgid "" "# Consume one item\n" "with cv:\n" @@ -1478,7 +1549,7 @@ msgid "" " cv.notify()" msgstr "" -#: ../../library/threading.rst:901 +#: ../../library/threading.rst:965 msgid "" "The ``while`` loop checking for the application's condition is necessary " "because :meth:`~Condition.wait` can return after an arbitrary long time, and " @@ -1494,7 +1565,7 @@ msgstr "" "`~Condition.wait_for` メソッドを使うことができ、それはタイムアウトの計算を簡" "略化します::" -#: ../../library/threading.rst:908 +#: ../../library/threading.rst:972 msgid "" "# Consume an item\n" "with cv:\n" @@ -1502,7 +1573,7 @@ msgid "" " get_an_available_item()" msgstr "" -#: ../../library/threading.rst:913 +#: ../../library/threading.rst:977 msgid "" "To choose between :meth:`~Condition.notify` and :meth:`~Condition." "notify_all`, consider whether one state change can be interesting for only " @@ -1515,7 +1586,7 @@ msgstr "" "数なのかで考えます。例えば、典型的な生産者-消費者問題では、バッファに1つの要" "素を加えた場合には消費者スレッドを 1 つしか起こさなくてかまいません。" -#: ../../library/threading.rst:921 +#: ../../library/threading.rst:985 msgid "" "This class implements condition variable objects. A condition variable " "allows one or more threads to wait until they are notified by another thread." @@ -1523,7 +1594,7 @@ msgstr "" "このクラスは条件変数 (condition variable) オブジェクトを実装します。条件変数" "を使うと、1つ以上のスレッドを別のスレッドの通知があるまで待機させておけます。" -#: ../../library/threading.rst:924 +#: ../../library/threading.rst:988 msgid "" "If the *lock* argument is given and not ``None``, it must be a :class:`Lock` " "or :class:`RLock` object, and it is used as the underlying lock. Otherwise, " @@ -1534,13 +1605,13 @@ msgstr "" "この場合、 *lock* は根底にあるロックオブジェクトとして使われます。\n" "それ以外の場合には、 :class:`RLock` オブジェクトを新しく作成して使います。" -#: ../../library/threading.rst:928 ../../library/threading.rst:1058 -#: ../../library/threading.rst:1104 ../../library/threading.rst:1156 -#: ../../library/threading.rst:1224 +#: ../../library/threading.rst:992 ../../library/threading.rst:1122 +#: ../../library/threading.rst:1168 ../../library/threading.rst:1220 +#: ../../library/threading.rst:1288 msgid "changed from a factory function to a class." msgstr "ファクトリ関数からクラスに変更されました。" -#: ../../library/threading.rst:933 +#: ../../library/threading.rst:997 msgid "" "Acquire the underlying lock. This method calls the corresponding method on " "the underlying lock; the return value is whatever that method returns." @@ -1548,7 +1619,7 @@ msgstr "" "根底にあるロックを獲得します。このメソッドは根底にあるロックの対応するメソッ" "ドを呼び出します。そのメソッドの戻り値を返します。" -#: ../../library/threading.rst:938 +#: ../../library/threading.rst:1002 msgid "" "Release the underlying lock. This method calls the corresponding method on " "the underlying lock; there is no return value." @@ -1556,7 +1627,7 @@ msgstr "" "根底にあるロックを解放します。このメソッドは根底にあるロックの対応するメソッ" "ドを呼び出します。戻り値はありません。" -#: ../../library/threading.rst:949 +#: ../../library/threading.rst:1013 msgid "" "Wait until notified or until a timeout occurs. If the calling thread has not " "acquired the lock when this method is called, a :exc:`RuntimeError` is " @@ -1566,7 +1637,7 @@ msgstr "" "ドがロックを獲得していないときにこのメソッドを呼び出すと :exc:`RuntimeError` " "が送出されます。" -#: ../../library/threading.rst:953 +#: ../../library/threading.rst:1017 msgid "" "This method releases the underlying lock, and then blocks until it is " "awakened by a :meth:`notify` or :meth:`notify_all` call for the same " @@ -1578,14 +1649,14 @@ msgstr "" "か、オプションのタイムアウトが発生するまでブロックします。一度スレッドが起こ" "されると、再度ロックを獲得して処理を戻します。" -#: ../../library/threading.rst:958 +#: ../../library/threading.rst:1022 msgid "" "When the *timeout* argument is present and not ``None``, it should be a " "floating-point number specifying a timeout for the operation in seconds (or " "fractions thereof)." msgstr "" -#: ../../library/threading.rst:962 +#: ../../library/threading.rst:1026 msgid "" "When the underlying lock is an :class:`RLock`, it is not released using its :" "meth:`release` method, since this may not actually unlock the lock when it " @@ -1602,7 +1673,7 @@ msgstr "" "得する時に、もう一つの内部インターフェースを使ってロックの再帰レベルを復帰し" "ます。" -#: ../../library/threading.rst:970 +#: ../../library/threading.rst:1034 msgid "" "The return value is ``True`` unless a given *timeout* expired, in which case " "it is ``False``." @@ -1610,11 +1681,11 @@ msgstr "" "与えられた *timeout* が過ぎていなければ返り値は ``True`` です。タイムアウトし" "た場合には ``False`` が返ります。" -#: ../../library/threading.rst:973 ../../library/threading.rst:1189 +#: ../../library/threading.rst:1037 ../../library/threading.rst:1253 msgid "Previously, the method always returned ``None``." msgstr "以前は、このメソッドは常に ``None`` を返していました。" -#: ../../library/threading.rst:978 +#: ../../library/threading.rst:1042 msgid "" "Wait until a condition evaluates to true. *predicate* should be a callable " "which result will be interpreted as a boolean value. A *timeout* may be " @@ -1625,7 +1696,7 @@ msgstr "" "して解釈されます。\n" "最大の待ち時間を指定する *timeout* を与えることができます。" -#: ../../library/threading.rst:982 +#: ../../library/threading.rst:1046 msgid "" "This utility method may call :meth:`wait` repeatedly until the predicate is " "satisfied, or until a timeout occurs. The return value is the last return " @@ -1636,7 +1707,7 @@ msgstr "" "meth:`wait` を繰り返し呼び出す場合があります。戻り値は述語の最後の戻り値で、" "もしメソッドがタイムアウトすれば、 ``False`` と評価されます。" -#: ../../library/threading.rst:987 +#: ../../library/threading.rst:1051 msgid "" "Ignoring the timeout feature, calling this method is roughly equivalent to " "writing::" @@ -1644,13 +1715,13 @@ msgstr "" "タイムアウト機能を無視すれば、このメソッドの呼び出しは以下のように書くのとほ" "ぼ等価です::" -#: ../../library/threading.rst:990 +#: ../../library/threading.rst:1054 msgid "" "while not predicate():\n" " cv.wait()" msgstr "" -#: ../../library/threading.rst:993 +#: ../../library/threading.rst:1057 msgid "" "Therefore, the same rules apply as with :meth:`wait`: The lock must be held " "when called and is re-acquired on return. The predicate is evaluated with " @@ -1660,7 +1731,7 @@ msgstr "" "を保持していなければならず、戻るときにロックが再度獲得されます。述語はロック" "を保持した状態で評価されます。" -#: ../../library/threading.rst:1001 +#: ../../library/threading.rst:1065 msgid "" "By default, wake up one thread waiting on this condition, if any. If the " "calling thread has not acquired the lock when this method is called, a :exc:" @@ -1670,7 +1741,7 @@ msgstr "" "のスレッドがロックを獲得していないときにこのメソッドを呼び出すと :exc:" "`RuntimeError` が送出されます。" -#: ../../library/threading.rst:1005 +#: ../../library/threading.rst:1069 msgid "" "This method wakes up at most *n* of the threads waiting for the condition " "variable; it is a no-op if no threads are waiting." @@ -1678,7 +1749,7 @@ msgstr "" "何らかの待機中スレッドがある場合、そのうち *n* スレッドを起こします。待機中の" "スレッドがなければ何もしません。" -#: ../../library/threading.rst:1008 +#: ../../library/threading.rst:1072 msgid "" "The current implementation wakes up exactly *n* threads, if at least *n* " "threads are waiting. However, it's not safe to rely on this behavior. A " @@ -1689,7 +1760,7 @@ msgstr "" "ドを起こします。とはいえ、この挙動に依存するのは安全ではありません。将来、実" "装の最適化によって、複数のスレッドを起こすようになるかもしれないからです。" -#: ../../library/threading.rst:1013 +#: ../../library/threading.rst:1077 msgid "" "Note: an awakened thread does not actually return from its :meth:`wait` call " "until it can reacquire the lock. Since :meth:`notify` does not release the " @@ -1699,7 +1770,7 @@ msgstr "" "しから戻りません。 :meth:`notify` はロックを解放しないので、 :meth:`notify` " "呼び出し側は明示的にロックを解放しなければなりません。" -#: ../../library/threading.rst:1019 +#: ../../library/threading.rst:1083 msgid "" "Wake up all threads waiting on this condition. This method acts like :meth:" "`notify`, but wakes up all waiting threads instead of one. If the calling " @@ -1711,15 +1782,15 @@ msgstr "" "す。呼び出し側のスレッドがロックを獲得していない場合、 :exc:`RuntimeError` が" "送出されます。" -#: ../../library/threading.rst:1024 +#: ../../library/threading.rst:1088 msgid "The method ``notifyAll`` is a deprecated alias for this method." msgstr "関数``notifyAll``はこの関数の非推奨エイリアスです。" -#: ../../library/threading.rst:1030 -msgid "Semaphore Objects" -msgstr "Semaphore オブジェクト" +#: ../../library/threading.rst:1094 +msgid "Semaphore objects" +msgstr "" -#: ../../library/threading.rst:1032 +#: ../../library/threading.rst:1096 msgid "" "This is one of the oldest synchronization primitives in the history of " "computer science, invented by the early Dutch computer scientist Edsger W. " @@ -1731,7 +1802,7 @@ msgstr "" "meth:`~Semaphore.acquire` と :meth:`~Semaphore.release` の代わりに ``P()`` " "と ``V()`` を使いました)。" -#: ../../library/threading.rst:1037 +#: ../../library/threading.rst:1101 msgid "" "A semaphore manages an internal counter which is decremented by each :meth:" "`~Semaphore.acquire` call and incremented by each :meth:`~Semaphore.release` " @@ -1745,14 +1816,14 @@ msgstr "" "になっている場合、他のスレッドが :meth:`~Semaphore.release` を呼び出すまでブ" "ロックします。" -#: ../../library/threading.rst:1043 +#: ../../library/threading.rst:1107 msgid "" "Semaphores also support the :ref:`context management protocol `." msgstr "" "セマフォは :ref:`コンテキストマネージメントプロトコル ` もサポー" "トします。" -#: ../../library/threading.rst:1048 +#: ../../library/threading.rst:1112 msgid "" "This class implements semaphore objects. A semaphore manages an atomic " "counter representing the number of :meth:`release` calls minus the number " @@ -1766,7 +1837,7 @@ msgstr "" "ウンタの値を負にせずに処理を戻せるまで必要ならば処理をブロックします。 " "*value* を指定しない場合、デフォルトの値は 1 になります。" -#: ../../library/threading.rst:1054 +#: ../../library/threading.rst:1118 msgid "" "The optional argument gives the initial *value* for the internal counter; it " "defaults to ``1``. If the *value* given is less than 0, :exc:`ValueError` is " @@ -1776,21 +1847,21 @@ msgstr "" "す。与えられた *value* が 0 より小さい場合、 :exc:`ValueError` が送出されま" "す。" -#: ../../library/threading.rst:1063 +#: ../../library/threading.rst:1127 msgid "Acquire a semaphore." msgstr "セマフォを獲得します。" -#: ../../library/threading.rst:1065 +#: ../../library/threading.rst:1129 msgid "When invoked without arguments:" msgstr "" -#: ../../library/threading.rst:1067 +#: ../../library/threading.rst:1131 msgid "" "If the internal counter is larger than zero on entry, decrement it by one " "and return ``True`` immediately." msgstr "" -#: ../../library/threading.rst:1069 +#: ../../library/threading.rst:1133 msgid "" "If the internal counter is zero on entry, block until awoken by a call to :" "meth:`~Semaphore.release`. Once awoken (and the counter is greater than 0), " @@ -1799,7 +1870,7 @@ msgid "" "threads are awoken should not be relied on." msgstr "" -#: ../../library/threading.rst:1075 +#: ../../library/threading.rst:1139 msgid "" "When invoked with *blocking* set to ``False``, do not block. If a call " "without an argument would block, return ``False`` immediately; otherwise, do " @@ -1810,7 +1881,7 @@ msgstr "" "れ以外の場合には、引数なしで呼び出したときと同じ処理を行い ``True`` を返しま" "す。" -#: ../../library/threading.rst:1079 +#: ../../library/threading.rst:1143 msgid "" "When invoked with a *timeout* other than ``None``, it will block for at most " "*timeout* seconds. If acquire does not complete successfully in that " @@ -1821,7 +1892,7 @@ msgstr "" "acquire が その間隔の間で完了しなかった場合は ``False`` が返ります。そうでな" "ければ ``True`` が返ります。" -#: ../../library/threading.rst:1088 +#: ../../library/threading.rst:1152 msgid "" "Release a semaphore, incrementing the internal counter by *n*. When it was " "zero on entry and other threads are waiting for it to become larger than " @@ -1832,11 +1903,11 @@ msgstr "" "くなるのを待っている別のスレッドがあった場合、それらのスレッドから *n* 個を起" "こします。" -#: ../../library/threading.rst:1092 +#: ../../library/threading.rst:1156 msgid "Added the *n* parameter to release multiple waiting threads at once." msgstr "複数の待機中のスレッドを一度に解放する *n* パラメータを追加しました。" -#: ../../library/threading.rst:1098 +#: ../../library/threading.rst:1162 msgid "" "Class implementing bounded semaphore objects. A bounded semaphore checks to " "make sure its current value doesn't exceed its initial value. If it does, :" @@ -1851,11 +1922,11 @@ msgstr "" "の解放はバグが生じているしるしです。 *value* を指定しない場合、デフォルトの値" "は 1 になります。" -#: ../../library/threading.rst:1111 -msgid ":class:`Semaphore` Example" -msgstr ":class:`Semaphore` の例" +#: ../../library/threading.rst:1175 +msgid ":class:`Semaphore` example" +msgstr "" -#: ../../library/threading.rst:1113 +#: ../../library/threading.rst:1177 msgid "" "Semaphores are often used to guard resources with limited capacity, for " "example, a database server. In any situation where the size of the resource " @@ -1867,14 +1938,14 @@ msgstr "" "ばなりません。主スレッドは、作業スレッドを立ち上げる前にセマフォを初期化しま" "す::" -#: ../../library/threading.rst:1118 +#: ../../library/threading.rst:1182 msgid "" "maxconnections = 5\n" "# ...\n" "pool_sema = BoundedSemaphore(value=maxconnections)" msgstr "" -#: ../../library/threading.rst:1122 +#: ../../library/threading.rst:1186 msgid "" "Once spawned, worker threads call the semaphore's acquire and release " "methods when they need to connect to the server::" @@ -1882,7 +1953,7 @@ msgstr "" "作業スレッドは、ひとたび立ち上がると、サーバへ接続する必要が生じたときにセマ" "フォの :meth:`acquire` および :meth:`release` メソッドを呼び出します::" -#: ../../library/threading.rst:1125 +#: ../../library/threading.rst:1189 msgid "" "with pool_sema:\n" " conn = connectdb()\n" @@ -1892,7 +1963,7 @@ msgid "" " conn.close()" msgstr "" -#: ../../library/threading.rst:1132 +#: ../../library/threading.rst:1196 msgid "" "The use of a bounded semaphore reduces the chance that a programming error " "which causes the semaphore to be released more than it's acquired will go " @@ -1901,11 +1972,11 @@ msgstr "" "有限セマフォを使うと、セマフォを獲得回数以上に解放してしまうというプログラム" "上の間違いを見逃しにくくします。" -#: ../../library/threading.rst:1139 -msgid "Event Objects" -msgstr "Event オブジェクト" +#: ../../library/threading.rst:1203 +msgid "Event objects" +msgstr "" -#: ../../library/threading.rst:1141 +#: ../../library/threading.rst:1205 msgid "" "This is one of the simplest mechanisms for communication between threads: " "one thread signals an event and other threads wait for it." @@ -1913,7 +1984,7 @@ msgstr "" "イベントは、あるスレッドがイベントを発信し、他のスレッドはそれを待つという、" "スレッド間で通信を行うための最も単純なメカニズムの一つです。" -#: ../../library/threading.rst:1144 +#: ../../library/threading.rst:1208 msgid "" "An event object manages an internal flag that can be set to true with the :" "meth:`~Event.set` method and reset to false with the :meth:`~Event.clear` " @@ -1924,7 +1995,7 @@ msgstr "" "セットします。 :meth:`~Event.wait` メソッドはフラグが true になるまでブロック" "します。" -#: ../../library/threading.rst:1151 +#: ../../library/threading.rst:1215 msgid "" "Class implementing event objects. An event manages a flag that can be set " "to true with the :meth:`~Event.set` method and reset to false with the :meth:" @@ -1937,15 +2008,15 @@ msgstr "" "てのフラグが true になるまでブロックするようになっています。フラグの初期値は " "false です。" -#: ../../library/threading.rst:1161 +#: ../../library/threading.rst:1225 msgid "Return ``True`` if and only if the internal flag is true." msgstr "内部フラグが真のとき ``True`` を返します。" -#: ../../library/threading.rst:1163 +#: ../../library/threading.rst:1227 msgid "The method ``isSet`` is a deprecated alias for this method." msgstr "メソッド ``isSet`` はこのメソッドの非推奨エイリアスです。" -#: ../../library/threading.rst:1167 +#: ../../library/threading.rst:1231 msgid "" "Set the internal flag to true. All threads waiting for it to become true are " "awakened. Threads that call :meth:`wait` once the flag is true will not " @@ -1955,7 +2026,7 @@ msgstr "" "全てのスレッドを起こします。一旦フラグが true になると、スレッドが :meth:" "`wait` を呼び出しても全くブロックしなくなります。" -#: ../../library/threading.rst:1173 +#: ../../library/threading.rst:1237 msgid "" "Reset the internal flag to false. Subsequently, threads calling :meth:`wait` " "will block until :meth:`.set` is called to set the internal flag to true " @@ -1965,7 +2036,7 @@ msgstr "" "び内部フラグの値を true にセットするまで、 :meth:`wait` を呼び出したスレッド" "はブロックするようになります。" -#: ../../library/threading.rst:1179 +#: ../../library/threading.rst:1243 msgid "" "Block as long as the internal flag is false and the timeout, if given, has " "not expired. The return value represents the reason that this blocking " @@ -1974,18 +2045,18 @@ msgid "" "become true within the given wait time." msgstr "" -#: ../../library/threading.rst:1185 +#: ../../library/threading.rst:1249 msgid "" "When the timeout argument is present and not ``None``, it should be a " "floating-point number specifying a timeout for the operation in seconds, or " "fractions thereof." msgstr "" -#: ../../library/threading.rst:1196 -msgid "Timer Objects" -msgstr "Timer オブジェクト" +#: ../../library/threading.rst:1260 +msgid "Timer objects" +msgstr "" -#: ../../library/threading.rst:1198 +#: ../../library/threading.rst:1262 msgid "" "This class represents an action that should be run only after a certain " "amount of time has passed --- a timer. :class:`Timer` is a subclass of :" @@ -1996,7 +2067,7 @@ msgstr "" "す。 :class:`Timer` は :class:`Thread` のサブクラスであり、自作のスレッドを構" "築した一例でもあります。" -#: ../../library/threading.rst:1202 +#: ../../library/threading.rst:1266 msgid "" "Timers are started, as with threads, by calling their :meth:`Timer.start " "` method. The timer can be stopped (before its action has " @@ -2005,11 +2076,11 @@ msgid "" "interval specified by the user." msgstr "" -#: ../../library/threading.rst:1208 +#: ../../library/threading.rst:1272 msgid "For example::" msgstr "例えば::" -#: ../../library/threading.rst:1210 +#: ../../library/threading.rst:1274 msgid "" "def hello():\n" " print(\"hello, world\")\n" @@ -2018,7 +2089,7 @@ msgid "" "t.start() # after 30 seconds, \"hello, world\" will be printed" msgstr "" -#: ../../library/threading.rst:1219 +#: ../../library/threading.rst:1283 msgid "" "Create a timer that will run *function* with arguments *args* and keyword " "arguments *kwargs*, after *interval* seconds have passed. If *args* is " @@ -2029,7 +2100,7 @@ msgstr "" "ようなタイマを生成します。*args*が ``None`` (デフォルト) なら空のリストが使用" "されます。*kwargs* が ``None`` (デフォルト) なら空の辞書が使用されます。" -#: ../../library/threading.rst:1229 +#: ../../library/threading.rst:1293 msgid "" "Stop the timer, and cancel the execution of the timer's action. This will " "only work if the timer is still in its waiting stage." @@ -2037,11 +2108,11 @@ msgstr "" "タイマをストップして、その動作の実行をキャンセルします。このメソッドはタイマ" "がまだ活動待ち状態にある場合にのみ動作します。" -#: ../../library/threading.rst:1234 -msgid "Barrier Objects" -msgstr "バリアオブジェクト" +#: ../../library/threading.rst:1298 +msgid "Barrier objects" +msgstr "" -#: ../../library/threading.rst:1238 +#: ../../library/threading.rst:1302 msgid "" "This class provides a simple synchronization primitive for use by a fixed " "number of threads that need to wait for each other. Each of the threads " @@ -2055,12 +2126,12 @@ msgstr "" "ぞれの :meth:`~Barrier.wait` メソッドを呼び出した時点で、すべてのスレッドが同" "時に解放されます。" -#: ../../library/threading.rst:1244 +#: ../../library/threading.rst:1308 msgid "" "The barrier can be reused any number of times for the same number of threads." msgstr "バリアは同じ数のスレッドに対して何度でも再利用することができます。" -#: ../../library/threading.rst:1246 +#: ../../library/threading.rst:1310 msgid "" "As an example, here is a simple way to synchronize a client and server " "thread::" @@ -2068,7 +2139,7 @@ msgstr "" "例として、クライアントとサーバの間でスレッドを同期させる単純な方法を紹介しま" "す::" -#: ../../library/threading.rst:1248 +#: ../../library/threading.rst:1312 msgid "" "b = Barrier(2, timeout=5)\n" "\n" @@ -2086,7 +2157,7 @@ msgid "" " process_client_connection(connection)" msgstr "" -#: ../../library/threading.rst:1266 +#: ../../library/threading.rst:1330 msgid "" "Create a barrier object for *parties* number of threads. An *action*, when " "provided, is a callable to be called by one of the threads when they are " @@ -2098,7 +2169,7 @@ msgstr "" "ちの1つによって呼ばれます。 *timeout* は、 :meth:`wait` メソッドに対して " "none が指定された場合のデフォルトのタイムアウト値です。" -#: ../../library/threading.rst:1273 +#: ../../library/threading.rst:1337 msgid "" "Pass the barrier. When all the threads party to the barrier have called " "this function, they are all released simultaneously. If a *timeout* is " @@ -2109,7 +2180,7 @@ msgstr "" "らは同時にすべて解放されます。*timeout* が提供される場合、それはクラスコンス" "トラクタに渡された値に優先して使用されます。" -#: ../../library/threading.rst:1278 +#: ../../library/threading.rst:1342 msgid "" "The return value is an integer in the range 0 to *parties* -- 1, different " "for each thread. This can be used to select a thread to do some special " @@ -2119,7 +2190,7 @@ msgstr "" "ります。これは、特別な後始末 (housekeeping) を行うスレッドを選択するために使" "用することができます。例えば::" -#: ../../library/threading.rst:1282 +#: ../../library/threading.rst:1346 msgid "" "i = barrier.wait()\n" "if i == 0:\n" @@ -2127,7 +2198,7 @@ msgid "" " print(\"passed the barrier\")" msgstr "" -#: ../../library/threading.rst:1287 +#: ../../library/threading.rst:1351 msgid "" "If an *action* was provided to the constructor, one of the threads will have " "called it prior to being released. Should this call raise an error, the " @@ -2137,11 +2208,11 @@ msgstr "" "にそれを呼び出します。万一この呼び出しでエラーが発生した場合、バリアは " "broken な状態に陥ります。" -#: ../../library/threading.rst:1291 +#: ../../library/threading.rst:1355 msgid "If the call times out, the barrier is put into the broken state." msgstr "この呼び出しがタイムアウトする場合、バリアは broken な状態に陥ります。" -#: ../../library/threading.rst:1293 +#: ../../library/threading.rst:1357 msgid "" "This method may raise a :class:`BrokenBarrierError` exception if the barrier " "is broken or reset while a thread is waiting." @@ -2149,7 +2220,7 @@ msgstr "" "スレッドが待っている間にバリアが broken になるかリセットされた場合、このメ" "ソッドは :class:`BrokenBarrierError` 例外を送出するかもしれません。" -#: ../../library/threading.rst:1298 +#: ../../library/threading.rst:1362 msgid "" "Return the barrier to the default, empty state. Any threads waiting on it " "will receive the :class:`BrokenBarrierError` exception." @@ -2157,7 +2228,7 @@ msgstr "" "バリアをデフォルトの空の状態に戻します。そのバリアの上で待っているすべてのス" "レッドは :class:`BrokenBarrierError` 例外を受け取ります。" -#: ../../library/threading.rst:1301 +#: ../../library/threading.rst:1365 msgid "" "Note that using this function may require some external synchronization if " "there are other threads whose state is unknown. If a barrier is broken it " @@ -2167,7 +2238,7 @@ msgstr "" "必要とするかもしれないことに注意してください。バリアが broken な場合、単にそ" "れをそのままにして新しいものを作成する方がよいでしょう。" -#: ../../library/threading.rst:1307 +#: ../../library/threading.rst:1371 msgid "" "Put the barrier into a broken state. This causes any active or future calls " "to :meth:`wait` to fail with the :class:`BrokenBarrierError`. Use this for " @@ -2179,7 +2250,7 @@ msgstr "" "使うと、例えばスレッドが異常終了する必要がある場合にアプリケーションがデッド" "ロックするのを避けることができます。" -#: ../../library/threading.rst:1312 +#: ../../library/threading.rst:1376 msgid "" "It may be preferable to simply create the barrier with a sensible *timeout* " "value to automatically guard against one of the threads going awry." @@ -2187,19 +2258,19 @@ msgstr "" "スレッドのうちの1つが返ってこないことに対して自動的に保護するように、単純に常" "識的な *timeout* 値でバリアを作成することは望ましいかもしれません。" -#: ../../library/threading.rst:1318 +#: ../../library/threading.rst:1382 msgid "The number of threads required to pass the barrier." msgstr "バリアを通るために要求されるスレッドの数。" -#: ../../library/threading.rst:1322 +#: ../../library/threading.rst:1386 msgid "The number of threads currently waiting in the barrier." msgstr "現在バリアの中で待っているスレッドの数。" -#: ../../library/threading.rst:1326 +#: ../../library/threading.rst:1390 msgid "A boolean that is ``True`` if the barrier is in the broken state." msgstr "バリアが broken な状態である場合に ``True`` となるブール値。" -#: ../../library/threading.rst:1331 +#: ../../library/threading.rst:1395 msgid "" "This exception, a subclass of :exc:`RuntimeError`, is raised when the :class:" "`Barrier` object is reset or broken." @@ -2207,12 +2278,12 @@ msgstr "" ":class:`Barrier` オブジェクトがリセットされるか broken な場合に、この例外 (:" "exc:`RuntimeError` のサブクラス) が送出されます。" -#: ../../library/threading.rst:1338 +#: ../../library/threading.rst:1402 msgid "" "Using locks, conditions, and semaphores in the :keyword:`!with` statement" msgstr ":keyword:`!with` 文でのロック・条件変数・セマフォの使い方" -#: ../../library/threading.rst:1340 +#: ../../library/threading.rst:1404 msgid "" "All of the objects provided by this module that have ``acquire`` and " "``release`` methods can be used as context managers for a :keyword:`with` " @@ -2221,17 +2292,17 @@ msgid "" "following snippet::" msgstr "" -#: ../../library/threading.rst:1346 +#: ../../library/threading.rst:1410 msgid "" "with some_lock:\n" " # do something..." msgstr "" -#: ../../library/threading.rst:1349 +#: ../../library/threading.rst:1413 msgid "is equivalent to::" msgstr "は、以下と同じです ::" -#: ../../library/threading.rst:1351 +#: ../../library/threading.rst:1415 msgid "" "some_lock.acquire()\n" "try:\n" @@ -2240,7 +2311,7 @@ msgid "" " some_lock.release()" msgstr "" -#: ../../library/threading.rst:1357 +#: ../../library/threading.rst:1421 msgid "" "Currently, :class:`Lock`, :class:`RLock`, :class:`Condition`, :class:" "`Semaphore`, and :class:`BoundedSemaphore` objects may be used as :keyword:" @@ -2250,14 +2321,14 @@ msgstr "" "class:`Semaphore` 、 :class:`BoundedSemaphore` を :keyword:`with` 文のコンテ" "キストマネージャとして使うことができます。" -#: ../../library/threading.rst:158 ../../library/threading.rst:176 +#: ../../library/threading.rst:222 ../../library/threading.rst:240 msgid "trace function" msgstr "trace function" -#: ../../library/threading.rst:176 +#: ../../library/threading.rst:240 msgid "debugger" msgstr "debugger" -#: ../../library/threading.rst:187 ../../library/threading.rst:205 +#: ../../library/threading.rst:251 ../../library/threading.rst:269 msgid "profile function" msgstr "profile function" diff --git a/library/time.po b/library/time.po index 7f568b398..7f2a7f532 100644 --- a/library/time.po +++ b/library/time.po @@ -23,10 +23,10 @@ msgstr "" "Last-Translator: tomo, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../library/time.rst:2 diff --git a/library/timeit.po b/library/timeit.po index 54ab81a72..1342e3274 100644 --- a/library/timeit.po +++ b/library/timeit.po @@ -1,5 +1,5 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2025, Python Software Foundation +# Copyright (C) 2001 Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # @@ -13,17 +13,17 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: Python 3.13\n" +"Project-Id-Version: Python 3.14\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2025-05-02 14:19+0000\n" +"POT-Creation-Date: 2025-05-23 14:20+0000\n" "PO-Revision-Date: 2021-06-28 01:15+0000\n" "Last-Translator: 石井明久, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../library/timeit.rst:2 diff --git a/library/tk.po b/library/tk.po index b975bd47b..aebe01050 100644 --- a/library/tk.po +++ b/library/tk.po @@ -1,5 +1,5 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2025, Python Software Foundation +# Copyright (C) 2001 Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # @@ -10,17 +10,17 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: Python 3.13\n" +"Project-Id-Version: Python 3.14\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2025-05-02 14:19+0000\n" +"POT-Creation-Date: 2025-05-23 14:20+0000\n" "PO-Revision-Date: 2021-06-28 01:15+0000\n" "Last-Translator: 石井明久, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../library/tk.rst:5 diff --git a/library/tkinter.colorchooser.po b/library/tkinter.colorchooser.po index 2d37f4d0b..22ad7b8bf 100644 --- a/library/tkinter.colorchooser.po +++ b/library/tkinter.colorchooser.po @@ -1,5 +1,5 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2025, Python Software Foundation +# Copyright (C) 2001 Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # @@ -11,17 +11,17 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: Python 3.13\n" +"Project-Id-Version: Python 3.14\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2025-05-02 14:19+0000\n" +"POT-Creation-Date: 2025-05-23 14:20+0000\n" "PO-Revision-Date: 2021-06-28 01:15+0000\n" "Last-Translator: 石井明久, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../library/tkinter.colorchooser.rst:2 diff --git a/library/tkinter.dnd.po b/library/tkinter.dnd.po index 601e5eec5..78740eb32 100644 --- a/library/tkinter.dnd.po +++ b/library/tkinter.dnd.po @@ -1,5 +1,5 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2025, Python Software Foundation +# Copyright (C) 2001 Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # @@ -10,17 +10,17 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: Python 3.13\n" +"Project-Id-Version: Python 3.14\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2025-05-02 14:19+0000\n" +"POT-Creation-Date: 2025-05-23 14:20+0000\n" "PO-Revision-Date: 2021-06-28 01:15+0000\n" "Last-Translator: 石井明久, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../library/tkinter.dnd.rst:2 diff --git a/library/tkinter.font.po b/library/tkinter.font.po index b66d8fd72..608995123 100644 --- a/library/tkinter.font.po +++ b/library/tkinter.font.po @@ -1,5 +1,5 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2025, Python Software Foundation +# Copyright (C) 2001 Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # @@ -11,17 +11,17 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: Python 3.13\n" +"Project-Id-Version: Python 3.14\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2025-05-02 14:19+0000\n" +"POT-Creation-Date: 2025-05-23 14:20+0000\n" "PO-Revision-Date: 2021-06-28 01:15+0000\n" "Last-Translator: 石井明久, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../library/tkinter.font.rst:2 diff --git a/library/tkinter.messagebox.po b/library/tkinter.messagebox.po index 3ca308a97..cf4dead05 100644 --- a/library/tkinter.messagebox.po +++ b/library/tkinter.messagebox.po @@ -1,5 +1,5 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2025, Python Software Foundation +# Copyright (C) 2001 Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # @@ -10,17 +10,17 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: Python 3.13\n" +"Project-Id-Version: Python 3.14\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2025-05-02 14:19+0000\n" +"POT-Creation-Date: 2025-05-23 14:20+0000\n" "PO-Revision-Date: 2021-06-28 01:15+0000\n" "Last-Translator: 石井明久, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../library/tkinter.messagebox.rst:2 diff --git a/library/tkinter.po b/library/tkinter.po index d967950f2..b87c9ded1 100644 --- a/library/tkinter.po +++ b/library/tkinter.po @@ -19,10 +19,10 @@ msgstr "" "Last-Translator: 石井明久, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../library/tkinter.rst:2 diff --git a/library/tkinter.scrolledtext.po b/library/tkinter.scrolledtext.po index d935e54e8..230498192 100644 --- a/library/tkinter.scrolledtext.po +++ b/library/tkinter.scrolledtext.po @@ -1,5 +1,5 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2025, Python Software Foundation +# Copyright (C) 2001 Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # @@ -11,17 +11,17 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: Python 3.13\n" +"Project-Id-Version: Python 3.14\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2025-05-02 14:19+0000\n" +"POT-Creation-Date: 2025-05-23 14:20+0000\n" "PO-Revision-Date: 2021-06-28 01:15+0000\n" "Last-Translator: 石井明久, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../library/tkinter.scrolledtext.rst:2 diff --git a/library/tkinter.tix.po b/library/tkinter.tix.po index 8c5b5d978..69dd2f03e 100644 --- a/library/tkinter.tix.po +++ b/library/tkinter.tix.po @@ -18,10 +18,10 @@ msgstr "" "Last-Translator: Arihiro TAKASE, 2023\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../library/tkinter.tix.rst:2 diff --git a/library/tkinter.ttk.po b/library/tkinter.ttk.po index 4119a4d5b..a895618b0 100644 --- a/library/tkinter.ttk.po +++ b/library/tkinter.ttk.po @@ -1,5 +1,5 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2025, Python Software Foundation +# Copyright (C) 2001 Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # @@ -12,17 +12,17 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: Python 3.13\n" +"Project-Id-Version: Python 3.14\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2025-05-02 14:19+0000\n" +"POT-Creation-Date: 2025-05-23 14:20+0000\n" "PO-Revision-Date: 2021-06-28 01:15+0000\n" "Last-Translator: 石井明久, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../library/tkinter.ttk.rst:2 diff --git a/library/token.po b/library/token.po index 121c238c1..8c2f187fe 100644 --- a/library/token.po +++ b/library/token.po @@ -19,10 +19,10 @@ msgstr "" "Last-Translator: tomo, 2025\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../library/token.rst:2 diff --git a/library/tokenize.po b/library/tokenize.po index c9a9d786e..241bb49b9 100644 --- a/library/tokenize.po +++ b/library/tokenize.po @@ -18,10 +18,10 @@ msgstr "" "Last-Translator: 石井明久, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../library/tokenize.rst:2 diff --git a/library/tomllib.po b/library/tomllib.po index 65682cc85..92b13e30e 100644 --- a/library/tomllib.po +++ b/library/tomllib.po @@ -18,10 +18,10 @@ msgstr "" "Last-Translator: tomo, 2025\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../library/tomllib.rst:2 @@ -263,11 +263,11 @@ msgstr "datetime.time" #: ../../library/tomllib.rst:143 msgid "array" -msgstr "配列" +msgstr "array" #: ../../library/tomllib.rst:143 msgid "list" -msgstr "リスト" +msgstr "list" #: ../../library/tomllib.rst:145 msgid "table" diff --git a/library/trace.po b/library/trace.po index 2c93cafe0..a09d38b45 100644 --- a/library/trace.po +++ b/library/trace.po @@ -1,5 +1,5 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2025, Python Software Foundation +# Copyright (C) 2001 Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # @@ -11,17 +11,17 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: Python 3.13\n" +"Project-Id-Version: Python 3.14\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2025-05-02 14:19+0000\n" +"POT-Creation-Date: 2025-05-23 14:20+0000\n" "PO-Revision-Date: 2021-06-28 01:16+0000\n" "Last-Translator: 石井明久, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../library/trace.rst:2 diff --git a/library/traceback.po b/library/traceback.po index cbc3756d7..60ab3b3bb 100644 --- a/library/traceback.po +++ b/library/traceback.po @@ -20,10 +20,10 @@ msgstr "" "Last-Translator: tomo, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../library/traceback.rst:2 diff --git a/library/tracemalloc.po b/library/tracemalloc.po index 33e47d4ea..c2eec45a7 100644 --- a/library/tracemalloc.po +++ b/library/tracemalloc.po @@ -1,5 +1,5 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2025, Python Software Foundation +# Copyright (C) 2001 Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # @@ -12,17 +12,17 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: Python 3.13\n" +"Project-Id-Version: Python 3.14\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2025-05-02 14:19+0000\n" +"POT-Creation-Date: 2025-05-23 14:20+0000\n" "PO-Revision-Date: 2021-06-28 01:16+0000\n" "Last-Translator: 石井明久, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../library/tracemalloc.rst:2 diff --git a/library/tty.po b/library/tty.po index be2c38963..32d595f11 100644 --- a/library/tty.po +++ b/library/tty.po @@ -1,5 +1,5 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2025, Python Software Foundation +# Copyright (C) 2001 Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # @@ -11,17 +11,17 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: Python 3.13\n" +"Project-Id-Version: Python 3.14\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2025-05-02 14:19+0000\n" +"POT-Creation-Date: 2025-05-23 14:20+0000\n" "PO-Revision-Date: 2021-06-28 01:16+0000\n" "Last-Translator: 石井明久, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../library/tty.rst:2 diff --git a/library/turtle.po b/library/turtle.po index 41292a2ac..596d41ce6 100644 --- a/library/turtle.po +++ b/library/turtle.po @@ -19,10 +19,10 @@ msgstr "" "Last-Translator: 秘湯 , 2025\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../library/turtle.rst:3 diff --git a/library/types.po b/library/types.po index cadac3e25..3b52bb988 100644 --- a/library/types.po +++ b/library/types.po @@ -22,10 +22,10 @@ msgstr "" "Last-Translator: Takanori Suzuki , 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../library/types.rst:2 diff --git a/library/typing.po b/library/typing.po index 1c3f87736..d312c7ca9 100644 --- a/library/typing.po +++ b/library/typing.po @@ -23,10 +23,10 @@ msgstr "" "Last-Translator: tomo, 2025\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../library/typing.rst:3 diff --git a/library/undoc.po b/library/undoc.po index 441501c1a..e42bb4d8e 100644 --- a/library/undoc.po +++ b/library/undoc.po @@ -2,10 +2,10 @@ # Copyright (C) 2001-2021, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # tomo, 2021 -# +# #, fuzzy msgid "" msgstr "" @@ -14,11 +14,12 @@ msgstr "" "POT-Creation-Date: 2021-06-29 12:56+0000\n" "PO-Revision-Date: 2021-06-28 01:16+0000\n" "Last-Translator: tomo, 2021\n" -"Language-Team: Japanese (https://www.transifex.com/python-doc/teams/5390/ja/)\n" +"Language-Team: Japanese (https://www.transifex.com/python-doc/teams/5390/" +"ja/)\n" +"Language: 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" #: ../../library/undoc.rst:5 @@ -31,15 +32,18 @@ msgid "" "should be documented. Feel free to contribute documentation for them! " "(Send via email to docs@python.org.)" msgstr "" -"現在ドキュメント化されていないが、ドキュメント化すべきモジュールを以下にざっと列挙します。どうぞこれらのドキュメントを寄稿してください! (電子メールで" -" docs@python.org に送ってください。)" +"現在ドキュメント化されていないが、ドキュメント化すべきモジュールを以下にざっ" +"と列挙します。どうぞこれらのドキュメントを寄稿してください! (電子メールで " +"docs@python.org に送ってください。)" #: ../../library/undoc.rst:11 msgid "" -"The idea and original contents for this chapter were taken from a posting by" -" Fredrik Lundh; the specific contents of this chapter have been " -"substantially revised." -msgstr "この章のアイデアと元の文章内容は Fredrik Lundh のポストによるものです; この章の特定の内容は実際には改訂されてきています。" +"The idea and original contents for this chapter were taken from a posting by " +"Fredrik Lundh; the specific contents of this chapter have been substantially " +"revised." +msgstr "" +"この章のアイデアと元の文章内容は Fredrik Lundh のポストによるものです; この章" +"の特定の内容は実際には改訂されてきています。" #: ../../library/undoc.rst:17 msgid "Platform specific modules" @@ -50,8 +54,9 @@ msgid "" "These modules are used to implement the :mod:`os.path` module, and are not " "documented beyond this mention. There's little need to document these." msgstr "" -"これらのモジュールは :mod:`os.path` " -"モジュールを実装するために用いられていますが、ここで触れる内容を超えてドキュメントされていません。これらはもう少しドキュメント化する必要があります。" +"これらのモジュールは :mod:`os.path` モジュールを実装するために用いられていま" +"すが、ここで触れる内容を超えてドキュメントされていません。これらはもう少しド" +"キュメント化する必要があります。" #: ../../library/undoc.rst:23 msgid ":mod:`ntpath`" diff --git a/library/unicodedata.po b/library/unicodedata.po index 7c0a7db8b..5472c5961 100644 --- a/library/unicodedata.po +++ b/library/unicodedata.po @@ -20,10 +20,10 @@ msgstr "" "Last-Translator: 石井明久, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../library/unicodedata.rst:2 diff --git a/library/unittest.mock-examples.po b/library/unittest.mock-examples.po index 17252c578..fc74570cb 100644 --- a/library/unittest.mock-examples.po +++ b/library/unittest.mock-examples.po @@ -20,10 +20,10 @@ msgstr "" "Last-Translator: Arihiro TAKASE, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../library/unittest.mock-examples.rst:2 @@ -469,8 +469,7 @@ msgid "" "read :ref:`where to patch `." msgstr "" ":func:`patch` では探索される名前空間内のオブジェクトにパッチをあてることが重" -"要です。通常は単純ですが、クイックガイドには :ref:`where-to-patch` を読んでく" -"ださい。" +"要です。通常は単純ですが、詳しくは :ref:`where-to-patch` を参照してください。" #: ../../library/unittest.mock-examples.rst:398 msgid "" diff --git a/library/unittest.mock.po b/library/unittest.mock.po index 07de9db5a..d3a0ef8d0 100644 --- a/library/unittest.mock.po +++ b/library/unittest.mock.po @@ -17,15 +17,15 @@ msgid "" msgstr "" "Project-Id-Version: Python 3.14\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2025-05-08 02:53-0300\n" +"POT-Creation-Date: 2025-05-16 14:19+0000\n" "PO-Revision-Date: 2021-06-28 01:16+0000\n" "Last-Translator: Atsuo Ishimoto , 2025\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../library/unittest.mock.rst:2 @@ -3306,9 +3306,9 @@ msgstr "" #: ../../library/unittest.mock.rst:2655 msgid "" -">>> mock.has_data()\n" +">>> mock.header_items()\n" "\n" -">>> mock.has_data.assret_called_with() # Intentional typo!" +">>> mock.header_items.assret_called_with() # Intentional typo!" msgstr "" #: ../../library/unittest.mock.rst:2661 diff --git a/library/unittest.po b/library/unittest.po index da28dafb6..0b88bccdf 100644 --- a/library/unittest.po +++ b/library/unittest.po @@ -20,15 +20,15 @@ msgid "" msgstr "" "Project-Id-Version: Python 3.14\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2025-05-08 02:53-0300\n" +"POT-Creation-Date: 2025-05-23 14:20+0000\n" "PO-Revision-Date: 2021-06-28 01:16+0000\n" "Last-Translator: tomo, 2025\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../library/unittest.rst:2 @@ -256,14 +256,11 @@ msgstr "" #: ../../library/unittest.rst:112 msgid "" -"A testcase is created by subclassing :class:`unittest.TestCase`. The three " +"A test case is created by subclassing :class:`unittest.TestCase`. The three " "individual tests are defined with methods whose names start with the letters " "``test``. This naming convention informs the test runner about which " "methods represent tests." msgstr "" -"テストケースは、 :class:`unittest.TestCase` のサブクラスとして作成します。メ" -"ソッド名が ``test`` で始まる三つのメソッドがテストです。テストランナーはこの" -"命名規約によってテストを行うメソッドを検索します。" #: ../../library/unittest.rst:117 msgid "" diff --git a/library/unix.po b/library/unix.po index 7b0b86494..21955efd2 100644 --- a/library/unix.po +++ b/library/unix.po @@ -17,10 +17,10 @@ msgstr "" "Last-Translator: Osamu NAKAMURA, 2021\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../library/unix.rst:5 diff --git a/library/urllib.error.po b/library/urllib.error.po index b9c817e0d..689992778 100644 --- a/library/urllib.error.po +++ b/library/urllib.error.po @@ -1,5 +1,5 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2025, Python Software Foundation +# Copyright (C) 2001 Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # @@ -10,17 +10,17 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: Python 3.13\n" +"Project-Id-Version: Python 3.14\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2025-05-02 14:19+0000\n" +"POT-Creation-Date: 2025-05-23 14:20+0000\n" "PO-Revision-Date: 2021-06-28 01:16+0000\n" "Last-Translator: 石井明久, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../library/urllib.error.rst:2 diff --git a/library/urllib.parse.po b/library/urllib.parse.po index 3d3e34798..17f5952c8 100644 --- a/library/urllib.parse.po +++ b/library/urllib.parse.po @@ -23,10 +23,10 @@ msgstr "" "Last-Translator: 石井明久, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../library/urllib.parse.rst:2 diff --git a/library/urllib.po b/library/urllib.po index 17f64f20f..2681271ce 100644 --- a/library/urllib.po +++ b/library/urllib.po @@ -1,5 +1,5 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2025, Python Software Foundation +# Copyright (C) 2001 Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # @@ -10,17 +10,17 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: Python 3.13\n" +"Project-Id-Version: Python 3.14\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2025-05-02 14:19+0000\n" +"POT-Creation-Date: 2025-05-23 14:20+0000\n" "PO-Revision-Date: 2021-06-28 01:17+0000\n" "Last-Translator: 石井明久, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../library/urllib.rst:2 diff --git a/library/urllib.request.po b/library/urllib.request.po index 883c56ec8..31e88e534 100644 --- a/library/urllib.request.po +++ b/library/urllib.request.po @@ -18,15 +18,15 @@ msgid "" msgstr "" "Project-Id-Version: Python 3.14\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2025-05-08 02:53-0300\n" +"POT-Creation-Date: 2025-05-16 14:19+0000\n" "PO-Revision-Date: 2021-06-28 01:17+0000\n" "Last-Translator: 石井明久, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../library/urllib.request.rst:2 @@ -1634,10 +1634,8 @@ msgstr "HTTPHandler オブジェクト" #: ../../library/urllib.request.rst:1123 msgid "" "Send an HTTP request, which can be either GET or POST, depending on ``req." -"has_data()``." +"data``." msgstr "" -"HTTP リクエストを送ります。 ``req.has_data()`` に応じて、 GET または POST の" -"どちらでも送ることができます。" #: ../../library/urllib.request.rst:1130 msgid "HTTPSHandler Objects" @@ -1646,10 +1644,8 @@ msgstr "HTTPSHandler オブジェクト" #: ../../library/urllib.request.rst:1135 msgid "" "Send an HTTPS request, which can be either GET or POST, depending on ``req." -"has_data()``." +"data``." msgstr "" -"HTTPS リクエストを送ります。 ``req.has_data()`` に応じて、 GET または POST の" -"どちらでも送ることができます。" #: ../../library/urllib.request.rst:1142 msgid "FileHandler Objects" diff --git a/library/urllib.robotparser.po b/library/urllib.robotparser.po index 658b1f35c..93c32fb20 100644 --- a/library/urllib.robotparser.po +++ b/library/urllib.robotparser.po @@ -1,5 +1,5 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2025, Python Software Foundation +# Copyright (C) 2001 Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # @@ -14,17 +14,17 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: Python 3.13\n" +"Project-Id-Version: Python 3.14\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2025-05-02 14:19+0000\n" +"POT-Creation-Date: 2025-05-23 14:20+0000\n" "PO-Revision-Date: 2021-06-28 01:17+0000\n" "Last-Translator: 石井明久, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../library/urllib.robotparser.rst:2 diff --git a/library/uu.po b/library/uu.po index ee9163b69..d11442f56 100644 --- a/library/uu.po +++ b/library/uu.po @@ -1,21 +1,21 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2025, Python Software Foundation +# Copyright (C) 2001 Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # #, fuzzy msgid "" msgstr "" -"Project-Id-Version: Python 3.13\n" +"Project-Id-Version: Python 3.14\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2025-05-02 14:19+0000\n" +"POT-Creation-Date: 2025-05-23 14:20+0000\n" "PO-Revision-Date: 2024-11-19 01:03+0000\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../library/uu.rst:2 diff --git a/library/uuid.po b/library/uuid.po index 416b28a18..9d6d0be4b 100644 --- a/library/uuid.po +++ b/library/uuid.po @@ -18,10 +18,10 @@ msgstr "" "Last-Translator: tomo, 2023\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../library/uuid.rst:2 diff --git a/library/venv.po b/library/venv.po index 80e2d8104..543c0538f 100644 --- a/library/venv.po +++ b/library/venv.po @@ -21,10 +21,10 @@ msgstr "" "Last-Translator: 石井明久, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../library/venv.rst:2 diff --git a/library/warnings.po b/library/warnings.po index 077ff3b14..437927948 100644 --- a/library/warnings.po +++ b/library/warnings.po @@ -21,10 +21,10 @@ msgstr "" "Last-Translator: 石井明久, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../library/warnings.rst:2 diff --git a/library/wave.po b/library/wave.po index ea6e6eacf..969f26e3c 100644 --- a/library/wave.po +++ b/library/wave.po @@ -17,10 +17,10 @@ msgstr "" "Last-Translator: 石井明久, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../library/wave.rst:2 diff --git a/library/weakref.po b/library/weakref.po index 100f16eb7..87eb5c7dd 100644 --- a/library/weakref.po +++ b/library/weakref.po @@ -1,5 +1,5 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2025, Python Software Foundation +# Copyright (C) 2001 Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # @@ -11,17 +11,17 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: Python 3.13\n" +"Project-Id-Version: Python 3.14\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2025-05-02 14:19+0000\n" +"POT-Creation-Date: 2025-05-23 14:20+0000\n" "PO-Revision-Date: 2021-06-28 01:17+0000\n" "Last-Translator: Arihiro TAKASE, 2023\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../library/weakref.rst:4 diff --git a/library/webbrowser.po b/library/webbrowser.po index 77cb5a65d..4b58587a4 100644 --- a/library/webbrowser.po +++ b/library/webbrowser.po @@ -18,10 +18,10 @@ msgstr "" "Last-Translator: tomo, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../library/webbrowser.rst:2 diff --git a/library/windows.po b/library/windows.po index ae1c27e45..e3706ea56 100644 --- a/library/windows.po +++ b/library/windows.po @@ -16,10 +16,10 @@ msgstr "" "Last-Translator: tomo, 2021\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../library/windows.rst:5 diff --git a/library/winreg.po b/library/winreg.po index ad18b46b8..79d979896 100644 --- a/library/winreg.po +++ b/library/winreg.po @@ -1,5 +1,5 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2025, Python Software Foundation +# Copyright (C) 2001 Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # @@ -12,17 +12,17 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: Python 3.13\n" +"Project-Id-Version: Python 3.14\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2025-05-02 14:19+0000\n" +"POT-Creation-Date: 2025-05-23 14:20+0000\n" "PO-Revision-Date: 2021-06-28 01:17+0000\n" "Last-Translator: Arihiro TAKASE, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../library/winreg.rst:2 diff --git a/library/winsound.po b/library/winsound.po index 8519fb2b6..df28f184f 100644 --- a/library/winsound.po +++ b/library/winsound.po @@ -18,10 +18,10 @@ msgstr "" "Last-Translator: 石井明久, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../library/winsound.rst:2 diff --git a/library/wsgiref.po b/library/wsgiref.po index a310afd4c..f3187c824 100644 --- a/library/wsgiref.po +++ b/library/wsgiref.po @@ -1,5 +1,5 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2025, Python Software Foundation +# Copyright (C) 2001 Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # @@ -13,17 +13,17 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: Python 3.13\n" +"Project-Id-Version: Python 3.14\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2025-04-25 14:19+0000\n" +"POT-Creation-Date: 2025-05-16 14:19+0000\n" "PO-Revision-Date: 2021-06-28 01:17+0000\n" "Last-Translator: 石井明久, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../library/wsgiref.rst:2 diff --git a/library/xdrlib.po b/library/xdrlib.po index 6d09ea9cd..5b71eccf1 100644 --- a/library/xdrlib.po +++ b/library/xdrlib.po @@ -1,21 +1,21 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2025, Python Software Foundation +# Copyright (C) 2001 Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # #, fuzzy msgid "" msgstr "" -"Project-Id-Version: Python 3.13\n" +"Project-Id-Version: Python 3.14\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2025-05-02 14:19+0000\n" +"POT-Creation-Date: 2025-05-23 14:20+0000\n" "PO-Revision-Date: 2024-11-19 01:03+0000\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../library/xdrlib.rst:2 diff --git a/library/xml.dom.minidom.po b/library/xml.dom.minidom.po index 9ba0b0b22..f5d3905e7 100644 --- a/library/xml.dom.minidom.po +++ b/library/xml.dom.minidom.po @@ -1,5 +1,5 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2025, Python Software Foundation +# Copyright (C) 2001 Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # @@ -13,17 +13,17 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: Python 3.13\n" +"Project-Id-Version: Python 3.14\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2025-05-02 14:19+0000\n" +"POT-Creation-Date: 2025-05-23 14:20+0000\n" "PO-Revision-Date: 2021-06-28 01:18+0000\n" "Last-Translator: 石井明久, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../library/xml.dom.minidom.rst:2 diff --git a/library/xml.dom.po b/library/xml.dom.po index a40a13723..95756da91 100644 --- a/library/xml.dom.po +++ b/library/xml.dom.po @@ -1,5 +1,5 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2025, Python Software Foundation +# Copyright (C) 2001 Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # @@ -14,17 +14,17 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: Python 3.13\n" +"Project-Id-Version: Python 3.14\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2025-05-02 14:19+0000\n" +"POT-Creation-Date: 2025-05-23 14:20+0000\n" "PO-Revision-Date: 2021-06-28 01:18+0000\n" "Last-Translator: 石井明久, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../library/xml.dom.rst:2 diff --git a/library/xml.dom.pulldom.po b/library/xml.dom.pulldom.po index 9e9de026e..1d603b60b 100644 --- a/library/xml.dom.pulldom.po +++ b/library/xml.dom.pulldom.po @@ -1,5 +1,5 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2025, Python Software Foundation +# Copyright (C) 2001 Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # @@ -10,17 +10,17 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: Python 3.13\n" +"Project-Id-Version: Python 3.14\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2025-05-02 14:19+0000\n" +"POT-Creation-Date: 2025-05-23 14:20+0000\n" "PO-Revision-Date: 2021-06-28 01:18+0000\n" "Last-Translator: 石井明久, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../library/xml.dom.pulldom.rst:2 diff --git a/library/xml.etree.elementtree.po b/library/xml.etree.elementtree.po index ccf23a3c0..86a04bd83 100644 --- a/library/xml.etree.elementtree.po +++ b/library/xml.etree.elementtree.po @@ -21,10 +21,10 @@ msgstr "" "Last-Translator: 石井明久, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../library/xml.etree.elementtree.rst:2 diff --git a/library/xml.po b/library/xml.po index fd2417457..92e81baa1 100644 --- a/library/xml.po +++ b/library/xml.po @@ -19,10 +19,10 @@ msgstr "" "Last-Translator: Takeshi Nakazato, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../library/xml.rst:4 diff --git a/library/xml.sax.handler.po b/library/xml.sax.handler.po index b00f8f069..e6a6debcd 100644 --- a/library/xml.sax.handler.po +++ b/library/xml.sax.handler.po @@ -1,5 +1,5 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2025, Python Software Foundation +# Copyright (C) 2001 Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # @@ -10,17 +10,17 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: Python 3.13\n" +"Project-Id-Version: Python 3.14\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2025-05-02 14:19+0000\n" +"POT-Creation-Date: 2025-05-23 14:20+0000\n" "PO-Revision-Date: 2021-06-28 01:18+0000\n" "Last-Translator: 石井明久, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../library/xml.sax.handler.rst:2 diff --git a/library/xml.sax.po b/library/xml.sax.po index 2a14d484d..cedf1c556 100644 --- a/library/xml.sax.po +++ b/library/xml.sax.po @@ -1,5 +1,5 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2025, Python Software Foundation +# Copyright (C) 2001 Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # @@ -11,17 +11,17 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: Python 3.13\n" +"Project-Id-Version: Python 3.14\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2025-05-02 14:19+0000\n" +"POT-Creation-Date: 2025-05-23 14:20+0000\n" "PO-Revision-Date: 2021-06-28 01:18+0000\n" "Last-Translator: 石井明久, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../library/xml.sax.rst:2 diff --git a/library/xml.sax.reader.po b/library/xml.sax.reader.po index 5b1ed7b75..eab205eab 100644 --- a/library/xml.sax.reader.po +++ b/library/xml.sax.reader.po @@ -1,5 +1,5 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2025, Python Software Foundation +# Copyright (C) 2001 Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # @@ -12,17 +12,17 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: Python 3.13\n" +"Project-Id-Version: Python 3.14\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2025-05-02 14:19+0000\n" +"POT-Creation-Date: 2025-05-23 14:20+0000\n" "PO-Revision-Date: 2021-06-28 01:18+0000\n" "Last-Translator: 石井明久, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../library/xml.sax.reader.rst:2 diff --git a/library/xml.sax.utils.po b/library/xml.sax.utils.po index fbf551fdd..f06beabe9 100644 --- a/library/xml.sax.utils.po +++ b/library/xml.sax.utils.po @@ -1,5 +1,5 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2025, Python Software Foundation +# Copyright (C) 2001 Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # @@ -10,17 +10,17 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: Python 3.13\n" +"Project-Id-Version: Python 3.14\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2025-05-02 14:19+0000\n" +"POT-Creation-Date: 2025-05-23 14:20+0000\n" "PO-Revision-Date: 2021-06-28 01:18+0000\n" "Last-Translator: 石井明久, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../library/xml.sax.utils.rst:2 diff --git a/library/xmlrpc.client.po b/library/xmlrpc.client.po index d8d2081ce..a9df79f24 100644 --- a/library/xmlrpc.client.po +++ b/library/xmlrpc.client.po @@ -20,10 +20,10 @@ msgstr "" "Last-Translator: Arihiro TAKASE, 2025\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../library/xmlrpc.client.rst:2 diff --git a/library/xmlrpc.po b/library/xmlrpc.po index 3a4e51749..601395dc2 100644 --- a/library/xmlrpc.po +++ b/library/xmlrpc.po @@ -1,5 +1,5 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2025, Python Software Foundation +# Copyright (C) 2001 Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # @@ -10,17 +10,17 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: Python 3.13\n" +"Project-Id-Version: Python 3.14\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2025-05-02 14:19+0000\n" +"POT-Creation-Date: 2025-05-23 14:20+0000\n" "PO-Revision-Date: 2021-06-28 01:18+0000\n" "Last-Translator: 石井明久, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../library/xmlrpc.rst:2 diff --git a/library/xmlrpc.server.po b/library/xmlrpc.server.po index 180db12be..82762bb68 100644 --- a/library/xmlrpc.server.po +++ b/library/xmlrpc.server.po @@ -1,5 +1,5 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2025, Python Software Foundation +# Copyright (C) 2001 Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # @@ -12,17 +12,17 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: Python 3.13\n" +"Project-Id-Version: Python 3.14\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2025-05-02 14:19+0000\n" +"POT-Creation-Date: 2025-05-23 14:20+0000\n" "PO-Revision-Date: 2021-06-28 01:18+0000\n" "Last-Translator: 石井明久, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../library/xmlrpc.server.rst:2 diff --git a/library/zipapp.po b/library/zipapp.po index 56cfc0bc2..1a6fbf359 100644 --- a/library/zipapp.po +++ b/library/zipapp.po @@ -1,5 +1,5 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2025, Python Software Foundation +# Copyright (C) 2001 Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # @@ -12,17 +12,17 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: Python 3.13\n" +"Project-Id-Version: Python 3.14\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2025-05-02 14:19+0000\n" +"POT-Creation-Date: 2025-05-23 14:20+0000\n" "PO-Revision-Date: 2021-06-28 01:18+0000\n" "Last-Translator: 石井明久, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../library/zipapp.rst:2 diff --git a/library/zipfile.po b/library/zipfile.po index 9f692f2c8..90b63ba7a 100644 --- a/library/zipfile.po +++ b/library/zipfile.po @@ -20,10 +20,10 @@ msgstr "" "Last-Translator: 石井明久, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../library/zipfile.rst:2 diff --git a/library/zipimport.po b/library/zipimport.po index a12440595..9d5cafe99 100644 --- a/library/zipimport.po +++ b/library/zipimport.po @@ -1,5 +1,5 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2025, Python Software Foundation +# Copyright (C) 2001 Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # @@ -12,17 +12,17 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: Python 3.13\n" +"Project-Id-Version: Python 3.14\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2025-05-02 14:19+0000\n" +"POT-Creation-Date: 2025-05-23 14:20+0000\n" "PO-Revision-Date: 2021-06-28 01:18+0000\n" "Last-Translator: 石井明久, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../library/zipimport.rst:2 diff --git a/library/zlib.po b/library/zlib.po index 9c0f9c16f..0f99ded30 100644 --- a/library/zlib.po +++ b/library/zlib.po @@ -20,10 +20,10 @@ msgstr "" "Last-Translator: 石井明久, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../library/zlib.rst:2 diff --git a/library/zoneinfo.po b/library/zoneinfo.po index 4e4a09b3c..36e80c407 100644 --- a/library/zoneinfo.po +++ b/library/zoneinfo.po @@ -1,5 +1,5 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2025, Python Software Foundation +# Copyright (C) 2001 Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # @@ -12,17 +12,17 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: Python 3.13\n" +"Project-Id-Version: Python 3.14\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2025-05-02 14:19+0000\n" +"POT-Creation-Date: 2025-05-23 14:20+0000\n" "PO-Revision-Date: 2021-06-28 01:19+0000\n" "Last-Translator: 石井明久, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../library/zoneinfo.rst:2 diff --git a/reference/compound_stmts.po b/reference/compound_stmts.po index eff082d1c..a4d395004 100644 --- a/reference/compound_stmts.po +++ b/reference/compound_stmts.po @@ -11,7 +11,7 @@ # Masato HASHIMOTO , 2023 # Nozomu Kaneko , 2023 # tomo, 2023 -# righteous, 2023 +# digdugdog, 2023 # Takanori Suzuki , 2023 # Takeshi Nakazato, 2024 # @@ -20,15 +20,15 @@ msgid "" msgstr "" "Project-Id-Version: Python 3.14\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2025-05-08 02:53-0300\n" +"POT-Creation-Date: 2025-05-23 14:20+0000\n" "PO-Revision-Date: 2021-06-28 01:19+0000\n" "Last-Translator: Takeshi Nakazato, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../reference/compound_stmts.rst:5 @@ -199,21 +199,14 @@ msgstr "" #: ../../reference/compound_stmts.rst:160 msgid "" -"The ``starred_list`` expression is evaluated once; it should yield an :term:" -"`iterable` object. An :term:`iterator` is created for that iterable. The " -"first item provided by the iterator is then assigned to the target list " -"using the standard rules for assignments (see :ref:`assignment`), and the " -"suite is executed. This repeats for each item provided by the iterator. " -"When the iterator is exhausted, the suite in the :keyword:`!else` clause, if " -"present, is executed, and the loop terminates." -msgstr "" -"``starred_list`` 式は一度だけ評価され、評価結果として :term:`イテラブル " -"` オブジェクトを返す必要があります。そのイテラブルから :term:`イテ" -"レータ ` が作られます。まず、イテレータから生成される最初の要素が、" -"通常の代入式のルールに従って ``target_list`` に代入され(:ref:`assignment` 節" -"参照)、1つ目のスイート (suite) が実行されます。これが、イテレータから生成さ" -"れる各要素に対して繰り返されます。イテレータのすべての要素が処理されたあ" -"と、 :keyword:`!else` 節がもしあれば実行され、ループ処理が終了します。" +"The :token:`~python-grammar:starred_expression_list` expression is evaluated " +"once; it should yield an :term:`iterable` object. An :term:`iterator` is " +"created for that iterable. The first item provided by the iterator is then " +"assigned to the target list using the standard rules for assignments (see :" +"ref:`assignment`), and the suite is executed. This repeats for each item " +"provided by the iterator. When the iterator is exhausted, the suite in the :" +"keyword:`!else` clause, if present, is executed, and the loop terminates." +msgstr "" #: ../../reference/compound_stmts.rst:173 msgid "" @@ -1777,7 +1770,7 @@ msgid ":class:`int`" msgstr ":class:`int`" #: ../../reference/compound_stmts.rst:1167 -#: ../../reference/compound_stmts.rst:1919 +#: ../../reference/compound_stmts.rst:1925 msgid ":class:`list`" msgstr ":class:`list`" @@ -1790,7 +1783,7 @@ msgid ":class:`str`" msgstr ":class:`str`" #: ../../reference/compound_stmts.rst:1170 -#: ../../reference/compound_stmts.rst:1922 +#: ../../reference/compound_stmts.rst:1928 msgid ":class:`tuple`" msgstr ":class:`tuple`" @@ -2830,7 +2823,7 @@ msgstr "" #: ../../reference/compound_stmts.rst:1888 msgid "" -"By default, annotations are lazily evaluated in a :ref:`annotation scope " +"By default, annotations are lazily evaluated in an :ref:`annotation scope " "`. This means that they are not evaluated when the code " "containing the annotation is evaluated. Instead, the interpreter saves " "information that can be used to evaluate the annotation later if requested. " @@ -2851,11 +2844,20 @@ msgid "" "{'param': 'annotation'}" msgstr "" -#: ../../reference/compound_stmts.rst:1903 +#: ../../reference/compound_stmts.rst:1901 +msgid "" +"This future statement will be deprecated and removed in a future version of " +"Python, but not before Python 3.13 reaches its end of life (see :pep:`749`). " +"When it is used, introspection tools like :func:`annotationlib." +"get_annotations` and :func:`typing.get_type_hints` are less likely to be " +"able to resolve annotations at runtime." +msgstr "" + +#: ../../reference/compound_stmts.rst:1909 msgid "Footnotes" msgstr "脚注" -#: ../../reference/compound_stmts.rst:1904 +#: ../../reference/compound_stmts.rst:1910 msgid "" "The exception is propagated to the invocation stack unless there is a :" "keyword:`finally` clause which happens to raise another exception. That new " @@ -2864,87 +2866,87 @@ msgstr "" "例外は、別の例外を送出するような :keyword:`finally` 節が無い場合にのみ呼び出" "しスタックへ伝わります。新しい例外によって、古い例外は失われます。" -#: ../../reference/compound_stmts.rst:1908 +#: ../../reference/compound_stmts.rst:1914 msgid "In pattern matching, a sequence is defined as one of the following:" msgstr "" -#: ../../reference/compound_stmts.rst:1910 +#: ../../reference/compound_stmts.rst:1916 msgid "a class that inherits from :class:`collections.abc.Sequence`" msgstr ":class:`collections.abc.Sequence` を継承したクラス。" -#: ../../reference/compound_stmts.rst:1911 +#: ../../reference/compound_stmts.rst:1917 msgid "" "a Python class that has been registered as :class:`collections.abc.Sequence`" msgstr ":class:`collections.abc.Sequence` として登録されたPythonクラス。" -#: ../../reference/compound_stmts.rst:1912 +#: ../../reference/compound_stmts.rst:1918 msgid "" "a builtin class that has its (CPython) :c:macro:`Py_TPFLAGS_SEQUENCE` bit set" msgstr "" -#: ../../reference/compound_stmts.rst:1913 -#: ../../reference/compound_stmts.rst:1932 +#: ../../reference/compound_stmts.rst:1919 +#: ../../reference/compound_stmts.rst:1938 msgid "a class that inherits from any of the above" msgstr "" -#: ../../reference/compound_stmts.rst:1915 +#: ../../reference/compound_stmts.rst:1921 msgid "The following standard library classes are sequences:" msgstr "" -#: ../../reference/compound_stmts.rst:1917 +#: ../../reference/compound_stmts.rst:1923 msgid ":class:`array.array`" msgstr ":class:`array.array`" -#: ../../reference/compound_stmts.rst:1918 +#: ../../reference/compound_stmts.rst:1924 msgid ":class:`collections.deque`" msgstr ":class:`collections.deque`" -#: ../../reference/compound_stmts.rst:1920 +#: ../../reference/compound_stmts.rst:1926 msgid ":class:`memoryview`" msgstr ":class:`memoryview`" -#: ../../reference/compound_stmts.rst:1921 +#: ../../reference/compound_stmts.rst:1927 msgid ":class:`range`" msgstr ":class:`range`" -#: ../../reference/compound_stmts.rst:1924 +#: ../../reference/compound_stmts.rst:1930 msgid "" "Subject values of type ``str``, ``bytes``, and ``bytearray`` do not match " "sequence patterns." msgstr "" -#: ../../reference/compound_stmts.rst:1927 +#: ../../reference/compound_stmts.rst:1933 msgid "In pattern matching, a mapping is defined as one of the following:" msgstr "" -#: ../../reference/compound_stmts.rst:1929 +#: ../../reference/compound_stmts.rst:1935 msgid "a class that inherits from :class:`collections.abc.Mapping`" msgstr "" -#: ../../reference/compound_stmts.rst:1930 +#: ../../reference/compound_stmts.rst:1936 msgid "" "a Python class that has been registered as :class:`collections.abc.Mapping`" msgstr "" -#: ../../reference/compound_stmts.rst:1931 +#: ../../reference/compound_stmts.rst:1937 msgid "" "a builtin class that has its (CPython) :c:macro:`Py_TPFLAGS_MAPPING` bit set" msgstr "" -#: ../../reference/compound_stmts.rst:1934 +#: ../../reference/compound_stmts.rst:1940 msgid "" "The standard library classes :class:`dict` and :class:`types." "MappingProxyType` are mappings." msgstr "" -#: ../../reference/compound_stmts.rst:1937 +#: ../../reference/compound_stmts.rst:1943 msgid "" "A string literal appearing as the first statement in the function body is " "transformed into the function's :attr:`~function.__doc__` attribute and " "therefore the function's :term:`docstring`." msgstr "" -#: ../../reference/compound_stmts.rst:1941 +#: ../../reference/compound_stmts.rst:1947 msgid "" "A string literal appearing as the first statement in the class body is " "transformed into the namespace's :attr:`~type.__doc__` item and therefore " diff --git a/reference/datamodel.po b/reference/datamodel.po index e326c4123..93faf5e90 100644 --- a/reference/datamodel.po +++ b/reference/datamodel.po @@ -27,10 +27,10 @@ msgstr "" "Last-Translator: tomo, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../reference/datamodel.rst:6 diff --git a/reference/executionmodel.po b/reference/executionmodel.po index 0dd3d70a1..95cc6a0e0 100644 --- a/reference/executionmodel.po +++ b/reference/executionmodel.po @@ -19,10 +19,10 @@ msgstr "" "Last-Translator: tomo, 2023\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../reference/executionmodel.rst:6 diff --git a/reference/expressions.po b/reference/expressions.po index 9218f926a..d71c96594 100644 --- a/reference/expressions.po +++ b/reference/expressions.po @@ -28,10 +28,10 @@ msgstr "" "Last-Translator: Nozomu Kaneko , 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../reference/expressions.rst:6 diff --git a/reference/grammar.po b/reference/grammar.po index 6f99ace83..60f9a7210 100644 --- a/reference/grammar.po +++ b/reference/grammar.po @@ -13,15 +13,15 @@ msgid "" msgstr "" "Project-Id-Version: Python 3.14\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2025-05-08 02:53-0300\n" +"POT-Creation-Date: 2025-05-23 14:20+0000\n" "PO-Revision-Date: 2021-06-28 01:49+0000\n" "Last-Translator: Arihiro TAKASE, 2023\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../reference/grammar.rst:4 @@ -173,12 +173,12 @@ msgid "" "statements[asdl_stmt_seq*]: a=statement+ { _PyPegen_register_stmts(p, " "(asdl_stmt_seq*)_PyPegen_seq_flatten(p, a)) }\n" "\n" -"statement[asdl_stmt_seq*]: \n" -" | a=compound_stmt { (asdl_stmt_seq*)_PyPegen_singleton_seq(p, a) } \n" +"statement[asdl_stmt_seq*]:\n" +" | a=compound_stmt { (asdl_stmt_seq*)_PyPegen_singleton_seq(p, a) }\n" " | a[asdl_stmt_seq*]=simple_stmts { a }\n" "\n" "single_compound_stmt[asdl_stmt_seq*]:\n" -" | a=compound_stmt { \n" +" | a=compound_stmt {\n" " _PyPegen_register_stmts(p, (asdl_stmt_seq*)_PyPegen_singleton_seq(p, " "a)) }\n" "\n" @@ -589,9 +589,9 @@ msgid "" " _PyAST_ExceptHandler(e, ((expr_ty) t)->v.Name.id, b, EXTRA) }\n" " | 'except' e=expressions ':' b=block {\n" " CHECK_VERSION(\n" -" excepthandler_ty, \n" -" 14, \n" -" \"except expressions without parentheses are\", \n" +" excepthandler_ty,\n" +" 14,\n" +" \"except expressions without parentheses are\",\n" " _PyAST_ExceptHandler(e, NULL, b, EXTRA)) }\n" " | 'except' ':' b=block { _PyAST_ExceptHandler(NULL, NULL, b, EXTRA) }\n" " | invalid_except_stmt\n" @@ -603,9 +603,9 @@ msgid "" " _PyAST_ExceptHandler(e, ((expr_ty) t)->v.Name.id, b, EXTRA) }\n" " | 'except' '*' e=expressions ':' b=block {\n" " CHECK_VERSION(\n" -" excepthandler_ty, \n" -" 14, \n" -" \"except expressions without parentheses are\", \n" +" excepthandler_ty,\n" +" 14,\n" +" \"except expressions without parentheses are\",\n" " _PyAST_ExceptHandler(e, NULL, b, EXTRA)) }\n" " | invalid_except_star_stmt\n" "finally_block[asdl_stmt_seq*]:\n" @@ -1186,11 +1186,11 @@ msgid "" " | tstring_replacement_field\n" " | t=TSTRING_MIDDLE { _PyPegen_constant_from_token(p, t) }\n" "tstring[expr_ty] (memo):\n" -" | a=TSTRING_START b=tstring_middle* c=TSTRING_END { \n" +" | a=TSTRING_START b=tstring_middle* c=TSTRING_END {\n" " CHECK_VERSION(\n" -" expr_ty, \n" -" 14, \n" -" \"t-strings are\", \n" +" expr_ty,\n" +" 14,\n" +" \"t-strings are\",\n" " _PyPegen_template_str(p, a, (asdl_expr_seq*)b, c)) }\n" "\n" "string[expr_ty]: s[Token*]=STRING { _PyPegen_constant_from_string(p, s) }\n" @@ -1707,12 +1707,12 @@ msgid "" "after 'import'\") }\n" "invalid_dotted_as_name:\n" " | dotted_name 'as' !(NAME (',' | ')' | NEWLINE)) a=expression {\n" -" RAISE_SYNTAX_ERROR_KNOWN_LOCATION(a, \n" +" RAISE_SYNTAX_ERROR_KNOWN_LOCATION(a,\n" " \"cannot use %s as import target\", " "_PyPegen_get_expr_name(a)) }\n" "invalid_import_from_as_name:\n" " | NAME 'as' !(NAME (',' | ')' | NEWLINE)) a=expression {\n" -" RAISE_SYNTAX_ERROR_KNOWN_LOCATION(a, \n" +" RAISE_SYNTAX_ERROR_KNOWN_LOCATION(a,\n" " \"cannot use %s as import target\", " "_PyPegen_get_expr_name(a)) }\n" "\n" @@ -1760,7 +1760,7 @@ msgid "" " | a='except' expression ['as' NAME ] NEWLINE " "{ RAISE_SYNTAX_ERROR(\"expected ':'\") }\n" " | a='except' NEWLINE { RAISE_SYNTAX_ERROR(\"expected ':'\") }\n" -" | 'except' expression 'as' a=expression {\n" +" | 'except' expression 'as' a=expression ':' block {\n" " RAISE_SYNTAX_ERROR_KNOWN_LOCATION(\n" " a, \"cannot use except statement with %s\", " "_PyPegen_get_expr_name(a)) }\n" @@ -1772,7 +1772,7 @@ msgid "" "{ RAISE_SYNTAX_ERROR(\"expected ':'\") }\n" " | a='except' '*' (NEWLINE | ':') { RAISE_SYNTAX_ERROR(\"expected one or " "more exception types\") }\n" -" | 'except' '*' expression 'as' a=expression {\n" +" | 'except' '*' expression 'as' a=expression ':' block {\n" " RAISE_SYNTAX_ERROR_KNOWN_LOCATION(\n" " a, \"cannot use except* statement with %s\", " "_PyPegen_get_expr_name(a)) }\n" diff --git a/reference/import.po b/reference/import.po index feb4a6aef..23cf294ec 100644 --- a/reference/import.po +++ b/reference/import.po @@ -19,10 +19,10 @@ msgstr "" "Last-Translator: tomo, 2023\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../reference/import.rst:6 diff --git a/reference/index.po b/reference/index.po index a70c452cc..ff539ad1f 100644 --- a/reference/index.po +++ b/reference/index.po @@ -17,10 +17,10 @@ msgstr "" "Last-Translator: Osamu NAKAMURA, 2021\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../reference/index.rst:5 diff --git a/reference/introduction.po b/reference/introduction.po index 97e0ff7bb..6232815c3 100644 --- a/reference/introduction.po +++ b/reference/introduction.po @@ -18,10 +18,10 @@ msgstr "" "Last-Translator: Arihiro TAKASE, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../reference/introduction.rst:6 diff --git a/reference/lexical_analysis.po b/reference/lexical_analysis.po index 78ccf6885..6b1bc7ae2 100644 --- a/reference/lexical_analysis.po +++ b/reference/lexical_analysis.po @@ -24,10 +24,10 @@ msgstr "" "Last-Translator: Takeshi Nakazato, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../reference/lexical_analysis.rst:6 diff --git a/reference/simple_stmts.po b/reference/simple_stmts.po index 79feb5d74..ae55ac544 100644 --- a/reference/simple_stmts.po +++ b/reference/simple_stmts.po @@ -25,10 +25,10 @@ msgstr "" "Last-Translator: Takeshi Nakazato, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../reference/simple_stmts.rst:6 diff --git a/reference/toplevel_components.po b/reference/toplevel_components.po index 00a7539c3..5ca7a0585 100644 --- a/reference/toplevel_components.po +++ b/reference/toplevel_components.po @@ -20,10 +20,10 @@ msgstr "" "Last-Translator: tomo, 2023\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../reference/toplevel_components.rst:6 diff --git a/sphinx.po b/sphinx.po index 835ea37d1..4d98b5b16 100644 --- a/sphinx.po +++ b/sphinx.po @@ -16,7 +16,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3.14\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2025-05-08 02:53-0300\n" +"POT-Creation-Date: 2025-05-23 14:20+0000\n" "PO-Revision-Date: 2021-06-28 00:47+0000\n" "Last-Translator: TENMYO Masakazu, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" @@ -36,16 +36,16 @@ msgid "In development" msgstr "開発中" #: ../../tools/templates/customsourcelink.html:3 -msgid "This Page" -msgstr "このページ" +msgid "This page" +msgstr "" #: ../../tools/templates/customsourcelink.html:5 -msgid "Report a Bug" -msgstr "バグ報告" +msgid "Report a bug" +msgstr "" #: ../../tools/templates/customsourcelink.html:8 -msgid "Show Source" -msgstr "ソースの表示" +msgid "Show source" +msgstr "" #: ../../tools/templates/download.html:2 #: ../../tools/templates/indexsidebar.html:1 @@ -53,7 +53,7 @@ msgid "Download" msgstr "ダウンロード" #: ../../tools/templates/download.html:30 -msgid "Download Python %(dl_version)s Documentation" +msgid "Download Python %(dl_version)s documentation" msgstr "" #: ../../tools/templates/download.html:32 @@ -452,8 +452,8 @@ msgid "Reporting issues" msgstr "問題の報告" #: ../../tools/templates/indexcontent.html:75 -msgid "Contributing to Docs" -msgstr "ドキュメントへの貢献" +msgid "Contributing to docs" +msgstr "" #: ../../tools/templates/indexcontent.html:76 msgid "Download the documentation" @@ -488,24 +488,24 @@ msgid "Other resources" msgstr "その他のリソース" #: ../../tools/templates/indexsidebar.html:12 -msgid "PEP Index" -msgstr "PEP 一覧" +msgid "PEP index" +msgstr "" #: ../../tools/templates/indexsidebar.html:13 -msgid "Beginner's Guide" -msgstr "初心者向けガイド" +msgid "Beginner's guide" +msgstr "" #: ../../tools/templates/indexsidebar.html:14 -msgid "Book List" -msgstr "本の一覧" +msgid "Book list" +msgstr "" #: ../../tools/templates/indexsidebar.html:15 -msgid "Audio/Visual Talks" -msgstr "発表の音声/映像" +msgid "Audio/visual talks" +msgstr "" #: ../../tools/templates/indexsidebar.html:16 -msgid "Python Developer’s Guide" -msgstr "Python開発者ガイド" +msgid "Python developer’s guide" +msgstr "" #: ../../tools/templates/layout.html:6 msgid "" diff --git a/tutorial/appendix.po b/tutorial/appendix.po index 376f54821..731f0c74c 100644 --- a/tutorial/appendix.po +++ b/tutorial/appendix.po @@ -17,10 +17,10 @@ msgstr "" "Last-Translator: TENMYO Masakazu, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../tutorial/appendix.rst:5 diff --git a/tutorial/appetite.po b/tutorial/appetite.po index d8a79bf9c..ad5783e29 100644 --- a/tutorial/appetite.po +++ b/tutorial/appetite.po @@ -19,10 +19,10 @@ msgstr "" "Last-Translator: Takanori Suzuki , 2023\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../tutorial/appetite.rst:5 diff --git a/tutorial/classes.po b/tutorial/classes.po index 870a7ce38..5a23e3a28 100644 --- a/tutorial/classes.po +++ b/tutorial/classes.po @@ -22,10 +22,10 @@ msgstr "" "Last-Translator: TENMYO Masakazu, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../tutorial/classes.rst:5 diff --git a/tutorial/controlflow.po b/tutorial/controlflow.po index 912252d14..6416276e0 100644 --- a/tutorial/controlflow.po +++ b/tutorial/controlflow.po @@ -9,7 +9,7 @@ # Nozomu Kaneko , 2023 # tomo, 2023 # Takeshi Nakazato, 2023 -# righteous, 2023 +# digdugdog, 2023 # Arihiro TAKASE, 2024 # TENMYO Masakazu, 2024 # tommy, 2024 @@ -20,15 +20,15 @@ msgid "" msgstr "" "Project-Id-Version: Python 3.14\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2025-05-08 02:53-0300\n" +"POT-Creation-Date: 2025-05-23 14:20+0000\n" "PO-Revision-Date: 2021-06-28 01:50+0000\n" "Last-Translator: Takanori Suzuki , 2025\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../tutorial/controlflow.rst:5 @@ -650,8 +650,7 @@ msgstr "" msgid "" "You can combine several literals in a single pattern using ``|`` (\"or\")::" msgstr "" -"複数のリテラルを ``|`` (\"or\")を使用して組み合わせて1つのパターンにできま" -"す::" +"複数のリテラルを``|`` (\"or\")を使用して組み合わせて1つのパターンにできます。" #: ../../tutorial/controlflow.rst:313 msgid "" @@ -682,10 +681,10 @@ msgid "" " case _:\n" " raise ValueError(\"Not a point\")" msgstr "" -"# point(座標) は (x, y) のタプル\n" +"# point は (x, y) のタプル\n" "match point:\n" " case (0, 0):\n" -" print(\"原点\")\n" +" print(\"Origin\")\n" " case (0, y):\n" " print(f\"Y={y}\")\n" " case (x, 0):\n" @@ -693,7 +692,7 @@ msgstr "" " case (x, y):\n" " print(f\"X={x}, Y={y}\")\n" " case _:\n" -" raise ValueError(\"座標ではない\")" +" raise ValueError(\"Not a point\")" #: ../../tutorial/controlflow.rst:332 msgid "" @@ -769,10 +768,10 @@ msgid "" "attribute to the ``var`` variable)::" msgstr "" "いくつかの組み込みクラスでは位置引数が使用でき、属性の順番を提供します(例: " -"データクラス)。クラスの ``__match_args__`` 特殊属性によって、パターンの中で属" -"性の明確な位置を定義することもできます。(\"x\", \"y\")が設定された場合、以下" -"のすべてのパターンは等価です(すべて属性 ``y`` が ``var`` 変数に結びつけられま" -"す)::" +"データクラス)。クラスの ``__match_args__`` 特殊属性でによって、パターンの中で" +"属性の明確な位置を定義することもできます。(\"x\", \"y\")が設定された場合、以" +"下のすべてのパターンは等価です(すべて属性 ``y`` が ``var`` 変数に関連づけられ" +"ます)::" #: ../../tutorial/controlflow.rst:367 msgid "" @@ -859,7 +858,7 @@ msgid "" msgstr "" "パターンに ``if`` 節を追加できます。これは \"ガード\" と呼ばれます。ガードが" "falseの場合、``match`` は次のcaseブロックの処理に移動します。ガードを評価する" -"前に値が取り込まれることに注意してください::" +"前に値が取り出されることに注意してください::" #: ../../tutorial/controlflow.rst:404 msgid "" @@ -2152,12 +2151,11 @@ msgstr "" #: ../../tutorial/controlflow.rst:1001 msgid "" "The above example uses a lambda expression to return a function. Another " -"use is to pass a small function as an argument::" +"use is to pass a small function as an argument. For instance, :meth:`list." +"sort` takes a sorting key function *key* which can be a lambda function::" msgstr "" -"上記の例は、関数を返すところでラムダ式を使っています。もう1つの例では、ちょっ" -"とした関数を引数として渡すのに使っています::" -#: ../../tutorial/controlflow.rst:1004 +#: ../../tutorial/controlflow.rst:1005 msgid "" ">>> pairs = [(1, 'one'), (2, 'two'), (3, 'three'), (4, 'four')]\n" ">>> pairs.sort(key=lambda pair: pair[1])\n" @@ -2169,11 +2167,11 @@ msgstr "" ">>> pairs\n" "[(4, 'four'), (1, 'one'), (3, 'three'), (2, 'two')]" -#: ../../tutorial/controlflow.rst:1013 +#: ../../tutorial/controlflow.rst:1014 msgid "Documentation Strings" msgstr "ドキュメンテーション文字列" -#: ../../tutorial/controlflow.rst:1020 +#: ../../tutorial/controlflow.rst:1021 msgid "" "Here are some conventions about the content and formatting of documentation " "strings." @@ -2181,7 +2179,7 @@ msgstr "" "ドキュメンテーション文字列については、その内容と書式に関する慣習をいくつか挙" "げます。" -#: ../../tutorial/controlflow.rst:1023 +#: ../../tutorial/controlflow.rst:1024 msgid "" "The first line should always be a short, concise summary of the object's " "purpose. For brevity, it should not explicitly state the object's name or " @@ -2195,7 +2193,7 @@ msgstr "" "は例外です)。最初の行は大文字で始まり、ピリオドで終わっていなければなりませ" "ん。" -#: ../../tutorial/controlflow.rst:1029 +#: ../../tutorial/controlflow.rst:1030 msgid "" "If there are more lines in the documentation string, the second line should " "be blank, visually separating the summary from the rest of the description. " @@ -2206,7 +2204,7 @@ msgstr "" "し、まとめの行と残りの記述部分を視覚的に分離します。つづく行は一つまたはそれ" "以上の段落で、対象物の呼び出し規約や副作用について記述します。" -#: ../../tutorial/controlflow.rst:1034 +#: ../../tutorial/controlflow.rst:1035 msgid "" "The Python parser does not strip indentation from multi-line string literals " "in Python, so tools that process documentation have to strip indentation if " @@ -2231,11 +2229,11 @@ msgstr "" "空白の大きさが等しいかどうかは、タブ文字を (通常は 8 文字のスペースとして) 展" "開した後に調べられます。" -#: ../../tutorial/controlflow.rst:1046 +#: ../../tutorial/controlflow.rst:1047 msgid "Here is an example of a multi-line docstring::" msgstr "以下に複数行のドキュメンテーション文字列の例を示します::" -#: ../../tutorial/controlflow.rst:1048 +#: ../../tutorial/controlflow.rst:1049 msgid "" ">>> def my_function():\n" "... \"\"\"Do nothing, but document it.\n" @@ -2247,25 +2245,14 @@ msgid "" ">>> print(my_function.__doc__)\n" "Do nothing, but document it.\n" "\n" -" No, really, it doesn't do anything." +"No, really, it doesn't do anything." msgstr "" -">>> def my_function():\n" -"... \"\"\"なにもしないがドキュメントは書く。\n" -"...\n" -"... 本当になにもしない。\n" -"... \"\"\"\n" -"... pass\n" -"...\n" -">>> print(my_function.__doc__)\n" -"なにもしないがドキュメントは書く。\n" -"\n" -" 本当になにもしない。" -#: ../../tutorial/controlflow.rst:1064 +#: ../../tutorial/controlflow.rst:1065 msgid "Function Annotations" msgstr "関数のアノテーション" -#: ../../tutorial/controlflow.rst:1072 +#: ../../tutorial/controlflow.rst:1073 msgid "" ":ref:`Function annotations ` are completely optional metadata " "information about the types used by user-defined functions (see :pep:`3107` " @@ -2275,7 +2262,7 @@ msgstr "" "完全にオプションなメタデータ情報です (詳細は :pep:`3107` と :pep:`484` を参照" "してください)。" -#: ../../tutorial/controlflow.rst:1076 +#: ../../tutorial/controlflow.rst:1077 msgid "" ":term:`Annotations ` are stored in the :attr:`!" "__annotations__` attribute of the function as a dictionary and have no " @@ -2294,7 +2281,7 @@ msgstr "" "ロンの間で、 ``->`` の後ろに式を書くことで定義されます。\n" "次の例では、必須引数と任意引数、戻り値にアノテーションが付与されています::" -#: ../../tutorial/controlflow.rst:1085 +#: ../../tutorial/controlflow.rst:1086 msgid "" ">>> def f(ham: str, eggs: str = 'eggs') -> str:\n" "... print(\"Annotations:\", f.__annotations__)\n" @@ -2318,11 +2305,11 @@ msgstr "" "引数: spam eggs\n" "'spam and eggs'" -#: ../../tutorial/controlflow.rst:1098 +#: ../../tutorial/controlflow.rst:1099 msgid "Intermezzo: Coding Style" msgstr "間奏曲: コーディングスタイル" -#: ../../tutorial/controlflow.rst:1103 +#: ../../tutorial/controlflow.rst:1104 msgid "" "Now that you are about to write longer, more complex pieces of Python, it is " "a good time to talk about *coding style*. Most languages can be written (or " @@ -2336,7 +2323,7 @@ msgstr "" "なります。他人にとって読み易いコードにしようとするのはどんなときでも良い考え" "であり、良いコーディングスタイルを採用することが非常に強力な助けになります。" -#: ../../tutorial/controlflow.rst:1109 +#: ../../tutorial/controlflow.rst:1110 msgid "" "For Python, :pep:`8` has emerged as the style guide that most projects " "adhere to; it promotes a very readable and eye-pleasing coding style. Every " @@ -2348,11 +2335,11 @@ msgstr "" "す。全ての Python 開発者はある時点でそれを読むべきです。ここに最も重要な点を" "抜き出しておきます:" -#: ../../tutorial/controlflow.rst:1114 +#: ../../tutorial/controlflow.rst:1115 msgid "Use 4-space indentation, and no tabs." msgstr "インデントには空白 4 つを使い、タブは使わないこと。" -#: ../../tutorial/controlflow.rst:1116 +#: ../../tutorial/controlflow.rst:1117 msgid "" "4 spaces are a good compromise between small indentation (allows greater " "nesting depth) and large indentation (easier to read). Tabs introduce " @@ -2361,11 +2348,11 @@ msgstr "" "空白 4 つは (深くネストできる) 小さいインデントと (読み易い) 大きいインデント" "のちょうど中間に当たります。タブは混乱させるので、使わずにおくのが良いです。" -#: ../../tutorial/controlflow.rst:1120 +#: ../../tutorial/controlflow.rst:1121 msgid "Wrap lines so that they don't exceed 79 characters." msgstr "ソースコードの幅が 79 文字を越えないように行を折り返すこと。" -#: ../../tutorial/controlflow.rst:1122 +#: ../../tutorial/controlflow.rst:1123 msgid "" "This helps users with small displays and makes it possible to have several " "code files side-by-side on larger displays." @@ -2373,21 +2360,21 @@ msgstr "" "こうすることで小さいディスプレイを使っているユーザも読み易くなり、大きなディ" "スプレイではソースコードファイルを並べることもできるようになります。" -#: ../../tutorial/controlflow.rst:1125 +#: ../../tutorial/controlflow.rst:1126 msgid "" "Use blank lines to separate functions and classes, and larger blocks of code " "inside functions." msgstr "関数やクラスや関数内の大きめのコードブロックの区切りに空行を使うこと。" -#: ../../tutorial/controlflow.rst:1128 +#: ../../tutorial/controlflow.rst:1129 msgid "When possible, put comments on a line of their own." msgstr "可能なら、コメントは行に独立で書くこと。" -#: ../../tutorial/controlflow.rst:1130 +#: ../../tutorial/controlflow.rst:1131 msgid "Use docstrings." msgstr "docstring を使うこと。" -#: ../../tutorial/controlflow.rst:1132 +#: ../../tutorial/controlflow.rst:1133 msgid "" "Use spaces around operators and after commas, but not directly inside " "bracketing constructs: ``a = f(1, 2) + g(3, 4)``." @@ -2395,7 +2382,7 @@ msgstr "" "演算子の前後とコンマの後には空白を入れ、括弧類のすぐ内側には空白を入れないこ" "と: ``a = f(1, 2) + g(3, 4)``。" -#: ../../tutorial/controlflow.rst:1135 +#: ../../tutorial/controlflow.rst:1136 msgid "" "Name your classes and functions consistently; the convention is to use " "``UpperCamelCase`` for classes and ``lowercase_with_underscores`` for " @@ -2407,7 +2394,7 @@ msgstr "" "す。常に ``self`` をメソッドの第 1 引数の名前 (クラスやメソッドについては :" "ref:`tut-firstclasses` を見よ) として使うこと。" -#: ../../tutorial/controlflow.rst:1140 +#: ../../tutorial/controlflow.rst:1141 msgid "" "Don't use fancy encodings if your code is meant to be used in international " "environments. Python's default, UTF-8, or even plain ASCII work best in any " @@ -2417,7 +2404,7 @@ msgstr "" "わないこと。どんな場合でも、Python のデフォルト UTF-8 またはプレーン ASCII が" "最も上手くいきます。" -#: ../../tutorial/controlflow.rst:1144 +#: ../../tutorial/controlflow.rst:1145 msgid "" "Likewise, don't use non-ASCII characters in identifiers if there is only the " "slightest chance people speaking a different language will read or maintain " @@ -2426,11 +2413,11 @@ msgstr "" "同様に、ほんの少しでも他の言語を話す人がコードを読んだりメンテナンスする可能" "性があるのであれば、非 ASCII 文字も識別子に使うべきではありません。" -#: ../../tutorial/controlflow.rst:1150 +#: ../../tutorial/controlflow.rst:1151 msgid "Footnotes" msgstr "脚注" -#: ../../tutorial/controlflow.rst:1151 +#: ../../tutorial/controlflow.rst:1152 msgid "" "Actually, *call by object reference* would be a better description, since if " "a mutable object is passed, the caller will see any changes the callee makes " @@ -2449,15 +2436,15 @@ msgstr "statement" msgid "for" msgstr "for" -#: ../../tutorial/controlflow.rst:478 ../../tutorial/controlflow.rst:1015 +#: ../../tutorial/controlflow.rst:478 ../../tutorial/controlflow.rst:1016 msgid "documentation strings" msgstr "documentation strings" -#: ../../tutorial/controlflow.rst:478 ../../tutorial/controlflow.rst:1015 +#: ../../tutorial/controlflow.rst:478 ../../tutorial/controlflow.rst:1016 msgid "docstrings" msgstr "docstrings" -#: ../../tutorial/controlflow.rst:478 ../../tutorial/controlflow.rst:1015 +#: ../../tutorial/controlflow.rst:478 ../../tutorial/controlflow.rst:1016 msgid "strings, documentation" msgstr "strings, documentation" @@ -2473,30 +2460,30 @@ msgstr "関数呼び出しの中の" msgid "**" msgstr "**" -#: ../../tutorial/controlflow.rst:1067 +#: ../../tutorial/controlflow.rst:1068 msgid "function" msgstr "関数" -#: ../../tutorial/controlflow.rst:1067 +#: ../../tutorial/controlflow.rst:1068 msgid "annotations" msgstr "annotations" -#: ../../tutorial/controlflow.rst:1067 +#: ../../tutorial/controlflow.rst:1068 msgid "->" msgstr "->" -#: ../../tutorial/controlflow.rst:1067 +#: ../../tutorial/controlflow.rst:1068 msgid "function annotations" msgstr "関数のアノテーション" -#: ../../tutorial/controlflow.rst:1067 +#: ../../tutorial/controlflow.rst:1068 msgid ": (colon)" msgstr ": (コロン)" -#: ../../tutorial/controlflow.rst:1101 +#: ../../tutorial/controlflow.rst:1102 msgid "coding" msgstr "coding" -#: ../../tutorial/controlflow.rst:1101 +#: ../../tutorial/controlflow.rst:1102 msgid "style" msgstr "style" diff --git a/tutorial/datastructures.po b/tutorial/datastructures.po index c50ac9c23..f43d338fb 100644 --- a/tutorial/datastructures.po +++ b/tutorial/datastructures.po @@ -18,10 +18,10 @@ msgstr "" "Last-Translator: Takanori Suzuki , 2025\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../tutorial/datastructures.rst:5 diff --git a/tutorial/errors.po b/tutorial/errors.po index fdbcafb63..2c25d2d1b 100644 --- a/tutorial/errors.po +++ b/tutorial/errors.po @@ -23,10 +23,10 @@ msgstr "" "Last-Translator: righteous, 2025\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../tutorial/errors.rst:5 diff --git a/tutorial/floatingpoint.po b/tutorial/floatingpoint.po index c60812b8d..d13658a35 100644 --- a/tutorial/floatingpoint.po +++ b/tutorial/floatingpoint.po @@ -1,5 +1,5 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2025, Python Software Foundation +# Copyright (C) 2001 Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # @@ -11,17 +11,17 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: Python 3.13\n" +"Project-Id-Version: Python 3.14\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2025-05-02 14:19+0000\n" +"POT-Creation-Date: 2025-05-23 14:20+0000\n" "PO-Revision-Date: 2021-06-28 01:50+0000\n" "Last-Translator: Takanori Suzuki , 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../tutorial/floatingpoint.rst:10 diff --git a/tutorial/index.po b/tutorial/index.po index 5d21811a1..98ccb9b8d 100644 --- a/tutorial/index.po +++ b/tutorial/index.po @@ -12,15 +12,15 @@ msgid "" msgstr "" "Project-Id-Version: Python 3.14\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2025-05-09 14:19+0000\n" +"POT-Creation-Date: 2025-05-23 14:20+0000\n" "PO-Revision-Date: 2021-06-28 01:50+0000\n" "Last-Translator: Takanori Suzuki , 2021\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../tutorial/index.rst:5 @@ -29,6 +29,12 @@ msgstr "Python チュートリアル" #: ../../tutorial/index.rst:7 msgid "" +"This tutorial is designed for *programmers* that are new to the Python " +"language, **not** *beginners* who are new to programming." +msgstr "" + +#: ../../tutorial/index.rst:11 +msgid "" "Python is an easy to learn, powerful programming language. It has efficient " "high-level data structures and a simple but effective approach to object-" "oriented programming. Python's elegant syntax and dynamic typing, together " @@ -41,7 +47,7 @@ msgstr "" "ら、スクリプティングや高速アプリケーション開発(Rapid Application " "Development: RAD)に理想的なプログラミング言語となっています。" -#: ../../tutorial/index.rst:13 +#: ../../tutorial/index.rst:17 msgid "" "The Python interpreter and the extensive standard library are freely " "available in source or binary form for all major platforms from the Python " @@ -54,7 +60,7 @@ msgstr "" "ファイルを無料で配布しています。また、Python ウェブサイトには、無料のサード" "パーティモジュールやプログラム、ツール、ドキュメントなども紹介しています。" -#: ../../tutorial/index.rst:19 +#: ../../tutorial/index.rst:23 msgid "" "The Python interpreter is easily extended with new functions and data types " "implemented in C or C++ (or other languages callable from C). Python is also " @@ -64,19 +70,16 @@ msgstr "" "込み、拡張できます。また、アプリケーションのカスタマイズを行う、拡張言語とし" "ても適しています。" -#: ../../tutorial/index.rst:23 +#: ../../tutorial/index.rst:27 msgid "" "This tutorial introduces the reader informally to the basic concepts and " -"features of the Python language and system. It helps to have a Python " -"interpreter handy for hands-on experience, but all examples are self-" +"features of the Python language and system. Be aware that it expects you to " +"have a basic understanding of programming in general. It helps to have a " +"Python interpreter handy for hands-on experience, but all examples are self-" "contained, so the tutorial can be read off-line as well." msgstr "" -"このチュートリアルは、Python 言語の基本的な概念と機能を、形式ばらずに紹介しま" -"す。読むだけではなく、Pythonインタープリタで実際にサンプルを実行すると理解が" -"深まりますが、サンプルはそれぞれ独立していますので、ただ読むだけでも良いで" -"しょう。" -#: ../../tutorial/index.rst:28 +#: ../../tutorial/index.rst:33 msgid "" "For a description of standard objects and modules, see :ref:`library-" "index`. :ref:`reference-index` gives a more formal definition of the " @@ -88,7 +91,7 @@ msgstr "" "+ 言語で拡張モジュールを書くなら、 :ref:`extending-index` や :ref:`c-api-" "index` を参照してください。Python の解説書も販売されています。" -#: ../../tutorial/index.rst:33 +#: ../../tutorial/index.rst:38 msgid "" "This tutorial does not attempt to be comprehensive and cover every single " "feature, or even every commonly used feature. Instead, it introduces many of " @@ -105,6 +108,6 @@ msgstr "" "た、:ref:`library-index` のさまざまな Python ライブラリモジュールを、詳しく調" "べられるようになっているはずです。" -#: ../../tutorial/index.rst:40 +#: ../../tutorial/index.rst:45 msgid "The :ref:`glossary` is also worth going through." msgstr ":ref:`glossary` にも目を通しておくと良いでしょう。" diff --git a/tutorial/inputoutput.po b/tutorial/inputoutput.po index 56dd530f5..d4d00893f 100644 --- a/tutorial/inputoutput.po +++ b/tutorial/inputoutput.po @@ -1,5 +1,5 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2025, Python Software Foundation +# Copyright (C) 2001 Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # @@ -11,22 +11,22 @@ # TENMYO Masakazu, 2023 # 石井明久, 2024 # tomo, 2024 -# righteous, 2025 +# digdugdog, 2025 # #, fuzzy msgid "" msgstr "" -"Project-Id-Version: Python 3.13\n" +"Project-Id-Version: Python 3.14\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2025-04-25 14:19+0000\n" +"POT-Creation-Date: 2025-05-16 14:19+0000\n" "PO-Revision-Date: 2021-06-28 01:50+0000\n" -"Last-Translator: righteous, 2025\n" +"Last-Translator: digdugdog, 2025\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../tutorial/inputoutput.rst:5 diff --git a/tutorial/interactive.po b/tutorial/interactive.po index 0806fd12f..91ca3ae97 100644 --- a/tutorial/interactive.po +++ b/tutorial/interactive.po @@ -1,5 +1,5 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2025, Python Software Foundation +# Copyright (C) 2001 Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # @@ -10,17 +10,17 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: Python 3.13\n" +"Project-Id-Version: Python 3.14\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2025-04-25 14:19+0000\n" +"POT-Creation-Date: 2025-05-16 14:19+0000\n" "PO-Revision-Date: 2021-06-28 01:50+0000\n" "Last-Translator: TENMYO Masakazu, 2023\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../tutorial/interactive.rst:5 diff --git a/tutorial/interpreter.po b/tutorial/interpreter.po index 0248ed32b..ab7fb5277 100644 --- a/tutorial/interpreter.po +++ b/tutorial/interpreter.po @@ -18,10 +18,10 @@ msgstr "" "Last-Translator: Takanori Suzuki , 2025\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../tutorial/interpreter.rst:5 diff --git a/tutorial/introduction.po b/tutorial/introduction.po index fad75c75b..e5c9c4c38 100644 --- a/tutorial/introduction.po +++ b/tutorial/introduction.po @@ -23,10 +23,10 @@ msgstr "" "Last-Translator: Takanori Suzuki , 2025\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../tutorial/introduction.rst:5 diff --git a/tutorial/modules.po b/tutorial/modules.po index a942a1982..4662a6b84 100644 --- a/tutorial/modules.po +++ b/tutorial/modules.po @@ -20,10 +20,10 @@ msgstr "" "Last-Translator: Takanori Suzuki , 2025\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../tutorial/modules.rst:5 diff --git a/tutorial/stdlib.po b/tutorial/stdlib.po index 1ae9db029..4c8c0cceb 100644 --- a/tutorial/stdlib.po +++ b/tutorial/stdlib.po @@ -20,10 +20,10 @@ msgstr "" "Last-Translator: righteous, 2025\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../tutorial/stdlib.rst:5 diff --git a/tutorial/stdlib2.po b/tutorial/stdlib2.po index e5c409092..f1e7ff8c3 100644 --- a/tutorial/stdlib2.po +++ b/tutorial/stdlib2.po @@ -18,10 +18,10 @@ msgstr "" "Last-Translator: Takanori Suzuki , 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../tutorial/stdlib2.rst:5 diff --git a/tutorial/venv.po b/tutorial/venv.po index 8617627b2..1d8c4f4b1 100644 --- a/tutorial/venv.po +++ b/tutorial/venv.po @@ -1,5 +1,5 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2025, Python Software Foundation +# Copyright (C) 2001 Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # @@ -13,17 +13,17 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: Python 3.13\n" +"Project-Id-Version: Python 3.14\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2025-05-02 14:19+0000\n" +"POT-Creation-Date: 2025-05-23 14:20+0000\n" "PO-Revision-Date: 2021-06-28 01:50+0000\n" "Last-Translator: 石井明久, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../tutorial/venv.rst:6 diff --git a/tutorial/whatnow.po b/tutorial/whatnow.po index ad6948ea3..a495a4906 100644 --- a/tutorial/whatnow.po +++ b/tutorial/whatnow.po @@ -17,10 +17,10 @@ msgstr "" "Last-Translator: Takanori Suzuki , 2023\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../tutorial/whatnow.rst:5 diff --git a/using/cmdline.po b/using/cmdline.po index d3df55a1e..ef1902adc 100644 --- a/using/cmdline.po +++ b/using/cmdline.po @@ -21,10 +21,10 @@ msgstr "" "Last-Translator: Takuya Futatsugi, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../using/cmdline.rst:9 diff --git a/using/configure.po b/using/configure.po index 83bf5e3f0..cda25ce38 100644 --- a/using/configure.po +++ b/using/configure.po @@ -20,10 +20,10 @@ msgstr "" "Last-Translator: 石井明久, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../using/configure.rst:3 diff --git a/using/editors.po b/using/editors.po index 63ffb3f28..1bda94763 100644 --- a/using/editors.po +++ b/using/editors.po @@ -16,10 +16,10 @@ msgstr "" "Last-Translator: tomo, 2021\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../using/editors.rst:7 diff --git a/using/index.po b/using/index.po index b8afd38ea..4e452f709 100644 --- a/using/index.po +++ b/using/index.po @@ -16,10 +16,10 @@ msgstr "" "Last-Translator: tomo, 2021\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../using/index.rst:5 diff --git a/using/mac.po b/using/mac.po index 86440d17d..fe19f346c 100644 --- a/using/mac.po +++ b/using/mac.po @@ -1,5 +1,5 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2025, Python Software Foundation +# Copyright (C) 2001 Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # @@ -12,17 +12,17 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: Python 3.13\n" +"Project-Id-Version: Python 3.14\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2025-04-25 14:19+0000\n" +"POT-Creation-Date: 2025-05-16 14:19+0000\n" "PO-Revision-Date: 2021-06-28 01:51+0000\n" "Last-Translator: 石井明久, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../using/mac.rst:6 diff --git a/using/unix.po b/using/unix.po index 485f1f3ad..9423d9275 100644 --- a/using/unix.po +++ b/using/unix.po @@ -1,5 +1,5 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2025, Python Software Foundation +# Copyright (C) 2001 Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # @@ -11,17 +11,17 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: Python 3.13\n" +"Project-Id-Version: Python 3.14\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2025-04-25 14:19+0000\n" +"POT-Creation-Date: 2025-05-16 14:19+0000\n" "PO-Revision-Date: 2021-06-28 01:51+0000\n" "Last-Translator: TENMYO Masakazu, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../using/unix.rst:7 diff --git a/using/windows.po b/using/windows.po index 87362cb2a..f52b7a12e 100644 --- a/using/windows.po +++ b/using/windows.po @@ -14,15 +14,15 @@ msgid "" msgstr "" "Project-Id-Version: Python 3.14\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2025-05-09 14:19+0000\n" +"POT-Creation-Date: 2025-05-23 14:20+0000\n" "PO-Revision-Date: 2021-06-28 01:51+0000\n" "Last-Translator: tomo, 2025\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../using/windows.rst:11 @@ -128,56 +128,49 @@ msgstr "" #: ../../using/windows.rst:79 msgid "" "After installation, the ``python``, ``py``, and ``pymanager`` commands " -"should be available. If they are not, click Start and search for \"Manage " -"app execution aliases\". This settings page will let you enable the relevant " -"commands. They will be labelled \"Python (default)\", \"Python (default " -"windowed)\", and \"Python install manager\"." +"should be available. If you have existing installations of Python, or you " +"have modified your :envvar:`PATH` variable, you may need to remove them or " +"undo the modifications. See :ref:`pymanager-troubleshoot` for more help with " +"fixing non-working commands." msgstr "" #: ../../using/windows.rst:85 msgid "" -"If you have existing installations of Python, or you have modified your :" -"envvar:`PATH` variable, you may need to remove them or undo the " -"modifications in order for the commands to work. Old versions of Python can " -"be reinstalled using the Python install manager." -msgstr "" - -#: ../../using/windows.rst:90 -msgid "" "When you first install a runtime, you will likely be prompted to add a " "directory to your :envvar:`PATH`. This is optional, if you prefer to use the " "``py`` command, but is offered for those who prefer the full range of " "aliases (such as ``python3.14.exe``) to be available. The directory will be :" -"file:`%LocalAppData%\\Python\\bin` by default, but may be customized by an " -"administrator. Click Start and search for \"Edit environment variables for " -"your account\" for the system settings page to add the path." +"file:`%LocalAppData%\\\\Python\\\\bin` by default, but may be customized by " +"an administrator. Click Start and search for \"Edit environment variables " +"for your account\" for the system settings page to add the path." msgstr "" -#: ../../using/windows.rst:98 +#: ../../using/windows.rst:93 msgid "" "Each Python runtime you install will have its own directory for scripts. " "These also need to be added to :envvar:`PATH` if you want to use them." msgstr "" -#: ../../using/windows.rst:101 +#: ../../using/windows.rst:96 msgid "" "The Python install manager will be automatically updated to new releases. " "This does not affect any installs of Python runtimes. Uninstalling the " "Python install manager does not uninstall any Python runtimes." msgstr "" -#: ../../using/windows.rst:105 +#: ../../using/windows.rst:100 msgid "" "If you are not able to install an MSIX in your context, for example, you are " -"using automated deployment software that does not support it, please see :" -"ref:`pymanager-advancedinstall` below for more information." +"using automated deployment software that does not support it, or are " +"targeting Windows Server 2019, please see :ref:`pymanager-advancedinstall` " +"below for more information." msgstr "" -#: ../../using/windows.rst:111 +#: ../../using/windows.rst:107 msgid "Basic Use" msgstr "" -#: ../../using/windows.rst:113 +#: ../../using/windows.rst:109 msgid "" "The recommended command for launching Python is ``python``, which will " "either launch the version requested by the script being launched, an active " @@ -187,7 +180,7 @@ msgid "" "latest release will be installed automatically." msgstr "" -#: ../../using/windows.rst:120 +#: ../../using/windows.rst:116 msgid "" "For all scenarios involving multiple runtime versions, the recommended " "command is ``py``. This may be used anywhere in place of ``python`` or the " @@ -197,7 +190,7 @@ msgid "" "below." msgstr "" -#: ../../using/windows.rst:126 +#: ../../using/windows.rst:122 msgid "" "Because the ``py`` command may already be taken by the previous version, " "there is also an unambiguous ``pymanager`` command. Scripted installs that " @@ -209,7 +202,7 @@ msgid "" "provides equivalent behaviour to ``py ...``)." msgstr "" -#: ../../using/windows.rst:135 +#: ../../using/windows.rst:131 msgid "" "Each of these commands also has a windowed version that avoids creating a " "console window. These are ``pyw``, ``pythonw`` and ``pymanagerw``. A " @@ -218,14 +211,14 @@ msgid "" "Windows, but is not meant to be widely used or recommended." msgstr "" -#: ../../using/windows.rst:141 +#: ../../using/windows.rst:137 msgid "" "To launch your default runtime, run ``python`` or ``py`` with the arguments " "you want to be passed to the runtime (such as script files or the module to " "launch):" msgstr "" -#: ../../using/windows.rst:144 +#: ../../using/windows.rst:140 msgid "" "$> py\n" "...\n" @@ -235,6 +228,13 @@ msgid "" "..." msgstr "" +#: ../../using/windows.rst:149 +msgid "" +"The default runtime can be overridden with the :envvar:" +"`PYTHON_MANAGER_DEFAULT` environment variable, or a configuration file. See :" +"ref:`pymanager-config` for information about configuration settings." +msgstr "" + #: ../../using/windows.rst:153 msgid "" "To launch a specific runtime, the ``py`` command accepts a ``-V:`` " @@ -587,8 +587,8 @@ msgstr "" msgid "Environment Variable" msgstr "" -#: ../../using/windows.rst:1 ../../using/windows.rst:1247 -#: ../../using/windows.rst:1267 ../../using/windows.rst:1862 +#: ../../using/windows.rst:1 ../../using/windows.rst:1301 +#: ../../using/windows.rst:1321 ../../using/windows.rst:1916 msgid "Description" msgstr "説明" @@ -778,15 +778,15 @@ msgstr "" msgid "````" msgstr "" -#: ../../using/windows.rst:457 ../../using/windows.rst:1636 +#: ../../using/windows.rst:457 ../../using/windows.rst:1690 msgid "For example, if the first line of your script starts with" msgstr "具体的に、もしスクリプトの1行目が" -#: ../../using/windows.rst:459 ../../using/windows.rst:1638 +#: ../../using/windows.rst:459 ../../using/windows.rst:1692 msgid "#! /usr/bin/python" msgstr "" -#: ../../using/windows.rst:463 ../../using/windows.rst:1642 +#: ../../using/windows.rst:463 ../../using/windows.rst:1696 msgid "" "The default Python or an active virtual environment will be located and " "used. As many Python scripts written to work on Unix will already have this " @@ -814,6 +814,13 @@ msgstr "" #: ../../using/windows.rst:475 msgid "" +"If no runtimes are installed, or if automatic installation is enabled, the " +"requested runtime will be installed if necessary. See :ref:`pymanager-" +"config` for information about configuration settings." +msgstr "" + +#: ../../using/windows.rst:479 +msgid "" "The ``/usr/bin/env`` form of shebang line will also search the :envvar:" "`PATH` environment variable for unrecognized commands. This corresponds to " "the behaviour of the Unix ``env`` program, which performs the same search, " @@ -822,7 +829,7 @@ msgid "" "``shebang_can_run_anything`` configuration option." msgstr "" -#: ../../using/windows.rst:482 +#: ../../using/windows.rst:486 msgid "" "Shebang lines that do not match any of patterns are treated as *Windows* " "executable paths that are absolute or relative to the directory containing " @@ -834,11 +841,11 @@ msgid "" "``shebang_can_run_anything`` configuration option." msgstr "" -#: ../../using/windows.rst:506 +#: ../../using/windows.rst:518 msgid "Advanced Installation" msgstr "" -#: ../../using/windows.rst:508 +#: ../../using/windows.rst:520 msgid "" "For situations where an MSIX cannot be installed, such as some older " "administrative distribution platforms, there is an MSI available from the " @@ -849,7 +856,13 @@ msgid "" "configuration." msgstr "" -#: ../../using/windows.rst:515 +#: ../../using/windows.rst:529 +msgid "" +"Windows Server 2019 is the only version of Windows that CPython supports " +"that does not support MSIX. For Windows Server 2019, you should use the MSI." +msgstr "" + +#: ../../using/windows.rst:532 msgid "" "Be aware that the MSI package does not bundle any runtimes, and so is not " "suitable for installs into offline environments without also creating an " @@ -857,7 +870,7 @@ msgid "" "admin-config` for information on handling these scenarios." msgstr "" -#: ../../using/windows.rst:520 +#: ../../using/windows.rst:537 msgid "" "Runtimes installed by the MSI are shared with those installed by the MSIX, " "and are all per-user only. The Python install manager does not support " @@ -867,7 +880,7 @@ msgid "" "menu." msgstr "" -#: ../../using/windows.rst:526 +#: ../../using/windows.rst:543 msgid "" "When the MSIX is installed, but commands are not available in the :envvar:" "`PATH` environment variable, they can be found under :file:`%LocalAppData%\\" @@ -879,16 +892,45 @@ msgid "" "recommended." msgstr "" -#: ../../using/windows.rst:535 +#: ../../using/windows.rst:552 +msgid "" +"To programmatically install the Python install manager, it is easiest to use " +"WinGet, which is included with all supported versions of Windows:" +msgstr "" + +#: ../../using/windows.rst:555 +msgid "" +"$> winget install 9NQ7512CXL7T -e --accept-package-agreements --disable-" +"interactivity\n" +"\n" +"# Optionally run the configuration checker and accept all changes\n" +"$> py install --configure -y" +msgstr "" + +#: ../../using/windows.rst:562 +msgid "" +"To download the Python install manager and install on another machine, the " +"following WinGet command will download the required files from the Store to " +"your Downloads directory (add ``-d `` to customize the output " +"location). This also generates a YAML file that appears to be unnecessary, " +"as the downloaded MSIX can be installed by launching or using the commands " +"below." +msgstr "" + +#: ../../using/windows.rst:568 msgid "" -"To programmatically install or uninstall the MSIX without using your " -"distribution platform's native support, the `Add-AppxPackage `_ and `Remove-" -"AppxPackage `_ PowerShell cmdlets are simplest to use:" +"$> winget download 9NQ7512CXL7T -e --skip-license --accept-package-" +"agreements --accept-source-agreements" msgstr "" -#: ../../using/windows.rst:541 +#: ../../using/windows.rst:572 +msgid "" +"To programmatically install or uninstall an MSIX using only PowerShell, the " +"`Add-AppxPackage`_ and `Remove-AppxPackage`_ PowerShell cmdlets are " +"recommended:" +msgstr "" + +#: ../../using/windows.rst:575 msgid "" "$> Add-AppxPackage C:\\Downloads\\python-manager-25.0.msix\n" "...\n" @@ -896,23 +938,52 @@ msgid "" "AppxPackage" msgstr "" -#: ../../using/windows.rst:547 +#: ../../using/windows.rst:581 +msgid "" +"The latest release can be downloaded and installed by Windows by passing the " +"AppInstaller file to the Add-AppxPackage command. This installs using the " +"MSIX on python.org, and is only recommended for cases where installing via " +"the Store (interactively or using WinGet) is not possible." +msgstr "" + +#: ../../using/windows.rst:586 +msgid "" +"$> Add-AppxPackage -AppInstallerFile https://www.python.org/ftp/python/" +"pymanager/pymanager.appinstaller" +msgstr "" + +#: ../../using/windows.rst:590 +msgid "" +"Other tools and APIs may also be used to provision an MSIX package for all " +"users on a machine, but Python does not consider this a supported scenario. " +"We suggest looking into the PowerShell `Add-AppxProvisionedPackage`_ cmdlet, " +"the native Windows `PackageManager`_ class, or the documentation and support " +"for your deployment tool." +msgstr "" + +#: ../../using/windows.rst:596 +msgid "" +"Regardless of the install method, users will still need to install their own " +"copies of Python itself, as there is no way to trigger those installs " +"without being a logged in user. When using the MSIX, the latest version of " +"Python will be available for all users to install without network access." +msgstr "" + +#: ../../using/windows.rst:601 msgid "" -"The native APIs for package management may be found on the Windows " -"`PackageManager `_ class. The :func:`!AddPackageAsync` method " -"installs for the current user, or use :func:`!StagePackageAsync` followed " -"by :func:`!ProvisionPackageForAllUsersAsync` to install the Python install " -"manager for all users from the MSIX package. Users will still need to " -"install their own copies of Python itself, as there is no way to trigger " -"those installs without being a logged in user." +"Note that the MSIX downloadable from the Store and from the Python website " +"are subtly different and cannot be installed at the same time. Wherever " +"possible, we suggest using the above WinGet commands to download the package " +"from the Store to reduce the risk of setting up conflicting installs. There " +"are no licensing restrictions on the Python install manager that would " +"prevent using the Store package in this way." msgstr "" -#: ../../using/windows.rst:558 +#: ../../using/windows.rst:612 msgid "Administrative Configuration" msgstr "" -#: ../../using/windows.rst:560 +#: ../../using/windows.rst:614 msgid "" "There are a number of options that may be useful for administrators to " "override configuration of the Python install manager. These can be used to " @@ -921,7 +992,7 @@ msgid "" "below." msgstr "" -#: ../../using/windows.rst:565 +#: ../../using/windows.rst:619 msgid "" "Configuration options may be overridden in the registry by setting values " "under :file:`HKEY_LOCAL_MACHINE\\\\Software\\\\Policies\\\\Python\\" @@ -934,7 +1005,7 @@ msgid "" "``base_config`` allows users to further modify settings they may need." msgstr "" -#: ../../using/windows.rst:575 +#: ../../using/windows.rst:629 msgid "" "Note that most settings with environment variables support those variables " "because their default setting specifies the variable. If you override them, " @@ -946,13 +1017,13 @@ msgid "" "environment variable will be used instead." msgstr "" -#: ../../using/windows.rst:584 +#: ../../using/windows.rst:638 msgid "" "Configuration settings that are paths are interpreted as relative to the " "directory containing the configuration file that specified them." msgstr "" -#: ../../using/windows.rst:587 +#: ../../using/windows.rst:641 msgid "Administrative configuration options" msgstr "" @@ -1070,17 +1141,17 @@ msgid "" "other than a Python runtime." msgstr "" -#: ../../using/windows.rst:631 ../../using/windows.rst:1426 +#: ../../using/windows.rst:685 ../../using/windows.rst:1480 msgid "Installing Free-threaded Binaries" msgstr "フリースレッドバイナリ (Free-threaded Binaries) のインストール" -#: ../../using/windows.rst:633 ../../using/windows.rst:874 -#: ../../using/windows.rst:1428 +#: ../../using/windows.rst:687 ../../using/windows.rst:928 +#: ../../using/windows.rst:1482 msgid "(Experimental)" msgstr "(実験的)" -#: ../../using/windows.rst:637 ../../using/windows.rst:878 -#: ../../using/windows.rst:1432 +#: ../../using/windows.rst:691 ../../using/windows.rst:932 +#: ../../using/windows.rst:1486 msgid "" "Everything described in this section is considered experimental, and should " "be expected to change in future releases." @@ -1088,20 +1159,20 @@ msgstr "" "このセクションで説明されているすべての項目は実験的とみなされており、将来のリ" "リースで変更される可能性があります。" -#: ../../using/windows.rst:640 +#: ../../using/windows.rst:694 msgid "" "Pre-built distributions of the experimental free-threaded build are " "available by installing tags with the ``t`` suffix." msgstr "" -#: ../../using/windows.rst:643 +#: ../../using/windows.rst:697 msgid "" "$> py install 3.14t\n" "$> py install 3.14t-arm64\n" "$> py install 3.14t-32" msgstr "" -#: ../../using/windows.rst:649 +#: ../../using/windows.rst:703 msgid "" "This will install and register as normal. If you have no other runtimes " "installed, then ``python`` will launch this one. Otherwise, you will need to " @@ -1110,11 +1181,11 @@ msgid "" "commands." msgstr "" -#: ../../using/windows.rst:657 ../../using/windows.rst:665 +#: ../../using/windows.rst:711 ../../using/windows.rst:719 msgid "Troubleshooting" msgstr "" -#: ../../using/windows.rst:659 +#: ../../using/windows.rst:713 msgid "" "If your Python install manager does not seem to be working correctly, please " "work through these tests and fixes to see if it helps. If not, please report " @@ -1252,11 +1323,11 @@ msgid "" "for each runtime, and so you may need to add multiple paths." msgstr "" -#: ../../using/windows.rst:734 +#: ../../using/windows.rst:788 msgid "The embeddable package" msgstr "埋め込み可能なパッケージ" -#: ../../using/windows.rst:738 +#: ../../using/windows.rst:792 msgid "" "The embedded distribution is a ZIP file containing a minimal Python " "environment. It is intended for acting as part of another application, " @@ -1266,17 +1337,17 @@ msgstr "" "ZIP ファイルです。これは、エンドユーザから直接的にアクセスされるのではなく何" "かアプリケーションの一部として動作することを意図したものです。" -#: ../../using/windows.rst:742 +#: ../../using/windows.rst:796 msgid "" "To install an embedded distribution, we recommend using ``py install`` with " "the ``--target`` option:" msgstr "" -#: ../../using/windows.rst:745 +#: ../../using/windows.rst:799 msgid "$> py install 3.14-embed --target=runtime" msgstr "" -#: ../../using/windows.rst:749 +#: ../../using/windows.rst:803 msgid "" "When extracted, the embedded distribution is (almost) fully isolated from " "the user's system, including environment variables, system registry " @@ -1287,14 +1358,14 @@ msgid "" "documentation are not included." msgstr "" -#: ../../using/windows.rst:756 +#: ../../using/windows.rst:810 msgid "" "A default ``._pth`` file is included, which further restricts the default " "search paths (as described below in :ref:`windows_finding_modules`). This " "file is intended for embedders to modify as necessary." msgstr "" -#: ../../using/windows.rst:760 +#: ../../using/windows.rst:814 msgid "" "Third-party packages should be installed by the application installer " "alongside the embedded distribution. Using pip to manage dependencies as for " @@ -1312,16 +1383,16 @@ msgstr "" "ジョンとの互換性を保証できるよう、サードパーティーのパッケージはアプリケー" "ションの一部として扱われるべきです (\"vendoring\")。" -#: ../../using/windows.rst:768 +#: ../../using/windows.rst:822 msgid "" "The two recommended use cases for this distribution are described below." msgstr "この配布の 2 つのお勧めできるユースケースを、以下で説明します。" -#: ../../using/windows.rst:771 +#: ../../using/windows.rst:825 msgid "Python Application" msgstr "Python アプリケーション" -#: ../../using/windows.rst:773 +#: ../../using/windows.rst:827 msgid "" "An application written in Python does not necessarily require users to be " "aware of that fact. The embedded distribution may be used in this case to " @@ -1335,7 +1406,7 @@ msgstr "" "的であるべきかに依存して (あるいは逆に、どのようにプロフェッショナルにみえる" "べきか)、2 つの選択肢があります。" -#: ../../using/windows.rst:779 +#: ../../using/windows.rst:833 msgid "" "Using a specialized executable as a launcher requires some coding, but " "provides the most transparent experience for users. With a customized " @@ -1353,7 +1424,7 @@ msgstr "" "ランチャは、ハードコードされたコマンドライン文字列で単純に ``Py_Main`` を呼び" "出すので済むはずです。" -#: ../../using/windows.rst:786 +#: ../../using/windows.rst:840 msgid "" "The simpler approach is to provide a batch file or generated shortcut that " "directly calls the ``python.exe`` or ``pythonw.exe`` with the required " @@ -1367,7 +1438,7 @@ msgstr "" "みえるので、ほかに動作している Python プロセスやファイルの関連付けと区別する" "のにユーザが困るかもしれません。" -#: ../../using/windows.rst:792 +#: ../../using/windows.rst:846 msgid "" "With the latter approach, packages should be installed as directories " "alongside the Python executable to ensure they are available on the path. " @@ -1380,11 +1451,11 @@ msgstr "" "ランチャの場合はアプリケーション起動前に検索パスを指定する機会があるので、" "パッケージはほかの場所に配置できます。" -#: ../../using/windows.rst:798 +#: ../../using/windows.rst:852 msgid "Embedding Python" msgstr "Python の埋め込み" -#: ../../using/windows.rst:800 +#: ../../using/windows.rst:854 msgid "" "Applications written in native code often require some form of scripting " "language, and the embedded Python distribution can be used for this purpose. " @@ -1401,7 +1472,7 @@ msgstr "" "な Python インタプリタを提供するのには、埋め込み用の配布を展開してアプリケー" "ションのインストレーションのサブディレクトリに置くことで十分です。" -#: ../../using/windows.rst:807 +#: ../../using/windows.rst:861 msgid "" "As with the application use, packages can be installed to any location as " "there is an opportunity to specify search paths before initializing the " @@ -1412,11 +1483,11 @@ msgstr "" "機会があるので、任意の場所にインストールできます。また、埋め込み用配布を使う" "のと通常の Python インストレーションを使うのとでの根本的な違いはありません。" -#: ../../using/windows.rst:816 +#: ../../using/windows.rst:870 msgid "The nuget.org packages" msgstr "nuget.org パッケージ" -#: ../../using/windows.rst:820 +#: ../../using/windows.rst:874 msgid "" "The nuget.org package is a reduced size Python environment intended for use " "on continuous integration and build systems that do not have a system-wide " @@ -1429,7 +1500,7 @@ msgstr "" "nuget は \".NET のためのパッケージマネージャ\" ですが、ビルド時に使うツールを" "含んだパッケージに対しても非常に上手く動作します。" -#: ../../using/windows.rst:825 +#: ../../using/windows.rst:879 msgid "" "Visit `nuget.org `_ for the most up-to-date " "information on using nuget. What follows is a summary that is sufficient for " @@ -1439,7 +1510,7 @@ msgstr "" "org/>`_ に行ってください。\n" "ここから先は Python 開発者にとって十分な要約です。" -#: ../../using/windows.rst:829 +#: ../../using/windows.rst:883 msgid "" "The ``nuget.exe`` command line tool may be downloaded directly from " "``https://aka.ms/nugetclidl``, for example, using curl or PowerShell. With " @@ -1451,13 +1522,13 @@ msgstr "" "このツールを次のように使って、 64 bit あるいは 32 bit のマシン向けの最新バー" "ジョンの Python がインストールできます::" -#: ../../using/windows.rst:834 +#: ../../using/windows.rst:888 msgid "" "nuget.exe install python -ExcludeVersion -OutputDirectory .\n" "nuget.exe install pythonx86 -ExcludeVersion -OutputDirectory ." msgstr "" -#: ../../using/windows.rst:837 +#: ../../using/windows.rst:891 msgid "" "To select a particular version, add a ``-Version 3.x.y``. The output " "directory may be changed from ``.``, and the package will be installed into " @@ -1475,7 +1546,7 @@ msgstr "" "サブディレクトリの中にはインストールされた Python を含んでいる ``tools`` ディ" "レクトリがあります:" -#: ../../using/windows.rst:844 +#: ../../using/windows.rst:898 msgid "" "# Without -ExcludeVersion\n" "> .\\python.3.5.2\\tools\\python.exe -V\n" @@ -1486,7 +1557,7 @@ msgid "" "Python 3.5.2" msgstr "" -#: ../../using/windows.rst:854 +#: ../../using/windows.rst:908 msgid "" "In general, nuget packages are not upgradeable, and newer versions should be " "installed side-by-side and referenced using the full path. Alternatively, " @@ -1500,7 +1571,7 @@ msgstr "" "多くの CI システムは、ビルド間でファイルを保存しておかない場合、この作業を自" "動的に行います。" -#: ../../using/windows.rst:859 +#: ../../using/windows.rst:913 msgid "" "Alongside the ``tools`` directory is a ``build\\native`` directory. This " "contains a MSBuild properties file ``python.props`` that can be used in a C+" @@ -1514,7 +1585,7 @@ msgstr "" "ここに設定を入れると自動的にヘッダを使い、ビルド時にライプラリをインポートし" "ます。" -#: ../../using/windows.rst:864 +#: ../../using/windows.rst:918 msgid "" "The package information pages on nuget.org are `www.nuget.org/packages/" "python `_ for the 64-bit version, " @@ -1523,11 +1594,11 @@ msgid "" "`_ for the ARM64 version" msgstr "" -#: ../../using/windows.rst:872 +#: ../../using/windows.rst:926 msgid "Free-threaded packages" msgstr "フリースレッドパッケージ (Free-threaded packages)" -#: ../../using/windows.rst:881 +#: ../../using/windows.rst:935 msgid "" "Packages containing free-threaded binaries are named `python-freethreaded " "`_ for the 64-bit " @@ -1545,11 +1616,11 @@ msgstr "" "名されます。これらのパッケージはともに ``python3.13t.exe`` と ``python.exe`` " "エントリーポイントを含み、どちらもフリースレッドで実行されます。" -#: ../../using/windows.rst:892 +#: ../../using/windows.rst:946 msgid "Alternative bundles" msgstr "別のバンドル" -#: ../../using/windows.rst:894 +#: ../../using/windows.rst:948 msgid "" "Besides the standard CPython distribution, there are modified packages " "including additional functionality. The following is a list of popular " @@ -1558,19 +1629,19 @@ msgstr "" "標準の CPython の配布物の他に、追加の機能を持っている修正されたパッケージがあ" "ります。以下は人気のあるバージョンとそのキーとなる機能です:" -#: ../../using/windows.rst:898 +#: ../../using/windows.rst:952 msgid "`ActivePython `_" msgstr "`ActivePython `_" -#: ../../using/windows.rst:899 +#: ../../using/windows.rst:953 msgid "Installer with multi-platform compatibility, documentation, PyWin32" msgstr "マルチプラットフォーム互換のインストーラー、ドキュメント、 PyWin32" -#: ../../using/windows.rst:901 +#: ../../using/windows.rst:955 msgid "`Anaconda `_" msgstr "`Anaconda `_" -#: ../../using/windows.rst:902 +#: ../../using/windows.rst:956 msgid "" "Popular scientific modules (such as numpy, scipy and pandas) and the " "``conda`` package manager." @@ -1578,18 +1649,18 @@ msgstr "" "人気のある (numpy, scipy や pandas のような) 科学系モジュールと、パッケージマ" "ネージャ ``conda`` 。" -#: ../../using/windows.rst:905 +#: ../../using/windows.rst:959 msgid "" "`Enthought Deployment Manager `_" msgstr "" -#: ../../using/windows.rst:906 +#: ../../using/windows.rst:960 msgid "\"The Next Generation Python Environment and Package Manager\"." msgstr "" "\"次世代の Python 環境とパッケージマネージャー\" (\"The Next Generation " "Python Environment and Package Manager\")。" -#: ../../using/windows.rst:908 +#: ../../using/windows.rst:962 msgid "" "Previously Enthought provided Canopy, but it `reached end of life in 2016 " "`_。" -#: ../../using/windows.rst:911 +#: ../../using/windows.rst:965 msgid "`WinPython `_" msgstr "`WinPython `_" -#: ../../using/windows.rst:912 +#: ../../using/windows.rst:966 msgid "" "Windows-specific distribution with prebuilt scientific packages and tools " "for building packages." @@ -1613,7 +1684,7 @@ msgstr "" "ビルド済みの科学系パッケージと、パッケージのビルドのためのツールを含む、" "Windows 固有のディストリビューション。" -#: ../../using/windows.rst:915 +#: ../../using/windows.rst:969 msgid "" "Note that these packages may not include the latest versions of Python or " "other libraries, and are not maintained or supported by the core Python team." @@ -1622,11 +1693,11 @@ msgstr "" "ませんし、コア Python チームはこれらを保守もしませんしサポートもしませんので" "ご理解ください。" -#: ../../using/windows.rst:920 +#: ../../using/windows.rst:974 msgid "Supported Windows versions" msgstr "" -#: ../../using/windows.rst:922 +#: ../../using/windows.rst:976 msgid "" "As specified in :pep:`11`, a Python release only supports a Windows platform " "while Microsoft considers the platform under extended support. This means " @@ -1635,11 +1706,11 @@ msgid "" "please install Python 3.12." msgstr "" -#: ../../using/windows.rst:932 ../../using/windows.rst:1213 +#: ../../using/windows.rst:986 ../../using/windows.rst:1267 msgid "Removing the MAX_PATH Limitation" msgstr "MAX_PATH の制限を除去する" -#: ../../using/windows.rst:934 ../../using/windows.rst:1215 +#: ../../using/windows.rst:988 ../../using/windows.rst:1269 msgid "" "Windows historically has limited path lengths to 260 characters. This meant " "that paths longer than this would not resolve and errors would result." @@ -1647,7 +1718,7 @@ msgstr "" "Windows は歴史的にパスの長さが 260 文字に制限されています。\n" "つまり、これより長いパスは解決できず結果としてエラーになるということです。" -#: ../../using/windows.rst:937 +#: ../../using/windows.rst:991 msgid "" "In the latest versions of Windows, this limitation can be expanded to over " "32,000 characters. Your administrator will need to activate the \"Enable " @@ -1656,7 +1727,7 @@ msgid "" "``HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Control\\FileSystem``." msgstr "" -#: ../../using/windows.rst:942 ../../using/windows.rst:1224 +#: ../../using/windows.rst:996 ../../using/windows.rst:1278 msgid "" "This allows the :func:`open` function, the :mod:`os` module and most other " "path functionality to accept and return paths longer than 260 characters." @@ -1664,30 +1735,30 @@ msgstr "" "これにより、 :func:`open` 関数や :mod:`os` モジュール、他のほとんどのパスの機" "能が 260 文字より長いパスを受け入れ、返すことができるようになります。" -#: ../../using/windows.rst:945 +#: ../../using/windows.rst:999 msgid "" "After changing the above option and rebooting, no further configuration is " "required." msgstr "" -#: ../../using/windows.rst:952 +#: ../../using/windows.rst:1006 msgid "UTF-8 mode" msgstr "UTF-8 モード" -#: ../../using/windows.rst:956 +#: ../../using/windows.rst:1010 msgid "" "Windows still uses legacy encodings for the system encoding (the ANSI Code " "Page). Python uses it for the default encoding of text files (e.g. :func:" "`locale.getencoding`)." msgstr "" -#: ../../using/windows.rst:960 +#: ../../using/windows.rst:1014 msgid "" "This may cause issues because UTF-8 is widely used on the internet and most " "Unix systems, including WSL (Windows Subsystem for Linux)." msgstr "" -#: ../../using/windows.rst:963 +#: ../../using/windows.rst:1017 msgid "" "You can use the :ref:`Python UTF-8 Mode ` to change the default " "text encoding to UTF-8. You can enable the :ref:`Python UTF-8 Mode ` is enabled, you can still use " "the system encoding (the ANSI Code Page) via the \"mbcs\" codec." msgstr "" -#: ../../using/windows.rst:972 +#: ../../using/windows.rst:1026 msgid "" "Note that adding ``PYTHONUTF8=1`` to the default environment variables will " "affect all Python 3.7+ applications on your system. If you have any Python " @@ -1711,33 +1782,33 @@ msgid "" "utf8`` command line option." msgstr "" -#: ../../using/windows.rst:979 +#: ../../using/windows.rst:1033 msgid "" "Even when UTF-8 mode is disabled, Python uses UTF-8 by default on Windows " "for:" msgstr "" -#: ../../using/windows.rst:982 +#: ../../using/windows.rst:1036 msgid "Console I/O including standard I/O (see :pep:`528` for details)." msgstr "" -#: ../../using/windows.rst:983 +#: ../../using/windows.rst:1037 msgid "" "The :term:`filesystem encoding ` " "(see :pep:`529` for details)." msgstr "" -#: ../../using/windows.rst:990 +#: ../../using/windows.rst:1044 msgid "Finding modules" msgstr "モジュールの検索" -#: ../../using/windows.rst:992 +#: ../../using/windows.rst:1046 msgid "" "These notes supplement the description at :ref:`sys-path-init` with detailed " "Windows notes." msgstr "" -#: ../../using/windows.rst:995 +#: ../../using/windows.rst:1049 msgid "" "When no ``._pth`` file is found, this is how :data:`sys.path` is populated " "on Windows:" @@ -1745,14 +1816,14 @@ msgstr "" "``._pth`` ファイルが見付からなかったときは、 Windows では :data:`sys.path` は" "次のように設定されます:" -#: ../../using/windows.rst:998 +#: ../../using/windows.rst:1052 msgid "" "An empty entry is added at the start, which corresponds to the current " "directory." msgstr "" "最初に空のエントリが追加されます。これはカレントディレクトリを指しています。" -#: ../../using/windows.rst:1001 +#: ../../using/windows.rst:1055 msgid "" "If the environment variable :envvar:`PYTHONPATH` exists, as described in :" "ref:`using-on-envvars`, its entries are added next. Note that on Windows, " @@ -1764,7 +1835,7 @@ msgstr "" "(``C:\\`` など)と区別するために、この環境変数に含まれるパスの区切り文字はセミ" "コロンでなければならない事に注意してください。" -#: ../../using/windows.rst:1006 +#: ../../using/windows.rst:1060 msgid "" "Additional \"application paths\" can be added in the registry as subkeys of :" "samp:`\\\\SOFTWARE\\\\Python\\\\PythonCore\\\\{version}\\\\PythonPath` under " @@ -1780,7 +1851,7 @@ msgstr "" "が :data:`sys.path` に追加されます。 (既存のインストーラーはすべて HKLM しか" "利用しないので、 HKCU は通常空です)" -#: ../../using/windows.rst:1013 +#: ../../using/windows.rst:1067 msgid "" "If the environment variable :envvar:`PYTHONHOME` is set, it is assumed as " "\"Python Home\". Otherwise, the path of the main Python executable is used " @@ -1800,7 +1871,7 @@ msgstr "" "見つからなかった場合、コアとなる Python path はレジストリに登録された " "PythonPath から構築されます。" -#: ../../using/windows.rst:1021 +#: ../../using/windows.rst:1075 msgid "" "If the Python Home cannot be located, no :envvar:`PYTHONPATH` is specified " "in the environment, and no registry entries can be found, a default path " @@ -1810,7 +1881,7 @@ msgstr "" "トリエントリが見つからなかった場合、関連するデフォルトのパスが利用されます " "(例: ``.\\Lib;.\\plat-win`` など)。" -#: ../../using/windows.rst:1025 +#: ../../using/windows.rst:1079 msgid "" "If a ``pyvenv.cfg`` file is found alongside the main executable or in the " "directory one level above the executable, the following variations apply:" @@ -1818,7 +1889,7 @@ msgstr "" "メインの実行ファイルと同じ場所か一つ上のディレクトリに ``pyvenv.cfg`` がある" "場合、以下の異なった規則が適用されます:" -#: ../../using/windows.rst:1028 +#: ../../using/windows.rst:1082 msgid "" "If ``home`` is an absolute path and :envvar:`PYTHONHOME` is not set, this " "path is used instead of the path to the main executable when deducing the " @@ -1827,11 +1898,11 @@ msgstr "" ":envvar:`PYTHONHOME` が設定されておらず、 ``home`` が絶対パスの場合、home 推" "定の際メインの実行ファイルから推定するのではなくこのパスを使います。" -#: ../../using/windows.rst:1032 +#: ../../using/windows.rst:1086 msgid "The end result of all this is:" msgstr "結果としてこうなります:" -#: ../../using/windows.rst:1034 +#: ../../using/windows.rst:1088 msgid "" "When running :file:`python.exe`, or any other .exe in the main Python " "directory (either an installed version, or directly from the PCbuild " @@ -1843,7 +1914,7 @@ msgstr "" "も) core path が利用され、レジストリ内の core path は無視されます。それ以外の" "レジストリの \"application paths\" は常に読み込まれます。" -#: ../../using/windows.rst:1039 +#: ../../using/windows.rst:1093 msgid "" "When Python is hosted in another .exe (different directory, embedded via " "COM, etc), the \"Python Home\" will not be deduced, so the core path from " @@ -1855,7 +1926,7 @@ msgstr "" "ジストリにある core path が利用されます。それ以外のレジストリの " "\"application paths\" は常に読み込まれます。" -#: ../../using/windows.rst:1043 +#: ../../using/windows.rst:1097 msgid "" "If Python can't find its home and there are no registry value (frozen .exe, " "some very strange installation setup) you get a path with some default, but " @@ -1865,7 +1936,7 @@ msgstr "" "とてもおかしなインストレーションセットアップの凍結された .exe)、パスは最小限" "のデフォルトとして相対パスが使われます。" -#: ../../using/windows.rst:1047 +#: ../../using/windows.rst:1101 msgid "" "For those who want to bundle Python into their application or distribution, " "the following advice will prevent conflicts with other installations:" @@ -1874,7 +1945,7 @@ msgstr "" "(のいずれかまたは組合せ) によりほかのインストレーションとの衝突を避けることが" "できます:" -#: ../../using/windows.rst:1050 +#: ../../using/windows.rst:1104 msgid "" "Include a ``._pth`` file alongside your executable containing the " "directories to include. This will ignore paths listed in the registry and " @@ -1882,14 +1953,14 @@ msgid "" "listed." msgstr "" -#: ../../using/windows.rst:1055 +#: ../../using/windows.rst:1109 msgid "" "If you are loading :file:`python3.dll` or :file:`python37.dll` in your own " "executable, explicitly set :c:member:`PyConfig.module_search_paths` before :" "c:func:`Py_InitializeFromConfig`." msgstr "" -#: ../../using/windows.rst:1059 +#: ../../using/windows.rst:1113 msgid "" "Clear and/or overwrite :envvar:`PYTHONPATH` and set :envvar:`PYTHONHOME` " "before launching :file:`python.exe` from your application." @@ -1898,7 +1969,7 @@ msgstr "" "`PYTHONPATH` をクリアしたり上書きし、 :envvar:`PYTHONHOME` をセットしてくださ" "い。" -#: ../../using/windows.rst:1062 +#: ../../using/windows.rst:1116 msgid "" "If you cannot use the previous suggestions (for example, you are a " "distribution that allows people to run :file:`python.exe` directly), ensure " @@ -1907,7 +1978,7 @@ msgid "" "correctly named ZIP file will be detected instead.)" msgstr "" -#: ../../using/windows.rst:1068 +#: ../../using/windows.rst:1122 msgid "" "These will ensure that the files in a system-wide installation will not take " "precedence over the copy of the standard library bundled with your " @@ -1922,19 +1993,19 @@ msgstr "" "ん。上で列挙した最初の提案が最善です。ほかのものはレジストリ内の非標準のパス" "やユーザの site-packages の影響を少し受けやすいからです。" -#: ../../using/windows.rst:1076 +#: ../../using/windows.rst:1130 msgid "" "Add ``._pth`` file support and removes ``applocal`` option from ``pyvenv." "cfg``." msgstr "" -#: ../../using/windows.rst:1081 +#: ../../using/windows.rst:1135 msgid "" "Add :file:`python{XX}.zip` as a potential landmark when directly adjacent to " "the executable." msgstr "" -#: ../../using/windows.rst:1086 +#: ../../using/windows.rst:1140 msgid "" "Modules specified in the registry under ``Modules`` (not ``PythonPath``) may " "be imported by :class:`importlib.machinery.WindowsRegistryFinder`. This " @@ -1942,11 +2013,11 @@ msgid "" "explicitly added to :data:`sys.meta_path` in the future." msgstr "" -#: ../../using/windows.rst:1092 +#: ../../using/windows.rst:1146 msgid "Additional modules" msgstr "追加のモジュール" -#: ../../using/windows.rst:1094 +#: ../../using/windows.rst:1148 msgid "" "Even though Python aims to be portable among all platforms, there are " "features that are unique to Windows. A couple of modules, both in the " @@ -1956,7 +2027,7 @@ msgstr "" "クな機能もあります。標準ライブラリと外部のライブラリの両方で、幾つかのモ" "ジュールと、そういった機能を使うためのスニペットがあります。" -#: ../../using/windows.rst:1098 +#: ../../using/windows.rst:1152 msgid "" "The Windows-specific standard modules are documented in :ref:`mswin-specific-" "services`." @@ -1964,41 +2035,41 @@ msgstr "" "Windows 固有の標準モジュールは、 :ref:`mswin-specific-services` に書かれてい" "ます。" -#: ../../using/windows.rst:1102 +#: ../../using/windows.rst:1156 msgid "PyWin32" msgstr "PyWin32" -#: ../../using/windows.rst:1104 +#: ../../using/windows.rst:1158 msgid "" "The :pypi:`PyWin32` module by Mark Hammond is a collection of modules for " "advanced Windows-specific support. This includes utilities for:" msgstr "" -#: ../../using/windows.rst:1108 +#: ../../using/windows.rst:1162 msgid "" "`Component Object Model `_ (COM)" msgstr "" -#: ../../using/windows.rst:1111 +#: ../../using/windows.rst:1165 msgid "Win32 API calls" msgstr "Win32 API 呼び出し" -#: ../../using/windows.rst:1112 +#: ../../using/windows.rst:1166 msgid "Registry" msgstr "レジストリ" -#: ../../using/windows.rst:1113 +#: ../../using/windows.rst:1167 msgid "Event log" msgstr "イベントログ" -#: ../../using/windows.rst:1114 +#: ../../using/windows.rst:1168 msgid "" "`Microsoft Foundation Classes `_ (MFC) user interfaces" msgstr "" -#: ../../using/windows.rst:1118 +#: ../../using/windows.rst:1172 msgid "" "`PythonWin `_ is a sample MFC application shipped with PyWin32. " @@ -2008,28 +2079,28 @@ msgstr "" "org/windows/pythonwin/>`_ は PyWin32 に付属している、サンプルのMFCアプリケー" "ションです。これはビルトインのデバッガを含む、組み込み可能なIDEです。" -#: ../../using/windows.rst:1124 +#: ../../using/windows.rst:1178 msgid "" "`Win32 How Do I...? `_" msgstr "" -#: ../../using/windows.rst:1125 +#: ../../using/windows.rst:1179 msgid "by Tim Golden" msgstr "by Tim Golden" -#: ../../using/windows.rst:1127 +#: ../../using/windows.rst:1181 msgid "`Python and COM `_" msgstr "`Python and COM `_" -#: ../../using/windows.rst:1128 +#: ../../using/windows.rst:1182 msgid "by David and Paul Boddie" msgstr "by David and Paul Boddie" -#: ../../using/windows.rst:1132 +#: ../../using/windows.rst:1186 msgid "cx_Freeze" msgstr "cx_Freeze" -#: ../../using/windows.rst:1134 +#: ../../using/windows.rst:1188 msgid "" "`cx_Freeze `_ wraps Python " "scripts into executable Windows programs (:file:`{*}.exe` files). When you " @@ -2037,11 +2108,11 @@ msgid "" "users to install Python." msgstr "" -#: ../../using/windows.rst:1141 +#: ../../using/windows.rst:1195 msgid "Compiling Python on Windows" msgstr "Windows 上で Python をコンパイルする" -#: ../../using/windows.rst:1143 +#: ../../using/windows.rst:1197 msgid "" "If you want to compile CPython yourself, first thing you should do is get " "the `source `_. You can download " @@ -2053,7 +2124,7 @@ msgstr "" "スか、新しい `チェックアウト `_ をダウンロードできます。" -#: ../../using/windows.rst:1148 +#: ../../using/windows.rst:1202 msgid "" "The source tree contains a build solution and project files for Microsoft " "Visual Studio, which is the compiler used to build the official Python " @@ -2063,7 +2134,7 @@ msgstr "" "プロジェクトファイルが含まれていて、これが公式の Python リリースに使われてい" "るコンパイラです。これらファイルは :file:`PCbuild` ディレクトリ内にあります。" -#: ../../using/windows.rst:1152 +#: ../../using/windows.rst:1206 msgid "" "Check :file:`PCbuild/readme.txt` for general information on the build " "process." @@ -2071,26 +2142,26 @@ msgstr "" "ビルドプロセスについての一般的な情報は、:file:`PCbuild/readme.txt` にありま" "す。" -#: ../../using/windows.rst:1154 +#: ../../using/windows.rst:1208 msgid "For extension modules, consult :ref:`building-on-windows`." msgstr "" "拡張モジュールについては、 :ref:`building-on-windows` を参照してください。" -#: ../../using/windows.rst:1161 +#: ../../using/windows.rst:1215 msgid "The full installer (deprecated)" msgstr "" -#: ../../using/windows.rst:1165 +#: ../../using/windows.rst:1219 msgid "" "This installer is deprecated since 3.14 and will not be produced for Python " "3.16 or later. See :ref:`pymanager` for the modern installer." msgstr "" -#: ../../using/windows.rst:1170 +#: ../../using/windows.rst:1224 msgid "Installation steps" msgstr "インストール手順" -#: ../../using/windows.rst:1172 +#: ../../using/windows.rst:1226 msgid "" "Four Python |version| installers are available for download - two each for " "the 32-bit and 64-bit versions of the interpreter. The *web installer* is a " @@ -2110,15 +2181,15 @@ msgstr "" "インストール時にダウンロードを避けるほかの方法については :ref:`install-" "layout-option` を参照して下さい。" -#: ../../using/windows.rst:1180 +#: ../../using/windows.rst:1234 msgid "After starting the installer, one of two options may be selected:" msgstr "インストーラを開始すると、2つの選択肢からひとつを選べます:" -#: ../../using/windows.rst:1184 +#: ../../using/windows.rst:1238 msgid "If you select \"Install Now\":" msgstr "\"Install Now\" を選択した場合:" -#: ../../using/windows.rst:1186 +#: ../../using/windows.rst:1240 msgid "" "You will *not* need to be an administrator (unless a system update for the C " "Runtime Library is required or you install the :ref:`launcher` for all users)" @@ -2127,11 +2198,11 @@ msgstr "" "あったり、 :ref:`launcher` をすべてのユーザ向けにインストールする場合は必要で" "す)。" -#: ../../using/windows.rst:1189 +#: ../../using/windows.rst:1243 msgid "Python will be installed into your user directory" msgstr "Python はあなたのユーザディレクトリにインストールされます。" -#: ../../using/windows.rst:1190 +#: ../../using/windows.rst:1244 msgid "" "The :ref:`launcher` will be installed according to the option at the bottom " "of the first page" @@ -2139,21 +2210,21 @@ msgstr "" ":ref:`launcher` はこのインストールウィザード最初のページの下部のチェックボッ" "クス指定に従ってインストールされます。" -#: ../../using/windows.rst:1192 +#: ../../using/windows.rst:1246 msgid "The standard library, test suite, launcher and pip will be installed" msgstr "標準ライブラリ、テストスイート、ランチャ、pip がインストールされます。" -#: ../../using/windows.rst:1193 +#: ../../using/windows.rst:1247 msgid "If selected, the install directory will be added to your :envvar:`PATH`" msgstr "" "このインストールウィザード最初の下部のチェックボックスをチェックすれば、環境" "変数 :envvar:`PATH` にインストールディレクトリが追加されます。" -#: ../../using/windows.rst:1194 +#: ../../using/windows.rst:1248 msgid "Shortcuts will only be visible for the current user" msgstr "ショートカットはカレントユーザだけに可視になります。" -#: ../../using/windows.rst:1196 +#: ../../using/windows.rst:1250 msgid "" "Selecting \"Customize installation\" will allow you to select the features " "to install, the installation location and other options or post-install " @@ -2165,7 +2236,7 @@ msgstr "" "バッグシンボルやデバッグバイナリをインストールするならこちらを選択する必要が" "あるでしょう。" -#: ../../using/windows.rst:1200 +#: ../../using/windows.rst:1254 msgid "" "To perform an all-users installation, you should select \"Customize " "installation\". In this case:" @@ -2173,38 +2244,38 @@ msgstr "" "すべてのユーザのためのインストールのためには \"Customize installation\" を選" "んでください。この場合:" -#: ../../using/windows.rst:1203 +#: ../../using/windows.rst:1257 msgid "You may be required to provide administrative credentials or approval" msgstr "管理者資格か承認が必要かもしれません。" -#: ../../using/windows.rst:1204 +#: ../../using/windows.rst:1258 msgid "Python will be installed into the Program Files directory" msgstr "Python は Program Files ディレクトリにインストールされます。" -#: ../../using/windows.rst:1205 +#: ../../using/windows.rst:1259 msgid "The :ref:`launcher` will be installed into the Windows directory" msgstr ":ref:`launcher` は Windows ディレクトリにインストールされます。" -#: ../../using/windows.rst:1206 +#: ../../using/windows.rst:1260 msgid "Optional features may be selected during installation" msgstr "オプショナルな機能はインストール中に選択できます。" -#: ../../using/windows.rst:1207 +#: ../../using/windows.rst:1261 msgid "The standard library can be pre-compiled to bytecode" msgstr "標準ライブラリをバイトコードにプリコンパイルできます。" -#: ../../using/windows.rst:1208 +#: ../../using/windows.rst:1262 msgid "" "If selected, the install directory will be added to the system :envvar:`PATH`" msgstr "" "そう選択すれば、インストールディレクトリはシステム環境変数 :envvar:`PATH` に" "追加されます。" -#: ../../using/windows.rst:1209 +#: ../../using/windows.rst:1263 msgid "Shortcuts are available for all users" msgstr "ショートカットがすべてのユーザで利用できるようになります。" -#: ../../using/windows.rst:1218 +#: ../../using/windows.rst:1272 msgid "" "In the latest versions of Windows, this limitation can be expanded to " "approximately 32,000 characters. Your administrator will need to activate " @@ -2218,19 +2289,19 @@ msgstr "" "``HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Control\\FileSystem`` の " "``LongPathsEnabled`` の値を ``1`` に設定する必要があります。" -#: ../../using/windows.rst:1227 +#: ../../using/windows.rst:1281 msgid "After changing the above option, no further configuration is required." msgstr "これらのオプションを変更したら、それ以上の設定は必要ありません。" -#: ../../using/windows.rst:1231 +#: ../../using/windows.rst:1285 msgid "Support for long paths was enabled in Python." msgstr "Python で長いパスのサポートが可能になりました。" -#: ../../using/windows.rst:1236 +#: ../../using/windows.rst:1290 msgid "Installing Without UI" msgstr "インストーラの GUI なしでインストールする" -#: ../../using/windows.rst:1238 +#: ../../using/windows.rst:1292 msgid "" "All of the options available in the installer UI can also be specified from " "the command line, allowing scripted installers to replicate an installation " @@ -2243,7 +2314,7 @@ msgstr "" "フォルトの変更のために、GUI を抑制することなしにこれらコマンドラインオプショ" "ンをセットすることもできます。" -#: ../../using/windows.rst:1243 +#: ../../using/windows.rst:1297 msgid "" "The following options (found by executing the installer with ``/?``) can be " "passed into the installer:" @@ -2251,60 +2322,60 @@ msgstr "" "インストーラーには、以下のオプション (``/?`` でインストーラを実行することで確" "認できます) を渡すことができます:" -#: ../../using/windows.rst:1247 ../../using/windows.rst:1267 -#: ../../using/windows.rst:1862 +#: ../../using/windows.rst:1301 ../../using/windows.rst:1321 +#: ../../using/windows.rst:1916 msgid "Name" msgstr "名前" -#: ../../using/windows.rst:1249 +#: ../../using/windows.rst:1303 msgid "/passive" msgstr "/passive" -#: ../../using/windows.rst:1249 +#: ../../using/windows.rst:1303 msgid "to display progress without requiring user interaction" msgstr "ユーザーの操作なしでも進捗を表示する" -#: ../../using/windows.rst:1251 +#: ../../using/windows.rst:1305 msgid "/quiet" msgstr "/quiet" -#: ../../using/windows.rst:1251 +#: ../../using/windows.rst:1305 msgid "to install/uninstall without displaying any UI" msgstr "UI を表示せずにインストール・アンインストールする" -#: ../../using/windows.rst:1253 +#: ../../using/windows.rst:1307 msgid "/simple" msgstr "/simple" -#: ../../using/windows.rst:1253 +#: ../../using/windows.rst:1307 msgid "to prevent user customization" msgstr "ユーザーによるカスタマイズができないようにする" -#: ../../using/windows.rst:1255 +#: ../../using/windows.rst:1309 msgid "/uninstall" msgstr "/uninstall" -#: ../../using/windows.rst:1255 +#: ../../using/windows.rst:1309 msgid "to remove Python (without confirmation)" msgstr "(確認無しで) Python を削除する" -#: ../../using/windows.rst:1257 +#: ../../using/windows.rst:1311 msgid "/layout [directory]" msgstr "/layout [ディレクトリ]" -#: ../../using/windows.rst:1257 +#: ../../using/windows.rst:1311 msgid "to pre-download all components" msgstr "すべてのコンポーネントを事前にダウンロードする" -#: ../../using/windows.rst:1259 +#: ../../using/windows.rst:1313 msgid "/log [filename]" msgstr "/log [ファイル名]" -#: ../../using/windows.rst:1259 +#: ../../using/windows.rst:1313 msgid "to specify log files location" msgstr "ログファイルの場所を指定する" -#: ../../using/windows.rst:1262 +#: ../../using/windows.rst:1316 msgid "" "All other options are passed as ``name=value``, where the value is usually " "``0`` to disable a feature, ``1`` to enable a feature, or a path. The full " @@ -2314,47 +2385,47 @@ msgstr "" "で機能を無効化、 ``1`` で機能を有効化、であるとかパスの指定です。利用可能なオ" "プションの完全なリストは以下の通りです。" -#: ../../using/windows.rst:1267 +#: ../../using/windows.rst:1321 msgid "Default" msgstr "デフォルト" -#: ../../using/windows.rst:1269 +#: ../../using/windows.rst:1323 msgid "InstallAllUsers" msgstr "InstallAllUsers" -#: ../../using/windows.rst:1269 +#: ../../using/windows.rst:1323 msgid "Perform a system-wide installation." msgstr "システムワイドなインストールを実行する。" -#: ../../using/windows.rst:1269 ../../using/windows.rst:1295 -#: ../../using/windows.rst:1298 ../../using/windows.rst:1302 -#: ../../using/windows.rst:1311 ../../using/windows.rst:1333 -#: ../../using/windows.rst:1341 ../../using/windows.rst:1344 +#: ../../using/windows.rst:1323 ../../using/windows.rst:1349 +#: ../../using/windows.rst:1352 ../../using/windows.rst:1356 +#: ../../using/windows.rst:1365 ../../using/windows.rst:1387 +#: ../../using/windows.rst:1395 ../../using/windows.rst:1398 msgid "0" msgstr "0" -#: ../../using/windows.rst:1271 +#: ../../using/windows.rst:1325 msgid "TargetDir" msgstr "TargetDir" -#: ../../using/windows.rst:1271 +#: ../../using/windows.rst:1325 msgid "The installation directory" msgstr "インストール先ディレクトリ。" -#: ../../using/windows.rst:1271 +#: ../../using/windows.rst:1325 msgid "Selected based on InstallAllUsers" msgstr "InstallAllUsers に基いて選択されます。" -#: ../../using/windows.rst:1274 +#: ../../using/windows.rst:1328 msgid "DefaultAllUsersTargetDir" msgstr "DefaultAllUsersTargetDir" -#: ../../using/windows.rst:1274 +#: ../../using/windows.rst:1328 msgid "The default installation directory for all-user installs" msgstr "" "すべてのユーザ向けインストールのためのデフォルトインストール先ディレクトリ。" -#: ../../using/windows.rst:1274 +#: ../../using/windows.rst:1328 msgid "" ":file:`%ProgramFiles%\\\\\\ Python X.Y` or :file:`\\ %ProgramFiles(x86)%\\\\" "\\ Python X.Y`" @@ -2362,15 +2433,15 @@ msgstr "" ":file:`%ProgramFiles%\\\\\\ Python X.Y` または :file:`\\ %ProgramFiles(x86)%" "\\\\\\ Python X.Y`" -#: ../../using/windows.rst:1279 +#: ../../using/windows.rst:1333 msgid "DefaultJustForMeTargetDir" msgstr "DefaultJustForMeTargetDir" -#: ../../using/windows.rst:1279 +#: ../../using/windows.rst:1333 msgid "The default install directory for just-for-me installs" msgstr "自分一人用インストールのためのデフォルトインストール先ディレクトリ。" -#: ../../using/windows.rst:1279 +#: ../../using/windows.rst:1333 msgid "" ":file:`%LocalAppData%\\\\\\ Programs\\\\Python\\\\\\ PythonXY` or :file:" "`%LocalAppData%\\\\\\ Programs\\\\Python\\\\\\ PythonXY-32` or :file:" @@ -2380,49 +2451,49 @@ msgstr "" "`%LocalAppData%\\\\\\ Programs\\\\Python\\\\\\ PythonXY-32` または :file:" "`%LocalAppData%\\\\\\ Programs\\\\Python\\\\\\ PythonXY-64`" -#: ../../using/windows.rst:1289 +#: ../../using/windows.rst:1343 msgid "DefaultCustomTargetDir" msgstr "DefaultCustomTargetDir" -#: ../../using/windows.rst:1289 +#: ../../using/windows.rst:1343 msgid "The default custom install directory displayed in the UI" msgstr "" "カスタムインストールディレクトリとしてデフォルトで GUI に表示される値。" -#: ../../using/windows.rst:1289 ../../using/windows.rst:1346 +#: ../../using/windows.rst:1343 ../../using/windows.rst:1400 msgid "(empty)" msgstr "(空)" -#: ../../using/windows.rst:1292 +#: ../../using/windows.rst:1346 msgid "AssociateFiles" msgstr "AssociateFiles" -#: ../../using/windows.rst:1292 +#: ../../using/windows.rst:1346 msgid "Create file associations if the launcher is also installed." msgstr "ランチャもインストールする場合に、ファイルの関連付けを行う。" -#: ../../using/windows.rst:1292 ../../using/windows.rst:1306 -#: ../../using/windows.rst:1309 ../../using/windows.rst:1313 -#: ../../using/windows.rst:1317 ../../using/windows.rst:1321 -#: ../../using/windows.rst:1323 ../../using/windows.rst:1327 -#: ../../using/windows.rst:1331 ../../using/windows.rst:1335 -#: ../../using/windows.rst:1337 ../../using/windows.rst:1339 +#: ../../using/windows.rst:1346 ../../using/windows.rst:1360 +#: ../../using/windows.rst:1363 ../../using/windows.rst:1367 +#: ../../using/windows.rst:1371 ../../using/windows.rst:1375 +#: ../../using/windows.rst:1377 ../../using/windows.rst:1381 +#: ../../using/windows.rst:1385 ../../using/windows.rst:1389 +#: ../../using/windows.rst:1391 ../../using/windows.rst:1393 msgid "1" msgstr "1" -#: ../../using/windows.rst:1295 +#: ../../using/windows.rst:1349 msgid "CompileAll" msgstr "CompileAll" -#: ../../using/windows.rst:1295 +#: ../../using/windows.rst:1349 msgid "Compile all ``.py`` files to ``.pyc``." msgstr "すべての ``.py`` ファイルをバイトコンパイルして ``.pyc`` を作る。" -#: ../../using/windows.rst:1298 +#: ../../using/windows.rst:1352 msgid "PrependPath" msgstr "PrependPath" -#: ../../using/windows.rst:1298 +#: ../../using/windows.rst:1352 msgid "" "Prepend install and Scripts directories to :envvar:`PATH` and add ``.PY`` " "to :envvar:`PATHEXT`" @@ -2430,11 +2501,11 @@ msgstr "" ":envvar:`PATH` にインストールディレクトリと Scripts ディレクトリを先頭に追加" "し、 :envvar:`PATHEXT` に ``.PY`` を追加する。" -#: ../../using/windows.rst:1302 +#: ../../using/windows.rst:1356 msgid "AppendPath" msgstr "AppendPath" -#: ../../using/windows.rst:1302 +#: ../../using/windows.rst:1356 msgid "" "Append install and Scripts directories to :envvar:`PATH` and add ``.PY`` " "to :envvar:`PATHEXT`" @@ -2442,37 +2513,37 @@ msgstr "" ":envvar:`PATH` にインストールディレクトリと Scripts ディレクトリを追加し、 :" "envvar:`PATHEXT` に ``.PY`` を追加する。" -#: ../../using/windows.rst:1306 +#: ../../using/windows.rst:1360 msgid "Shortcuts" msgstr "Shortcuts" -#: ../../using/windows.rst:1306 +#: ../../using/windows.rst:1360 msgid "" "Create shortcuts for the interpreter, documentation and IDLE if installed." msgstr "" "インストールするインタプリタ、ドキュメント、IDLE へのショートカットを作る。" -#: ../../using/windows.rst:1309 +#: ../../using/windows.rst:1363 msgid "Include_doc" msgstr "Include_doc" -#: ../../using/windows.rst:1309 +#: ../../using/windows.rst:1363 msgid "Install Python manual" msgstr "Python マニュアルをインストールする。" -#: ../../using/windows.rst:1311 +#: ../../using/windows.rst:1365 msgid "Include_debug" msgstr "Include_debug" -#: ../../using/windows.rst:1311 +#: ../../using/windows.rst:1365 msgid "Install debug binaries" msgstr "デバッグバイナリをインストールする。" -#: ../../using/windows.rst:1313 +#: ../../using/windows.rst:1367 msgid "Include_dev" msgstr "Include_dev" -#: ../../using/windows.rst:1313 +#: ../../using/windows.rst:1367 msgid "" "Install developer headers and libraries. Omitting this may lead to an " "unusable installation." @@ -2480,11 +2551,11 @@ msgstr "" "開発者用ヘッダーとライブラリをインストールする。これを省略すると、使用不可能" "なインストールになる可能性があります。" -#: ../../using/windows.rst:1317 +#: ../../using/windows.rst:1371 msgid "Include_exe" msgstr "Include_exe" -#: ../../using/windows.rst:1317 +#: ../../using/windows.rst:1371 msgid "" "Install :file:`python.exe` and related files. Omitting this may lead to an " "unusable installation." @@ -2492,19 +2563,19 @@ msgstr "" ":file:`python.exe` と関連するファイルをインストールする。これを省略すると、使" "用不可能なインストールになる可能性があります。 " -#: ../../using/windows.rst:1321 +#: ../../using/windows.rst:1375 msgid "Include_launcher" msgstr "Include_launcher" -#: ../../using/windows.rst:1321 +#: ../../using/windows.rst:1375 msgid "Install :ref:`launcher`." msgstr ":ref:`launcher` をインストールする。" -#: ../../using/windows.rst:1323 +#: ../../using/windows.rst:1377 msgid "InstallLauncherAllUsers" msgstr "InstallLauncherAllUsers" -#: ../../using/windows.rst:1323 +#: ../../using/windows.rst:1377 msgid "" "Installs the launcher for all users. Also requires ``Include_launcher`` to " "be set to 1" @@ -2512,11 +2583,11 @@ msgstr "" "すべてのユーザーにランチャーをインストールする。 ``Include_launcher`` が 1 に" "設定されている必要があります。" -#: ../../using/windows.rst:1327 +#: ../../using/windows.rst:1381 msgid "Include_lib" msgstr "Include_lib" -#: ../../using/windows.rst:1327 +#: ../../using/windows.rst:1381 msgid "" "Install standard library and extension modules. Omitting this may lead to an " "unusable installation." @@ -2524,73 +2595,73 @@ msgstr "" "標準ライブラリと拡張モジュールをインストールする。これを省略すると、使用不可" "能なインストールになる可能性があります。" -#: ../../using/windows.rst:1331 +#: ../../using/windows.rst:1385 msgid "Include_pip" msgstr "Include_pip" -#: ../../using/windows.rst:1331 +#: ../../using/windows.rst:1385 msgid "Install bundled pip and setuptools" msgstr "バンドル版の pip と setuptools をインストールする。" -#: ../../using/windows.rst:1333 +#: ../../using/windows.rst:1387 msgid "Include_symbols" msgstr "Include_symbols" -#: ../../using/windows.rst:1333 +#: ../../using/windows.rst:1387 msgid "Install debugging symbols (``*.pdb``)" msgstr "デバッグシンボル (``*.pdb``) をインストールする。" -#: ../../using/windows.rst:1335 +#: ../../using/windows.rst:1389 msgid "Include_tcltk" msgstr "Include_tcltk" -#: ../../using/windows.rst:1335 +#: ../../using/windows.rst:1389 msgid "Install Tcl/Tk support and IDLE" msgstr "Tcl/Tk サポートと IDLE をインストールする。" -#: ../../using/windows.rst:1337 +#: ../../using/windows.rst:1391 msgid "Include_test" msgstr "Include_test" -#: ../../using/windows.rst:1337 +#: ../../using/windows.rst:1391 msgid "Install standard library test suite" msgstr "標準ライブラリのテストスイートをインストールする。" -#: ../../using/windows.rst:1339 +#: ../../using/windows.rst:1393 msgid "Include_tools" msgstr "Include_tools" -#: ../../using/windows.rst:1339 +#: ../../using/windows.rst:1393 msgid "Install utility scripts" msgstr "ユーティリティスクリプトをインストールする。" -#: ../../using/windows.rst:1341 +#: ../../using/windows.rst:1395 msgid "LauncherOnly" msgstr "LauncherOnly" -#: ../../using/windows.rst:1341 +#: ../../using/windows.rst:1395 msgid "Only installs the launcher. This will override most other options." msgstr "" "ランチャのみをインストールする。これは他のほとんどのオプションを上書きしま" "す。" -#: ../../using/windows.rst:1344 +#: ../../using/windows.rst:1398 msgid "SimpleInstall" msgstr "SimpleInstall" -#: ../../using/windows.rst:1344 +#: ../../using/windows.rst:1398 msgid "Disable most install UI" msgstr "最大限のインストーラ GUI を無効にする。" -#: ../../using/windows.rst:1346 +#: ../../using/windows.rst:1400 msgid "SimpleInstallDescription" msgstr "SimpleInstallDescription" -#: ../../using/windows.rst:1346 +#: ../../using/windows.rst:1400 msgid "A custom message to display when the simplified install UI is used." msgstr "単純化されたインストーラ GUI を使う際に表示するカスタムメッセージ。" -#: ../../using/windows.rst:1350 +#: ../../using/windows.rst:1404 msgid "" "For example, to silently install a default, system-wide Python installation, " "you could use the following command (from an elevated command prompt)::" @@ -2598,11 +2669,11 @@ msgstr "" "例えばデフォルトでシステムワイドな Python インストレーションを静かに行うに" "は、以下コマンドを使えます (コマンドプロンプトより)::" -#: ../../using/windows.rst:1353 +#: ../../using/windows.rst:1407 msgid "python-3.9.0.exe /quiet InstallAllUsers=1 PrependPath=1 Include_test=0" msgstr "" -#: ../../using/windows.rst:1355 +#: ../../using/windows.rst:1409 msgid "" "To allow users to easily install a personal copy of Python without the test " "suite, you could provide a shortcut with the following command. This will " @@ -2613,13 +2684,13 @@ msgstr "" "トーラの最初のページを単純化して表示し、また、カスタマイズできないようにしま" "す::" -#: ../../using/windows.rst:1359 +#: ../../using/windows.rst:1413 msgid "" "python-3.9.0.exe InstallAllUsers=0 Include_launcher=0 Include_test=0\n" " SimpleInstall=1 SimpleInstallDescription=\"Just for me, no test suite.\"" msgstr "" -#: ../../using/windows.rst:1362 +#: ../../using/windows.rst:1416 msgid "" "(Note that omitting the launcher also omits file associations, and is only " "recommended for per-user installs when there is also a system-wide " @@ -2629,7 +2700,7 @@ msgstr "" "ランチャインストールを含めたシステムワイドなインストールをした場合のユーザご" "とインストールに限った場合のお勧めです。)" -#: ../../using/windows.rst:1366 +#: ../../using/windows.rst:1420 msgid "" "The options listed above can also be provided in a file named ``unattend." "xml`` alongside the executable. This file specifies a list of options and " @@ -2643,7 +2714,7 @@ msgstr "" "数値に変換されます。エレメントテキストで与える場合は常に文字列のままです。以" "下は、先の例と同じオプションをセットするファイルの実例です::" -#: ../../using/windows.rst:1372 +#: ../../using/windows.rst:1426 msgid "" "\n" " " msgstr "" -#: ../../using/windows.rst:1385 +#: ../../using/windows.rst:1439 msgid "Installing Without Downloading" msgstr "ダウンロード不要なインストール" -#: ../../using/windows.rst:1387 +#: ../../using/windows.rst:1441 msgid "" "As some features of Python are not included in the initial installer " "download, selecting those features may require an internet connection. To " @@ -2679,7 +2750,7 @@ msgstr "" "の回数インストールしようとする場合には、ローカルにキャッシュされたコピーを持" "つことはとても有用です。" -#: ../../using/windows.rst:1395 +#: ../../using/windows.rst:1449 msgid "" "Execute the following command from Command Prompt to download all possible " "required files. Remember to substitute ``python-3.9.0.exe`` for the actual " @@ -2692,20 +2763,20 @@ msgstr "" "どうしの衝突が起こらないように、個別のディレクトリ内に配置構成を作るのを忘れ" "ないようにしてください。" -#: ../../using/windows.rst:1402 +#: ../../using/windows.rst:1456 msgid "python-3.9.0.exe /layout [optional target directory]" msgstr "" -#: ../../using/windows.rst:1404 +#: ../../using/windows.rst:1458 msgid "" "You may also specify the ``/quiet`` option to hide the progress display." msgstr "進捗表示を隠すのに ``/quiet`` オプションを指定することもできます。" -#: ../../using/windows.rst:1407 +#: ../../using/windows.rst:1461 msgid "Modifying an install" msgstr "インストール後の変更" -#: ../../using/windows.rst:1409 +#: ../../using/windows.rst:1463 msgid "" "Once Python has been installed, you can add or remove features through the " "Programs and Features tool that is part of Windows. Select the Python entry " @@ -2716,7 +2787,7 @@ msgstr "" "ンインストールと変更」を選ぶことで、インストーラをメンテナンスモードで開きま" "す。" -#: ../../using/windows.rst:1413 +#: ../../using/windows.rst:1467 msgid "" "\"Modify\" allows you to add or remove features by modifying the checkboxes " "- unchanged checkboxes will not install or remove anything. Some options " @@ -2729,7 +2800,7 @@ msgstr "" "更することはできません。インストールディレクトリなどです。それらを変えたいの" "であれば、完全に削除してから再インストールする必要があります。" -#: ../../using/windows.rst:1418 +#: ../../using/windows.rst:1472 msgid "" "\"Repair\" will verify all the files that should be installed using the " "current settings and replace any that have been removed or modified." @@ -2737,7 +2808,7 @@ msgstr "" "\"Repair\" では、現在の設定で本来インストールされるべきすべてのファイルを検証" "し、削除されていたり更新されていたりするファイルを修正します。" -#: ../../using/windows.rst:1421 +#: ../../using/windows.rst:1475 msgid "" "\"Uninstall\" will remove Python entirely, with the exception of the :ref:" "`launcher`, which has its own entry in Programs and Features." @@ -2745,14 +2816,14 @@ msgstr "" "\"Uninstall\" は Python を完全に削除します。「プログラムと機能」内の自身のエ" "ントリを持つ :ref:`launcher` の例外が起こります。" -#: ../../using/windows.rst:1435 +#: ../../using/windows.rst:1489 msgid "" "To install pre-built binaries with free-threading enabled (see :pep:`703`), " "you should select \"Customize installation\". The second page of options " "includes the \"Download free-threaded binaries\" checkbox." msgstr "" -#: ../../using/windows.rst:1441 +#: ../../using/windows.rst:1495 msgid "" "Selecting this option will download and install additional binaries to the " "same location as the main Python install. The main executable is called " @@ -2761,7 +2832,7 @@ msgid "" "are shared with the main install." msgstr "" -#: ../../using/windows.rst:1447 +#: ../../using/windows.rst:1501 msgid "" "The free-threaded version is registered as a regular Python install with the " "tag ``3.13t`` (with a ``-32`` or ``-arm64`` suffix as normal for those " @@ -2773,7 +2844,7 @@ msgid "" "not install the free-threaded binaries at this time." msgstr "" -#: ../../using/windows.rst:1456 +#: ../../using/windows.rst:1510 msgid "" "To specify the install option at the command line, use " "``Include_freethreaded=1``. See :ref:`install-layout-option` for " @@ -2782,24 +2853,24 @@ msgid "" "apply to the free-threaded builds." msgstr "" -#: ../../using/windows.rst:1462 +#: ../../using/windows.rst:1516 msgid "" "Free-threaded binaries are also available :ref:`on nuget.org `." msgstr "" -#: ../../using/windows.rst:1466 +#: ../../using/windows.rst:1520 msgid "Python Launcher for Windows (Deprecated)" msgstr "" -#: ../../using/windows.rst:1470 +#: ../../using/windows.rst:1524 msgid "" "The launcher and this documentation have been superseded by the Python " "Install Manager described above. This is preserved temporarily for " "historical interest." msgstr "" -#: ../../using/windows.rst:1476 +#: ../../using/windows.rst:1530 msgid "" "The Python launcher for Windows is a utility which aids in locating and " "executing of different Python versions. It allows scripts (or the command-" @@ -2810,7 +2881,7 @@ msgstr "" "助けるユーティリティです。スクリプト (またはコマンドライン) で特定の Python " "のバージョンの設定を与えられると、位置を特定し、そのバージョンを実行します。" -#: ../../using/windows.rst:1481 +#: ../../using/windows.rst:1535 msgid "" "Unlike the :envvar:`PATH` variable, the launcher will correctly select the " "most appropriate version of Python. It will prefer per-user installations " @@ -2822,19 +2893,19 @@ msgstr "" "ユーザごとのインストレーションの方を優先し、また、新しくインストールされた順" "よりも言語のバージョンを優先します。" -#: ../../using/windows.rst:1486 +#: ../../using/windows.rst:1540 msgid "The launcher was originally specified in :pep:`397`." msgstr "ランチャのオリジナルの仕様は :pep:`397` にあります。" -#: ../../using/windows.rst:1489 +#: ../../using/windows.rst:1543 msgid "Getting started" msgstr "最初に" -#: ../../using/windows.rst:1492 +#: ../../using/windows.rst:1546 msgid "From the command-line" msgstr "コマンドラインから起動する" -#: ../../using/windows.rst:1496 +#: ../../using/windows.rst:1550 msgid "" "System-wide installations of Python 3.3 and later will put the launcher on " "your :envvar:`PATH`. The launcher is compatible with all available versions " @@ -2847,11 +2918,11 @@ msgstr "" "いるのかは重要ではありません。ランチャーが使えるかを確認するには以下のコマン" "ドをコマンドプロンプトで実行してください::" -#: ../../using/windows.rst:1501 +#: ../../using/windows.rst:1555 msgid "py" msgstr "" -#: ../../using/windows.rst:1503 +#: ../../using/windows.rst:1557 msgid "" "You should find that the latest version of Python you have installed is " "started - it can be exited as normal, and any additional command-line " @@ -2861,7 +2932,7 @@ msgstr "" "通常どおりに終了することもできますし、追加のコマンドライン引数を指定して直接 " "Python に渡すこともできます。" -#: ../../using/windows.rst:1507 +#: ../../using/windows.rst:1561 msgid "" "If you have multiple versions of Python installed (e.g., 3.7 and |version|) " "you will have noticed that Python |version| was started - to launch Python " @@ -2871,11 +2942,11 @@ msgstr "" "る場合は、Python |version| が起動することになります。Python 3.7 を起動したい" "なら、次のコマンドを実行してみてください::" -#: ../../using/windows.rst:1511 +#: ../../using/windows.rst:1565 msgid "py -3.7" msgstr "" -#: ../../using/windows.rst:1513 +#: ../../using/windows.rst:1567 msgid "" "If you want the latest version of Python 2 you have installed, try the " "command::" @@ -2883,35 +2954,35 @@ msgstr "" "インストールしてある Python 2 の最新バージョンを起動したい場合は、次のコマン" "ドを実行してみてください::" -#: ../../using/windows.rst:1516 +#: ../../using/windows.rst:1570 msgid "py -2" msgstr "" -#: ../../using/windows.rst:1518 +#: ../../using/windows.rst:1572 msgid "" "If you see the following error, you do not have the launcher installed::" msgstr "" "以下のようなエラーが出るようであれば、ランチャはインストールされていません::" -#: ../../using/windows.rst:1520 +#: ../../using/windows.rst:1574 msgid "" "'py' is not recognized as an internal or external command,\n" "operable program or batch file." msgstr "" -#: ../../using/windows.rst:1523 +#: ../../using/windows.rst:1577 msgid "The command::" msgstr "このコマンド::" -#: ../../using/windows.rst:1525 +#: ../../using/windows.rst:1579 msgid "py --list" msgstr "" -#: ../../using/windows.rst:1527 +#: ../../using/windows.rst:1581 msgid "displays the currently installed version(s) of Python." msgstr "これは、現在インストールされている Python のバージョンを表示します。" -#: ../../using/windows.rst:1529 +#: ../../using/windows.rst:1583 msgid "" "The ``-x.y`` argument is the short form of the ``-V:Company/Tag`` argument, " "which allows selecting a specific Python runtime, including those that may " @@ -2920,14 +2991,14 @@ msgid "" "available runtimes using the ``-V:`` format." msgstr "" -#: ../../using/windows.rst:1535 +#: ../../using/windows.rst:1589 msgid "" "When using the ``-V:`` argument, specifying the Company will limit selection " "to runtimes from that provider, while specifying only the Tag will select " "from all providers. Note that omitting the slash implies a tag::" msgstr "" -#: ../../using/windows.rst:1539 +#: ../../using/windows.rst:1593 msgid "" "# Select any '3.*' tagged runtime\n" "py -V:3\n" @@ -2939,14 +3010,14 @@ msgid "" "py -V:PythonCore/3" msgstr "" -#: ../../using/windows.rst:1548 +#: ../../using/windows.rst:1602 msgid "" "The short form of the argument (``-3``) only ever selects from core Python " "releases, and not other distributions. However, the longer form (``-V:3``) " "will select from any." msgstr "" -#: ../../using/windows.rst:1552 +#: ../../using/windows.rst:1606 msgid "" "The Company is matched on the full string, case-insensitive. The Tag is " "matched on either the full string, or a prefix, provided the next character " @@ -2955,11 +3026,11 @@ msgid "" "``3.1``), but are compared using text (``-V:3.01`` does not match ``3.1``)." msgstr "" -#: ../../using/windows.rst:1560 +#: ../../using/windows.rst:1614 msgid "Virtual environments" msgstr "仮想環境 (Virtual environments)" -#: ../../using/windows.rst:1564 +#: ../../using/windows.rst:1618 msgid "" "If the launcher is run with no explicit Python version specification, and a " "virtual environment (created with the standard library :mod:`venv` module or " @@ -2975,11 +3046,11 @@ msgstr "" "を停止するか、または明示的にグローバルな Python バージョンを指定してくださ" "い。" -#: ../../using/windows.rst:1572 +#: ../../using/windows.rst:1626 msgid "From a script" msgstr "スクリプトから起動する" -#: ../../using/windows.rst:1574 +#: ../../using/windows.rst:1628 msgid "" "Let's create a test Python script - create a file called ``hello.py`` with " "the following contents" @@ -2987,22 +3058,22 @@ msgstr "" "テスト用の Python スクリプトを作成しましょう。``hello.py`` という名前で以下の" "内容のファイルを作成してください" -#: ../../using/windows.rst:1577 +#: ../../using/windows.rst:1631 msgid "" "#! python\n" "import sys\n" "sys.stdout.write(\"hello from Python %s\\n\" % (sys.version,))" msgstr "" -#: ../../using/windows.rst:1583 +#: ../../using/windows.rst:1637 msgid "From the directory in which hello.py lives, execute the command::" msgstr "hello.py が存在するディレクトリで、下記コマンドを実行してください::" -#: ../../using/windows.rst:1585 +#: ../../using/windows.rst:1639 msgid "py hello.py" msgstr "" -#: ../../using/windows.rst:1587 +#: ../../using/windows.rst:1641 msgid "" "You should notice the version number of your latest Python 2.x installation " "is printed. Now try changing the first line to be:" @@ -3010,11 +3081,11 @@ msgstr "" "インストールされている最新の Python 2.x のバージョン番号が表示されるはずで" "す。では、1行目を以下のように変更してみてください:" -#: ../../using/windows.rst:1590 +#: ../../using/windows.rst:1644 msgid "#! python3" msgstr "" -#: ../../using/windows.rst:1594 +#: ../../using/windows.rst:1648 msgid "" "Re-executing the command should now print the latest Python 3.x information. " "As with the above command-line examples, you can specify a more explicit " @@ -3027,7 +3098,7 @@ msgstr "" "ともできます。Python 3.7 がインストールされている場合、最初の行を ``#! " "python3.7`` に変更すると、3.7 のバージョン情報が表示されるはずです。" -#: ../../using/windows.rst:1600 +#: ../../using/windows.rst:1654 msgid "" "Note that unlike interactive use, a bare \"python\" will use the latest " "version of Python 2.x that you have installed. This is for backward " @@ -3039,11 +3110,11 @@ msgstr "" "は後方互換性と、 ``python`` が一般的に Python 2 を指すUnix との互換性のためで" "す。" -#: ../../using/windows.rst:1606 +#: ../../using/windows.rst:1660 msgid "From file associations" msgstr "ファイルの関連付けから起動する" -#: ../../using/windows.rst:1608 +#: ../../using/windows.rst:1662 msgid "" "The launcher should have been associated with Python files (i.e. ``.py``, ``." "pyw``, ``.pyc`` files) when it was installed. This means that when you " @@ -3057,7 +3128,7 @@ msgstr "" "たのと同じ機能を使ってスクリプトが使われるべきバージョンを指定できるようにな" "ります。" -#: ../../using/windows.rst:1614 +#: ../../using/windows.rst:1668 msgid "" "The key benefit of this is that a single launcher can support multiple " "Python versions at the same time depending on the contents of the first line." @@ -3065,11 +3136,11 @@ msgstr "" "このことによる重要な利点は、単一のランチャが先頭行の内容によって複数の " "Python バージョンを同時にサポートできることです。" -#: ../../using/windows.rst:1618 +#: ../../using/windows.rst:1672 msgid "Shebang Lines" msgstr "シェバン (shebang) 行" -#: ../../using/windows.rst:1620 +#: ../../using/windows.rst:1674 msgid "" "If the first line of a script file starts with ``#!``, it is known as a " "\"shebang\" line. Linux and other Unix like operating systems have native " @@ -3086,7 +3157,7 @@ msgstr "" "Windows の Python ランチャは、Windows 上の Python スクリプトが同じ機能を使用" "できるようにし、上の例ではそれらの機能の使用法を示しています。" -#: ../../using/windows.rst:1627 +#: ../../using/windows.rst:1681 msgid "" "To allow shebang lines in Python scripts to be portable between Unix and " "Windows, this launcher supports a number of 'virtual' commands to specify " @@ -3096,23 +3167,23 @@ msgstr "" "チャは、どのインタプリタが使われるかを指定するための大量の '仮想' コマンドを" "サポートしています。サポートされる仮想コマンドには以下のものがあります:" -#: ../../using/windows.rst:1631 +#: ../../using/windows.rst:1685 msgid "``/usr/bin/env``" msgstr "``/usr/bin/env``" -#: ../../using/windows.rst:1632 +#: ../../using/windows.rst:1686 msgid "``/usr/bin/python``" msgstr "``/usr/bin/python``" -#: ../../using/windows.rst:1633 +#: ../../using/windows.rst:1687 msgid "``/usr/local/bin/python``" msgstr "``/usr/local/bin/python``" -#: ../../using/windows.rst:1634 +#: ../../using/windows.rst:1688 msgid "``python``" msgstr "``python``" -#: ../../using/windows.rst:1648 +#: ../../using/windows.rst:1702 msgid "" "Any of the above virtual commands can be suffixed with an explicit version " "(either just the major version, or the major and minor version). Furthermore " @@ -3129,7 +3200,7 @@ msgstr "" "す。仮想環境がアクティブになっている場合は、バージョンは無視され、その環境が" "使用されます。" -#: ../../using/windows.rst:1657 +#: ../../using/windows.rst:1711 msgid "" "Beginning with python launcher 3.7 it is possible to request 64-bit version " "by the \"-64\" suffix. Furthermore it is possible to specify a major and " @@ -3140,14 +3211,14 @@ msgstr "" "さらに、マイナーバージョン無しのメジャーバージョンとアーキテクチャだけ (例え" "ば、 ``/usr/bin/python3-64``) で指定できます。" -#: ../../using/windows.rst:1663 +#: ../../using/windows.rst:1717 msgid "" "The \"-64\" suffix is deprecated, and now implies \"any architecture that is " "not provably i386/32-bit\". To request a specific environment, use the new :" "samp:`-V:{TAG}` argument with the complete tag." msgstr "" -#: ../../using/windows.rst:1669 +#: ../../using/windows.rst:1723 msgid "" "Virtual commands referencing ``python`` now prefer an active virtual " "environment rather than searching :envvar:`PATH`. This handles cases where " @@ -3155,7 +3226,7 @@ msgid "" "not present in the active environment." msgstr "" -#: ../../using/windows.rst:1674 +#: ../../using/windows.rst:1728 msgid "" "The ``/usr/bin/env`` form of shebang line has one further special property. " "Before looking for installed Python interpreters, this form will search the " @@ -3169,7 +3240,7 @@ msgid "" "of :envvar:`PATH`." msgstr "" -#: ../../using/windows.rst:1685 +#: ../../using/windows.rst:1739 msgid "" "Shebang lines that do not match any of these patterns are looked up in the " "``[commands]`` section of the launcher's :ref:`.INI file `. " @@ -3180,13 +3251,13 @@ msgid "" "part of the filename)." msgstr "" -#: ../../using/windows.rst:1693 +#: ../../using/windows.rst:1747 msgid "" "[commands]\n" "/bin/xpython=C:\\Program Files\\XPython\\python.exe" msgstr "" -#: ../../using/windows.rst:1698 +#: ../../using/windows.rst:1752 msgid "" "Any commands not found in the .INI file are treated as **Windows** " "executable paths that are absolute or relative to the directory containing " @@ -3197,11 +3268,11 @@ msgid "" "will be appended." msgstr "" -#: ../../using/windows.rst:1707 +#: ../../using/windows.rst:1761 msgid "Arguments in shebang lines" msgstr "シェバン行の引数" -#: ../../using/windows.rst:1709 +#: ../../using/windows.rst:1763 msgid "" "The shebang lines can also specify additional options to be passed to the " "Python interpreter. For example, if you have a shebang line:" @@ -3209,23 +3280,23 @@ msgstr "" "シェバン行では Python インタプリタに渡される追加の引数を指定することもできま" "す。たとえば、シェバン行に以下のように書かれているとしましょう:" -#: ../../using/windows.rst:1712 +#: ../../using/windows.rst:1766 msgid "#! /usr/bin/python -v" msgstr "" -#: ../../using/windows.rst:1716 +#: ../../using/windows.rst:1770 msgid "Then Python will be started with the ``-v`` option" msgstr "この場合、Python は ``-v`` オプション付きで起動するでしょう" -#: ../../using/windows.rst:1719 +#: ../../using/windows.rst:1773 msgid "Customization" msgstr "カスタマイズ" -#: ../../using/windows.rst:1724 +#: ../../using/windows.rst:1778 msgid "Customization via INI files" msgstr "INI ファイルによるカスタマイズ" -#: ../../using/windows.rst:1726 +#: ../../using/windows.rst:1780 msgid "" "Two .ini files will be searched by the launcher - ``py.ini`` in the current " "user's application data directory (``%LOCALAPPDATA%`` or ``$env:" @@ -3239,7 +3310,7 @@ msgstr "" "ini`` です。'コンソール' 版のランチャ (つまり py.exe) と 'Windows' 版のラン" "チャ (つまり pyw.exe) は同一の .ini ファイルを使用します。" -#: ../../using/windows.rst:1732 +#: ../../using/windows.rst:1786 msgid "" "Customization specified in the \"application directory\" will have " "precedence over the one next to the executable, so a user, who may not have " @@ -3251,11 +3322,11 @@ msgstr "" "クセスができないユーザは、グローバルな .ini ファイル内のコマンドを上書き " "(override) できます。" -#: ../../using/windows.rst:1737 +#: ../../using/windows.rst:1791 msgid "Customizing default Python versions" msgstr "デフォルトのPythonバージョンのカスタマイズ" -#: ../../using/windows.rst:1739 +#: ../../using/windows.rst:1793 msgid "" "In some cases, a version qualifier can be included in a command to dictate " "which version of Python will be used by the command. A version qualifier " @@ -3271,7 +3342,7 @@ msgstr "" "さらに、 \"-32\" や \"-64\" を追記して 32-bit あるいは 64-bit のどちらの実装" "が要求されるかを指示できます。" -#: ../../using/windows.rst:1745 +#: ../../using/windows.rst:1799 msgid "" "For example, a shebang line of ``#!python`` has no version qualifier, while " "``#!python3`` has a version qualifier which specifies only a major version." @@ -3279,7 +3350,7 @@ msgstr "" "たとえば、``#!python`` というシェバン行はバージョン修飾子を含みませんが、``#!" "python3`` はメジャーバージョンを指定するバージョン修飾子を含みます。" -#: ../../using/windows.rst:1748 +#: ../../using/windows.rst:1802 msgid "" "If no version qualifiers are found in a command, the environment variable :" "envvar:`PY_PYTHON` can be set to specify the default version qualifier. If " @@ -3296,7 +3367,7 @@ msgstr "" "(\"-64\" オプションは Python 3.7 以降のランチャでしか使えないことに注意してく" "ださい。)" -#: ../../using/windows.rst:1755 +#: ../../using/windows.rst:1809 msgid "" "If no minor version qualifiers are found, the environment variable " "``PY_PYTHON{major}`` (where ``{major}`` is the current major version " @@ -3314,7 +3385,7 @@ msgstr "" "されているわけではありませんが、通常はそのメジャーバージョン系で最も後にイン" "ストールしたバージョンになります。" -#: ../../using/windows.rst:1763 +#: ../../using/windows.rst:1817 msgid "" "On 64-bit Windows with both 32-bit and 64-bit implementations of the same " "(major.minor) Python version installed, the 64-bit version will always be " @@ -3337,11 +3408,11 @@ msgstr "" "もよい) ようにするためです。上に記したとおり、オプションの \"-32\", \"-64\" " "サフィックスでこの挙動を変更できます。" -#: ../../using/windows.rst:1774 +#: ../../using/windows.rst:1828 msgid "Examples:" msgstr "例:" -#: ../../using/windows.rst:1776 +#: ../../using/windows.rst:1830 msgid "" "If no relevant options are set, the commands ``python`` and ``python2`` will " "use the latest Python 2.x version installed and the command ``python3`` will " @@ -3351,7 +3422,7 @@ msgstr "" "ンドはインストールされている最新の Python 2.x バージョンを使用し、" "``python3`` コマンドはインストールされている最新の Python 3.x を使用します。" -#: ../../using/windows.rst:1780 +#: ../../using/windows.rst:1834 msgid "" "The command ``python3.7`` will not consult any options at all as the " "versions are fully specified." @@ -3359,7 +3430,7 @@ msgstr "" "``python3.7`` コマンドは、バージョンが完全に指定されているため、全くオプショ" "ンを参照しません。" -#: ../../using/windows.rst:1783 +#: ../../using/windows.rst:1837 msgid "" "If ``PY_PYTHON=3``, the commands ``python`` and ``python3`` will both use " "the latest installed Python 3 version." @@ -3367,7 +3438,7 @@ msgstr "" "``PY_PYTHON=3`` の場合、``python`` および ``python3`` コマンドはともにインス" "トールされている最新の Python 3 を使用します。" -#: ../../using/windows.rst:1786 +#: ../../using/windows.rst:1840 msgid "" "If ``PY_PYTHON=3.7-32``, the command ``python`` will use the 32-bit " "implementation of 3.7 whereas the command ``python3`` will use the latest " @@ -3378,7 +3449,7 @@ msgstr "" "すが、``python3`` コマンドはインストールされている最新の Python を使用します " "(メジャーバージョンが指定されているため、PY_PYTHON は全く考慮されません。)" -#: ../../using/windows.rst:1791 +#: ../../using/windows.rst:1845 msgid "" "If ``PY_PYTHON=3`` and ``PY_PYTHON3=3.7``, the commands ``python`` and " "``python3`` will both use specifically 3.7" @@ -3386,7 +3457,7 @@ msgstr "" "``PY_PYTHON=3`` で ``PY_PYTHON3=3.7`` の場合、``python`` および ``python3`` " "はどちらも 3.7 を使用します" -#: ../../using/windows.rst:1794 +#: ../../using/windows.rst:1848 msgid "" "In addition to environment variables, the same settings can be configured in " "the .INI file used by the launcher. The section in the INI file is called " @@ -3401,23 +3472,23 @@ msgstr "" "キー名は大文字小文字を区別しないことにご注意ください)。環境変数の内容は INI " "ファイルでの指定を上書きします。" -#: ../../using/windows.rst:1801 +#: ../../using/windows.rst:1855 msgid "For example:" msgstr "例えば:" -#: ../../using/windows.rst:1803 +#: ../../using/windows.rst:1857 msgid "Setting ``PY_PYTHON=3.7`` is equivalent to the INI file containing:" msgstr "" "``PY_PYTHON=3.7`` と設定することは、INI ファイルに下記が含まれることと等価で" "す:" -#: ../../using/windows.rst:1805 +#: ../../using/windows.rst:1859 msgid "" "[defaults]\n" "python=3.7" msgstr "" -#: ../../using/windows.rst:1810 +#: ../../using/windows.rst:1864 msgid "" "Setting ``PY_PYTHON=3`` and ``PY_PYTHON3=3.7`` is equivalent to the INI file " "containing:" @@ -3425,18 +3496,18 @@ msgstr "" "``PY_PYTHON=3`` と ``PY_PYTHON3=3.7`` を設定することは、INI ファイルに下記が" "含まれることと等価です:" -#: ../../using/windows.rst:1813 +#: ../../using/windows.rst:1867 msgid "" "[defaults]\n" "python=3\n" "python3=3.7" msgstr "" -#: ../../using/windows.rst:1820 +#: ../../using/windows.rst:1874 msgid "Diagnostics" msgstr "診断" -#: ../../using/windows.rst:1822 +#: ../../using/windows.rst:1876 msgid "" "If an environment variable :envvar:`PYLAUNCHER_DEBUG` is set (to any value), " "the launcher will print diagnostic information to stderr (i.e. to the " @@ -3452,11 +3523,11 @@ msgstr "" "実行するのに使われた正確なコマンドラインを教えてくれます。これは主にテストや" "デバッグのためのものです。" -#: ../../using/windows.rst:1830 +#: ../../using/windows.rst:1884 msgid "Dry Run" msgstr "" -#: ../../using/windows.rst:1832 +#: ../../using/windows.rst:1886 msgid "" "If an environment variable :envvar:`PYLAUNCHER_DRYRUN` is set (to any " "value), the launcher will output the command it would have run, but will not " @@ -3466,11 +3537,11 @@ msgid "" "correctly in the console." msgstr "" -#: ../../using/windows.rst:1840 +#: ../../using/windows.rst:1894 msgid "Install on demand" msgstr "" -#: ../../using/windows.rst:1842 +#: ../../using/windows.rst:1896 msgid "" "If an environment variable :envvar:`PYLAUNCHER_ALLOW_INSTALL` is set (to any " "value), and the requested Python version is not installed but is available " @@ -3479,7 +3550,7 @@ msgid "" "again." msgstr "" -#: ../../using/windows.rst:1847 +#: ../../using/windows.rst:1901 msgid "" "An additional :envvar:`PYLAUNCHER_ALWAYS_INSTALL` variable causes the " "launcher to always try to install Python, even if it is detected. This is " @@ -3487,110 +3558,110 @@ msgid "" "`PYLAUNCHER_DRYRUN`)." msgstr "" -#: ../../using/windows.rst:1852 +#: ../../using/windows.rst:1906 msgid "Return codes" msgstr "" -#: ../../using/windows.rst:1854 +#: ../../using/windows.rst:1908 msgid "" "The following exit codes may be returned by the Python launcher. " "Unfortunately, there is no way to distinguish these from the exit code of " "Python itself." msgstr "" -#: ../../using/windows.rst:1857 +#: ../../using/windows.rst:1911 msgid "" "The names of codes are as used in the sources, and are only for reference. " "There is no way to access or resolve them apart from reading this page. " "Entries are listed in alphabetical order of names." msgstr "" -#: ../../using/windows.rst:1862 +#: ../../using/windows.rst:1916 msgid "Value" msgstr "値" -#: ../../using/windows.rst:1864 +#: ../../using/windows.rst:1918 msgid "RC_BAD_VENV_CFG" msgstr "RC_BAD_VENV_CFG" -#: ../../using/windows.rst:1864 +#: ../../using/windows.rst:1918 msgid "107" msgstr "107" -#: ../../using/windows.rst:1864 +#: ../../using/windows.rst:1918 msgid "A :file:`pyvenv.cfg` was found but is corrupt." msgstr "" -#: ../../using/windows.rst:1866 +#: ../../using/windows.rst:1920 msgid "RC_CREATE_PROCESS" msgstr "RC_CREATE_PROCESS" -#: ../../using/windows.rst:1866 +#: ../../using/windows.rst:1920 msgid "101" msgstr "101" -#: ../../using/windows.rst:1866 +#: ../../using/windows.rst:1920 msgid "Failed to launch Python." msgstr "" -#: ../../using/windows.rst:1868 +#: ../../using/windows.rst:1922 msgid "RC_INSTALLING" msgstr "RC_INSTALLING" -#: ../../using/windows.rst:1868 +#: ../../using/windows.rst:1922 msgid "111" msgstr "111" -#: ../../using/windows.rst:1868 +#: ../../using/windows.rst:1922 msgid "" "An install was started, but the command will need to be re-run after it " "completes." msgstr "" -#: ../../using/windows.rst:1871 +#: ../../using/windows.rst:1925 msgid "RC_INTERNAL_ERROR" msgstr "RC_INTERNAL_ERROR" -#: ../../using/windows.rst:1871 +#: ../../using/windows.rst:1925 msgid "109" msgstr "109" -#: ../../using/windows.rst:1871 +#: ../../using/windows.rst:1925 msgid "Unexpected error. Please report a bug." msgstr "" -#: ../../using/windows.rst:1873 +#: ../../using/windows.rst:1927 msgid "RC_NO_COMMANDLINE" msgstr "RC_NO_COMMANDLINE" -#: ../../using/windows.rst:1873 +#: ../../using/windows.rst:1927 msgid "108" msgstr "108" -#: ../../using/windows.rst:1873 +#: ../../using/windows.rst:1927 msgid "Unable to obtain command line from the operating system." msgstr "" -#: ../../using/windows.rst:1876 +#: ../../using/windows.rst:1930 msgid "RC_NO_PYTHON" msgstr "RC_NO_PYTHON" -#: ../../using/windows.rst:1876 +#: ../../using/windows.rst:1930 msgid "103" msgstr "103" -#: ../../using/windows.rst:1876 +#: ../../using/windows.rst:1930 msgid "Unable to locate the requested version." msgstr "" -#: ../../using/windows.rst:1878 +#: ../../using/windows.rst:1932 msgid "RC_NO_VENV_CFG" msgstr "RC_NO_VENV_CFG" -#: ../../using/windows.rst:1878 +#: ../../using/windows.rst:1932 msgid "106" msgstr "106" -#: ../../using/windows.rst:1878 +#: ../../using/windows.rst:1932 msgid "A :file:`pyvenv.cfg` was required but not found." msgstr "" diff --git a/whatsnew/2.0.po b/whatsnew/2.0.po index 8d2e8dd60..07d57adc9 100644 --- a/whatsnew/2.0.po +++ b/whatsnew/2.0.po @@ -1,5 +1,5 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2025, Python Software Foundation +# Copyright (C) 2001 Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # @@ -11,17 +11,17 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: Python 3.13\n" +"Project-Id-Version: Python 3.14\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2025-05-02 14:19+0000\n" +"POT-Creation-Date: 2025-05-23 14:20+0000\n" "PO-Revision-Date: 2021-06-28 01:51+0000\n" "Last-Translator: Taichi Haradaguchi, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../whatsnew/2.0.rst:3 diff --git a/whatsnew/2.1.po b/whatsnew/2.1.po index ce73012b9..0d993b236 100644 --- a/whatsnew/2.1.po +++ b/whatsnew/2.1.po @@ -18,10 +18,10 @@ msgstr "" "Last-Translator: souma987, 2023\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../whatsnew/2.1.rst:3 diff --git a/whatsnew/2.2.po b/whatsnew/2.2.po index 2d3c23904..1771953e8 100644 --- a/whatsnew/2.2.po +++ b/whatsnew/2.2.po @@ -18,10 +18,10 @@ msgstr "" "Last-Translator: Taichi Haradaguchi, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../whatsnew/2.2.rst:3 diff --git a/whatsnew/2.3.po b/whatsnew/2.3.po index 6b353277d..6024781d4 100644 --- a/whatsnew/2.3.po +++ b/whatsnew/2.3.po @@ -1,5 +1,5 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2025, Python Software Foundation +# Copyright (C) 2001 Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # @@ -13,17 +13,17 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: Python 3.13\n" +"Project-Id-Version: Python 3.14\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2025-04-25 14:19+0000\n" +"POT-Creation-Date: 2025-05-16 14:19+0000\n" "PO-Revision-Date: 2021-06-28 01:51+0000\n" "Last-Translator: Taichi Haradaguchi, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../whatsnew/2.3.rst:3 diff --git a/whatsnew/2.4.po b/whatsnew/2.4.po index ded9ae059..4643ea85e 100644 --- a/whatsnew/2.4.po +++ b/whatsnew/2.4.po @@ -17,10 +17,10 @@ msgstr "" "Last-Translator: tomo, 2023\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../whatsnew/2.4.rst:3 diff --git a/whatsnew/2.5.po b/whatsnew/2.5.po index 71d12373b..f95d14dc1 100644 --- a/whatsnew/2.5.po +++ b/whatsnew/2.5.po @@ -1,5 +1,5 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2025, Python Software Foundation +# Copyright (C) 2001 Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # @@ -13,17 +13,17 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: Python 3.13\n" +"Project-Id-Version: Python 3.14\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2025-05-02 14:19+0000\n" +"POT-Creation-Date: 2025-05-23 14:20+0000\n" "PO-Revision-Date: 2021-06-28 01:51+0000\n" "Last-Translator: tomo, 2023\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../whatsnew/2.5.rst:3 diff --git a/whatsnew/2.6.po b/whatsnew/2.6.po index b1908076b..1649b982c 100644 --- a/whatsnew/2.6.po +++ b/whatsnew/2.6.po @@ -16,10 +16,10 @@ msgstr "" "Last-Translator: tomo, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../whatsnew/2.6.rst:5 diff --git a/whatsnew/2.7.po b/whatsnew/2.7.po index 3e3d82254..cc656f809 100644 --- a/whatsnew/2.7.po +++ b/whatsnew/2.7.po @@ -19,10 +19,10 @@ msgstr "" "Last-Translator: Taichi Haradaguchi, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../whatsnew/2.7.rst:3 diff --git a/whatsnew/3.0.po b/whatsnew/3.0.po index 3745df5fb..3071a24f0 100644 --- a/whatsnew/3.0.po +++ b/whatsnew/3.0.po @@ -18,10 +18,10 @@ msgstr "" "Last-Translator: Taichi Haradaguchi, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../whatsnew/3.0.rst:3 diff --git a/whatsnew/3.1.po b/whatsnew/3.1.po index 96f030619..d47b11c71 100644 --- a/whatsnew/3.1.po +++ b/whatsnew/3.1.po @@ -18,10 +18,10 @@ msgstr "" "Last-Translator: tomo, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../whatsnew/3.1.rst:3 diff --git a/whatsnew/3.10.po b/whatsnew/3.10.po index 41bd383dc..636856135 100644 --- a/whatsnew/3.10.po +++ b/whatsnew/3.10.po @@ -14,15 +14,15 @@ msgid "" msgstr "" "Project-Id-Version: Python 3.14\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2025-05-08 02:53-0300\n" +"POT-Creation-Date: 2025-05-23 14:20+0000\n" "PO-Revision-Date: 2021-06-29 13:04+0000\n" "Last-Translator: Takanori Suzuki , 2025\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../whatsnew/3.10.rst:3 @@ -134,7 +134,7 @@ msgstr "" msgid ":pep:`597`, Add optional EncodingWarning" msgstr "" -#: ../../whatsnew/3.10.rst:92 ../../whatsnew/3.10.rst:2053 +#: ../../whatsnew/3.10.rst:92 ../../whatsnew/3.10.rst:2054 msgid "New Features" msgstr "新しい機能" @@ -834,14 +834,15 @@ msgstr "" msgid "" "If you are using classes to structure your data, you can use as a pattern " "the class name followed by an argument list resembling a constructor. This " -"pattern has the ability to capture class attributes into variables::" +"pattern has the ability to capture instance attributes into variables::" msgstr "" #: ../../whatsnew/3.10.rst:556 msgid "" "class Point:\n" -" x: int\n" -" y: int\n" +" def __init__(self, x, y):\n" +" self.x = x\n" +" self.y = y\n" "\n" "def location(point):\n" " match point:\n" @@ -857,11 +858,11 @@ msgid "" " print(\"Not a point\")" msgstr "" -#: ../../whatsnew/3.10.rst:574 +#: ../../whatsnew/3.10.rst:575 msgid "Patterns with positional parameters" msgstr "" -#: ../../whatsnew/3.10.rst:576 +#: ../../whatsnew/3.10.rst:577 msgid "" "You can use positional parameters with some builtin classes that provide an " "ordering for their attributes (e.g. dataclasses). You can also define a " @@ -876,7 +877,7 @@ msgstr "" "下のすべてのパターンは等価です(すべて属性 ``y`` が ``var`` 変数に関連づけられ" "ます)::" -#: ../../whatsnew/3.10.rst:582 +#: ../../whatsnew/3.10.rst:583 msgid "" "Point(1, var)\n" "Point(1, y=var)\n" @@ -888,17 +889,17 @@ msgstr "" "Point(x=1, y=var)\n" "Point(y=var, x=1)" -#: ../../whatsnew/3.10.rst:588 +#: ../../whatsnew/3.10.rst:589 msgid "Nested patterns" msgstr "" -#: ../../whatsnew/3.10.rst:590 +#: ../../whatsnew/3.10.rst:591 msgid "" "Patterns can be arbitrarily nested. For example, if our data is a short " "list of points, it could be matched like this::" msgstr "" -#: ../../whatsnew/3.10.rst:593 +#: ../../whatsnew/3.10.rst:594 msgid "" "match points:\n" " case []:\n" @@ -913,18 +914,18 @@ msgid "" " print(\"Something else is found in the list.\")" msgstr "" -#: ../../whatsnew/3.10.rst:606 +#: ../../whatsnew/3.10.rst:607 msgid "Complex patterns and the wildcard" msgstr "" -#: ../../whatsnew/3.10.rst:608 +#: ../../whatsnew/3.10.rst:609 msgid "" "To this point, the examples have used ``_`` alone in the last case " "statement. A wildcard can be used in more complex patterns, such as " "``('error', code, _)``. For example::" msgstr "" -#: ../../whatsnew/3.10.rst:612 +#: ../../whatsnew/3.10.rst:613 msgid "" "match test_variable:\n" " case ('warning', code, 40):\n" @@ -933,17 +934,17 @@ msgid "" " print(f\"An error {code} occurred.\")" msgstr "" -#: ../../whatsnew/3.10.rst:618 +#: ../../whatsnew/3.10.rst:619 msgid "" "In the above case, ``test_variable`` will match for ('error', code, 100) and " "('error', code, 800)." msgstr "" -#: ../../whatsnew/3.10.rst:622 +#: ../../whatsnew/3.10.rst:623 msgid "Guard" msgstr "" -#: ../../whatsnew/3.10.rst:624 +#: ../../whatsnew/3.10.rst:625 msgid "" "We can add an ``if`` clause to a pattern, known as a \"guard\". If the " "guard is false, ``match`` goes on to try the next case block. Note that " @@ -953,7 +954,7 @@ msgstr "" "falseの場合、``match`` は次のcaseブロックの処理に移動します。ガードを評価する" "前に値が取り出されることに注意してください::" -#: ../../whatsnew/3.10.rst:628 +#: ../../whatsnew/3.10.rst:629 msgid "" "match point:\n" " case Point(x, y) if x == y:\n" @@ -962,15 +963,15 @@ msgid "" " print(f\"Point is not on the diagonal.\")" msgstr "" -#: ../../whatsnew/3.10.rst:635 +#: ../../whatsnew/3.10.rst:636 msgid "Other Key Features" msgstr "" -#: ../../whatsnew/3.10.rst:637 +#: ../../whatsnew/3.10.rst:638 msgid "Several other key features:" msgstr "" -#: ../../whatsnew/3.10.rst:639 +#: ../../whatsnew/3.10.rst:640 msgid "" "Like unpacking assignments, tuple and list patterns have exactly the same " "meaning and actually match arbitrary sequences. Technically, the subject " @@ -979,7 +980,7 @@ msgid "" "match strings." msgstr "" -#: ../../whatsnew/3.10.rst:645 +#: ../../whatsnew/3.10.rst:646 msgid "" "Sequence patterns support wildcards: ``[x, y, *rest]`` and ``(x, y, *rest)`` " "work similar to wildcards in unpacking assignments. The name after ``*`` " @@ -987,7 +988,7 @@ msgid "" "items without binding the remaining items." msgstr "" -#: ../../whatsnew/3.10.rst:650 +#: ../../whatsnew/3.10.rst:651 msgid "" "Mapping patterns: ``{\"bandwidth\": b, \"latency\": l}`` captures the " "``\"bandwidth\"`` and ``\"latency\"`` values from a dict. Unlike sequence " @@ -995,34 +996,34 @@ msgid "" "(But ``**_`` would be redundant, so is not allowed.)" msgstr "" -#: ../../whatsnew/3.10.rst:655 +#: ../../whatsnew/3.10.rst:656 msgid "Subpatterns may be captured using the ``as`` keyword::" msgstr "サブパターンでは ``as`` キーワードを使用して値を取り込みます::" -#: ../../whatsnew/3.10.rst:657 +#: ../../whatsnew/3.10.rst:658 msgid "case (Point(x1, y1), Point(x2, y2) as p2): ..." msgstr "case (Point(x1, y1), Point(x2, y2) as p2): ..." -#: ../../whatsnew/3.10.rst:659 +#: ../../whatsnew/3.10.rst:660 msgid "" "This binds x1, y1, x2, y2 like you would expect without the ``as`` clause, " "and p2 to the entire second item of the subject." msgstr "" -#: ../../whatsnew/3.10.rst:662 +#: ../../whatsnew/3.10.rst:663 msgid "" "Most literals are compared by equality. However, the singletons ``True``, " "``False`` and ``None`` are compared by identity." msgstr "" -#: ../../whatsnew/3.10.rst:665 +#: ../../whatsnew/3.10.rst:666 msgid "" "Named constants may be used in patterns. These named constants must be " "dotted names to prevent the constant from being interpreted as a capture " "variable::" msgstr "" -#: ../../whatsnew/3.10.rst:669 +#: ../../whatsnew/3.10.rst:670 msgid "" "from enum import Enum\n" "class Color(Enum):\n" @@ -1040,17 +1041,17 @@ msgid "" " print(\"I'm feeling the blues :(\")" msgstr "" -#: ../../whatsnew/3.10.rst:684 +#: ../../whatsnew/3.10.rst:685 msgid "" "For the full specification see :pep:`634`. Motivation and rationale are in :" "pep:`635`, and a longer tutorial is in :pep:`636`." msgstr "" -#: ../../whatsnew/3.10.rst:691 +#: ../../whatsnew/3.10.rst:692 msgid "Optional ``EncodingWarning`` and ``encoding=\"locale\"`` option" msgstr "" -#: ../../whatsnew/3.10.rst:693 +#: ../../whatsnew/3.10.rst:694 msgid "" "The default encoding of :class:`~io.TextIOWrapper` and :func:`open` is " "platform and locale dependent. Since UTF-8 is used on most Unix platforms, " @@ -1058,106 +1059,106 @@ msgid "" "TOML, Markdown) is a very common bug. For example::" msgstr "" -#: ../../whatsnew/3.10.rst:698 +#: ../../whatsnew/3.10.rst:699 msgid "" "# BUG: \"rb\" mode or encoding=\"utf-8\" should be used.\n" "with open(\"data.json\") as f:\n" " data = json.load(f)" msgstr "" -#: ../../whatsnew/3.10.rst:702 +#: ../../whatsnew/3.10.rst:703 msgid "" "To find this type of bug, an optional ``EncodingWarning`` is added. It is " "emitted when :data:`sys.flags.warn_default_encoding ` is true and " "locale-specific default encoding is used." msgstr "" -#: ../../whatsnew/3.10.rst:706 +#: ../../whatsnew/3.10.rst:707 msgid "" "``-X warn_default_encoding`` option and :envvar:`PYTHONWARNDEFAULTENCODING` " "are added to enable the warning." msgstr "" -#: ../../whatsnew/3.10.rst:709 +#: ../../whatsnew/3.10.rst:710 msgid "See :ref:`io-text-encoding` for more information." msgstr "" -#: ../../whatsnew/3.10.rst:714 +#: ../../whatsnew/3.10.rst:715 msgid "New Features Related to Type Hints" msgstr "型ヒントに関連する新しい機能" -#: ../../whatsnew/3.10.rst:716 +#: ../../whatsnew/3.10.rst:717 msgid "" "This section covers major changes affecting :pep:`484` type hints and the :" "mod:`typing` module." msgstr "" -#: ../../whatsnew/3.10.rst:721 +#: ../../whatsnew/3.10.rst:722 msgid "PEP 604: New Type Union Operator" msgstr "" -#: ../../whatsnew/3.10.rst:723 +#: ../../whatsnew/3.10.rst:724 msgid "" "A new type union operator was introduced which enables the syntax ``X | Y``. " "This provides a cleaner way of expressing 'either type X or type Y' instead " "of using :class:`typing.Union`, especially in type hints." msgstr "" -#: ../../whatsnew/3.10.rst:727 +#: ../../whatsnew/3.10.rst:728 msgid "" "In previous versions of Python, to apply a type hint for functions accepting " "arguments of multiple types, :class:`typing.Union` was used::" msgstr "" -#: ../../whatsnew/3.10.rst:730 +#: ../../whatsnew/3.10.rst:731 msgid "" "def square(number: Union[int, float]) -> Union[int, float]:\n" " return number ** 2" msgstr "" -#: ../../whatsnew/3.10.rst:734 +#: ../../whatsnew/3.10.rst:735 msgid "Type hints can now be written in a more succinct manner::" msgstr "" -#: ../../whatsnew/3.10.rst:736 +#: ../../whatsnew/3.10.rst:737 msgid "" "def square(number: int | float) -> int | float:\n" " return number ** 2" msgstr "" -#: ../../whatsnew/3.10.rst:740 +#: ../../whatsnew/3.10.rst:741 msgid "" "This new syntax is also accepted as the second argument to :func:" "`isinstance` and :func:`issubclass`::" msgstr "" -#: ../../whatsnew/3.10.rst:743 +#: ../../whatsnew/3.10.rst:744 msgid "" ">>> isinstance(1, int | str)\n" "True" msgstr "" -#: ../../whatsnew/3.10.rst:746 +#: ../../whatsnew/3.10.rst:747 msgid "See :ref:`types-union` and :pep:`604` for more details." msgstr "" -#: ../../whatsnew/3.10.rst:748 +#: ../../whatsnew/3.10.rst:749 msgid "" "(Contributed by Maggie Moss and Philippe Prados in :issue:`41428`, with " "additions by Yurii Karabas and Serhiy Storchaka in :issue:`44490`.)" msgstr "" -#: ../../whatsnew/3.10.rst:753 +#: ../../whatsnew/3.10.rst:754 msgid "PEP 612: Parameter Specification Variables" msgstr "" -#: ../../whatsnew/3.10.rst:755 +#: ../../whatsnew/3.10.rst:756 msgid "" "Two new options to improve the information provided to static type checkers " "for :pep:`484`\\ 's ``Callable`` have been added to the :mod:`typing` module." msgstr "" -#: ../../whatsnew/3.10.rst:758 +#: ../../whatsnew/3.10.rst:759 msgid "" "The first is the parameter specification variable. They are used to forward " "the parameter types of one callable to another callable -- a pattern " @@ -1166,7 +1167,7 @@ msgid "" "to type annotate dependency of parameter types in such a precise manner." msgstr "" -#: ../../whatsnew/3.10.rst:764 +#: ../../whatsnew/3.10.rst:765 msgid "" "The second option is the new ``Concatenate`` operator. It's used in " "conjunction with parameter specification variables to type annotate a higher " @@ -1174,24 +1175,24 @@ msgid "" "Examples of usage can be found in :class:`typing.Concatenate`." msgstr "" -#: ../../whatsnew/3.10.rst:769 +#: ../../whatsnew/3.10.rst:770 msgid "" "See :class:`typing.Callable`, :class:`typing.ParamSpec`, :class:`typing." "Concatenate`, :class:`typing.ParamSpecArgs`, :class:`typing." "ParamSpecKwargs`, and :pep:`612` for more details." msgstr "" -#: ../../whatsnew/3.10.rst:773 +#: ../../whatsnew/3.10.rst:774 msgid "" "(Contributed by Ken Jin in :issue:`41559`, with minor enhancements by Jelle " "Zijlstra in :issue:`43783`. PEP written by Mark Mendoza.)" msgstr "" -#: ../../whatsnew/3.10.rst:778 +#: ../../whatsnew/3.10.rst:779 msgid "PEP 613: TypeAlias" msgstr "" -#: ../../whatsnew/3.10.rst:780 +#: ../../whatsnew/3.10.rst:781 msgid "" ":pep:`484` introduced the concept of type aliases, only requiring them to be " "top-level unannotated assignments. This simplicity sometimes made it " @@ -1200,37 +1201,37 @@ msgid "" "involved. Compare::" msgstr "" -#: ../../whatsnew/3.10.rst:785 +#: ../../whatsnew/3.10.rst:786 msgid "" "StrCache = 'Cache[str]' # a type alias\n" "LOG_PREFIX = 'LOG[DEBUG]' # a module constant" msgstr "" -#: ../../whatsnew/3.10.rst:788 +#: ../../whatsnew/3.10.rst:789 msgid "" "Now the :mod:`typing` module has a special value :data:`~typing.TypeAlias` " "which lets you declare type aliases more explicitly::" msgstr "" -#: ../../whatsnew/3.10.rst:791 +#: ../../whatsnew/3.10.rst:792 msgid "" "StrCache: TypeAlias = 'Cache[str]' # a type alias\n" "LOG_PREFIX = 'LOG[DEBUG]' # a module constant" msgstr "" -#: ../../whatsnew/3.10.rst:794 +#: ../../whatsnew/3.10.rst:795 msgid "See :pep:`613` for more details." msgstr "より詳しくは、 :pep:`613` をご覧ください。" -#: ../../whatsnew/3.10.rst:796 +#: ../../whatsnew/3.10.rst:797 msgid "(Contributed by Mikhail Golubev in :issue:`41923`.)" msgstr "" -#: ../../whatsnew/3.10.rst:799 +#: ../../whatsnew/3.10.rst:800 msgid "PEP 647: User-Defined Type Guards" msgstr "" -#: ../../whatsnew/3.10.rst:801 +#: ../../whatsnew/3.10.rst:802 msgid "" ":data:`~typing.TypeGuard` has been added to the :mod:`typing` module to " "annotate type guard functions and improve information provided to static " @@ -1238,24 +1239,24 @@ msgid "" "`~typing.TypeGuard`\\ 's documentation, and :pep:`647`." msgstr "" -#: ../../whatsnew/3.10.rst:806 +#: ../../whatsnew/3.10.rst:807 msgid "" "(Contributed by Ken Jin and Guido van Rossum in :issue:`43766`. PEP written " "by Eric Traut.)" msgstr "" -#: ../../whatsnew/3.10.rst:810 +#: ../../whatsnew/3.10.rst:811 msgid "Other Language Changes" msgstr "その他の言語変更" -#: ../../whatsnew/3.10.rst:812 +#: ../../whatsnew/3.10.rst:813 msgid "" "The :class:`int` type has a new method :meth:`int.bit_count`, returning the " "number of ones in the binary expansion of a given integer, also known as the " "population count. (Contributed by Niklas Fiekas in :issue:`29882`.)" msgstr "" -#: ../../whatsnew/3.10.rst:816 +#: ../../whatsnew/3.10.rst:817 msgid "" "The views returned by :meth:`dict.keys`, :meth:`dict.values` and :meth:`dict." "items` now all have a ``mapping`` attribute that gives a :class:`types." @@ -1263,13 +1264,13 @@ msgid "" "Dennis Sweeney in :issue:`40890`.)" msgstr "" -#: ../../whatsnew/3.10.rst:821 +#: ../../whatsnew/3.10.rst:822 msgid "" ":pep:`618`: The :func:`zip` function now has an optional ``strict`` flag, " "used to require that all the iterables have an equal length." msgstr "" -#: ../../whatsnew/3.10.rst:824 +#: ../../whatsnew/3.10.rst:825 msgid "" "Builtin and extension functions that take integer arguments no longer " "accept :class:`~decimal.Decimal`\\ s, :class:`~fractions.Fraction`\\ s and " @@ -1278,20 +1279,20 @@ msgid "" "__index__` method). (Contributed by Serhiy Storchaka in :issue:`37999`.)" msgstr "" -#: ../../whatsnew/3.10.rst:831 +#: ../../whatsnew/3.10.rst:832 msgid "" "If :func:`object.__ipow__` returns :data:`NotImplemented`, the operator will " "correctly fall back to :func:`object.__pow__` and :func:`object.__rpow__` as " "expected. (Contributed by Alex Shkop in :issue:`38302`.)" msgstr "" -#: ../../whatsnew/3.10.rst:835 +#: ../../whatsnew/3.10.rst:836 msgid "" "Assignment expressions can now be used unparenthesized within set literals " "and set comprehensions, as well as in sequence indexes (but not slices)." msgstr "" -#: ../../whatsnew/3.10.rst:838 +#: ../../whatsnew/3.10.rst:839 msgid "" "Functions have a new ``__builtins__`` attribute which is used to look for " "builtin symbols when a function is executed, instead of looking into " @@ -1300,7 +1301,7 @@ msgid "" "builtins. (Contributed by Mark Shannon in :issue:`42990`.)" msgstr "" -#: ../../whatsnew/3.10.rst:844 +#: ../../whatsnew/3.10.rst:845 msgid "" "Two new builtin functions -- :func:`aiter` and :func:`anext` have been added " "to provide asynchronous counterparts to :func:`iter` and :func:`next`, " @@ -1308,7 +1309,7 @@ msgid "" "in :issue:`31861`.)" msgstr "" -#: ../../whatsnew/3.10.rst:849 +#: ../../whatsnew/3.10.rst:850 msgid "" "Static methods (:func:`@staticmethod `) and class methods (:" "func:`@classmethod `) now inherit the method attributes " @@ -1318,7 +1319,7 @@ msgid "" "Stinner in :issue:`43682`.)" msgstr "" -#: ../../whatsnew/3.10.rst:856 +#: ../../whatsnew/3.10.rst:857 msgid "" "Annotations for complex targets (everything beside ``simple name`` targets " "defined by :pep:`526`) no longer cause any runtime effects with ``from " @@ -1326,7 +1327,7 @@ msgid "" "`42737`.)" msgstr "" -#: ../../whatsnew/3.10.rst:860 +#: ../../whatsnew/3.10.rst:861 msgid "" "Class and module objects now lazy-create empty annotations dicts on demand. " "The annotations dicts are stored in the object’s ``__dict__`` for backwards " @@ -1335,7 +1336,7 @@ msgid "" "howto`. (Contributed by Larry Hastings in :issue:`43901`.)" msgstr "" -#: ../../whatsnew/3.10.rst:867 +#: ../../whatsnew/3.10.rst:868 msgid "" "Annotations consist of ``yield``, ``yield from``, ``await`` or named " "expressions are now forbidden under ``from __future__ import annotations`` " @@ -1343,7 +1344,7 @@ msgid "" "`42725`.)" msgstr "" -#: ../../whatsnew/3.10.rst:872 +#: ../../whatsnew/3.10.rst:873 msgid "" "Usage of unbound variables, ``super()`` and other expressions that might " "alter the processing of symbol table as annotations are now rendered " @@ -1351,7 +1352,7 @@ msgid "" "Batuhan Taskaya in :issue:`42725`.)" msgstr "" -#: ../../whatsnew/3.10.rst:877 +#: ../../whatsnew/3.10.rst:878 msgid "" "Hashes of NaN values of both :class:`float` type and :class:`decimal." "Decimal` type now depend on object identity. Formerly, they always hashed to " @@ -1361,121 +1362,121 @@ msgid "" "Raymond Hettinger in :issue:`43475`.)" msgstr "" -#: ../../whatsnew/3.10.rst:884 +#: ../../whatsnew/3.10.rst:885 msgid "" "A :exc:`SyntaxError` (instead of a :exc:`NameError`) will be raised when " "deleting the :const:`__debug__` constant. (Contributed by Donghee Na in :" "issue:`45000`.)" msgstr "" -#: ../../whatsnew/3.10.rst:887 +#: ../../whatsnew/3.10.rst:888 msgid "" ":exc:`SyntaxError` exceptions now have ``end_lineno`` and ``end_offset`` " "attributes. They will be ``None`` if not determined. (Contributed by Pablo " "Galindo in :issue:`43914`.)" msgstr "" -#: ../../whatsnew/3.10.rst:892 +#: ../../whatsnew/3.10.rst:893 msgid "New Modules" msgstr "新たなモジュール" -#: ../../whatsnew/3.10.rst:894 +#: ../../whatsnew/3.10.rst:895 msgid "None." msgstr "" -#: ../../whatsnew/3.10.rst:898 +#: ../../whatsnew/3.10.rst:899 msgid "Improved Modules" msgstr "改良されたモジュール" -#: ../../whatsnew/3.10.rst:901 +#: ../../whatsnew/3.10.rst:902 msgid "asyncio" msgstr "asyncio" -#: ../../whatsnew/3.10.rst:903 +#: ../../whatsnew/3.10.rst:904 msgid "" "Add missing :meth:`~asyncio.events.AbstractEventLoop." "connect_accepted_socket` method. (Contributed by Alex Grönholm in :issue:" "`41332`.)" msgstr "" -#: ../../whatsnew/3.10.rst:908 +#: ../../whatsnew/3.10.rst:909 msgid "argparse" msgstr "argparse" -#: ../../whatsnew/3.10.rst:910 +#: ../../whatsnew/3.10.rst:911 msgid "" "Misleading phrase \"optional arguments\" was replaced with \"options\" in " "argparse help. Some tests might require adaptation if they rely on exact " "output match. (Contributed by Raymond Hettinger in :issue:`9694`.)" msgstr "" -#: ../../whatsnew/3.10.rst:914 +#: ../../whatsnew/3.10.rst:915 msgid "array" msgstr "array" -#: ../../whatsnew/3.10.rst:916 +#: ../../whatsnew/3.10.rst:917 msgid "" "The :meth:`~array.array.index` method of :class:`array.array` now has " "optional *start* and *stop* parameters. (Contributed by Anders Lorentsen and " "Zackery Spytz in :issue:`31956`.)" msgstr "" -#: ../../whatsnew/3.10.rst:921 +#: ../../whatsnew/3.10.rst:922 msgid "asynchat, asyncore, smtpd" msgstr "" -#: ../../whatsnew/3.10.rst:922 +#: ../../whatsnew/3.10.rst:923 msgid "" "These modules have been marked as deprecated in their module documentation " "since Python 3.6. An import-time :class:`DeprecationWarning` has now been " "added to all three of these modules." msgstr "" -#: ../../whatsnew/3.10.rst:927 +#: ../../whatsnew/3.10.rst:928 msgid "base64" msgstr "base64" -#: ../../whatsnew/3.10.rst:929 +#: ../../whatsnew/3.10.rst:930 msgid "" "Add :func:`base64.b32hexencode` and :func:`base64.b32hexdecode` to support " "the Base32 Encoding with Extended Hex Alphabet." msgstr "" -#: ../../whatsnew/3.10.rst:933 +#: ../../whatsnew/3.10.rst:934 msgid "bdb" msgstr "" -#: ../../whatsnew/3.10.rst:935 +#: ../../whatsnew/3.10.rst:936 msgid "" "Add :meth:`~bdb.Breakpoint.clearBreakpoints` to reset all set breakpoints. " "(Contributed by Irit Katriel in :issue:`24160`.)" msgstr "" -#: ../../whatsnew/3.10.rst:939 +#: ../../whatsnew/3.10.rst:940 msgid "bisect" msgstr "" -#: ../../whatsnew/3.10.rst:941 +#: ../../whatsnew/3.10.rst:942 msgid "" "Added the possibility of providing a *key* function to the APIs in the :mod:" "`bisect` module. (Contributed by Raymond Hettinger in :issue:`4356`.)" msgstr "" -#: ../../whatsnew/3.10.rst:945 +#: ../../whatsnew/3.10.rst:946 msgid "codecs" msgstr "codecs" -#: ../../whatsnew/3.10.rst:947 +#: ../../whatsnew/3.10.rst:948 msgid "" "Add a :func:`codecs.unregister` function to unregister a codec search " "function. (Contributed by Hai Shi in :issue:`41842`.)" msgstr "" -#: ../../whatsnew/3.10.rst:951 +#: ../../whatsnew/3.10.rst:952 msgid "collections.abc" msgstr "collections.abc" -#: ../../whatsnew/3.10.rst:953 +#: ../../whatsnew/3.10.rst:954 msgid "" "The ``__args__`` of the :ref:`parameterized generic ` " "for :class:`collections.abc.Callable` are now consistent with :data:`typing." @@ -1491,34 +1492,34 @@ msgid "" "`42195`.)" msgstr "" -#: ../../whatsnew/3.10.rst:966 +#: ../../whatsnew/3.10.rst:967 msgid "contextlib" msgstr "contextlib" -#: ../../whatsnew/3.10.rst:968 +#: ../../whatsnew/3.10.rst:969 msgid "" "Add a :func:`contextlib.aclosing` context manager to safely close async " "generators and objects representing asynchronously released resources. " "(Contributed by Joongi Kim and John Belmonte in :issue:`41229`.)" msgstr "" -#: ../../whatsnew/3.10.rst:972 +#: ../../whatsnew/3.10.rst:973 msgid "" "Add asynchronous context manager support to :func:`contextlib.nullcontext`. " "(Contributed by Tom Gringauz in :issue:`41543`.)" msgstr "" -#: ../../whatsnew/3.10.rst:975 +#: ../../whatsnew/3.10.rst:976 msgid "" "Add :class:`~contextlib.AsyncContextDecorator`, for supporting usage of " "async context managers as decorators." msgstr "" -#: ../../whatsnew/3.10.rst:979 +#: ../../whatsnew/3.10.rst:980 msgid "curses" msgstr "curses" -#: ../../whatsnew/3.10.rst:981 +#: ../../whatsnew/3.10.rst:982 msgid "" "The extended color functions added in ncurses 6.1 will be used transparently " "by :func:`curses.color_content`, :func:`curses.init_color`, :func:`curses." @@ -1528,43 +1529,43 @@ msgid "" "Kintscher and Hans Petter Jansson in :issue:`36982`.)" msgstr "" -#: ../../whatsnew/3.10.rst:988 +#: ../../whatsnew/3.10.rst:989 msgid "" "The ``BUTTON5_*`` constants are now exposed in the :mod:`curses` module if " "they are provided by the underlying curses library. (Contributed by Zackery " "Spytz in :issue:`39273`.)" msgstr "" -#: ../../whatsnew/3.10.rst:993 +#: ../../whatsnew/3.10.rst:994 msgid "dataclasses" msgstr "データクラス" -#: ../../whatsnew/3.10.rst:996 +#: ../../whatsnew/3.10.rst:997 msgid "__slots__" msgstr "__slots__" -#: ../../whatsnew/3.10.rst:998 +#: ../../whatsnew/3.10.rst:999 msgid "" "Added ``slots`` parameter in :func:`dataclasses.dataclass` decorator. " "(Contributed by Yurii Karabas in :issue:`42269`)" msgstr "" -#: ../../whatsnew/3.10.rst:1002 +#: ../../whatsnew/3.10.rst:1003 msgid "Keyword-only fields" msgstr "" -#: ../../whatsnew/3.10.rst:1004 +#: ../../whatsnew/3.10.rst:1005 msgid "" "dataclasses now supports fields that are keyword-only in the generated " "__init__ method. There are a number of ways of specifying keyword-only " "fields." msgstr "" -#: ../../whatsnew/3.10.rst:1008 +#: ../../whatsnew/3.10.rst:1009 msgid "You can say that every field is keyword-only:" msgstr "" -#: ../../whatsnew/3.10.rst:1010 +#: ../../whatsnew/3.10.rst:1011 msgid "" "from dataclasses import dataclass\n" "\n" @@ -1574,17 +1575,17 @@ msgid "" " birthday: datetime.date" msgstr "" -#: ../../whatsnew/3.10.rst:1019 +#: ../../whatsnew/3.10.rst:1020 msgid "" "Both ``name`` and ``birthday`` are keyword-only parameters to the generated " "__init__ method." msgstr "" -#: ../../whatsnew/3.10.rst:1022 +#: ../../whatsnew/3.10.rst:1023 msgid "You can specify keyword-only on a per-field basis:" msgstr "" -#: ../../whatsnew/3.10.rst:1024 +#: ../../whatsnew/3.10.rst:1025 msgid "" "from dataclasses import dataclass, field\n" "\n" @@ -1594,7 +1595,7 @@ msgid "" " birthday: datetime.date = field(kw_only=True)" msgstr "" -#: ../../whatsnew/3.10.rst:1033 +#: ../../whatsnew/3.10.rst:1034 msgid "" "Here only ``birthday`` is keyword-only. If you set ``kw_only`` on " "individual fields, be aware that there are rules about re-ordering fields " @@ -1602,13 +1603,13 @@ msgid "" "the full dataclasses documentation for details." msgstr "" -#: ../../whatsnew/3.10.rst:1038 +#: ../../whatsnew/3.10.rst:1039 msgid "" "You can also specify that all fields following a KW_ONLY marker are keyword-" "only. This will probably be the most common usage:" msgstr "" -#: ../../whatsnew/3.10.rst:1041 +#: ../../whatsnew/3.10.rst:1042 msgid "" "from dataclasses import dataclass, KW_ONLY\n" "\n" @@ -1621,17 +1622,17 @@ msgid "" " t: float = 0.0" msgstr "" -#: ../../whatsnew/3.10.rst:1053 +#: ../../whatsnew/3.10.rst:1054 msgid "" "Here, ``z`` and ``t`` are keyword-only parameters, while ``x`` and ``y`` are " "not. (Contributed by Eric V. Smith in :issue:`43532`.)" msgstr "" -#: ../../whatsnew/3.10.rst:1060 +#: ../../whatsnew/3.10.rst:1061 msgid "distutils" msgstr "distutils" -#: ../../whatsnew/3.10.rst:1062 +#: ../../whatsnew/3.10.rst:1063 msgid "" "The entire ``distutils`` package is deprecated, to be removed in Python " "3.12. Its functionality for specifying package builds has already been " @@ -1644,39 +1645,39 @@ msgid "" "`632` for discussion." msgstr "" -#: ../../whatsnew/3.10.rst:1072 +#: ../../whatsnew/3.10.rst:1073 msgid "" "The ``bdist_wininst`` command deprecated in Python 3.8 has been removed. The " "``bdist_wheel`` command is now recommended to distribute binary packages on " "Windows. (Contributed by Victor Stinner in :issue:`42802`.)" msgstr "" -#: ../../whatsnew/3.10.rst:1078 +#: ../../whatsnew/3.10.rst:1079 msgid "doctest" msgstr "doctest" -#: ../../whatsnew/3.10.rst:1080 ../../whatsnew/3.10.rst:1215 -#: ../../whatsnew/3.10.rst:1242 ../../whatsnew/3.10.rst:1341 +#: ../../whatsnew/3.10.rst:1081 ../../whatsnew/3.10.rst:1216 +#: ../../whatsnew/3.10.rst:1243 ../../whatsnew/3.10.rst:1342 msgid "" "When a module does not define ``__loader__``, fall back to ``__spec__." "loader``. (Contributed by Brett Cannon in :issue:`42133`.)" msgstr "" -#: ../../whatsnew/3.10.rst:1084 +#: ../../whatsnew/3.10.rst:1085 msgid "encodings" msgstr "エンコーディング" -#: ../../whatsnew/3.10.rst:1086 +#: ../../whatsnew/3.10.rst:1087 msgid "" ":func:`encodings.normalize_encoding` now ignores non-ASCII characters. " "(Contributed by Hai Shi in :issue:`39337`.)" msgstr "" -#: ../../whatsnew/3.10.rst:1090 +#: ../../whatsnew/3.10.rst:1091 msgid "enum" msgstr "enum" -#: ../../whatsnew/3.10.rst:1092 +#: ../../whatsnew/3.10.rst:1093 msgid "" ":class:`~enum.Enum` :func:`~object.__repr__` now returns ``enum_name." "member_name`` and :func:`~object.__str__` now returns ``member_name``. " @@ -1684,106 +1685,106 @@ msgid "" "``module_name.member_name``. (Contributed by Ethan Furman in :issue:`40066`.)" msgstr "" -#: ../../whatsnew/3.10.rst:1097 +#: ../../whatsnew/3.10.rst:1098 msgid "" "Add :class:`enum.StrEnum` for enums where all members are strings. " "(Contributed by Ethan Furman in :issue:`41816`.)" msgstr "" -#: ../../whatsnew/3.10.rst:1101 +#: ../../whatsnew/3.10.rst:1102 msgid "fileinput" msgstr "fileinput" -#: ../../whatsnew/3.10.rst:1103 +#: ../../whatsnew/3.10.rst:1104 msgid "" "Add *encoding* and *errors* parameters in :func:`fileinput.input` and :class:" "`fileinput.FileInput`. (Contributed by Inada Naoki in :issue:`43712`.)" msgstr "" -#: ../../whatsnew/3.10.rst:1107 +#: ../../whatsnew/3.10.rst:1108 msgid "" ":func:`fileinput.hook_compressed` now returns :class:`~io.TextIOWrapper` " "object when *mode* is \"r\" and file is compressed, like uncompressed files. " "(Contributed by Inada Naoki in :issue:`5758`.)" msgstr "" -#: ../../whatsnew/3.10.rst:1112 +#: ../../whatsnew/3.10.rst:1113 msgid "faulthandler" msgstr "faulthandler" -#: ../../whatsnew/3.10.rst:1114 +#: ../../whatsnew/3.10.rst:1115 msgid "" "The :mod:`faulthandler` module now detects if a fatal error occurs during a " "garbage collector collection. (Contributed by Victor Stinner in :issue:" "`44466`.)" msgstr "" -#: ../../whatsnew/3.10.rst:1119 +#: ../../whatsnew/3.10.rst:1120 msgid "gc" msgstr "gc" -#: ../../whatsnew/3.10.rst:1121 +#: ../../whatsnew/3.10.rst:1122 msgid "" "Add audit hooks for :func:`gc.get_objects`, :func:`gc.get_referrers` and :" "func:`gc.get_referents`. (Contributed by Pablo Galindo in :issue:`43439`.)" msgstr "" -#: ../../whatsnew/3.10.rst:1125 +#: ../../whatsnew/3.10.rst:1126 msgid "glob" msgstr "glob" -#: ../../whatsnew/3.10.rst:1127 +#: ../../whatsnew/3.10.rst:1128 msgid "" "Add the *root_dir* and *dir_fd* parameters in :func:`~glob.glob` and :func:" "`~glob.iglob` which allow to specify the root directory for searching. " "(Contributed by Serhiy Storchaka in :issue:`38144`.)" msgstr "" -#: ../../whatsnew/3.10.rst:1132 +#: ../../whatsnew/3.10.rst:1133 msgid "hashlib" msgstr "hashlib" -#: ../../whatsnew/3.10.rst:1134 +#: ../../whatsnew/3.10.rst:1135 msgid "" "The hashlib module requires OpenSSL 1.1.1 or newer. (Contributed by " "Christian Heimes in :pep:`644` and :issue:`43669`.)" msgstr "" -#: ../../whatsnew/3.10.rst:1137 +#: ../../whatsnew/3.10.rst:1138 msgid "" "The hashlib module has preliminary support for OpenSSL 3.0.0. (Contributed " "by Christian Heimes in :issue:`38820` and other issues.)" msgstr "" -#: ../../whatsnew/3.10.rst:1140 +#: ../../whatsnew/3.10.rst:1141 msgid "" "The pure-Python fallback of :func:`~hashlib.pbkdf2_hmac` is deprecated. In " "the future PBKDF2-HMAC will only be available when Python has been built " "with OpenSSL support. (Contributed by Christian Heimes in :issue:`43880`.)" msgstr "" -#: ../../whatsnew/3.10.rst:1146 +#: ../../whatsnew/3.10.rst:1147 msgid "hmac" msgstr "hmac" -#: ../../whatsnew/3.10.rst:1148 +#: ../../whatsnew/3.10.rst:1149 msgid "" "The hmac module now uses OpenSSL's HMAC implementation internally. " "(Contributed by Christian Heimes in :issue:`40645`.)" msgstr "" -#: ../../whatsnew/3.10.rst:1152 +#: ../../whatsnew/3.10.rst:1153 msgid "IDLE and idlelib" msgstr "IDLE と idelelib" -#: ../../whatsnew/3.10.rst:1154 +#: ../../whatsnew/3.10.rst:1155 msgid "" "Make IDLE invoke :func:`sys.excepthook` (when started without '-n'). User " "hooks were previously ignored. (Contributed by Ken Hilton in :issue:" "`43008`.)" msgstr "" -#: ../../whatsnew/3.10.rst:1158 +#: ../../whatsnew/3.10.rst:1159 msgid "" "Rearrange the settings dialog. Split the General tab into Windows and Shell/" "Ed tabs. Move help sources, which extend the Help menu, to the Extensions " @@ -1794,11 +1795,11 @@ msgid "" "`33962`.)" msgstr "" -#: ../../whatsnew/3.10.rst:1166 +#: ../../whatsnew/3.10.rst:1167 msgid "The changes above were backported to a 3.9 maintenance release." msgstr "" -#: ../../whatsnew/3.10.rst:1168 +#: ../../whatsnew/3.10.rst:1169 msgid "" "Add a Shell sidebar. Move the primary prompt ('>>>') to the sidebar. Add " "secondary prompts ('...') to the sidebar. Left click and optional drag " @@ -1809,7 +1810,7 @@ msgid "" "text. (Contributed by Tal Einat in :issue:`37903`.)" msgstr "" -#: ../../whatsnew/3.10.rst:1177 +#: ../../whatsnew/3.10.rst:1178 msgid "" "Use spaces instead of tabs to indent interactive code. This makes " "interactive code entries 'look right'. Making this feasible was a major " @@ -1817,7 +1818,7 @@ msgid "" "in :issue:`37892`.)" msgstr "" -#: ../../whatsnew/3.10.rst:1182 +#: ../../whatsnew/3.10.rst:1183 msgid "" "Highlight the new :ref:`soft keywords ` :keyword:`match`, :" "keyword:`case `, and :keyword:`_ ` in pattern-" @@ -1826,33 +1827,33 @@ msgid "" "(Contributed by Tal Einat in :issue:`44010`.)" msgstr "" -#: ../../whatsnew/3.10.rst:1188 +#: ../../whatsnew/3.10.rst:1189 msgid "New in 3.10 maintenance releases." msgstr "" -#: ../../whatsnew/3.10.rst:1190 +#: ../../whatsnew/3.10.rst:1191 msgid "" "Apply syntax highlighting to ``.pyi`` files. (Contributed by Alex Waygood " "and Terry Jan Reedy in :issue:`45447`.)" msgstr "" -#: ../../whatsnew/3.10.rst:1193 +#: ../../whatsnew/3.10.rst:1194 msgid "" "Include prompts when saving Shell with inputs and outputs. (Contributed by " "Terry Jan Reedy in :gh:`95191`.)" msgstr "" -#: ../../whatsnew/3.10.rst:1197 +#: ../../whatsnew/3.10.rst:1198 msgid "importlib.metadata" msgstr "" -#: ../../whatsnew/3.10.rst:1199 +#: ../../whatsnew/3.10.rst:1200 msgid "" "Feature parity with ``importlib_metadata`` 4.6 (`history `_)." msgstr "" -#: ../../whatsnew/3.10.rst:1202 +#: ../../whatsnew/3.10.rst:1203 msgid "" ":ref:`importlib.metadata entry points ` now provide a nicer " "experience for selecting entry points by group and name through a new :ref:" @@ -1860,18 +1861,18 @@ msgid "" "Note in the docs for more info on the deprecation and usage." msgstr "" -#: ../../whatsnew/3.10.rst:1208 +#: ../../whatsnew/3.10.rst:1209 msgid "" "Added :ref:`importlib.metadata.packages_distributions() ` for resolving top-level Python modules and packages to " "their :ref:`importlib.metadata.Distribution `." msgstr "" -#: ../../whatsnew/3.10.rst:1213 +#: ../../whatsnew/3.10.rst:1214 msgid "inspect" msgstr "inspect" -#: ../../whatsnew/3.10.rst:1218 +#: ../../whatsnew/3.10.rst:1219 msgid "" "Add :func:`inspect.get_annotations`, which safely computes the annotations " "defined on an object. It works around the quirks of accessing the " @@ -1889,38 +1890,38 @@ msgid "" "`43817`.)" msgstr "" -#: ../../whatsnew/3.10.rst:1234 +#: ../../whatsnew/3.10.rst:1235 msgid "itertools" msgstr "itertools" -#: ../../whatsnew/3.10.rst:1236 +#: ../../whatsnew/3.10.rst:1237 msgid "" "Add :func:`itertools.pairwise`. (Contributed by Raymond Hettinger in :issue:" "`38200`.)" msgstr "" -#: ../../whatsnew/3.10.rst:1240 +#: ../../whatsnew/3.10.rst:1241 msgid "linecache" msgstr "linecache" -#: ../../whatsnew/3.10.rst:1246 +#: ../../whatsnew/3.10.rst:1247 msgid "os" msgstr "os" -#: ../../whatsnew/3.10.rst:1248 +#: ../../whatsnew/3.10.rst:1249 msgid "" "Add :func:`os.cpu_count` support for VxWorks RTOS. (Contributed by Peixing " "Xin in :issue:`41440`.)" msgstr "" -#: ../../whatsnew/3.10.rst:1251 +#: ../../whatsnew/3.10.rst:1252 msgid "" "Add a new function :func:`os.eventfd` and related helpers to wrap the " "``eventfd2`` syscall on Linux. (Contributed by Christian Heimes in :issue:" "`41001`.)" msgstr "" -#: ../../whatsnew/3.10.rst:1255 +#: ../../whatsnew/3.10.rst:1256 msgid "" "Add :func:`os.splice` that allows to move data between two file descriptors " "without copying between kernel address space and user address space, where " @@ -1928,41 +1929,41 @@ msgid "" "Galindo in :issue:`41625`.)" msgstr "" -#: ../../whatsnew/3.10.rst:1260 +#: ../../whatsnew/3.10.rst:1261 msgid "" "Add :const:`~os.O_EVTONLY`, :const:`~os.O_FSYNC`, :const:`~os.O_SYMLINK` " "and :const:`~os.O_NOFOLLOW_ANY` for macOS. (Contributed by Donghee Na in :" "issue:`43106`.)" msgstr "" -#: ../../whatsnew/3.10.rst:1265 +#: ../../whatsnew/3.10.rst:1266 msgid "os.path" msgstr "os.path" -#: ../../whatsnew/3.10.rst:1267 +#: ../../whatsnew/3.10.rst:1268 msgid "" ":func:`os.path.realpath` now accepts a *strict* keyword-only argument. When " "set to ``True``, :exc:`OSError` is raised if a path doesn't exist or a " "symlink loop is encountered. (Contributed by Barney Gale in :issue:`43757`.)" msgstr "" -#: ../../whatsnew/3.10.rst:1273 +#: ../../whatsnew/3.10.rst:1274 msgid "pathlib" msgstr "pathlib" -#: ../../whatsnew/3.10.rst:1275 +#: ../../whatsnew/3.10.rst:1276 msgid "" "Add slice support to :attr:`PurePath.parents `. " "(Contributed by Joshua Cannon in :issue:`35498`.)" msgstr "" -#: ../../whatsnew/3.10.rst:1278 +#: ../../whatsnew/3.10.rst:1279 msgid "" "Add negative indexing support to :attr:`PurePath.parents `. (Contributed by Yaroslav Pankovych in :issue:`21041`.)" msgstr "" -#: ../../whatsnew/3.10.rst:1282 +#: ../../whatsnew/3.10.rst:1283 msgid "" "Add :meth:`Path.hardlink_to ` method that " "supersedes :meth:`!link_to`. The new method has the same argument order as :" @@ -1970,7 +1971,7 @@ msgid "" "`39950`.)" msgstr "" -#: ../../whatsnew/3.10.rst:1287 +#: ../../whatsnew/3.10.rst:1288 msgid "" ":meth:`pathlib.Path.stat` and :meth:`~pathlib.Path.chmod` now accept a " "*follow_symlinks* keyword-only argument for consistency with corresponding " @@ -1978,11 +1979,11 @@ msgid "" "`39906`.)" msgstr "" -#: ../../whatsnew/3.10.rst:1293 +#: ../../whatsnew/3.10.rst:1294 msgid "platform" msgstr "プラットフォーム" -#: ../../whatsnew/3.10.rst:1295 +#: ../../whatsnew/3.10.rst:1296 msgid "" "Add :func:`platform.freedesktop_os_release` to retrieve operation system " "identification from `freedesktop.org os-release >> from typing import Literal\n" ">>> Literal[{0}]\n" @@ -2270,18 +2271,18 @@ msgid "" "TypeError: unhashable type: 'set'" msgstr "" -#: ../../whatsnew/3.10.rst:1479 +#: ../../whatsnew/3.10.rst:1480 msgid "(Contributed by Yurii Karabas in :issue:`42345`.)" msgstr "(:issue:`42345` でのYurii Karabasの貢献による)" -#: ../../whatsnew/3.10.rst:1481 +#: ../../whatsnew/3.10.rst:1482 msgid "" "Add new function :func:`typing.is_typeddict` to introspect if an annotation " "is a :class:`typing.TypedDict`. (Contributed by Patrick Reader in :issue:" "`41792`.)" msgstr "" -#: ../../whatsnew/3.10.rst:1485 +#: ../../whatsnew/3.10.rst:1486 msgid "" "Subclasses of ``typing.Protocol`` which only have data variables declared " "will now raise a ``TypeError`` when checked with ``isinstance`` unless they " @@ -2291,7 +2292,7 @@ msgid "" "(Contributed by Yurii Karabas in :issue:`38908`.)" msgstr "" -#: ../../whatsnew/3.10.rst:1493 +#: ../../whatsnew/3.10.rst:1494 msgid "" "Importing from the ``typing.io`` and ``typing.re`` submodules will now emit :" "exc:`DeprecationWarning`. These submodules have been deprecated since " @@ -2300,22 +2301,22 @@ msgid "" "instead. (Contributed by Sebastian Rittau in :issue:`38291`.)" msgstr "" -#: ../../whatsnew/3.10.rst:1501 +#: ../../whatsnew/3.10.rst:1502 msgid "unittest" msgstr "unittest" -#: ../../whatsnew/3.10.rst:1503 +#: ../../whatsnew/3.10.rst:1504 msgid "" "Add new method :meth:`~unittest.TestCase.assertNoLogs` to complement the " "existing :meth:`~unittest.TestCase.assertLogs`. (Contributed by Kit Yan Choi " "in :issue:`39385`.)" msgstr "" -#: ../../whatsnew/3.10.rst:1508 +#: ../../whatsnew/3.10.rst:1509 msgid "urllib.parse" msgstr "urllib.parse" -#: ../../whatsnew/3.10.rst:1510 +#: ../../whatsnew/3.10.rst:1511 msgid "" "Python versions earlier than Python 3.10 allowed using both ``;`` and ``&`` " "as query parameter separators in :func:`urllib.parse.parse_qs` and :func:" @@ -2328,7 +2329,7 @@ msgid "" "in :issue:`42967`.)" msgstr "" -#: ../../whatsnew/3.10.rst:1520 +#: ../../whatsnew/3.10.rst:1521 msgid "" "The presence of newline or tab characters in parts of a URL allows for some " "forms of attacks. Following the WHATWG specification that updates :rfc:" @@ -2338,22 +2339,22 @@ msgid "" "variable ``urllib.parse._UNSAFE_URL_BYTES_TO_REMOVE``. (See :gh:`88048`)" msgstr "" -#: ../../whatsnew/3.10.rst:1528 +#: ../../whatsnew/3.10.rst:1529 msgid "xml" msgstr "xml" -#: ../../whatsnew/3.10.rst:1530 +#: ../../whatsnew/3.10.rst:1531 msgid "" "Add a :class:`~xml.sax.handler.LexicalHandler` class to the :mod:`xml.sax." "handler` module. (Contributed by Jonathan Gossage and Zackery Spytz in :" "issue:`35018`.)" msgstr "" -#: ../../whatsnew/3.10.rst:1535 +#: ../../whatsnew/3.10.rst:1536 msgid "zipimport" msgstr "" -#: ../../whatsnew/3.10.rst:1536 +#: ../../whatsnew/3.10.rst:1537 msgid "" "Add methods related to :pep:`451`: :meth:`~zipimport.zipimporter." "find_spec`, :meth:`zipimport.zipimporter.create_module`, and :meth:" @@ -2361,24 +2362,24 @@ msgid "" "`42131`.)" msgstr "" -#: ../../whatsnew/3.10.rst:1541 +#: ../../whatsnew/3.10.rst:1542 msgid "" "Add :meth:`~zipimport.zipimporter.invalidate_caches` method. (Contributed by " "Desmond Cheong in :issue:`14678`.)" msgstr "" -#: ../../whatsnew/3.10.rst:1546 +#: ../../whatsnew/3.10.rst:1547 msgid "Optimizations" msgstr "最適化" -#: ../../whatsnew/3.10.rst:1548 +#: ../../whatsnew/3.10.rst:1549 msgid "" "Constructors :func:`str`, :func:`bytes` and :func:`bytearray` are now faster " "(around 30--40% for small objects). (Contributed by Serhiy Storchaka in :" "issue:`41334`.)" msgstr "" -#: ../../whatsnew/3.10.rst:1552 +#: ../../whatsnew/3.10.rst:1553 msgid "" "The :mod:`runpy` module now imports fewer modules. The ``python3 -m module-" "name`` command startup time is 1.4x faster in average. On Linux, ``python3 -" @@ -2387,7 +2388,7 @@ msgid "" "`41006` and :issue:`41718`.)" msgstr "" -#: ../../whatsnew/3.10.rst:1558 +#: ../../whatsnew/3.10.rst:1559 msgid "" "The ``LOAD_ATTR`` instruction now uses new \"per opcode cache\" mechanism. " "It is about 36% faster now for regular attributes and 44% faster for slots. " @@ -2396,7 +2397,7 @@ msgid "" "and MicroPython.)" msgstr "" -#: ../../whatsnew/3.10.rst:1564 +#: ../../whatsnew/3.10.rst:1565 msgid "" "When building Python with :option:`--enable-optimizations` now ``-fno-" "semantic-interposition`` is added to both the compile and link line. This " @@ -2407,7 +2408,7 @@ msgid "" "and Pablo Galindo in :issue:`38980`.)" msgstr "" -#: ../../whatsnew/3.10.rst:1572 +#: ../../whatsnew/3.10.rst:1573 msgid "" "Use a new output buffer management code for :mod:`bz2` / :mod:`lzma` / :mod:" "`zlib` modules, and add ``.readall()`` function to ``_compression." @@ -2417,7 +2418,7 @@ msgid "" "`41486`)" msgstr "" -#: ../../whatsnew/3.10.rst:1578 +#: ../../whatsnew/3.10.rst:1579 msgid "" "When using stringized annotations, annotations dicts for functions are no " "longer created when the function is created. Instead, they are stored as a " @@ -2427,7 +2428,7 @@ msgid "" "Inada Naoki in :issue:`42202`.)" msgstr "" -#: ../../whatsnew/3.10.rst:1585 +#: ../../whatsnew/3.10.rst:1586 msgid "" "Substring search functions such as ``str1 in str2`` and ``str2.find(str1)`` " "now sometimes use Crochemore & Perrin's \"Two-Way\" string searching " @@ -2435,7 +2436,7 @@ msgid "" "Dennis Sweeney in :issue:`41972`)" msgstr "" -#: ../../whatsnew/3.10.rst:1590 +#: ../../whatsnew/3.10.rst:1591 msgid "" "Add micro-optimizations to ``_PyType_Lookup()`` to improve type attribute " "cache lookup performance in the common case of cache hits. This makes the " @@ -2443,7 +2444,7 @@ msgid "" "issue:`43452`.)" msgstr "" -#: ../../whatsnew/3.10.rst:1594 +#: ../../whatsnew/3.10.rst:1595 msgid "" "The following built-in functions now support the faster :pep:`590` " "vectorcall calling convention: :func:`map`, :func:`filter`, :func:" @@ -2452,7 +2453,7 @@ msgid "" "`41873` and :issue:`41870`.)" msgstr "" -#: ../../whatsnew/3.10.rst:1598 +#: ../../whatsnew/3.10.rst:1599 msgid "" ":class:`~bz2.BZ2File` performance is improved by removing internal " "``RLock``. This makes :class:`!BZ2File` thread unsafe in the face of " @@ -2461,11 +2462,11 @@ msgid "" "Naoki in :issue:`43785`.)" msgstr "" -#: ../../whatsnew/3.10.rst:1606 ../../whatsnew/3.10.rst:2212 +#: ../../whatsnew/3.10.rst:1607 ../../whatsnew/3.10.rst:2213 msgid "Deprecated" msgstr "非推奨" -#: ../../whatsnew/3.10.rst:1608 +#: ../../whatsnew/3.10.rst:1609 msgid "" "Currently Python accepts numeric literals immediately followed by keywords, " "for example ``0in x``, ``1or x``, ``0if 1else 2``. It allows confusing and " @@ -2478,7 +2479,7 @@ msgid "" "by Serhiy Storchaka in :issue:`43833`.)" msgstr "" -#: ../../whatsnew/3.10.rst:1619 +#: ../../whatsnew/3.10.rst:1620 msgid "" "Starting in this release, there will be a concerted effort to begin cleaning " "up old import semantics that were kept for Python 2.7 compatibility. " @@ -2495,21 +2496,21 @@ msgid "" "transition." msgstr "" -#: ../../whatsnew/3.10.rst:1636 +#: ../../whatsnew/3.10.rst:1637 msgid "" "The entire ``distutils`` namespace is deprecated, to be removed in Python " "3.12. Refer to the :ref:`module changes ` section for " "more information." msgstr "" -#: ../../whatsnew/3.10.rst:1640 +#: ../../whatsnew/3.10.rst:1641 msgid "" "Non-integer arguments to :func:`random.randrange` are deprecated. The :exc:" "`ValueError` is deprecated in favor of a :exc:`TypeError`. (Contributed by " "Serhiy Storchaka and Raymond Hettinger in :issue:`37319`.)" msgstr "" -#: ../../whatsnew/3.10.rst:1644 +#: ../../whatsnew/3.10.rst:1645 msgid "" "The various ``load_module()`` methods of :mod:`importlib` have been " "documented as deprecated since Python 3.6, but will now also trigger a :exc:" @@ -2517,21 +2518,21 @@ msgid "" "(Contributed by Brett Cannon in :issue:`26131`.)" msgstr "" -#: ../../whatsnew/3.10.rst:1650 +#: ../../whatsnew/3.10.rst:1651 msgid "" ":meth:`!zimport.zipimporter.load_module` has been deprecated in preference " "for :meth:`~zipimport.zipimporter.exec_module`. (Contributed by Brett Cannon " "in :issue:`26131`.)" msgstr "" -#: ../../whatsnew/3.10.rst:1654 +#: ../../whatsnew/3.10.rst:1655 msgid "" "The use of :meth:`~importlib.abc.Loader.load_module` by the import system " "now triggers an :exc:`ImportWarning` as :meth:`~importlib.abc.Loader." "exec_module` is preferred. (Contributed by Brett Cannon in :issue:`26131`.)" msgstr "" -#: ../../whatsnew/3.10.rst:1659 +#: ../../whatsnew/3.10.rst:1660 msgid "" "The use of :meth:`!importlib.abc.MetaPathFinder.find_module` and :meth:`!" "importlib.abc.PathEntryFinder.find_module` by the import system now trigger " @@ -2541,7 +2542,7 @@ msgid "" "porting. (Contributed by Brett Cannon in :issue:`42134`.)" msgstr "" -#: ../../whatsnew/3.10.rst:1668 +#: ../../whatsnew/3.10.rst:1669 msgid "" "The use of :meth:`!importlib.abc.PathEntryFinder.find_loader` by the import " "system now triggers an :exc:`ImportWarning` as :meth:`importlib.abc." @@ -2550,7 +2551,7 @@ msgid "" "`43672`.)" msgstr "" -#: ../../whatsnew/3.10.rst:1674 +#: ../../whatsnew/3.10.rst:1675 msgid "" "The various implementations of :meth:`!importlib.abc.MetaPathFinder." "find_module` ( :meth:`!importlib.machinery.BuiltinImporter.find_module`, :" @@ -2565,7 +2566,7 @@ msgid "" "Python 3.4). (Contributed by Brett Cannon in :issue:`42135`.)" msgstr "" -#: ../../whatsnew/3.10.rst:1689 +#: ../../whatsnew/3.10.rst:1690 msgid "" ":class:`!importlib.abc.Finder` is deprecated (including its sole method, :" "meth:`!find_module`). Both :class:`importlib.abc.MetaPathFinder` and :class:" @@ -2574,7 +2575,7 @@ msgid "" "(Contributed by Brett Cannon in :issue:`42135`.)" msgstr "" -#: ../../whatsnew/3.10.rst:1696 +#: ../../whatsnew/3.10.rst:1697 msgid "" "The deprecations of :mod:`!imp`, :func:`!importlib.find_loader`, :func:`!" "importlib.util.set_package_wrapper`, :func:`!importlib.util." @@ -2585,7 +2586,7 @@ msgid "" "Brett Cannon in :issue:`43720`.)" msgstr "" -#: ../../whatsnew/3.10.rst:1706 +#: ../../whatsnew/3.10.rst:1707 msgid "" "The import system now uses the ``__spec__`` attribute on modules before " "falling back on :meth:`!module_repr` for a module's ``__repr__()`` method. " @@ -2593,7 +2594,7 @@ msgid "" "(Contributed by Brett Cannon in :issue:`42137`.)" msgstr "" -#: ../../whatsnew/3.10.rst:1712 +#: ../../whatsnew/3.10.rst:1713 msgid "" ":meth:`!importlib.abc.Loader.module_repr`, :meth:`!importlib.machinery." "FrozenLoader.module_repr`, and :meth:`!importlib.machinery.BuiltinLoader." @@ -2601,7 +2602,7 @@ msgid "" "(Contributed by Brett Cannon in :issue:`42136`.)" msgstr "" -#: ../../whatsnew/3.10.rst:1718 +#: ../../whatsnew/3.10.rst:1719 msgid "" "``sqlite3.OptimizedUnicode`` has been undocumented and obsolete since Python " "3.3, when it was made an alias to :class:`str`. It is now deprecated, " @@ -2609,7 +2610,7 @@ msgid "" "issue:`42264`.)" msgstr "" -#: ../../whatsnew/3.10.rst:1723 +#: ../../whatsnew/3.10.rst:1724 msgid "" "The undocumented built-in function ``sqlite3.enable_shared_cache`` is now " "deprecated, scheduled for removal in Python 3.12. Its use is strongly " @@ -2619,67 +2620,67 @@ msgid "" "query parameter. (Contributed by Erlend E. Aasland in :issue:`24464`.)" msgstr "" -#: ../../whatsnew/3.10.rst:1731 +#: ../../whatsnew/3.10.rst:1732 msgid "The following ``threading`` methods are now deprecated:" msgstr "" -#: ../../whatsnew/3.10.rst:1733 +#: ../../whatsnew/3.10.rst:1734 msgid "``threading.currentThread`` => :func:`threading.current_thread`" msgstr "" -#: ../../whatsnew/3.10.rst:1735 +#: ../../whatsnew/3.10.rst:1736 msgid "``threading.activeCount`` => :func:`threading.active_count`" msgstr "" -#: ../../whatsnew/3.10.rst:1737 +#: ../../whatsnew/3.10.rst:1738 msgid "" "``threading.Condition.notifyAll`` => :meth:`threading.Condition.notify_all`" msgstr "" -#: ../../whatsnew/3.10.rst:1740 +#: ../../whatsnew/3.10.rst:1741 msgid "``threading.Event.isSet`` => :meth:`threading.Event.is_set`" msgstr "" -#: ../../whatsnew/3.10.rst:1742 +#: ../../whatsnew/3.10.rst:1743 msgid "``threading.Thread.setName`` => :attr:`threading.Thread.name`" msgstr "" -#: ../../whatsnew/3.10.rst:1744 +#: ../../whatsnew/3.10.rst:1745 msgid "``threading.thread.getName`` => :attr:`threading.Thread.name`" msgstr "" -#: ../../whatsnew/3.10.rst:1746 +#: ../../whatsnew/3.10.rst:1747 msgid "``threading.Thread.isDaemon`` => :attr:`threading.Thread.daemon`" msgstr "" -#: ../../whatsnew/3.10.rst:1748 +#: ../../whatsnew/3.10.rst:1749 msgid "``threading.Thread.setDaemon`` => :attr:`threading.Thread.daemon`" msgstr "" -#: ../../whatsnew/3.10.rst:1750 +#: ../../whatsnew/3.10.rst:1751 msgid "(Contributed by Jelle Zijlstra in :gh:`87889`.)" msgstr "" -#: ../../whatsnew/3.10.rst:1752 +#: ../../whatsnew/3.10.rst:1753 msgid "" ":meth:`!pathlib.Path.link_to` is deprecated and slated for removal in Python " "3.12. Use :meth:`pathlib.Path.hardlink_to` instead. (Contributed by Barney " "Gale in :issue:`39950`.)" msgstr "" -#: ../../whatsnew/3.10.rst:1756 +#: ../../whatsnew/3.10.rst:1757 msgid "" "``cgi.log()`` is deprecated and slated for removal in Python 3.12. " "(Contributed by Inada Naoki in :issue:`41139`.)" msgstr "" -#: ../../whatsnew/3.10.rst:1759 +#: ../../whatsnew/3.10.rst:1760 msgid "" "The following :mod:`ssl` features have been deprecated since Python 3.6, " "Python 3.7, or OpenSSL 1.1.0 and will be removed in 3.11:" msgstr "" -#: ../../whatsnew/3.10.rst:1762 +#: ../../whatsnew/3.10.rst:1763 msgid "" ":data:`!OP_NO_SSLv2`, :data:`!OP_NO_SSLv3`, :data:`!OP_NO_TLSv1`, :data:`!" "OP_NO_TLSv1_1`, :data:`!OP_NO_TLSv1_2`, and :data:`!OP_NO_TLSv1_3` are " @@ -2687,7 +2688,7 @@ msgid "" "SSLContext.maximum_version`." msgstr "" -#: ../../whatsnew/3.10.rst:1768 +#: ../../whatsnew/3.10.rst:1769 msgid "" ":data:`!PROTOCOL_SSLv2`, :data:`!PROTOCOL_SSLv3`, :data:`!PROTOCOL_SSLv23`, :" "data:`!PROTOCOL_TLSv1`, :data:`!PROTOCOL_TLSv1_1`, :data:`!" @@ -2695,25 +2696,25 @@ msgid "" "const:`~ssl.PROTOCOL_TLS_CLIENT` and :const:`~ssl.PROTOCOL_TLS_SERVER`" msgstr "" -#: ../../whatsnew/3.10.rst:1774 +#: ../../whatsnew/3.10.rst:1775 msgid ":func:`!wrap_socket` is replaced by :meth:`ssl.SSLContext.wrap_socket`" msgstr "" -#: ../../whatsnew/3.10.rst:1776 +#: ../../whatsnew/3.10.rst:1777 msgid ":func:`!match_hostname`" msgstr "" -#: ../../whatsnew/3.10.rst:1778 +#: ../../whatsnew/3.10.rst:1779 msgid ":func:`!RAND_pseudo_bytes`, :func:`!RAND_egd`" msgstr "" -#: ../../whatsnew/3.10.rst:1780 +#: ../../whatsnew/3.10.rst:1781 msgid "" "NPN features like :meth:`ssl.SSLSocket.selected_npn_protocol` and :meth:`ssl." "SSLContext.set_npn_protocols` are replaced by ALPN." msgstr "" -#: ../../whatsnew/3.10.rst:1783 +#: ../../whatsnew/3.10.rst:1784 msgid "" "The threading debug (:envvar:`!PYTHONTHREADDEBUG` environment variable) is " "deprecated in Python 3.10 and will be removed in Python 3.12. This feature " @@ -2721,7 +2722,7 @@ msgid "" "Victor Stinner in :issue:`44584`.)" msgstr "" -#: ../../whatsnew/3.10.rst:1788 +#: ../../whatsnew/3.10.rst:1789 msgid "" "Importing from the ``typing.io`` and ``typing.re`` submodules will now emit :" "exc:`DeprecationWarning`. These submodules will be removed in a future " @@ -2730,11 +2731,11 @@ msgid "" "Rittau in :issue:`38291`.)" msgstr "" -#: ../../whatsnew/3.10.rst:1797 ../../whatsnew/3.10.rst:2220 +#: ../../whatsnew/3.10.rst:1798 ../../whatsnew/3.10.rst:2221 msgid "Removed" msgstr "削除" -#: ../../whatsnew/3.10.rst:1799 +#: ../../whatsnew/3.10.rst:1800 msgid "" "Removed special methods ``__int__``, ``__float__``, ``__floordiv__``, " "``__mod__``, ``__divmod__``, ``__rfloordiv__``, ``__rmod__`` and " @@ -2742,7 +2743,7 @@ msgid "" "`TypeError`. (Contributed by Serhiy Storchaka in :issue:`41974`.)" msgstr "" -#: ../../whatsnew/3.10.rst:1805 +#: ../../whatsnew/3.10.rst:1806 msgid "" "The ``ParserBase.error()`` method from the private and undocumented " "``_markupbase`` module has been removed. :class:`html.parser.HTMLParser` is " @@ -2751,7 +2752,7 @@ msgid "" "`31844`.)" msgstr "" -#: ../../whatsnew/3.10.rst:1811 +#: ../../whatsnew/3.10.rst:1812 msgid "" "Removed the ``unicodedata.ucnhash_CAPI`` attribute which was an internal " "PyCapsule object. The related private ``_PyUnicode_Name_CAPI`` structure was " @@ -2759,7 +2760,7 @@ msgid "" "`42157`.)" msgstr "" -#: ../../whatsnew/3.10.rst:1816 +#: ../../whatsnew/3.10.rst:1817 msgid "" "Removed the ``parser`` module, which was deprecated in 3.9 due to the switch " "to the new PEG parser, as well as all the C source and header files that " @@ -2767,7 +2768,7 @@ msgid "" "``graminit.h`` and ``grammar.h``." msgstr "" -#: ../../whatsnew/3.10.rst:1821 +#: ../../whatsnew/3.10.rst:1822 msgid "" "Removed the Public C API functions ``PyParser_SimpleParseStringFlags``, " "``PyParser_SimpleParseStringFlagsFilename``, " @@ -2775,7 +2776,7 @@ msgid "" "deprecated in 3.9 due to the switch to the new PEG parser." msgstr "" -#: ../../whatsnew/3.10.rst:1826 +#: ../../whatsnew/3.10.rst:1827 msgid "" "Removed the ``formatter`` module, which was deprecated in Python 3.4. It is " "somewhat obsolete, little used, and not tested. It was originally scheduled " @@ -2784,61 +2785,61 @@ msgid "" "their code. (Contributed by Donghee Na and Terry J. Reedy in :issue:`42299`.)" msgstr "" -#: ../../whatsnew/3.10.rst:1833 +#: ../../whatsnew/3.10.rst:1834 msgid "" "Removed the :c:func:`!PyModule_GetWarningsModule` function that was useless " "now due to the :mod:`!_warnings` module was converted to a builtin module in " "2.6. (Contributed by Hai Shi in :issue:`42599`.)" msgstr "" -#: ../../whatsnew/3.10.rst:1837 +#: ../../whatsnew/3.10.rst:1838 msgid "" "Remove deprecated aliases to :ref:`collections-abstract-base-classes` from " "the :mod:`collections` module. (Contributed by Victor Stinner in :issue:" "`37324`.)" msgstr "" -#: ../../whatsnew/3.10.rst:1841 +#: ../../whatsnew/3.10.rst:1842 msgid "" "The ``loop`` parameter has been removed from most of :mod:`asyncio`\\ 's :" "doc:`high-level API <../library/asyncio-api-index>` following deprecation in " "Python 3.8. The motivation behind this change is multifold:" msgstr "" -#: ../../whatsnew/3.10.rst:1845 +#: ../../whatsnew/3.10.rst:1846 msgid "This simplifies the high-level API." msgstr "" -#: ../../whatsnew/3.10.rst:1846 +#: ../../whatsnew/3.10.rst:1847 msgid "" "The functions in the high-level API have been implicitly getting the current " "thread's running event loop since Python 3.7. There isn't a need to pass " "the event loop to the API in most normal use cases." msgstr "" -#: ../../whatsnew/3.10.rst:1849 +#: ../../whatsnew/3.10.rst:1850 msgid "" "Event loop passing is error-prone especially when dealing with loops running " "in different threads." msgstr "" -#: ../../whatsnew/3.10.rst:1852 +#: ../../whatsnew/3.10.rst:1853 msgid "" "Note that the low-level API will still accept ``loop``. See :ref:`changes-" "python-api` for examples of how to replace existing code." msgstr "" -#: ../../whatsnew/3.10.rst:1855 ../../whatsnew/3.10.rst:1927 +#: ../../whatsnew/3.10.rst:1856 ../../whatsnew/3.10.rst:1928 msgid "" "(Contributed by Yurii Karabas, Andrew Svetlov, Yury Selivanov and Kyle " "Stanley in :issue:`42392`.)" msgstr "" -#: ../../whatsnew/3.10.rst:1860 ../../whatsnew/3.10.rst:2147 +#: ../../whatsnew/3.10.rst:1861 ../../whatsnew/3.10.rst:2148 msgid "Porting to Python 3.10" msgstr "" -#: ../../whatsnew/3.10.rst:1862 +#: ../../whatsnew/3.10.rst:1863 msgid "" "This section lists previously described changes and other bugfixes that may " "require changes to your code." @@ -2846,11 +2847,11 @@ msgstr "" "このセクションでは前述の変更とバグフィックスにより必要となるかもしれないコー" "ドの変更を列挙します:" -#: ../../whatsnew/3.10.rst:1867 +#: ../../whatsnew/3.10.rst:1868 msgid "Changes in the Python syntax" msgstr "" -#: ../../whatsnew/3.10.rst:1869 +#: ../../whatsnew/3.10.rst:1870 msgid "" "Deprecation warning is now emitted when compiling previously valid syntax if " "the numeric literal is immediately followed by a keyword (like in ``0in " @@ -2860,11 +2861,11 @@ msgid "" "following keyword. (Contributed by Serhiy Storchaka in :issue:`43833`.)" msgstr "" -#: ../../whatsnew/3.10.rst:1880 +#: ../../whatsnew/3.10.rst:1881 msgid "Changes in the Python API" msgstr "Python API の変更" -#: ../../whatsnew/3.10.rst:1882 +#: ../../whatsnew/3.10.rst:1883 msgid "" "The *etype* parameters of the :func:`~traceback.format_exception`, :func:" "`~traceback.format_exception_only`, and :func:`~traceback.print_exception` " @@ -2872,7 +2873,7 @@ msgid "" "(Contributed by Zackery Spytz and Matthias Bussonnier in :issue:`26389`.)" msgstr "" -#: ../../whatsnew/3.10.rst:1888 +#: ../../whatsnew/3.10.rst:1889 msgid "" ":mod:`atexit`: At Python exit, if a callback registered with :func:`atexit." "register` fails, its exception is now logged. Previously, only some " @@ -2880,7 +2881,7 @@ msgid "" "(Contributed by Victor Stinner in :issue:`42639`.)" msgstr "" -#: ../../whatsnew/3.10.rst:1894 +#: ../../whatsnew/3.10.rst:1895 msgid "" ":class:`collections.abc.Callable` generic now flattens type parameters, " "similar to what :data:`typing.Callable` currently does. This means that " @@ -2893,7 +2894,7 @@ msgid "" "`42195`.)" msgstr "" -#: ../../whatsnew/3.10.rst:1904 +#: ../../whatsnew/3.10.rst:1905 msgid "" ":meth:`socket.htons` and :meth:`socket.ntohs` now raise :exc:`OverflowError` " "instead of :exc:`DeprecationWarning` if the given parameter will not fit in " @@ -2901,41 +2902,41 @@ msgid "" "`42393`.)" msgstr "" -#: ../../whatsnew/3.10.rst:1909 +#: ../../whatsnew/3.10.rst:1910 msgid "" "The ``loop`` parameter has been removed from most of :mod:`asyncio`\\ 's :" "doc:`high-level API <../library/asyncio-api-index>` following deprecation in " "Python 3.8." msgstr "" -#: ../../whatsnew/3.10.rst:1913 +#: ../../whatsnew/3.10.rst:1914 msgid "A coroutine that currently looks like this::" msgstr "" -#: ../../whatsnew/3.10.rst:1915 +#: ../../whatsnew/3.10.rst:1916 msgid "" "async def foo(loop):\n" " await asyncio.sleep(1, loop=loop)" msgstr "" -#: ../../whatsnew/3.10.rst:1918 +#: ../../whatsnew/3.10.rst:1919 msgid "Should be replaced with this::" msgstr "" -#: ../../whatsnew/3.10.rst:1920 +#: ../../whatsnew/3.10.rst:1921 msgid "" "async def foo():\n" " await asyncio.sleep(1)" msgstr "" -#: ../../whatsnew/3.10.rst:1923 +#: ../../whatsnew/3.10.rst:1924 msgid "" "If ``foo()`` was specifically designed *not* to run in the current thread's " "running event loop (e.g. running in another thread's event loop), consider " "using :func:`asyncio.run_coroutine_threadsafe` instead." msgstr "" -#: ../../whatsnew/3.10.rst:1930 +#: ../../whatsnew/3.10.rst:1931 msgid "" "The :data:`types.FunctionType` constructor now inherits the current builtins " "if the *globals* dictionary has no ``\"__builtins__\"`` key, rather than " @@ -2946,11 +2947,11 @@ msgid "" "`42990`.)" msgstr "" -#: ../../whatsnew/3.10.rst:1939 +#: ../../whatsnew/3.10.rst:1940 msgid "Changes in the C API" msgstr "C API の変更" -#: ../../whatsnew/3.10.rst:1941 +#: ../../whatsnew/3.10.rst:1942 msgid "" "The C API functions ``PyParser_SimpleParseStringFlags``, " "``PyParser_SimpleParseStringFlagsFilename``, " @@ -2959,31 +2960,31 @@ msgid "" "PEG parser." msgstr "" -#: ../../whatsnew/3.10.rst:1947 +#: ../../whatsnew/3.10.rst:1948 msgid "" "Source should be now be compiled directly to a code object using, for " "example, :c:func:`Py_CompileString`. The resulting code object can then be " "evaluated using, for example, :c:func:`PyEval_EvalCode`." msgstr "" -#: ../../whatsnew/3.10.rst:1951 +#: ../../whatsnew/3.10.rst:1952 msgid "Specifically:" msgstr "" -#: ../../whatsnew/3.10.rst:1953 +#: ../../whatsnew/3.10.rst:1954 msgid "" "A call to ``PyParser_SimpleParseStringFlags`` followed by ``PyNode_Compile`` " "can be replaced by calling :c:func:`Py_CompileString`." msgstr "" -#: ../../whatsnew/3.10.rst:1956 +#: ../../whatsnew/3.10.rst:1957 msgid "" "There is no direct replacement for ``PyParser_SimpleParseFileFlags``. To " "compile code from a ``FILE *`` argument, you will need to read the file in C " "and pass the resulting buffer to :c:func:`Py_CompileString`." msgstr "" -#: ../../whatsnew/3.10.rst:1960 +#: ../../whatsnew/3.10.rst:1961 msgid "" "To compile a file given a ``char *`` filename, explicitly open the file, " "read it and compile the result. One way to do this is using the :py:mod:`io` " @@ -2992,7 +2993,7 @@ msgid "" "(Declarations and error handling are omitted.) ::" msgstr "" -#: ../../whatsnew/3.10.rst:1966 +#: ../../whatsnew/3.10.rst:1967 msgid "" "io_module = Import_ImportModule(\"io\");\n" "fileobject = PyObject_CallMethod(io_module, \"open\", \"ss\", filename, " @@ -3003,7 +3004,7 @@ msgid "" "code = Py_CompileString(source_buf, filename, Py_file_input);" msgstr "" -#: ../../whatsnew/3.10.rst:1973 +#: ../../whatsnew/3.10.rst:1974 msgid "" "For ``FrameObject`` objects, the :attr:`~frame.f_lasti` member now " "represents a wordcode offset instead of a simple offset into the bytecode " @@ -3014,53 +3015,53 @@ msgid "" "`PyFrame_GetLineNumber` instead." msgstr "" -#: ../../whatsnew/3.10.rst:1981 +#: ../../whatsnew/3.10.rst:1982 msgid "CPython bytecode changes" msgstr "CPython バイトコードの変更" -#: ../../whatsnew/3.10.rst:1983 +#: ../../whatsnew/3.10.rst:1984 msgid "" "The ``MAKE_FUNCTION`` instruction now accepts either a dict or a tuple of " "strings as the function's annotations. (Contributed by Yurii Karabas and " "Inada Naoki in :issue:`42202`.)" msgstr "" -#: ../../whatsnew/3.10.rst:1988 +#: ../../whatsnew/3.10.rst:1989 msgid "Build Changes" msgstr "" -#: ../../whatsnew/3.10.rst:1990 +#: ../../whatsnew/3.10.rst:1991 msgid "" ":pep:`644`: Python now requires OpenSSL 1.1.1 or newer. OpenSSL 1.0.2 is no " "longer supported. (Contributed by Christian Heimes in :issue:`43669`.)" msgstr "" -#: ../../whatsnew/3.10.rst:1994 +#: ../../whatsnew/3.10.rst:1995 msgid "" "The C99 functions :c:func:`snprintf` and :c:func:`vsnprintf` are now " "required to build Python. (Contributed by Victor Stinner in :issue:`36020`.)" msgstr "" -#: ../../whatsnew/3.10.rst:1998 +#: ../../whatsnew/3.10.rst:1999 msgid "" ":mod:`sqlite3` requires SQLite 3.7.15 or higher. (Contributed by Sergey " "Fedoseev and Erlend E. Aasland in :issue:`40744` and :issue:`40810`.)" msgstr "" -#: ../../whatsnew/3.10.rst:2001 +#: ../../whatsnew/3.10.rst:2002 msgid "" "The :mod:`atexit` module must now always be built as a built-in module. " "(Contributed by Victor Stinner in :issue:`42639`.)" msgstr "" -#: ../../whatsnew/3.10.rst:2004 +#: ../../whatsnew/3.10.rst:2005 msgid "" "Add :option:`--disable-test-modules` option to the ``configure`` script: " "don't build nor install test modules. (Contributed by Xavier de Gaye, Thomas " "Petazzoni and Peixing Xin in :issue:`27640`.)" msgstr "" -#: ../../whatsnew/3.10.rst:2008 +#: ../../whatsnew/3.10.rst:2009 msgid "" "Add :option:`--with-wheel-pkg-dir=PATH option <--with-wheel-pkg-dir>` to the " "``./configure`` script. If specified, the :mod:`ensurepip` module looks for " @@ -3069,7 +3070,7 @@ msgid "" "packages." msgstr "" -#: ../../whatsnew/3.10.rst:2014 +#: ../../whatsnew/3.10.rst:2015 msgid "" "Some Linux distribution packaging policies recommend against bundling " "dependencies. For example, Fedora installs wheel packages in the ``/usr/" @@ -3077,22 +3078,22 @@ msgid "" "_bundled`` package." msgstr "" -#: ../../whatsnew/3.10.rst:2019 +#: ../../whatsnew/3.10.rst:2020 msgid "(Contributed by Victor Stinner in :issue:`42856`.)" msgstr "" -#: ../../whatsnew/3.10.rst:2021 +#: ../../whatsnew/3.10.rst:2022 msgid "" "Add a new :option:`configure --without-static-libpython option <--without-" "static-libpython>` to not build the ``libpythonMAJOR.MINOR.a`` static " "library and not install the ``python.o`` object file." msgstr "" -#: ../../whatsnew/3.10.rst:2025 +#: ../../whatsnew/3.10.rst:2026 msgid "(Contributed by Victor Stinner in :issue:`43103`.)" msgstr "" -#: ../../whatsnew/3.10.rst:2027 +#: ../../whatsnew/3.10.rst:2028 msgid "" "The ``configure`` script now uses the ``pkg-config`` utility, if available, " "to detect the location of Tcl/Tk headers and libraries. As before, those " @@ -3101,7 +3102,7 @@ msgid "" "Stamatogiannakis in :issue:`42603`.)" msgstr "" -#: ../../whatsnew/3.10.rst:2033 +#: ../../whatsnew/3.10.rst:2034 msgid "" "Add :option:`--with-openssl-rpath` option to ``configure`` script. The " "option simplifies building Python with a custom OpenSSL installation, e.g. " @@ -3109,15 +3110,15 @@ msgid "" "(Contributed by Christian Heimes in :issue:`43466`.)" msgstr "" -#: ../../whatsnew/3.10.rst:2040 +#: ../../whatsnew/3.10.rst:2041 msgid "C API Changes" msgstr "C API の変更" -#: ../../whatsnew/3.10.rst:2043 +#: ../../whatsnew/3.10.rst:2044 msgid "PEP 652: Maintaining the Stable ABI" msgstr "" -#: ../../whatsnew/3.10.rst:2045 +#: ../../whatsnew/3.10.rst:2046 msgid "" "The Stable ABI (Application Binary Interface) for extension modules or " "embedding Python is now explicitly defined. :ref:`stable` describes C API " @@ -3125,25 +3126,25 @@ msgid "" "ABI." msgstr "" -#: ../../whatsnew/3.10.rst:2050 +#: ../../whatsnew/3.10.rst:2051 msgid "(Contributed by Petr Viktorin in :pep:`652` and :issue:`43795`.)" msgstr "" -#: ../../whatsnew/3.10.rst:2055 +#: ../../whatsnew/3.10.rst:2056 msgid "" "The result of :c:func:`PyNumber_Index` now always has exact type :class:" "`int`. Previously, the result could have been an instance of a subclass of " "``int``. (Contributed by Serhiy Storchaka in :issue:`40792`.)" msgstr "" -#: ../../whatsnew/3.10.rst:2059 +#: ../../whatsnew/3.10.rst:2060 msgid "" "Add a new :c:member:`~PyConfig.orig_argv` member to the :c:type:`PyConfig` " "structure: the list of the original command line arguments passed to the " "Python executable. (Contributed by Victor Stinner in :issue:`23427`.)" msgstr "" -#: ../../whatsnew/3.10.rst:2064 +#: ../../whatsnew/3.10.rst:2065 msgid "" "The :c:func:`PyDateTime_DATE_GET_TZINFO` and :c:func:" "`PyDateTime_TIME_GET_TZINFO` macros have been added for accessing the " @@ -3151,72 +3152,72 @@ msgid "" "time` objects. (Contributed by Zackery Spytz in :issue:`30155`.)" msgstr "" -#: ../../whatsnew/3.10.rst:2070 +#: ../../whatsnew/3.10.rst:2071 msgid "" "Add a :c:func:`PyCodec_Unregister` function to unregister a codec search " "function. (Contributed by Hai Shi in :issue:`41842`.)" msgstr "" -#: ../../whatsnew/3.10.rst:2074 +#: ../../whatsnew/3.10.rst:2075 msgid "" "The :c:func:`PyIter_Send` function was added to allow sending value into " "iterator without raising ``StopIteration`` exception. (Contributed by " "Vladimir Matveev in :issue:`41756`.)" msgstr "" -#: ../../whatsnew/3.10.rst:2078 +#: ../../whatsnew/3.10.rst:2079 msgid "" "Add :c:func:`PyUnicode_AsUTF8AndSize` to the limited C API. (Contributed by " "Alex Gaynor in :issue:`41784`.)" msgstr "" -#: ../../whatsnew/3.10.rst:2081 +#: ../../whatsnew/3.10.rst:2082 msgid "" "Add :c:func:`PyModule_AddObjectRef` function: similar to :c:func:" "`PyModule_AddObject` but don't steal a reference to the value on success. " "(Contributed by Victor Stinner in :issue:`1635741`.)" msgstr "" -#: ../../whatsnew/3.10.rst:2086 +#: ../../whatsnew/3.10.rst:2087 msgid "" "Add :c:func:`Py_NewRef` and :c:func:`Py_XNewRef` functions to increment the " "reference count of an object and return the object. (Contributed by Victor " "Stinner in :issue:`42262`.)" msgstr "" -#: ../../whatsnew/3.10.rst:2090 +#: ../../whatsnew/3.10.rst:2091 msgid "" "The :c:func:`PyType_FromSpecWithBases` and :c:func:" "`PyType_FromModuleAndSpec` functions now accept a single class as the " "*bases* argument. (Contributed by Serhiy Storchaka in :issue:`42423`.)" msgstr "" -#: ../../whatsnew/3.10.rst:2094 +#: ../../whatsnew/3.10.rst:2095 msgid "" "The :c:func:`PyType_FromModuleAndSpec` function now accepts NULL ``tp_doc`` " "slot. (Contributed by Hai Shi in :issue:`41832`.)" msgstr "" -#: ../../whatsnew/3.10.rst:2098 +#: ../../whatsnew/3.10.rst:2099 msgid "" "The :c:func:`PyType_GetSlot` function can accept :ref:`static types `. (Contributed by Hai Shi and Petr Viktorin in :issue:`41073`.)" msgstr "" -#: ../../whatsnew/3.10.rst:2102 +#: ../../whatsnew/3.10.rst:2103 msgid "" "Add a new :c:func:`PySet_CheckExact` function to the C-API to check if an " "object is an instance of :class:`set` but not an instance of a subtype. " "(Contributed by Pablo Galindo in :issue:`43277`.)" msgstr "" -#: ../../whatsnew/3.10.rst:2106 +#: ../../whatsnew/3.10.rst:2107 msgid "" "Add :c:func:`PyErr_SetInterruptEx` which allows passing a signal number to " "simulate. (Contributed by Antoine Pitrou in :issue:`43356`.)" msgstr "" -#: ../../whatsnew/3.10.rst:2110 +#: ../../whatsnew/3.10.rst:2111 msgid "" "The limited C API is now supported if :ref:`Python is built in debug mode " "` (if the ``Py_DEBUG`` macro is defined). In the limited C API, " @@ -3229,14 +3230,14 @@ msgid "" "`36465`)." msgstr "" -#: ../../whatsnew/3.10.rst:2120 +#: ../../whatsnew/3.10.rst:2121 msgid "" "The limited C API is still not supported in the :option:`--with-trace-refs` " "special build (``Py_TRACE_REFS`` macro). (Contributed by Victor Stinner in :" "issue:`43688`.)" msgstr "" -#: ../../whatsnew/3.10.rst:2124 +#: ../../whatsnew/3.10.rst:2125 msgid "" "Add the :c:func:`Py_Is(x, y) ` function to test if the *x* object is " "the *y* object, the same as ``x is y`` in Python. Add also the :c:func:" @@ -3246,7 +3247,7 @@ msgid "" "`43753`.)" msgstr "" -#: ../../whatsnew/3.10.rst:2131 +#: ../../whatsnew/3.10.rst:2132 msgid "" "Add new functions to control the garbage collector from C code: :c:func:" "`PyGC_Enable()`, :c:func:`PyGC_Disable()`, :c:func:`PyGC_IsEnabled()`. These " @@ -3254,20 +3255,20 @@ msgid "" "collector from C code without having to import the :mod:`gc` module." msgstr "" -#: ../../whatsnew/3.10.rst:2138 +#: ../../whatsnew/3.10.rst:2139 msgid "" "Add a new :c:macro:`Py_TPFLAGS_DISALLOW_INSTANTIATION` type flag to disallow " "creating type instances. (Contributed by Victor Stinner in :issue:`43916`.)" msgstr "" -#: ../../whatsnew/3.10.rst:2142 +#: ../../whatsnew/3.10.rst:2143 msgid "" "Add a new :c:macro:`Py_TPFLAGS_IMMUTABLETYPE` type flag for creating " "immutable type objects: type attributes cannot be set nor deleted. " "(Contributed by Victor Stinner and Erlend E. Aasland in :issue:`43908`.)" msgstr "" -#: ../../whatsnew/3.10.rst:2149 +#: ../../whatsnew/3.10.rst:2150 msgid "" "The ``PY_SSIZE_T_CLEAN`` macro must now be defined to use :c:func:" "`PyArg_ParseTuple` and :c:func:`Py_BuildValue` formats which use ``#``: " @@ -3276,7 +3277,7 @@ msgid "" "`40943`.)" msgstr "" -#: ../../whatsnew/3.10.rst:2155 +#: ../../whatsnew/3.10.rst:2156 msgid "" "Since :c:func:`Py_REFCNT()` is changed to the inline static function, " "``Py_REFCNT(obj) = new_refcnt`` must be replaced with ``Py_SET_REFCNT(obj, " @@ -3284,25 +3285,25 @@ msgid "" "For backward compatibility, this macro can be used::" msgstr "" -#: ../../whatsnew/3.10.rst:2160 +#: ../../whatsnew/3.10.rst:2161 msgid "" "#if PY_VERSION_HEX < 0x030900A4\n" "# define Py_SET_REFCNT(obj, refcnt) ((Py_REFCNT(obj) = (refcnt)), (void)0)\n" "#endif" msgstr "" -#: ../../whatsnew/3.10.rst:2164 +#: ../../whatsnew/3.10.rst:2165 msgid "(Contributed by Victor Stinner in :issue:`39573`.)" msgstr "" -#: ../../whatsnew/3.10.rst:2166 +#: ../../whatsnew/3.10.rst:2167 msgid "" "Calling :c:func:`PyDict_GetItem` without :term:`GIL` held had been allowed " "for historical reason. It is no longer allowed. (Contributed by Victor " "Stinner in :issue:`40839`.)" msgstr "" -#: ../../whatsnew/3.10.rst:2170 +#: ../../whatsnew/3.10.rst:2171 msgid "" "``PyUnicode_FromUnicode(NULL, size)`` and " "``PyUnicode_FromStringAndSize(NULL, size)`` raise ``DeprecationWarning`` " @@ -3310,14 +3311,14 @@ msgid "" "data. (Contributed by Inada Naoki in :issue:`36346`.)" msgstr "" -#: ../../whatsnew/3.10.rst:2175 +#: ../../whatsnew/3.10.rst:2176 msgid "" "The private ``_PyUnicode_Name_CAPI`` structure of the PyCapsule API " "``unicodedata.ucnhash_CAPI`` has been moved to the internal C API. " "(Contributed by Victor Stinner in :issue:`42157`.)" msgstr "" -#: ../../whatsnew/3.10.rst:2179 +#: ../../whatsnew/3.10.rst:2180 msgid "" ":c:func:`Py_GetPath`, :c:func:`Py_GetPrefix`, :c:func:`Py_GetExecPrefix`, :c:" "func:`Py_GetProgramFullPath`, :c:func:`Py_GetPythonHome` and :c:func:" @@ -3327,7 +3328,7 @@ msgid "" "Stinner in :issue:`42260`.)" msgstr "" -#: ../../whatsnew/3.10.rst:2186 +#: ../../whatsnew/3.10.rst:2187 msgid "" ":c:func:`PyList_SET_ITEM`, :c:func:`PyTuple_SET_ITEM` and :c:func:" "`PyCell_SET` macros can no longer be used as l-value or r-value. For " @@ -3337,7 +3338,7 @@ msgid "" "and Victor Stinner in :issue:`30459`.)" msgstr "" -#: ../../whatsnew/3.10.rst:2193 +#: ../../whatsnew/3.10.rst:2194 msgid "" "The non-limited API files ``odictobject.h``, ``parser_interface.h``, " "``picklebufobject.h``, ``pyarena.h``, ``pyctype.h``, ``pydebug.h``, ``pyfpe." @@ -3348,7 +3349,7 @@ msgid "" "issue:`35134`.)" msgstr "" -#: ../../whatsnew/3.10.rst:2201 +#: ../../whatsnew/3.10.rst:2202 msgid "" "Use the :c:macro:`Py_TPFLAGS_IMMUTABLETYPE` type flag to create immutable " "type objects. Do not rely on :c:macro:`Py_TPFLAGS_HEAPTYPE` to decide if a " @@ -3357,85 +3358,85 @@ msgid "" "issue:`43908`.)" msgstr "" -#: ../../whatsnew/3.10.rst:2207 +#: ../../whatsnew/3.10.rst:2208 msgid "" "The undocumented function ``Py_FrozenMain`` has been removed from the " "limited API. The function is mainly useful for custom builds of Python. " "(Contributed by Petr Viktorin in :issue:`26241`.)" msgstr "" -#: ../../whatsnew/3.10.rst:2214 +#: ../../whatsnew/3.10.rst:2215 msgid "" "The ``PyUnicode_InternImmortal()`` function is now deprecated and will be " "removed in Python 3.12: use :c:func:`PyUnicode_InternInPlace` instead. " "(Contributed by Victor Stinner in :issue:`41692`.)" msgstr "" -#: ../../whatsnew/3.10.rst:2222 +#: ../../whatsnew/3.10.rst:2223 msgid "" "Removed ``Py_UNICODE_str*`` functions manipulating ``Py_UNICODE*`` strings. " "(Contributed by Inada Naoki in :issue:`41123`.)" msgstr "" -#: ../../whatsnew/3.10.rst:2225 +#: ../../whatsnew/3.10.rst:2226 msgid "" "``Py_UNICODE_strlen``: use :c:func:`PyUnicode_GetLength` or :c:macro:" "`PyUnicode_GET_LENGTH`" msgstr "" -#: ../../whatsnew/3.10.rst:2227 +#: ../../whatsnew/3.10.rst:2228 msgid "" "``Py_UNICODE_strcat``: use :c:func:`PyUnicode_CopyCharacters` or :c:func:" "`PyUnicode_FromFormat`" msgstr "" -#: ../../whatsnew/3.10.rst:2229 +#: ../../whatsnew/3.10.rst:2230 msgid "" "``Py_UNICODE_strcpy``, ``Py_UNICODE_strncpy``: use :c:func:" "`PyUnicode_CopyCharacters` or :c:func:`PyUnicode_Substring`" msgstr "" -#: ../../whatsnew/3.10.rst:2231 +#: ../../whatsnew/3.10.rst:2232 msgid "``Py_UNICODE_strcmp``: use :c:func:`PyUnicode_Compare`" msgstr "" -#: ../../whatsnew/3.10.rst:2232 +#: ../../whatsnew/3.10.rst:2233 msgid "``Py_UNICODE_strncmp``: use :c:func:`PyUnicode_Tailmatch`" msgstr "" -#: ../../whatsnew/3.10.rst:2233 +#: ../../whatsnew/3.10.rst:2234 msgid "" "``Py_UNICODE_strchr``, ``Py_UNICODE_strrchr``: use :c:func:" "`PyUnicode_FindChar`" msgstr "" -#: ../../whatsnew/3.10.rst:2236 +#: ../../whatsnew/3.10.rst:2237 msgid "" "Removed ``PyUnicode_GetMax()``. Please migrate to new (:pep:`393`) APIs. " "(Contributed by Inada Naoki in :issue:`41103`.)" msgstr "" -#: ../../whatsnew/3.10.rst:2239 +#: ../../whatsnew/3.10.rst:2240 msgid "" "Removed ``PyLong_FromUnicode()``. Please migrate to :c:func:" "`PyLong_FromUnicodeObject`. (Contributed by Inada Naoki in :issue:`41103`.)" msgstr "" -#: ../../whatsnew/3.10.rst:2242 +#: ../../whatsnew/3.10.rst:2243 msgid "" "Removed ``PyUnicode_AsUnicodeCopy()``. Please use :c:func:" "`PyUnicode_AsUCS4Copy` or :c:func:`PyUnicode_AsWideCharString` (Contributed " "by Inada Naoki in :issue:`41103`.)" msgstr "" -#: ../../whatsnew/3.10.rst:2246 +#: ../../whatsnew/3.10.rst:2247 msgid "" "Removed ``_Py_CheckRecursionLimit`` variable: it has been replaced by " "``ceval.recursion_limit`` of the :c:type:`PyInterpreterState` structure. " "(Contributed by Victor Stinner in :issue:`41834`.)" msgstr "" -#: ../../whatsnew/3.10.rst:2250 +#: ../../whatsnew/3.10.rst:2251 msgid "" "Removed undocumented macros ``Py_ALLOW_RECURSION`` and " "``Py_END_ALLOW_RECURSION`` and the ``recursion_critical`` field of the :c:" @@ -3443,14 +3444,14 @@ msgid "" "issue:`41936`.)" msgstr "" -#: ../../whatsnew/3.10.rst:2255 +#: ../../whatsnew/3.10.rst:2256 msgid "" "Removed the undocumented ``PyOS_InitInterrupts()`` function. Initializing " "Python already implicitly installs signal handlers: see :c:member:`PyConfig." "install_signal_handlers`. (Contributed by Victor Stinner in :issue:`41713`.)" msgstr "" -#: ../../whatsnew/3.10.rst:2260 +#: ../../whatsnew/3.10.rst:2261 msgid "" "Remove the ``PyAST_Validate()`` function. It is no longer possible to build " "a AST object (``mod_ty`` type) with the public C API. The function was " @@ -3458,48 +3459,48 @@ msgid "" "Stinner in :issue:`43244`.)" msgstr "" -#: ../../whatsnew/3.10.rst:2265 +#: ../../whatsnew/3.10.rst:2266 msgid "Remove the ``symtable.h`` header file and the undocumented functions:" msgstr "" -#: ../../whatsnew/3.10.rst:2267 +#: ../../whatsnew/3.10.rst:2268 msgid "``PyST_GetScope()``" msgstr "" -#: ../../whatsnew/3.10.rst:2268 +#: ../../whatsnew/3.10.rst:2269 msgid "``PySymtable_Build()``" msgstr "" -#: ../../whatsnew/3.10.rst:2269 +#: ../../whatsnew/3.10.rst:2270 msgid "``PySymtable_BuildObject()``" msgstr "" -#: ../../whatsnew/3.10.rst:2270 +#: ../../whatsnew/3.10.rst:2271 msgid "``PySymtable_Free()``" msgstr "" -#: ../../whatsnew/3.10.rst:2271 +#: ../../whatsnew/3.10.rst:2272 msgid "``Py_SymtableString()``" msgstr "" -#: ../../whatsnew/3.10.rst:2272 +#: ../../whatsnew/3.10.rst:2273 msgid "``Py_SymtableStringObject()``" msgstr "" -#: ../../whatsnew/3.10.rst:2274 +#: ../../whatsnew/3.10.rst:2275 msgid "" "The ``Py_SymtableString()`` function was part the stable ABI by mistake but " "it could not be used, because the ``symtable.h`` header file was excluded " "from the limited C API." msgstr "" -#: ../../whatsnew/3.10.rst:2278 +#: ../../whatsnew/3.10.rst:2279 msgid "" "Use Python :mod:`symtable` module instead. (Contributed by Victor Stinner " "in :issue:`43244`.)" msgstr "" -#: ../../whatsnew/3.10.rst:2281 +#: ../../whatsnew/3.10.rst:2282 msgid "" "Remove :c:func:`PyOS_ReadlineFunctionPointer` from the limited C API headers " "and from ``python3.dll``, the library that provides the stable ABI on " @@ -3507,7 +3508,7 @@ msgid "" "cannot be guaranteed. (Contributed by Petr Viktorin in :issue:`43868`.)" msgstr "" -#: ../../whatsnew/3.10.rst:2287 +#: ../../whatsnew/3.10.rst:2288 msgid "" "Remove ``ast.h``, ``asdl.h``, and ``Python-ast.h`` header files. These " "functions were undocumented and excluded from the limited C API. Most names " @@ -3518,96 +3519,96 @@ msgid "" "(Contributed by Victor Stinner in :issue:`43244`.)" msgstr "" -#: ../../whatsnew/3.10.rst:2295 +#: ../../whatsnew/3.10.rst:2296 msgid "" "Remove the compiler and parser functions using ``struct _mod`` type, because " "the public AST C API was removed:" msgstr "" -#: ../../whatsnew/3.10.rst:2298 +#: ../../whatsnew/3.10.rst:2299 msgid "``PyAST_Compile()``" msgstr "" -#: ../../whatsnew/3.10.rst:2299 +#: ../../whatsnew/3.10.rst:2300 msgid "``PyAST_CompileEx()``" msgstr "" -#: ../../whatsnew/3.10.rst:2300 +#: ../../whatsnew/3.10.rst:2301 msgid "``PyAST_CompileObject()``" msgstr "" -#: ../../whatsnew/3.10.rst:2301 +#: ../../whatsnew/3.10.rst:2302 msgid "``PyFuture_FromAST()``" msgstr "" -#: ../../whatsnew/3.10.rst:2302 +#: ../../whatsnew/3.10.rst:2303 msgid "``PyFuture_FromASTObject()``" msgstr "" -#: ../../whatsnew/3.10.rst:2303 +#: ../../whatsnew/3.10.rst:2304 msgid "``PyParser_ASTFromFile()``" msgstr "" -#: ../../whatsnew/3.10.rst:2304 +#: ../../whatsnew/3.10.rst:2305 msgid "``PyParser_ASTFromFileObject()``" msgstr "" -#: ../../whatsnew/3.10.rst:2305 +#: ../../whatsnew/3.10.rst:2306 msgid "``PyParser_ASTFromFilename()``" msgstr "" -#: ../../whatsnew/3.10.rst:2306 +#: ../../whatsnew/3.10.rst:2307 msgid "``PyParser_ASTFromString()``" msgstr "" -#: ../../whatsnew/3.10.rst:2307 +#: ../../whatsnew/3.10.rst:2308 msgid "``PyParser_ASTFromStringObject()``" msgstr "" -#: ../../whatsnew/3.10.rst:2309 +#: ../../whatsnew/3.10.rst:2310 msgid "" "These functions were undocumented and excluded from the limited C API. " "(Contributed by Victor Stinner in :issue:`43244`.)" msgstr "" -#: ../../whatsnew/3.10.rst:2312 +#: ../../whatsnew/3.10.rst:2313 msgid "Remove the ``pyarena.h`` header file with functions:" msgstr "" -#: ../../whatsnew/3.10.rst:2314 +#: ../../whatsnew/3.10.rst:2315 msgid "``PyArena_New()``" msgstr "" -#: ../../whatsnew/3.10.rst:2315 +#: ../../whatsnew/3.10.rst:2316 msgid "``PyArena_Free()``" msgstr "" -#: ../../whatsnew/3.10.rst:2316 +#: ../../whatsnew/3.10.rst:2317 msgid "``PyArena_Malloc()``" msgstr "" -#: ../../whatsnew/3.10.rst:2317 +#: ../../whatsnew/3.10.rst:2318 msgid "``PyArena_AddPyObject()``" msgstr "" -#: ../../whatsnew/3.10.rst:2319 +#: ../../whatsnew/3.10.rst:2320 msgid "" "These functions were undocumented, excluded from the limited C API, and were " "only used internally by the compiler. (Contributed by Victor Stinner in :" "issue:`43244`.)" msgstr "" -#: ../../whatsnew/3.10.rst:2323 +#: ../../whatsnew/3.10.rst:2324 msgid "" "The ``PyThreadState.use_tracing`` member has been removed to optimize " "Python. (Contributed by Mark Shannon in :issue:`43760`.)" msgstr "" -#: ../../whatsnew/3.10.rst:2328 +#: ../../whatsnew/3.10.rst:2329 msgid "Notable security feature in 3.10.7" msgstr "" -#: ../../whatsnew/3.10.rst:2330 +#: ../../whatsnew/3.10.rst:2331 msgid "" "Converting between :class:`int` and :class:`str` in bases other than 2 " "(binary), 4, 8 (octal), 16 (hexadecimal), or 32 such as base 10 (decimal) " @@ -3620,11 +3621,11 @@ msgid "" "digits in string form." msgstr "" -#: ../../whatsnew/3.10.rst:2341 +#: ../../whatsnew/3.10.rst:2342 msgid "Notable security feature in 3.10.8" msgstr "" -#: ../../whatsnew/3.10.rst:2343 +#: ../../whatsnew/3.10.rst:2344 msgid "" "The deprecated :mod:`!mailcap` module now refuses to inject unsafe text " "(filenames, MIME types, parameters) into shell commands. Instead of using " @@ -3633,15 +3634,15 @@ msgid "" "`98966`.)" msgstr "" -#: ../../whatsnew/3.10.rst:2350 +#: ../../whatsnew/3.10.rst:2351 msgid "Notable changes in 3.10.12" msgstr "" -#: ../../whatsnew/3.10.rst:2353 +#: ../../whatsnew/3.10.rst:2354 msgid "tarfile" msgstr "tarfile" -#: ../../whatsnew/3.10.rst:2355 +#: ../../whatsnew/3.10.rst:2356 msgid "" "The extraction methods in :mod:`tarfile`, and :func:`shutil.unpack_archive`, " "have a new a *filter* argument that allows limiting tar features than may be " diff --git a/whatsnew/3.11.po b/whatsnew/3.11.po index 3d2319fd8..5d025462f 100644 --- a/whatsnew/3.11.po +++ b/whatsnew/3.11.po @@ -23,10 +23,10 @@ msgstr "" "Last-Translator: Arihiro TAKASE, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../whatsnew/3.11.rst:3 @@ -95,7 +95,7 @@ msgstr "" #: ../../whatsnew/3.11.rst:79 msgid "Interpreter improvements:" -msgstr "インタープリタの改善:" +msgstr "インタプリタの改善:" #: ../../whatsnew/3.11.rst:81 msgid ":ref:`whatsnew311-pep657`" diff --git a/whatsnew/3.2.po b/whatsnew/3.2.po index fa31db312..d58fedbde 100644 --- a/whatsnew/3.2.po +++ b/whatsnew/3.2.po @@ -1,5 +1,5 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2025, Python Software Foundation +# Copyright (C) 2001 Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # @@ -10,17 +10,17 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: Python 3.13\n" +"Project-Id-Version: Python 3.14\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2025-05-02 14:19+0000\n" +"POT-Creation-Date: 2025-05-23 14:20+0000\n" "PO-Revision-Date: 2021-06-29 13:04+0000\n" "Last-Translator: Tetsuo Koyama , 2021\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../whatsnew/3.2.rst:3 diff --git a/whatsnew/3.3.po b/whatsnew/3.3.po index 6fc88508c..0f9ec465a 100644 --- a/whatsnew/3.3.po +++ b/whatsnew/3.3.po @@ -1,5 +1,5 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2025, Python Software Foundation +# Copyright (C) 2001 Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # @@ -12,17 +12,17 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: Python 3.13\n" +"Project-Id-Version: Python 3.14\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2025-05-02 14:19+0000\n" +"POT-Creation-Date: 2025-05-23 14:20+0000\n" "PO-Revision-Date: 2021-06-29 13:04+0000\n" "Last-Translator: Taichi Haradaguchi, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../whatsnew/3.3.rst:3 diff --git a/whatsnew/3.4.po b/whatsnew/3.4.po index e65895e40..ae03ebbcf 100644 --- a/whatsnew/3.4.po +++ b/whatsnew/3.4.po @@ -17,10 +17,10 @@ msgstr "" "Last-Translator: Takanori Suzuki , 2021\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../whatsnew/3.4.rst:3 @@ -739,8 +739,7 @@ msgstr "" ":pep:`451` は、インポート機構がロードに使うモジュールに関する情報 (つまりモ" "ジュールの仕様) のカプセル化を提供します。これはインポートの実装とインポート" "関連 API の両方を単純化するのに役立ちます。この変更は、 `いくつかの将来のイン" -"ポート関連の改善 `_ の足掛かりでもあります。" +"ポート関連の改善`__ の足掛かりでもあります。" #: ../../whatsnew/3.4.rst:390 msgid "" diff --git a/whatsnew/3.5.po b/whatsnew/3.5.po index cc346ba4f..b8ccb9be3 100644 --- a/whatsnew/3.5.po +++ b/whatsnew/3.5.po @@ -19,10 +19,10 @@ msgstr "" "Last-Translator: Arihiro TAKASE, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../whatsnew/3.5.rst:3 diff --git a/whatsnew/3.6.po b/whatsnew/3.6.po index 721a5dadf..e83f08000 100644 --- a/whatsnew/3.6.po +++ b/whatsnew/3.6.po @@ -22,10 +22,10 @@ msgstr "" "Last-Translator: Yosuke Miyashita, 2025\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../whatsnew/3.6.rst:3 diff --git a/whatsnew/3.7.po b/whatsnew/3.7.po index 4e2860369..fdc83c0d9 100644 --- a/whatsnew/3.7.po +++ b/whatsnew/3.7.po @@ -20,10 +20,10 @@ msgstr "" "Last-Translator: Takuya Futatsugi, 2025\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../whatsnew/3.7.rst:3 diff --git a/whatsnew/3.8.po b/whatsnew/3.8.po index 374d97fed..149ef459b 100644 --- a/whatsnew/3.8.po +++ b/whatsnew/3.8.po @@ -19,10 +19,10 @@ msgstr "" "Last-Translator: tomo, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../whatsnew/3.8.rst:3 diff --git a/whatsnew/3.9.po b/whatsnew/3.9.po index 5976bd252..87386d6bf 100644 --- a/whatsnew/3.9.po +++ b/whatsnew/3.9.po @@ -22,10 +22,10 @@ msgstr "" "Last-Translator: Yasuyuki ARAKI, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../whatsnew/3.9.rst:3 diff --git a/whatsnew/changelog.po b/whatsnew/changelog.po index 2e12e9b18..e708d2ede 100644 --- a/whatsnew/changelog.po +++ b/whatsnew/changelog.po @@ -14,15 +14,15 @@ msgid "" msgstr "" "Project-Id-Version: Python 3.14\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2025-05-09 14:19+0000\n" +"POT-Creation-Date: 2025-05-23 14:20+0000\n" "PO-Revision-Date: 2021-06-29 13:04+0000\n" "Last-Translator: tomo, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: 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" #: ../../whatsnew/changelog.rst:7 @@ -37,80 +37,310 @@ msgstr "次のPython" msgid "*Release date: XXXX-XX-XX*" msgstr "*リリース日: XXXX-XX-XX*" -#: ../NEWS:8 ../NEWS:59 ../NEWS:863 ../NEWS:1232 ../NEWS:2668 ../NEWS:3108 -#: ../NEWS:3763 ../NEWS:6679 ../NEWS:7156 ../NEWS:7641 ../NEWS:8151 -#: ../NEWS:9010 ../NEWS:9591 ../NEWS:11832 ../NEWS:13048 ../NEWS:13425 -#: ../NEWS:13711 ../NEWS:13997 ../NEWS:14394 ../NEWS:14732 ../NEWS:15157 -#: ../NEWS:17117 ../NEWS:18111 ../NEWS:18704 ../NEWS:19189 ../NEWS:19569 -#: ../NEWS:20012 ../NEWS:20496 ../NEWS:20953 ../NEWS:22727 ../NEWS:23547 -#: ../NEWS:24000 ../NEWS:24272 ../NEWS:24549 ../NEWS:25371 ../NEWS:25810 -#: ../NEWS:26840 ../NEWS:27309 ../NEWS:27769 ../NEWS:28227 ../NEWS:28618 -#: ../NEWS:29396 ../NEWS:31008 ../NEWS:32076 ../NEWS:32585 ../NEWS:32954 -#: ../NEWS:33199 ../NEWS:35789 ../NEWS:36334 ../NEWS:36717 ../NEWS:36925 -#: ../NEWS:37172 ../NEWS:37511 ../NEWS:37817 ../NEWS:38352 ../NEWS:40462 -#: ../NEWS:41059 ../NEWS:41390 ../NEWS:41801 ../NEWS:42179 ../NEWS:42750 -#: ../NEWS:42999 ../NEWS:43129 ../NEWS:43419 ../NEWS:43660 ../NEWS:44190 -#: ../NEWS:44422 ../NEWS:44925 ../NEWS:46194 ../NEWS:46699 ../NEWS:47333 -#: ../NEWS:48128 ../NEWS:48175 ../NEWS:48632 ../NEWS:49921 ../NEWS:51735 +#: ../NEWS:8 ../NEWS:246 ../NEWS:1050 ../NEWS:1419 ../NEWS:2855 ../NEWS:3295 +#: ../NEWS:3950 ../NEWS:6866 ../NEWS:7343 ../NEWS:7828 ../NEWS:8338 +#: ../NEWS:9197 ../NEWS:9778 ../NEWS:12019 ../NEWS:13235 ../NEWS:13612 +#: ../NEWS:13898 ../NEWS:14184 ../NEWS:14581 ../NEWS:14919 ../NEWS:15344 +#: ../NEWS:17304 ../NEWS:18298 ../NEWS:18891 ../NEWS:19376 ../NEWS:19756 +#: ../NEWS:20199 ../NEWS:20683 ../NEWS:21140 ../NEWS:22914 ../NEWS:23734 +#: ../NEWS:24187 ../NEWS:24459 ../NEWS:24736 ../NEWS:25558 ../NEWS:25997 +#: ../NEWS:27027 ../NEWS:27496 ../NEWS:27956 ../NEWS:28414 ../NEWS:28805 +#: ../NEWS:29583 ../NEWS:31195 ../NEWS:32263 ../NEWS:32772 ../NEWS:33141 +#: ../NEWS:33386 ../NEWS:35976 ../NEWS:36521 ../NEWS:36904 ../NEWS:37112 +#: ../NEWS:37359 ../NEWS:37698 ../NEWS:38004 ../NEWS:38539 ../NEWS:40649 +#: ../NEWS:41246 ../NEWS:41577 ../NEWS:41988 ../NEWS:42366 ../NEWS:42937 +#: ../NEWS:43186 ../NEWS:43316 ../NEWS:43606 ../NEWS:43847 ../NEWS:44377 +#: ../NEWS:44609 ../NEWS:45112 ../NEWS:46381 ../NEWS:46886 ../NEWS:47520 +#: ../NEWS:48315 ../NEWS:48362 ../NEWS:48819 ../NEWS:50108 ../NEWS:51922 msgid "Windows" msgstr "Windows" #: ../NEWS:10 msgid "" +":gh:`130727`: Fix a race in internal calls into WMI that can result in an " +"\"invalid handle\" exception under high load. Patch by Chris Eibl." +msgstr "" + +#: ../NEWS:13 +msgid "" +":gh:`76023`: Make :func:`os.path.realpath` ignore Windows error 1005 when in " +"non-strict mode." +msgstr "" + +#: ../NEWS:16 +msgid "" +":gh:`133779`: Reverts the change to generate different :file:`pyconfig.h` " +"files based on compiler settings, as it was frequently causing extension " +"builds to break. In particular, the ``Py_GIL_DISABLED`` preprocessor " +"variable must now always be defined explicitly when compiling for the " +"experimental free-threaded runtime. The :func:`sysconfig.get_config_var` " +"function can be used to determine whether the current runtime was compiled " +"with that flag or not." +msgstr "" + +#: ../NEWS:24 +msgid "" ":gh:`133626`: Ensures packages are not accidentally bundled into the " "traditional installer." msgstr "" -#: ../NEWS:14 ../NEWS:77 ../NEWS:887 ../NEWS:1261 ../NEWS:1813 ../NEWS:2348 -#: ../NEWS:2684 ../NEWS:3146 ../NEWS:3816 ../NEWS:7120 ../NEWS:7583 -#: ../NEWS:8126 ../NEWS:8941 ../NEWS:9533 ../NEWS:11497 ../NEWS:12988 -#: ../NEWS:13407 ../NEWS:13681 ../NEWS:13958 ../NEWS:14364 ../NEWS:14689 -#: ../NEWS:15101 ../NEWS:16881 ../NEWS:18065 ../NEWS:18648 ../NEWS:19137 -#: ../NEWS:19485 ../NEWS:19938 ../NEWS:20346 ../NEWS:20849 ../NEWS:22559 -#: ../NEWS:23515 ../NEWS:23969 ../NEWS:24243 ../NEWS:24513 ../NEWS:24866 -#: ../NEWS:25312 ../NEWS:25787 ../NEWS:26768 ../NEWS:27290 ../NEWS:27731 -#: ../NEWS:28194 ../NEWS:28604 ../NEWS:29331 ../NEWS:30766 ../NEWS:32017 -#: ../NEWS:32470 ../NEWS:32927 ../NEWS:33166 ../NEWS:35504 ../NEWS:36540 -#: ../NEWS:36694 ../NEWS:36910 ../NEWS:37162 ../NEWS:37476 ../NEWS:37808 -#: ../NEWS:38292 ../NEWS:40287 ../NEWS:41031 ../NEWS:41144 ../NEWS:41369 -#: ../NEWS:41759 ../NEWS:42157 ../NEWS:42736 ../NEWS:43047 ../NEWS:43298 -#: ../NEWS:43433 ../NEWS:43704 ../NEWS:44134 ../NEWS:44407 ../NEWS:44661 -#: ../NEWS:44915 ../NEWS:46088 ../NEWS:46648 ../NEWS:47302 ../NEWS:47423 -#: ../NEWS:48046 ../NEWS:48608 ../NEWS:48852 ../NEWS:49029 ../NEWS:49338 -#: ../NEWS:49567 ../NEWS:49777 ../NEWS:51588 +#: ../NEWS:28 ../NEWS:255 ../NEWS:1065 ../NEWS:1425 ../NEWS:1991 ../NEWS:2528 +#: ../NEWS:2865 ../NEWS:3324 ../NEWS:3997 ../NEWS:7860 ../NEWS:8382 +#: ../NEWS:9819 ../NEWS:12084 ../NEWS:13286 ../NEWS:13621 ../NEWS:14612 +#: ../NEWS:14942 ../NEWS:17433 ../NEWS:18319 ../NEWS:18926 ../NEWS:23002 +#: ../NEWS:25108 ../NEWS:25602 ../NEWS:27521 ../NEWS:27983 ../NEWS:28456 +#: ../NEWS:31438 ../NEWS:32301 ../NEWS:32840 ../NEWS:33182 ../NEWS:36305 +#: ../NEWS:36927 ../NEWS:37144 ../NEWS:37404 ../NEWS:38010 ../NEWS:38598 +#: ../NEWS:40913 ../NEWS:41301 ../NEWS:41642 ../NEWS:42065 ../NEWS:42552 +#: ../NEWS:42917 ../NEWS:43311 ../NEWS:43385 ../NEWS:44370 ../NEWS:44831 +#: ../NEWS:45139 ../NEWS:46399 ../NEWS:47508 ../NEWS:48334 ../NEWS:48857 +#: ../NEWS:49544 ../NEWS:49763 ../NEWS:49971 ../NEWS:51883 +msgid "Tools/Demos" +msgstr "ツール/デモ" + +#: ../NEWS:30 +msgid "" +":gh:`134215`: :term:`REPL` import autocomplete only suggests private modules " +"when explicitly specified." +msgstr "" + +#: ../NEWS:34 ../NEWS:264 ../NEWS:1074 ../NEWS:1448 ../NEWS:2000 ../NEWS:2535 +#: ../NEWS:2871 ../NEWS:3333 ../NEWS:4003 ../NEWS:7307 ../NEWS:7770 +#: ../NEWS:8313 ../NEWS:9128 ../NEWS:9720 ../NEWS:11684 ../NEWS:13175 +#: ../NEWS:13594 ../NEWS:13868 ../NEWS:14145 ../NEWS:14551 ../NEWS:14876 +#: ../NEWS:15288 ../NEWS:17068 ../NEWS:18252 ../NEWS:18835 ../NEWS:19324 +#: ../NEWS:19672 ../NEWS:20125 ../NEWS:20533 ../NEWS:21036 ../NEWS:22746 +#: ../NEWS:23702 ../NEWS:24156 ../NEWS:24430 ../NEWS:24700 ../NEWS:25053 +#: ../NEWS:25499 ../NEWS:25974 ../NEWS:26955 ../NEWS:27477 ../NEWS:27918 +#: ../NEWS:28381 ../NEWS:28791 ../NEWS:29518 ../NEWS:30953 ../NEWS:32204 +#: ../NEWS:32657 ../NEWS:33114 ../NEWS:33353 ../NEWS:35691 ../NEWS:36727 +#: ../NEWS:36881 ../NEWS:37097 ../NEWS:37349 ../NEWS:37663 ../NEWS:37995 +#: ../NEWS:38479 ../NEWS:40474 ../NEWS:41218 ../NEWS:41331 ../NEWS:41556 +#: ../NEWS:41946 ../NEWS:42344 ../NEWS:42923 ../NEWS:43234 ../NEWS:43485 +#: ../NEWS:43620 ../NEWS:43891 ../NEWS:44321 ../NEWS:44594 ../NEWS:44848 +#: ../NEWS:45102 ../NEWS:46275 ../NEWS:46835 ../NEWS:47489 ../NEWS:47610 +#: ../NEWS:48233 ../NEWS:48795 ../NEWS:49039 ../NEWS:49216 ../NEWS:49525 +#: ../NEWS:49754 ../NEWS:49964 ../NEWS:51775 msgid "Tests" msgstr "テスト" -#: ../NEWS:16 +#: ../NEWS:36 +msgid "" +":gh:`133744`: Fix multiprocessing interrupt test. Add an event to " +"synchronize the parent process with the child process: wait until the child " +"process starts sleeping. Patch by Victor Stinner." +msgstr "" + +#: ../NEWS:40 +msgid "" +":gh:`133682`: Fixed test case ``test.test_annotationlib.TestStringFormat." +"test_displays`` which ensures proper handling of complex data structures " +"(lists, sets, dictionaries, and tuples) in string annotations." +msgstr "" + +#: ../NEWS:45 msgid "" ":gh:`133639`: Fix ``TestPyReplAutoindent.test_auto_indent_default()`` " "doesn't run ``input_code``." msgstr "" -#: ../NEWS:20 ../NEWS:108 ../NEWS:913 ../NEWS:1286 ../NEWS:1857 ../NEWS:2355 -#: ../NEWS:2709 ../NEWS:3162 ../NEWS:3933 ../NEWS:6322 ../NEWS:6876 -#: ../NEWS:7332 ../NEWS:7818 ../NEWS:8424 ../NEWS:9311 ../NEWS:10436 -#: ../NEWS:12488 ../NEWS:13240 ../NEWS:13552 ../NEWS:13846 ../NEWS:14139 -#: ../NEWS:14537 ../NEWS:14963 ../NEWS:15878 ../NEWS:17646 ../NEWS:18317 -#: ../NEWS:18956 ../NEWS:19350 ../NEWS:19769 ../NEWS:20182 ../NEWS:20647 -#: ../NEWS:21611 ../NEWS:23155 ../NEWS:23787 ../NEWS:24170 ../NEWS:24394 -#: ../NEWS:24668 ../NEWS:25065 ../NEWS:25620 ../NEWS:26240 ../NEWS:27112 -#: ../NEWS:27500 ../NEWS:27987 ../NEWS:28447 ../NEWS:28809 ../NEWS:29155 -#: ../NEWS:29811 ../NEWS:31577 ../NEWS:32244 ../NEWS:32787 ../NEWS:33082 -#: ../NEWS:33833 ../NEWS:36241 ../NEWS:36274 ../NEWS:36402 ../NEWS:36610 -#: ../NEWS:36801 ../NEWS:37006 ../NEWS:37304 ../NEWS:37625 ../NEWS:37950 -#: ../NEWS:38540 ../NEWS:39200 ../NEWS:40870 ../NEWS:41216 ../NEWS:41582 -#: ../NEWS:41906 ../NEWS:42009 ../NEWS:42472 ../NEWS:42859 ../NEWS:43162 -#: ../NEWS:43244 ../NEWS:43347 ../NEWS:43517 ../NEWS:43852 ../NEWS:44270 -#: ../NEWS:44488 ../NEWS:44725 ../NEWS:45262 ../NEWS:46289 ../NEWS:46307 -#: ../NEWS:46395 ../NEWS:46876 ../NEWS:47591 ../NEWS:48255 ../NEWS:48693 -#: ../NEWS:48720 ../NEWS:48758 ../NEWS:48778 ../NEWS:48885 ../NEWS:48979 -#: ../NEWS:49075 ../NEWS:49150 ../NEWS:49408 ../NEWS:49631 ../NEWS:49804 -#: ../NEWS:50162 +#: ../NEWS:49 ../NEWS:285 ../NEWS:1085 ../NEWS:1465 ../NEWS:2016 ../NEWS:2888 +#: ../NEWS:3344 ../NEWS:4069 ../NEWS:6306 ../NEWS:7443 ../NEWS:7887 +#: ../NEWS:8443 ../NEWS:9962 ../NEWS:12441 ../NEWS:13638 ../NEWS:13959 +#: ../NEWS:14641 ../NEWS:14976 ../NEWS:15411 ../NEWS:17630 ../NEWS:21251 +#: ../NEWS:23155 ../NEWS:23860 ../NEWS:24285 ../NEWS:24519 ../NEWS:25143 +#: ../NEWS:25716 ../NEWS:26066 ../NEWS:27235 ../NEWS:27588 ../NEWS:28040 +#: ../NEWS:28546 ../NEWS:29247 ../NEWS:29632 ../NEWS:31585 ../NEWS:32343 +#: ../NEWS:32887 ../NEWS:33418 ../NEWS:36948 ../NEWS:37166 ../NEWS:38894 +#: ../NEWS:41347 ../NEWS:42114 ../NEWS:42578 ../NEWS:42605 ../NEWS:44649 +#: ../NEWS:44860 ../NEWS:45151 ../NEWS:46447 ../NEWS:46506 ../NEWS:46923 +#: ../NEWS:47626 +msgid "Security" +msgstr "セキュリティ" + +#: ../NEWS:51 +msgid "" +":gh:`133767`: Fix use-after-free in the \"unicode-escape\" decoder with a " +"non-\"strict\" error handler." +msgstr "" + +#: ../NEWS:55 ../NEWS:295 ../NEWS:1100 ../NEWS:1473 ../NEWS:2044 ../NEWS:2542 +#: ../NEWS:2896 ../NEWS:3349 ../NEWS:4120 ../NEWS:6509 ../NEWS:7063 +#: ../NEWS:7519 ../NEWS:8005 ../NEWS:8611 ../NEWS:9498 ../NEWS:10623 +#: ../NEWS:12675 ../NEWS:13427 ../NEWS:13739 ../NEWS:14033 ../NEWS:14326 +#: ../NEWS:14724 ../NEWS:15150 ../NEWS:16065 ../NEWS:17833 ../NEWS:18504 +#: ../NEWS:19143 ../NEWS:19537 ../NEWS:19956 ../NEWS:20369 ../NEWS:20834 +#: ../NEWS:21798 ../NEWS:23342 ../NEWS:23974 ../NEWS:24357 ../NEWS:24581 +#: ../NEWS:24855 ../NEWS:25252 ../NEWS:25807 ../NEWS:26427 ../NEWS:27299 +#: ../NEWS:27687 ../NEWS:28174 ../NEWS:28634 ../NEWS:28996 ../NEWS:29342 +#: ../NEWS:29998 ../NEWS:31764 ../NEWS:32431 ../NEWS:32974 ../NEWS:33269 +#: ../NEWS:34020 ../NEWS:36428 ../NEWS:36461 ../NEWS:36589 ../NEWS:36797 +#: ../NEWS:36988 ../NEWS:37193 ../NEWS:37491 ../NEWS:37812 ../NEWS:38137 +#: ../NEWS:38727 ../NEWS:39387 ../NEWS:41057 ../NEWS:41403 ../NEWS:41769 +#: ../NEWS:42093 ../NEWS:42196 ../NEWS:42659 ../NEWS:43046 ../NEWS:43349 +#: ../NEWS:43431 ../NEWS:43534 ../NEWS:43704 ../NEWS:44039 ../NEWS:44457 +#: ../NEWS:44675 ../NEWS:44912 ../NEWS:45449 ../NEWS:46476 ../NEWS:46494 +#: ../NEWS:46582 ../NEWS:47063 ../NEWS:47778 ../NEWS:48442 ../NEWS:48880 +#: ../NEWS:48907 ../NEWS:48945 ../NEWS:48965 ../NEWS:49072 ../NEWS:49166 +#: ../NEWS:49262 ../NEWS:49337 ../NEWS:49595 ../NEWS:49818 ../NEWS:49991 +#: ../NEWS:50349 msgid "Library" msgstr "ライブラリ" -#: ../NEWS:22 +#: ../NEWS:57 +msgid "" +":gh:`134451`: Converted ``asyncio.tools.CycleFoundException`` from dataclass " +"to a regular exception type." +msgstr "" + +#: ../NEWS:60 +msgid "" +":gh:`114177`: Fix :mod:`asyncio` to not close subprocess pipes which would " +"otherwise error out when the event loop is already closed." +msgstr "" + +#: ../NEWS:63 +msgid "" +":gh:`90871`: Fixed an off by one error concerning the backlog parameter in :" +"meth:`~asyncio.loop.create_unix_server`. Contributed by Christian Harries." +msgstr "" + +#: ../NEWS:67 +msgid ":gh:`134323`: Fix the :meth:`threading.RLock.locked` method." +msgstr "" + +#: ../NEWS:69 +msgid "" +":gh:`86802`: Fixed asyncio memory leak in cancelled shield tasks. For " +"shielded tasks where the shield was cancelled, log potential exceptions " +"through the exception handler. Contributed by Christian Harries." +msgstr "" + +#: ../NEWS:73 +msgid "" +":gh:`134209`: :mod:`curses`: The :meth:`curses.window.instr` and :meth:" +"`curses.window.getstr` methods now allocate their internal buffer on the " +"heap instead of the stack; in addition, the max buffer size is increased " +"from 1023 to 2047." +msgstr "" + +#: ../NEWS:78 +msgid "" +":gh:`134235`: Updated tab completion on REPL to include builtin modules. " +"Contributed by Tom Wang, Hunter Young" +msgstr "" + +#: ../NEWS:81 +msgid "" +":gh:`62184`: Remove import of C implementation of :class:`io.FileIO` from " +"Python implementation which has its own implementation" +msgstr "" + +#: ../NEWS:84 +msgid "" +":gh:`133982`: Emit :exc:`RuntimeWarning` in the Python implementation of :" +"mod:`io` when the :term:`file-like object ` is not closed " +"explicitly in the presence of multiple I/O layers." +msgstr "" + +#: ../NEWS:88 +msgid "" +":gh:`133890`: The :mod:`tarfile` module now handles :exc:" +"`UnicodeEncodeError` in the same way as :exc:`OSError` when cannot extract a " +"member." +msgstr "" + +#: ../NEWS:91 +msgid "" +":gh:`134097`: Fix interaction of the new :term:`REPL` and :option:`-X " +"showrefcount <-X>` command line option." +msgstr "" + +#: ../NEWS:94 +msgid "" +":gh:`133889`: The generated directory listing page in :class:`http.server." +"SimpleHTTPRequestHandler` now only shows the decoded path component of the " +"requested URL, and not the query and fragment." +msgstr "" + +#: ../NEWS:98 +msgid "" +":gh:`134098`: Fix handling paths that end with a percent-encoded slash " +"(``%2f`` or ``%2F``) in :class:`http.server.SimpleHTTPRequestHandler`." +msgstr "" + +#: ../NEWS:101 +msgid "" +":gh:`132124`: On POSIX-compliant systems, :func:`!multiprocessing.util." +"get_temp_dir` now ignores :envvar:`TMPDIR` (and similar environment " +"variables) if the path length of ``AF_UNIX`` socket files exceeds the " +"platform-specific maximum length when using the :ref:`forkserver " +"` start method. Patch by Bénédikt " +"Tran." +msgstr "" + +#: ../NEWS:108 +msgid "" +":gh:`134062`: :mod:`ipaddress`: fix collisions in :meth:`~object.__hash__` " +"for :class:`~ipaddress.IPv4Network` and :class:`~ipaddress.IPv6Network` " +"objects." +msgstr "" + +#: ../NEWS:112 +msgid "" +":gh:`133970`: Make :class:`!string.templatelib.Template` and :class:`!string." +"templatelib.Interpolation` generic." +msgstr "" + +#: ../NEWS:115 +msgid "" +":gh:`71253`: Raise :exc:`ValueError` in :func:`open` if *opener* returns a " +"negative file-descriptor in the Python implementation of :mod:`io` to match " +"the C implementation." +msgstr "" + +#: ../NEWS:119 +msgid "" +":gh:`133925`: Make the private class ``typing._UnionGenericAlias`` hashable." +msgstr "" + +#: ../NEWS:121 +msgid "" +":gh:`133653`: Fix :class:`argparse.ArgumentParser` with the " +"*formatter_class* argument. Fix TypeError when *formatter_class* is a custom " +"subclass of :class:`!HelpFormatter`. Fix TypeError when *formatter_class* is " +"not a subclass of :class:`!HelpFormatter` and non-standard *prefix_char* is " +"used. Fix support of colorizing when *formatter_class* is not a subclass of :" +"class:`!HelpFormatter`." +msgstr "" + +#: ../NEWS:128 +msgid "" +":gh:`132641`: Fixed a race in :func:`functools.lru_cache` under free-" +"threading." +msgstr "" + +#: ../NEWS:131 +msgid "" +":gh:`133783`: Fix bug with applying :func:`copy.replace` to :mod:`ast` " +"objects. Attributes that default to ``None`` were incorrectly treated as " +"required for manually created AST nodes." +msgstr "" + +#: ../NEWS:135 +msgid "" +":gh:`77057`: Fix handling of invalid markup declarations in :class:`html." +"parser.HTMLParser`." +msgstr "" + +#: ../NEWS:138 +msgid "" +":gh:`133701`: Fix bug where :class:`typing.TypedDict` classes defined under " +"``from __future__ import annotations`` and inheriting from another " +"``TypedDict`` had an incorrect ``__annotations__`` attribute." +msgstr "" + +#: ../NEWS:142 msgid "" ":gh:`133581`: Improve unparsing of t-strings in :func:`ast.unparse` and " "``from __future__ import annotations``. Empty t-strings now round-trip " @@ -118,138 +348,280 @@ msgid "" "Zijlstra." msgstr "" -#: ../NEWS:27 +#: ../NEWS:147 msgid "" ":gh:`133551`: Support t-strings (:pep:`750`) in :mod:`annotationlib`. Patch " "by Jelle Zijlstra." msgstr "" -#: ../NEWS:30 +#: ../NEWS:150 msgid "" ":gh:`133439`: Fix dot commands with trailing spaces are mistaken for multi-" "line SQL statements in the sqlite3 command-line interface." msgstr "" -#: ../NEWS:33 +#: ../NEWS:153 +msgid "" +":gh:`133009`: :mod:`xml.etree.ElementTree`: Fix a crash in :meth:`Element." +"__deepcopy__ ` when the element is concurrently " +"mutated. Patch by Bénédikt Tran." +msgstr "" + +#: ../NEWS:157 +msgid "" +":gh:`91555`: Ignore log messages generated during handling of log messages, " +"to avoid deadlock or infinite recursion." +msgstr "" + +#: ../NEWS:160 msgid "" ":gh:`125028`: :data:`functools.Placeholder` cannot be passed to :func:" "`functools.partial` as a keyword argument." msgstr "" -#: ../NEWS:36 +#: ../NEWS:163 +msgid "" +":gh:`62824`: Fix aliases for ``iso8859_8`` encoding. Patch by Dave Goncalves." +msgstr "" + +#: ../NEWS:165 +msgid "" +":gh:`86155`: :meth:`html.parser.HTMLParser.close` no longer loses data when " +"the ``