From 315e4b146ead1d94563b052ec6447c15b350cd14 Mon Sep 17 00:00:00 2001 From: github-actions Date: Fri, 8 Dec 2023 23:49:38 +0000 Subject: [PATCH] Update translations from Transifex --- c-api/frame.po | 10 +- c-api/function.po | 16 +- c-api/import.po | 5 +- c-api/init.po | 114 +- c-api/structures.po | 4 +- c-api/typeobj.po | 18 +- c-api/unicode.po | 247 ++-- glossary.po | 699 +++++---- library/__future__.po | 116 +- library/abc.po | 121 +- library/collections.abc.po | 2 +- library/contextlib.po | 37 +- library/dis.po | 584 ++++---- library/exceptions.po | 217 ++- library/functions.po | 922 ++++++------ library/gettext.po | 46 +- library/inspect.po | 931 ++++++------ library/pathlib.po | 2 +- library/reprlib.po | 62 +- library/shelve.po | 42 +- library/stdtypes.po | 2747 ++++++++++++++++++------------------ library/sys.po | 203 +-- library/types.po | 69 +- reference/datamodel.po | 1952 +++++++++++++------------ tutorial/classes.po | 40 +- tutorial/floatingpoint.po | 15 +- tutorial/introduction.po | 2 +- whatsnew/2.3.po | 20 +- whatsnew/2.6.po | 536 ++++--- whatsnew/2.7.po | 670 +++++---- whatsnew/3.10.po | 883 ++++++------ whatsnew/3.11.po | 190 +-- whatsnew/3.6.po | 132 +- whatsnew/3.7.po | 13 +- 34 files changed, 5582 insertions(+), 6085 deletions(-) diff --git a/c-api/frame.po b/c-api/frame.po index e01083726..ddb3d7ab4 100644 --- a/c-api/frame.po +++ b/c-api/frame.po @@ -12,7 +12,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3.12\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2023-11-24 14:13+0000\n" +"POT-Creation-Date: 2023-12-08 14:14+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/" @@ -84,7 +84,7 @@ msgid "" msgstr "" #: ../../c-api/frame.rst:53 -msgid "Get the *frame*'s ``f_builtins`` attribute." +msgid "Get the *frame*'s :attr:`~frame.f_builtins` attribute." msgstr "" #: ../../c-api/frame.rst:55 ../../c-api/frame.rst:86 @@ -115,11 +115,11 @@ msgid "Return a :term:`strong reference`, or ``NULL``." msgstr "" #: ../../c-api/frame.rst:84 -msgid "Get the *frame*'s ``f_globals`` attribute." +msgid "Get the *frame*'s :attr:`~frame.f_globals` attribute." msgstr "" #: ../../c-api/frame.rst:93 -msgid "Get the *frame*'s ``f_lasti`` attribute." +msgid "Get the *frame*'s :attr:`~frame.f_lasti` attribute." msgstr "" #: ../../c-api/frame.rst:95 @@ -154,7 +154,7 @@ msgid "" msgstr "" #: ../../c-api/frame.rst:123 -msgid "Get the *frame*'s ``f_locals`` attribute (:class:`dict`)." +msgid "Get the *frame*'s :attr:`~frame.f_locals` attribute (:class:`dict`)." msgstr "" #: ../../c-api/frame.rst:132 diff --git a/c-api/function.po b/c-api/function.po index cd40a5cb4..6af514d74 100644 --- a/c-api/function.po +++ b/c-api/function.po @@ -12,7 +12,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3.12\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2023-11-24 14:13+0000\n" +"POT-Creation-Date: 2023-12-08 14:14+0000\n" "PO-Revision-Date: 2021-06-28 00:48+0000\n" "Last-Translator: tomo, 2023\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" @@ -68,26 +68,16 @@ msgid "" "The function's docstring and name are retrieved from the code object. " "*__module__* is retrieved from *globals*. The argument defaults, annotations " "and closure are set to ``NULL``. *__qualname__* is set to the same value as " -"the code object's ``co_qualname`` field." +"the code object's :attr:`~codeobject.co_qualname` field." msgstr "" -"関数のドキュメント文字列と名前はコードオブジェクトから取得されます。\n" -"*__module__* は *globals* から取得されます。\n" -"引数のデフォルト値やアノテーション、クロージャは ``NULL`` に設定されます。 " -"*__qualname__* はコードオブジェクトの ``co_qualname`` フィールドと同じ値に設" -"定されます。" #: ../../c-api/function.rst:45 msgid "" "As :c:func:`PyFunction_New`, but also allows setting the function object's " "``__qualname__`` attribute. *qualname* should be a unicode object or " "``NULL``; if ``NULL``, the ``__qualname__`` attribute is set to the same " -"value as the code object's ``co_qualname`` field." +"value as the code object's :attr:`~codeobject.co_qualname` field." msgstr "" -":c:func:`PyFunction_New` に似ていますが、関数オブジェクトの ``__qualname__`` " -"属性に値をセットできます。\n" -"*qualname* はユニコードオブジェクトか ``NULL`` でなくてはなりません。" -"``NULL`` だった場合、 ``__qualname__`` 属性にはコードオブジェクトの " -"``co_qualname`` フィールドと同じ値がセットされます。" #: ../../c-api/function.rst:55 msgid "Return the code object associated with the function object *op*." diff --git a/c-api/import.po b/c-api/import.po index eb231546d..b5f4564a0 100644 --- a/c-api/import.po +++ b/c-api/import.po @@ -18,7 +18,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3.12\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2023-11-24 14:13+0000\n" +"POT-Creation-Date: 2023-12-08 14:14+0000\n" "PO-Revision-Date: 2021-06-28 00:48+0000\n" "Last-Translator: Masato HASHIMOTO , 2023\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" @@ -217,7 +217,8 @@ msgstr "" #: ../../c-api/import.rst:140 msgid "" "The module's :attr:`__file__` attribute will be set to the code object's :" -"attr:`!co_filename`. If applicable, :attr:`__cached__` will also be set." +"attr:`~codeobject.co_filename`. If applicable, :attr:`__cached__` will also " +"be set." msgstr "" #: ../../c-api/import.rst:144 diff --git a/c-api/init.po b/c-api/init.po index 481e93880..b4ea6b74a 100644 --- a/c-api/init.po +++ b/c-api/init.po @@ -17,7 +17,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3.12\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2023-12-01 14:14+0000\n" +"POT-Creation-Date: 2023-12-08 14:14+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/" @@ -2722,15 +2722,11 @@ msgstr "" 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 " -"reported. It may be disabled for a frame by setting :attr:`f_trace_lines` to " -"*0* on that frame." +"reported. It may be disabled for a frame by setting :attr:`~frame." +"f_trace_lines` to *0* on that frame." msgstr "" -"行番号イベントを報告するときに、 (プロファイル関数ではなく) :c:type:" -"`Py_tracefunc` 関数に *what* 引数として渡す値です。\n" -":attr:`f_trace_lines` が *0* に設定されたフレームでは無効化されていることもあ" -"ります。" -#: ../../c-api/init.rst:1917 +#: ../../c-api/init.rst:1918 msgid "" "The value for the *what* parameter to :c:type:`Py_tracefunc` functions when " "a call is about to return." @@ -2738,7 +2734,7 @@ msgstr "" "呼び出しが返るときに :c:type:`Py_tracefunc` 関数に *what* 引数として渡す値で" "す。" -#: ../../c-api/init.rst:1923 +#: ../../c-api/init.rst:1924 msgid "" "The value for the *what* parameter to :c:type:`Py_tracefunc` functions when " "a C function is about to be called." @@ -2746,7 +2742,7 @@ msgstr "" "C関数を呼び出す直前に :c:type:`Py_tracefunc` 関数の *what* 引数として渡す値で" "す。" -#: ../../c-api/init.rst:1929 +#: ../../c-api/init.rst:1930 msgid "" "The value for the *what* parameter to :c:type:`Py_tracefunc` functions when " "a C function has raised an exception." @@ -2754,7 +2750,7 @@ msgstr "" "C関数が例外を送出したときに :c:type:`Py_tracefunc` 関数の *what* 引数として渡" "す値です。" -#: ../../c-api/init.rst:1935 +#: ../../c-api/init.rst:1936 msgid "" "The value for the *what* parameter to :c:type:`Py_tracefunc` functions when " "a C function has returned." @@ -2762,19 +2758,15 @@ msgstr "" "C関数から戻るときに :c:type:`Py_tracefunc` 関数の *what* 引数として渡す値で" "す。" -#: ../../c-api/init.rst:1941 +#: ../../c-api/init.rst:1942 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 " "event is not emitted by default: it must be explicitly requested by setting :" -"attr:`f_trace_opcodes` to *1* on the frame." +"attr:`~frame.f_trace_opcodes` to *1* on the frame." msgstr "" -"新しい opcode が実行されるときに、 (プロファイル関数ではなく) :c:type:" -"`Py_tracefunc` 関数に *what* 引数として渡す値です。\n" -"デフォルトではイベントは発火しません。フレーム上で :attr:`f_trace_lines` を " -"*1* に設定して、明示的に要請しなければなりません。" -#: ../../c-api/init.rst:1949 +#: ../../c-api/init.rst:1950 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``. " @@ -2784,29 +2776,29 @@ msgid "" "`PyTrace_LINE` :c:data:`PyTrace_OPCODE` and :c:data:`PyTrace_EXCEPTION`." msgstr "" -#: ../../c-api/init.rst:1956 +#: ../../c-api/init.rst:1957 msgid "See also the :func:`sys.setprofile` function." msgstr ":func:`sys.setprofile` 関数も参照してください。" -#: ../../c-api/init.rst:1958 ../../c-api/init.rst:1965 -#: ../../c-api/init.rst:1984 ../../c-api/init.rst:1991 +#: ../../c-api/init.rst:1959 ../../c-api/init.rst:1966 +#: ../../c-api/init.rst:1985 ../../c-api/init.rst:1992 msgid "The caller must hold the :term:`GIL`." msgstr "呼び出し側は :term:`GIL` を獲得しなければなりません。" -#: ../../c-api/init.rst:1962 +#: ../../c-api/init.rst:1963 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:1967 +#: ../../c-api/init.rst:1968 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:1975 +#: ../../c-api/init.rst:1976 msgid "" "Set the tracing function to *func*. This is similar to :c:func:" "`PyEval_SetProfile`, except the tracing function does receive line-number " @@ -2817,44 +2809,44 @@ msgid "" "*what* parameter." msgstr "" -#: ../../c-api/init.rst:1982 +#: ../../c-api/init.rst:1983 msgid "See also the :func:`sys.settrace` function." msgstr ":func:`sys.settrace` 関数も参照してください。" -#: ../../c-api/init.rst:1988 +#: ../../c-api/init.rst:1989 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:1993 +#: ../../c-api/init.rst:1994 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:2002 +#: ../../c-api/init.rst:2003 msgid "Advanced Debugger Support" msgstr "高度なデバッガサポート (advanced debugger support)" -#: ../../c-api/init.rst:2007 +#: ../../c-api/init.rst:2008 msgid "" "These functions are only intended to be used by advanced debugging tools." msgstr "以下の関数は高度なデバッグツールでの使用のためだけのものです。" -#: ../../c-api/init.rst:2012 +#: ../../c-api/init.rst:2013 msgid "" "Return the interpreter state object at the head of the list of all such " "objects." msgstr "" "インタプリタ状態オブジェクトからなるリストのうち、先頭にあるものを返します。" -#: ../../c-api/init.rst:2017 +#: ../../c-api/init.rst:2018 msgid "Return the main interpreter state object." msgstr "メインインタプリタの状態オブジェクトを返します。" -#: ../../c-api/init.rst:2022 +#: ../../c-api/init.rst:2023 msgid "" "Return the next interpreter state object after *interp* from the list of all " "such objects." @@ -2862,7 +2854,7 @@ msgstr "" "インタプリタ状態オブジェクトからなるリストのうち、*interp* の次にあるものを返" "します。" -#: ../../c-api/init.rst:2028 +#: ../../c-api/init.rst:2029 msgid "" "Return the pointer to the first :c:type:`PyThreadState` object in the list " "of threads associated with the interpreter *interp*." @@ -2870,7 +2862,7 @@ msgstr "" "インタプリタ *interp* に関連付けられているスレッドからなるリストのうち、先頭" "にある :c:type:`PyThreadState` オブジェクトを返します。" -#: ../../c-api/init.rst:2034 +#: ../../c-api/init.rst:2035 msgid "" "Return the next thread state object after *tstate* from the list of all such " "objects belonging to the same :c:type:`PyInterpreterState` object." @@ -2878,11 +2870,11 @@ msgstr "" "*tstate* と同じ :c:type:`PyInterpreterState` オブジェクトに属しているスレッド" "状態オブジェクトのうち、 *tstate* の次にあるものを返します。" -#: ../../c-api/init.rst:2041 +#: ../../c-api/init.rst:2042 msgid "Thread Local Storage Support" msgstr "スレッドローカルストレージのサポート" -#: ../../c-api/init.rst:2045 +#: ../../c-api/init.rst:2046 msgid "" "The Python interpreter provides low-level support for thread-local storage " "(TLS) which wraps the underlying native TLS implementation to support the " @@ -2898,7 +2890,7 @@ msgstr "" "CPython の C レベル API は pthreads や Windows で与えられる TLS と同様です: " "スレッドキーとスレッドごとに :c:expr:`void*` 値を関係付ける関数を使います。" -#: ../../c-api/init.rst:2052 +#: ../../c-api/init.rst:2053 msgid "" "The GIL does *not* need to be held when calling these functions; they supply " "their own locking." @@ -2906,7 +2898,7 @@ msgstr "" "API で使われる関数を呼ぶときは、 GIL を取得する必要は *ありません* 。関数自身" "のロックがサポートされています。" -#: ../../c-api/init.rst:2055 +#: ../../c-api/init.rst:2056 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." @@ -2915,7 +2907,7 @@ msgstr "" "を使うには :file:`pythread.h` を include する必要があることに注意してくださ" "い。" -#: ../../c-api/init.rst:2059 +#: ../../c-api/init.rst:2060 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 " @@ -2928,11 +2920,11 @@ msgstr "" ":c:expr:`void*` 値がたまたま :c:expr:`PyObject*` だった場合は、 API 関数はそ" "れぞれの値の参照カウントの操作は行いません。" -#: ../../c-api/init.rst:2067 +#: ../../c-api/init.rst:2068 msgid "Thread Specific Storage (TSS) API" msgstr "スレッド固有ストレージ (Thread Specific Storage, TSS) API" -#: ../../c-api/init.rst:2069 +#: ../../c-api/init.rst:2070 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` " @@ -2943,12 +2935,12 @@ msgstr "" "この API は、スレッドキーの表現に :c:expr:`int` の代わりに新しい型 :c:type:" "`Py_tss_t` を使います。" -#: ../../c-api/init.rst:2075 +#: ../../c-api/init.rst:2076 msgid "\"A New C-API for Thread-Local Storage in CPython\" (:pep:`539`)" msgstr "" "\"CPython のスレッドローカルストレージのための新しい C API\" (:pep:`539`)" -#: ../../c-api/init.rst:2080 +#: ../../c-api/init.rst:2081 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 " @@ -2959,7 +2951,7 @@ msgstr "" "底の TLS 実装に依存し、キーの初期化状態を表現する内部フィールドを持ちます。\n" "この構造体には公開 (public) のメンバはありません。" -#: ../../c-api/init.rst:2085 +#: ../../c-api/init.rst:2086 msgid "" "When :ref:`Py_LIMITED_API ` is not defined, static allocation of " "this type by :c:macro:`Py_tss_NEEDS_INIT` is allowed." @@ -2967,7 +2959,7 @@ msgstr "" ":ref:`Py_LIMITED_API ` が定義されていないときは、この型の :c:macro:" "`Py_tss_NEEDS_INIT` による静的メモリ確保ができます。" -#: ../../c-api/init.rst:2091 +#: ../../c-api/init.rst:2092 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 `." @@ -2975,11 +2967,11 @@ msgstr "" "このマクロは :c:type:`Py_tss_t` 変数の初期化子に展開されます。\n" "このマクロは :ref:`Py_LIMITED_API ` があるときは定義されません。" -#: ../../c-api/init.rst:2096 +#: ../../c-api/init.rst:2097 msgid "Dynamic Allocation" msgstr "動的メモリ確保" -#: ../../c-api/init.rst:2098 +#: ../../c-api/init.rst:2099 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 " @@ -2989,29 +2981,29 @@ msgstr "" "ルドされた拡張モジュールで必要になりますが、その実装がビルド時に不透明なため" "に、この型の静的なメモリ確保は不可能です。" -#: ../../c-api/init.rst:2105 +#: ../../c-api/init.rst:2106 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:2112 +#: ../../c-api/init.rst:2113 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:2118 +#: ../../c-api/init.rst:2119 msgid "" "A freed key becomes a dangling pointer. You should reset the key to ``NULL``." msgstr "" -#: ../../c-api/init.rst:2123 +#: ../../c-api/init.rst:2124 msgid "Methods" msgstr "メソッド" -#: ../../c-api/init.rst:2125 +#: ../../c-api/init.rst:2126 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 " @@ -3019,13 +3011,13 @@ msgid "" "func:`PyThread_tss_create`." msgstr "" -#: ../../c-api/init.rst:2133 +#: ../../c-api/init.rst:2134 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:2139 +#: ../../c-api/init.rst:2140 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 " @@ -3034,7 +3026,7 @@ msgid "" "no-op and immediately returns success." msgstr "" -#: ../../c-api/init.rst:2148 +#: ../../c-api/init.rst:2149 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 " @@ -3043,31 +3035,31 @@ msgid "" "key -- calling it on an already destroyed key is a no-op." msgstr "" -#: ../../c-api/init.rst:2157 +#: ../../c-api/init.rst:2158 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:2164 +#: ../../c-api/init.rst:2165 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:2172 +#: ../../c-api/init.rst:2173 msgid "Thread Local Storage (TLS) API" msgstr "スレッドローカルストレージ (TLS) API" -#: ../../c-api/init.rst:2174 +#: ../../c-api/init.rst:2175 msgid "" "This API is superseded by :ref:`Thread Specific Storage (TSS) API `." msgstr "" -#: ../../c-api/init.rst:2179 +#: ../../c-api/init.rst:2180 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 " @@ -3076,7 +3068,7 @@ msgid "" "platforms." msgstr "" -#: ../../c-api/init.rst:2184 +#: ../../c-api/init.rst:2185 msgid "" "Due to the compatibility problem noted above, this version of the API should " "not be used in new code." diff --git a/c-api/structures.po b/c-api/structures.po index bad9dd8ae..c28ea819d 100644 --- a/c-api/structures.po +++ b/c-api/structures.po @@ -15,7 +15,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3.12\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2023-11-17 14:14+0000\n" +"POT-Creation-Date: 2023-12-08 14:14+0000\n" "PO-Revision-Date: 2021-06-28 00:50+0000\n" "Last-Translator: tomo, 2023\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" @@ -752,7 +752,7 @@ msgstr "" #: ../../c-api/structures.rst:593 msgid "" "(*): Zero-terminated, UTF8-encoded C string. With :c:macro:`!Py_T_STRING` " -"the C representation is a pointer; with :c:macro:`!Py_T_STRING_INLINE` the " +"the C representation is a pointer; with :c:macro:`!Py_T_STRING_INPLACE` the " "string is stored directly in the structure." msgstr "" diff --git a/c-api/typeobj.po b/c-api/typeobj.po index a233b26a5..062b60934 100644 --- a/c-api/typeobj.po +++ b/c-api/typeobj.po @@ -16,7 +16,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3.12\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2023-11-17 14:14+0000\n" +"POT-Creation-Date: 2023-12-08 14:14+0000\n" "PO-Revision-Date: 2021-06-28 00:50+0000\n" "Last-Translator: tomo, 2023\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" @@ -439,12 +439,13 @@ msgstr ":c:member:`~PyTypeObject.tp_dict`" #: ../../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:0 ../../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:431 +#: ../../c-api/typeobj.rst:346 ../../c-api/typeobj.rst:0 +#: ../../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 msgid ":c:type:`PyObject` *" @@ -555,8 +556,7 @@ msgid "[:c:member:`~PyTypeObject.tp_subclasses`]" msgstr "[:c:member:`~PyTypeObject.tp_subclasses`]" #: ../../c-api/typeobj.rst:138 ../../c-api/typeobj.rst:279 -#: ../../c-api/typeobj.rst:346 ../../c-api/typeobj.rst:348 -#: ../../c-api/typeobj.rst:0 ../../c-api/typeobj.rst:429 +#: ../../c-api/typeobj.rst:348 ../../c-api/typeobj.rst:0 msgid "void *" msgstr "void *" diff --git a/c-api/unicode.po b/c-api/unicode.po index f61c8d545..881946e72 100644 --- a/c-api/unicode.po +++ b/c-api/unicode.po @@ -4,7 +4,6 @@ # FIRST AUTHOR , YEAR. # # Translators: -# souma987, 2022 # 秘湯 , 2023 # Arihiro TAKASE, 2023 # tomo, 2023 @@ -14,7 +13,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3.12\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2023-12-01 14:14+0000\n" +"POT-Creation-Date: 2023-12-08 14:14+0000\n" "PO-Revision-Date: 2021-06-28 00:50+0000\n" "Last-Translator: tomo, 2023\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" @@ -126,19 +125,15 @@ msgstr "" #: ../../c-api/unicode.rst:78 msgid "" -"Return true if the object *o* is a Unicode object or an instance of a " +"Return true if the object *obj* is a Unicode object or an instance of a " "Unicode subtype. This function always succeeds." msgstr "" -"オブジェクト *o* が Unicode オブジェクトか Unicode 型のサブタイプのインスタン" -"スである場合に真を返します。この関数は常に成功します。" #: ../../c-api/unicode.rst:84 msgid "" -"Return true if the object *o* is a Unicode object, but not an instance of a " -"subtype. This function always succeeds." +"Return true if the object *obj* is a Unicode object, but not an instance of " +"a subtype. This function always succeeds." msgstr "" -"オブジェクト *o* が Unicode オブジェクトだがサブタイプのインスタンスでない場" -"合に真を返します。この関数は常に成功します。" #: ../../c-api/unicode.rst:90 msgid "Returns ``0``. This API is kept only for backward compatibility." @@ -150,12 +145,9 @@ msgstr "" #: ../../c-api/unicode.rst:100 msgid "" -"Return the length of the Unicode string, in code points. *o* has to be a " -"Unicode object in the \"canonical\" representation (not checked)." +"Return the length of the Unicode string, in code points. *unicode* has to " +"be a Unicode object in the \"canonical\" representation (not checked)." msgstr "" -"Unicode 文字列のコードポイントでの長さを返します。\n" -"*o* は \"正統な\" 表現形式の Unicode オブジェクトでなければなりません (ただし" -"チェックはしません)。" #: ../../c-api/unicode.rst:110 msgid "" @@ -176,18 +168,15 @@ msgstr "" #: ../../c-api/unicode.rst:132 msgid "" "Return one of the PyUnicode kind constants (see above) that indicate how " -"many bytes per character this Unicode object uses to store its data. *o* " -"has to be a Unicode object in the \"canonical\" representation (not checked)." +"many bytes per character this Unicode object uses to store its data. " +"*unicode* has to be a Unicode object in the \"canonical\" representation " +"(not checked)." msgstr "" -"この Unicode がデータを保存するのに1文字あたり何バイト使っているかを示す " -"PyUnicode 種別の定数 (上を読んでください) のうち1つを返します。\n" -"*o* は \"正統な\" 表現形式の Unicode オブジェクトでなければなりません (ただし" -"チェックはしません)。" #: ../../c-api/unicode.rst:141 msgid "" -"Return a void pointer to the raw Unicode buffer. *o* has to be a Unicode " -"object in the \"canonical\" representation (not checked)." +"Return a void pointer to the raw Unicode buffer. *unicode* has to be a " +"Unicode object in the \"canonical\" representation (not checked)." msgstr "" #: ../../c-api/unicode.rst:150 @@ -211,24 +200,17 @@ msgstr "" #: ../../c-api/unicode.rst:171 msgid "" -"Read a character from a Unicode object *o*, which must be in the " +"Read a character from a Unicode object *unicode*, which must be in the " "\"canonical\" representation. This is less efficient than :c:func:" "`PyUnicode_READ` if you do multiple consecutive reads." msgstr "" -"Unicode オブジェクト *o* から文字を読み取ります。\n" -"この Unicode オブジェクトは \"正統な\" 表現形式でなければなりません。\n" -"何度も連続して読み取る場合には、このマクロは :c:func:`PyUnicode_READ` よりも" -"非効率的です。" #: ../../c-api/unicode.rst:180 msgid "" "Return the maximum code point that is suitable for creating another string " -"based on *o*, which must be in the \"canonical\" representation. This is " -"always an approximation but more efficient than iterating over the string." +"based on *unicode*, which must be in the \"canonical\" representation. This " +"is always an approximation but more efficient than iterating over the string." msgstr "" -"*o* に基づいて他の文字列を作るのに適した最大のコードポイントを返します。\n" -"この Unicode オブジェクトは \"正統な\" 表現形式でなければなりません。\n" -"この値は常に概算値ですが、文字列全体を調べるよりも効率的です。" #: ../../c-api/unicode.rst:189 msgid "" @@ -445,7 +427,7 @@ msgstr "" #: ../../c-api/unicode.rst:370 msgid "" -"Create a Unicode object from the char buffer *u*. The bytes will be " +"Create a Unicode object from the char buffer *str*. The bytes will be " "interpreted as being UTF-8 encoded. The buffer is copied into the new " "object. The return value might be a shared object, i.e. modification of the " "data is not allowed." @@ -460,19 +442,18 @@ msgid "*size* < 0," msgstr "" #: ../../c-api/unicode.rst:379 -msgid "*u* is ``NULL`` and *size* > 0" +msgid "*str* is ``NULL`` and *size* > 0" msgstr "" #: ../../c-api/unicode.rst:381 -msgid "*u* == ``NULL`` with *size* > 0 is not allowed anymore." +msgid "*str* == ``NULL`` with *size* > 0 is not allowed anymore." msgstr "" #: ../../c-api/unicode.rst:387 msgid "" -"Create a Unicode object from a UTF-8 encoded null-terminated char buffer *u*." +"Create a Unicode object from a UTF-8 encoded null-terminated char buffer " +"*str*." msgstr "" -"UTF-8 エンコードされたnull終端のchar 型バッファ *u* から Unicode オブジェクト" -"を生成します。" #: ../../c-api/unicode.rst:393 msgid "" @@ -950,37 +931,25 @@ msgstr "" #: ../../c-api/unicode.rst:659 msgid "" -"Return a substring of *str*, from character index *start* (included) to " +"Return a substring of *unicode*, from character index *start* (included) to " "character index *end* (excluded). Negative indices are not supported." msgstr "" -"*str* の文字インデックス *start* (端点を含む) から文字インデックス *end* (端" -"点を含まず) までの部分文字列を返します。\n" -"負のインデックスはサポートされていません。" #: ../../c-api/unicode.rst:668 msgid "" -"Copy the string *u* into a UCS4 buffer, including a null character, if " +"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 " "particular, a :exc:`SystemError` if *buflen* is smaller than the length of " -"*u*). *buffer* is returned on success." +"*unicode*). *buffer* is returned on success." msgstr "" -"文字列 *u* を UCS4 のバッファへコピーします。\n" -"*copy_null* が設定されている場合は、ヌル文字も含めます。\n" -"エラーが起きたときは、 ``NULL`` を返し、例外を設定します (*buflen* が *u* の" -"長さより短かった場合については、 :exc:`SystemError` が設定されます)。\n" -"成功したときは *buffer* を返します。" #: ../../c-api/unicode.rst:678 msgid "" -"Copy the string *u* into a new UCS4 buffer that is allocated using :c:func:" -"`PyMem_Malloc`. If this fails, ``NULL`` is returned with a :exc:" +"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:" "`MemoryError` set. The returned buffer always has an extra null code point " "appended." msgstr "" -"文字列 *u* を :c:func:`PyMem_Malloc` でメモリ確保された新しい UCS4 型のバッ" -"ファにコピーします。\n" -"これが失敗した場合は、 ``NULL`` を返し :exc:`MemoryError` をセットします。\n" -"返されたバッファは必ず null コードポイントが追加されています。" #: ../../c-api/unicode.rst:687 msgid "Locale Encoding" @@ -1167,20 +1136,16 @@ msgstr ":c:type:`wchar_t` をサポートするプラットフォームでの wc #: ../../c-api/unicode.rst:853 msgid "" -"Create a Unicode object from the :c:type:`wchar_t` buffer *w* of the given " -"*size*. Passing ``-1`` as the *size* indicates that the function must itself " -"compute the length, using wcslen. Return ``NULL`` on failure." +"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 " +"itself compute the length, using :c:func:`!wcslen`. Return ``NULL`` on " +"failure." msgstr "" -"*size* の :c:type:`wchar_t` バッファ *w* から Unicode オブジェクトを生成しま" -"す。\n" -"*size* として ``-1`` を渡すことで、 wcslen を使い自身で長さを計算しなければな" -"らないことを関数に指示します。\n" -"失敗すると ``NULL`` を返します。" #: ../../c-api/unicode.rst:861 msgid "" -"Copy the Unicode object contents into the :c:type:`wchar_t` buffer *w*. At " -"most *size* :c:type:`wchar_t` characters are copied (excluding a possibly " +"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 " "trailing null termination character). Return the number of :c:type:" "`wchar_t` characters copied or ``-1`` in case of an error. Note that the " "resulting :c:expr:`wchar_t*` string may or may not be null-terminated. It " @@ -1274,18 +1239,12 @@ msgstr "以下は汎用 codec の API です:" #: ../../c-api/unicode.rst:928 msgid "" -"Create a Unicode object by decoding *size* bytes of the encoded string *s*. " -"*encoding* and *errors* have the same meaning as the parameters of the same " -"name in the :func:`str` built-in function. The codec to be used is looked " -"up using the Python codec registry. Return ``NULL`` if an exception was " -"raised by the codec." +"Create a Unicode object by decoding *size* bytes of the encoded string " +"*str*. *encoding* and *errors* have the same meaning as the parameters of " +"the same name in the :func:`str` built-in function. The codec to be used is " +"looked up using the Python codec registry. Return ``NULL`` if an exception " +"was raised by the codec." msgstr "" -"*size* バイトのエンコードされた文字列 *s* をデコードして Unicode オブジェクト" -"を生成します。\n" -"*encoding* と *errors* は、組み込み関数 :func:`str` の同名のパラメータと同じ" -"意味を持ちます。\n" -"使用する codec の検索は、 Python の codec レジストリを使って行います。\n" -"codec が例外を送出した場合には ``NULL`` を返します。" #: ../../c-api/unicode.rst:938 msgid "" @@ -1313,10 +1272,8 @@ msgstr "以下は UTF-8 codec の APIです:" #: ../../c-api/unicode.rst:953 msgid "" "Create a Unicode object by decoding *size* bytes of the UTF-8 encoded string " -"*s*. Return ``NULL`` if an exception was raised by the codec." +"*str*. Return ``NULL`` if an exception was raised by the codec." msgstr "" -"UTF-8 でエンコードされた *size* バイトの文字列 *s* から Unicode オブジェクト" -"を生成します。codec が例外を送出した場合には ``NULL`` を返します。" #: ../../c-api/unicode.rst:960 msgid "" @@ -1543,10 +1500,8 @@ msgstr "以下は UTF-7 codec の API です:" #: ../../c-api/unicode.rst:1117 msgid "" "Create a Unicode object by decoding *size* bytes of the UTF-7 encoded string " -"*s*. Return ``NULL`` if an exception was raised by the codec." +"*str*. Return ``NULL`` if an exception was raised by the codec." msgstr "" -"UTF-7 でエンコードされた *size* バイトの文字列 *s* をデコードして Unicode オ" -"ブジェクトを作成します。 codec が例外を発生させたときは ``NULL`` を返します。" #: ../../c-api/unicode.rst:1124 msgid "" @@ -1571,10 +1526,9 @@ msgstr "以下は \"Unicode Escape\" codec の API です:" #: ../../c-api/unicode.rst:1139 msgid "" "Create a Unicode object by decoding *size* bytes of the Unicode-Escape " -"encoded string *s*. Return ``NULL`` if an exception was raised by the codec." +"encoded string *str*. Return ``NULL`` if an exception was raised by the " +"codec." msgstr "" -"Unicode-Escape でエンコードされた *size* バイトの文字列 *s* から Unicode オブ" -"ジェクトを生成します。codec が例外を送出した場合には ``NULL`` を返します。" #: ../../c-api/unicode.rst:1145 msgid "" @@ -1598,11 +1552,9 @@ msgstr "以下は \"Raw Unicode Escape\" codec の APIです:" #: ../../c-api/unicode.rst:1159 msgid "" "Create a Unicode object by decoding *size* bytes of the Raw-Unicode-Escape " -"encoded string *s*. Return ``NULL`` if an exception was raised by the codec." +"encoded string *str*. Return ``NULL`` if an exception was raised by the " +"codec." msgstr "" -"Raw-Unicode-Escape でエンコードされた *size* バイトの文字列 *s* から Unicode " -"オブジェクトを生成します。codec が例外を送出した場合には ``NULL`` を返しま" -"す。" #: ../../c-api/unicode.rst:1165 msgid "" @@ -1630,10 +1582,8 @@ msgstr "" #: ../../c-api/unicode.rst:1179 msgid "" "Create a Unicode object by decoding *size* bytes of the Latin-1 encoded " -"string *s*. Return ``NULL`` if an exception was raised by the codec." +"string *str*. Return ``NULL`` if an exception was raised by the codec." msgstr "" -"Latin-1 でエンコードされた *size* バイトの文字列 *s* から Unicode オブジェク" -"トを生成します。codec が例外を送出した場合には ``NULL`` を返します。" #: ../../c-api/unicode.rst:1185 msgid "" @@ -1661,10 +1611,8 @@ msgstr "" #: ../../c-api/unicode.rst:1199 msgid "" "Create a Unicode object by decoding *size* bytes of the ASCII encoded string " -"*s*. Return ``NULL`` if an exception was raised by the codec." +"*str*. Return ``NULL`` if an exception was raised by the codec." msgstr "" -"ASCII でエンコードされた *size* バイトの文字列 *s* から Unicode オブジェクト" -"を生成します。codec が例外を送出した場合には ``NULL`` を返します。" #: ../../c-api/unicode.rst:1205 msgid "" @@ -1697,13 +1645,10 @@ msgstr "以下は mapping codec の APIです:" #: ../../c-api/unicode.rst:1224 msgid "" -"Create a Unicode object by decoding *size* bytes of the encoded string *s* " +"Create a Unicode object by decoding *size* bytes of the encoded string *str* " "using the given *mapping* object. Return ``NULL`` if an exception was " "raised by the codec." msgstr "" -"与えられた *mapping* オブジェクトを使って、 *size* バイトのエンコードされた文" -"字列 *s* をデコードして Unicode オブジェクトを作成します。\n" -"codec が例外を発生させたときは ``NULL`` を返します。" #: ../../c-api/unicode.rst:1228 msgid "" @@ -1791,10 +1736,8 @@ msgstr "" #: ../../c-api/unicode.rst:1278 msgid "" "Create a Unicode object by decoding *size* bytes of the MBCS encoded string " -"*s*. Return ``NULL`` if an exception was raised by the codec." +"*str*. Return ``NULL`` if an exception was raised by the codec." msgstr "" -"MBCS でエンコードされた *size* バイトの文字列 *s* から Unicode オブジェクトを" -"生成します。codec が例外を送出した場合には ``NULL`` を返します。" #: ../../c-api/unicode.rst:1285 msgid "" @@ -1870,12 +1813,9 @@ msgstr "" #: ../../c-api/unicode.rst:1338 msgid "" "Split a Unicode string at line breaks, returning a list of Unicode strings. " -"CRLF is considered to be one line break. If *keepend* is ``0``, the line " +"CRLF is considered to be one line break. If *keepends* is ``0``, the Line " "break characters are not included in the resulting strings." msgstr "" -"Unicode 文字列を改行文字で区切り、Unicode 文字列からなるリストを返します。\n" -"CRLF は一個の改行文字とみなします。\n" -"*keepend* が ``0`` の場合、分割結果のリスト内に改行文字を含めません。" #: ../../c-api/unicode.rst:1345 msgid "" @@ -1887,66 +1827,47 @@ msgstr "" #: ../../c-api/unicode.rst:1352 msgid "" -"Return ``1`` if *substr* matches ``str[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." +"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 "" -"*substr* が ``str[start:end]`` の末端 (*direction* == ``-1`` は先頭一致、 " -"*direction* == ``1`` は末尾一致) でとマッチする場合に ``1`` を返し、それ以外" -"の場合には ``0`` を返します。\n" -"エラーが発生した時は ``-1`` を返します。" #: ../../c-api/unicode.rst:1360 msgid "" -"Return the first position of *substr* in ``str[start:end]`` using the given " -"*direction* (*direction* == ``1`` means to do a forward search, *direction* " -"== ``-1`` a backward search). The return value is the index of the first " -"match; a value of ``-1`` indicates that no match was found, and ``-2`` " -"indicates that an error occurred and an exception has been set." +"Return the first position of *substr* in ``unicode[start:end]`` using the " +"given *direction* (*direction* == ``1`` means to do a forward search, " +"*direction* == ``-1`` a backward search). The return value is the index of " +"the first match; a value of ``-1`` indicates that no match was found, and " +"``-2`` indicates that an error occurred and an exception has been set." msgstr "" -"``str[start:end]`` 中に *substr* が最初に出現する場所を返します。\n" -"このとき指定された検索方向 *direction* (*direction* == ``1`` は順方向検索、 " -"*direction* == ``-1`` は逆方向検索) で検索します。\n" -"戻り値は最初にマッチが見つかった場所のインデックスです; 戻り値 ``-1`` はマッ" -"チが見つからなかったことを表し、 ``-2`` はエラーが発生して例外情報が設定され" -"ていることを表します。" #: ../../c-api/unicode.rst:1370 msgid "" -"Return the first position of the character *ch* in ``str[start:end]`` using " -"the given *direction* (*direction* == ``1`` means to do a forward search, " -"*direction* == ``-1`` a backward search). The return value is the index of " -"the first match; a value of ``-1`` indicates that no match was found, and " -"``-2`` indicates that an error occurred and an exception has been set." +"Return the first position of the character *ch* in ``unicode[start:end]`` " +"using the given *direction* (*direction* == ``1`` means to do a forward " +"search, *direction* == ``-1`` a backward search). The return value is the " +"index of the first match; a value of ``-1`` indicates that no match was " +"found, and ``-2`` indicates that an error occurred and an exception has been " +"set." msgstr "" -"``str[start:end]`` 中に文字 *ch* が最初に出現する場所を返します。\n" -"このとき指定された検索方向 *direction* (*direction* == ``1`` は順方向検索、 " -"*direction* == ``-1`` は逆方向検索) で検索します。\n" -"戻り値は最初にマッチが見つかった場所のインデックスです; 戻り値 ``-1`` はマッ" -"チが見つからなかったことを表し、 ``-2`` はエラーが発生して例外情報が設定され" -"ていることを表します。" #: ../../c-api/unicode.rst:1378 -msgid "*start* and *end* are now adjusted to behave like ``str[start:end]``." +msgid "" +"*start* and *end* are now adjusted to behave like ``unicode[start:end]``." msgstr "" #: ../../c-api/unicode.rst:1385 msgid "" -"Return the number of non-overlapping occurrences of *substr* in ``str[start:" -"end]``. Return ``-1`` if an error occurred." +"Return the number of non-overlapping occurrences of *substr* in " +"``unicode[start:end]``. Return ``-1`` if an error occurred." msgstr "" -"``str[start:end]`` に *substr* が重複することなく出現する回数を返します。エ" -"ラーが発生した場合には ``-1`` を返します。" #: ../../c-api/unicode.rst:1392 msgid "" -"Replace at most *maxcount* occurrences of *substr* in *str* with *replstr* " -"and return the resulting Unicode object. *maxcount* == ``-1`` means replace " -"all occurrences." +"Replace at most *maxcount* occurrences of *substr* in *unicode* with " +"*replstr* and return the resulting Unicode object. *maxcount* == ``-1`` " +"means replace all occurrences." msgstr "" -"*str* 中に出現する *substr* を最大で *maxcount* 個 *replstr* に置換し、置換結" -"果である Unicode オブジェクトを返します。\n" -"*maxcount* == ``-1`` にすると、文字列中に現れる全ての *substr* を置換します。" #: ../../c-api/unicode.rst:1399 msgid "" @@ -1967,16 +1888,11 @@ msgstr "" #: ../../c-api/unicode.rst:1408 msgid "" -"Compare a Unicode object, *uni*, with *string* and return ``-1``, ``0``, " +"Compare a Unicode object, *unicode*, with *string* and return ``-1``, ``0``, " "``1`` for less than, equal, and greater than, respectively. It is best to " "pass only ASCII-encoded strings, but the function interprets the input " "string as ISO-8859-1 if it contains non-ASCII characters." msgstr "" -"Unicode オブジェクト *uni* と *string* を比較して、左引数が右引数より小さい場" -"合、左右引数が等価の場合、左引数が右引数より大きい場合に対して、それぞれ " -"``-1``, ``0``, ``1`` を返します。\n" -"ASCII エンコードされた文字列だけを渡すのが最も良いですが、入力文字列に非 " -"ASCII 文字が含まれている場合は ISO-8859-1 として解釈します。" #: ../../c-api/unicode.rst:1413 msgid "This function does not raise exceptions." @@ -2014,31 +1930,28 @@ msgstr "" #: ../../c-api/unicode.rst:1436 msgid "" -"Check whether *element* is contained in *container* and return true or false " +"Check whether *substr* is contained in *unicode* and return true or false " "accordingly." msgstr "" -"*element* が *container* 内にあるか調べ、その結果に応じて真または偽を返しま" -"す。" #: ../../c-api/unicode.rst:1439 msgid "" -"*element* has to coerce to a one element Unicode string. ``-1`` is returned " +"*substr* has to coerce to a one element Unicode string. ``-1`` is returned " "if there was an error." msgstr "" -"*element* は単要素の Unicode 文字に型強制できなければなりません。エラーが生じ" -"た場合には ``-1`` を返します。" #: ../../c-api/unicode.rst:1445 msgid "" -"Intern the argument *\\*string* in place. The argument must be the address " -"of a pointer variable pointing to a Python Unicode string object. If there " -"is an existing interned string that is the same as *\\*string*, it sets " -"*\\*string* to it (releasing the reference to the old string object and " -"creating a new :term:`strong reference` to the interned string object), " -"otherwise it leaves *\\*string* alone and interns it (creating a new :term:" -"`strong reference`). (Clarification: even though there is a lot of talk " -"about references, think of this function as reference-neutral; you own the " -"object after the call if and only if you owned it before the call.)" +"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. " +"If there is an existing interned string that is the same as :c:expr:" +"`*p_unicode`, it sets :c:expr:`*p_unicode` to it (releasing the reference to " +"the old string object and creating a new :term:`strong reference` to the " +"interned string object), otherwise it leaves :c:expr:`*p_unicode` alone and " +"interns it (creating a new :term:`strong reference`). (Clarification: even " +"though there is a lot of talk about references, think of this function as " +"reference-neutral; you own the object after the call if and only if you " +"owned it before the call.)" msgstr "" #: ../../c-api/unicode.rst:1458 diff --git a/glossary.po b/glossary.po index 2a2b7e24a..e5426d510 100644 --- a/glossary.po +++ b/glossary.po @@ -4,7 +4,6 @@ # FIRST AUTHOR , YEAR. # # Translators: -# Shin Saito, 2021 # tomo, 2021 # Yusuke Miyazaki , 2021 # mollinaca, 2021 @@ -18,7 +17,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3.12\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2023-11-24 14:13+0000\n" +"POT-Creation-Date: 2023-12-08 14:14+0000\n" "PO-Revision-Date: 2021-06-28 00:47+0000\n" "Last-Translator: Nozomu Kaneko , 2023\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" @@ -362,16 +361,10 @@ msgstr "binary file" msgid "" "A :term:`file object` able to read and write :term:`bytes-like objects " "`. Examples of binary files are files opened in binary " -"mode (``'rb'``, ``'wb'`` or ``'rb+'``), :data:`sys.stdin.buffer`, :data:`sys." -"stdout.buffer`, and instances of :class:`io.BytesIO` and :class:`gzip." -"GzipFile`." +"mode (``'rb'``, ``'wb'`` or ``'rb+'``), :data:`sys.stdin.buffer `, :data:`sys.stdout.buffer `, and instances of :class:`io." +"BytesIO` and :class:`gzip.GzipFile`." msgstr "" -"(バイナリファイル)\n" -":term:`bytes-like オブジェクト ` の読み込みおよび書き込み" -"ができる :term:`ファイルオブジェクト ` です。\n" -"バイナリファイルの例は、バイナリモード (``'rb'``, ``'wb'`` or ``'rb+'``) で開" -"かれたファイル、 :data:`sys.stdin.buffer` 、 :data:`sys.stdout.buffer` 、 :" -"class:`io.BytesIO` や :class:`gzip.GzipFile`. のインスタンスです。" #: ../../glossary.rst:167 msgid "" @@ -689,26 +682,18 @@ msgstr "descriptor" #: ../../glossary.rst:316 msgid "" -"Any object which defines the methods :meth:`__get__`, :meth:`__set__`, or :" -"meth:`__delete__`. When a class attribute is a descriptor, its special " -"binding behavior is triggered upon attribute lookup. Normally, using *a.b* " -"to get, set or delete an attribute looks up the object named *b* in the " -"class dictionary for *a*, but if *b* is a descriptor, the respective " -"descriptor method gets called. Understanding descriptors is a key to a deep " -"understanding of Python because they are the basis for many features " -"including functions, methods, properties, class methods, static methods, and " -"reference to super classes." -msgstr "" -"(デスクリプタ) メソッド :meth:`__get__`, :meth:`__set__`, あるいは :meth:" -"`__delete__` を定義しているオブジェクトです。あるクラス属性がデスクリプタであ" -"るとき、属性探索によって、束縛されている特別な動作が呼び出されます。通常、" -"get,set,deleteのために *a.b* と書くと、 *a* のクラス辞書内でオブジェクト *b* " -"を検索しますが、 *b* がデスクリプタであればそれぞれのデスクリプタメソッドが呼" -"び出されます。デスクリプタの理解は、 Python を深く理解する上で鍵となります。" -"というのは、デスクリプタこそが、関数、メソッド、プロパティ、クラスメソッド、" -"静的メソッド、そしてスーパクラスの参照といった多くの機能の基盤だからです。" - -#: ../../glossary.rst:326 +"Any object which defines the methods :meth:`~object.__get__`, :meth:`~object." +"__set__`, or :meth:`~object.__delete__`. When a class attribute is a " +"descriptor, its special binding behavior is triggered upon attribute " +"lookup. Normally, using *a.b* to get, set or delete an attribute looks up " +"the object named *b* in the class dictionary for *a*, but if *b* is a " +"descriptor, the respective descriptor method gets called. Understanding " +"descriptors is a key to a deep understanding of Python because they are the " +"basis for many features including functions, methods, properties, class " +"methods, static methods, and reference to super classes." +msgstr "" + +#: ../../glossary.rst:327 msgid "" "For more information about descriptors' methods, see :ref:`descriptors` or " "the :ref:`Descriptor How To Guide `." @@ -716,25 +701,22 @@ msgstr "" "デスクリプタのメソッドに関しての詳細は、 :ref:`descriptors` や :ref:" "`Descriptor How To Guide ` を参照してください。" -#: ../../glossary.rst:328 +#: ../../glossary.rst:329 msgid "dictionary" msgstr "dictionary" -#: ../../glossary.rst:330 +#: ../../glossary.rst:331 msgid "" "An associative array, where arbitrary keys are mapped to values. The keys " -"can be any object with :meth:`__hash__` and :meth:`__eq__` methods. Called a " -"hash in Perl." +"can be any object with :meth:`~object.__hash__` and :meth:`~object.__eq__` " +"methods. Called a hash in Perl." msgstr "" -"(辞書) 任意のキーを値に対応付ける連想配列です。 :meth:`__hash__` メソッドと :" -"meth:`__eq__` メソッドを実装した任意のオブジェクトをキーにできます。 Perl で" -"はハッシュ (hash) と呼ばれています。" -#: ../../glossary.rst:333 +#: ../../glossary.rst:335 msgid "dictionary comprehension" msgstr "dictionary comprehension" -#: ../../glossary.rst:335 +#: ../../glossary.rst:337 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 " @@ -746,11 +728,11 @@ msgstr "" "range(10)}`` とすると、キー ``n`` を値 ``n ** 2`` に対応付ける辞書を生成しま" "す。 :ref:`comprehensions` を参照してください。" -#: ../../glossary.rst:339 +#: ../../glossary.rst:341 msgid "dictionary view" msgstr "dictionary view" -#: ../../glossary.rst:341 +#: ../../glossary.rst:343 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 " @@ -767,11 +749,11 @@ msgstr "" "さい。 \n" ":ref:`dict-views` を参照してください。" -#: ../../glossary.rst:347 +#: ../../glossary.rst:349 msgid "docstring" msgstr "docstring" -#: ../../glossary.rst:349 +#: ../../glossary.rst:351 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 " @@ -785,11 +767,11 @@ msgstr "" "(訳注: 属性として参照できる)ので、オブジェクトのドキュメントを書く標準的な" "場所です。" -#: ../../glossary.rst:355 +#: ../../glossary.rst:357 msgid "duck-typing" msgstr "duck-typing" -#: ../../glossary.rst:357 +#: ../../glossary.rst:359 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 " @@ -811,11 +793,11 @@ msgstr "" "class>` で補完することもできます。) その代わり、典型的に :func:`hasattr` 判定" "や :term:`EAFP` プログラミングを利用します。" -#: ../../glossary.rst:366 +#: ../../glossary.rst:368 msgid "EAFP" msgstr "EAFP" -#: ../../glossary.rst:368 +#: ../../glossary.rst:370 msgid "" "Easier to ask for forgiveness than permission. This common Python coding " "style assumes the existence of valid keys or attributes and catches " @@ -832,11 +814,11 @@ msgstr "" "す。このテクニックは、C のような言語でよく使われている :term:`LBYL` スタイル" "と対照的なものです。" -#: ../../glossary.rst:374 +#: ../../glossary.rst:376 msgid "expression" msgstr "expression" -#: ../../glossary.rst:376 +#: ../../glossary.rst:378 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, " @@ -852,11 +834,11 @@ msgstr "" "素が式というわけではありません。 :keyword:`while` のように、式としては使えな" "い :term:`文 ` もあります。代入も式ではなく文です。" -#: ../../glossary.rst:383 +#: ../../glossary.rst:385 msgid "extension module" msgstr "extension module" -#: ../../glossary.rst:385 +#: ../../glossary.rst:387 msgid "" "A module written in C or C++, using Python's C API to interact with the core " "and with user code." @@ -864,11 +846,11 @@ msgstr "" "(拡張モジュール) C や C++ で書かれたモジュールで、Python の C API を利用して " "Python コアやユーザーコードとやりとりします。" -#: ../../glossary.rst:387 +#: ../../glossary.rst:389 msgid "f-string" msgstr "f-string" -#: ../../glossary.rst:389 +#: ../../glossary.rst:391 msgid "" "String literals prefixed with ``'f'`` or ``'F'`` are commonly called \"f-" "strings\" which is short for :ref:`formatted string literals `. " @@ -878,27 +860,21 @@ msgstr "" "は :ref:`フォーマット済み文字列リテラル ` の短縮形の名称です。\n" ":pep:`498` も参照してください。" -#: ../../glossary.rst:392 +#: ../../glossary.rst:394 msgid "file object" msgstr "file object" -#: ../../glossary.rst:394 +#: ../../glossary.rst:396 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 " +"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 " "created, a file object can mediate access to a real on-disk file or to " "another type of storage or communication device (for example standard input/" "output, in-memory buffers, sockets, pipes, etc.). File objects are also " "called :dfn:`file-like objects` or :dfn:`streams`." msgstr "" -"(ファイルオブジェクト) 下位のリソースへのファイル指向 API (:meth:`read()` " -"や :meth:`write()` メソッドを持つもの) を公開しているオブジェクトです。ファイ" -"ルオブジェクトは、作成された手段によって、実際のディスク上のファイルや、その" -"他のタイプのストレージや通信デバイス (例えば、標準入出力、インメモリバッ" -"ファ、ソケット、パイプ、等) へのアクセスを媒介できます。ファイルオブジェクト" -"は :dfn:`file-like objects` や :dfn:`streams` とも呼ばれます。" -#: ../../glossary.rst:402 +#: ../../glossary.rst:404 msgid "" "There are actually three categories of file objects: raw :term:`binary files " "`, buffered :term:`binary files ` and :term:`text " @@ -912,25 +888,25 @@ msgstr "" "`io` モジュールで定義されています。ファイルオブジェクトを作る標準的な方法は :" "func:`open` 関数を使うことです。" -#: ../../glossary.rst:407 +#: ../../glossary.rst:409 msgid "file-like object" msgstr "file-like object" -#: ../../glossary.rst:409 +#: ../../glossary.rst:411 msgid "A synonym for :term:`file object`." msgstr ":term:`file object` と同義です。" -#: ../../glossary.rst:410 +#: ../../glossary.rst:412 msgid "filesystem encoding and error handler" msgstr "" -#: ../../glossary.rst:412 +#: ../../glossary.rst:414 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:415 +#: ../../glossary.rst:417 msgid "" "The filesystem encoding must guarantee to successfully decode all bytes " "below 128. If the file system encoding fails to provide this guarantee, API " @@ -941,14 +917,14 @@ msgstr "" "でこれが保証されなかった場合は、API 関数が :exc:`UnicodeError` を送出すること" "があります。" -#: ../../glossary.rst:419 +#: ../../glossary.rst:421 msgid "" "The :func:`sys.getfilesystemencoding` and :func:`sys." "getfilesystemencodeerrors` functions can be used to get the filesystem " "encoding and error handler." msgstr "" -#: ../../glossary.rst:423 +#: ../../glossary.rst:425 msgid "" "The :term:`filesystem encoding and error handler` are configured at Python " "startup by the :c:func:`PyConfig_Read` function: see :c:member:`~PyConfig." @@ -956,15 +932,15 @@ msgid "" "c:type:`PyConfig`." msgstr "" -#: ../../glossary.rst:428 +#: ../../glossary.rst:430 msgid "See also the :term:`locale encoding`." msgstr "" -#: ../../glossary.rst:429 +#: ../../glossary.rst:431 msgid "finder" msgstr "finder" -#: ../../glossary.rst:431 +#: ../../glossary.rst:433 msgid "" "An object that tries to find the :term:`loader` for a module that is being " "imported." @@ -973,7 +949,7 @@ msgstr "" "インポートされているモジュールの :term:`loader` の発見を試行するオブジェクト" "です。" -#: ../../glossary.rst:434 +#: ../../glossary.rst:436 msgid "" "Since Python 3.3, there are two types of finder: :term:`meta path finders " "` for use with :data:`sys.meta_path`, and :term:`path " @@ -983,16 +959,16 @@ msgstr "" ":data:`sys.meta_path` で使用される :term:`meta path finder` と、\n" ":data:`sys.path_hooks` で使用される :term:`path entry finder` です。" -#: ../../glossary.rst:438 +#: ../../glossary.rst:440 msgid "See :pep:`302`, :pep:`420` and :pep:`451` for much more detail." msgstr "" "詳細については :pep:`302`、:pep:`420` および :pep:`451` を参照してください。" -#: ../../glossary.rst:439 +#: ../../glossary.rst:441 msgid "floor division" msgstr "floor division" -#: ../../glossary.rst:441 +#: ../../glossary.rst:443 msgid "" "Mathematical division that rounds down to nearest integer. The floor " "division operator is ``//``. For example, the expression ``11 // 4`` " @@ -1008,11 +984,11 @@ msgstr "" "を行う) ので ``-3`` になることに注意してください。\n" ":pep:`238` を参照してください。" -#: ../../glossary.rst:446 +#: ../../glossary.rst:448 msgid "function" msgstr "関数" -#: ../../glossary.rst:448 +#: ../../glossary.rst:450 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 " @@ -1024,16 +1000,16 @@ msgstr "" "す。 :term:`仮引数 `、:term:`メソッド `、:ref:`function` " "を参照してください。" -#: ../../glossary.rst:452 +#: ../../glossary.rst:454 msgid "function annotation" msgstr "function annotation" -#: ../../glossary.rst:454 +#: ../../glossary.rst:456 msgid "An :term:`annotation` of a function parameter or return value." msgstr "" "(関数アノテーション) 関数のパラメータや返り値の :term:`annotation` です。" -#: ../../glossary.rst:456 +#: ../../glossary.rst:458 msgid "" "Function annotations are usually used for :term:`type hints `: " "for example, this function is expected to take two :class:`int` arguments " @@ -1043,11 +1019,11 @@ msgstr "" "す: 例えば、この関数は 2 つの :class:`int` 型の引数を取ると期待され、また :" "class:`int` 型の返り値を持つと期待されています。" -#: ../../glossary.rst:464 +#: ../../glossary.rst:466 msgid "Function annotation syntax is explained in section :ref:`function`." msgstr "関数アノテーションの文法は :ref:`function` の節で解説されています。" -#: ../../glossary.rst:466 +#: ../../glossary.rst:468 msgid "" "See :term:`variable annotation` and :pep:`484`, which describe this " "functionality. Also see :ref:`annotations-howto` for best practices on " @@ -1057,11 +1033,11 @@ msgstr "" "また、アノテーションを利用するベストプラクティスとして :ref:`annotations-" "howto` も参照してください。" -#: ../../glossary.rst:470 +#: ../../glossary.rst:472 msgid "__future__" msgstr "__future__" -#: ../../glossary.rst:472 +#: ../../glossary.rst:474 msgid "" "A :ref:`future statement `, ``from __future__ import ``, " "directs the compiler to compile the current module using syntax or semantics " @@ -1072,11 +1048,11 @@ msgid "" "default::" msgstr "" -#: ../../glossary.rst:483 +#: ../../glossary.rst:485 msgid "garbage collection" msgstr "garbage collection" -#: ../../glossary.rst:485 +#: ../../glossary.rst:487 msgid "" "The process of freeing memory when it is not used anymore. Python performs " "garbage collection via reference counting and a cyclic garbage collector " @@ -1088,11 +1064,11 @@ msgstr "" "てガベージコレクションを行います。\n" "ガベージコレクタは :mod:`gc` モジュールを使って操作できます。" -#: ../../glossary.rst:491 ../../glossary.rst:490 +#: ../../glossary.rst:493 ../../glossary.rst:492 msgid "generator" msgstr "ジェネレータ" -#: ../../glossary.rst:493 +#: ../../glossary.rst:495 msgid "" "A function which returns a :term:`generator iterator`. It looks like a " "normal function except that it contains :keyword:`yield` expressions for " @@ -1105,7 +1081,7 @@ msgstr "" ":keyword:`yield` 式は、 for ループで使用できたり、:func:`next` 関数で値を 1 " "つずつ取り出したりできる、値の並びを生成するのに使用されます。" -#: ../../glossary.rst:498 +#: ../../glossary.rst:500 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 " @@ -1115,17 +1091,17 @@ msgstr "" "を指す場合があります。\n" "意図された意味が明らかでない場合、 明瞭化のために完全な単語を使用します。" -#: ../../glossary.rst:501 +#: ../../glossary.rst:503 msgid "generator iterator" msgstr "generator iterator" -#: ../../glossary.rst:503 +#: ../../glossary.rst:505 msgid "An object created by a :term:`generator` function." msgstr "" "(ジェネレータイテレータ)\n" ":term:`generator` 関数で生成されるオブジェクトです。" -#: ../../glossary.rst:505 +#: ../../glossary.rst:507 msgid "" "Each :keyword:`yield` temporarily suspends processing, remembering the " "location execution state (including local variables and pending try-" @@ -1137,11 +1113,11 @@ msgstr "" "*ジェネレータイテレータ* が再開されると、中断した位置を取得します (通常の関数" "が実行のたびに新しい状態から開始するのと対照的です)。" -#: ../../glossary.rst:512 ../../glossary.rst:511 +#: ../../glossary.rst:514 ../../glossary.rst:513 msgid "generator expression" msgstr "generator expression" -#: ../../glossary.rst:514 +#: ../../glossary.rst:516 msgid "" "An expression that returns an iterator. It looks like a normal expression " "followed by a :keyword:`!for` clause defining a loop variable, range, and an " @@ -1153,11 +1129,11 @@ msgstr "" "keyword:`!if` 節がつづいているように見えます。\n" "こうして構成された式は、外側の関数に向けて値を生成します::" -#: ../../glossary.rst:521 +#: ../../glossary.rst:523 msgid "generic function" msgstr "generic function" -#: ../../glossary.rst:523 +#: ../../glossary.rst:525 msgid "" "A function composed of multiple functions implementing the same operation " "for different types. Which implementation should be used during a call is " @@ -1166,7 +1142,7 @@ msgstr "" "(ジェネリック関数) 異なる型に対し同じ操作をする関数群から構成される関数です。" "呼び出し時にどの実装を用いるかはディスパッチアルゴリズムにより決定されます。" -#: ../../glossary.rst:527 +#: ../../glossary.rst:529 msgid "" "See also the :term:`single dispatch` glossary entry, the :func:`functools." "singledispatch` decorator, and :pep:`443`." @@ -1174,36 +1150,36 @@ msgstr "" ":term:`single dispatch`、:func:`functools.singledispatch` デコレータ、:pep:" "`443` を参照してください。" -#: ../../glossary.rst:529 +#: ../../glossary.rst:531 msgid "generic type" msgstr "" -#: ../../glossary.rst:531 +#: ../../glossary.rst:533 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:536 +#: ../../glossary.rst:538 msgid "" "For more details, see :ref:`generic alias types`, :pep:" "`483`, :pep:`484`, :pep:`585`, and the :mod:`typing` module." msgstr "" -#: ../../glossary.rst:538 +#: ../../glossary.rst:540 msgid "GIL" msgstr "GIL" -#: ../../glossary.rst:540 +#: ../../glossary.rst:542 msgid "See :term:`global interpreter lock`." msgstr ":term:`global interpreter lock` を参照してください。" -#: ../../glossary.rst:541 +#: ../../glossary.rst:543 msgid "global interpreter lock" msgstr "global interpreter lock" -#: ../../glossary.rst:543 +#: ../../glossary.rst:545 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 " @@ -1221,7 +1197,7 @@ msgstr "" "チプロセッサマシンが生じる並列化のコストと引き換えに、インタプリタを簡単にマ" "ルチスレッド化できるようになります。" -#: ../../glossary.rst:552 +#: ../../glossary.rst:554 msgid "" "However, some extension modules, either standard or third-party, are " "designed so as to release the GIL when doing computationally intensive tasks " @@ -1232,7 +1208,7 @@ msgstr "" "の計算の重い処理をするときに GIL を解除するように設計されています。また、I/O " "処理をする場合 GIL は常に解除されます。" -#: ../../glossary.rst:557 +#: ../../glossary.rst:559 msgid "" "Past efforts to create a \"free-threaded\" interpreter (one which locks " "shared data at a much finer granularity) have not been successful because " @@ -1245,11 +1221,11 @@ msgstr "" "フォーマンスが悪かったので成功しませんでした。このパフォーマンスの問題を克服" "しようとすると、実装がより複雑になり保守コストが増加すると考えられています。" -#: ../../glossary.rst:563 +#: ../../glossary.rst:565 msgid "hash-based pyc" msgstr "hash-based pyc" -#: ../../glossary.rst:565 +#: ../../glossary.rst:567 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-" @@ -1259,23 +1235,19 @@ msgstr "" "の最終更新時刻ではなくハッシュ値を使用するバイトコードのキャッシュファイルで" "す。:ref:`pyc-invalidation` を参照してください。" -#: ../../glossary.rst:568 +#: ../../glossary.rst:570 msgid "hashable" msgstr "hashable" -#: ../../glossary.rst:570 +#: ../../glossary.rst:572 msgid "" "An object is *hashable* if it has a hash value which never changes during " -"its lifetime (it needs a :meth:`__hash__` method), and can be compared to " -"other objects (it needs an :meth:`__eq__` method). Hashable objects which " -"compare equal must have the same hash value." +"its lifetime (it needs a :meth:`~object.__hash__` method), and can be " +"compared to other objects (it needs an :meth:`~object.__eq__` method). " +"Hashable objects which compare equal must have the same hash value." msgstr "" -"(ハッシュ可能) *ハッシュ可能* なオブジェクトとは、生存期間中変わらないハッ" -"シュ値を持ち (:meth:`__hash__` メソッドが必要)、他のオブジェクトと比較ができ" -"る (:meth:`__eq__` メソッドが必要) オブジェクトです。同値なハッシュ可能オブ" -"ジェクトは必ず同じハッシュ値を持つ必要があります。" -#: ../../glossary.rst:575 +#: ../../glossary.rst:578 msgid "" "Hashability makes an object usable as a dictionary key and a set member, " "because these data structures use the hash value internally." @@ -1283,7 +1255,7 @@ msgstr "" "ハッシュ可能なオブジェクトは辞書のキーや集合のメンバーとして使えます。辞書や" "集合のデータ構造は内部でハッシュ値を使っているからです。" -#: ../../glossary.rst:578 +#: ../../glossary.rst:581 msgid "" "Most of Python's immutable built-in objects are hashable; mutable containers " "(such as lists or dictionaries) are not; immutable containers (such as " @@ -1301,11 +1273,11 @@ msgstr "" "それらは全て (自身を除いて) 比較結果は非等価であり、ハッシュ値は :func:`id` " "より得られます。" -#: ../../glossary.rst:585 +#: ../../glossary.rst:588 msgid "IDLE" msgstr "IDLE" -#: ../../glossary.rst:587 +#: ../../glossary.rst:590 msgid "" "An Integrated Development and Learning Environment for Python. :ref:`idle` " "is a basic editor and interpreter environment which ships with the standard " @@ -1315,11 +1287,11 @@ msgstr "" "(Learning Environment) です。:ref:`idle` は Python の標準的な配布に同梱されて" "いる基本的な機能のエディタとインタプリタ環境です。" -#: ../../glossary.rst:590 +#: ../../glossary.rst:593 msgid "immutable" msgstr "immutable" -#: ../../glossary.rst:592 +#: ../../glossary.rst:595 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 " @@ -1333,11 +1305,11 @@ msgstr "" "なりません。イミュータブルなオブジェクトは、固定のハッシュ値が必要となる状況" "で重要な役割を果たします。辞書のキーがその例です。" -#: ../../glossary.rst:597 +#: ../../glossary.rst:600 msgid "import path" msgstr "import path" -#: ../../glossary.rst:599 +#: ../../glossary.rst:602 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 " @@ -1349,11 +1321,11 @@ msgstr "" "ら来ますが、サブパッケージの場合は親パッケージの ``__path__`` 属性からも来ま" "す。" -#: ../../glossary.rst:604 +#: ../../glossary.rst:607 msgid "importing" msgstr "importing" -#: ../../glossary.rst:606 +#: ../../glossary.rst:609 msgid "" "The process by which Python code in one module is made available to Python " "code in another module." @@ -1361,11 +1333,11 @@ msgstr "" "あるモジュールの Python コードが別のモジュールの Python コードで使えるように" "する処理です。" -#: ../../glossary.rst:608 +#: ../../glossary.rst:611 msgid "importer" msgstr "importer" -#: ../../glossary.rst:610 +#: ../../glossary.rst:613 msgid "" "An object that both finds and loads a module; both a :term:`finder` and :" "term:`loader` object." @@ -1373,11 +1345,11 @@ msgstr "" "モジュールを探してロードするオブジェクト。 :term:`finder` と :term:`loader` " "のどちらでもあるオブジェクト。" -#: ../../glossary.rst:612 +#: ../../glossary.rst:615 msgid "interactive" msgstr "interactive" -#: ../../glossary.rst:614 +#: ../../glossary.rst:617 msgid "" "Python has an interactive interpreter which means you can enter statements " "and expressions at the interpreter prompt, immediately execute them and see " @@ -1392,11 +1364,11 @@ msgstr "" "デアを試してみたり、モジュールやパッケージの中を覗いてみる(``help(x)`` を覚え" "ておいてください) のに非常に便利なツールです。" -#: ../../glossary.rst:620 +#: ../../glossary.rst:623 msgid "interpreted" msgstr "interpreted" -#: ../../glossary.rst:622 +#: ../../glossary.rst:625 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. " @@ -1412,11 +1384,11 @@ msgstr "" "常、コンパイラ形式の言語よりも開発/デバッグのサイクルは短いものの、プログラ" "ムの実行は一般に遅いです。 :term:`対話的 ` も参照してください。" -#: ../../glossary.rst:629 +#: ../../glossary.rst:632 msgid "interpreter shutdown" msgstr "interpreter shutdown" -#: ../../glossary.rst:631 +#: ../../glossary.rst:634 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 " @@ -1438,7 +1410,7 @@ msgstr "" "機能しない(よくある例はライブラリーモジュールや warning 機構です) ために様々" "な例外に直面します。" -#: ../../glossary.rst:640 +#: ../../glossary.rst:643 msgid "" "The main reason for interpreter shutdown is that the ``__main__`` module or " "the script being run has finished executing." @@ -1446,95 +1418,70 @@ msgstr "" "インタープリタがシャットダウンする主な理由は ``__main__`` モジュールや実行さ" "れていたスクリプトの実行が終了したことです。" -#: ../../glossary.rst:642 +#: ../../glossary.rst:645 msgid "iterable" msgstr "iterable" -#: ../../glossary.rst:644 +#: ../../glossary.rst:647 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`, " "and :class:`tuple`) and some non-sequence types like :class:`dict`, :term:" "`file objects `, and objects of any classes you define with an :" -"meth:`__iter__` method or with a :meth:`~object.__getitem__` method that " -"implements :term:`sequence` semantics." +"meth:`~iterator.__iter__` method or with a :meth:`~object.__getitem__` " +"method that implements :term:`sequence` semantics." msgstr "" -#: ../../glossary.rst:651 +#: ../../glossary.rst:655 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 " "iterable object is passed as an argument to the built-in function :func:" "`iter`, it returns an iterator for the object. This iterator is good for " "one pass over the set of values. When using iterables, it is usually not " -"necessary to call :func:`iter` or deal with iterator objects yourself. The " -"``for`` statement does that automatically for you, creating a temporary " -"unnamed variable to hold the iterator for the duration of the loop. See " -"also :term:`iterator`, :term:`sequence`, and :term:`generator`." -msgstr "" -"反復可能オブジェクトは :keyword:`for` ループ内やその他多くのシーケンス (訳" -"注: ここでのシーケンスとは、シーケンス型ではなくただの列という意味)が必要とな" -"る状況 (:func:`zip`, :func:`map`, ...) で利用できます。\n" -"反復可能オブジェクトを組み込み関数 :func:`iter` の引数として渡すと、 オブジェ" -"クトに対するイテレータを返します。\n" -"このイテレータは一連の値を引き渡す際に便利です。\n" -"通常は反復可能オブジェクトを使う際には、 :func:`iter` を呼んだりイテレータオ" -"ブジェクトを自分で操作する必要はありません。\n" -"``for`` 文ではこの操作を自動的に行い、一時的な無名の変数を作成してループを回" -"している間イテレータを保持します。\n" -":term:`イテレータ ` 、 :term:`シーケンス ` 、 :term:`ジェ" -"ネレータ ` も参照してください。 " - -#: ../../glossary.rst:661 +"necessary to call :func:`iter` or deal with iterator objects yourself. The :" +"keyword:`for` statement does that automatically for you, creating a " +"temporary unnamed variable to hold the iterator for the duration of the " +"loop. See also :term:`iterator`, :term:`sequence`, and :term:`generator`." +msgstr "" + +#: ../../glossary.rst:665 msgid "iterator" msgstr "iterator" -#: ../../glossary.rst:663 +#: ../../glossary.rst:667 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 :" "func:`next`) return successive items in the stream. When no more data are " "available a :exc:`StopIteration` exception is raised instead. At this " -"point, the iterator object is exhausted and any further calls to its :meth:" -"`__next__` method just raise :exc:`StopIteration` again. Iterators are " -"required to have an :meth:`__iter__` method that returns the iterator object " -"itself so every iterator is also iterable and may be used in most places " -"where other iterables are accepted. One notable exception is code which " -"attempts multiple iteration passes. A container object (such as a :class:" -"`list`) produces a fresh new iterator each time you pass it to the :func:" -"`iter` function or use it in a :keyword:`for` loop. Attempting this with an " -"iterator will just return the same exhausted iterator object used in the " -"previous iteration pass, making it appear like an empty container." -msgstr "" -"(イテレータ) データの流れを表現するオブジェクトです。イテレータの :meth:" -"`~iterator.__next__` メソッドを繰り返し呼び出す (または組み込み関数 :func:" -"`next` に渡す) と、流れの中の要素を一つずつ返します。データがなくなると、代わ" -"りに :exc:`StopIteration` 例外を送出します。その時点で、イテレータオブジェク" -"トは尽きており、それ以降は :meth:`__next__` を何度呼んでも :exc:" -"`StopIteration` を送出します。イテレータは、そのイテレータオブジェクト自体を" -"返す :meth:`__iter__` メソッドを実装しなければならないので、イテレータは他の " -"iterable を受理するほとんどの場所で利用できます。はっきりとした例外は複数の反" -"復を行うようなコードです。 (:class:`list` のような) コンテナオブジェクトは、" -"自身を :func:`iter` 関数にオブジェクトに渡したり :keyword:`for` ループ内で使" -"うたびに、新たな未使用のイテレータを生成します。これをイテレータで行おうとす" -"ると、前回のイテレーションで使用済みの同じイテレータオブジェクトを単純に返す" -"ため、空のコンテナのようになってしまします。" - -#: ../../glossary.rst:678 +"point, the iterator object is exhausted and any further calls to its :meth:`!" +"__next__` method just raise :exc:`StopIteration` again. Iterators are " +"required to have an :meth:`~iterator.__iter__` method that returns the " +"iterator object itself so every iterator is also iterable and may be used in " +"most places where other iterables are accepted. One notable exception is " +"code which attempts multiple iteration passes. A container object (such as " +"a :class:`list`) produces a fresh new iterator each time you pass it to the :" +"func:`iter` function or use it in a :keyword:`for` loop. Attempting this " +"with an iterator will just return the same exhausted iterator object used in " +"the previous iteration pass, making it appear like an empty container." +msgstr "" + +#: ../../glossary.rst:682 msgid "More information can be found in :ref:`typeiter`." msgstr "詳細な情報は :ref:`typeiter` にあります。" -#: ../../glossary.rst:682 +#: ../../glossary.rst:686 msgid "" "CPython does not consistently apply the requirement that an iterator define :" -"meth:`__iter__`." +"meth:`~iterator.__iter__`." msgstr "" -#: ../../glossary.rst:684 +#: ../../glossary.rst:688 msgid "key function" msgstr "key function" -#: ../../glossary.rst:686 +#: ../../glossary.rst:690 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 " @@ -1544,7 +1491,7 @@ msgstr "" "び出し可能オブジェクト(callable)です。例えば、 :func:`locale.strxfrm` をキー" "関数に使えば、ロケール依存のソートの慣習にのっとったソートキーを返します。" -#: ../../glossary.rst:691 +#: ../../glossary.rst:695 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`, :" @@ -1557,7 +1504,7 @@ msgstr "" "merge`, :func:`heapq.nsmallest`, :func:`heapq.nlargest`, :func:`itertools." "groupby` 等があります。" -#: ../../glossary.rst:697 +#: ../../glossary.rst:701 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. " @@ -1577,19 +1524,19 @@ msgstr "" "キー関数の作り方と使い方の例は :ref:`Sorting HOW TO ` を参照し" "てください。" -#: ../../glossary.rst:704 +#: ../../glossary.rst:708 msgid "keyword argument" msgstr "keyword argument" -#: ../../glossary.rst:706 ../../glossary.rst:995 +#: ../../glossary.rst:710 ../../glossary.rst:1000 msgid "See :term:`argument`." msgstr ":term:`実引数 ` を参照してください。" -#: ../../glossary.rst:707 +#: ../../glossary.rst:711 msgid "lambda" msgstr "lambda" -#: ../../glossary.rst:709 +#: ../../glossary.rst:713 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 " @@ -1599,11 +1546,11 @@ msgstr "" "term:`式 ` を含みます。ラムダ関数を作る構文は ``lambda " "[parameters]: expression`` です。" -#: ../../glossary.rst:712 +#: ../../glossary.rst:716 msgid "LBYL" msgstr "LBYL" -#: ../../glossary.rst:714 +#: ../../glossary.rst:718 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` " @@ -1615,7 +1562,7 @@ msgstr "" "す。 :term:`EAFP` アプローチと対照的で、 :keyword:`if` 文がたくさん使われるの" "が特徴的です。" -#: ../../glossary.rst:719 +#: ../../glossary.rst:723 msgid "" "In a multi-threaded environment, the LBYL approach can risk introducing a " "race condition between \"the looking\" and \"the leaping\". For example, " @@ -1629,38 +1576,38 @@ msgstr "" "*mapping* から *key* を取り除くと失敗します。この問題は、ロックするか EAFP ア" "プローチを使うことで解決できます。" -#: ../../glossary.rst:724 +#: ../../glossary.rst:728 msgid "locale encoding" msgstr "ロケールエンコーディング" -#: ../../glossary.rst:726 +#: ../../glossary.rst:730 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:729 +#: ../../glossary.rst:733 msgid "On Windows, it is the ANSI code page (ex: ``\"cp1252\"``)." msgstr "" -#: ../../glossary.rst:731 +#: ../../glossary.rst:735 msgid "" "On Android and VxWorks, Python uses ``\"utf-8\"`` as the locale encoding." msgstr "" -#: ../../glossary.rst:733 +#: ../../glossary.rst:737 msgid "``locale.getencoding()`` can be used to get the locale encoding." msgstr "" -#: ../../glossary.rst:735 +#: ../../glossary.rst:739 msgid "See also the :term:`filesystem encoding and error handler`." msgstr "" -#: ../../glossary.rst:736 +#: ../../glossary.rst:740 msgid "list" msgstr "list" -#: ../../glossary.rst:738 +#: ../../glossary.rst:742 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 " @@ -1670,11 +1617,11 @@ msgstr "" "名前ですが、リンクリストではなく、他の言語で言う配列 (array) と同種のもので、" "要素へのアクセスは O(1) です。" -#: ../../glossary.rst:741 +#: ../../glossary.rst:745 msgid "list comprehension" msgstr "list comprehension" -#: ../../glossary.rst:743 +#: ../../glossary.rst:747 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 " @@ -1689,11 +1636,11 @@ msgstr "" "です。 :keyword:`if` 節がない場合、 ``range(256)`` の全ての要素が処理されま" "す。" -#: ../../glossary.rst:749 +#: ../../glossary.rst:753 msgid "loader" msgstr "loader" -#: ../../glossary.rst:751 +#: ../../glossary.rst:755 msgid "" "An object that loads a module. It must define a method named :meth:" "`load_module`. A loader is typically returned by a :term:`finder`. See :pep:" @@ -1705,19 +1652,19 @@ msgstr "" "ます。詳細は :pep:`302` を、 :term:`abstract base class` については :class:" "`importlib.abc.Loader` を参照してください。" -#: ../../glossary.rst:755 +#: ../../glossary.rst:759 msgid "magic method" msgstr "magic method" -#: ../../glossary.rst:759 +#: ../../glossary.rst:763 msgid "An informal synonym for :term:`special method`." msgstr ":term:`special method` のくだけた同義語です。" -#: ../../glossary.rst:760 +#: ../../glossary.rst:764 msgid "mapping" msgstr "mapping" -#: ../../glossary.rst:762 +#: ../../glossary.rst:766 msgid "" "A container object that supports arbitrary key lookups and implements the " "methods specified in the :class:`collections.abc.Mapping` or :class:" @@ -1733,11 +1680,11 @@ msgstr "" "defaultdict`, :class:`collections.OrderedDict`, :class:`collections.Counter` " "などです。" -#: ../../glossary.rst:768 +#: ../../glossary.rst:772 msgid "meta path finder" msgstr "meta path finder" -#: ../../glossary.rst:770 +#: ../../glossary.rst:774 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:795 +#: ../../glossary.rst:799 msgid "method resolution order" msgstr "method resolution order" -#: ../../glossary.rst:797 +#: ../../glossary.rst:801 msgid "" "Method Resolution Order is the order in which base classes are searched for " "a member during lookup. See `The Python 2.3 Method Resolution Order `_ を参照してください。" -#: ../../glossary.rst:801 +#: ../../glossary.rst:805 msgid "module" msgstr "module" -#: ../../glossary.rst:803 +#: ../../glossary.rst:807 msgid "" "An object that serves as an organizational unit of Python code. Modules " "have a namespace containing arbitrary Python objects. Modules are loaded " @@ -1832,15 +1779,15 @@ msgstr "" "ルは任意の Python オブジェクトを含む名前空間を持ちます。モジュールは :term:" "`importing` の処理によって Python に読み込まれます。" -#: ../../glossary.rst:807 +#: ../../glossary.rst:811 msgid "See also :term:`package`." msgstr ":term:`パッケージ ` を参照してください。" -#: ../../glossary.rst:808 +#: ../../glossary.rst:812 msgid "module spec" msgstr "module spec" -#: ../../glossary.rst:810 +#: ../../glossary.rst:814 msgid "" "A namespace containing the import-related information used to load a module. " "An instance of :class:`importlib.machinery.ModuleSpec`." @@ -1848,19 +1795,19 @@ msgstr "" "モジュールをロードするのに使われるインポート関連の情報を含む名前空間です。\n" ":class:`importlib.machinery.ModuleSpec` のインスタンスです。" -#: ../../glossary.rst:812 +#: ../../glossary.rst:816 msgid "MRO" msgstr "MRO" -#: ../../glossary.rst:814 +#: ../../glossary.rst:818 msgid "See :term:`method resolution order`." msgstr ":term:`method resolution order` を参照してください。" -#: ../../glossary.rst:815 +#: ../../glossary.rst:819 msgid "mutable" msgstr "mutable" -#: ../../glossary.rst:817 +#: ../../glossary.rst:821 msgid "" "Mutable objects can change their value but keep their :func:`id`. See also :" "term:`immutable`." @@ -1868,11 +1815,11 @@ msgstr "" "(ミュータブル) ミュータブルなオブジェクトは、 :func:`id` を変えることなく値を" "変更できます。 :term:`イミュータブル `) も参照してください。" -#: ../../glossary.rst:819 +#: ../../glossary.rst:823 msgid "named tuple" msgstr "named tuple" -#: ../../glossary.rst:821 +#: ../../glossary.rst:825 msgid "" "The term \"named tuple\" applies to any type or class that inherits from " "tuple and whose indexable elements are also accessible using named " @@ -1882,7 +1829,7 @@ msgstr "" "に対し属性を使ってのアクセスもできる任意の型やクラスに応用されています。\n" "その型やクラスは他の機能も持っていることもあります。" -#: ../../glossary.rst:825 +#: ../../glossary.rst:829 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." @@ -1892,7 +1839,7 @@ msgstr "" "は名前付きタプルです。\n" "他の例は :data:`sys.float_info` です::" -#: ../../glossary.rst:836 +#: ../../glossary.rst:840 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 " @@ -1909,11 +1856,11 @@ msgstr "" "後者の方法は、手動で書いた名前付きタプルや組み込みの名前付きタプルには無い付" "加的なメソッドを追加できます。" -#: ../../glossary.rst:843 +#: ../../glossary.rst:847 msgid "namespace" msgstr "namespace" -#: ../../glossary.rst:845 +#: ../../glossary.rst:849 msgid "" "The place where a variable is stored. Namespaces are implemented as " "dictionaries. There are the local, global and built-in namespaces as well " @@ -1935,11 +1882,11 @@ msgstr "" "れモジュール :mod:`random` や :mod:`itertools` で実装されていることが明らかで" "す。" -#: ../../glossary.rst:855 +#: ../../glossary.rst:859 msgid "namespace package" msgstr "namespace package" -#: ../../glossary.rst:857 +#: ../../glossary.rst:861 msgid "" "A :pep:`420` :term:`package` which serves only as a container for " "subpackages. Namespace packages may have no physical representation, and " @@ -1951,15 +1898,15 @@ msgstr "" "いことができ、 ``__init__.py`` ファイルを持たないため、 :term:`regular " "package` とは異なります。" -#: ../../glossary.rst:862 +#: ../../glossary.rst:866 msgid "See also :term:`module`." msgstr ":term:`module` を参照してください。" -#: ../../glossary.rst:863 +#: ../../glossary.rst:867 msgid "nested scope" msgstr "nested scope" -#: ../../glossary.rst:865 +#: ../../glossary.rst:869 msgid "" "The ability to refer to a variable in an enclosing definition. For " "instance, a function defined inside another function can refer to variables " @@ -1975,27 +1922,23 @@ msgstr "" "を読み書きします。同様に、グローバル変数を使うとグローバル名前空間の値を読み" "書きします。 :keyword:`nonlocal` で外側の変数に書き込めます。" -#: ../../glossary.rst:872 +#: ../../glossary.rst:876 msgid "new-style class" msgstr "new-style class" -#: ../../glossary.rst:874 +#: ../../glossary.rst:878 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, " "versatile features like :attr:`~object.__slots__`, descriptors, properties, :" -"meth:`__getattribute__`, class methods, and static methods." +"meth:`~object.__getattribute__`, class methods, and static methods." msgstr "" -"(新スタイルクラス) 今では全てのクラスオブジェクトに使われている味付けの古い名" -"前です。以前の Python のバージョンでは、新スタイルクラスのみが :attr:" -"`~object.__slots__` 、デスクリプタ、 :meth:`__getattribute__` 、クラスメソッ" -"ド、そして静的メソッド等の Python の新しい、多様な機能を利用できました。" -#: ../../glossary.rst:878 +#: ../../glossary.rst:883 msgid "object" msgstr "object" -#: ../../glossary.rst:880 +#: ../../glossary.rst:885 msgid "" "Any data with state (attributes or value) and defined behavior (methods). " "Also the ultimate base class of any :term:`new-style class`." @@ -2004,11 +1947,11 @@ msgstr "" "データ。もしくは、全ての :term:`新スタイルクラス ` の究極の" "基底クラスのこと。" -#: ../../glossary.rst:883 +#: ../../glossary.rst:888 msgid "package" msgstr "package" -#: ../../glossary.rst:885 +#: ../../glossary.rst:890 msgid "" "A Python :term:`module` which can contain submodules or recursively, " "subpackages. Technically, a package is a Python module with a ``__path__`` " @@ -2018,16 +1961,16 @@ msgstr "" "`module` のことです。専門的には、パッケージは ``__path__`` 属性を持つ Python " "オブジェクトです。" -#: ../../glossary.rst:889 +#: ../../glossary.rst:894 msgid "See also :term:`regular package` and :term:`namespace package`." msgstr "" ":term:`regular package` と :term:`namespace package` を参照してください。" -#: ../../glossary.rst:890 +#: ../../glossary.rst:895 msgid "parameter" msgstr "parameter" -#: ../../glossary.rst:892 +#: ../../glossary.rst:897 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 " @@ -2037,7 +1980,7 @@ msgstr "" "` ) の定義において関数が受ける :term:`実引数` を指定しま" "す。仮引数には5種類あります:" -#: ../../glossary.rst:896 +#: ../../glossary.rst:901 msgid "" ":dfn:`positional-or-keyword`: specifies an argument that can be passed " "either :term:`positionally ` or as a :term:`keyword argument " @@ -2048,7 +1991,7 @@ msgstr "" "ワード引数 ` として渡すことができる引数を指定します。\n" "これはたとえば以下の *foo* や *bar* のように、デフォルトの仮引数の種類です::" -#: ../../glossary.rst:905 +#: ../../glossary.rst:910 msgid "" ":dfn:`positional-only`: specifies an argument that can be supplied only by " "position. Positional-only parameters can be defined by including a ``/`` " @@ -2059,7 +2002,7 @@ msgstr "" "義の引数のリストの中でそれらの後ろに ``/`` を含めることで定義できます。例えば" "下記の *posonly1* と *posonly2* は位置専用引数になります:: " -#: ../../glossary.rst:914 +#: ../../glossary.rst:919 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-" @@ -2072,7 +2015,7 @@ msgstr "" "ように、関数定義の仮引数リストに含めた可変長位置引数または裸の ``*`` の後で" "す::" -#: ../../glossary.rst:922 +#: ../../glossary.rst:927 msgid "" ":dfn:`var-positional`: specifies that an arbitrary sequence of positional " "arguments can be provided (in addition to any positional arguments already " @@ -2084,7 +2027,7 @@ msgstr "" "個数の位置引数が与えられることを指定します。このような仮引数は、以下の " "*args* のように仮引数名の前に ``*`` をつけることで定義できます::" -#: ../../glossary.rst:930 +#: ../../glossary.rst:935 msgid "" ":dfn:`var-keyword`: specifies that arbitrarily many keyword arguments can be " "provided (in addition to any keyword arguments already accepted by other " @@ -2096,7 +2039,7 @@ msgstr "" "数は、上の例の *kwargs* のように仮引数名の前に ``**`` をつけることで定義でき" "ます。" -#: ../../glossary.rst:936 +#: ../../glossary.rst:941 msgid "" "Parameters can specify both optional and required arguments, as well as " "default values for some optional arguments." @@ -2104,7 +2047,7 @@ msgstr "" "仮引数はオプションと必須の引数のどちらも指定でき、オプションの引数にはデフォ" "ルト値も指定できます。" -#: ../../glossary.rst:939 +#: ../../glossary.rst:944 msgid "" "See also the :term:`argument` glossary entry, the FAQ question on :ref:`the " "difference between arguments and parameters `, " @@ -2115,11 +2058,11 @@ msgstr "" "` 、:class:`inspect.Parameter` クラス、 :ref:" "`function` セクション、:pep:`362` を参照してください。" -#: ../../glossary.rst:943 +#: ../../glossary.rst:948 msgid "path entry" msgstr "path entry" -#: ../../glossary.rst:945 +#: ../../glossary.rst:950 msgid "" "A single location on the :term:`import path` which the :term:`path based " "finder` consults to find modules for importing." @@ -2127,11 +2070,11 @@ msgstr "" ":term:`path based finder` が import するモジュールを探す :term:`import path` " "上の1つの場所です。" -#: ../../glossary.rst:947 +#: ../../glossary.rst:952 msgid "path entry finder" msgstr "path entry finder" -#: ../../glossary.rst:949 +#: ../../glossary.rst:954 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:" @@ -2141,7 +2084,7 @@ msgstr "" "した :term:`finder` です。与えられた :term:`path entry` にあるモジュールを見" "つける方法を知っています。" -#: ../../glossary.rst:953 +#: ../../glossary.rst:958 msgid "" "See :class:`importlib.abc.PathEntryFinder` for the methods that path entry " "finders implement." @@ -2149,25 +2092,22 @@ msgstr "" "パスエントリーファインダが実装するメソッドについては :class:`importlib.abc." "PathEntryFinder` を参照してください。" -#: ../../glossary.rst:955 +#: ../../glossary.rst:960 msgid "path entry hook" msgstr "path entry hook" -#: ../../glossary.rst:957 +#: ../../glossary.rst:962 msgid "" -"A callable on the :data:`sys.path_hook` list which returns a :term:`path " +"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 "" -":data:`sys.path_hook` リストにある callable で、指定された :term:`path " -"entry` にあるモジュールを見つける方法を知っている場合に :term:`path entry " -"finder` を返します。" -#: ../../glossary.rst:960 +#: ../../glossary.rst:965 msgid "path based finder" msgstr "path based finder" -#: ../../glossary.rst:962 +#: ../../glossary.rst:967 msgid "" "One of the default :term:`meta path finders ` which " "searches an :term:`import path` for modules." @@ -2175,11 +2115,11 @@ msgstr "" "デフォルトの :term:`meta path finder` の1つは、モジュールの :term:`import " "path` を検索します。" -#: ../../glossary.rst:964 +#: ../../glossary.rst:969 msgid "path-like object" msgstr "path-like object" -#: ../../glossary.rst:966 +#: ../../glossary.rst:971 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 " @@ -2200,11 +2140,11 @@ msgstr "" "れ :class:`str` あるいは :class:`bytes` になるのを保証するのに使えます。\n" ":pep:`519` で導入されました。" -#: ../../glossary.rst:974 +#: ../../glossary.rst:979 msgid "PEP" msgstr "PEP" -#: ../../glossary.rst:976 +#: ../../glossary.rst:981 msgid "" "Python Enhancement Proposal. A PEP is a design document providing " "information to the Python community, or describing a new feature for Python " @@ -2216,7 +2156,7 @@ msgstr "" "PEP は、機能についての簡潔な技術的仕様と提案する機能の論拠 (理論) を伝えるべ" "きです。" -#: ../../glossary.rst:982 +#: ../../glossary.rst:987 msgid "" "PEPs are intended to be the primary mechanisms for proposing major new " "features, for collecting community input on an issue, and for documenting " @@ -2229,15 +2169,15 @@ msgstr "" "著者にはコミュニティ内の合意形成を行うこと、反対意見を文書化することの責務が" "あります。" -#: ../../glossary.rst:988 +#: ../../glossary.rst:993 msgid "See :pep:`1`." msgstr ":pep:`1` を参照してください。" -#: ../../glossary.rst:989 +#: ../../glossary.rst:994 msgid "portion" msgstr "portion" -#: ../../glossary.rst:991 +#: ../../glossary.rst:996 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`." @@ -2245,15 +2185,15 @@ msgstr "" ":pep:`420` で定義されている、namespace package に属する、複数のファイルが " "(zipファイルに格納されている場合もある) 1つのディレクトリに格納されたもの。" -#: ../../glossary.rst:993 +#: ../../glossary.rst:998 msgid "positional argument" msgstr "位置引数 (positional argument)" -#: ../../glossary.rst:996 +#: ../../glossary.rst:1001 msgid "provisional API" msgstr "provisional API" -#: ../../glossary.rst:998 +#: ../../glossary.rst:1003 msgid "" "A provisional API is one which has been deliberately excluded from the " "standard library's backwards compatibility guarantees. While major changes " @@ -2270,7 +2210,7 @@ msgstr "" "ものではありません -- これは API を組み込む前には見落とされていた重大な欠陥が" "露呈したときにのみ行われます。" -#: ../../glossary.rst:1007 +#: ../../glossary.rst:1012 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 " @@ -2279,7 +2219,7 @@ msgstr "" "暫定 API についても、後方互換性のない変更は「最終手段」とみなされています。問" "題点が判明した場合でも後方互換な解決策を探すべきです。" -#: ../../glossary.rst:1011 +#: ../../glossary.rst:1016 msgid "" "This process allows the standard library to continue to evolve over time, " "without locking in problematic design errors for extended periods of time. " @@ -2289,19 +2229,19 @@ msgstr "" "られることなく、時代を超えて進化を続けられます。詳細は :pep:`411` を参照して" "ください。" -#: ../../glossary.rst:1014 +#: ../../glossary.rst:1019 msgid "provisional package" msgstr "provisional package" -#: ../../glossary.rst:1016 +#: ../../glossary.rst:1021 msgid "See :term:`provisional API`." msgstr ":term:`provisional API` を参照してください。" -#: ../../glossary.rst:1017 +#: ../../glossary.rst:1022 msgid "Python 3000" msgstr "Python 3000" -#: ../../glossary.rst:1019 +#: ../../glossary.rst:1024 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 " @@ -2310,11 +2250,11 @@ msgstr "" "Python 3.x リリースラインのニックネームです。(Python 3 が遠い将来の話だった頃" "に作られた言葉です。) \"Py3k\" と略されることもあります。" -#: ../../glossary.rst:1022 +#: ../../glossary.rst:1027 msgid "Pythonic" msgstr "Pythonic" -#: ../../glossary.rst:1024 +#: ../../glossary.rst:1029 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 " @@ -2329,15 +2269,15 @@ msgstr "" "くの言語にはこの仕組みはないので、Python に慣れていない人は代わりに数値のカウ" "ンターを使うかもしれません::" -#: ../../glossary.rst:1034 +#: ../../glossary.rst:1039 msgid "As opposed to the cleaner, Pythonic method::" msgstr "これに対し、きれいな Pythonic な方法は::" -#: ../../glossary.rst:1038 +#: ../../glossary.rst:1043 msgid "qualified name" msgstr "qualified name" -#: ../../glossary.rst:1040 +#: ../../glossary.rst:1045 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 " @@ -2349,7 +2289,7 @@ msgstr "" "されています。トップレベルの関数やクラスでは、修飾名はオブジェクトの名前と同" "じです::" -#: ../../glossary.rst:1057 +#: ../../glossary.rst:1062 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." @@ -2359,11 +2299,11 @@ msgstr "" "の親パッケージを含む全体のドット名表記、例えば ``email.mime.text`` を意味しま" "す::" -#: ../../glossary.rst:1064 +#: ../../glossary.rst:1069 msgid "reference count" msgstr "reference count" -#: ../../glossary.rst:1066 +#: ../../glossary.rst:1071 msgid "" "The number of references to an object. When the reference count of an " "object drops to zero, it is deallocated. Some objects are \"immortal\" and " @@ -2374,11 +2314,11 @@ msgid "" "reference count for a particular object." msgstr "" -#: ../../glossary.rst:1074 +#: ../../glossary.rst:1079 msgid "regular package" msgstr "regular package" -#: ../../glossary.rst:1076 +#: ../../glossary.rst:1081 msgid "" "A traditional :term:`package`, such as a directory containing an ``__init__." "py`` file." @@ -2386,15 +2326,15 @@ msgstr "" "伝統的な、 ``__init__.py`` ファイルを含むディレクトリとしての :term:" "`package`。" -#: ../../glossary.rst:1079 +#: ../../glossary.rst:1084 msgid "See also :term:`namespace package`." msgstr ":term:`namespace package` を参照してください。" -#: ../../glossary.rst:1080 +#: ../../glossary.rst:1085 msgid "__slots__" msgstr "__slots__" -#: ../../glossary.rst:1082 +#: ../../glossary.rst:1087 msgid "" "A declaration inside a class that saves memory by pre-declaring space for " "instance attributes and eliminating instance dictionaries. Though popular, " @@ -2408,36 +2348,37 @@ msgstr "" "となるアプリケーションでインスタンスが大量に存在する、といったときを除き、使" "わないのがベストです。" -#: ../../glossary.rst:1087 +#: ../../glossary.rst:1092 msgid "sequence" msgstr "sequence" -#: ../../glossary.rst:1089 +#: ../../glossary.rst:1094 msgid "" "An :term:`iterable` which supports efficient element access using integer " "indices via the :meth:`~object.__getitem__` special method and defines a :" -"meth:`__len__` method that returns the length of the sequence. Some built-in " -"sequence types are :class:`list`, :class:`str`, :class:`tuple`, and :class:" -"`bytes`. Note that :class:`dict` also supports :meth:`~object.__getitem__` " -"and :meth:`__len__`, but is considered a mapping rather than a sequence " -"because the lookups use arbitrary :term:`immutable` keys rather than " -"integers." +"meth:`~object.__len__` method that returns the length of the sequence. Some " +"built-in sequence types are :class:`list`, :class:`str`, :class:`tuple`, " +"and :class:`bytes`. Note that :class:`dict` also supports :meth:`~object." +"__getitem__` and :meth:`!__len__`, but is considered a mapping rather than a " +"sequence because the lookups use arbitrary :term:`immutable` keys rather " +"than integers." msgstr "" -#: ../../glossary.rst:1098 +#: ../../glossary.rst:1103 msgid "" "The :class:`collections.abc.Sequence` abstract base class defines a much " "richer interface that goes beyond just :meth:`~object.__getitem__` and :meth:" -"`__len__`, adding :meth:`count`, :meth:`index`, :meth:`__contains__`, and :" -"meth:`__reversed__`. Types that implement this expanded interface can be " -"registered explicitly using :func:`~abc.ABCMeta.register`." +"`~object.__len__`, adding :meth:`count`, :meth:`index`, :meth:`~object." +"__contains__`, and :meth:`~object.__reversed__`. Types that implement this " +"expanded interface can be registered explicitly using :func:`~abc.ABCMeta." +"register`." msgstr "" -#: ../../glossary.rst:1105 +#: ../../glossary.rst:1110 msgid "set comprehension" msgstr "" -#: ../../glossary.rst:1107 +#: ../../glossary.rst:1112 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 " @@ -2449,22 +2390,22 @@ msgstr "" "if c not in 'abc'}`` とすると、``{'r', 'd'}`` という文字列の辞書を生成しま" "す。 :ref:`comprehensions` を参照してください。" -#: ../../glossary.rst:1111 +#: ../../glossary.rst:1116 msgid "single dispatch" msgstr "single dispatch" -#: ../../glossary.rst:1113 +#: ../../glossary.rst:1118 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:1115 +#: ../../glossary.rst:1120 msgid "slice" msgstr "slice" -#: ../../glossary.rst:1117 +#: ../../glossary.rst:1122 msgid "" "An object usually containing a portion of a :term:`sequence`. A slice is " "created using the subscript notation, ``[]`` with colons between numbers " @@ -2476,11 +2417,11 @@ msgstr "" "ます。例えば、 ``variable_name[1:3:5]`` です。角括弧 (添字) 記号は :class:" "`slice` オブジェクトを内部で利用しています。" -#: ../../glossary.rst:1121 +#: ../../glossary.rst:1126 msgid "special method" msgstr "special method" -#: ../../glossary.rst:1125 +#: ../../glossary.rst:1130 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 " @@ -2492,11 +2433,11 @@ msgstr "" "コア 2 つがついています。特殊メソッドについては :ref:`specialnames` で解説さ" "れています。" -#: ../../glossary.rst:1129 +#: ../../glossary.rst:1134 msgid "statement" msgstr "statement" -#: ../../glossary.rst:1131 +#: ../../glossary.rst:1136 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 :" @@ -2506,22 +2447,22 @@ msgstr "" "` かキーワードから構成されるもののどちらかです。後者には :" "keyword:`if`、:keyword:`while`、:keyword:`for` があります。" -#: ../../glossary.rst:1134 +#: ../../glossary.rst:1139 msgid "static type checker" msgstr "" -#: ../../glossary.rst:1136 +#: ../../glossary.rst:1141 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:1139 +#: ../../glossary.rst:1144 msgid "strong reference" msgstr "" -#: ../../glossary.rst:1141 +#: ../../glossary.rst:1146 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 " @@ -2529,7 +2470,7 @@ msgid "" "c:func:`Py_DECREF` when the reference is deleted." msgstr "" -#: ../../glossary.rst:1147 +#: ../../glossary.rst:1152 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 " @@ -2537,38 +2478,38 @@ msgid "" "leaking one reference." msgstr "" -#: ../../glossary.rst:1152 +#: ../../glossary.rst:1157 msgid "See also :term:`borrowed reference`." msgstr "" -#: ../../glossary.rst:1153 +#: ../../glossary.rst:1158 msgid "text encoding" msgstr "text encoding" -#: ../../glossary.rst:1155 +#: ../../glossary.rst:1160 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:1159 +#: ../../glossary.rst:1164 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:1162 +#: ../../glossary.rst:1167 msgid "" "There are a variety of different text serialization :ref:`codecs `, which are collectively referred to as \"text encodings\"." msgstr "" -#: ../../glossary.rst:1165 +#: ../../glossary.rst:1170 msgid "text file" msgstr "text file" -#: ../../glossary.rst:1167 +#: ../../glossary.rst:1172 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:" @@ -2584,7 +2525,7 @@ msgstr "" "StringIO` インスタンスなどをテキストモード (``'r'`` or ``'w'``) で開いたファ" "イルです。" -#: ../../glossary.rst:1174 +#: ../../glossary.rst:1179 msgid "" "See also :term:`binary file` for a file object able to read and write :term:" "`bytes-like objects `." @@ -2593,11 +2534,11 @@ msgstr "" "オブジェクトについては、 :term:`バイナリファイル ` も参照してく" "ださい。" -#: ../../glossary.rst:1176 +#: ../../glossary.rst:1181 msgid "triple-quoted string" msgstr "triple-quoted string" -#: ../../glossary.rst:1178 +#: ../../glossary.rst:1183 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 " @@ -2613,11 +2554,11 @@ msgstr "" "しに書くことができますし、行継続文字(\\\\)を使わなくても複数行にまたがること" "ができるので、ドキュメンテーション文字列を書く時に特に便利です。" -#: ../../glossary.rst:1185 +#: ../../glossary.rst:1190 msgid "type" msgstr "type" -#: ../../glossary.rst:1187 +#: ../../glossary.rst:1192 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:`~instance." @@ -2627,15 +2568,15 @@ msgstr "" "ゆるオブジェクトは型を持っています。オブジェクトの型は :attr:`~instance." "__class__` 属性でアクセスしたり、``type(obj)`` で取得したり出来ます。" -#: ../../glossary.rst:1191 +#: ../../glossary.rst:1196 msgid "type alias" msgstr "type alias" -#: ../../glossary.rst:1193 +#: ../../glossary.rst:1198 msgid "A synonym for a type, created by assigning the type to an identifier." msgstr "(型エイリアス) 型の別名で、型を識別子に代入して作成します。" -#: ../../glossary.rst:1195 +#: ../../glossary.rst:1200 msgid "" "Type aliases are useful for simplifying :term:`type hints `. For " "example::" @@ -2643,19 +2584,19 @@ msgstr "" "型エイリアスは :term:`型ヒント ` を単純化するのに有用です。例え" "ば::" -#: ../../glossary.rst:1202 +#: ../../glossary.rst:1207 msgid "could be made more readable like this::" msgstr "これは次のようにより読みやすくできます::" -#: ../../glossary.rst:1209 ../../glossary.rst:1223 +#: ../../glossary.rst:1214 ../../glossary.rst:1228 msgid "See :mod:`typing` and :pep:`484`, which describe this functionality." msgstr "機能の説明がある :mod:`typing` と :pep:`484` を参照してください。" -#: ../../glossary.rst:1210 +#: ../../glossary.rst:1215 msgid "type hint" msgstr "type hint" -#: ../../glossary.rst:1212 +#: ../../glossary.rst:1217 msgid "" "An :term:`annotation` that specifies the expected type for a variable, a " "class attribute, or a function parameter or return value." @@ -2663,14 +2604,14 @@ msgstr "" "(型ヒント) 変数、クラス属性、関数のパラメータや返り値の期待される型を指定す" "る :term:`annotation` です。" -#: ../../glossary.rst:1215 +#: ../../glossary.rst:1220 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:1219 +#: ../../glossary.rst:1224 msgid "" "Type hints of global variables, class attributes, and functions, but not " "local variables, can be accessed using :func:`typing.get_type_hints`." @@ -2678,11 +2619,11 @@ msgstr "" "グローバル変数、クラス属性、関数で、ローカル変数でないものの型ヒントは :func:" "`typing.get_type_hints` で取得できます。" -#: ../../glossary.rst:1224 +#: ../../glossary.rst:1229 msgid "universal newlines" msgstr "universal newlines" -#: ../../glossary.rst:1226 +#: ../../glossary.rst:1231 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 " @@ -2695,20 +2636,20 @@ msgstr "" "``'\\r'``。利用法について詳しくは、 :pep:`278` と :pep:`3116` 、さらに :func:" "`bytes.splitlines` も参照してください。" -#: ../../glossary.rst:1231 +#: ../../glossary.rst:1236 msgid "variable annotation" msgstr "variable annotation" -#: ../../glossary.rst:1233 +#: ../../glossary.rst:1238 msgid "An :term:`annotation` of a variable or a class attribute." msgstr "(変数アノテーション) 変数あるいはクラス属性の :term:`annotation` 。" -#: ../../glossary.rst:1235 +#: ../../glossary.rst:1240 msgid "" "When annotating a variable or a class attribute, assignment is optional::" msgstr "変数あるいはクラス属性に注釈を付けたときは、代入部分は任意です::" -#: ../../glossary.rst:1240 +#: ../../glossary.rst:1245 msgid "" "Variable annotations are usually used for :term:`type hints `: " "for example this variable is expected to take :class:`int` values::" @@ -2716,12 +2657,12 @@ msgstr "" "変数アノテーションは通常は :term:`型ヒント` のために使われます: 例" "えば、この変数は :class:`int` の値を取ることを期待されています::" -#: ../../glossary.rst:1246 +#: ../../glossary.rst:1251 msgid "Variable annotation syntax is explained in section :ref:`annassign`." msgstr "" "変数アノテーションの構文については :ref:`annassign` 節で解説しています。" -#: ../../glossary.rst:1248 +#: ../../glossary.rst:1253 msgid "" "See :term:`function annotation`, :pep:`484` and :pep:`526`, which describe " "this functionality. Also see :ref:`annotations-howto` for best practices on " @@ -2731,11 +2672,11 @@ msgstr "" "してください。また、アノテーションを利用するベストプラクティスとして :ref:" "`annotations-howto` も参照してください。" -#: ../../glossary.rst:1252 +#: ../../glossary.rst:1257 msgid "virtual environment" msgstr "virtual environment" -#: ../../glossary.rst:1254 +#: ../../glossary.rst:1259 msgid "" "A cooperatively isolated runtime environment that allows Python users and " "applications to install and upgrade Python distribution packages without " @@ -2746,15 +2687,15 @@ msgstr "" "ケーションは同じシステム上で動いている他の Python アプリケーションの挙動に干" "渉することなく Python パッケージのインストールと更新を行うことができます。" -#: ../../glossary.rst:1259 +#: ../../glossary.rst:1264 msgid "See also :mod:`venv`." msgstr ":mod:`venv` を参照してください。" -#: ../../glossary.rst:1260 +#: ../../glossary.rst:1265 msgid "virtual machine" msgstr "virtual machine" -#: ../../glossary.rst:1262 +#: ../../glossary.rst:1267 msgid "" "A computer defined entirely in software. Python's virtual machine executes " "the :term:`bytecode` emitted by the bytecode compiler." @@ -2763,11 +2704,11 @@ msgstr "" "シンは、バイトコードコンパイラが出力した :term:`バイトコード ` を実" "行します。" -#: ../../glossary.rst:1264 +#: ../../glossary.rst:1269 msgid "Zen of Python" msgstr "Zen of Python" -#: ../../glossary.rst:1266 +#: ../../glossary.rst:1271 msgid "" "Listing of Python design principles and philosophies that are helpful in " "understanding and using the language. The listing can be found by typing " @@ -2785,10 +2726,10 @@ msgstr "" msgid "Fortran contiguous" msgstr "" -#: ../../glossary.rst:757 +#: ../../glossary.rst:761 msgid "magic" msgstr "" -#: ../../glossary.rst:1123 +#: ../../glossary.rst:1128 msgid "special" msgstr "特殊" diff --git a/library/__future__.po b/library/__future__.po index 779f44b43..921a2951f 100644 --- a/library/__future__.po +++ b/library/__future__.po @@ -11,7 +11,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3.12\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2023-11-24 14:13+0000\n" +"POT-Creation-Date: 2023-12-08 14:14+0000\n" "PO-Revision-Date: 2021-06-28 00:54+0000\n" "Last-Translator: tomo, 2022\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" @@ -64,11 +64,11 @@ msgstr "" "で、 :mod:`__future__` をインポートしてその中身を調べることでプログラムから調" "査することができます。" -#: ../../library/__future__.rst:25 +#: ../../library/__future__.rst:29 msgid "Each statement in :file:`__future__.py` is of the form::" msgstr ":file:`__future__.py` のそれぞれの文は次のような形式をしています::" -#: ../../library/__future__.rst:31 +#: ../../library/__future__.rst:34 msgid "" "where, normally, *OptionalRelease* is less than *MandatoryRelease*, and both " "are 5-tuples of the same form as :data:`sys.version_info`::" @@ -76,13 +76,13 @@ msgstr "" "ここで、普通は、 *OptionalRelease* は *MandatoryRelease* より小さく、2つと" "も :data:`sys.version_info` と同じフォーマットの5つのタプルからなります::" -#: ../../library/__future__.rst:41 +#: ../../library/__future__.rst:46 msgid "" "*OptionalRelease* records the first release in which the feature was " "accepted." msgstr "*OptionalRelease* はその機能が導入された最初のリリースを記録します。" -#: ../../library/__future__.rst:43 +#: ../../library/__future__.rst:50 msgid "" "In the case of a *MandatoryRelease* that has not yet occurred, " "*MandatoryRelease* predicts the release in which the feature will become " @@ -91,7 +91,7 @@ msgstr "" "まだ時期が来ていない *MandatoryRelease* の場合、*MandatoryRelease* はその機能" "が言語の一部となるリリースを記します。" -#: ../../library/__future__.rst:47 +#: ../../library/__future__.rst:54 msgid "" "Else *MandatoryRelease* records when the feature became part of the " "language; in releases at or after that, modules no longer need a future " @@ -102,35 +102,21 @@ msgstr "" "します。そのリリースから、あるいはそれ以降のリリースでは、この機能を使う際に " "future 文は必要ではありませんが、future 文を使い続けても構いません。" -#: ../../library/__future__.rst:51 +#: ../../library/__future__.rst:58 msgid "" "*MandatoryRelease* may also be ``None``, meaning that a planned feature got " -"dropped." -msgstr "" -"*MandatoryRelease* は ``None`` になるかもしれません。つまり、予定された機能が" -"破棄されたということです。" - -#: ../../library/__future__.rst:54 -msgid "" -"Instances of class :class:`_Feature` have two corresponding methods, :meth:" -"`getOptionalRelease` and :meth:`getMandatoryRelease`." +"dropped or that it is not yet decided." msgstr "" -":class:`_Feature` クラスのインスタンスには対応する2つのメソッド、 :meth:" -"`getOptionalRelease` と :meth:`getMandatoryRelease` があります。" -#: ../../library/__future__.rst:57 +#: ../../library/__future__.rst:63 msgid "" "*CompilerFlag* is the (bitfield) flag that should be passed in the fourth " "argument to the built-in function :func:`compile` to enable the feature in " -"dynamically compiled code. This flag is stored in the :attr:`compiler_flag` " -"attribute on :class:`_Feature` instances." +"dynamically compiled code. This flag is stored in the :attr:`_Feature." +"compiler_flag` attribute on :class:`_Feature` instances." msgstr "" -"*CompilerFlag* は、動的にコンパイルされるコードでその機能を有効にするために、" -"組み込み関数 :func:`compile` の第4引数に渡す(ビットフィールド)フラグです。こ" -"のフラグは :class:`_Feature` インスタンスの :attr:`compiler_flag` 属性に保存" -"されています。" -#: ../../library/__future__.rst:62 +#: ../../library/__future__.rst:68 msgid "" "No feature description will ever be deleted from :mod:`__future__`. Since " "its introduction in Python 2.1 the following features have found their way " @@ -140,148 +126,148 @@ msgstr "" "2.1 で future 文が導入されて以来、この仕組みを使って以下の機能が言語に導入さ" "れてきました:" -#: ../../library/__future__.rst:67 +#: ../../library/__future__.rst:73 msgid "feature" msgstr "feature" -#: ../../library/__future__.rst:67 +#: ../../library/__future__.rst:73 msgid "optional in" msgstr "optional in" -#: ../../library/__future__.rst:67 +#: ../../library/__future__.rst:73 msgid "mandatory in" msgstr "mandatory in" -#: ../../library/__future__.rst:67 +#: ../../library/__future__.rst:73 msgid "effect" msgstr "effect" -#: ../../library/__future__.rst:69 +#: ../../library/__future__.rst:75 msgid "nested_scopes" msgstr "nested_scopes" -#: ../../library/__future__.rst:69 +#: ../../library/__future__.rst:75 msgid "2.1.0b1" msgstr "2.1.0b1" -#: ../../library/__future__.rst:69 +#: ../../library/__future__.rst:75 msgid "2.2" msgstr "2.2" -#: ../../library/__future__.rst:69 +#: ../../library/__future__.rst:75 msgid ":pep:`227`: *Statically Nested Scopes*" msgstr ":pep:`227`: *Statically Nested Scopes*" -#: ../../library/__future__.rst:72 +#: ../../library/__future__.rst:78 msgid "generators" msgstr "generators" -#: ../../library/__future__.rst:72 +#: ../../library/__future__.rst:78 msgid "2.2.0a1" msgstr "2.2.0a1" -#: ../../library/__future__.rst:72 +#: ../../library/__future__.rst:78 msgid "2.3" msgstr "2.3" -#: ../../library/__future__.rst:72 +#: ../../library/__future__.rst:78 msgid ":pep:`255`: *Simple Generators*" msgstr ":pep:`255`: *Simple Generators*" -#: ../../library/__future__.rst:75 +#: ../../library/__future__.rst:81 msgid "division" msgstr "division" -#: ../../library/__future__.rst:75 +#: ../../library/__future__.rst:81 msgid "2.2.0a2" msgstr "2.2.0a2" -#: ../../library/__future__.rst:75 ../../library/__future__.rst:78 -#: ../../library/__future__.rst:84 ../../library/__future__.rst:87 +#: ../../library/__future__.rst:81 ../../library/__future__.rst:84 +#: ../../library/__future__.rst:90 ../../library/__future__.rst:93 msgid "3.0" msgstr "3.0" -#: ../../library/__future__.rst:75 +#: ../../library/__future__.rst:81 msgid ":pep:`238`: *Changing the Division Operator*" msgstr ":pep:`238`: *Changing the Division Operator*" -#: ../../library/__future__.rst:78 +#: ../../library/__future__.rst:84 msgid "absolute_import" msgstr "absolute_import" -#: ../../library/__future__.rst:78 ../../library/__future__.rst:81 +#: ../../library/__future__.rst:84 ../../library/__future__.rst:87 msgid "2.5.0a1" msgstr "2.5.0a1" -#: ../../library/__future__.rst:78 +#: ../../library/__future__.rst:84 msgid ":pep:`328`: *Imports: Multi-Line and Absolute/Relative*" msgstr ":pep:`328`: *Imports: Multi-Line and Absolute/Relative*" -#: ../../library/__future__.rst:81 +#: ../../library/__future__.rst:87 msgid "with_statement" msgstr "with_statement" -#: ../../library/__future__.rst:81 +#: ../../library/__future__.rst:87 msgid "2.6" msgstr "2.6" -#: ../../library/__future__.rst:81 +#: ../../library/__future__.rst:87 msgid ":pep:`343`: *The \"with\" Statement*" msgstr ":pep:`343`: *The \"with\" Statement*" -#: ../../library/__future__.rst:84 +#: ../../library/__future__.rst:90 msgid "print_function" msgstr "print_function" -#: ../../library/__future__.rst:84 ../../library/__future__.rst:87 +#: ../../library/__future__.rst:90 ../../library/__future__.rst:93 msgid "2.6.0a2" msgstr "2.6.0a2" -#: ../../library/__future__.rst:84 +#: ../../library/__future__.rst:90 msgid ":pep:`3105`: *Make print a function*" msgstr ":pep:`3105`: *Make print a function*" -#: ../../library/__future__.rst:87 +#: ../../library/__future__.rst:93 msgid "unicode_literals" msgstr "unicode_literals" -#: ../../library/__future__.rst:87 +#: ../../library/__future__.rst:93 msgid ":pep:`3112`: *Bytes literals in Python 3000*" msgstr ":pep:`3112`: *Bytes literals in Python 3000*" -#: ../../library/__future__.rst:90 +#: ../../library/__future__.rst:96 msgid "generator_stop" msgstr "generator_stop" -#: ../../library/__future__.rst:90 +#: ../../library/__future__.rst:96 msgid "3.5.0b1" msgstr "3.5.0b1" -#: ../../library/__future__.rst:90 +#: ../../library/__future__.rst:96 msgid "3.7" msgstr "3.7" -#: ../../library/__future__.rst:90 +#: ../../library/__future__.rst:96 msgid ":pep:`479`: *StopIteration handling inside generators*" msgstr ":pep:`479`: *StopIteration handling inside generators*" -#: ../../library/__future__.rst:93 +#: ../../library/__future__.rst:99 msgid "annotations" msgstr "annotations" -#: ../../library/__future__.rst:93 +#: ../../library/__future__.rst:99 msgid "3.7.0b1" msgstr "3.7.0b1" -#: ../../library/__future__.rst:93 +#: ../../library/__future__.rst:99 msgid "TBD [1]_" msgstr "TBD [1]_" -#: ../../library/__future__.rst:93 +#: ../../library/__future__.rst:99 msgid ":pep:`563`: *Postponed evaluation of annotations*" msgstr ":pep:`563`: *Postponed evaluation of annotations*" -#: ../../library/__future__.rst:100 +#: ../../library/__future__.rst:106 msgid "" "``from __future__ import annotations`` was previously scheduled to become " "mandatory in Python 3.10, but the Python Steering Council twice decided to " @@ -292,10 +278,10 @@ msgid "" "final decision has been made yet. See also :pep:`563` and :pep:`649`." msgstr "" -#: ../../library/__future__.rst:110 +#: ../../library/__future__.rst:116 msgid ":ref:`future`" msgstr ":ref:`future`" -#: ../../library/__future__.rst:111 +#: ../../library/__future__.rst:117 msgid "How the compiler treats future imports." msgstr "コンパイラがどのように future インポートを扱うか。" diff --git a/library/abc.po b/library/abc.po index e211c77fe..064db569d 100644 --- a/library/abc.po +++ b/library/abc.po @@ -5,18 +5,15 @@ # # Translators: # tomo, 2021 -# mollinaca, 2021 -# Atsuo Ishimoto , 2022 -# Arihiro TAKASE, 2023 # #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.12\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2023-11-24 14:13+0000\n" +"POT-Creation-Date: 2023-12-08 14:14+0000\n" "PO-Revision-Date: 2021-06-28 00:54+0000\n" -"Last-Translator: Arihiro TAKASE, 2023\n" +"Last-Translator: tomo, 2021\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" "MIME-Version: 1.0\n" @@ -52,14 +49,8 @@ msgid "" "ABCs; these can, of course, be further derived. In addition, the :mod:" "`collections.abc` submodule has some ABCs that can be used to test whether a " "class or instance provides a particular interface, for example, if it is :" -"term:`hashable` or if it is a mapping." +"term:`hashable` or if it is a :term:`mapping`." msgstr "" -":mod:`collections.abc` サブモジュールには ABC から派生した具象クラスがいくつ" -"かあります。\n" -"もちろん、このクラスから、さらに派生させることもできます。\n" -"また :mod:`collections.abs` サブモジュールにはいくつかの ABC もあって、あるク" -"ラスやインスタンスが特定のインターフェースを提供しているかどうか、たとえば、:" -"term:ハッシュ可能 <`hashable>` なのかやマッピングなのか、をテストできます。" #: ../../library/abc.rst:27 msgid "" @@ -73,26 +64,18 @@ msgstr "" #: ../../library/abc.rst:32 msgid "" "A helper class that has :class:`ABCMeta` as its metaclass. With this class, " -"an abstract base class can be created by simply deriving from :class:`ABC` " +"an abstract base class can be created by simply deriving from :class:`!ABC` " "avoiding sometimes confusing metaclass usage, for example::" msgstr "" -":class:`ABCMeta` をメタクラスとするヘルパークラスです。このクラスを使うと、混" -"乱しがちなメタクラスを使わずに、単に :class:`ABC` を継承するだけで抽象基底ク" -"ラスを作成できます。例::" #: ../../library/abc.rst:41 msgid "" -"Note that the type of :class:`ABC` is still :class:`ABCMeta`, therefore " -"inheriting from :class:`ABC` requires the usual precautions regarding " +"Note that the type of :class:`!ABC` is still :class:`ABCMeta`, therefore " +"inheriting from :class:`!ABC` requires the usual precautions regarding " "metaclass usage, as multiple inheritance may lead to metaclass conflicts. " "One may also define an abstract base class by passing the metaclass keyword " -"and using :class:`ABCMeta` directly, for example::" +"and using :class:`!ABCMeta` directly, for example::" msgstr "" -":class:`ABC` の型はやはり :class:`ABCMeta` であり、そのため :class:`ABC` から" -"継承するときは、メタクラスの衝突を引き起こし得る多重継承のような、メタクラス" -"を使う上でのいつもの用心が求められることに注意してください。 metaclass キー" -"ワードを渡し、 :class:`ABCMeta` を直接利用することで、抽象基底クラスを直接定" -"義することもできます。例::" #: ../../library/abc.rst:57 msgid "Metaclass for defining Abstract Base Classes (ABCs)." @@ -119,11 +102,9 @@ msgstr "" #: ../../library/abc.rst:68 msgid "" -"Classes created with a metaclass of :class:`ABCMeta` have the following " +"Classes created with a metaclass of :class:`!ABCMeta` have the following " "method:" msgstr "" -"メタクラス :class:`ABCMeta` を使って作られたクラスには以下のメソッドがありま" -"す:" #: ../../library/abc.rst:72 msgid "" @@ -139,11 +120,9 @@ msgstr "" #: ../../library/abc.rst:88 msgid "" -"To detect calls to :meth:`register`, you can use the :func:`get_cache_token` " -"function." +"To detect calls to :meth:`!register`, you can use the :func:" +"`get_cache_token` function." msgstr "" -":meth:`register` の呼び出しを検出するために、:func:`get_cache_token` 関数を" -"使うことができます。" #: ../../library/abc.rst:92 msgid "You can also override this method in an abstract base class:" @@ -156,16 +135,11 @@ msgstr "(クラスメソッドとして定義しなければなりません。)" #: ../../library/abc.rst:98 msgid "" "Check whether *subclass* is considered a subclass of this ABC. This means " -"that you can customize the behavior of ``issubclass`` further without the " -"need to call :meth:`register` on every class you want to consider a subclass " -"of the ABC. (This class method is called from the :meth:`__subclasscheck__` " -"method of the ABC.)" +"that you can customize the behavior of :func:`issubclass` further without " +"the need to call :meth:`register` on every class you want to consider a " +"subclass of the ABC. (This class method is called from the :meth:`~class." +"__subclasscheck__` method of the ABC.)" msgstr "" -"*subclass* がこの ABC のサブクラスと見なせるかどうかチェックします。これに" -"よって ABC のサブクラスと見なしたい全てのクラスについて :meth:`register` を呼" -"び出すことなく ``issubclass`` の振る舞いをさらにカスタマイズできます。 (この" -"クラスメソッドは ABC の :meth:`__subclasscheck__` メソッドから呼び出されま" -"す。)" #: ../../library/abc.rst:104 msgid "" @@ -190,15 +164,10 @@ msgstr "この概念のデモとして、次の ABC 定義の例を見てくだ msgid "" "The ABC ``MyIterable`` defines the standard iterable method, :meth:" "`~iterator.__iter__`, as an abstract method. The implementation given here " -"can still be called from subclasses. The :meth:`get_iterator` method is " +"can still be called from subclasses. The :meth:`!get_iterator` method is " "also part of the ``MyIterable`` abstract base class, but it does not have to " "be overridden in non-abstract derived classes." msgstr "" -"ABC ``MyIterable`` は標準的なイテラブルのメソッド :meth:`~iterator.__iter__` " -"を抽象メソッドとして定義します。ここで与えられている抽象クラスの実装は、サブ" -"クラスから呼び出すことができます。 :meth:`get_iterator` メソッドも " -"``MyIterable`` 抽象基底クラスの一部ですが、抽象的でない派生クラスはこれをオー" -"バーライドする必要はありません。" #: ../../library/abc.rst:149 msgid "" @@ -216,14 +185,15 @@ msgstr "" msgid "" "Finally, the last line makes ``Foo`` a virtual subclass of ``MyIterable``, " "even though it does not define an :meth:`~iterator.__iter__` method (it uses " -"the old-style iterable protocol, defined in terms of :meth:`__len__` and :" -"meth:`~object.__getitem__`). Note that this will not make ``get_iterator`` " -"available as a method of ``Foo``, so it is provided separately." +"the old-style iterable protocol, defined in terms of :meth:`~object.__len__` " +"and :meth:`~object.__getitem__`). Note that this will not make " +"``get_iterator`` available as a method of ``Foo``, so it is provided " +"separately." msgstr "" #: ../../library/abc.rst:163 -msgid "The :mod:`abc` module also provides the following decorator:" -msgstr ":mod:`abc` モジュールは以下のデコレータも提供しています:" +msgid "The :mod:`!abc` module also provides the following decorator:" +msgstr "" #: ../../library/abc.rst:167 msgid "A decorator indicating abstract methods." @@ -232,57 +202,38 @@ msgstr "抽象メソッドを示すデコレータです。" #: ../../library/abc.rst:169 msgid "" "Using this decorator requires that the class's metaclass is :class:`ABCMeta` " -"or is derived from it. A class that has a metaclass derived from :class:" -"`ABCMeta` cannot be instantiated unless all of its abstract methods and " +"or is derived from it. A class that has a metaclass derived from :class:`!" +"ABCMeta` cannot be instantiated unless all of its abstract methods and " "properties are overridden. The abstract methods can be called using any of " -"the normal 'super' call mechanisms. :func:`abstractmethod` may be used to " +"the normal 'super' call mechanisms. :func:`!abstractmethod` may be used to " "declare abstract methods for properties and descriptors." msgstr "" -"このデコレータを使うには、クラスのメタクラスが :class:`ABCMeta` かそれを継承" -"したものである必要があります。 :class:`ABCMeta` の派生クラスをメタクラスに持" -"つクラスは、全ての抽象メソッドとプロパティをオーバーライドしない限りインスタ" -"ンス化することができません。抽象メソッドは通常の 'super' 呼び出し方法で呼ぶこ" -"とができます。 :func:`abstractmethod` はプロパティやデスクリプタのために抽象" -"メソッドを定義することもできます。" #: ../../library/abc.rst:176 msgid "" "Dynamically adding abstract methods to a class, or attempting to modify the " "abstraction status of a method or class once it is created, are only " -"supported using the :func:`update_abstractmethods` function. The :func:" -"`abstractmethod` only affects subclasses derived using regular inheritance; " -"\"virtual subclasses\" registered with the ABC's :meth:`register` method are " -"not affected." -msgstr "" -"クラスに動的に抽象メソッドを追加する、あるいはメソッドやクラスが作られた後か" -"ら抽象的かどうかの状態を変更しようと試みることは、:func:" -"`update_abstractmethods` 関数を使ってのみサポートされます。 :func:" -"`abstractmethod` が影響を与えるのは正規の継承により派生したサブクラスのみで、" -"ABC の :meth:`register` メソッドで登録された \"仮想的サブクラス\" は影響され" -"ません。" +"supported using the :func:`update_abstractmethods` function. The :func:`!" +"abstractmethod` only affects subclasses derived using regular inheritance; " +"\"virtual subclasses\" registered with the ABC's :meth:`~ABCMeta.register` " +"method are not affected." +msgstr "" #: ../../library/abc.rst:183 msgid "" -"When :func:`abstractmethod` is applied in combination with other method " +"When :func:`!abstractmethod` is applied in combination with other method " "descriptors, it should be applied as the innermost decorator, as shown in " "the following usage examples::" msgstr "" -":func:`abstractmethod` が他のメソッドデスクリプタと組み合わされる場合、次の例" -"のように、一番内側のデコレータとして適用しなければなりません::" #: ../../library/abc.rst:217 msgid "" "In order to correctly interoperate with the abstract base class machinery, " -"the descriptor must identify itself as abstract using :attr:" -"`__isabstractmethod__`. In general, this attribute should be ``True`` if any " +"the descriptor must identify itself as abstract using :attr:`!" +"__isabstractmethod__`. In general, this attribute should be ``True`` if any " "of the methods used to compose the descriptor are abstract. For example, " "Python's built-in :class:`property` does the equivalent of::" msgstr "" -"デスクリプタをABC 機構と協調させるために、デスクリプタは :attr:" -"`__isabstractmethod__` を使って自身が抽象であることを示さなければなりません。" -"一般的に、この属性は、そのデスクリプタを構成するのに使われたメソッドのいずれ" -"かが抽象である場合に ``True`` になります。例えば、 Python 組み込みの :class:" -"`property` は、次のコードと等価に振る舞います::" #: ../../library/abc.rst:232 msgid "" @@ -298,8 +249,8 @@ msgstr "" "出しの終点として有効です。" #: ../../library/abc.rst:239 -msgid "The :mod:`abc` module also supports the following legacy decorators:" -msgstr ":mod:`abc` モジュールは以下のレガシーなデコレータも提供しています:" +msgid "The :mod:`!abc` module also supports the following legacy decorators:" +msgstr "" #: ../../library/abc.rst:244 msgid "" @@ -393,8 +344,8 @@ msgstr "" "が、具象サブクラスによってオーバーライドする必要があります::" #: ../../library/abc.rst:326 -msgid "The :mod:`abc` module also provides the following functions:" -msgstr ":mod:`abc` モジュールは以下の関数も提供しています:" +msgid "The :mod:`!abc` module also provides the following functions:" +msgstr "" #: ../../library/abc.rst:330 msgid "Returns the current abstract base class cache token." diff --git a/library/collections.abc.po b/library/collections.abc.po index c7e4e2194..1f788c14d 100644 --- a/library/collections.abc.po +++ b/library/collections.abc.po @@ -15,7 +15,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3.12\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2023-11-17 14:14+0000\n" +"POT-Creation-Date: 2023-12-08 14:14+0000\n" "PO-Revision-Date: 2021-06-28 00:56+0000\n" "Last-Translator: souma987, 2023\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" diff --git a/library/contextlib.po b/library/contextlib.po index eede15579..cd756d56f 100644 --- a/library/contextlib.po +++ b/library/contextlib.po @@ -14,7 +14,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3.12\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2023-11-24 14:13+0000\n" +"POT-Creation-Date: 2023-12-08 14:14+0000\n" "PO-Revision-Date: 2021-06-28 00:57+0000\n" "Last-Translator: Takeshi Nakazato, 2022\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" @@ -185,15 +185,10 @@ msgstr "" msgid "" "This function is a :term:`decorator` that can be used to define a factory " "function for :keyword:`async with` statement asynchronous context managers, " -"without needing to create a class or separate :meth:`__aenter__` and :meth:" -"`__aexit__` methods. It must be applied to an :term:`asynchronous generator` " -"function." +"without needing to create a class or separate :meth:`~object.__aenter__` " +"and :meth:`~object.__aexit__` methods. It must be applied to an :term:" +"`asynchronous generator` function." msgstr "" -"この関数は :keyword:`async with` 文のための非同期コンテキストマネージャのファ" -"クトリ関数を定義するために利用できるデコレータ (:term:`decorator`) です。新し" -"いクラスや :meth:`__aenter__` と :meth:`__aexit__` メソッドを個別に定義する" -"必要はありません。このデコレータは非同期ジェネレータ (:term:`asynchronous " -"generator`) 関数に適用しなければなりません。" #: ../../library/contextlib.rst:113 msgid "A simple example::" @@ -714,18 +709,15 @@ msgstr "" #: ../../library/contextlib.rst:619 msgid "" -"The :meth:`close` method is not implemented, :meth:`aclose` must be used " -"instead." +"The :meth:`~ExitStack.close` method is not implemented; :meth:`aclose` must " +"be used instead." msgstr "" -":meth:`close` メソッドは実装されていません。代わりに :meth:`aclose` を使って" -"ください。" #: ../../library/contextlib.rst:624 msgid "" -"Similar to :meth:`enter_context` but expects an asynchronous context manager." +"Similar to :meth:`ExitStack.enter_context` but expects an asynchronous " +"context manager." msgstr "" -":meth:`enter_context` と同様のメソッドですが、非同期コンテキストマネージャを" -"受け取ります。" #: ../../library/contextlib.rst:627 msgid "" @@ -737,22 +729,17 @@ msgstr "" #: ../../library/contextlib.rst:633 msgid "" -"Similar to :meth:`push` but expects either an asynchronous context manager " -"or a coroutine function." +"Similar to :meth:`ExitStack.push` but expects either an asynchronous context " +"manager or a coroutine function." msgstr "" -":meth:`push` と同様のメソッドですが、非同期コンテキストマネージャかコルーチン" -"関数を受け取ります。" #: ../../library/contextlib.rst:638 -msgid "Similar to :meth:`callback` but expects a coroutine function." +msgid "Similar to :meth:`ExitStack.callback` but expects a coroutine function." msgstr "" -":meth:`callback` と同様のメソッドですが、コルーチン関数を受け取ります。" #: ../../library/contextlib.rst:642 -msgid "Similar to :meth:`close` but properly handles awaitables." +msgid "Similar to :meth:`ExitStack.close` but properly handles awaitables." msgstr "" -":meth:`close` と同様のメソッドですが、待ち受け可能オブジェクト (awaitables) " -"を適切に処理します。" #: ../../library/contextlib.rst:644 msgid "Continuing the example for :func:`asynccontextmanager`::" diff --git a/library/dis.po b/library/dis.po index 41f291413..20fbb7d6d 100644 --- a/library/dis.po +++ b/library/dis.po @@ -14,7 +14,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3.12\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2023-11-24 14:13+0000\n" +"POT-Creation-Date: 2023-12-08 14:14+0000\n" "PO-Revision-Date: 2021-06-28 01:04+0000\n" "Last-Translator: tomo, 2023\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" @@ -444,21 +444,22 @@ msgstr "" #: ../../library/dis.rst:326 msgid "" -"The :pep:`626` ``co_lines`` method is used instead of the ``co_firstlineno`` " -"and ``co_lnotab`` attributes of the code object." +"The :pep:`626` ``co_lines`` method is used instead of the :attr:`~codeobject." +"co_firstlineno` and :attr:`~codeobject.co_lnotab` attributes of the code " +"object." msgstr "" -#: ../../library/dis.rst:333 +#: ../../library/dis.rst:334 msgid "" "Detect all offsets in the raw compiled bytecode string *code* which are jump " "targets, and return a list of these offsets." msgstr "" -#: ../../library/dis.rst:339 +#: ../../library/dis.rst:340 msgid "Compute the stack effect of *opcode* with argument *oparg*." msgstr "*opcode* と引数 *oparg* がスタックに与える影響を計算します。" -#: ../../library/dis.rst:341 +#: ../../library/dis.rst:342 msgid "" "If the code has a jump target and *jump* is ``True``, :func:`~stack_effect` " "will return the stack effect of jumping. If *jump* is ``False``, it will " @@ -466,15 +467,15 @@ msgid "" "it will return the maximal stack effect of both cases." msgstr "" -#: ../../library/dis.rst:348 +#: ../../library/dis.rst:349 msgid "Added *jump* parameter." msgstr "" -#: ../../library/dis.rst:355 +#: ../../library/dis.rst:356 msgid "Python Bytecode Instructions" msgstr "Python バイトコード命令" -#: ../../library/dis.rst:357 +#: ../../library/dis.rst:358 msgid "" "The :func:`get_instructions` function and :class:`Bytecode` class provide " "details of bytecode instructions as :class:`Instruction` instances:" @@ -482,11 +483,11 @@ msgstr "" ":func:`get_instructions` 関数と :class:`Bytecode` クラスはバイトコード命令の" "詳細を :class:`Instruction` インスタンスの形で提供します:" -#: ../../library/dis.rst:362 +#: ../../library/dis.rst:363 msgid "Details for a bytecode operation" msgstr "バイトコード命令の詳細" -#: ../../library/dis.rst:366 +#: ../../library/dis.rst:367 msgid "" "numeric code for operation, corresponding to the opcode values listed below " "and the bytecode values in the :ref:`opcode_collections`." @@ -494,99 +495,99 @@ msgstr "" "以下の命令コードの値と :ref:`opcode_collections` のバイトコードの値に対応す" "る、命令の数値コードです。" -#: ../../library/dis.rst:372 +#: ../../library/dis.rst:373 msgid "human readable name for operation" msgstr "人間が読むための命令名" -#: ../../library/dis.rst:377 +#: ../../library/dis.rst:378 msgid "numeric argument to operation (if any), otherwise ``None``" msgstr "(ある場合は) 命令の数値引数、無ければ ``None``" -#: ../../library/dis.rst:382 +#: ../../library/dis.rst:383 msgid "resolved arg value (if any), otherwise ``None``" msgstr "" -#: ../../library/dis.rst:387 +#: ../../library/dis.rst:388 msgid "" "human readable description of operation argument (if any), otherwise an " "empty string." msgstr "" -#: ../../library/dis.rst:393 +#: ../../library/dis.rst:394 msgid "start index of operation within bytecode sequence" msgstr "バイトコード列の中での命令の開始位置" -#: ../../library/dis.rst:398 +#: ../../library/dis.rst:399 msgid "line started by this opcode (if any), otherwise ``None``" msgstr "(ある場合は) この命令コードが始まる行、無ければ ``None``" -#: ../../library/dis.rst:403 +#: ../../library/dis.rst:404 msgid "``True`` if other code jumps to here, otherwise ``False``" msgstr "" "他のコードからここへジャンプする場合は ``True`` 、そうでない場合は ``False``" -#: ../../library/dis.rst:408 +#: ../../library/dis.rst:409 msgid "" ":class:`dis.Positions` object holding the start and end locations that are " "covered by this instruction." msgstr "" -#: ../../library/dis.rst:415 +#: ../../library/dis.rst:416 msgid "Field ``positions`` is added." msgstr "" -#: ../../library/dis.rst:420 +#: ../../library/dis.rst:421 msgid "" "In case the information is not available, some fields might be ``None``." msgstr "" -#: ../../library/dis.rst:430 +#: ../../library/dis.rst:431 msgid "" "The Python compiler currently generates the following bytecode instructions." msgstr "現在 Python コンパイラは次のバイトコード命令を生成します。" -#: ../../library/dis.rst:433 +#: ../../library/dis.rst:434 msgid "**General instructions**" msgstr "**一般的な命令**" -#: ../../library/dis.rst:435 +#: ../../library/dis.rst:436 msgid "" "In the following, We will refer to the interpreter stack as ``STACK`` and " "describe operations on it as if it was a Python list. The top of the stack " "corresponds to ``STACK[-1]`` in this language." msgstr "" -#: ../../library/dis.rst:441 +#: ../../library/dis.rst:442 msgid "" "Do nothing code. Used as a placeholder by the bytecode optimizer, and to " "generate line tracing events." msgstr "" -#: ../../library/dis.rst:447 +#: ../../library/dis.rst:448 msgid "Removes the top-of-stack item::" msgstr "" -#: ../../library/dis.rst:454 +#: ../../library/dis.rst:455 msgid "" "Removes the top two values from the stack. Equivalent to ``POP_TOP``; " "``POP_TOP``. Used to clean up at the end of loops, hence the name." msgstr "" -#: ../../library/dis.rst:463 +#: ../../library/dis.rst:464 msgid "Implements ``del STACK[-2]``. Used to clean up when a generator exits." msgstr "" -#: ../../library/dis.rst:471 +#: ../../library/dis.rst:472 msgid "" "Push the i-th item to the top of the stack without removing it from its " "original location::" msgstr "" -#: ../../library/dis.rst:482 +#: ../../library/dis.rst:483 msgid "Swap the top of the stack with the i-th element::" msgstr "" -#: ../../library/dis.rst:491 +#: ../../library/dis.rst:492 msgid "" "Rather than being an actual instruction, this opcode is used to mark extra " "space for the interpreter to cache useful data directly in the bytecode " @@ -594,25 +595,25 @@ msgid "" "viewed with ``show_caches=True``." msgstr "" -#: ../../library/dis.rst:496 +#: ../../library/dis.rst:497 msgid "" "Logically, this space is part of the preceding instruction. Many opcodes " "expect to be followed by an exact number of caches, and will instruct the " "interpreter to skip over them at runtime." msgstr "" -#: ../../library/dis.rst:500 +#: ../../library/dis.rst:501 msgid "" "Populated caches can look like arbitrary instructions, so great care should " "be taken when reading or modifying raw, adaptive bytecode containing " "quickened data." msgstr "" -#: ../../library/dis.rst:507 +#: ../../library/dis.rst:508 msgid "**Unary operations**" msgstr "**1オペランド命令**" -#: ../../library/dis.rst:509 +#: ../../library/dis.rst:510 msgid "" "Unary operations take the top of the stack, apply the operation, and push " "the result back on the stack." @@ -620,67 +621,67 @@ msgstr "" "1オペランド命令はスタックの先頭を取り出して操作を適用し、結果をスタックへプッ" "シュし戻します。" -#: ../../library/dis.rst:515 +#: ../../library/dis.rst:516 msgid "Implements ``STACK[-1] = -STACK[-1]``." msgstr "" -#: ../../library/dis.rst:520 +#: ../../library/dis.rst:521 msgid "Implements ``STACK[-1] = not STACK[-1]``." msgstr "" -#: ../../library/dis.rst:525 +#: ../../library/dis.rst:526 msgid "Implements ``STACK[-1] = ~STACK[-1]``." msgstr "" -#: ../../library/dis.rst:530 +#: ../../library/dis.rst:531 msgid "Implements ``STACK[-1] = iter(STACK[-1])``." msgstr "" -#: ../../library/dis.rst:535 +#: ../../library/dis.rst:536 msgid "" "If ``STACK[-1]`` is a :term:`generator iterator` or :term:`coroutine` object " "it is left as is. Otherwise, implements ``STACK[-1] = iter(STACK[-1])``." msgstr "" -#: ../../library/dis.rst:541 +#: ../../library/dis.rst:542 msgid "**Binary and in-place operations**" msgstr "" -#: ../../library/dis.rst:543 +#: ../../library/dis.rst:544 msgid "" "Binary operations remove the top two items from the stack (``STACK[-1]`` and " "``STACK[-2]``). They perform the operation, then put the result back on the " "stack." msgstr "" -#: ../../library/dis.rst:546 +#: ../../library/dis.rst:547 msgid "" "In-place operations are like binary operations, but the operation is done in-" "place when ``STACK[-2]`` supports it, and the resulting ``STACK[-1]`` may be " "(but does not have to be) the original ``STACK[-2]``." msgstr "" -#: ../../library/dis.rst:553 +#: ../../library/dis.rst:554 msgid "" "Implements the binary and in-place operators (depending on the value of " "*op*)::" msgstr "" -#: ../../library/dis.rst:565 ../../library/dis.rst:574 -#: ../../library/dis.rst:584 ../../library/dis.rst:592 -#: ../../library/dis.rst:604 ../../library/dis.rst:692 -#: ../../library/dis.rst:702 ../../library/dis.rst:712 -#: ../../library/dis.rst:932 ../../library/dis.rst:943 -#: ../../library/dis.rst:1043 ../../library/dis.rst:1055 -#: ../../library/dis.rst:1067 +#: ../../library/dis.rst:566 ../../library/dis.rst:575 +#: ../../library/dis.rst:585 ../../library/dis.rst:593 +#: ../../library/dis.rst:605 ../../library/dis.rst:693 +#: ../../library/dis.rst:703 ../../library/dis.rst:713 +#: ../../library/dis.rst:933 ../../library/dis.rst:944 +#: ../../library/dis.rst:1044 ../../library/dis.rst:1056 +#: ../../library/dis.rst:1068 msgid "Implements::" msgstr "" -#: ../../library/dis.rst:615 +#: ../../library/dis.rst:616 msgid "**Coroutine opcodes**" msgstr "**コルーチン命令コード**" -#: ../../library/dis.rst:619 +#: ../../library/dis.rst:620 msgid "" "Implements ``STACK[-1] = get_awaitable(STACK[-1])``, where " "``get_awaitable(o)`` returns ``o`` if ``o`` is a coroutine object or a " @@ -688,39 +689,39 @@ msgid "" "resolves ``o.__await__``." msgstr "" -#: ../../library/dis.rst:624 +#: ../../library/dis.rst:625 msgid "" "If the ``where`` operand is nonzero, it indicates where the instruction " "occurs:" msgstr "" -#: ../../library/dis.rst:627 +#: ../../library/dis.rst:628 msgid "``1``: After a call to ``__aenter__``" msgstr "" -#: ../../library/dis.rst:628 +#: ../../library/dis.rst:629 msgid "``2``: After a call to ``__aexit__``" msgstr "" -#: ../../library/dis.rst:632 +#: ../../library/dis.rst:633 msgid "Previously, this instruction did not have an oparg." msgstr "" -#: ../../library/dis.rst:638 +#: ../../library/dis.rst:639 msgid "Implements ``STACK[-1] = STACK[-1].__aiter__()``." msgstr "" -#: ../../library/dis.rst:641 +#: ../../library/dis.rst:642 msgid "Returning awaitable objects from ``__aiter__`` is no longer supported." msgstr "" -#: ../../library/dis.rst:648 +#: ../../library/dis.rst:649 msgid "" "Implement ``STACK.append(get_awaitable(STACK[-1].__anext__()))`` to the " "stack. See ``GET_AWAITABLE`` for details about ``get_awaitable``." msgstr "" -#: ../../library/dis.rst:656 +#: ../../library/dis.rst:657 msgid "" "Terminates an :keyword:`async for` loop. Handles an exception raised when " "awaiting a next item. The stack contains the async iterable in ``STACK[-2]`` " @@ -728,13 +729,13 @@ msgid "" "is not :exc:`StopAsyncIteration`, it is re-raised." msgstr "" -#: ../../library/dis.rst:663 ../../library/dis.rst:768 -#: ../../library/dis.rst:779 +#: ../../library/dis.rst:664 ../../library/dis.rst:769 +#: ../../library/dis.rst:780 msgid "" "Exception representation on the stack now consist of one, not three, items." msgstr "" -#: ../../library/dis.rst:669 +#: ../../library/dis.rst:670 msgid "" "Handles an exception raised during a :meth:`~generator.throw` or :meth:" "`~generator.close` call through the current frame. If ``STACK[-1]`` is an " @@ -742,35 +743,35 @@ msgid "" "its ``value`` member. Otherwise, re-raise ``STACK[-1]``." msgstr "" -#: ../../library/dis.rst:679 +#: ../../library/dis.rst:680 msgid "" "Resolves ``__aenter__`` and ``__aexit__`` from ``STACK[-1]``. Pushes " "``__aexit__`` and result of ``__aenter__()`` to the stack::" msgstr "" -#: ../../library/dis.rst:688 +#: ../../library/dis.rst:689 msgid "**Miscellaneous opcodes**" msgstr "**その他の命令コード**" -#: ../../library/dis.rst:697 +#: ../../library/dis.rst:698 msgid "Used to implement set comprehensions." msgstr "" -#: ../../library/dis.rst:707 +#: ../../library/dis.rst:708 msgid "Used to implement list comprehensions." msgstr "" -#: ../../library/dis.rst:718 +#: ../../library/dis.rst:719 msgid "Used to implement dict comprehensions." msgstr "" -#: ../../library/dis.rst:721 +#: ../../library/dis.rst:722 msgid "" "Map value is ``STACK[-1]`` and map key is ``STACK[-2]``. Before, those were " "reversed." msgstr "" -#: ../../library/dis.rst:725 +#: ../../library/dis.rst:726 msgid "" "For all of the :opcode:`SET_ADD`, :opcode:`LIST_APPEND` and :opcode:" "`MAP_ADD` instructions, while the added value or key/value pair is popped " @@ -781,29 +782,29 @@ msgstr "" "たは key/value ペアをスタックから取り除きますが、コンテナオブジェクトはループ" "の次のイテレーションで利用できるようにスタックに残しておきます。" -#: ../../library/dis.rst:733 +#: ../../library/dis.rst:734 msgid "Returns with ``STACK[-1]`` to the caller of the function." msgstr "" -#: ../../library/dis.rst:738 +#: ../../library/dis.rst:739 msgid "Returns with ``co_consts[consti]`` to the caller of the function." msgstr "" -#: ../../library/dis.rst:745 +#: ../../library/dis.rst:746 msgid "Yields ``STACK.pop()`` from a :term:`generator`." msgstr "" -#: ../../library/dis.rst:747 +#: ../../library/dis.rst:748 msgid "oparg set to be the stack depth." msgstr "" -#: ../../library/dis.rst:750 +#: ../../library/dis.rst:751 msgid "" "oparg set to be the exception block depth, for efficient closing of " "generators." msgstr "" -#: ../../library/dis.rst:756 +#: ../../library/dis.rst:757 msgid "" "Checks whether ``__annotations__`` is defined in ``locals()``, if not it is " "set up to an empty ``dict``. This opcode is only emitted if a class or " @@ -811,39 +812,39 @@ msgid "" "statically." msgstr "" -#: ../../library/dis.rst:766 +#: ../../library/dis.rst:767 msgid "" "Pops a value from the stack, which is used to restore the exception state." msgstr "" -#: ../../library/dis.rst:773 +#: ../../library/dis.rst:774 msgid "" "Re-raises the exception currently on top of the stack. If oparg is non-zero, " -"pops an additional value from the stack which is used to set ``f_lasti`` of " -"the current frame." +"pops an additional value from the stack which is used to set :attr:`~frame." +"f_lasti` of the current frame." msgstr "" -#: ../../library/dis.rst:784 +#: ../../library/dis.rst:785 msgid "" "Pops a value from the stack. Pushes the current exception to the top of the " "stack. Pushes the value originally popped back to the stack. Used in " "exception handlers." msgstr "" -#: ../../library/dis.rst:792 +#: ../../library/dis.rst:793 msgid "" "Performs exception matching for ``except``. Tests whether the ``STACK[-2]`` " "is an exception matching ``STACK[-1]``. Pops ``STACK[-1]`` and pushes the " "boolean result of the test." msgstr "" -#: ../../library/dis.rst:800 +#: ../../library/dis.rst:801 msgid "" "Performs exception matching for ``except*``. Applies ``split(STACK[-1])`` on " "the exception group representing ``STACK[-2]``." msgstr "" -#: ../../library/dis.rst:803 +#: ../../library/dis.rst:804 msgid "" "In case of a match, pops two items from the stack and pushes the non-" "matching subgroup (``None`` in case of full match) followed by the matching " @@ -851,7 +852,7 @@ msgid "" "``None``." msgstr "" -#: ../../library/dis.rst:812 +#: ../../library/dis.rst:813 msgid "" "Calls the function in position 4 on the stack with arguments (type, val, tb) " "representing the exception at the top of the stack. Used to implement the " @@ -859,25 +860,25 @@ msgid "" "occurred in a :keyword:`with` statement." msgstr "" -#: ../../library/dis.rst:819 +#: ../../library/dis.rst:820 msgid "" "The ``__exit__`` function is in position 4 of the stack rather than 7. " "Exception representation on the stack now consist of one, not three, items." msgstr "" -#: ../../library/dis.rst:826 +#: ../../library/dis.rst:827 msgid "" "Pushes :exc:`AssertionError` onto the stack. Used by the :keyword:`assert` " "statement." msgstr "" -#: ../../library/dis.rst:834 +#: ../../library/dis.rst:835 msgid "" "Pushes :func:`!builtins.__build_class__` onto the stack. It is later called " "to construct a class." msgstr "" -#: ../../library/dis.rst:840 +#: ../../library/dis.rst:841 msgid "" "This opcode performs several operations before a with block starts. First, " "it loads :meth:`~object.__exit__` from the context manager and pushes it " @@ -886,11 +887,11 @@ msgid "" "``__enter__()`` method is pushed onto the stack." msgstr "" -#: ../../library/dis.rst:851 +#: ../../library/dis.rst:852 msgid "Perform ``STACK.append(len(STACK[-1]))``." msgstr "" -#: ../../library/dis.rst:858 +#: ../../library/dis.rst:859 msgid "" "If ``STACK[-1]`` is an instance of :class:`collections.abc.Mapping` (or, " "more technically: if it has the :c:macro:`Py_TPFLAGS_MAPPING` flag set in " @@ -898,7 +899,7 @@ msgid "" "Otherwise, push ``False``." msgstr "" -#: ../../library/dis.rst:868 +#: ../../library/dis.rst:869 msgid "" "If ``STACK[-1]`` is an instance of :class:`collections.abc.Sequence` and is " "*not* an instance of :class:`str`/:class:`bytes`/:class:`bytearray` (or, " @@ -907,40 +908,40 @@ msgid "" "Otherwise, push ``False``." msgstr "" -#: ../../library/dis.rst:878 +#: ../../library/dis.rst:879 msgid "" "``STACK[-1]`` is a tuple of mapping keys, and ``STACK[-2]`` is the match " "subject. If ``STACK[-2]`` contains all of the keys in ``STACK[-1]``, push a :" "class:`tuple` containing the corresponding values. Otherwise, push ``None``." msgstr "" -#: ../../library/dis.rst:884 ../../library/dis.rst:1511 +#: ../../library/dis.rst:885 ../../library/dis.rst:1512 msgid "" "Previously, this instruction also pushed a boolean value indicating success " "(``True``) or failure (``False``)." msgstr "" -#: ../../library/dis.rst:891 +#: ../../library/dis.rst:892 msgid "" "Implements ``name = STACK.pop()``. *namei* is the index of *name* in the " -"attribute :attr:`!co_names` of the :ref:`code object `. The " -"compiler tries to use :opcode:`STORE_FAST` or :opcode:`STORE_GLOBAL` if " -"possible." +"attribute :attr:`~codeobject.co_names` of the :ref:`code object `. The compiler tries to use :opcode:`STORE_FAST` or :opcode:" +"`STORE_GLOBAL` if possible." msgstr "" -#: ../../library/dis.rst:898 +#: ../../library/dis.rst:899 msgid "" -"Implements ``del name``, where *namei* is the index into :attr:`!co_names` " -"attribute of the :ref:`code object `." +"Implements ``del name``, where *namei* is the index into :attr:`~codeobject." +"co_names` attribute of the :ref:`code object `." msgstr "" -#: ../../library/dis.rst:904 +#: ../../library/dis.rst:905 msgid "" "Unpacks ``STACK[-1]`` into *count* individual values, which are put onto the " "stack right-to-left. Require there to be exactly *count* values.::" msgstr "" -#: ../../library/dis.rst:913 +#: ../../library/dis.rst:914 msgid "" "Implements assignment with a starred target: Unpacks an iterable in " "``STACK[-1]`` into individual values, where the total number of values can " @@ -948,11 +949,11 @@ msgid "" "will be a list of all leftover items." msgstr "" -#: ../../library/dis.rst:918 +#: ../../library/dis.rst:919 msgid "The number of values before and after the list value is limited to 255." msgstr "" -#: ../../library/dis.rst:920 +#: ../../library/dis.rst:921 msgid "" "The number of values before the list value is encoded in the argument of the " "opcode. The number of values after the list if any is encoded using an " @@ -961,54 +962,54 @@ msgid "" "list value, the high byte of *counts* the number of values after it." msgstr "" -#: ../../library/dis.rst:926 +#: ../../library/dis.rst:927 msgid "" "The extracted values are put onto the stack right-to-left, i.e. ``a, *b, c = " "d`` will be stored after execution as ``STACK.extend((a, b, c))``." msgstr "" -#: ../../library/dis.rst:938 +#: ../../library/dis.rst:939 msgid "" -"where *namei* is the index of name in :attr:`!co_names` of the :ref:`code " -"object `." +"where *namei* is the index of name in :attr:`~codeobject.co_names` of the :" +"ref:`code object `." msgstr "" -#: ../../library/dis.rst:948 +#: ../../library/dis.rst:949 msgid "" -"where *namei* is the index of name into :attr:`!co_names` of the :ref:`code " -"object `." +"where *namei* is the index of name into :attr:`~codeobject.co_names` of the :" +"ref:`code object `." msgstr "" -#: ../../library/dis.rst:954 +#: ../../library/dis.rst:955 msgid "Works as :opcode:`STORE_NAME`, but stores the name as a global." msgstr "" ":opcode:`STORE_NAME` と同じように動作しますが、 name をグローバルとして保存し" "ます。" -#: ../../library/dis.rst:959 +#: ../../library/dis.rst:960 msgid "Works as :opcode:`DELETE_NAME`, but deletes a global name." msgstr "" ":opcode:`DELETE_NAME` と同じように動作しますが、グローバルの name を削除しま" "す。" -#: ../../library/dis.rst:964 +#: ../../library/dis.rst:965 msgid "Pushes ``co_consts[consti]`` onto the stack." msgstr "``co_consts[consti]`` をスタックにプッシュします。" -#: ../../library/dis.rst:969 +#: ../../library/dis.rst:970 msgid "" "Pushes the value associated with ``co_names[namei]`` onto the stack. The " "name is looked up within the locals, then the globals, then the builtins." msgstr "" -#: ../../library/dis.rst:975 +#: ../../library/dis.rst:976 msgid "" "Pushes a reference to the locals dictionary onto the stack. This is used to " "prepare namespace dictionaries for :opcode:`LOAD_FROM_DICT_OR_DEREF` and :" "opcode:`LOAD_FROM_DICT_OR_GLOBALS`." msgstr "" -#: ../../library/dis.rst:984 +#: ../../library/dis.rst:985 msgid "" "Pops a mapping off the stack and looks up the value for ``co_names[namei]``. " "If the name is not found there, looks it up in the globals and then the " @@ -1017,73 +1018,73 @@ msgid "" "bodies." msgstr "" -#: ../../library/dis.rst:995 +#: ../../library/dis.rst:996 msgid "" "Creates a tuple consuming *count* items from the stack, and pushes the " "resulting tuple onto the stack.::" msgstr "" -#: ../../library/dis.rst:1005 +#: ../../library/dis.rst:1006 msgid "Works as :opcode:`BUILD_TUPLE`, but creates a list." msgstr "" ":opcode:`BUILD_TUPLE` と同じように動作しますが、この命令はリストを作り出しま" "す。" -#: ../../library/dis.rst:1010 +#: ../../library/dis.rst:1011 msgid "Works as :opcode:`BUILD_TUPLE`, but creates a set." msgstr "" ":opcode:`BUILD_TUPLE` と同じように動作しますが、この命令は set を作り出しま" "す。" -#: ../../library/dis.rst:1015 +#: ../../library/dis.rst:1016 msgid "" "Pushes a new dictionary object onto the stack. Pops ``2 * count`` items so " "that the dictionary holds *count* entries: ``{..., STACK[-4]: STACK[-3], " "STACK[-2]: STACK[-1]}``." msgstr "" -#: ../../library/dis.rst:1019 +#: ../../library/dis.rst:1020 msgid "" "The dictionary is created from stack items instead of creating an empty " "dictionary pre-sized to hold *count* items." msgstr "" -#: ../../library/dis.rst:1026 +#: ../../library/dis.rst:1027 msgid "" "The version of :opcode:`BUILD_MAP` specialized for constant keys. Pops the " "top element on the stack which contains a tuple of keys, then starting from " "``STACK[-2]``, pops *count* values to form values in the built dictionary." msgstr "" -#: ../../library/dis.rst:1035 +#: ../../library/dis.rst:1036 msgid "" "Concatenates *count* strings from the stack and pushes the resulting string " "onto the stack." msgstr "" -#: ../../library/dis.rst:1048 +#: ../../library/dis.rst:1049 msgid "Used to build lists." msgstr "" -#: ../../library/dis.rst:1060 +#: ../../library/dis.rst:1061 msgid "Used to build sets." msgstr "" -#: ../../library/dis.rst:1072 +#: ../../library/dis.rst:1073 msgid "Used to build dicts." msgstr "" -#: ../../library/dis.rst:1079 +#: ../../library/dis.rst:1080 msgid "Like :opcode:`DICT_UPDATE` but raises an exception for duplicate keys." msgstr "" -#: ../../library/dis.rst:1086 +#: ../../library/dis.rst:1087 msgid "" "If the low bit of ``namei`` is not set, this replaces ``STACK[-1]`` with " "``getattr(STACK[-1], co_names[namei>>1])``." msgstr "" -#: ../../library/dis.rst:1089 +#: ../../library/dis.rst:1090 msgid "" "If the low bit of ``namei`` is set, this will attempt to load a method named " "``co_names[namei>>1]`` from the ``STACK[-1]`` object. ``STACK[-1]`` is " @@ -1094,60 +1095,60 @@ msgid "" "the object returned by the attribute lookup are pushed." msgstr "" -#: ../../library/dis.rst:1097 +#: ../../library/dis.rst:1098 msgid "" "If the low bit of ``namei`` is set, then a ``NULL`` or ``self`` is pushed to " "the stack before the attribute or unbound method respectively." msgstr "" -#: ../../library/dis.rst:1104 +#: ../../library/dis.rst:1105 msgid "" "This opcode implements :func:`super`, both in its zero-argument and two-" "argument forms (e.g. ``super().method()``, ``super().attr`` and ``super(cls, " "self).method()``, ``super(cls, self).attr``)." msgstr "" -#: ../../library/dis.rst:1108 +#: ../../library/dis.rst:1109 msgid "" "It pops three values from the stack (from top of stack down): - ``self``: " "the first argument to the current method - ``cls``: the class within which " "the current method was defined - the global ``super``" msgstr "" -#: ../../library/dis.rst:1113 +#: ../../library/dis.rst:1114 msgid "" "With respect to its argument, it works similarly to :opcode:`LOAD_ATTR`, " "except that ``namei`` is shifted left by 2 bits instead of 1." msgstr "" -#: ../../library/dis.rst:1116 +#: ../../library/dis.rst:1117 msgid "" "The low bit of ``namei`` signals to attempt a method load, as with :opcode:" "`LOAD_ATTR`, which results in pushing ``None`` and the loaded method. When " "it is unset a single value is pushed to the stack." msgstr "" -#: ../../library/dis.rst:1120 +#: ../../library/dis.rst:1121 msgid "" "The second-low bit of ``namei``, if set, means that this was a two-argument " "call to :func:`super` (unset means zero-argument)." msgstr "" -#: ../../library/dis.rst:1128 +#: ../../library/dis.rst:1129 msgid "" "Performs a Boolean operation. The operation name can be found in " "``cmp_op[opname]``." msgstr "ブール命令を実行します。命令名は ``cmp_op[opname]`` にあります。" -#: ../../library/dis.rst:1134 +#: ../../library/dis.rst:1135 msgid "Performs ``is`` comparison, or ``is not`` if ``invert`` is 1." msgstr "" -#: ../../library/dis.rst:1141 +#: ../../library/dis.rst:1142 msgid "Performs ``in`` comparison, or ``not in`` if ``invert`` is 1." msgstr "" -#: ../../library/dis.rst:1148 +#: ../../library/dis.rst:1149 msgid "" "Imports the module ``co_names[namei]``. ``STACK[-1]`` and ``STACK[-2]`` are " "popped and provide the *fromlist* and *level* arguments of :func:" @@ -1156,68 +1157,68 @@ msgid "" "opcode:`STORE_FAST` instruction modifies the namespace." msgstr "" -#: ../../library/dis.rst:1156 +#: ../../library/dis.rst:1157 msgid "" "Loads the attribute ``co_names[namei]`` from the module found in " "``STACK[-1]``. The resulting object is pushed onto the stack, to be " "subsequently stored by a :opcode:`STORE_FAST` instruction." msgstr "" -#: ../../library/dis.rst:1163 +#: ../../library/dis.rst:1164 msgid "Increments bytecode counter by *delta*." msgstr "バイトコードカウンタを *delta* だけ増加させます。" -#: ../../library/dis.rst:1168 +#: ../../library/dis.rst:1169 msgid "Decrements bytecode counter by *delta*. Checks for interrupts." msgstr "" -#: ../../library/dis.rst:1175 +#: ../../library/dis.rst:1176 msgid "Decrements bytecode counter by *delta*. Does not check for interrupts." msgstr "" -#: ../../library/dis.rst:1182 +#: ../../library/dis.rst:1183 msgid "" "If ``STACK[-1]`` is true, increments the bytecode counter by *delta*. " "``STACK[-1]`` is popped." msgstr "" -#: ../../library/dis.rst:1185 ../../library/dis.rst:1198 +#: ../../library/dis.rst:1186 ../../library/dis.rst:1199 msgid "" "The oparg is now a relative delta rather than an absolute target. This " "opcode is a pseudo-instruction, replaced in final bytecode by the directed " "versions (forward/backward)." msgstr "" -#: ../../library/dis.rst:1190 ../../library/dis.rst:1203 -#: ../../library/dis.rst:1216 ../../library/dis.rst:1230 +#: ../../library/dis.rst:1191 ../../library/dis.rst:1204 +#: ../../library/dis.rst:1217 ../../library/dis.rst:1231 msgid "This is no longer a pseudo-instruction." msgstr "" -#: ../../library/dis.rst:1195 +#: ../../library/dis.rst:1196 msgid "" "If ``STACK[-1]`` is false, increments the bytecode counter by *delta*. " "``STACK[-1]`` is popped." msgstr "" -#: ../../library/dis.rst:1208 +#: ../../library/dis.rst:1209 msgid "" "If ``STACK[-1]`` is not ``None``, increments the bytecode counter by " "*delta*. ``STACK[-1]`` is popped." msgstr "" -#: ../../library/dis.rst:1211 ../../library/dis.rst:1225 +#: ../../library/dis.rst:1212 ../../library/dis.rst:1226 msgid "" "This opcode is a pseudo-instruction, replaced in final bytecode by the " "directed versions (forward/backward)." msgstr "" -#: ../../library/dis.rst:1222 +#: ../../library/dis.rst:1223 msgid "" "If ``STACK[-1]`` is ``None``, increments the bytecode counter by *delta*. " "``STACK[-1]`` is popped." msgstr "" -#: ../../library/dis.rst:1235 +#: ../../library/dis.rst:1236 msgid "" "``STACK[-1]`` is an :term:`iterator`. Call its :meth:`~iterator.__next__` " "method. If this yields a new value, push it on the stack (leaving the " @@ -1225,85 +1226,90 @@ msgid "" "code counter is incremented by *delta*." msgstr "" -#: ../../library/dis.rst:1240 +#: ../../library/dis.rst:1241 msgid "Up until 3.11 the iterator was popped when it was exhausted." msgstr "" -#: ../../library/dis.rst:1245 +#: ../../library/dis.rst:1246 msgid "Loads the global named ``co_names[namei>>1]`` onto the stack." msgstr "" "``co_names[namei>>1]`` という名前のグローバルをスタック上にロードします。" -#: ../../library/dis.rst:1247 +#: ../../library/dis.rst:1248 msgid "" "If the low bit of ``namei`` is set, then a ``NULL`` is pushed to the stack " "before the global variable." msgstr "" -#: ../../library/dis.rst:1253 +#: ../../library/dis.rst:1254 msgid "" "Pushes a reference to the local ``co_varnames[var_num]`` onto the stack." msgstr "" "ローカルな ``co_varnames[var_num]`` への参照をスタックにプッシュします。" -#: ../../library/dis.rst:1255 +#: ../../library/dis.rst:1256 msgid "" "This opcode is now only used in situations where the local variable is " "guaranteed to be initialized. It cannot raise :exc:`UnboundLocalError`." msgstr "" -#: ../../library/dis.rst:1261 +#: ../../library/dis.rst:1262 msgid "" "Pushes a reference to the local ``co_varnames[var_num]`` onto the stack, " "raising an :exc:`UnboundLocalError` if the local variable has not been " "initialized." msgstr "" -#: ../../library/dis.rst:1269 +#: ../../library/dis.rst:1270 msgid "" "Pushes a reference to the local ``co_varnames[var_num]`` onto the stack (or " "pushes ``NULL`` onto the stack if the local variable has not been " "initialized) and sets ``co_varnames[var_num]`` to ``NULL``." msgstr "" -#: ../../library/dis.rst:1277 +#: ../../library/dis.rst:1278 msgid "Stores ``STACK.pop()`` into the local ``co_varnames[var_num]``." msgstr "" -#: ../../library/dis.rst:1282 +#: ../../library/dis.rst:1283 msgid "Deletes local ``co_varnames[var_num]``." msgstr "ローカルな ``co_varnames[var_num]`` を削除します。" -#: ../../library/dis.rst:1287 +#: ../../library/dis.rst:1288 msgid "" "Creates a new cell in slot ``i``. If that slot is nonempty then that value " "is stored into the new cell." msgstr "" -#: ../../library/dis.rst:1295 +#: ../../library/dis.rst:1296 msgid "" "Pushes a reference to the cell contained in slot ``i`` of the \"fast " "locals\" storage. The name of the variable is ``co_fastlocalnames[i]``." msgstr "" -#: ../../library/dis.rst:1298 +#: ../../library/dis.rst:1299 msgid "" "Note that ``LOAD_CLOSURE`` is effectively an alias for ``LOAD_FAST``. It " "exists to keep bytecode a little more readable." msgstr "" -#: ../../library/dis.rst:1301 ../../library/dis.rst:1310 -#: ../../library/dis.rst:1332 ../../library/dis.rst:1343 +#: ../../library/dis.rst:1302 msgid "``i`` is no longer offset by the length of ``co_varnames``." msgstr "" -#: ../../library/dis.rst:1307 +#: ../../library/dis.rst:1308 msgid "" "Loads the cell contained in slot ``i`` of the \"fast locals\" storage. " "Pushes a reference to the object the cell contains on the stack." msgstr "" -#: ../../library/dis.rst:1316 +#: ../../library/dis.rst:1311 ../../library/dis.rst:1333 +#: ../../library/dis.rst:1344 +msgid "" +"``i`` is no longer offset by the length of :attr:`~codeobject.co_varnames`." +msgstr "" + +#: ../../library/dis.rst:1317 msgid "" "Pops a mapping off the stack and looks up the name associated with slot " "``i`` of the \"fast locals\" storage in this mapping. If the name is not " @@ -1313,94 +1319,94 @@ msgid "" "scopes ` within class bodies." msgstr "" -#: ../../library/dis.rst:1329 +#: ../../library/dis.rst:1330 msgid "" "Stores ``STACK.pop()`` into the cell contained in slot ``i`` of the \"fast " "locals\" storage." msgstr "" -#: ../../library/dis.rst:1338 +#: ../../library/dis.rst:1339 msgid "" "Empties the cell contained in slot ``i`` of the \"fast locals\" storage. " "Used by the :keyword:`del` statement." msgstr "" -#: ../../library/dis.rst:1349 +#: ../../library/dis.rst:1350 msgid "" "Copies the ``n`` free variables from the closure into the frame. Removes the " "need for special code on the caller's side when calling closures." msgstr "" -#: ../../library/dis.rst:1358 +#: ../../library/dis.rst:1359 msgid "" "Raises an exception using one of the 3 forms of the ``raise`` statement, " "depending on the value of *argc*:" msgstr "" -#: ../../library/dis.rst:1361 +#: ../../library/dis.rst:1362 msgid "0: ``raise`` (re-raise previous exception)" msgstr "" -#: ../../library/dis.rst:1362 +#: ../../library/dis.rst:1363 msgid "" "1: ``raise STACK[-1]`` (raise exception instance or type at ``STACK[-1]``)" msgstr "" -#: ../../library/dis.rst:1363 +#: ../../library/dis.rst:1364 msgid "" "2: ``raise STACK[-2] from STACK[-1]`` (raise exception instance or type at " "``STACK[-2]`` with ``__cause__`` set to ``STACK[-1]``)" msgstr "" -#: ../../library/dis.rst:1369 +#: ../../library/dis.rst:1370 msgid "" "Calls a callable object with the number of arguments specified by ``argc``, " "including the named arguments specified by the preceding :opcode:`KW_NAMES`, " "if any. On the stack are (in ascending order), either:" msgstr "" -#: ../../library/dis.rst:1374 +#: ../../library/dis.rst:1375 msgid "NULL" msgstr "NULL" -#: ../../library/dis.rst:1375 ../../library/dis.rst:1381 +#: ../../library/dis.rst:1376 ../../library/dis.rst:1382 msgid "The callable" msgstr "" -#: ../../library/dis.rst:1376 +#: ../../library/dis.rst:1377 msgid "The positional arguments" msgstr "" -#: ../../library/dis.rst:1377 ../../library/dis.rst:1384 +#: ../../library/dis.rst:1378 ../../library/dis.rst:1385 msgid "The named arguments" msgstr "" -#: ../../library/dis.rst:1379 +#: ../../library/dis.rst:1380 msgid "or:" msgstr "" -#: ../../library/dis.rst:1382 +#: ../../library/dis.rst:1383 msgid "``self``" msgstr "" -#: ../../library/dis.rst:1383 +#: ../../library/dis.rst:1384 msgid "The remaining positional arguments" msgstr "" -#: ../../library/dis.rst:1386 +#: ../../library/dis.rst:1387 msgid "" "``argc`` is the total of the positional and named arguments, excluding " "``self`` when a ``NULL`` is not present." msgstr "" -#: ../../library/dis.rst:1389 +#: ../../library/dis.rst:1390 msgid "" "``CALL`` pops all arguments and the callable object off the stack, calls the " "callable object with those arguments, and pushes the return value returned " "by the callable object." msgstr "" -#: ../../library/dis.rst:1398 +#: ../../library/dis.rst:1399 msgid "" "Calls a callable object with variable set of positional and keyword " "arguments. If the lowest bit of *flags* is set, the top of the stack " @@ -1412,70 +1418,70 @@ msgid "" "arguments, and pushes the return value returned by the callable object." msgstr "" -#: ../../library/dis.rst:1413 +#: ../../library/dis.rst:1414 msgid "" "Pushes a ``NULL`` to the stack. Used in the call sequence to match the " "``NULL`` pushed by :opcode:`LOAD_METHOD` for non-method calls." msgstr "" -#: ../../library/dis.rst:1422 +#: ../../library/dis.rst:1423 msgid "" "Prefixes :opcode:`CALL`. Stores a reference to ``co_consts[consti]`` into an " "internal variable for use by :opcode:`CALL`. ``co_consts[consti]`` must be a " "tuple of strings." msgstr "" -#: ../../library/dis.rst:1431 +#: ../../library/dis.rst:1432 msgid "" "Pushes a new function object on the stack. From bottom to top, the consumed " "stack must consist of values if the argument carries a specified flag value" msgstr "" -#: ../../library/dis.rst:1434 +#: ../../library/dis.rst:1435 msgid "" "``0x01`` a tuple of default values for positional-only and positional-or-" "keyword parameters in positional order" msgstr "" -#: ../../library/dis.rst:1436 +#: ../../library/dis.rst:1437 msgid "``0x02`` a dictionary of keyword-only parameters' default values" msgstr "" -#: ../../library/dis.rst:1437 +#: ../../library/dis.rst:1438 msgid "``0x04`` a tuple of strings containing parameters' annotations" msgstr "" -#: ../../library/dis.rst:1438 +#: ../../library/dis.rst:1439 msgid "``0x08`` a tuple containing cells for free variables, making a closure" msgstr "" -#: ../../library/dis.rst:1439 +#: ../../library/dis.rst:1440 msgid "the code associated with the function (at ``STACK[-1]``)" msgstr "" -#: ../../library/dis.rst:1441 +#: ../../library/dis.rst:1442 msgid "Flag value ``0x04`` is a tuple of strings instead of dictionary" msgstr "" -#: ../../library/dis.rst:1444 +#: ../../library/dis.rst:1445 msgid "Qualified name at ``STACK[-1]`` was removed." msgstr "" -#: ../../library/dis.rst:1452 +#: ../../library/dis.rst:1453 msgid "" "Pushes a slice object on the stack. *argc* must be 2 or 3. If it is 2, " "implements::" msgstr "" -#: ../../library/dis.rst:1458 +#: ../../library/dis.rst:1459 msgid "if it is 3, implements::" msgstr "" -#: ../../library/dis.rst:1465 +#: ../../library/dis.rst:1466 msgid "See the :func:`slice` built-in function for more information." msgstr "" -#: ../../library/dis.rst:1470 +#: ../../library/dis.rst:1471 msgid "" "Prefixes any opcode which has an argument too big to fit into the default " "one byte. *ext* holds an additional byte which act as higher bits in the " @@ -1483,54 +1489,54 @@ msgid "" "allowed, forming an argument from two-byte to four-byte." msgstr "" -#: ../../library/dis.rst:1478 +#: ../../library/dis.rst:1479 msgid "" "Used for implementing formatted literal strings (f-strings). Pops an " "optional *fmt_spec* from the stack, then a required *value*. *flags* is " "interpreted as follows:" msgstr "" -#: ../../library/dis.rst:1482 +#: ../../library/dis.rst:1483 msgid "``(flags & 0x03) == 0x00``: *value* is formatted as-is." msgstr "" -#: ../../library/dis.rst:1483 +#: ../../library/dis.rst:1484 msgid "" "``(flags & 0x03) == 0x01``: call :func:`str` on *value* before formatting it." msgstr "" -#: ../../library/dis.rst:1485 +#: ../../library/dis.rst:1486 msgid "" "``(flags & 0x03) == 0x02``: call :func:`repr` on *value* before formatting " "it." msgstr "" -#: ../../library/dis.rst:1487 +#: ../../library/dis.rst:1488 msgid "" "``(flags & 0x03) == 0x03``: call :func:`ascii` on *value* before formatting " "it." msgstr "" -#: ../../library/dis.rst:1489 +#: ../../library/dis.rst:1490 msgid "" "``(flags & 0x04) == 0x04``: pop *fmt_spec* from the stack and use it, else " "use an empty *fmt_spec*." msgstr "" -#: ../../library/dis.rst:1492 +#: ../../library/dis.rst:1493 msgid "" "Formatting is performed using :c:func:`PyObject_Format`. The result is " "pushed on the stack." msgstr "" -#: ../../library/dis.rst:1500 +#: ../../library/dis.rst:1501 msgid "" "``STACK[-1]`` is a tuple of keyword attribute names, ``STACK[-2]`` is the " "class being matched against, and ``STACK[-3]`` is the match subject. " "*count* is the number of positional sub-patterns." msgstr "" -#: ../../library/dis.rst:1504 +#: ../../library/dis.rst:1505 msgid "" "Pop ``STACK[-1]``, ``STACK[-2]``, and ``STACK[-3]``. If ``STACK[-3]`` is an " "instance of ``STACK[-2]`` and has the positional and keyword attributes " @@ -1538,257 +1544,257 @@ msgid "" "Otherwise, push ``None``." msgstr "" -#: ../../library/dis.rst:1518 +#: ../../library/dis.rst:1519 msgid "A no-op. Performs internal tracing, debugging and optimization checks." msgstr "" -#: ../../library/dis.rst:1520 +#: ../../library/dis.rst:1521 msgid "The ``where`` operand marks where the ``RESUME`` occurs:" msgstr "" -#: ../../library/dis.rst:1522 +#: ../../library/dis.rst:1523 msgid "" "``0`` The start of a function, which is neither a generator, coroutine nor " "an async generator" msgstr "" -#: ../../library/dis.rst:1524 +#: ../../library/dis.rst:1525 msgid "``1`` After a ``yield`` expression" msgstr "" -#: ../../library/dis.rst:1525 +#: ../../library/dis.rst:1526 msgid "``2`` After a ``yield from`` expression" msgstr "" -#: ../../library/dis.rst:1526 +#: ../../library/dis.rst:1527 msgid "``3`` After an ``await`` expression" msgstr "" -#: ../../library/dis.rst:1533 +#: ../../library/dis.rst:1534 msgid "" "Create a generator, coroutine, or async generator from the current frame. " "Used as first opcode of in code object for the above mentioned callables. " "Clear the current frame and return the newly created generator." msgstr "" -#: ../../library/dis.rst:1542 +#: ../../library/dis.rst:1543 msgid "" "Equivalent to ``STACK[-1] = STACK[-2].send(STACK[-1])``. Used in ``yield " "from`` and ``await`` statements." msgstr "" -#: ../../library/dis.rst:1545 +#: ../../library/dis.rst:1546 msgid "" "If the call raises :exc:`StopIteration`, pop the top value from the stack, " "push the exception's ``value`` attribute, and increment the bytecode counter " "by *delta*." msgstr "" -#: ../../library/dis.rst:1554 +#: ../../library/dis.rst:1555 msgid "" "This is not really an opcode. It identifies the dividing line between " "opcodes in the range [0,255] which don't use their argument and those that " "do (``< HAVE_ARGUMENT`` and ``>= HAVE_ARGUMENT``, respectively)." msgstr "" -#: ../../library/dis.rst:1558 +#: ../../library/dis.rst:1559 msgid "" "If your application uses pseudo instructions, use the :data:`hasarg` " "collection instead." msgstr "" -#: ../../library/dis.rst:1561 +#: ../../library/dis.rst:1562 msgid "" "Now every instruction has an argument, but opcodes ``< HAVE_ARGUMENT`` " "ignore it. Before, only opcodes ``>= HAVE_ARGUMENT`` had an argument." msgstr "" -#: ../../library/dis.rst:1565 +#: ../../library/dis.rst:1566 msgid "" "Pseudo instructions were added to the :mod:`dis` module, and for them it is " "not true that comparison with ``HAVE_ARGUMENT`` indicates whether they use " "their arg." msgstr "" -#: ../../library/dis.rst:1573 +#: ../../library/dis.rst:1574 msgid "" "Calls an intrinsic function with one argument. Passes ``STACK[-1]`` as the " "argument and sets ``STACK[-1]`` to the result. Used to implement " "functionality that is not performance critical." msgstr "" -#: ../../library/dis.rst:1577 ../../library/dis.rst:1631 +#: ../../library/dis.rst:1578 ../../library/dis.rst:1632 msgid "The operand determines which intrinsic function is called:" msgstr "" -#: ../../library/dis.rst:1580 ../../library/dis.rst:1634 +#: ../../library/dis.rst:1581 ../../library/dis.rst:1635 msgid "Operand" msgstr "" -#: ../../library/dis.rst:1580 ../../library/dis.rst:1634 +#: ../../library/dis.rst:1581 ../../library/dis.rst:1635 msgid "Description" msgstr "説明" -#: ../../library/dis.rst:1582 +#: ../../library/dis.rst:1583 msgid "``INTRINSIC_1_INVALID``" msgstr "" -#: ../../library/dis.rst:1582 ../../library/dis.rst:1636 +#: ../../library/dis.rst:1583 ../../library/dis.rst:1637 msgid "Not valid" msgstr "" -#: ../../library/dis.rst:1584 +#: ../../library/dis.rst:1585 msgid "``INTRINSIC_PRINT``" msgstr "" -#: ../../library/dis.rst:1584 +#: ../../library/dis.rst:1585 msgid "Prints the argument to standard out. Used in the REPL." msgstr "" -#: ../../library/dis.rst:1587 +#: ../../library/dis.rst:1588 msgid "``INTRINSIC_IMPORT_STAR``" msgstr "" -#: ../../library/dis.rst:1587 +#: ../../library/dis.rst:1588 msgid "Performs ``import *`` for the named module." msgstr "" -#: ../../library/dis.rst:1590 +#: ../../library/dis.rst:1591 msgid "``INTRINSIC_STOPITERATION_ERROR``" msgstr "" -#: ../../library/dis.rst:1590 +#: ../../library/dis.rst:1591 msgid "Extracts the return value from a ``StopIteration`` exception." msgstr "" -#: ../../library/dis.rst:1593 +#: ../../library/dis.rst:1594 msgid "``INTRINSIC_ASYNC_GEN_WRAP``" msgstr "" -#: ../../library/dis.rst:1593 +#: ../../library/dis.rst:1594 msgid "Wraps an aync generator value" msgstr "" -#: ../../library/dis.rst:1595 +#: ../../library/dis.rst:1596 msgid "``INTRINSIC_UNARY_POSITIVE``" msgstr "" -#: ../../library/dis.rst:1595 +#: ../../library/dis.rst:1596 msgid "Performs the unary ``+`` operation" msgstr "" -#: ../../library/dis.rst:1598 +#: ../../library/dis.rst:1599 msgid "``INTRINSIC_LIST_TO_TUPLE``" msgstr "" -#: ../../library/dis.rst:1598 +#: ../../library/dis.rst:1599 msgid "Converts a list to a tuple" msgstr "" -#: ../../library/dis.rst:1600 +#: ../../library/dis.rst:1601 msgid "``INTRINSIC_TYPEVAR``" msgstr "" -#: ../../library/dis.rst:1600 +#: ../../library/dis.rst:1601 msgid "Creates a :class:`typing.TypeVar`" msgstr "" -#: ../../library/dis.rst:1602 +#: ../../library/dis.rst:1603 msgid "``INTRINSIC_PARAMSPEC``" msgstr "" -#: ../../library/dis.rst:1602 +#: ../../library/dis.rst:1603 msgid "Creates a :class:`typing.ParamSpec`" msgstr "" -#: ../../library/dis.rst:1605 +#: ../../library/dis.rst:1606 msgid "``INTRINSIC_TYPEVARTUPLE``" msgstr "" -#: ../../library/dis.rst:1605 +#: ../../library/dis.rst:1606 msgid "Creates a :class:`typing.TypeVarTuple`" msgstr "" -#: ../../library/dis.rst:1608 +#: ../../library/dis.rst:1609 msgid "``INTRINSIC_SUBSCRIPT_GENERIC``" msgstr "" -#: ../../library/dis.rst:1608 +#: ../../library/dis.rst:1609 msgid "Returns :class:`typing.Generic` subscripted with the argument" msgstr "" -#: ../../library/dis.rst:1611 +#: ../../library/dis.rst:1612 msgid "``INTRINSIC_TYPEALIAS``" msgstr "" -#: ../../library/dis.rst:1611 +#: ../../library/dis.rst:1612 msgid "" "Creates a :class:`typing.TypeAliasType`; used in the :keyword:`type` " "statement. The argument is a tuple of the type alias's name, type " "parameters, and value." msgstr "" -#: ../../library/dis.rst:1623 +#: ../../library/dis.rst:1624 msgid "" "Calls an intrinsic function with two arguments. Used to implement " "functionality that is not performance critical::" msgstr "" -#: ../../library/dis.rst:1636 +#: ../../library/dis.rst:1637 msgid "``INTRINSIC_2_INVALID``" msgstr "" -#: ../../library/dis.rst:1638 +#: ../../library/dis.rst:1639 msgid "``INTRINSIC_PREP_RERAISE_STAR``" msgstr "" -#: ../../library/dis.rst:1638 +#: ../../library/dis.rst:1639 msgid "Calculates the :exc:`ExceptionGroup` to raise from a ``try-except*``." msgstr "" -#: ../../library/dis.rst:1642 +#: ../../library/dis.rst:1643 msgid "``INTRINSIC_TYPEVAR_WITH_BOUND``" msgstr "" -#: ../../library/dis.rst:1642 +#: ../../library/dis.rst:1643 msgid "Creates a :class:`typing.TypeVar` with a bound." msgstr "" -#: ../../library/dis.rst:1645 +#: ../../library/dis.rst:1646 msgid "``INTRINSIC_TYPEVAR_WITH_CONSTRAINTS``" msgstr "" -#: ../../library/dis.rst:1645 +#: ../../library/dis.rst:1646 msgid "Creates a :class:`typing.TypeVar` with constraints." msgstr "" -#: ../../library/dis.rst:1649 +#: ../../library/dis.rst:1650 msgid "``INTRINSIC_SET_FUNCTION_TYPE_PARAMS``" msgstr "" -#: ../../library/dis.rst:1649 +#: ../../library/dis.rst:1650 msgid "Sets the ``__type_params__`` attribute of a function." msgstr "" -#: ../../library/dis.rst:1656 +#: ../../library/dis.rst:1657 msgid "**Pseudo-instructions**" msgstr "" -#: ../../library/dis.rst:1658 +#: ../../library/dis.rst:1659 msgid "" "These opcodes do not appear in Python bytecode. They are used by the " "compiler but are replaced by real opcodes or removed before bytecode is " "generated." msgstr "" -#: ../../library/dis.rst:1663 +#: ../../library/dis.rst:1664 msgid "" "Set up an exception handler for the following code block. If an exception " "occurs, the value stack level is restored to its current state and control " "is transferred to the exception handler at ``target``." msgstr "" -#: ../../library/dis.rst:1670 +#: ../../library/dis.rst:1671 msgid "" "Like ``SETUP_FINALLY``, but in case of an exception also pushes the last " "instruction (``lasti``) to the stack so that ``RERAISE`` can restore it. If " @@ -1797,43 +1803,43 @@ msgid "" "exception handler at ``target``." msgstr "" -#: ../../library/dis.rst:1679 +#: ../../library/dis.rst:1680 msgid "" "Like ``SETUP_CLEANUP``, but in case of an exception one more item is popped " "from the stack before control is transferred to the exception handler at " "``target``." msgstr "" -#: ../../library/dis.rst:1683 +#: ../../library/dis.rst:1684 msgid "" "This variant is used in :keyword:`with` and :keyword:`async with` " "constructs, which push the return value of the context manager's :meth:" "`~object.__enter__` or :meth:`~object.__aenter__` to the stack." msgstr "" -#: ../../library/dis.rst:1690 +#: ../../library/dis.rst:1691 msgid "" "Marks the end of the code block associated with the last ``SETUP_FINALLY``, " "``SETUP_CLEANUP`` or ``SETUP_WITH``." msgstr "" -#: ../../library/dis.rst:1696 +#: ../../library/dis.rst:1697 msgid "" "Undirected relative jump instructions which are replaced by their directed " "(forward/backward) counterparts by the assembler." msgstr "" -#: ../../library/dis.rst:1701 +#: ../../library/dis.rst:1702 msgid "" "Optimized unbound method lookup. Emitted as a ``LOAD_ATTR`` opcode with a " "flag set in the arg." msgstr "" -#: ../../library/dis.rst:1708 +#: ../../library/dis.rst:1709 msgid "Opcode collections" msgstr "命令コードコレクション" -#: ../../library/dis.rst:1710 +#: ../../library/dis.rst:1711 msgid "" "These collections are provided for automatic introspection of bytecode " "instructions:" @@ -1841,36 +1847,36 @@ msgstr "" "これらのコレクションは、自動でバイトコード命令を解析するために提供されていま" "す:" -#: ../../library/dis.rst:1713 +#: ../../library/dis.rst:1714 msgid "" "The collections now contain pseudo instructions and instrumented " "instructions as well. These are opcodes with values ``>= MIN_PSEUDO_OPCODE`` " "and ``>= MIN_INSTRUMENTED_OPCODE``." msgstr "" -#: ../../library/dis.rst:1720 +#: ../../library/dis.rst:1721 msgid "Sequence of operation names, indexable using the bytecode." msgstr "" "命令コード名のリスト。\n" "バイトコードをインデックスに使って参照できます。" -#: ../../library/dis.rst:1725 +#: ../../library/dis.rst:1726 msgid "Dictionary mapping operation names to bytecodes." msgstr "命令コード名をバイトコードに対応づける辞書。" -#: ../../library/dis.rst:1730 +#: ../../library/dis.rst:1731 msgid "Sequence of all compare operation names." msgstr "すべての比較命令の名前のリスト。" -#: ../../library/dis.rst:1735 +#: ../../library/dis.rst:1736 msgid "Sequence of bytecodes that use their argument." msgstr "" -#: ../../library/dis.rst:1742 +#: ../../library/dis.rst:1743 msgid "Sequence of bytecodes that access a constant." msgstr "定数にアクセスするバイトコードのリスト。" -#: ../../library/dis.rst:1747 +#: ../../library/dis.rst:1748 msgid "" "Sequence of bytecodes that access a free variable. 'free' in this context " "refers to names in the current scope that are referenced by inner scopes or " @@ -1878,34 +1884,34 @@ msgid "" "include references to global or builtin scopes." msgstr "" -#: ../../library/dis.rst:1755 +#: ../../library/dis.rst:1756 msgid "Sequence of bytecodes that access an attribute by name." msgstr "名前によって属性にアクセスするバイトコードのリスト。" -#: ../../library/dis.rst:1760 +#: ../../library/dis.rst:1761 msgid "Sequence of bytecodes that have a relative jump target." msgstr "相対ジャンプ先を持つバイトコードのリスト。" -#: ../../library/dis.rst:1765 +#: ../../library/dis.rst:1766 msgid "Sequence of bytecodes that have an absolute jump target." msgstr "絶対ジャンプ先を持つバイトコードのリスト。" -#: ../../library/dis.rst:1770 +#: ../../library/dis.rst:1771 msgid "Sequence of bytecodes that access a local variable." msgstr "ローカル変数にアクセスするバイトコードのリスト。" -#: ../../library/dis.rst:1775 +#: ../../library/dis.rst:1776 msgid "Sequence of bytecodes of Boolean operations." msgstr "ブール命令のバイトコードのリスト。" -#: ../../library/dis.rst:1779 +#: ../../library/dis.rst:1780 msgid "Sequence of bytecodes that set an exception handler." msgstr "" -#: ../../library/dis.rst:1450 +#: ../../library/dis.rst:1451 msgid "built-in function" msgstr "組み込み関数" -#: ../../library/dis.rst:1450 +#: ../../library/dis.rst:1451 msgid "slice" msgstr "slice" diff --git a/library/exceptions.po b/library/exceptions.po index 2c9339df1..8ae28b722 100644 --- a/library/exceptions.po +++ b/library/exceptions.po @@ -14,7 +14,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3.12\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2023-12-01 14:14+0000\n" +"POT-Creation-Date: 2023-12-08 14:14+0000\n" "PO-Revision-Date: 2021-06-28 01:05+0000\n" "Last-Translator: Masato HASHIMOTO , 2023\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" @@ -636,15 +636,14 @@ msgstr "" "ソッドによって、そのイテレータが生成するアイテムがこれ以上ないことを伝えるた" "めに送出されます。" -#: ../../library/exceptions.rst:432 +#: ../../library/exceptions.rst:434 msgid "" -"The exception object has a single attribute :attr:`value`, which is given as " -"an argument when constructing the exception, and defaults to :const:`None`." +"The exception object has a single attribute :attr:`!value`, which is given " +"as an argument when constructing the exception, and defaults to :const:" +"`None`." msgstr "" -"この例外オブジェクトには一つの属性 :attr:`value` があり、例外を構成する際に引" -"数として与えられ、デフォルトは :const:`None` です。" -#: ../../library/exceptions.rst:436 +#: ../../library/exceptions.rst:438 msgid "" "When a :term:`generator` or :term:`coroutine` function returns, a new :exc:" "`StopIteration` instance is raised, and the value returned by the function " @@ -654,7 +653,7 @@ msgstr "" "`StopIteration` インスタンスが送出されます。\n" "関数の返り値は例外のコンストラクタの :attr:`value` 引数として使われます。" -#: ../../library/exceptions.rst:441 +#: ../../library/exceptions.rst:443 msgid "" "If a generator code directly or indirectly raises :exc:`StopIteration`, it " "is converted into a :exc:`RuntimeError` (retaining the :exc:`StopIteration` " @@ -664,7 +663,7 @@ msgstr "" "場合は、 :exc:`RuntimeError` に変換されます (:exc:`StopIteration` は変換後の" "例外の原因として保持されます)。" -#: ../../library/exceptions.rst:445 +#: ../../library/exceptions.rst:447 msgid "" "Added ``value`` attribute and the ability for generator functions to use it " "to return a value." @@ -672,7 +671,7 @@ msgstr "" "``value`` 属性とジェネレータ関数が値を返すためにそれを使う機能が追加されまし" "た。" -#: ../../library/exceptions.rst:449 +#: ../../library/exceptions.rst:451 msgid "" "Introduced the RuntimeError transformation via ``from __future__ import " "generator_stop``, see :pep:`479`." @@ -680,7 +679,7 @@ msgstr "" "``from __future__ import generator_stop`` による RuntimeError への変換が導入" "されました。 :pep:`479` を参照してください。" -#: ../../library/exceptions.rst:453 +#: ../../library/exceptions.rst:455 msgid "" "Enable :pep:`479` for all code by default: a :exc:`StopIteration` error " "raised in a generator is transformed into a :exc:`RuntimeError`." @@ -688,13 +687,13 @@ msgstr "" ":pep:`479` が全てのコードでデフォルトで有効化されました: ジェネレータから送出" "された :exc:`StopIteration` は :exc:`RuntimeError` に変換されます。" -#: ../../library/exceptions.rst:459 +#: ../../library/exceptions.rst:461 msgid "" "Must be raised by :meth:`~object.__anext__` method of an :term:`asynchronous " "iterator` object to stop the iteration." msgstr "" -#: ../../library/exceptions.rst:466 +#: ../../library/exceptions.rst:468 msgid "" "Raised when the parser encounters a syntax error. This may occur in an :" "keyword:`import` statement, in a call to the built-in functions :func:" @@ -705,45 +704,45 @@ msgstr "" "文、組み込み関数 :func:`compile`、:func:`exec` や :func:`eval` 、初期化スクリ" "プトの読み込みや標準入力で (対話的な実行時にも) 起こる可能性があります。" -#: ../../library/exceptions.rst:472 +#: ../../library/exceptions.rst:474 msgid "" "The :func:`str` of the exception instance returns only the error message. " "Details is a tuple whose members are also available as separate attributes." msgstr "" -#: ../../library/exceptions.rst:477 +#: ../../library/exceptions.rst:479 msgid "The name of the file the syntax error occurred in." msgstr "" -#: ../../library/exceptions.rst:481 +#: ../../library/exceptions.rst:483 msgid "" "Which line number in the file the error occurred in. This is 1-indexed: the " "first line in the file has a ``lineno`` of 1." msgstr "" -#: ../../library/exceptions.rst:486 +#: ../../library/exceptions.rst:488 msgid "" "The column in the line where the error occurred. This is 1-indexed: the " "first character in the line has an ``offset`` of 1." msgstr "" -#: ../../library/exceptions.rst:491 +#: ../../library/exceptions.rst:493 msgid "The source code text involved in the error." msgstr "" -#: ../../library/exceptions.rst:495 +#: ../../library/exceptions.rst:497 msgid "" "Which line number in the file the error occurred ends in. This is 1-indexed: " "the first line in the file has a ``lineno`` of 1." msgstr "" -#: ../../library/exceptions.rst:500 +#: ../../library/exceptions.rst:502 msgid "" "The column in the end line where the error occurred finishes. This is 1-" "indexed: the first character in the line has an ``offset`` of 1." msgstr "" -#: ../../library/exceptions.rst:503 +#: ../../library/exceptions.rst:505 msgid "" "For errors in f-string fields, the message is prefixed by \"f-string: \" and " "the offsets are offsets in a text constructed from the replacement " @@ -751,11 +750,11 @@ msgid "" "attribute: ('f-string: ...', ('', 1, 2, '(a b)\\n', 1, 5))." msgstr "" -#: ../../library/exceptions.rst:508 +#: ../../library/exceptions.rst:510 msgid "Added the :attr:`end_lineno` and :attr:`end_offset` attributes." msgstr ":attr:`end_lineno` および :attr:`end_offset` 属性が追加されました。" -#: ../../library/exceptions.rst:513 +#: ../../library/exceptions.rst:515 msgid "" "Base class for syntax errors related to incorrect indentation. This is a " "subclass of :exc:`SyntaxError`." @@ -763,7 +762,7 @@ msgstr "" "正しくないインデントに関する構文エラーの基底クラスです。これは :exc:" "`SyntaxError` のサブクラスです。" -#: ../../library/exceptions.rst:519 +#: ../../library/exceptions.rst:521 msgid "" "Raised when indentation contains an inconsistent use of tabs and spaces. " "This is a subclass of :exc:`IndentationError`." @@ -771,7 +770,7 @@ msgstr "" "タブとスペースを一貫しない方法でインデントに使っているときに送出されます。こ" "れは :exc:`IndentationError` のサブクラスです。" -#: ../../library/exceptions.rst:525 +#: ../../library/exceptions.rst:527 msgid "" "Raised when the interpreter finds an internal error, but the situation does " "not look so serious to cause it to abandon all hope. The associated value is " @@ -781,7 +780,7 @@ msgstr "" "はないと思われる場合に送出されます。関連値は (下位層で) どの動作が失敗したか" "を示す文字列です。" -#: ../../library/exceptions.rst:529 +#: ../../library/exceptions.rst:531 msgid "" "You should report this to the author or maintainer of your Python " "interpreter. Be sure to report the version of the Python interpreter (``sys." @@ -795,7 +794,7 @@ msgstr "" "関連値) を忘れずに報告してください。可能な場合にはエラーを引き起こしたプログ" "ラムのソースコードも報告してください。" -#: ../../library/exceptions.rst:538 +#: ../../library/exceptions.rst:540 msgid "" "This exception is raised by the :func:`sys.exit` function. It inherits " "from :exc:`BaseException` instead of :exc:`Exception` so that it is not " @@ -818,7 +817,7 @@ msgstr "" "します。値が ``None`` の場合、終了ステータスは 0 です。それ以外の型の場合 (例" "えば str)、 オブジェクトの値が表示され、終了ステータスは 1 です。" -#: ../../library/exceptions.rst:549 +#: ../../library/exceptions.rst:551 msgid "" "A call to :func:`sys.exit` is translated into an exception so that clean-up " "handlers (:keyword:`finally` clauses of :keyword:`try` statements) can be " @@ -833,7 +832,7 @@ msgstr "" "即座に終了することが真に強く必要であるとき (例えば、:func:`os.fork` を呼んだ" "後の子プロセス内) には :func:`os._exit` 関数を使うことができます。" -#: ../../library/exceptions.rst:558 +#: ../../library/exceptions.rst:560 msgid "" "The exit status or error message that is passed to the constructor. " "(Defaults to ``None``.)" @@ -841,7 +840,7 @@ msgstr "" "コンストラクタに渡された終了ステータス又はエラーメッセージ。(デフォルトは " "``None``)" -#: ../../library/exceptions.rst:564 +#: ../../library/exceptions.rst:566 msgid "" "Raised when an operation or function is applied to an object of " "inappropriate type. The associated value is a string giving details about " @@ -850,7 +849,7 @@ msgstr "" "組み込み演算または関数が適切でない型のオブジェクトに対して適用された際に送出" "されます。関連値は型の不整合に関して詳細を述べた文字列です。" -#: ../../library/exceptions.rst:567 +#: ../../library/exceptions.rst:569 msgid "" "This exception may be raised by user code to indicate that an attempted " "operation on an object is not supported, and is not meant to be. If an " @@ -862,7 +861,7 @@ msgstr "" "その操作をサポートするつもりだが、まだ実装を提供していないのであれば、送出す" "る適切な例外は :exc:`NotImplementedError` です。" -#: ../../library/exceptions.rst:572 +#: ../../library/exceptions.rst:574 msgid "" "Passing arguments of the wrong type (e.g. passing a :class:`list` when an :" "class:`int` is expected) should result in a :exc:`TypeError`, but passing " @@ -874,7 +873,7 @@ msgstr "" "えば、期待する範囲外の数)が引数として渡された場合は、 :exc:`ValueError` とな" "るべきです。" -#: ../../library/exceptions.rst:579 +#: ../../library/exceptions.rst:581 msgid "" "Raised when a reference is made to a local variable in a function or method, " "but no value has been bound to that variable. This is a subclass of :exc:" @@ -883,7 +882,7 @@ msgstr "" "関数やメソッド内のローカルな変数に対して参照を行ったが、その変数には値が代入" "されていなかった場合に送出されます。 :exc:`NameError` のサブクラスです。" -#: ../../library/exceptions.rst:586 +#: ../../library/exceptions.rst:588 msgid "" "Raised when a Unicode-related encoding or decoding error occurs. It is a " "subclass of :exc:`ValueError`." @@ -891,7 +890,7 @@ msgstr "" "Unicode に関するエンコードまたはデコードのエラーが発生した際に送出されま" "す。 :exc:`ValueError` のサブクラスです。" -#: ../../library/exceptions.rst:589 +#: ../../library/exceptions.rst:591 msgid "" ":exc:`UnicodeError` has attributes that describe the encoding or decoding " "error. For example, ``err.object[err.start:err.end]`` gives the particular " @@ -901,27 +900,27 @@ msgstr "" "ています。例えば、 ``err.object[err.start:err.end]`` は、無効な入力のうちコー" "デックが処理に失敗した箇所を表します。" -#: ../../library/exceptions.rst:595 +#: ../../library/exceptions.rst:597 msgid "The name of the encoding that raised the error." msgstr "エラーを送出したエンコーディングの名前です。" -#: ../../library/exceptions.rst:599 +#: ../../library/exceptions.rst:601 msgid "A string describing the specific codec error." msgstr "そのコーデックエラーを説明する文字列です。" -#: ../../library/exceptions.rst:603 +#: ../../library/exceptions.rst:605 msgid "The object the codec was attempting to encode or decode." msgstr "コーデックがエンコードまたはデコードしようとしたオブジェクトです。" -#: ../../library/exceptions.rst:607 +#: ../../library/exceptions.rst:609 msgid "The first index of invalid data in :attr:`object`." msgstr ":attr:`object` の最初の無効なデータのインデクスです。" -#: ../../library/exceptions.rst:611 +#: ../../library/exceptions.rst:613 msgid "The index after the last invalid data in :attr:`object`." msgstr ":attr:`object` の最後の無効なデータの次のインデクスです。" -#: ../../library/exceptions.rst:616 +#: ../../library/exceptions.rst:618 msgid "" "Raised when a Unicode-related error occurs during encoding. It is a " "subclass of :exc:`UnicodeError`." @@ -929,7 +928,7 @@ msgstr "" "Unicode 関連のエラーがエンコード中に発生した際に送出されます。 :exc:" "`UnicodeError` のサブクラスです。" -#: ../../library/exceptions.rst:622 +#: ../../library/exceptions.rst:624 msgid "" "Raised when a Unicode-related error occurs during decoding. It is a " "subclass of :exc:`UnicodeError`." @@ -937,7 +936,7 @@ msgstr "" "Unicode 関連のエラーがデコード中に発生した際に送出されます。 :exc:" "`UnicodeError` のサブクラスです。" -#: ../../library/exceptions.rst:628 +#: ../../library/exceptions.rst:630 msgid "" "Raised when a Unicode-related error occurs during translating. It is a " "subclass of :exc:`UnicodeError`." @@ -945,7 +944,7 @@ msgstr "" "Unicode 関連のエラーが変換中に発生した際に送出されます。 :exc:`UnicodeError` " "のサブクラスです。" -#: ../../library/exceptions.rst:634 +#: ../../library/exceptions.rst:636 msgid "" "Raised when an operation or function receives an argument that has the right " "type but an inappropriate value, and the situation is not described by a " @@ -954,7 +953,7 @@ msgstr "" "演算子や関数が、正しい型だが適切でない値を持つ引数を受け取ったときや、 :exc:" "`IndexError` のようなより詳細な例外では記述できない状況で送出されます。" -#: ../../library/exceptions.rst:641 +#: ../../library/exceptions.rst:643 msgid "" "Raised when the second argument of a division or modulo operation is zero. " "The associated value is a string indicating the type of the operands and the " @@ -963,7 +962,7 @@ msgstr "" "除算や剰余演算の第二引数が 0 であった場合に送出されます。関連値は文字列で、そ" "の演算における被演算子と演算子の型を示します。" -#: ../../library/exceptions.rst:646 +#: ../../library/exceptions.rst:648 msgid "" "The following exceptions are kept for compatibility with previous versions; " "starting from Python 3.3, they are aliases of :exc:`OSError`." @@ -971,15 +970,15 @@ msgstr "" "以下の例外は、過去のバージョンとの後方互換性のために残されています; Python " "3.3 より、これらは :exc:`OSError` のエイリアスです。" -#: ../../library/exceptions.rst:655 +#: ../../library/exceptions.rst:657 msgid "Only available on Windows." msgstr "Windows でのみ利用できます。" -#: ../../library/exceptions.rst:659 +#: ../../library/exceptions.rst:661 msgid "OS exceptions" msgstr "OS 例外" -#: ../../library/exceptions.rst:661 +#: ../../library/exceptions.rst:663 msgid "" "The following exceptions are subclasses of :exc:`OSError`, they get raised " "depending on the system error code." @@ -987,7 +986,7 @@ msgstr "" "以下の例外は :exc:`OSError` のサブクラスで、システムエラーコードに依存して送" "出されます。" -#: ../../library/exceptions.rst:666 +#: ../../library/exceptions.rst:668 msgid "" "Raised when an operation would block on an object (e.g. socket) set for non-" "blocking operation. Corresponds to :c:data:`errno` :py:const:`~errno." @@ -995,7 +994,7 @@ msgid "" "const:`~errno.EINPROGRESS`." msgstr "" -#: ../../library/exceptions.rst:671 +#: ../../library/exceptions.rst:673 msgid "" "In addition to those of :exc:`OSError`, :exc:`BlockingIOError` can have one " "more attribute:" @@ -1003,7 +1002,7 @@ msgstr "" ":exc:`BlockingIOError` は、 :exc:`OSError` の属性に加えて一つの属性を持ちま" "す:" -#: ../../library/exceptions.rst:676 +#: ../../library/exceptions.rst:678 msgid "" "An integer containing the number of characters written to the stream before " "it blocked. This attribute is available when using the buffered I/O classes " @@ -1012,17 +1011,17 @@ msgstr "" "ストリームがブロックされるまでに書き込まれた文字数を含む整数です。この属性" "は :mod:`io` からのバッファ I/O クラスを使っているときに利用できます。" -#: ../../library/exceptions.rst:682 +#: ../../library/exceptions.rst:684 msgid "" "Raised when an operation on a child process failed. Corresponds to :c:data:" "`errno` :py:const:`~errno.ECHILD`." msgstr "" -#: ../../library/exceptions.rst:687 +#: ../../library/exceptions.rst:689 msgid "A base class for connection-related issues." msgstr "コネクション関係の問題の基底クラス。" -#: ../../library/exceptions.rst:689 +#: ../../library/exceptions.rst:691 msgid "" "Subclasses are :exc:`BrokenPipeError`, :exc:`ConnectionAbortedError`, :exc:" "`ConnectionRefusedError` and :exc:`ConnectionResetError`." @@ -1030,7 +1029,7 @@ msgstr "" "サブクラスは :exc:`BrokenPipeError`, :exc:`ConnectionAbortedError`, :exc:" "`ConnectionRefusedError`, :exc:`ConnectionResetError` です。" -#: ../../library/exceptions.rst:694 +#: ../../library/exceptions.rst:696 msgid "" "A subclass of :exc:`ConnectionError`, raised when trying to write on a pipe " "while the other end has been closed, or trying to write on a socket which " @@ -1038,45 +1037,45 @@ msgid "" "`~errno.EPIPE` and :py:const:`~errno.ESHUTDOWN`." msgstr "" -#: ../../library/exceptions.rst:701 +#: ../../library/exceptions.rst:703 msgid "" "A subclass of :exc:`ConnectionError`, raised when a connection attempt is " "aborted by the peer. Corresponds to :c:data:`errno` :py:const:`~errno." "ECONNABORTED`." msgstr "" -#: ../../library/exceptions.rst:707 +#: ../../library/exceptions.rst:709 msgid "" "A subclass of :exc:`ConnectionError`, raised when a connection attempt is " "refused by the peer. Corresponds to :c:data:`errno` :py:const:`~errno." "ECONNREFUSED`." msgstr "" -#: ../../library/exceptions.rst:713 +#: ../../library/exceptions.rst:715 msgid "" "A subclass of :exc:`ConnectionError`, raised when a connection is reset by " "the peer. Corresponds to :c:data:`errno` :py:const:`~errno.ECONNRESET`." msgstr "" -#: ../../library/exceptions.rst:719 +#: ../../library/exceptions.rst:721 msgid "" "Raised when trying to create a file or directory which already exists. " "Corresponds to :c:data:`errno` :py:const:`~errno.EEXIST`." msgstr "" -#: ../../library/exceptions.rst:724 +#: ../../library/exceptions.rst:726 msgid "" "Raised when a file or directory is requested but doesn't exist. Corresponds " "to :c:data:`errno` :py:const:`~errno.ENOENT`." msgstr "" -#: ../../library/exceptions.rst:729 +#: ../../library/exceptions.rst:731 msgid "" "Raised when a system call is interrupted by an incoming signal. Corresponds " "to :c:data:`errno` :py:const:`~errno.EINTR`." msgstr "" -#: ../../library/exceptions.rst:732 +#: ../../library/exceptions.rst:734 msgid "" "Python now retries system calls when a syscall is interrupted by a signal, " "except if the signal handler raises an exception (see :pep:`475` for the " @@ -1086,13 +1085,13 @@ msgstr "" "Python は :exc:`InterruptedError` を送出する代わりにシステムコールを再試行す" "るようになりました (論拠については :pep:`475` を参照してください) 。" -#: ../../library/exceptions.rst:739 +#: ../../library/exceptions.rst:741 msgid "" "Raised when a file operation (such as :func:`os.remove`) is requested on a " "directory. Corresponds to :c:data:`errno` :py:const:`~errno.EISDIR`." msgstr "" -#: ../../library/exceptions.rst:745 +#: ../../library/exceptions.rst:747 msgid "" "Raised when a directory operation (such as :func:`os.listdir`) is requested " "on something which is not a directory. On most POSIX platforms, it may also " @@ -1101,7 +1100,7 @@ msgid "" "ENOTDIR`." msgstr "" -#: ../../library/exceptions.rst:753 +#: ../../library/exceptions.rst:755 msgid "" "Raised when trying to run an operation without the adequate access rights - " "for example filesystem permissions. Corresponds to :c:data:`errno` :py:const:" @@ -1109,37 +1108,37 @@ msgid "" "ENOTCAPABLE`." msgstr "" -#: ../../library/exceptions.rst:758 +#: ../../library/exceptions.rst:760 msgid "" "WASI's :py:const:`~errno.ENOTCAPABLE` is now mapped to :exc:" "`PermissionError`." msgstr "" -#: ../../library/exceptions.rst:764 +#: ../../library/exceptions.rst:766 msgid "" "Raised when a given process doesn't exist. Corresponds to :c:data:`errno` :" "py:const:`~errno.ESRCH`." msgstr "" -#: ../../library/exceptions.rst:769 +#: ../../library/exceptions.rst:771 msgid "" "Raised when a system function timed out at the system level. Corresponds to :" "c:data:`errno` :py:const:`~errno.ETIMEDOUT`." msgstr "" -#: ../../library/exceptions.rst:772 +#: ../../library/exceptions.rst:774 msgid "All the above :exc:`OSError` subclasses were added." msgstr "上記のすべての :exc:`OSError` サブクラスが追加されました。" -#: ../../library/exceptions.rst:778 +#: ../../library/exceptions.rst:780 msgid ":pep:`3151` - Reworking the OS and IO exception hierarchy" msgstr ":pep:`3151` - OS および IO 例外階層の手直し" -#: ../../library/exceptions.rst:784 +#: ../../library/exceptions.rst:786 msgid "Warnings" msgstr "警告" -#: ../../library/exceptions.rst:786 +#: ../../library/exceptions.rst:788 msgid "" "The following exceptions are used as warning categories; see the :ref:" "`warning-categories` documentation for more details." @@ -1147,15 +1146,15 @@ msgstr "" "次の例外は警告カテゴリとして使われます。詳細については :ref:`warning-" "categories` のドキュメントを参照してください。" -#: ../../library/exceptions.rst:791 +#: ../../library/exceptions.rst:793 msgid "Base class for warning categories." msgstr "警告カテゴリの基底クラスです。" -#: ../../library/exceptions.rst:796 +#: ../../library/exceptions.rst:798 msgid "Base class for warnings generated by user code." msgstr "ユーザコードによって生成される警告の基底クラスです。" -#: ../../library/exceptions.rst:801 +#: ../../library/exceptions.rst:803 msgid "" "Base class for warnings about deprecated features when those warnings are " "intended for other Python developers." @@ -1163,18 +1162,18 @@ msgstr "" "他の Python 開発者へ向けて警告を発するときの、廃止予定の機能についての警告の" "基底クラスです。" -#: ../../library/exceptions.rst:804 +#: ../../library/exceptions.rst:806 msgid "" "Ignored by the default warning filters, except in the ``__main__`` module (:" "pep:`565`). Enabling the :ref:`Python Development Mode ` shows this " "warning." msgstr "" -#: ../../library/exceptions.rst:808 ../../library/exceptions.rst:824 +#: ../../library/exceptions.rst:810 ../../library/exceptions.rst:826 msgid "The deprecation policy is described in :pep:`387`." msgstr "" -#: ../../library/exceptions.rst:813 +#: ../../library/exceptions.rst:815 msgid "" "Base class for warnings about features which are obsolete and expected to be " "deprecated in the future, but are not deprecated at the moment." @@ -1182,7 +1181,7 @@ msgstr "" "古くなって将来的に廃止される予定だが、今のところは廃止されていない機能につい" "ての警告の基底クラスです。" -#: ../../library/exceptions.rst:817 +#: ../../library/exceptions.rst:819 msgid "" "This class is rarely used as emitting a warning about a possible upcoming " "deprecation is unusual, and :exc:`DeprecationWarning` is preferred for " @@ -1192,22 +1191,22 @@ msgstr "" "スはめったに使われず、既に決まっている廃止については :exc:" "`DeprecationWarning` が望ましいです。" -#: ../../library/exceptions.rst:821 ../../library/exceptions.rst:847 -#: ../../library/exceptions.rst:874 +#: ../../library/exceptions.rst:823 ../../library/exceptions.rst:849 +#: ../../library/exceptions.rst:876 msgid "" "Ignored by the default warning filters. Enabling the :ref:`Python " "Development Mode ` shows this warning." msgstr "" -#: ../../library/exceptions.rst:829 +#: ../../library/exceptions.rst:831 msgid "Base class for warnings about dubious syntax." msgstr "曖昧な構文に対する警告の基底クラスです。" -#: ../../library/exceptions.rst:834 +#: ../../library/exceptions.rst:836 msgid "Base class for warnings about dubious runtime behavior." msgstr "あいまいなランタイム挙動に対する警告の基底クラスです。" -#: ../../library/exceptions.rst:839 +#: ../../library/exceptions.rst:841 msgid "" "Base class for warnings about deprecated features when those warnings are " "intended for end users of applications that are written in Python." @@ -1215,36 +1214,36 @@ msgstr "" "Python で書かれたアプリケーションのエンドユーザーへ向けて警告を発するときの、" "廃止予定の機能についての警告の基底クラスです。" -#: ../../library/exceptions.rst:845 +#: ../../library/exceptions.rst:847 msgid "Base class for warnings about probable mistakes in module imports." msgstr "モジュールインポートの誤りと思われるものに対する警告の基底クラスです。" -#: ../../library/exceptions.rst:853 +#: ../../library/exceptions.rst:855 msgid "Base class for warnings related to Unicode." msgstr "Unicode に関連した警告の基底クラスです。" -#: ../../library/exceptions.rst:858 +#: ../../library/exceptions.rst:860 msgid "Base class for warnings related to encodings." msgstr "エンコーディングに関連した警告の基底クラスです。" -#: ../../library/exceptions.rst:860 +#: ../../library/exceptions.rst:862 msgid "See :ref:`io-encoding-warning` for details." msgstr "" -#: ../../library/exceptions.rst:867 +#: ../../library/exceptions.rst:869 msgid "" "Base class for warnings related to :class:`bytes` and :class:`bytearray`." msgstr ":class:`bytes` や :class:`bytearray` に関連した警告の基底クラスです。" -#: ../../library/exceptions.rst:872 +#: ../../library/exceptions.rst:874 msgid "Base class for warnings related to resource usage." msgstr "リソースの使用に関連した警告の基底クラスです。" -#: ../../library/exceptions.rst:883 +#: ../../library/exceptions.rst:885 msgid "Exception groups" msgstr "" -#: ../../library/exceptions.rst:885 +#: ../../library/exceptions.rst:887 msgid "" "The following are used when it is necessary to raise multiple unrelated " "exceptions. They are part of the exception hierarchy so they can be handled " @@ -1253,7 +1252,7 @@ msgid "" "based on the types of the contained exceptions." msgstr "" -#: ../../library/exceptions.rst:894 +#: ../../library/exceptions.rst:896 msgid "" "Both of these exception types wrap the exceptions in the sequence ``excs``. " "The ``msg`` parameter must be a string. The difference between the two " @@ -1264,7 +1263,7 @@ msgid "" "exc:`BaseExceptionGroup`." msgstr "" -#: ../../library/exceptions.rst:902 +#: ../../library/exceptions.rst:904 msgid "" "The :exc:`BaseExceptionGroup` constructor returns an :exc:`ExceptionGroup` " "rather than a :exc:`BaseExceptionGroup` if all contained exceptions are :exc:" @@ -1273,23 +1272,23 @@ msgid "" "`TypeError` if any contained exception is not an :exc:`Exception` subclass." msgstr "" -#: ../../library/exceptions.rst:911 +#: ../../library/exceptions.rst:913 msgid "The ``msg`` argument to the constructor. This is a read-only attribute." msgstr "" -#: ../../library/exceptions.rst:915 +#: ../../library/exceptions.rst:917 msgid "" "A tuple of the exceptions in the ``excs`` sequence given to the constructor. " "This is a read-only attribute." msgstr "" -#: ../../library/exceptions.rst:920 +#: ../../library/exceptions.rst:922 msgid "" "Returns an exception group that contains only the exceptions from the " "current group that match *condition*, or ``None`` if the result is empty." msgstr "" -#: ../../library/exceptions.rst:923 +#: ../../library/exceptions.rst:925 msgid "" "The condition can be either a function that accepts an exception and returns " "true for those that should be in the subgroup, or it can be an exception " @@ -1297,7 +1296,7 @@ msgid "" "the same check that is used in an ``except`` clause." msgstr "" -#: ../../library/exceptions.rst:928 +#: ../../library/exceptions.rst:930 msgid "" "The nesting structure of the current exception is preserved in the result, " "as are the values of its :attr:`message`, :attr:`__traceback__`, :attr:" @@ -1305,34 +1304,34 @@ msgid "" "groups are omitted from the result." msgstr "" -#: ../../library/exceptions.rst:933 +#: ../../library/exceptions.rst:935 msgid "" "The condition is checked for all exceptions in the nested exception group, " "including the top-level and any nested exception groups. If the condition is " "true for such an exception group, it is included in the result in full." msgstr "" -#: ../../library/exceptions.rst:939 +#: ../../library/exceptions.rst:941 msgid "" "Like :meth:`subgroup`, but returns the pair ``(match, rest)`` where " "``match`` is ``subgroup(condition)`` and ``rest`` is the remaining non-" "matching part." msgstr "" -#: ../../library/exceptions.rst:945 +#: ../../library/exceptions.rst:947 msgid "" "Returns an exception group with the same :attr:`message`, but which wraps " "the exceptions in ``excs``." msgstr "" -#: ../../library/exceptions.rst:948 +#: ../../library/exceptions.rst:950 msgid "" "This method is used by :meth:`subgroup` and :meth:`split`. A subclass needs " "to override it in order to make :meth:`subgroup` and :meth:`split` return " "instances of the subclass rather than :exc:`ExceptionGroup`." msgstr "" -#: ../../library/exceptions.rst:953 +#: ../../library/exceptions.rst:955 msgid "" ":meth:`subgroup` and :meth:`split` copy the :attr:`__traceback__`, :attr:" "`__cause__`, :attr:`__context__` and :attr:`__notes__` fields from the " @@ -1340,7 +1339,7 @@ msgid "" "fields do not need to be updated by :meth:`derive`. ::" msgstr "" -#: ../../library/exceptions.rst:982 +#: ../../library/exceptions.rst:984 msgid "" "Note that :exc:`BaseExceptionGroup` defines :meth:`__new__`, so subclasses " "that need a different constructor signature need to override that rather " @@ -1349,18 +1348,18 @@ msgid "" "from it. ::" msgstr "" -#: ../../library/exceptions.rst:997 +#: ../../library/exceptions.rst:999 msgid "" "Like :exc:`ExceptionGroup`, any subclass of :exc:`BaseExceptionGroup` which " "is also a subclass of :exc:`Exception` can only wrap instances of :exc:" "`Exception`." msgstr "" -#: ../../library/exceptions.rst:1005 +#: ../../library/exceptions.rst:1007 msgid "Exception hierarchy" msgstr "例外のクラス階層" -#: ../../library/exceptions.rst:1007 +#: ../../library/exceptions.rst:1009 msgid "The class hierarchy for built-in exceptions is:" msgstr "組み込み例外のクラス階層は以下のとおりです:" diff --git a/library/functions.po b/library/functions.po index 5f6017e58..a31cc77dd 100644 --- a/library/functions.po +++ b/library/functions.po @@ -19,16 +19,15 @@ # tomo, 2023 # Masato HASHIMOTO , 2023 # righteous righteous, 2023 -# TENMYO Masakazu, 2023 # #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.12\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2023-12-01 14:14+0000\n" +"POT-Creation-Date: 2023-12-08 14:14+0000\n" "PO-Revision-Date: 2021-06-28 01:06+0000\n" -"Last-Translator: TENMYO Masakazu, 2023\n" +"Last-Translator: righteous righteous, 2023\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" "MIME-Version: 1.0\n" @@ -416,13 +415,11 @@ msgstr ":func:`__import__`" #: ../../library/functions.rst:59 msgid "" "Return the absolute value of a number. The argument may be an integer, a " -"floating point number, or an object implementing :meth:`__abs__`. If the " -"argument is a complex number, its magnitude is returned." +"floating point number, or an object implementing :meth:`~object.__abs__`. If " +"the argument is a complex number, its magnitude is returned." msgstr "" -"数の絶対値を返します。引数は整数、浮動小数点数または :meth:`__abs__` が実装さ" -"れたオブジェクトです。引数が複素数なら、その絶対値 (magnitude) が返されます。" -#: ../../library/functions.rst:66 +#: ../../library/functions.rst:67 msgid "" "Return an :term:`asynchronous iterator` for an :term:`asynchronous " "iterable`. Equivalent to calling ``x.__aiter__()``." @@ -430,12 +427,12 @@ msgstr "" ":term:`asynchronous iterable` から :term:`asynchronous iterator` を返しま" "す。 ``x.__aiter__()`` を呼び出すのと等価です。" -#: ../../library/functions.rst:69 +#: ../../library/functions.rst:70 msgid "Note: Unlike :func:`iter`, :func:`aiter` has no 2-argument variant." msgstr "" "なお、 :func:`iter` とは異なり、 :func:`aiter` は第二引数を持ちません。" -#: ../../library/functions.rst:75 +#: ../../library/functions.rst:76 msgid "" "Return ``True`` if all elements of the *iterable* are true (or if the " "iterable is empty). Equivalent to::" @@ -443,7 +440,7 @@ msgstr "" "*iterable* の全ての要素が真ならば (もしくは *iterable* が空ならば) ``True`` " "を返します。以下のコードと等価です::" -#: ../../library/functions.rst:88 +#: ../../library/functions.rst:89 msgid "" "When awaited, return the next item from the given :term:`asynchronous " "iterator`, or *default* if given and the iterator is exhausted." @@ -452,13 +449,13 @@ msgstr "" "します。イテレータが枯渇した場合、 *default* が与えられていれば *default* を" "返します。" -#: ../../library/functions.rst:91 +#: ../../library/functions.rst:92 msgid "" "This is the async variant of the :func:`next` builtin, and behaves similarly." msgstr "" "これは組み込みの :func:`next` 関数の非同期版であり、同じように動作します。" -#: ../../library/functions.rst:94 +#: ../../library/functions.rst:95 msgid "" "This calls the :meth:`~object.__anext__` method of *async_iterator*, " "returning an :term:`awaitable`. Awaiting this returns the next value of the " @@ -471,7 +468,7 @@ msgstr "" "きにその値が返されます。 *default* が与えられない場合は :exc:" "`StopAsyncIteration` が送出されます。" -#: ../../library/functions.rst:103 +#: ../../library/functions.rst:104 msgid "" "Return ``True`` if any element of the *iterable* is true. If the iterable " "is empty, return ``False``. Equivalent to::" @@ -479,7 +476,7 @@ msgstr "" "*iterable* のいずれかの要素が真ならば ``True`` を返します。*iterable* が空な" "ら ``False`` を返します。以下のコードと等価です::" -#: ../../library/functions.rst:115 +#: ../../library/functions.rst:116 msgid "" "As :func:`repr`, return a string containing a printable representation of an " "object, but escape the non-ASCII characters in the string returned by :func:" @@ -491,7 +488,7 @@ msgstr "" "``\\U`` エスケープを使ってエスケープされます。これは Python 2 の :func:" "`repr` によって返されるのと同じ文字列を作ります。" -#: ../../library/functions.rst:123 +#: ../../library/functions.rst:124 msgid "" "Convert an integer number to a binary string prefixed with \"0b\". The " "result is a valid Python expression. If *x* is not a Python :class:`int` " @@ -504,7 +501,7 @@ msgstr "" "`~object.__index__` メソッドが定義されていなければなりません。\n" "いくつかの例を示します:" -#: ../../library/functions.rst:133 +#: ../../library/functions.rst:134 msgid "" "If the prefix \"0b\" is desired or not, you can use either of the following " "ways." @@ -512,12 +509,12 @@ msgstr "" "先頭に \"0b\" が付いて欲しい、もしくは付いて欲しくない場合には、次の方法のど" "ちらでも使えます。" -#: ../../library/functions.rst:140 ../../library/functions.rst:842 -#: ../../library/functions.rst:1159 +#: ../../library/functions.rst:141 ../../library/functions.rst:846 +#: ../../library/functions.rst:1164 msgid "See also :func:`format` for more information." msgstr "より詳しいことは :func:`format` も参照してください。" -#: ../../library/functions.rst:145 +#: ../../library/functions.rst:146 msgid "" "Return a Boolean value, i.e. one of ``True`` or ``False``. *x* is converted " "using the standard :ref:`truth testing procedure `. If *x* is false " @@ -534,12 +531,12 @@ msgstr "" "せん。このクラスのインスタンスは ``False`` と ``True`` の身です (:ref:" "`typebool` を参照してください)。" -#: ../../library/functions.rst:154 ../../library/functions.rst:707 -#: ../../library/functions.rst:931 +#: ../../library/functions.rst:155 ../../library/functions.rst:711 +#: ../../library/functions.rst:935 msgid "*x* is now a positional-only parameter." msgstr "*x* は位置専用引数になりました。" -#: ../../library/functions.rst:159 +#: ../../library/functions.rst:160 msgid "" "This function drops you into the debugger at the call site. Specifically, " "it calls :func:`sys.breakpointhook`, passing ``args`` and ``kws`` straight " @@ -562,7 +559,7 @@ msgstr "" "`sys.breakpointhook` にアクセスできない場合、この関数は :exc:`RuntimeError` " "を送出します。" -#: ../../library/functions.rst:171 +#: ../../library/functions.rst:172 msgid "" "By default, the behavior of :func:`breakpoint` can be changed with the :" "envvar:`PYTHONBREAKPOINT` environment variable. See :func:`sys." @@ -572,7 +569,7 @@ msgstr "" "`breakpoint` の動作を変えることができます。\n" "使い方の詳細は :func:`sys.breakpointhook` を参照してください。" -#: ../../library/functions.rst:175 +#: ../../library/functions.rst:176 msgid "" "Note that this is not guaranteed if :func:`sys.breakpointhook` has been " "replaced." @@ -580,7 +577,7 @@ msgstr "" "ただし、 :func:`sys.breakpointhook` が別の関数で置き換えられている場合、上記" "の環境変数によって必ずしも動作を変えることができないことに注意してください。" -#: ../../library/functions.rst:178 +#: ../../library/functions.rst:179 msgid "" "Raises an :ref:`auditing event ` ``builtins.breakpoint`` with " "argument ``breakpointhook``." @@ -588,7 +585,7 @@ msgstr "" "引数 ``breakpointhook`` 付きで :ref:`監査イベント ` ``builtins." "breakpoint`` を送出します。" -#: ../../library/functions.rst:188 +#: ../../library/functions.rst:189 msgid "" "Return a new array of bytes. The :class:`bytearray` class is a mutable " "sequence of integers in the range 0 <= x < 256. It has most of the usual " @@ -600,14 +597,14 @@ msgstr "" "能な配列に対する普通のメソッドの大半を備えています。また、:class:`bytes` 型が" "持つメソッドの大半も備えています(see :ref:`bytes-methods`)。" -#: ../../library/functions.rst:193 +#: ../../library/functions.rst:194 msgid "" "The optional *source* parameter can be used to initialize the array in a few " "different ways:" msgstr "" "オプションの *source* 引数は、配列を異なる方法で初期化するのに使われます:" -#: ../../library/functions.rst:196 +#: ../../library/functions.rst:197 msgid "" "If it is a *string*, you must also give the *encoding* (and optionally, " "*errors*) parameters; :func:`bytearray` then converts the string to bytes " @@ -617,13 +614,13 @@ msgstr "" "りません。このとき :func:`bytearray` は文字列を :meth:`str.encode` でバイトに" "変換して返します。" -#: ../../library/functions.rst:200 +#: ../../library/functions.rst:201 msgid "" "If it is an *integer*, the array will have that size and will be initialized " "with null bytes." msgstr "*整数* の場合、配列はそのサイズになり、null バイトで初期化されます。" -#: ../../library/functions.rst:203 +#: ../../library/functions.rst:204 msgid "" "If it is an object conforming to the :ref:`buffer interface " "`, a read-only buffer of the object will be used to " @@ -632,7 +629,7 @@ msgstr "" ":ref:`バッファインターフェース ` に適合するオブジェクトの場" "合、そのオブジェクトの読み出し専用バッファがバイト配列の初期化に使われます。" -#: ../../library/functions.rst:206 +#: ../../library/functions.rst:207 msgid "" "If it is an *iterable*, it must be an iterable of integers in the range ``0 " "<= x < 256``, which are used as the initial contents of the array." @@ -640,15 +637,15 @@ msgstr "" "*イテラブル* の場合、範囲 ``0 <= x < 256`` 内の整数のイテラブルでなければなら" "ず、それらが配列の初期の内容として使われます。" -#: ../../library/functions.rst:209 +#: ../../library/functions.rst:210 msgid "Without an argument, an array of size 0 is created." msgstr "引数がなければ、長さ 0 の配列が生成されます。" -#: ../../library/functions.rst:211 +#: ../../library/functions.rst:212 msgid "See also :ref:`binaryseq` and :ref:`typebytearray`." msgstr ":ref:`binaryseq` と :ref:`typebytearray` も参照してください。" -#: ../../library/functions.rst:220 +#: ../../library/functions.rst:221 msgid "" "Return a new \"bytes\" object which is an immutable sequence of integers in " "the range ``0 <= x < 256``. :class:`bytes` is an immutable version of :" @@ -660,46 +657,40 @@ msgstr "" "であり、オブジェクトを変化させないメソッドや、インデックス指定、オブジェクト" "のスライスについてのふるまいは同じです。" -#: ../../library/functions.rst:225 +#: ../../library/functions.rst:226 msgid "" "Accordingly, constructor arguments are interpreted as for :func:`bytearray`." msgstr "" "従って、コンストラクタ引数は :func:`bytearray` のものと同様に解釈されます。" -#: ../../library/functions.rst:227 +#: ../../library/functions.rst:228 msgid "Bytes objects can also be created with literals, see :ref:`strings`." msgstr "" "バイト列オブジェクトはリテラルでも生成できます。 :ref:`strings` を参照してく" "ださい。" -#: ../../library/functions.rst:229 +#: ../../library/functions.rst:230 msgid "See also :ref:`binaryseq`, :ref:`typebytes`, and :ref:`bytes-methods`." msgstr "" ":ref:`binaryseq`, :ref:`typebytes`, :ref:`bytes-methods` も参照してください。" -#: ../../library/functions.rst:234 +#: ../../library/functions.rst:235 msgid "" "Return :const:`True` if the *object* argument appears callable, :const:" "`False` if not. If this returns ``True``, it is still possible that a call " "fails, but if it is ``False``, calling *object* will never succeed. Note " "that classes are callable (calling a class returns a new instance); " -"instances are callable if their class has a :meth:`__call__` method." +"instances are callable if their class has a :meth:`~object.__call__` method." msgstr "" -"*object* 引数が呼び出し可能オブジェクトであれば :const:`True` を、そうでなけ" -"れば :const:`False` を返します。この関数が ``True`` を返しても、呼び出しは失" -"敗する可能性がありますが、``False`` であれば、 *object* の呼び出しは決して成" -"功しません。なお、クラスは呼び出し可能 (クラスを呼び出すと新しいインスタンス" -"を返します) です。また、インスタンスはクラスが :meth:`__call__` メソッドを持" -"つなら呼び出し可能です。" -#: ../../library/functions.rst:240 +#: ../../library/functions.rst:241 msgid "" "This function was first removed in Python 3.0 and then brought back in " "Python 3.2." msgstr "" "この関数は Python 3.0 で一度取り除かれましたが、Python 3.2 で復活しました。" -#: ../../library/functions.rst:247 +#: ../../library/functions.rst:248 msgid "" "Return the string representing a character whose Unicode code point is the " "integer *i*. For example, ``chr(97)`` returns the string ``'a'``, while " @@ -709,7 +700,7 @@ msgstr "" "``chr(97)`` は文字列 ``'a'`` を、 ``chr(8364)`` は文字列 ``'€'`` を返しま" "す。 :func:`ord` の逆です。" -#: ../../library/functions.rst:251 +#: ../../library/functions.rst:252 msgid "" "The valid range for the argument is from 0 through 1,114,111 (0x10FFFF in " "base 16). :exc:`ValueError` will be raised if *i* is outside that range." @@ -717,11 +708,11 @@ msgstr "" "引数の有効な範囲は 0 から 1,114,111 (16 進数で 0x10FFFF) です。 *i* が範囲外" "の場合 :exc:`ValueError` が送出されます。" -#: ../../library/functions.rst:257 +#: ../../library/functions.rst:258 msgid "Transform a method into a class method." msgstr "メソッドをクラスメソッドへ変換します。" -#: ../../library/functions.rst:259 +#: ../../library/functions.rst:260 msgid "" "A class method receives the class as an implicit first argument, just like " "an instance method receives the instance. To declare a class method, use " @@ -731,7 +722,7 @@ msgstr "" "るように、第一引数としてクラスをとります。クラスメソッドを宣言するには、以下" "のイディオムを使います::" -#: ../../library/functions.rst:267 +#: ../../library/functions.rst:268 msgid "" "The ``@classmethod`` form is a function :term:`decorator` -- see :ref:" "`function` for details." @@ -739,7 +730,7 @@ msgstr "" "``@classmethod`` 形式は関数 :term:`デコレータ ` です。詳しくは :" "ref:`function` を参照してください。" -#: ../../library/functions.rst:270 +#: ../../library/functions.rst:271 msgid "" "A class method can be called either on the class (such as ``C.f()``) or on " "an instance (such as ``C().f()``). The instance is ignored except for its " @@ -752,7 +743,7 @@ msgstr "" "クラスメソッドが派生クラスから呼び出される場合は、その派生クラスオブジェクト" "が暗黙の第一引数として渡されます。" -#: ../../library/functions.rst:275 +#: ../../library/functions.rst:276 msgid "" "Class methods are different than C++ or Java static methods. If you want " "those, see :func:`staticmethod` in this section. For more information on " @@ -762,7 +753,7 @@ msgstr "" "の節の :func:`staticmethod` を参照してください。クラスメソッドについてより詳" "しいことは :ref:`types` を参照してください。" -#: ../../library/functions.rst:279 +#: ../../library/functions.rst:280 msgid "" "Class methods can now wrap other :term:`descriptors ` such as :" "func:`property`." @@ -770,7 +761,7 @@ msgstr "" "クラスメソッドは :func:`property` など、他の :term:`デスクリプタ " "` をラップすることができるようになりました。" -#: ../../library/functions.rst:283 +#: ../../library/functions.rst:284 msgid "" "Class methods now inherit the method attributes (``__module__``, " "``__name__``, ``__qualname__``, ``__doc__`` and ``__annotations__``) and " @@ -780,7 +771,7 @@ msgstr "" "``__qualname__``, ``__doc__`` や ``__annotations__``) を引き継ぐようになりま" "した。また、新たに ``__wrapped__`` 属性を持つようになりました。" -#: ../../library/functions.rst:288 +#: ../../library/functions.rst:289 msgid "" "Class methods can no longer wrap other :term:`descriptors ` such " "as :func:`property`." @@ -788,7 +779,7 @@ msgstr "" "クラスメソッドは :func:`property` など、他の :term:`デスクリプタ " "` をラップすることができなくなりました。" -#: ../../library/functions.rst:295 +#: ../../library/functions.rst:296 msgid "" "Compile the *source* into a code or AST object. Code objects can be " "executed by :func:`exec` or :func:`eval`. *source* can either be a normal " @@ -801,7 +792,7 @@ msgstr "" "れでもかまいません。 AST オブジェクトへの、また、 AST オブジェクトからのコン" "パイルの方法は、 :mod:`ast` モジュールのドキュメントを参照してください。" -#: ../../library/functions.rst:300 +#: ../../library/functions.rst:301 msgid "" "The *filename* argument should give the file from which the code was read; " "pass some recognizable value if it wasn't read from a file (``''`` " @@ -811,7 +802,7 @@ msgstr "" "ファイルから読み出されるのでなければ、認識可能な値を渡して下さい " "(``''`` が一般的に使われます)。" -#: ../../library/functions.rst:304 +#: ../../library/functions.rst:305 msgid "" "The *mode* argument specifies what kind of code must be compiled; it can be " "``'exec'`` if *source* consists of a sequence of statements, ``'eval'`` if " @@ -824,7 +815,7 @@ msgstr "" "場合 ``'single'`` です。(後者の場合、評価が ``None`` 以外である式文が印字され" "ます)。" -#: ../../library/functions.rst:310 +#: ../../library/functions.rst:311 msgid "" "The optional arguments *flags* and *dont_inherit* control which :ref:" "`compiler options ` should be activated and which :ref:" @@ -847,7 +838,7 @@ msgstr "" "で指定されたオプションだけが有効です -- 呼び出し元コードに適用されたフラグ " "(将来の機能とコンパイラオプション) は無視されます。" -#: ../../library/functions.rst:321 +#: ../../library/functions.rst:322 msgid "" "Compiler options and future statements are specified by bits which can be " "bitwise ORed together to specify multiple options. The bitfield required to " @@ -864,7 +855,7 @@ msgstr "" "ref:`コンパイラフラグ ` の情報は :mod:`ast` モジュールの " "``PyCF_`` で始まるフラグで得ることができます。" -#: ../../library/functions.rst:329 +#: ../../library/functions.rst:330 msgid "" "The argument *optimize* specifies the optimization level of the compiler; " "the default value of ``-1`` selects the optimization level of the " @@ -878,7 +869,7 @@ msgstr "" "``1`` (assert は取り除かれ、 ``__debug__`` は偽)、 ``2`` (docstring も取り除" "かれる) です。" -#: ../../library/functions.rst:335 +#: ../../library/functions.rst:336 msgid "" "This function raises :exc:`SyntaxError` if the compiled source is invalid, " "and :exc:`ValueError` if the source contains null bytes." @@ -886,7 +877,7 @@ msgstr "" "この関数は、コンパイルされたソースが不正である場合 :exc:`SyntaxError` を、" "ソースがヌルバイトを含む場合 :exc:`ValueError` を送出します。" -#: ../../library/functions.rst:338 +#: ../../library/functions.rst:339 msgid "" "If you want to parse Python code into its AST representation, see :func:`ast." "parse`." @@ -894,7 +885,7 @@ msgstr "" "Python コードをパースしてその AST 表現を得たいのであれば、 :func:`ast.parse` " "を参照してください。" -#: ../../library/functions.rst:341 +#: ../../library/functions.rst:342 msgid "" "Raises an :ref:`auditing event ` ``compile`` with arguments " "``source``, ``filename``." @@ -902,7 +893,7 @@ msgstr "" "引数 ``source``, ``filename`` を指定して :ref:`監査イベント ` " "``compile`` を送出します。 " -#: ../../library/functions.rst:343 +#: ../../library/functions.rst:344 msgid "" "Raises an :ref:`auditing event ` ``compile`` with arguments " "``source`` and ``filename``. This event may also be raised by implicit " @@ -912,7 +903,7 @@ msgstr "" "``compile`` を送出します。これは、暗黙に行われるコンパイルでも送出される可能" "性があります。" -#: ../../library/functions.rst:349 +#: ../../library/functions.rst:350 msgid "" "When compiling a string with multi-line code in ``'single'`` or ``'eval'`` " "mode, input must be terminated by at least one newline character. This is " @@ -923,7 +914,7 @@ msgstr "" "るとき、入力は一つ以上の改行文字で終端されなければなりません。これは、 :mod:" "`code` モジュールで不完全な文と完全な文を検知しやすくするためです。" -#: ../../library/functions.rst:356 +#: ../../library/functions.rst:357 msgid "" "It is possible to crash the Python interpreter with a sufficiently large/" "complex string when compiling to an AST object due to stack depth " @@ -933,7 +924,7 @@ msgstr "" "によって Python の抽象構文木コンパイラのスタックが深さの限界を越えることで、 " "Python インタプリタをクラッシュさせられます。" -#: ../../library/functions.rst:360 +#: ../../library/functions.rst:361 msgid "" "Allowed use of Windows and Mac newlines. Also, input in ``'exec'`` mode " "does not have to end in a newline anymore. Added the *optimize* parameter." @@ -941,7 +932,7 @@ msgstr "" "Windows や Mac の改行も受け付けます。また ``'exec'`` モードでの入力が改行で終" "わっている必要もありません。*optimize* 引数が追加されました。" -#: ../../library/functions.rst:364 +#: ../../library/functions.rst:365 msgid "" "Previously, :exc:`TypeError` was raised when null bytes were encountered in " "*source*." @@ -949,7 +940,7 @@ msgstr "" "以前は *source* にヌルバイトがあったときに :exc:`TypeError` を送出していまし" "た。" -#: ../../library/functions.rst:368 +#: ../../library/functions.rst:369 msgid "" "``ast.PyCF_ALLOW_TOP_LEVEL_AWAIT`` can now be passed in flags to enable " "support for top-level ``await``, ``async for``, and ``async with``." @@ -958,7 +949,7 @@ msgstr "" "``async for``, および ``async with`` のサポートを有効化することができるように" "なりました。" -#: ../../library/functions.rst:376 +#: ../../library/functions.rst:377 msgid "" "Return a complex number with the value *real* + *imag*\\*1j or convert a " "string or number to a complex number. If the first parameter is a string, " @@ -976,7 +967,7 @@ msgstr "" "このコンストラクタは :class:`int` や :class:`float` のような数値変換としては" "たらきます。両方の引数が省略された場合、 ``0j`` を返します。" -#: ../../library/functions.rst:385 +#: ../../library/functions.rst:386 msgid "" "For a general Python object ``x``, ``complex(x)`` delegates to ``x." "__complex__()``. If :meth:`~object.__complex__` is not defined then it " @@ -989,7 +980,7 @@ msgstr "" "`~object.__float__` も定義されていない場合は :meth:`~object.__index__` に" "フォールバックします。" -#: ../../library/functions.rst:392 +#: ../../library/functions.rst:393 msgid "" "When converting from a string, the string must not contain whitespace around " "the central ``+`` or ``-`` operator. For example, ``complex('1+2j')`` is " @@ -999,16 +990,16 @@ msgstr "" "を含んではなりません。例えば、``complex('1+2j')`` はいいですが、``complex('1 " "+ 2j')`` は :exc:`ValueError` を送出します。" -#: ../../library/functions.rst:397 +#: ../../library/functions.rst:398 msgid "The complex type is described in :ref:`typesnumeric`." msgstr "複素数型については :ref:`typesnumeric` に説明があります。" -#: ../../library/functions.rst:399 ../../library/functions.rst:704 -#: ../../library/functions.rst:928 +#: ../../library/functions.rst:400 ../../library/functions.rst:708 +#: ../../library/functions.rst:932 msgid "Grouping digits with underscores as in code literals is allowed." msgstr "コードリテラル中で桁をグループ化するのにアンダースコアを利用できます。" -#: ../../library/functions.rst:402 +#: ../../library/functions.rst:403 msgid "" "Falls back to :meth:`~object.__index__` if :meth:`~object.__complex__` and :" "meth:`~object.__float__` are not defined." @@ -1016,7 +1007,7 @@ msgstr "" ":meth:`~object.__complex__` と :meth:`~object.__float__` が定義されていない場" "合、 :meth:`~object.__index__` へフォールバックします。" -#: ../../library/functions.rst:409 +#: ../../library/functions.rst:410 msgid "" "This is a relative of :func:`setattr`. The arguments are an object and a " "string. The string must be the name of one of the object's attributes. The " @@ -1030,7 +1021,7 @@ msgstr "" "'foobar')`` は ``del x.foobar`` と等価です。 *name* は Python の識別子である" "必要はありません (:func:`setattr` を参照してください)。" -#: ../../library/functions.rst:422 +#: ../../library/functions.rst:423 msgid "" "Create a new dictionary. The :class:`dict` object is the dictionary class. " "See :class:`dict` and :ref:`typesmapping` for documentation about this class." @@ -1039,7 +1030,7 @@ msgstr "" "スに関するドキュメンテーションは :class:`dict` と :ref:`typesmapping` を参照" "してください。" -#: ../../library/functions.rst:425 +#: ../../library/functions.rst:426 msgid "" "For other containers see the built-in :class:`list`, :class:`set`, and :" "class:`tuple` classes, as well as the :mod:`collections` module." @@ -1047,7 +1038,7 @@ msgstr "" "他のコンテナについては、 ビルトインの :class:`list`, :class:`set`, :class:" "`tuple` クラスおよび :mod:`collections` モジュールを参照してください。" -#: ../../library/functions.rst:432 +#: ../../library/functions.rst:433 msgid "" "Without arguments, return the list of names in the current local scope. " "With an argument, attempt to return a list of valid attributes for that " @@ -1056,32 +1047,25 @@ msgstr "" "引数がない場合、現在のローカルスコープにある名前のリストを返します。引数があ" "る場合、そのオブジェクトの有効な属性のリストを返そうと試みます。" -#: ../../library/functions.rst:435 +#: ../../library/functions.rst:436 msgid "" -"If the object has a method named :meth:`__dir__`, this method will be called " -"and must return the list of attributes. This allows objects that implement a " -"custom :func:`__getattr__` or :func:`__getattribute__` function to customize " -"the way :func:`dir` reports their attributes." +"If the object has a method named :meth:`~object.__dir__`, this method will " +"be called and must return the list of attributes. This allows objects that " +"implement a custom :func:`~object.__getattr__` or :func:`~object." +"__getattribute__` function to customize the way :func:`dir` reports their " +"attributes." msgstr "" -"オブジェクトが :meth:`__dir__` という名のメソッドを持つなら、そのメソッドが呼" -"び出され、属性のリストを返さなければなりません。これにより、カスタムの :func:" -"`__getattr__` や :func:`__getattribute__` 関数を実装するオブジェクトは、:" -"func:`dir` が属性を報告するやり方をカスタマイズできます。" -#: ../../library/functions.rst:440 +#: ../../library/functions.rst:443 msgid "" -"If the object does not provide :meth:`__dir__`, the function tries its best " -"to gather information from the object's :attr:`~object.__dict__` attribute, " -"if defined, and from its type object. The resulting list is not necessarily " -"complete and may be inaccurate when the object has a custom :func:" -"`__getattr__`." +"If the object does not provide :meth:`~object.__dir__`, the function tries " +"its best to gather information from the object's :attr:`~object.__dict__` " +"attribute, if defined, and from its type object. The resulting list is not " +"necessarily complete and may be inaccurate when the object has a custom :" +"func:`~object.__getattr__`." msgstr "" -"オブジェクトが :meth:`__dir__` を提供しない場合、その型オブジェクトと、定義さ" -"れていればオブジェクトの :attr:`~object.__dict__` 属性から、できるだけ情報を" -"集めようとします。結果のリストは必ずしも完全ではなく、カスタムの :func:" -"`__getattr__` を持つ場合は不正確かもしれません。" -#: ../../library/functions.rst:445 +#: ../../library/functions.rst:449 msgid "" "The default :func:`dir` mechanism behaves differently with different types " "of objects, as it attempts to produce the most relevant, rather than " @@ -1090,7 +1074,7 @@ msgstr "" "デフォルトの :func:`dir` メカニズムは、完全というより最重要な情報を作成しよう" "とするため、異なる型のオブジェクトでは異なって振る舞います:" -#: ../../library/functions.rst:449 +#: ../../library/functions.rst:453 msgid "" "If the object is a module object, the list contains the names of the " "module's attributes." @@ -1098,7 +1082,7 @@ msgstr "" "オブジェクトがモジュールオブジェクトの場合、リストにはモジュールの属性の名前" "が含まれます。" -#: ../../library/functions.rst:452 +#: ../../library/functions.rst:456 msgid "" "If the object is a type or class object, the list contains the names of its " "attributes, and recursively of the attributes of its bases." @@ -1106,7 +1090,7 @@ msgstr "" "オブジェクトが型オブジェクトやクラスオブジェクトの場合、リストにはその属性の" "名前と、再帰的にたどったその基底クラスの属性が含まれます。" -#: ../../library/functions.rst:455 +#: ../../library/functions.rst:459 msgid "" "Otherwise, the list contains the object's attributes' names, the names of " "its class's attributes, and recursively of the attributes of its class's " @@ -1115,11 +1099,11 @@ msgstr "" "それ以外の場合には、リストにはオブジェクトの属性名、クラス属性名、再帰的にた" "どった基底クラスの属性名が含まれます。" -#: ../../library/functions.rst:459 +#: ../../library/functions.rst:463 msgid "The resulting list is sorted alphabetically. For example:" msgstr "返されるリストはアルファベット順に並べられています。例えば:" -#: ../../library/functions.rst:479 +#: ../../library/functions.rst:483 msgid "" "Because :func:`dir` is supplied primarily as a convenience for use at an " "interactive prompt, it tries to supply an interesting set of names more than " @@ -1133,7 +1117,7 @@ msgstr "" "わる可能性があります。例えば、引数がクラスであるとき、メタクラス属性は結果の" "リストに含まれません。" -#: ../../library/functions.rst:489 +#: ../../library/functions.rst:493 msgid "" "Take two (non-complex) numbers as arguments and return a pair of numbers " "consisting of their quotient and remainder when using integer division. " @@ -1153,7 +1137,7 @@ msgstr "" "ないときは、その符号は *b* と同じであり、かつ ``0 <= abs(a % b) < abs(b)`` を" "満たします。" -#: ../../library/functions.rst:501 +#: ../../library/functions.rst:505 msgid "" "Return an enumerate object. *iterable* must be a sequence, an :term:" "`iterator`, or some other object which supports iteration. The :meth:" @@ -1168,11 +1152,11 @@ msgstr "" "ウントと、 *iterable* 上のイテレーションによって得られた値を含むタプルを返し" "ます。" -#: ../../library/functions.rst:513 +#: ../../library/functions.rst:517 msgid "Equivalent to::" msgstr "次と等価です::" -#: ../../library/functions.rst:525 +#: ../../library/functions.rst:529 msgid "" "The arguments are a string and optional globals and locals. If provided, " "*globals* must be a dictionary. If provided, *locals* can be any mapping " @@ -1182,7 +1166,7 @@ msgstr "" "合は辞書でなくてはなりません。*locals* を与える場合は任意のマッピングオブジェ" "クトにできます。" -#: ../../library/functions.rst:529 +#: ../../library/functions.rst:533 msgid "" "The *expression* argument is parsed and evaluated as a Python expression " "(technically speaking, a condition list) using the *globals* and *locals* " @@ -1211,7 +1195,7 @@ msgstr "" "たスコープ ` (ローカルでないオブジェクト) へのアクセスを持たな" "いことに注意してください。" -#: ../../library/functions.rst:544 +#: ../../library/functions.rst:548 msgid "" "The return value is the result of the evaluated expression. Syntax errors " "are reported as exceptions. Example:" @@ -1219,7 +1203,7 @@ msgstr "" "返される値は、式が評価された結果になります。構文エラーは例外として報告されま" "す。例:" -#: ../../library/functions.rst:551 +#: ../../library/functions.rst:555 msgid "" "This function can also be used to execute arbitrary code objects (such as " "those created by :func:`compile`). In this case, pass a code object instead " @@ -1231,7 +1215,7 @@ msgstr "" "てください。このコードオブジェクトが、引数 *mode* を ``'exec'`` としてコンパ" "イルされている場合、 :func:`eval` の戻り値は ``None`` になります。" -#: ../../library/functions.rst:556 +#: ../../library/functions.rst:560 msgid "" "Hints: dynamic execution of statements is supported by the :func:`exec` " "function. The :func:`globals` and :func:`locals` functions return the " @@ -1243,7 +1227,7 @@ msgstr "" "ルな辞書を返すので、それらを :func:`eval` や :func:`exec` に渡して使うことが" "できます。" -#: ../../library/functions.rst:561 +#: ../../library/functions.rst:565 msgid "" "If the given source is a string, then leading and trailing spaces and tabs " "are stripped." @@ -1251,7 +1235,7 @@ msgstr "" "ソースコードとして文字列が与えられた場合、先頭と末尾の空白文字およびタブは取" "り去られます。" -#: ../../library/functions.rst:564 +#: ../../library/functions.rst:568 msgid "" "See :func:`ast.literal_eval` for a function that can safely evaluate strings " "with expressions containing only literals." @@ -1259,7 +1243,7 @@ msgstr "" "リテラルだけを含む式の文字列を安全に評価できる関数、 :func:`ast." "literal_eval` も参照してください。" -#: ../../library/functions.rst:567 ../../library/functions.rst:608 +#: ../../library/functions.rst:571 ../../library/functions.rst:612 msgid "" "Raises an :ref:`auditing event ` ``exec`` with argument " "``code_object``." @@ -1267,7 +1251,7 @@ msgstr "" "引数 ``code_object`` を指定して :ref:`監査イベント ` ``exec`` を送" "出します。 " -#: ../../library/functions.rst:569 ../../library/functions.rst:610 +#: ../../library/functions.rst:573 ../../library/functions.rst:614 msgid "" "Raises an :ref:`auditing event ` ``exec`` with the code object as " "the argument. Code compilation events may also be raised." @@ -1275,7 +1259,7 @@ msgstr "" "コードオブジェクトを引数として :ref:`監査イベント ` ``exec`` を送出" "します。コードコンパイルのイベントも送出されることがあります。" -#: ../../library/functions.rst:576 +#: ../../library/functions.rst:580 msgid "" "This function supports dynamic execution of Python code. *object* must be " "either a string or a code object. If it is a string, the string is parsed " @@ -1297,7 +1281,7 @@ msgstr "" "コードの文脈中でさえ、関数定義の外側で使うことはできません。戻り値は " "``None`` です。" -#: ../../library/functions.rst:587 +#: ../../library/functions.rst:591 msgid "" "In all cases, if the optional parts are omitted, the code is executed in the " "current scope. If only *globals* is provided, it must be a dictionary (and " @@ -1319,7 +1303,7 @@ msgstr "" "オブジェクトを受け取った場合、コードはクラス定義に埋め込まれたかのように実行" "されます。" -#: ../../library/functions.rst:597 +#: ../../library/functions.rst:601 msgid "" "If the *globals* dictionary does not contain a value for the key " "``__builtins__``, a reference to the dictionary of the built-in module :mod:" @@ -1333,7 +1317,7 @@ msgstr "" "``__builtins__`` 辞書を挿入することで、コードがどの組み込みを利用できるか制御" "できます。" -#: ../../library/functions.rst:603 +#: ../../library/functions.rst:607 msgid "" "The *closure* argument specifies a closure--a tuple of cellvars. It's only " "valid when the *object* is a code object containing free variables. The " @@ -1345,7 +1329,7 @@ msgstr "" "の長さはコードオブジェクトから参照されている自由変数の数と厳密に一致しなけれ" "ばなりません。" -#: ../../library/functions.rst:615 +#: ../../library/functions.rst:619 msgid "" "The built-in functions :func:`globals` and :func:`locals` return the current " "global and local dictionary, respectively, which may be useful to pass " @@ -1355,7 +1339,7 @@ msgstr "" "ルおよびローカルの辞書を返すので、それらを :func:`exec` の第二、第三引数にそ" "のまま渡して使うと便利なことがあります。" -#: ../../library/functions.rst:621 +#: ../../library/functions.rst:625 msgid "" "The default *locals* act as described for function :func:`locals` below: " "modifications to the default *locals* dictionary should not be attempted. " @@ -1367,11 +1351,11 @@ msgstr "" "時にコードが *locals* に与える影響を知りたいなら、明示的に *locals* 辞書を渡" "してください。" -#: ../../library/functions.rst:626 +#: ../../library/functions.rst:630 msgid "Added the *closure* parameter." msgstr "*closure* パラメータが追加されました。" -#: ../../library/functions.rst:632 +#: ../../library/functions.rst:636 msgid "" "Construct an iterator from those elements of *iterable* for which *function* " "is true. *iterable* may be either a sequence, a container which supports " @@ -1383,7 +1367,7 @@ msgstr "" "テレータを渡せます。 *function* が ``None`` のときは恒等関数が指定されたもの" "として扱われ、 *iterable* のうち偽であるものがすべて取り除かれます。" -#: ../../library/functions.rst:638 +#: ../../library/functions.rst:642 msgid "" "Note that ``filter(function, iterable)`` is equivalent to the generator " "expression ``(item for item in iterable if function(item))`` if function is " @@ -1394,7 +1378,7 @@ msgstr "" "タ式 ``(item for item in iterable if function(item))`` と同等で、関数が " "``None`` なら ``(item for item in iterable if item)`` と同等です。" -#: ../../library/functions.rst:643 +#: ../../library/functions.rst:647 msgid "" "See :func:`itertools.filterfalse` for the complementary function that " "returns elements of *iterable* for which *function* is false." @@ -1402,11 +1386,11 @@ msgstr "" "逆の働きをする関数については、 :func:`itertools.filterfalse` を参照してくださ" "い。 *iterable* の要素のうち、 *function* が偽であるものを返します。" -#: ../../library/functions.rst:653 +#: ../../library/functions.rst:657 msgid "Return a floating point number constructed from a number or string *x*." msgstr "数または文字列 *x* から生成された浮動小数点数を返します。" -#: ../../library/functions.rst:655 +#: ../../library/functions.rst:659 msgid "" "If the argument is a string, it should contain a decimal number, optionally " "preceded by a sign, and optionally embedded in whitespace. The optional " @@ -1422,7 +1406,7 @@ msgstr "" "負の無限大をあらわす文字列でもかまいません。より正確にいうと、入力は先頭と末" "尾の空白文字を除き、以下に示す ``floatvalue`` の生成規則に従う必要があります:" -#: ../../library/functions.rst:673 +#: ../../library/functions.rst:677 msgid "" "Here ``digit`` is a Unicode decimal digit (character in the Unicode general " "category ``Nd``). Case is not significant, so, for example, \"inf\", " @@ -1434,7 +1418,7 @@ msgstr "" "えば \"inf\", \"Inf\", \"INFINITY\", そして \"iNfINity\" は全て正の無限大とし" "て有効な書き方です。" -#: ../../library/functions.rst:678 +#: ../../library/functions.rst:682 msgid "" "Otherwise, if the argument is an integer or a floating point number, a " "floating point number with the same value (within Python's floating point " @@ -1445,7 +1429,7 @@ msgstr "" "じ値の浮動小数点数が返されます。引数が Python の浮動小数点数の範囲外なら、 :" "exc:`OverflowError` が送出されます。" -#: ../../library/functions.rst:683 +#: ../../library/functions.rst:687 msgid "" "For a general Python object ``x``, ``float(x)`` delegates to ``x." "__float__()``. If :meth:`~object.__float__` is not defined then it falls " @@ -1455,19 +1439,19 @@ msgstr "" "に委譲します。 :meth:`~object.__float__()` が定義されていない場合、:meth:" "`~object.__index__` へフォールバックします。" -#: ../../library/functions.rst:687 +#: ../../library/functions.rst:691 msgid "If no argument is given, ``0.0`` is returned." msgstr "引数が与えられなければ、``0.0`` が返されます。" -#: ../../library/functions.rst:689 +#: ../../library/functions.rst:693 msgid "Examples::" msgstr "例::" -#: ../../library/functions.rst:702 +#: ../../library/functions.rst:706 msgid "The float type is described in :ref:`typesnumeric`." msgstr "浮動小数点数型については、 :ref:`typesnumeric` も参照してください。" -#: ../../library/functions.rst:710 +#: ../../library/functions.rst:714 msgid "" "Falls back to :meth:`~object.__index__` if :meth:`~object.__float__` is not " "defined." @@ -1475,7 +1459,7 @@ msgstr "" ":meth:`~object.__float__` が定義されていない場合、 :meth:`~object.__index__` " "へフォールバックします。" -#: ../../library/functions.rst:720 +#: ../../library/functions.rst:724 msgid "" "Convert a *value* to a \"formatted\" representation, as controlled by " "*format_spec*. The interpretation of *format_spec* will depend on the type " @@ -1486,7 +1470,7 @@ msgstr "" "す。 *format_spec* の解釈は *value* 引数の型に依存しますが、ほとんどの組み込" "み型で使われる標準的な構文が存在します: :ref:`formatspec`。" -#: ../../library/functions.rst:725 +#: ../../library/functions.rst:729 msgid "" "The default *format_spec* is an empty string which usually gives the same " "effect as calling :func:`str(value) `." @@ -1494,23 +1478,17 @@ msgstr "" "デフォルトの *format_spec* は空の文字列です。それは通常 :func:`str(value) " "` の呼び出しと同じ結果になります。" -#: ../../library/functions.rst:728 +#: ../../library/functions.rst:732 msgid "" "A call to ``format(value, format_spec)`` is translated to ``type(value)." "__format__(value, format_spec)`` which bypasses the instance dictionary when " -"searching for the value's :meth:`__format__` method. A :exc:`TypeError` " -"exception is raised if the method search reaches :mod:`object` and the " -"*format_spec* is non-empty, or if either the *format_spec* or the return " -"value are not strings." +"searching for the value's :meth:`~object.__format__` method. A :exc:" +"`TypeError` exception is raised if the method search reaches :mod:`object` " +"and the *format_spec* is non-empty, or if either the *format_spec* or the " +"return value are not strings." msgstr "" -"``format(value, format_spec)`` の呼び出しは、 ``type(value)." -"__format__(value, format_spec)`` に翻訳され、これは value の :meth:" -"`__format__` メソッドの検索をするとき、インスタンス辞書を回避します。このメ" -"ソッドの探索が :mod:`object` に到達しても *format_spec* が空にならなかった" -"り、 *format_spec* や返り値が文字列でなかったりした場合、 :exc:`TypeError` が" -"送出されます。" -#: ../../library/functions.rst:735 +#: ../../library/functions.rst:739 msgid "" "``object().__format__(format_spec)`` raises :exc:`TypeError` if " "*format_spec* is not an empty string." @@ -1518,7 +1496,7 @@ msgstr "" "*format_spec* が空の文字列でない場合 ``object().__format__(format_spec)`` " "は :exc:`TypeError` を送出します。" -#: ../../library/functions.rst:744 +#: ../../library/functions.rst:748 msgid "" "Return a new :class:`frozenset` object, optionally with elements taken from " "*iterable*. ``frozenset`` is a built-in class. See :class:`frozenset` and :" @@ -1529,7 +1507,7 @@ msgstr "" "関するドキュメントは :class:`frozenset` と :ref:`types-set` を参照してくださ" "い。" -#: ../../library/functions.rst:748 +#: ../../library/functions.rst:752 msgid "" "For other containers see the built-in :class:`set`, :class:`list`, :class:" "`tuple`, and :class:`dict` classes, as well as the :mod:`collections` module." @@ -1537,7 +1515,7 @@ msgstr "" "他のコンテナについては、ビルトインクラス :class:`set`, :class:`list`, :class:" "`tuple`, :class:`dict` や :mod:`collections` モジュールを見てください。" -#: ../../library/functions.rst:756 +#: ../../library/functions.rst:760 msgid "" "Return the value of the named attribute of *object*. *name* must be a " "string. If the string is the name of one of the object's attributes, the " @@ -1554,7 +1532,7 @@ msgstr "" "れます。 *name* は Python 識別子である必要はありません (:func:`setattr` を参" "照してください)。" -#: ../../library/functions.rst:765 +#: ../../library/functions.rst:769 msgid "" "Since :ref:`private name mangling ` happens at " "compilation time, one must manually mangle a private attribute's (attributes " @@ -1566,7 +1544,7 @@ msgstr "" "名前を持つ属性) の値を :func:`getattr` で取り出すためには、属性名を手動でマン" "グリングする必要があります。" -#: ../../library/functions.rst:773 +#: ../../library/functions.rst:777 msgid "" "Return the dictionary implementing the current module namespace. For code " "within functions, this is set when the function is defined and remains the " @@ -1576,7 +1554,7 @@ msgstr "" "は、関数が定義されるときに辞書が設定され、その関数がどこから呼ばれたかにかか" "わらず同じ内容になります。" -#: ../../library/functions.rst:780 +#: ../../library/functions.rst:784 msgid "" "The arguments are an object and a string. The result is ``True`` if the " "string is the name of one of the object's attributes, ``False`` if not. " @@ -1588,7 +1566,7 @@ msgstr "" "``getattr(object, name)`` を呼び出して :exc:`AttributeError` を送出するかどう" "かを見ることで実装されています。)" -#: ../../library/functions.rst:788 +#: ../../library/functions.rst:792 msgid "" "Return the hash value of the object (if it has one). Hash values are " "integers. They are used to quickly compare dictionary keys during a " @@ -1600,17 +1578,13 @@ msgstr "" "なる数値は等しいハッシュ値を持ちます (1 と 1.0 のように型が異なっていてもで" "す)。" -#: ../../library/functions.rst:795 +#: ../../library/functions.rst:799 msgid "" -"For objects with custom :meth:`__hash__` methods, note that :func:`hash` " -"truncates the return value based on the bit width of the host machine. See :" -"meth:`__hash__ ` for details." +"For objects with custom :meth:`~object.__hash__` methods, note that :func:" +"`hash` truncates the return value based on the bit width of the host machine." msgstr "" -"独自の :meth:`__hash__` メソッドを実装したオブジェクトを使う場合、:func:" -"`hash` が実行するマシンのビット幅に合わせて戻り値を切り捨てることに注意してく" -"ださい。詳しくは :meth:`__hash__ ` を参照してください。" -#: ../../library/functions.rst:802 +#: ../../library/functions.rst:806 msgid "" "Invoke the built-in help system. (This function is intended for interactive " "use.) If no argument is given, the interactive help system starts on the " @@ -1626,7 +1600,7 @@ msgstr "" "コンソール上に印字されます。引数がその他のオブジェクトの場合、そのオブジェク" "トに関するヘルプページが生成されます。" -#: ../../library/functions.rst:809 +#: ../../library/functions.rst:813 msgid "" "Note that if a slash(/) appears in the parameter list of a function when " "invoking :func:`help`, it means that the parameters prior to the slash are " @@ -1638,13 +1612,13 @@ msgstr "" "さい。より詳しい情報は、 :ref:`位置専用引数についての FAQ の項目 ` を参照してください。" -#: ../../library/functions.rst:814 +#: ../../library/functions.rst:818 msgid "" "This function is added to the built-in namespace by the :mod:`site` module." msgstr "" "この関数は、 :mod:`site` モジュールから、組み込みの名前空間に移されました。" -#: ../../library/functions.rst:816 +#: ../../library/functions.rst:820 msgid "" "Changes to :mod:`pydoc` and :mod:`inspect` mean that the reported signatures " "for callables are now more comprehensive and consistent." @@ -1652,7 +1626,7 @@ msgstr "" ":mod:`pydoc` と :mod:`inspect` への変更により、呼び出し可能オブジェクトの報告" "されたシグニチャがより包括的で一貫性のあるものになりました。" -#: ../../library/functions.rst:823 +#: ../../library/functions.rst:827 msgid "" "Convert an integer number to a lowercase hexadecimal string prefixed with " "\"0x\". If *x* is not a Python :class:`int` object, it has to define an :" @@ -1663,7 +1637,7 @@ msgstr "" "`~object.__index__` メソッドが定義されていなければなりません。\n" "いくつかの例を示します:" -#: ../../library/functions.rst:832 +#: ../../library/functions.rst:836 msgid "" "If you want to convert an integer number to an uppercase or lower " "hexadecimal string with prefix or not, you can use either of the following " @@ -1672,14 +1646,14 @@ msgstr "" "整数を大文字の 16 進文字列や小文字の 16 進文字列、先頭の \"0x\" 付きや " "\"0x\" 無しに変換したい場合は、次に挙げる方法が使えます:" -#: ../../library/functions.rst:844 +#: ../../library/functions.rst:848 msgid "" "See also :func:`int` for converting a hexadecimal string to an integer using " "a base of 16." msgstr "" "16を底として16進数文字列を整数に変換するには :func:`int` も参照してください。" -#: ../../library/functions.rst:849 +#: ../../library/functions.rst:853 msgid "" "To obtain a hexadecimal string representation for a float, use the :meth:" "`float.hex` method." @@ -1687,7 +1661,7 @@ msgstr "" "浮動小数点数の16進文字列表記を得たい場合には、 :meth:`float.hex` メソッドを" "使って下さい。" -#: ../../library/functions.rst:855 +#: ../../library/functions.rst:859 msgid "" "Return the \"identity\" of an object. This is an integer which is " "guaranteed to be unique and constant for this object during its lifetime. " @@ -1698,11 +1672,11 @@ msgstr "" "期間中は一意かつ定数であることが保証されています。有効期間が重ならない 2 つの" "オブジェクトは同じ :func:`id` 値を持つかもしれません。" -#: ../../library/functions.rst:860 +#: ../../library/functions.rst:864 msgid "This is the address of the object in memory." msgstr "これはオブジェクトのメモリアドレスです。" -#: ../../library/functions.rst:862 +#: ../../library/functions.rst:866 msgid "" "Raises an :ref:`auditing event ` ``builtins.id`` with argument " "``id``." @@ -1710,7 +1684,7 @@ msgstr "" "引数 ``id`` を指定して :ref:`監査イベント ` ``builtins.id`` を送出" "します。 " -#: ../../library/functions.rst:868 +#: ../../library/functions.rst:872 msgid "" "If the *prompt* argument is present, it is written to standard output " "without a trailing newline. The function then reads a line from input, " @@ -1722,7 +1696,7 @@ msgstr "" "いて) 返します。 EOF が読み込まれたとき、 :exc:`EOFError` が送出されます。" "例::" -#: ../../library/functions.rst:878 +#: ../../library/functions.rst:882 msgid "" "If the :mod:`readline` module was loaded, then :func:`input` will use it to " "provide elaborate line editing and history features." @@ -1730,7 +1704,7 @@ msgstr "" ":mod:`readline` モジュールが読み込まれていれば、 :func:`input` はそれを使って" "精緻な行編集やヒストリ機能を提供します。" -#: ../../library/functions.rst:881 +#: ../../library/functions.rst:885 msgid "" "Raises an :ref:`auditing event ` ``builtins.input`` with argument " "``prompt``." @@ -1738,7 +1712,7 @@ msgstr "" "引数 ``prompt`` 付きで :ref:`監査イベント ` ``builtins.input`` を送" "出します。" -#: ../../library/functions.rst:883 +#: ../../library/functions.rst:887 msgid "" "Raises an :ref:`auditing event ` ``builtins.input`` with argument " "``prompt`` before reading input" @@ -1746,7 +1720,7 @@ msgstr "" "入力を読み込む前に、引数 ``prompt`` 付きで :ref:`監査イベント ` " "``builtins.input`` を送出します。" -#: ../../library/functions.rst:886 +#: ../../library/functions.rst:890 msgid "" "Raises an :ref:`auditing event ` ``builtins.input/result`` with " "argument ``result``." @@ -1754,7 +1728,7 @@ msgstr "" "引数 ``result`` 付きで :ref:`監査イベント ` ``builtins.input/" "result`` を送出します。" -#: ../../library/functions.rst:888 +#: ../../library/functions.rst:892 msgid "" "Raises an :ref:`auditing event ` ``builtins.input/result`` with " "the result after successfully reading input." @@ -1762,7 +1736,7 @@ msgstr "" "入力の読み込みに成功した後に、その結果付きで :ref:`監査イベント ` " "``builtins.input/result`` を送出します。" -#: ../../library/functions.rst:895 +#: ../../library/functions.rst:899 msgid "" "Return an integer object constructed from a number or string *x*, or return " "``0`` if no arguments are given. If *x* defines :meth:`~object.__int__`, " @@ -1781,7 +1755,7 @@ msgstr "" "を返します。\n" "浮動小数点数については、これは 0 に近い側へ切り捨てます。" -#: ../../library/functions.rst:902 +#: ../../library/functions.rst:906 msgid "" "If *x* is not a number or if *base* is given, then *x* must be a string, :" "class:`bytes`, or :class:`bytearray` instance representing an integer in " @@ -1796,7 +1770,7 @@ msgstr "" "頭に任意の数のゼロを付けたり、前後に空白文字を付けたり、各桁を単一の下線で区" "切ったりしても有効です。" -#: ../../library/functions.rst:908 +#: ../../library/functions.rst:912 msgid "" "A base-n integer string contains digits, each representing a value from 0 to " "n-1. The values 0--9 can be represented by any Unicode decimal digit. The " @@ -1821,11 +1795,11 @@ msgstr "" "ち ``int('010', 0)`` は基数を0に指定しているため不正ですが、 ``int('010')`` " "や ``int('010', 8)`` は有効です。" -#: ../../library/functions.rst:919 +#: ../../library/functions.rst:923 msgid "The integer type is described in :ref:`typesnumeric`." msgstr "整数型については、 :ref:`typesnumeric` も参照してください。" -#: ../../library/functions.rst:921 +#: ../../library/functions.rst:925 msgid "" "If *base* is not an instance of :class:`int` and the *base* object has a :" "meth:`base.__index__ ` method, that method is called to " @@ -1838,7 +1812,7 @@ msgstr "" "__index__ ` ではなく :meth:`base.__int__ ` " "を使用していました。" -#: ../../library/functions.rst:934 +#: ../../library/functions.rst:938 msgid "" "Falls back to :meth:`~object.__index__` if :meth:`~object.__int__` is not " "defined." @@ -1846,11 +1820,11 @@ msgstr "" ":meth:`~object.__int__` が定義されていない場合、 :meth:`~object.__index__` へ" "フォールバックします。" -#: ../../library/functions.rst:937 +#: ../../library/functions.rst:941 msgid "The delegation to :meth:`~object.__trunc__` is deprecated." msgstr ":meth:`~object.__trunc__` への処理の委譲は非推奨になりました。" -#: ../../library/functions.rst:940 +#: ../../library/functions.rst:944 msgid "" ":class:`int` string inputs and string representations can be limited to help " "avoid denial of service attacks. A :exc:`ValueError` is raised when the " @@ -1865,7 +1839,7 @@ msgstr "" "`ValueError` が送出されます。詳しくは :ref:`整数文字列の変換における長さ制限 " "` を参照してください。" -#: ../../library/functions.rst:950 +#: ../../library/functions.rst:954 msgid "" "Return ``True`` if the *object* argument is an instance of the *classinfo* " "argument, or of a (direct, indirect, or :term:`virtual `) of *classinfo*. A class is considered a " @@ -1909,37 +1883,27 @@ msgstr "" "ば ``True`` を返します。上記以外の値が指定された場合、 :exc:`TypeError` 例外" "が送出されます。" -#: ../../library/functions.rst:982 +#: ../../library/functions.rst:986 msgid "" "Return an :term:`iterator` object. The first argument is interpreted very " "differently depending on the presence of the second argument. Without a " "second argument, *object* must be a collection object which supports the :" -"term:`iterable` protocol (the :meth:`__iter__` method), or it must support " -"the sequence protocol (the :meth:`~object.__getitem__` method with integer " -"arguments starting at ``0``). If it does not support either of those " -"protocols, :exc:`TypeError` is raised. If the second argument, *sentinel*, " -"is given, then *object* must be a callable object. The iterator created in " -"this case will call *object* with no arguments for each call to its :meth:" -"`~iterator.__next__` method; if the value returned is equal to *sentinel*, :" -"exc:`StopIteration` will be raised, otherwise the value will be returned." -msgstr "" -":term:`iterator` オブジェクトを返します。第二引数があるかどうかによって第一引" -"数の解釈は大きく異なります。第二引数がない場合、 *object* は :term:" -"`iterable` プロトコル (:meth:`__iter__` メソッド) をサポートするコレクション" -"オブジェクトか、またはシーケンスプロトコル (``0`` から始まる整数を引数にと" -"る :meth:`~object.__getitem__` メソッド) をサポートするオブジェクトでなければ" -"なりません。第一引数がどちらのプロトコルもサポートしない場合は :exc:" -"`TypeError` 例外が送出されます。第二引数 *sentinel* が与えられた場合、 " -"*object* は呼び出し可能オブジェクトでなければなりません。この場合に生成される" -"イテレータは :meth:`~iterator.__next__` メソッドを呼び出すごとに引数なしで " -"*object* を呼び出します; 戻り値が *sentinel* と等しければ、 :exc:" -"`StopIteration` が送出されます。それ以外の場合は戻り値がそのまま返されます。" - -#: ../../library/functions.rst:995 +"term:`iterable` protocol (the :meth:`~object.__iter__` method), or it must " +"support the sequence protocol (the :meth:`~object.__getitem__` method with " +"integer arguments starting at ``0``). If it does not support either of " +"those protocols, :exc:`TypeError` is raised. If the second argument, " +"*sentinel*, is given, then *object* must be a callable object. The iterator " +"created in this case will call *object* with no arguments for each call to " +"its :meth:`~iterator.__next__` method; if the value returned is equal to " +"*sentinel*, :exc:`StopIteration` will be raised, otherwise the value will be " +"returned." +msgstr "" + +#: ../../library/functions.rst:1000 msgid "See also :ref:`typeiter`." msgstr ":ref:`typeiter` も見てください。" -#: ../../library/functions.rst:997 +#: ../../library/functions.rst:1002 msgid "" "One useful application of the second form of :func:`iter` is to build a " "block-reader. For example, reading fixed-width blocks from a binary database " @@ -1950,7 +1914,7 @@ msgstr "" "例えば、バイナリのデータベースファイルから固定幅のブロックをファイルの終端に" "到達するまで読み出すには次のようにします::" -#: ../../library/functions.rst:1009 +#: ../../library/functions.rst:1014 msgid "" "Return the length (the number of items) of an object. The argument may be a " "sequence (such as a string, bytes, tuple, list, or range) or a collection " @@ -1959,7 +1923,7 @@ msgstr "" "オブジェクトの長さ (要素の数) を返します。引数はシーケンス (文字列、バイト" "列、タプル、リスト、range 等) かコレクション (辞書、集合、凍結集合等) です。" -#: ../../library/functions.rst:1015 +#: ../../library/functions.rst:1020 msgid "" "``len`` raises :exc:`OverflowError` on lengths larger than :data:`sys." "maxsize`, such as :class:`range(2 ** 100) `." @@ -1967,7 +1931,7 @@ msgstr "" "``len`` は、例えば :class:`range(2 ** 100) ` のような、 :data:`sys." "maxsize` を超える長さに対して :exc:`OverflowError` を送出します。" -#: ../../library/functions.rst:1024 +#: ../../library/functions.rst:1029 msgid "" "Rather than being a function, :class:`list` is actually a mutable sequence " "type, as documented in :ref:`typesseq-list` and :ref:`typesseq`." @@ -1975,7 +1939,7 @@ msgstr "" ":class:`list` は、実際には関数ではなくミュータブルなシーケンス型で、 :ref:" "`typesseq-list` と :ref:`typesseq` にドキュメント化されています。" -#: ../../library/functions.rst:1030 +#: ../../library/functions.rst:1035 msgid "" "Update and return a dictionary representing the current local symbol table. " "Free variables are returned by :func:`locals` when it is called in function " @@ -1988,7 +1952,7 @@ msgstr "" "モジュールレベルでは、 :func:`locals` と :func:`globals` は同じ辞書であること" "に注意してください。" -#: ../../library/functions.rst:1036 +#: ../../library/functions.rst:1041 msgid "" "The contents of this dictionary should not be modified; changes may not " "affect the values of local and free variables used by the interpreter." @@ -1996,7 +1960,7 @@ msgstr "" "この辞書の内容は変更してはいけません; 変更しても、インタプリタが使うローカル" "変数や自由変数の値には影響しません。" -#: ../../library/functions.rst:1041 +#: ../../library/functions.rst:1046 msgid "" "Return an iterator that applies *function* to every item of *iterable*, " "yielding the results. If additional *iterables* arguments are passed, " @@ -2013,14 +1977,14 @@ msgstr "" "数タプルとして単一のイテラブルの形で整理されている場合は、 :func:`itertools." "starmap` を参照してください。" -#: ../../library/functions.rst:1053 +#: ../../library/functions.rst:1058 msgid "" "Return the largest item in an iterable or the largest of two or more " "arguments." msgstr "" "iterable の中で最大の要素、または2つ以上の引数の中で最大のものを返します。" -#: ../../library/functions.rst:1056 +#: ../../library/functions.rst:1061 msgid "" "If one positional argument is provided, it should be an :term:`iterable`. " "The largest item in the iterable is returned. If two or more positional " @@ -2030,7 +1994,7 @@ msgstr "" "けません。その iterable の最大の要素が返されます。2 つ以上のキーワード無しの" "位置引数が与えられた場合、その位置引数の中で最大のものが返されます。" -#: ../../library/functions.rst:1061 ../../library/functions.rst:1099 +#: ../../library/functions.rst:1066 ../../library/functions.rst:1104 msgid "" "There are two optional keyword-only arguments. The *key* argument specifies " "a one-argument ordering function like that used for :meth:`list.sort`. The " @@ -2046,7 +2010,7 @@ msgstr "" "イテラブルが空で *default* が与えられていない場合 :exc:`ValueError` が送出さ" "れます。" -#: ../../library/functions.rst:1067 +#: ../../library/functions.rst:1072 msgid "" "If multiple items are maximal, the function returns the first one " "encountered. This is consistent with other sort-stability preserving tools " @@ -2058,15 +2022,15 @@ msgstr "" "nlargest(1, iterable, key=keyfunc)`` のような、他のソート安定性を維持するツー" "ルと両立します。" -#: ../../library/functions.rst:1072 ../../library/functions.rst:1110 +#: ../../library/functions.rst:1077 ../../library/functions.rst:1115 msgid "The *default* keyword-only argument." msgstr "*default* キーワード専用引数。" -#: ../../library/functions.rst:1075 ../../library/functions.rst:1113 +#: ../../library/functions.rst:1080 ../../library/functions.rst:1118 msgid "The *key* can be ``None``." msgstr "*key* 引数が ``None`` であることを許容します。" -#: ../../library/functions.rst:1083 +#: ../../library/functions.rst:1088 msgid "" "Return a \"memory view\" object created from the given argument. See :ref:" "`typememoryview` for more information." @@ -2074,14 +2038,14 @@ msgstr "" "与えられたオブジェクトから作られた \"メモリビュー\" オブジェクトを返します。" "詳しくは :ref:`typememoryview` を参照してください。" -#: ../../library/functions.rst:1091 +#: ../../library/functions.rst:1096 msgid "" "Return the smallest item in an iterable or the smallest of two or more " "arguments." msgstr "" "iterable の中で最小の要素、または2つ以上の引数の中で最小のものを返します。" -#: ../../library/functions.rst:1094 +#: ../../library/functions.rst:1099 msgid "" "If one positional argument is provided, it should be an :term:`iterable`. " "The smallest item in the iterable is returned. If two or more positional " @@ -2091,7 +2055,7 @@ msgstr "" "けません。その iterable の最小の要素が返されます。2 つ以上のキーワード無しの" "位置引数が与えられた場合、その位置引数の中で最小のものが返されます。" -#: ../../library/functions.rst:1105 +#: ../../library/functions.rst:1110 msgid "" "If multiple items are minimal, the function returns the first one " "encountered. This is consistent with other sort-stability preserving tools " @@ -2102,7 +2066,7 @@ msgstr "" "は、``sorted(iterable, key=keyfunc)[0]`` や ``heapq.nsmallest(1, iterable, " "key=keyfunc)`` のような、他のソート安定性を維持するツールと両立します。" -#: ../../library/functions.rst:1120 +#: ../../library/functions.rst:1125 msgid "" "Retrieve the next item from the :term:`iterator` by calling its :meth:" "`~iterator.__next__` method. If *default* is given, it is returned if the " @@ -2113,7 +2077,7 @@ msgstr "" "いればその値が返されます。そうでない場合は :exc:`StopIteration` が送出されま" "す。" -#: ../../library/functions.rst:1127 +#: ../../library/functions.rst:1132 msgid "" "Return a new featureless object. :class:`object` is a base for all classes. " "It has methods that are common to all instances of Python classes. This " @@ -2123,7 +2087,7 @@ msgstr "" "スの基底クラスです。これは、全ての Python クラスのインスタンスに共通のメソッ" "ド群を持ちます。この関数はいかなる引数も受け付けません。" -#: ../../library/functions.rst:1133 +#: ../../library/functions.rst:1138 msgid "" ":class:`object` does *not* have a :attr:`~object.__dict__`, so you can't " "assign arbitrary attributes to an instance of the :class:`object` class." @@ -2131,7 +2095,7 @@ msgstr "" ":class:`object` は :attr:`~object.__dict__` を *持たない* ので、 :class:" "`object` クラスのインスタンスに任意の属性を代入することはできません。" -#: ../../library/functions.rst:1139 +#: ../../library/functions.rst:1144 msgid "" "Convert an integer number to an octal string prefixed with \"0o\". The " "result is a valid Python expression. If *x* is not a Python :class:`int` " @@ -2144,7 +2108,7 @@ msgstr "" "`~object.__index__` メソッドが定義されていなければなりません。\n" "例えば、次のようになります:" -#: ../../library/functions.rst:1149 +#: ../../library/functions.rst:1154 msgid "" "If you want to convert an integer number to an octal string either with the " "prefix \"0o\" or not, you can use either of the following ways." @@ -2152,7 +2116,7 @@ msgstr "" "整数を接頭辞 \"0o\" 付きや \"0o\" 無しの 8 進文字列に変換したい場合は、次に挙" "げる方法のいずれかを使ってください。" -#: ../../library/functions.rst:1166 +#: ../../library/functions.rst:1171 msgid "" "Open *file* and return a corresponding :term:`file object`. If the file " "cannot be opened, an :exc:`OSError` is raised. See :ref:`tut-files` for more " @@ -2162,7 +2126,7 @@ msgstr "" "す。ファイルを開くことができなければ、:exc:`OSError` が送出されます。\n" "この関数の利用例について、 :ref:`tut-files` を参照してください。" -#: ../../library/functions.rst:1170 +#: ../../library/functions.rst:1175 msgid "" "*file* is a :term:`path-like object` giving the pathname (absolute or " "relative to the current working directory) of the file to be opened or an " @@ -2176,7 +2140,7 @@ msgstr "" "が ``False`` に設定されていないかぎり、この関数が返す I/O オブジェクトがク" "ローズされるときにファイルデスクリプタもクローズされます。)" -#: ../../library/functions.rst:1176 +#: ../../library/functions.rst:1181 msgid "" "*mode* is an optional string that specifies the mode in which the file is " "opened. It defaults to ``'r'`` which means open for reading in text mode. " @@ -2200,71 +2164,71 @@ msgstr "" "ます。 (生のバイトデータを読み書きする際にはバイナリモードを使います。このと" "きは *encoding* は未指定のままとします。) 指定可能なモードは以下の通りです:" -#: ../../library/functions.rst:1193 +#: ../../library/functions.rst:1198 msgid "Character" msgstr "文字" -#: ../../library/functions.rst:1193 +#: ../../library/functions.rst:1198 msgid "Meaning" msgstr "意味" -#: ../../library/functions.rst:1195 +#: ../../library/functions.rst:1200 msgid "``'r'``" msgstr "``'r'``" -#: ../../library/functions.rst:1195 +#: ../../library/functions.rst:1200 msgid "open for reading (default)" msgstr "読み込み用に開く (デフォルト)" -#: ../../library/functions.rst:1196 +#: ../../library/functions.rst:1201 msgid "``'w'``" msgstr "``'w'``" -#: ../../library/functions.rst:1196 +#: ../../library/functions.rst:1201 msgid "open for writing, truncating the file first" msgstr "書き込み用に開き、まずファイルを切り詰める" -#: ../../library/functions.rst:1197 +#: ../../library/functions.rst:1202 msgid "``'x'``" msgstr "``'x'``" -#: ../../library/functions.rst:1197 +#: ../../library/functions.rst:1202 msgid "open for exclusive creation, failing if the file already exists" msgstr "排他的な生成に開き、ファイルが存在する場合は失敗する" -#: ../../library/functions.rst:1198 +#: ../../library/functions.rst:1203 msgid "``'a'``" msgstr "``'a'``" -#: ../../library/functions.rst:1198 +#: ../../library/functions.rst:1203 msgid "open for writing, appending to the end of file if it exists" msgstr "書き込み用に開き、ファイルが存在する場合には末尾に追記する" -#: ../../library/functions.rst:1199 +#: ../../library/functions.rst:1204 msgid "``'b'``" msgstr "``'b'``" -#: ../../library/functions.rst:1199 ../../library/functions.rst:1343 +#: ../../library/functions.rst:1204 ../../library/functions.rst:1348 msgid "binary mode" msgstr "バイナリモード" -#: ../../library/functions.rst:1200 +#: ../../library/functions.rst:1205 msgid "``'t'``" msgstr "``'t'``" -#: ../../library/functions.rst:1200 +#: ../../library/functions.rst:1205 msgid "text mode (default)" msgstr "テキストモード (デフォルト)" -#: ../../library/functions.rst:1201 +#: ../../library/functions.rst:1206 msgid "``'+'``" msgstr "``'+'``" -#: ../../library/functions.rst:1201 +#: ../../library/functions.rst:1206 msgid "open for updating (reading and writing)" msgstr "更新用に開く (読み込み・書き込み用)" -#: ../../library/functions.rst:1204 +#: ../../library/functions.rst:1209 msgid "" "The default mode is ``'r'`` (open for reading text, a synonym of ``'rt'``). " "Modes ``'w+'`` and ``'w+b'`` open and truncate the file. Modes ``'r+'`` and " @@ -2274,7 +2238,7 @@ msgstr "" "です。 ``'w+'`` と ``'w+b'`` はファイルを開いて上書きします。 ``'r+'`` と " "``'r+b'`` はファイルを上書きせずに開きます。" -#: ../../library/functions.rst:1208 +#: ../../library/functions.rst:1213 msgid "" "As mentioned in the :ref:`io-overview`, Python distinguishes between binary " "and text I/O. Files opened in binary mode (including ``'b'`` in the *mode* " @@ -2292,7 +2256,7 @@ msgstr "" "ラットフォーム依存のエンコーディングか、*encoding* が指定された場合は指定され" "たエンコーディングを使ってデコードされます。" -#: ../../library/functions.rst:1218 +#: ../../library/functions.rst:1223 msgid "" "Python doesn't depend on the underlying operating system's notion of text " "files; all the processing is done by Python itself, and is therefore " @@ -2302,7 +2266,7 @@ msgstr "" "は依存しません; すべての処理は Python 自身で行われ、よってプラットフォーム非" "依存です。" -#: ../../library/functions.rst:1222 +#: ../../library/functions.rst:1227 msgid "" "*buffering* is an optional integer used to set the buffering policy. Pass 0 " "to switch buffering off (only allowed in binary mode), 1 to select line " @@ -2315,7 +2279,7 @@ msgid "" "*buffering* argument is given, the default buffering policy works as follows:" msgstr "" -#: ../../library/functions.rst:1232 +#: ../../library/functions.rst:1237 msgid "" "Binary files are buffered in fixed-size chunks; the size of the buffer is " "chosen using a heuristic trying to determine the underlying device's \"block " @@ -2327,7 +2291,7 @@ msgstr "" "選択され、それが不可能な場合は代わりに :const:`io.DEFAULT_BUFFER_SIZE` が使わ" "れます。多くのシステムでは、バッファサイズは通常 4096 か 8192 バイト長です。" -#: ../../library/functions.rst:1237 +#: ../../library/functions.rst:1242 msgid "" "\"Interactive\" text files (files for which :meth:`~io.IOBase.isatty` " "returns ``True``) use line buffering. Other text files use the policy " @@ -2337,7 +2301,7 @@ msgstr "" "ファイル) は行バッファリングを使用します。 その他のテキストファイルは、上で説" "明したバイナリファイル用の方針を使用します。" -#: ../../library/functions.rst:1241 +#: ../../library/functions.rst:1246 msgid "" "*encoding* is the name of the encoding used to decode or encode the file. " "This should only be used in text mode. The default encoding is platform " @@ -2352,7 +2316,7 @@ msgstr "" "しくは :mod:`codecs` モジュール内のサポートしているエンコーディングのリストを" "参照してください。" -#: ../../library/functions.rst:1247 +#: ../../library/functions.rst:1252 msgid "" "*errors* is an optional string that specifies how encoding and decoding " "errors are to be handled—this cannot be used in binary mode. A variety of " @@ -2366,7 +2330,7 @@ msgstr "" "`codecs.register_error` に登録されているエラー処理の名前も使用可能です。標準" "のエラーハンドラの名前には、以下のようなものがあります:" -#: ../../library/functions.rst:1255 +#: ../../library/functions.rst:1260 msgid "" "``'strict'`` to raise a :exc:`ValueError` exception if there is an encoding " "error. The default value of ``None`` has the same effect." @@ -2374,7 +2338,7 @@ msgstr "" "``'strict'`` はエンコーディングエラーがあると例外 :exc:`ValueError` を発生さ" "せます。デフォルト値である ``None`` も同じ効果です。" -#: ../../library/functions.rst:1259 +#: ../../library/functions.rst:1264 msgid "" "``'ignore'`` ignores errors. Note that ignoring encoding errors can lead to " "data loss." @@ -2382,7 +2346,7 @@ msgstr "" "``'ignore'`` はエラーを無視します。エンコーディングエラーを無視することで、" "データが失われる可能性があることに注意してください。" -#: ../../library/functions.rst:1262 +#: ../../library/functions.rst:1267 msgid "" "``'replace'`` causes a replacement marker (such as ``'?'``) to be inserted " "where there is malformed data." @@ -2390,7 +2354,7 @@ msgstr "" "``'replace'`` は、不正な形式のデータが存在した場所に(``'?'`` のような) 置換" "マーカーを挿入します。" -#: ../../library/functions.rst:1265 +#: ../../library/functions.rst:1270 msgid "" "``'surrogateescape'`` will represent any incorrect bytes as low surrogate " "code units ranging from U+DC80 to U+DCFF. These surrogate code units will " @@ -2404,7 +2368,7 @@ msgstr "" "ドユニットは元と同じバイト列に変換されます。これはエンコーディングが不明な" "ファイルを処理するのに便利です。" -#: ../../library/functions.rst:1272 +#: ../../library/functions.rst:1277 msgid "" "``'xmlcharrefreplace'`` is only supported when writing to a file. Characters " "not supported by the encoding are replaced with the appropriate XML " @@ -2414,7 +2378,7 @@ msgstr "" "ンコーディングでサポートされない文字は、:samp:`&#{nnn};` 形式の適切な XML 文" "字参照で置換されます。" -#: ../../library/functions.rst:1276 +#: ../../library/functions.rst:1281 msgid "" "``'backslashreplace'`` replaces malformed data by Python's backslashed " "escape sequences." @@ -2422,7 +2386,7 @@ msgstr "" "``'backslashreplace'`` は不正なデータを Python のバックスラッシュ付きのエス" "ケープシーケンスで置換します。" -#: ../../library/functions.rst:1279 +#: ../../library/functions.rst:1284 msgid "" "``'namereplace'`` (also only supported when writing) replaces unsupported " "characters with ``\\N{...}`` escape sequences." @@ -2430,7 +2394,7 @@ msgstr "" "``'namereplace'`` (書き込み時のみサポートされています) はサポートされていない" "文字を ``\\N{...}`` エスケープシーケンスで置換します。" -#: ../../library/functions.rst:1287 +#: ../../library/functions.rst:1292 msgid "" "*newline* determines how to parse newline characters from the stream. It can " "be ``None``, ``''``, ``'\\n'``, ``'\\r'``, and ``'\\r\\n'``. It works as " @@ -2440,7 +2404,7 @@ msgstr "" "ます。 ``None``, ``''``, ``'\\n'``, ``'\\r'``, または ``'\\r\\n'`` のいずれか" "を指定できます。これは以下のように動作します:" -#: ../../library/functions.rst:1291 +#: ../../library/functions.rst:1296 msgid "" "When reading input from the stream, if *newline* is ``None``, universal " "newlines mode is enabled. Lines in the input can end in ``'\\n'``, " @@ -2457,7 +2421,7 @@ msgstr "" "び出し元に返されます。その他の正当な値の場合、入力行は与えられた文字列でのみ" "終わり、行末は変換されずに呼び出し元に返されます。" -#: ../../library/functions.rst:1299 +#: ../../library/functions.rst:1304 msgid "" "When writing output to the stream, if *newline* is ``None``, any ``'\\n'`` " "characters written are translated to the system default line separator, :" @@ -2471,7 +2435,7 @@ msgstr "" "*newline* がその他の正当な値の場合、全ての ``'\\n'`` 文字は与えられた文字列に" "変換されます。" -#: ../../library/functions.rst:1305 +#: ../../library/functions.rst:1310 msgid "" "If *closefd* is ``False`` and a file descriptor rather than a filename was " "given, the underlying file descriptor will be kept open when the file is " @@ -2484,7 +2448,7 @@ msgstr "" "りません。\n" "そうでない場合エラーが送出されます。" -#: ../../library/functions.rst:1310 +#: ../../library/functions.rst:1315 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 " @@ -2498,11 +2462,11 @@ msgstr "" "さなければなりません。 (:mod:`os.open` を *opener* として渡すと、``None`` を" "渡したのと同様の機能になります)。" -#: ../../library/functions.rst:1316 +#: ../../library/functions.rst:1321 msgid "The newly created file is :ref:`non-inheritable `." msgstr "新たに作成されたファイルは :ref:`継承不可 ` です。" -#: ../../library/functions.rst:1318 +#: ../../library/functions.rst:1323 msgid "" "The following example uses the :ref:`dir_fd ` parameter of the :func:" "`os.open` function to open a file relative to a given directory::" @@ -2510,7 +2474,7 @@ msgstr "" "次の例は :func:`os.open` 関数の :ref:`dir_fd ` 引数を使い、与えられた" "ディレクトリからの相対パスで指定されたファイルを開きます::" -#: ../../library/functions.rst:1331 +#: ../../library/functions.rst:1336 msgid "" "The type of :term:`file object` returned by the :func:`open` function " "depends on the mode. When :func:`open` is used to open a file in a text " @@ -2538,7 +2502,7 @@ msgstr "" "バッファリングが無効なときはrawストリーム、すなわち :class:`io.RawIOBase` の" "サブクラスである :class:`io.FileIO` を返します。" -#: ../../library/functions.rst:1352 +#: ../../library/functions.rst:1357 msgid "" "See also the file handling modules, such as :mod:`fileinput`, :mod:`io` " "(where :func:`open` is declared), :mod:`os`, :mod:`os.path`, :mod:" @@ -2548,7 +2512,7 @@ msgstr "" "`os` 、 :mod:`os.path` 、 :mod:`tempfile` 、 :mod:`shutil` などの、ファイル操" "作モジュールも参照してください。" -#: ../../library/functions.rst:1356 +#: ../../library/functions.rst:1361 msgid "" "Raises an :ref:`auditing event ` ``open`` with arguments ``file``, " "``mode``, ``flags``." @@ -2556,7 +2520,7 @@ msgstr "" "引数 ``file``, ``mode``, ``flags`` を指定して :ref:`監査イベント ` " "``open`` を送出します。 " -#: ../../library/functions.rst:1358 +#: ../../library/functions.rst:1363 msgid "" "The ``mode`` and ``flags`` arguments may have been modified or inferred from " "the original call." @@ -2564,21 +2528,21 @@ msgstr "" "``mode`` と ``flags`` の2つの引数は呼び出し時の値から修正されたり、推量により" "設定されたりする可能性があります。" -#: ../../library/functions.rst:1363 +#: ../../library/functions.rst:1368 msgid "The *opener* parameter was added." msgstr "*opener* 引数を追加しました。" -#: ../../library/functions.rst:1364 +#: ../../library/functions.rst:1369 msgid "The ``'x'`` mode was added." msgstr "``'x'`` モードを追加しました。" -#: ../../library/functions.rst:1365 +#: ../../library/functions.rst:1370 msgid ":exc:`IOError` used to be raised, it is now an alias of :exc:`OSError`." msgstr "" "以前は :exc:`IOError` が送出されました; それは現在 :exc:`OSError` のエイリア" "スです。" -#: ../../library/functions.rst:1366 +#: ../../library/functions.rst:1371 msgid "" ":exc:`FileExistsError` is now raised if the file opened in exclusive " "creation mode (``'x'``) already exists." @@ -2586,11 +2550,11 @@ msgstr "" "既存のファイルを 排他的生成モード(``'x'``)で開いた場合、 :exc:" "`FileExistsError` を送出するようになりました。" -#: ../../library/functions.rst:1371 +#: ../../library/functions.rst:1376 msgid "The file is now non-inheritable." msgstr "ファイルが継承不可になりました。" -#: ../../library/functions.rst:1375 +#: ../../library/functions.rst:1380 msgid "" "If the system call is interrupted and the signal handler does not raise an " "exception, the function now retries the system call instead of raising an :" @@ -2600,16 +2564,16 @@ msgstr "" "は :exc:`InterruptedError` 例外を送出する代わりにシステムコールを再試行するよ" "うになりました (論拠については :pep:`475` を参照してください)。" -#: ../../library/functions.rst:1378 +#: ../../library/functions.rst:1383 msgid "The ``'namereplace'`` error handler was added." msgstr "``'namereplace'`` エラーハンドラが追加されました。" -#: ../../library/functions.rst:1382 +#: ../../library/functions.rst:1387 msgid "Support added to accept objects implementing :class:`os.PathLike`." msgstr "" ":class:`os.PathLike` を実装したオブジェクトを受け入れるようになりました。" -#: ../../library/functions.rst:1383 +#: ../../library/functions.rst:1388 msgid "" "On Windows, opening a console buffer may return a subclass of :class:`io." "RawIOBase` other than :class:`io.FileIO`." @@ -2617,11 +2581,11 @@ msgstr "" "Windowsでは、コンソールバッファのオープンは、:class:`io.FileIO` ではなく、:" "class:`io.RawIOBase` のサブクラスを返すでしょう。" -#: ../../library/functions.rst:1386 +#: ../../library/functions.rst:1391 msgid "The ``'U'`` mode has been removed." msgstr "``'U'`` モードは削除されました。" -#: ../../library/functions.rst:1391 +#: ../../library/functions.rst:1396 msgid "" "Given a string representing one Unicode character, return an integer " "representing the Unicode code point of that character. For example, " @@ -2633,7 +2597,7 @@ msgstr "" "``ord('€')`` (ユーロ記号) は ``8364`` を返します。これは :func:`chr` の逆で" "す。" -#: ../../library/functions.rst:1399 +#: ../../library/functions.rst:1404 msgid "" "Return *base* to the power *exp*; if *mod* is present, return *base* to the " "power *exp*, modulo *mod* (computed more efficiently than ``pow(base, exp) % " @@ -2645,7 +2609,7 @@ msgstr "" "二引数の形式 ``pow(base, exp)`` は、冪乗演算子を使った ``base**exp`` と等価で" "す。" -#: ../../library/functions.rst:1404 +#: ../../library/functions.rst:1409 msgid "" "The arguments must have numeric types. With mixed operand types, the " "coercion rules for binary arithmetic operators apply. For :class:`int` " @@ -2666,7 +2630,7 @@ msgstr "" "合、複素数の結果が返されます。例えば、 ``pow(-9, 0.5)`` は ``3j`` に近い値を" "返します。" -#: ../../library/functions.rst:1414 +#: ../../library/functions.rst:1419 msgid "" "For :class:`int` operands *base* and *exp*, if *mod* is present, *mod* must " "also be of integer type and *mod* must be nonzero. If *mod* is present and " @@ -2681,11 +2645,11 @@ msgstr "" "ラ逆数 (*base* と *inv_base* の積を *mod* で割った余りが1になるような数) とし" "て、 ``pow(inv_base, -exp, mod)`` が返されます。" -#: ../../library/functions.rst:1420 +#: ../../library/functions.rst:1425 msgid "Here's an example of computing an inverse for ``38`` modulo ``97``::" msgstr "以下は ``97`` を法とする ``38`` のモジュラ逆数の計算例です::" -#: ../../library/functions.rst:1427 +#: ../../library/functions.rst:1432 msgid "" "For :class:`int` operands, the three-argument form of ``pow`` now allows the " "second argument to be negative, permitting computation of modular inverses." @@ -2694,14 +2658,14 @@ msgstr "" "ることができるようになりました。これによりモジュラ逆数の計算が可能になりま" "す。" -#: ../../library/functions.rst:1432 +#: ../../library/functions.rst:1437 msgid "" "Allow keyword arguments. Formerly, only positional arguments were supported." msgstr "" "キーワード引数を取ることができるようになりました。以前は位置引数だけがサポー" "トされていました。" -#: ../../library/functions.rst:1439 +#: ../../library/functions.rst:1444 msgid "" "Print *objects* to the text stream *file*, separated by *sep* and followed " "by *end*. *sep*, *end*, *file*, and *flush*, if present, must be given as " @@ -2711,7 +2675,7 @@ msgstr "" "*end* を表示します。*sep* 、 *end* 、 *file* 、 *flush* を与える場合、キー" "ワード引数として与える必要があります。" -#: ../../library/functions.rst:1443 +#: ../../library/functions.rst:1448 msgid "" "All non-keyword arguments are converted to strings like :func:`str` does and " "written to the stream, separated by *sep* and followed by *end*. Both *sep* " @@ -2725,7 +2689,7 @@ msgstr "" "ると、デフォルトの値が使われます。 *objects* が与えられなければ、 :func:" "`print` は *end* だけを書き出します。" -#: ../../library/functions.rst:1449 +#: ../../library/functions.rst:1454 msgid "" "The *file* argument must be an object with a ``write(string)`` method; if it " "is not present or ``None``, :data:`sys.stdout` will be used. Since printed " @@ -2738,7 +2702,7 @@ msgstr "" "イナリモードファイルオブジェクトには使用できません。代わりに ``file." "write(...)`` を使ってください。" -#: ../../library/functions.rst:1454 +#: ../../library/functions.rst:1459 msgid "" "Output buffering is usually determined by *file*. However, if *flush* is " "true, the stream is forcibly flushed." @@ -2746,15 +2710,15 @@ msgstr "" "出力がバッファ化されるかどうかは通常 *file* で決まりますが、*flush* キーワー" "ド引数が真ならストリームは強制的にフラッシュされます。" -#: ../../library/functions.rst:1458 +#: ../../library/functions.rst:1463 msgid "Added the *flush* keyword argument." msgstr "キーワード引数 *flush* が追加されました。" -#: ../../library/functions.rst:1464 +#: ../../library/functions.rst:1469 msgid "Return a property attribute." msgstr "property 属性を返します。" -#: ../../library/functions.rst:1466 +#: ../../library/functions.rst:1471 msgid "" "*fget* is a function for getting an attribute value. *fset* is a function " "for setting an attribute value. *fdel* is a function for deleting an " @@ -2764,11 +2728,11 @@ msgstr "" "です。*fdel* は属性値を削除するための関数です。*doc* は属性の docstring を作" "成します。" -#: ../../library/functions.rst:1470 +#: ../../library/functions.rst:1475 msgid "A typical use is to define a managed attribute ``x``::" msgstr "典型的な使用法は、属性 ``x`` の処理の定義です::" -#: ../../library/functions.rst:1487 +#: ../../library/functions.rst:1492 msgid "" "If *c* is an instance of *C*, ``c.x`` will invoke the getter, ``c.x = " "value`` will invoke the setter, and ``del c.x`` the deleter." @@ -2776,7 +2740,7 @@ msgstr "" "*c* が *C* のインスタンスならば、``c.x`` は getter を呼び出し、``c.x = " "value`` は setter を、``del c.x`` は deleter を呼び出します。" -#: ../../library/functions.rst:1490 +#: ../../library/functions.rst:1495 msgid "" "If given, *doc* will be the docstring of the property attribute. Otherwise, " "the property will copy *fget*'s docstring (if it exists). This makes it " @@ -2789,29 +2753,22 @@ msgstr "" "そのため :func:`property` を :term:`デコレータ ` として使えば、読" "み出し専用 property を作るのは容易です::" -#: ../../library/functions.rst:1503 +#: ../../library/functions.rst:1508 msgid "" -"The ``@property`` decorator turns the :meth:`voltage` method into a " +"The ``@property`` decorator turns the :meth:`!voltage` method into a " "\"getter\" for a read-only attribute with the same name, and it sets the " "docstring for *voltage* to \"Get the current voltage.\"" msgstr "" -"``@property`` デコレータは :meth:`voltage` を同じ名前のまま 読み出し専用属性" -"の \"getter\" にし、*voltage* のドキュメント文字列を \"Get the current " -"voltage.\" に設定します。" -#: ../../library/functions.rst:1507 +#: ../../library/functions.rst:1516 msgid "" -"A property object has :attr:`~property.getter`, :attr:`~property.setter`, " -"and :attr:`~property.deleter` methods usable as decorators that create a " -"copy of the property with the corresponding accessor function set to the " -"decorated function. This is best explained with an example::" +"A property object has ``getter``, ``setter``, and ``deleter`` methods usable " +"as decorators that create a copy of the property with the corresponding " +"accessor function set to the decorated function. This is best explained " +"with an example:" msgstr "" -"property オブジェクトは :attr:`~property.getter`, :attr:`~property.setter`, :" -"attr:`~property.deleter` メソッドを持っています。これらのメソッドをデコレータ" -"として使うと、対応するアクセサ関数がデコレートされた関数に設定された、 " -"property のコピーを作成できます。これを一番分かりやすく説明する例があります::" -#: ../../library/functions.rst:1529 +#: ../../library/functions.rst:1540 msgid "" "This code is exactly equivalent to the first example. Be sure to give the " "additional functions the same name as the original property (``x`` in this " @@ -2820,7 +2777,7 @@ msgstr "" "このコードは最初の例と等価です。追加の関数には、必ず元の property と同じ名前 " "(この例では ``x``) を与えて下さい。" -#: ../../library/functions.rst:1533 +#: ../../library/functions.rst:1544 msgid "" "The returned property object also has the attributes ``fget``, ``fset``, and " "``fdel`` corresponding to the constructor arguments." @@ -2828,11 +2785,11 @@ msgstr "" "返される property オブジェクトも、コンストラクタの引数に対応した ``fget``, " "``fset``, および ``fdel`` 属性を持ちます。" -#: ../../library/functions.rst:1536 +#: ../../library/functions.rst:1547 msgid "The docstrings of property objects are now writeable." msgstr "属性オブジェクトのドックストリングが書き込み可能になりました。" -#: ../../library/functions.rst:1545 +#: ../../library/functions.rst:1556 msgid "" "Rather than being a function, :class:`range` is actually an immutable " "sequence type, as documented in :ref:`typesseq-range` and :ref:`typesseq`." @@ -2840,7 +2797,7 @@ msgstr "" ":class:`range` は、実際には関数ではなくイミュータブルなシーケンス型で、 :ref:" "`typesseq-range` と :ref:`typesseq` にドキュメント化されています。" -#: ../../library/functions.rst:1551 +#: ../../library/functions.rst:1562 msgid "" "Return a string containing a printable representation of an object. For " "many types, this function makes an attempt to return a string that would " @@ -2848,32 +2805,20 @@ msgid "" "the representation is a string enclosed in angle brackets that contains the " "name of the type of the object together with additional information often " "including the name and address of the object. A class can control what this " -"function returns for its instances by defining a :meth:`__repr__` method. " -"If :func:`sys.displayhook` is not accessible, this function will raise :exc:" -"`RuntimeError`." -msgstr "" -"オブジェクトの印字可能な表現を含む文字列を返します。この関数は多くの型につい" -"て、 :func:`eval` に渡されたときと同じ値を持つようなオブジェクトを表す文字列" -"を生成しようとします。そうでない場合は、山括弧に囲まれたオブジェクトの型の名" -"前と追加の情報 (大抵の場合はオブジェクトの名前とアドレスを含みます) を返しま" -"す。クラスは、 :meth:`__repr__` メソッドを定義することで、この関数によりその" -"クラスのインスタンスが返すものを制御することができます。:func:`sys." -"displayhook` にアクセスできない場合、この関数は :exc:`RuntimeError` を送出し" -"ます。" +"function returns for its instances by defining a :meth:`~object.__repr__` " +"method. If :func:`sys.displayhook` is not accessible, this function will " +"raise :exc:`RuntimeError`." +msgstr "" -#: ../../library/functions.rst:1564 +#: ../../library/functions.rst:1576 msgid "" "Return a reverse :term:`iterator`. *seq* must be an object which has a :" -"meth:`__reversed__` method or supports the sequence protocol (the :meth:" -"`__len__` method and the :meth:`~object.__getitem__` method with integer " -"arguments starting at ``0``)." +"meth:`~object.__reversed__` method or supports the sequence protocol (the :" +"meth:`~object.__len__` method and the :meth:`~object.__getitem__` method " +"with integer arguments starting at ``0``)." msgstr "" -"要素を逆順に取り出すイテレータ (reverse :term:`iterator`) を返します。 *seq* " -"は :meth:`__reversed__` メソッドを持つか、シーケンス型プロトコル (:meth:" -"`__len__` メソッド、および、 ``0`` 以上の整数を引数とする :meth:`~object." -"__getitem__` メソッド) をサポートするオブジェクトでなければなりません。" -#: ../../library/functions.rst:1572 +#: ../../library/functions.rst:1584 msgid "" "Return *number* rounded to *ndigits* precision after the decimal point. If " "*ndigits* is omitted or is ``None``, it returns the nearest integer to its " @@ -2882,7 +2827,7 @@ msgstr "" "*number* を小数点以下 *ndigits* 桁の精度で丸めた値を返します。*ndigits* が省" "略されたり、``None`` だった場合、入力値に最も近い整数を返します。" -#: ../../library/functions.rst:1576 +#: ../../library/functions.rst:1588 msgid "" "For the built-in types supporting :func:`round`, values are rounded to the " "closest multiple of 10 to the power minus *ndigits*; if two multiples are " @@ -2900,7 +2845,7 @@ msgstr "" "返り値は *ndigits* が指定されていないか ``None`` の場合は整数、そうでなければ" "返り値は *number* と同じ型です。" -#: ../../library/functions.rst:1585 +#: ../../library/functions.rst:1597 msgid "" "For a general Python object ``number``, ``round`` delegates to ``number." "__round__``." @@ -2908,7 +2853,7 @@ msgstr "" "一般的な Python オブジェクト ``number`` に対して、``round`` は処理を `number." "__round__` に移譲します。" -#: ../../library/functions.rst:1590 +#: ../../library/functions.rst:1602 msgid "" "The behavior of :func:`round` for floats can be surprising: for example, " "``round(2.675, 2)`` gives ``2.67`` instead of the expected ``2.68``. This is " @@ -2921,7 +2866,7 @@ msgstr "" "これはバグではありません: これはほとんどの小数が浮動小数点数で正確に表せない" "ことの結果です。詳しくは :ref:`tut-fp-issues` を参照してください。" -#: ../../library/functions.rst:1602 +#: ../../library/functions.rst:1614 msgid "" "Return a new :class:`set` object, optionally with elements taken from " "*iterable*. ``set`` is a built-in class. See :class:`set` and :ref:`types-" @@ -2931,7 +2876,7 @@ msgstr "" "ます。 ``set`` は組み込みクラスです。このクラスについて詳しい情報は :class:" "`set` や :ref:`types-set` を参照してください。" -#: ../../library/functions.rst:1606 +#: ../../library/functions.rst:1618 msgid "" "For other containers see the built-in :class:`frozenset`, :class:`list`, :" "class:`tuple`, and :class:`dict` classes, as well as the :mod:`collections` " @@ -2941,7 +2886,7 @@ msgstr "" "`frozenset` 、 :class:`list` 、 :class:`tuple` 、 :class:`dict` クラスを参照" "してください。" -#: ../../library/functions.rst:1613 +#: ../../library/functions.rst:1625 msgid "" "This is the counterpart of :func:`getattr`. The arguments are an object, a " "string, and an arbitrary value. The string may name an existing attribute " @@ -2954,7 +2899,7 @@ msgstr "" "ブジェクトが許せば、値を属性に関連付けます。例えば、 ``setattr(x, 'foobar', " "123)`` は ``x.foobar = 123`` と等価です。" -#: ../../library/functions.rst:1619 +#: ../../library/functions.rst:1631 msgid "" "*name* need not be a Python identifier as defined in :ref:`identifiers` " "unless the object chooses to enforce that, for example in a custom :meth:" @@ -2968,7 +2913,7 @@ msgstr "" "ドットを使った属性へのアクセスはできませんが、 :func:`getattr` などを通じてア" "クセス可能です。" -#: ../../library/functions.rst:1627 +#: ../../library/functions.rst:1639 msgid "" "Since :ref:`private name mangling ` happens at " "compilation time, one must manually mangle a private attribute's (attributes " @@ -2979,30 +2924,29 @@ msgstr "" "名前を持つ属性) の値を :func:`setattr` でセットするためには、属性名を手動でマ" "ングリングする必要があります。" -#: ../../library/functions.rst:1636 +#: ../../library/functions.rst:1648 msgid "" "Return a :term:`slice` object representing the set of indices specified by " "``range(start, stop, step)``. The *start* and *step* arguments default to " -"``None``. Slice objects have read-only data attributes :attr:`~slice." -"start`, :attr:`~slice.stop`, and :attr:`~slice.step` which merely return the " -"argument values (or their default). They have no other explicit " -"functionality; however, they are used by NumPy and other third-party " -"packages. Slice objects are also generated when extended indexing syntax is " -"used. For example: ``a[start:stop:step]`` or ``a[start:stop, i]``. See :" -"func:`itertools.islice` for an alternate version that returns an iterator." -msgstr "" -"``range(start, stop, step)`` で指定されるインデクスの集合を表す、 :term:`スラ" -"イス ` オブジェクトを返します。引数 *start* および *step* はデフォルト" -"では ``None`` です。スライスオブジェクトは読み出し専用の属性 :attr:`~slice." -"start`、:attr:`~slice.stop` および :attr:`~slice.step` を持ち、これらは単に引" -"数で使われた 値 (またはデフォルト値) を返します。これらの値には、その他のはっ" -"きりと した機能はありません。しかしながら、これらの値は NumPy および、その他" -"のサードパーティ製パッケージで利用されています。スライスオブジェクトは拡張さ" -"れたインデクス指定構文が使われる際にも生成されます。例えば ``a[start:stop:" -"step]`` や ``a[start:stop, i]`` です。この関数の代替となるイテレータを返す関" -"数、:func:`itertools.islice` も参照してください。" - -#: ../../library/functions.rst:1646 +"``None``." +msgstr "" + +#: ../../library/functions.rst:1656 +msgid "" +"Slice objects have read-only data attributes :attr:`!start`, :attr:`!stop`, " +"and :attr:`!step` which merely return the argument values (or their " +"default). They have no other explicit functionality; however, they are used " +"by NumPy and other third-party packages." +msgstr "" + +#: ../../library/functions.rst:1661 +msgid "" +"Slice objects are also generated when extended indexing syntax is used. For " +"example: ``a[start:stop:step]`` or ``a[start:stop, i]``. See :func:" +"`itertools.islice` for an alternate version that returns an :term:`iterator`." +msgstr "" + +#: ../../library/functions.rst:1666 msgid "" "Slice objects are now :term:`hashable` (provided :attr:`~slice.start`, :attr:" "`~slice.stop`, and :attr:`~slice.step` are hashable)." @@ -3011,18 +2955,18 @@ msgstr "" "属性 :attr:`~slice.start` 、 :attr:`~slice.stop` 、 :attr:`~slice.step` がす" "べてハッシュ可能である場合に限ります)。" -#: ../../library/functions.rst:1652 +#: ../../library/functions.rst:1672 msgid "Return a new sorted list from the items in *iterable*." msgstr "*iterable* の要素を並べ替えた新たなリストを返します。" -#: ../../library/functions.rst:1654 +#: ../../library/functions.rst:1674 msgid "" "Has two optional arguments which must be specified as keyword arguments." msgstr "" "2 つのオプション引数があり、これらはキーワード引数として指定されなければなり" "ません。" -#: ../../library/functions.rst:1656 +#: ../../library/functions.rst:1676 msgid "" "*key* specifies a function of one argument that is used to extract a " "comparison key from each element in *iterable* (for example, ``key=str." @@ -3032,7 +2976,7 @@ msgstr "" "開するのに使われます (例えば、 ``key=str.lower`` のように指定します)。\n" "デフォルト値は ``None`` です (要素を直接比較します)。" -#: ../../library/functions.rst:1660 +#: ../../library/functions.rst:1680 msgid "" "*reverse* is a boolean value. If set to ``True``, then the list elements " "are sorted as if each comparison were reversed." @@ -3040,7 +2984,7 @@ msgstr "" "*reverse* は真偽値です。 ``True`` がセットされた場合、リストの要素は個々の比" "較が反転したものとして並び替えられます。" -#: ../../library/functions.rst:1663 +#: ../../library/functions.rst:1683 msgid "" "Use :func:`functools.cmp_to_key` to convert an old-style *cmp* function to a " "*key* function." @@ -3048,7 +2992,7 @@ msgstr "" "旧式の *cmp* 関数を *key* 関数に変換するには :func:`functools.cmp_to_key` を" "使用してください。" -#: ../../library/functions.rst:1666 +#: ../../library/functions.rst:1686 msgid "" "The built-in :func:`sorted` function is guaranteed to be stable. A sort is " "stable if it guarantees not to change the relative order of elements that " @@ -3060,7 +3004,7 @@ msgstr "" "でソートを行なうのに役立ちます(例えば部署でソートしてから給与の等級でソート" "する場合)。" -#: ../../library/functions.rst:1671 +#: ../../library/functions.rst:1691 msgid "" "The sort algorithm uses only ``<`` comparisons between items. While " "defining an :meth:`~object.__lt__` method will suffice for sorting, :PEP:`8` " @@ -3080,17 +3024,17 @@ msgstr "" "meth:`~object.__gt__` メソッドを呼び出す可能性のある型混合の比較での混乱を避" "けることにも役立ちます。 " -#: ../../library/functions.rst:1680 +#: ../../library/functions.rst:1700 msgid "" "For sorting examples and a brief sorting tutorial, see :ref:`sortinghowto`." msgstr "" "ソートの例と簡単なチュートリアルは :ref:`sortinghowto` を参照して下さい。" -#: ../../library/functions.rst:1684 +#: ../../library/functions.rst:1704 msgid "Transform a method into a static method." msgstr "メソッドを静的メソッドへ変換します。" -#: ../../library/functions.rst:1686 +#: ../../library/functions.rst:1706 msgid "" "A static method does not receive an implicit first argument. To declare a " "static method, use this idiom::" @@ -3098,7 +3042,7 @@ msgstr "" "静的メソッドは暗黙の第一引数を受け取りません。静的メソッドを宣言するには、こ" "のイディオムを使ってください::" -#: ../../library/functions.rst:1693 +#: ../../library/functions.rst:1713 msgid "" "The ``@staticmethod`` form is a function :term:`decorator` -- see :ref:" "`function` for details." @@ -3106,7 +3050,7 @@ msgstr "" "``@staticmethod`` 形式は関数 :term:`デコレータ ` です。詳しくは :" "ref:`function` を参照してください。" -#: ../../library/functions.rst:1696 +#: ../../library/functions.rst:1716 msgid "" "A static method can be called either on the class (such as ``C.f()``) or on " "an instance (such as ``C().f()``). Moreover, they can be called as regular " @@ -3116,7 +3060,7 @@ msgstr "" "f()`` のように) インスタンスに対して呼び出すこともできます。さらに、 " "(``f()`` のように) 普通の関数として呼び出すこともできます。" -#: ../../library/functions.rst:1700 +#: ../../library/functions.rst:1720 msgid "" "Static methods in Python are similar to those found in Java or C++. Also, " "see :func:`classmethod` for a variant that is useful for creating alternate " @@ -3126,7 +3070,7 @@ msgstr "" "す。クラスコンストラクタの代替を生成するのに役立つ変種、 :func:`classmethod` " "も参照してください。" -#: ../../library/functions.rst:1704 +#: ../../library/functions.rst:1724 msgid "" "Like all decorators, it is also possible to call ``staticmethod`` as a " "regular function and do something with its result. This is needed in some " @@ -3140,11 +3084,11 @@ msgstr "" "ドに自動変換されるのを避けたいケースで必要になります。\n" "そのようなケースでは、このイディオムが使えます::" -#: ../../library/functions.rst:1716 +#: ../../library/functions.rst:1736 msgid "For more information on static methods, see :ref:`types`." msgstr "静的メソッドについて詳しい情報は :ref:`types` を参照してください。" -#: ../../library/functions.rst:1718 +#: ../../library/functions.rst:1738 msgid "" "Static methods now inherit the method attributes (``__module__``, " "``__name__``, ``__qualname__``, ``__doc__`` and ``__annotations__``), have a " @@ -3155,14 +3099,14 @@ msgstr "" "``__wrapped__`` 属性を持つようになりました。さらに、静的メソッドを通常の関数" "として呼び出すことができるようになりました。" -#: ../../library/functions.rst:1733 +#: ../../library/functions.rst:1753 msgid "" "Return a :class:`str` version of *object*. See :func:`str` for details." msgstr "" "*object* の :class:`str` 版を返します。詳細は :func:`str` を参照してくださ" "い。" -#: ../../library/functions.rst:1735 +#: ../../library/functions.rst:1755 msgid "" "``str`` is the built-in string :term:`class`. For general information about " "strings, see :ref:`textseq`." @@ -3170,7 +3114,7 @@ msgstr "" "``str`` は組み込みの文字列 :term:`クラス` です。文字列に関する一般的な" "情報は、:ref:`textseq` を参照してください。" -#: ../../library/functions.rst:1741 +#: ../../library/functions.rst:1761 msgid "" "Sums *start* and the items of an *iterable* from left to right and returns " "the total. The *iterable*'s items are normally numbers, and the start value " @@ -3179,7 +3123,7 @@ msgstr "" "*start* と *iterable* の要素を左から右へ合計し、総和を返します。 *iterable* " "の要素は通常は数値で、start の値は文字列であってはなりません。" -#: ../../library/functions.rst:1745 +#: ../../library/functions.rst:1765 msgid "" "For some use cases, there are good alternatives to :func:`sum`. The " "preferred, fast way to concatenate a sequence of strings is by calling ``''." @@ -3193,13 +3137,13 @@ msgstr "" "てください。一連のイテラブルを連結するには、 :func:`itertools.chain` の使用を" "考えてください。" -#: ../../library/functions.rst:1751 +#: ../../library/functions.rst:1771 msgid "The *start* parameter can be specified as a keyword argument." msgstr "" "*start* パラメータをキーワード引数として指定することができるようになりまし" "た。" -#: ../../library/functions.rst:1754 +#: ../../library/functions.rst:1774 msgid "" "Summation of floats switched to an algorithm that gives higher accuracy on " "most builds." @@ -3207,7 +3151,7 @@ msgstr "" "浮動小数点数の総和を計算するとき、ほとんどの環境でより高精度な結果が得られる" "アルゴリズムを使用するようになりました。" -#: ../../library/functions.rst:1761 +#: ../../library/functions.rst:1781 msgid "" "Return a proxy object that delegates method calls to a parent or sibling " "class of *type*. This is useful for accessing inherited methods that have " @@ -3217,7 +3161,7 @@ msgstr "" "トを返します。これはクラスの中でオーバーライドされた継承メソッドにアクセスす" "るのに便利です。" -#: ../../library/functions.rst:1765 +#: ../../library/functions.rst:1785 msgid "" "The *object_or_type* determines the :term:`method resolution order` to be " "searched. The search starts from the class right after the *type*." @@ -3225,7 +3169,7 @@ msgstr "" "*object_or_type* はメソッドの検索のための :term:`method resolution order` (メ" "ソッド解決順序) を決定します。検索は *type* 直後のクラスから開始します。" -#: ../../library/functions.rst:1769 +#: ../../library/functions.rst:1789 msgid "" "For example, if :attr:`~class.__mro__` of *object_or_type* is ``D -> B -> C -" "> A -> object`` and the value of *type* is ``B``, then :func:`super` " @@ -3235,7 +3179,7 @@ msgstr "" "> object`` であり、 *type* の値が ``B`` だとすると、 :func:`super` は ``C -> " "A -> object`` の順番でメソッドを検索します。" -#: ../../library/functions.rst:1773 +#: ../../library/functions.rst:1793 msgid "" "The :attr:`~class.__mro__` attribute of the *object_or_type* lists the " "method resolution search order used by both :func:`getattr` and :func:" @@ -3246,7 +3190,7 @@ msgstr "" "`super` の 両方で使われる、メソッド解決の探索順序を列記します。 この属性は動" "的で、継承の階層構造が更新されれば、随時変化します。" -#: ../../library/functions.rst:1778 +#: ../../library/functions.rst:1798 msgid "" "If the second argument is omitted, the super object returned is unbound. If " "the second argument is an object, ``isinstance(obj, type)`` must be true. " @@ -3258,7 +3202,7 @@ msgstr "" "ん。第 2 引数が型であれば、 ``issubclass(type2, type)`` は真でなければなりま" "せん (これはクラスメソッドに役に立つでしょう)。" -#: ../../library/functions.rst:1783 +#: ../../library/functions.rst:1803 msgid "" "There are two typical use cases for *super*. In a class hierarchy with " "single inheritance, *super* can be used to refer to parent classes without " @@ -3270,7 +3214,7 @@ msgstr "" "メンテナンスしやすくなります。この用途は他のプログラミング言語で見られる " "*super* の用途によく似ています。" -#: ../../library/functions.rst:1788 +#: ../../library/functions.rst:1808 msgid "" "The second use case is to support cooperative multiple inheritance in a " "dynamic execution environment. This use case is unique to Python and is not " @@ -3291,12 +3235,12 @@ msgstr "" "決定されること、呼び出し順序はクラス階層構造の変化に順応すること、そして呼び" "出し順序が実行時まで未知の兄弟クラスが含まれる場合があることです)。" -#: ../../library/functions.rst:1798 +#: ../../library/functions.rst:1818 msgid "For both use cases, a typical superclass call looks like this::" msgstr "" "両方の用途において、典型的なスーパークラスの呼び出しは次のようになります::" -#: ../../library/functions.rst:1805 +#: ../../library/functions.rst:1825 msgid "" "In addition to method lookups, :func:`super` also works for attribute " "lookups. One possible use case for this is calling :term:`descriptors " @@ -3306,23 +3250,17 @@ msgstr "" "同様に動作します。考えうる用途のひとつは親クラスや兄弟クラスの :term:" "`descriptors ` (デスクリプタ) を呼び出すことです。" -#: ../../library/functions.rst:1809 +#: ../../library/functions.rst:1829 msgid "" "Note that :func:`super` is implemented as part of the binding process for " "explicit dotted attribute lookups such as ``super().__getitem__(name)``. It " -"does so by implementing its own :meth:`__getattribute__` method for " +"does so by implementing its own :meth:`~object.__getattribute__` method for " "searching classes in a predictable order that supports cooperative multiple " "inheritance. Accordingly, :func:`super` is undefined for implicit lookups " "using statements or operators such as ``super()[name]``." msgstr "" -"なお、:func:`super` は ``super().__getitem__(name)`` のような明示的なドット表" -"記属性探索の束縛処理の一部として実装されています。これは、 :meth:" -"`__getattribute__` メソッドを予測可能な順序でクラスを検索するように実装し、協" -"調的な多重継承をサポートすることで実現されています。従って、 :func:`super` は" -"文や ``super()[name]`` のような演算子を使った暗黙の探索向けには定義されていま" -"せん。" -#: ../../library/functions.rst:1816 +#: ../../library/functions.rst:1837 msgid "" "Also note that, aside from the zero argument form, :func:`super` is not " "limited to use inside methods. The two argument form specifies the " @@ -3337,7 +3275,7 @@ msgstr "" "クラスを取り出すのに必要な詳細を、通常の方法で現在のインスタンスにアクセスす" "るようにコンパイラが埋めるのではたらきます。" -#: ../../library/functions.rst:1823 +#: ../../library/functions.rst:1844 msgid "" "For practical suggestions on how to design cooperative classes using :func:" "`super`, see `guide to using super() `_ を参照してください。" -#: ../../library/functions.rst:1833 +#: ../../library/functions.rst:1854 msgid "" "Rather than being a function, :class:`tuple` is actually an immutable " "sequence type, as documented in :ref:`typesseq-tuple` and :ref:`typesseq`." @@ -3355,7 +3293,7 @@ msgstr "" ":class:`tuple` は、実際は関数ではなくイミュータブルなシーケンス型で、:ref:" "`typesseq-tuple` と :ref:`typesseq` にドキュメント化されています。" -#: ../../library/functions.rst:1842 +#: ../../library/functions.rst:1863 msgid "" "With one argument, return the type of an *object*. The return value is a " "type object and generally the same object as returned by :attr:`object." @@ -3365,7 +3303,7 @@ msgstr "" "に :attr:`object.__class__ ` によって返されるのと同じオブ" "ジェクトです。" -#: ../../library/functions.rst:1846 +#: ../../library/functions.rst:1867 msgid "" "The :func:`isinstance` built-in function is recommended for testing the type " "of an object, because it takes subclasses into account." @@ -3373,7 +3311,7 @@ msgstr "" "オブジェクトの型の判定には、 :func:`isinstance` 組み込み関数を使うことが推奨" "されます。これはサブクラスを考慮するからです。" -#: ../../library/functions.rst:1850 +#: ../../library/functions.rst:1871 msgid "" "With three arguments, return a new type object. This is essentially a " "dynamic form of the :keyword:`class` statement. The *name* string is the " @@ -3394,11 +3332,11 @@ msgstr "" "されることがあります。以下の2つの文は同じ :class:`type` オブジェクトを生成し" "ます:" -#: ../../library/functions.rst:1865 +#: ../../library/functions.rst:1886 msgid "See also :ref:`bltin-type-objects`." msgstr ":ref:`bltin-type-objects` も参照してください。" -#: ../../library/functions.rst:1867 +#: ../../library/functions.rst:1888 msgid "" "Keyword arguments provided to the three argument form are passed to the " "appropriate metaclass machinery (usually :meth:`~object.__init_subclass__`) " @@ -3409,11 +3347,11 @@ msgstr "" "定義におけるキーワード引数と同様に、適切なメタクラスの機構 (通常は :meth:" "`~object.__init_subclass__`) に渡されます。" -#: ../../library/functions.rst:1872 +#: ../../library/functions.rst:1893 msgid "See also :ref:`class-customization`." msgstr ":ref:`class-customization` も参照してください。" -#: ../../library/functions.rst:1874 +#: ../../library/functions.rst:1895 msgid "" "Subclasses of :class:`type` which don't override ``type.__new__`` may no " "longer use the one-argument form to get the type of an object." @@ -3421,7 +3359,7 @@ msgstr "" "``type.__new__`` をオーバーライドしていない :class:`type` のサブクラスは、オ" "ブジェクトの型を得るのに1引数形式を利用することができません。" -#: ../../library/functions.rst:1881 +#: ../../library/functions.rst:1902 msgid "" "Return the :attr:`~object.__dict__` attribute for a module, class, instance, " "or any other object with a :attr:`~object.__dict__` attribute." @@ -3430,7 +3368,7 @@ msgstr "" "__dict__` 属性を持つオブジェクトの、 :attr:`~object.__dict__` 属性を返しま" "す。" -#: ../../library/functions.rst:1884 +#: ../../library/functions.rst:1905 msgid "" "Objects such as modules and instances have an updateable :attr:`~object." "__dict__` attribute; however, other objects may have write restrictions on " @@ -3443,7 +3381,7 @@ msgstr "" "制限がある例としては、辞書を直接更新されることを防ぐために :class:`types." "MappingProxyType` を使っているクラスがあります。" -#: ../../library/functions.rst:1889 +#: ../../library/functions.rst:1910 msgid "" "Without an argument, :func:`vars` acts like :func:`locals`. Note, the " "locals dictionary is only useful for reads since updates to the locals " @@ -3453,7 +3391,7 @@ msgstr "" "辞書 locals への更新は無視されるため、辞書 locals は読み出し時のみ有用である" "ことに注意してください。" -#: ../../library/functions.rst:1893 +#: ../../library/functions.rst:1914 msgid "" "A :exc:`TypeError` exception is raised if an object is specified but it " "doesn't have a :attr:`~object.__dict__` attribute (for example, if its class " @@ -3463,7 +3401,7 @@ msgstr "" "のクラスが :attr:`~object.__slots__` 属性を定義している場合)、 :exc:" "`TypeError` 例外が送出されます。" -#: ../../library/functions.rst:1899 +#: ../../library/functions.rst:1920 msgid "" "Iterate over several iterables in parallel, producing tuples with an item " "from each one." @@ -3471,11 +3409,11 @@ msgstr "" "複数のイテラブルを並行に反復処理し、各イテラブルの要素からなるタプルを生成し" "ます。" -#: ../../library/functions.rst:1902 +#: ../../library/functions.rst:1923 msgid "Example::" msgstr "以下はプログラム例です::" -#: ../../library/functions.rst:1911 +#: ../../library/functions.rst:1932 msgid "" "More formally: :func:`zip` returns an iterator of tuples, where the *i*-th " "tuple contains the *i*-th element from each of the argument iterables." @@ -3483,7 +3421,7 @@ msgstr "" "より正式な定義: :func:`zip` は、 *i* 番目のタプルが 引数に与えた各イテラブル" "の *i* 番目の要素を含むような、タプルのイテレータを返します。" -#: ../../library/functions.rst:1914 +#: ../../library/functions.rst:1935 msgid "" "Another way to think of :func:`zip` is that it turns rows into columns, and " "columns into rows. This is similar to `transposing a matrix `_ " "とよく似ています。" -#: ../../library/functions.rst:1918 +#: ../../library/functions.rst:1939 msgid "" ":func:`zip` is lazy: The elements won't be processed until the iterable is " "iterated on, e.g. by a :keyword:`!for` loop or by wrapping in a :class:" @@ -3503,7 +3441,7 @@ msgstr "" "り、 :class:`list` でラップされたりするなどして反復処理されるまで、要素が実際" "に処理されることはありません。" -#: ../../library/functions.rst:1922 +#: ../../library/functions.rst:1943 msgid "" "One thing to consider is that the iterables passed to :func:`zip` could have " "different lengths; sometimes by design, and sometimes because of a bug in " @@ -3515,7 +3453,7 @@ msgstr "" "備するコードにおけるバグのこともあるでしょう。 Python はこの問題に対して3つの" "異なるアプローチを提供します:" -#: ../../library/functions.rst:1927 +#: ../../library/functions.rst:1948 msgid "" "By default, :func:`zip` stops when the shortest iterable is exhausted. It " "will ignore the remaining items in the longer iterables, cutting off the " @@ -3525,7 +3463,7 @@ msgstr "" "す。より繰り返し数の長いイテラブルの残りの要素は無視して、結果を最も短いイテ" "ラブルの長さに切り詰めます::" -#: ../../library/functions.rst:1934 +#: ../../library/functions.rst:1955 msgid "" ":func:`zip` is often used in cases where the iterables are assumed to be of " "equal length. In such cases, it's recommended to use the ``strict=True`` " @@ -3535,7 +3473,7 @@ msgstr "" "下で使われます。そのような場合、 ``strict=True`` オプションの利用が推奨されま" "す。その出力は通常の :func:`zip` と同じです::" -#: ../../library/functions.rst:1941 +#: ../../library/functions.rst:1962 msgid "" "Unlike the default behavior, it raises a :exc:`ValueError` if one iterable " "is exhausted before the others:" @@ -3543,7 +3481,7 @@ msgstr "" "しかし、デフォルトの動作と異なり、あるイテラブルが他のイテラブルよりも先に消" "費しきった場合に :exc:`ValueError` 例外を送出します:" -#: ../../library/functions.rst:1959 +#: ../../library/functions.rst:1980 msgid "" "Without the ``strict=True`` argument, any bug that results in iterables of " "different lengths will be silenced, possibly manifesting as a hard-to-find " @@ -3553,7 +3491,7 @@ msgstr "" "なるバグも、この時点では問題なく処理されます。そして代わりにプログラムの別の" "場所で、原因を特定しにくいバグとして検出されることになるでしょう。" -#: ../../library/functions.rst:1963 +#: ../../library/functions.rst:1984 msgid "" "Shorter iterables can be padded with a constant value to make all the " "iterables have the same length. This is done by :func:`itertools." @@ -3563,7 +3501,7 @@ msgstr "" "にすることもできます。この機能は :func:`itertools.zip_longest` で提供されま" "す。" -#: ../../library/functions.rst:1967 +#: ../../library/functions.rst:1988 msgid "" "Edge cases: With a single iterable argument, :func:`zip` returns an iterator " "of 1-tuples. With no arguments, it returns an empty iterator." @@ -3571,11 +3509,11 @@ msgstr "" "エッジケース: 引数としてイテラブルをひとつだけ渡した場合、 :func:`zip` は 1 " "タプルのイテレータを返します。引数なしの場合は空のイテレータを返します。" -#: ../../library/functions.rst:1970 +#: ../../library/functions.rst:1991 msgid "Tips and tricks:" msgstr "ヒントとコツ:" -#: ../../library/functions.rst:1972 +#: ../../library/functions.rst:1993 msgid "" "The left-to-right evaluation order of the iterables is guaranteed. This " "makes possible an idiom for clustering a data series into n-length groups " @@ -3589,18 +3527,18 @@ msgstr "" "``n`` 回呼び出した結果となるよう、 *同じ* イテレータを ``n`` 回繰り返します。" "これは入力を長さ n のチャンクに分割する効果があります。" -#: ../../library/functions.rst:1978 +#: ../../library/functions.rst:1999 msgid "" ":func:`zip` in conjunction with the ``*`` operator can be used to unzip a " "list::" msgstr "" ":func:`zip` に続けて ``*`` 演算子を使うと、zip したリストを元に戻せます::" -#: ../../library/functions.rst:1989 +#: ../../library/functions.rst:2010 msgid "Added the ``strict`` argument." msgstr "``strict`` 引数が追加されました。" -#: ../../library/functions.rst:2001 +#: ../../library/functions.rst:2022 msgid "" "This is an advanced function that is not needed in everyday Python " "programming, unlike :func:`importlib.import_module`." @@ -3608,7 +3546,7 @@ msgstr "" "これは :func:`importlib.import_module` とは違い、日常の Python プログラミング" "では必要ない高等な関数です。" -#: ../../library/functions.rst:2004 +#: ../../library/functions.rst:2025 msgid "" "This function is invoked by the :keyword:`import` statement. It can be " "replaced (by importing the :mod:`builtins` module and assigning to " @@ -3628,7 +3566,7 @@ msgstr "" "`__import__` を直接使用することも推奨されず、 :func:`importlib." "import_module` の方が好まれます。" -#: ../../library/functions.rst:2013 +#: ../../library/functions.rst:2034 msgid "" "The function imports the module *name*, potentially using the given " "*globals* and *locals* to determine how to interpret the name in a package " @@ -3644,7 +3582,7 @@ msgstr "" "使われず、 *globals* は :keyword:`import` 文のパッケージコンテキストを決定す" "るためにのみ使われます。" -#: ../../library/functions.rst:2020 +#: ../../library/functions.rst:2041 msgid "" "*level* specifies whether to use absolute or relative imports. ``0`` (the " "default) means only perform absolute imports. Positive values for *level* " @@ -3657,7 +3595,7 @@ msgstr "" "を呼び出したディレクトリから検索対象となる親ディレクトリの数を示します (詳細" "は :pep:`328` を参照してください)。" -#: ../../library/functions.rst:2026 +#: ../../library/functions.rst:2047 msgid "" "When the *name* variable is of the form ``package.module``, normally, the " "top-level package (the name up till the first dot) is returned, *not* the " @@ -3669,18 +3607,18 @@ msgstr "" "す。しかしながら、空でない *fromlist* 引数が与えられると、 *name* で指名され" "たモジュールが返されます。" -#: ../../library/functions.rst:2031 +#: ../../library/functions.rst:2052 msgid "" "For example, the statement ``import spam`` results in bytecode resembling " "the following code::" msgstr "" "例えば、文 ``import spam`` は、以下のコードのようなバイトコードに帰結します::" -#: ../../library/functions.rst:2036 +#: ../../library/functions.rst:2057 msgid "The statement ``import spam.ham`` results in this call::" msgstr "文 ``import spam.ham`` は、この呼び出しになります::" -#: ../../library/functions.rst:2040 +#: ../../library/functions.rst:2061 msgid "" "Note how :func:`__import__` returns the toplevel module here because this is " "the object that is bound to a name by the :keyword:`import` statement." @@ -3689,7 +3627,7 @@ msgstr "" "て下さい。 :keyword:`import` 文により名前が束縛されたオブジェクトになっていま" "す。" -#: ../../library/functions.rst:2043 +#: ../../library/functions.rst:2064 msgid "" "On the other hand, the statement ``from spam.ham import eggs, sausage as " "saus`` results in ::" @@ -3697,7 +3635,7 @@ msgstr "" "一方で、文 ``from spam.ham import eggs, sausage as saus`` は、以下となりま" "す ::" -#: ../../library/functions.rst:2050 +#: ../../library/functions.rst:2071 msgid "" "Here, the ``spam.ham`` module is returned from :func:`__import__`. From " "this object, the names to import are retrieved and assigned to their " @@ -3707,7 +3645,7 @@ msgstr "" "ジェクトから、インポートされる名前が取り出され、それぞれの名前として代入され" "ます。" -#: ../../library/functions.rst:2054 +#: ../../library/functions.rst:2075 msgid "" "If you simply want to import a module (potentially within a package) by " "name, use :func:`importlib.import_module`." @@ -3715,7 +3653,7 @@ msgstr "" "単純に名前からモジュール (パッケージの範囲内であるかも知れません) をインポー" "トしたいなら、 :func:`importlib.import_module` を使ってください。" -#: ../../library/functions.rst:2057 +#: ../../library/functions.rst:2078 msgid "" "Negative values for *level* are no longer supported (which also changes the " "default value to 0)." @@ -3723,7 +3661,7 @@ msgstr "" "負の *level* の値はサポートされなくなりました (デフォルト値の 0 に変更されま" "す)。" -#: ../../library/functions.rst:2061 +#: ../../library/functions.rst:2082 msgid "" "When the command line options :option:`-E` or :option:`-I` are being used, " "the environment variable :envvar:`PYTHONCASEOK` is now ignored." @@ -3731,11 +3669,11 @@ msgstr "" "コマンドラインオプション :option:`-E` or :option:`-I` が指定された場合、環境" "変数 :envvar:`PYTHONCASEOK` は無視されるようになりました。" -#: ../../library/functions.rst:2066 +#: ../../library/functions.rst:2087 msgid "Footnotes" msgstr "脚注" -#: ../../library/functions.rst:2067 +#: ../../library/functions.rst:2088 msgid "" "Note that the parser only accepts the Unix-style end of line convention. If " "you are reading the code from a file, make sure to use newline conversion " @@ -3745,110 +3683,110 @@ msgstr "" "から読んでいるなら、必ず、改行変換モードで Windows や Mac スタイルの改行を変" "換してください。" -#: ../../library/functions.rst:152 +#: ../../library/functions.rst:153 msgid "Boolean" msgstr "Boolean" -#: ../../library/functions.rst:152 ../../library/functions.rst:1840 +#: ../../library/functions.rst:153 ../../library/functions.rst:1861 msgid "type" msgstr "type" -#: ../../library/functions.rst:572 +#: ../../library/functions.rst:576 msgid "built-in function" msgstr "組み込み関数" -#: ../../library/functions.rst:572 +#: ../../library/functions.rst:576 msgid "exec" msgstr "exec" -#: ../../library/functions.rst:649 +#: ../../library/functions.rst:653 msgid "NaN" msgstr "NaN" -#: ../../library/functions.rst:649 +#: ../../library/functions.rst:653 msgid "Infinity" msgstr "Infinity" -#: ../../library/functions.rst:714 +#: ../../library/functions.rst:718 msgid "__format__" msgstr "__format__" -#: ../../library/functions.rst:714 ../../library/functions.rst:1725 +#: ../../library/functions.rst:718 ../../library/functions.rst:1745 msgid "string" msgstr "string" -#: ../../library/functions.rst:714 +#: ../../library/functions.rst:718 msgid "format() (built-in function)" msgstr "format() (組み込み関数)" -#: ../../library/functions.rst:1161 +#: ../../library/functions.rst:1166 msgid "file object" msgstr "file object" -#: ../../library/functions.rst:1161 ../../library/functions.rst:1282 +#: ../../library/functions.rst:1166 ../../library/functions.rst:1287 msgid "open() built-in function" msgstr "open() built-in function" -#: ../../library/functions.rst:1189 +#: ../../library/functions.rst:1194 msgid "file" msgstr "ファイル" -#: ../../library/functions.rst:1189 +#: ../../library/functions.rst:1194 msgid "modes" msgstr "modes" -#: ../../library/functions.rst:1282 +#: ../../library/functions.rst:1287 msgid "universal newlines" msgstr "universal newlines" -#: ../../library/functions.rst:1343 +#: ../../library/functions.rst:1348 msgid "line-buffered I/O" msgstr "line-buffered I/O" -#: ../../library/functions.rst:1343 +#: ../../library/functions.rst:1348 msgid "unbuffered I/O" msgstr "unbuffered I/O" -#: ../../library/functions.rst:1343 +#: ../../library/functions.rst:1348 msgid "buffer size, I/O" msgstr "buffer size, I/O" -#: ../../library/functions.rst:1343 +#: ../../library/functions.rst:1348 msgid "I/O control" msgstr "I/O control" -#: ../../library/functions.rst:1343 +#: ../../library/functions.rst:1348 msgid "buffering" msgstr "buffering" -#: ../../library/functions.rst:1343 +#: ../../library/functions.rst:1348 msgid "text mode" msgstr "text mode" -#: ../../library/functions.rst:1343 ../../library/functions.rst:1995 +#: ../../library/functions.rst:1348 ../../library/functions.rst:2016 msgid "module" msgstr "module" -#: ../../library/functions.rst:1343 +#: ../../library/functions.rst:1348 msgid "sys" msgstr "sys" -#: ../../library/functions.rst:1725 +#: ../../library/functions.rst:1745 msgid "str() (built-in function)" msgstr "str() (built-in function)" -#: ../../library/functions.rst:1840 +#: ../../library/functions.rst:1861 msgid "object" msgstr "object" -#: ../../library/functions.rst:1995 +#: ../../library/functions.rst:2016 msgid "statement" msgstr "statement" -#: ../../library/functions.rst:1995 +#: ../../library/functions.rst:2016 msgid "import" msgstr "import" -#: ../../library/functions.rst:1995 +#: ../../library/functions.rst:2016 msgid "builtins" msgstr "builtins" diff --git a/library/gettext.po b/library/gettext.po index a31504aba..f6b4debad 100644 --- a/library/gettext.po +++ b/library/gettext.po @@ -16,7 +16,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3.12\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2023-11-17 14:14+0000\n" +"POT-Creation-Date: 2023-12-08 14:14+0000\n" "PO-Revision-Date: 2021-06-28 01:06+0000\n" "Last-Translator: Rafael Fontenelle , 2023\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" @@ -429,8 +429,8 @@ msgstr "" #: ../../library/gettext.rst:260 msgid "" -"Return the \"protected\" :attr:`_info` variable, a dictionary containing the " -"metadata found in the message catalog file." +"Return a dictionary containing the metadata found in the message catalog " +"file." msgstr "" #: ../../library/gettext.rst:266 @@ -478,16 +478,11 @@ msgstr ":class:`GNUTranslations` クラス" #: ../../library/gettext.rst:299 msgid "" -"The :mod:`gettext` module provides one additional class derived from :class:" -"`NullTranslations`: :class:`GNUTranslations`. This class overrides :meth:" -"`_parse` to enable reading GNU :program:`gettext` format :file:`.mo` files " -"in both big-endian and little-endian format." +"The :mod:`!gettext` module provides one additional class derived from :class:" +"`NullTranslations`: :class:`GNUTranslations`. This class overrides :meth:`!" +"_parse` to enable reading GNU :program:`gettext` format :file:`.mo` files in " +"both big-endian and little-endian format." msgstr "" -":mod:`gettext` モジュールでは :class:`NullTranslations` から派生したもう一つ" -"のクラス: :class:`GNUTranslations` を提供しています。このクラスはビッグエン" -"ディアン、およびリトルエンディアン両方のバイナリ形式の GNU :program:" -"`gettext` :file:`.mo` ファイルを読み出せるように :meth:`_parse` を上書きして" -"います。" #: ../../library/gettext.rst:304 msgid "" @@ -496,21 +491,11 @@ msgid "" "the translation for the empty string. This metadata is in :rfc:`822`\\ -" "style ``key: value`` pairs, and should contain the ``Project-Id-Version`` " "key. If the key ``Content-Type`` is found, then the ``charset`` property is " -"used to initialize the \"protected\" :attr:`_charset` instance variable, " +"used to initialize the \"protected\" :attr:`!_charset` instance variable, " "defaulting to ``None`` if not found. If the charset encoding is specified, " "then all message ids and message strings read from the catalog are converted " "to Unicode using this encoding, else ASCII is assumed." msgstr "" -":class:`GNUTranslations` はまた、翻訳カタログ以外に、オプションのメタデータを" -"読み込んで解釈します。GNU :program:`gettext` では、空の文字列に対する変換先と" -"してメタデータを取り込むことが慣習になっています。このメタデータは :rfc:" -"`822` 形式の ``key: value`` のペアになっており、 ``Project-Id-Version`` キー" -"を含んでいなければなりません。キー ``Content-Type`` があった場合、 " -"``charset`` の特性値 (property) は \"保護された\" :attr:`_charset` インスタン" -"ス変数を初期化するために用いられます。値がない場合には、デフォルトとして " -"``None`` が使われます。エンコードに用いられる文字セットが指定されている場合、" -"カタログから読み出された全てのメッセージ id とメッセージ文字列は、指定された" -"エンコードを用いて Unicode に変換され、そうでなければ ASCII とみなされます。" #: ../../library/gettext.rst:314 msgid "" @@ -521,10 +506,8 @@ msgstr "" #: ../../library/gettext.rst:317 msgid "" "The entire set of key/value pairs are placed into a dictionary and set as " -"the \"protected\" :attr:`_info` instance variable." +"the \"protected\" :attr:`!_info` instance variable." msgstr "" -"key/value ペアの集合全体は辞書型データ中に配置され、\"保護された\" :attr:" -"`_info` インスタンス変数に設定されます。" #: ../../library/gettext.rst:320 msgid "" @@ -987,21 +970,14 @@ msgstr "脚注" #: ../../library/gettext.rst:639 msgid "" -"The default locale directory is system dependent; for example, on RedHat " +"The default locale directory is system dependent; for example, on Red Hat " "Linux it is :file:`/usr/share/locale`, but on Solaris it is :file:`/usr/lib/" -"locale`. The :mod:`gettext` module does not try to support these system " +"locale`. The :mod:`!gettext` module does not try to support these system " "dependent defaults; instead its default is :file:`{sys.base_prefix}/share/" "locale` (see :data:`sys.base_prefix`). For this reason, it is always best to " "call :func:`bindtextdomain` with an explicit absolute path at the start of " "your application." msgstr "" -"標準でロケールが収められているディレクトリはシステム依存です; 例えば、RedHat " -"Linux では :file:`/usr/share/locale` ですが、 Solaris では :file:`/usr/lib/" -"locale` です。 :mod:`gettext` モジュールはこうしたシステム依存の標準設定をサ" -"ポートしません; その代わりに :file:`{sys.base_prefix}/share/locale` を標準の" -"設定とします(:data:`sys.base_prefix` を参照してください)。この理由から、常に" -"アプリケーションの開始時に絶対パスで明示的に指定して :func:`bindtextdomain` " -"を呼び出すのが最良のやり方ということになります。" #: ../../library/gettext.rst:647 msgid "See the footnote for :func:`bindtextdomain` above." diff --git a/library/inspect.po b/library/inspect.po index 7cc7eb706..e95083c57 100644 --- a/library/inspect.po +++ b/library/inspect.po @@ -13,7 +13,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3.12\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2023-12-01 14:14+0000\n" +"POT-Creation-Date: 2023-12-08 14:14+0000\n" "PO-Revision-Date: 2021-06-28 01:08+0000\n" "Last-Translator: Arihiro TAKASE, 2023\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" @@ -28,11 +28,11 @@ msgstr "" msgid ":mod:`inspect` --- Inspect live objects" msgstr ":mod:`inspect` --- 活動中のオブジェクトの情報を取得する" -#: ../../library/inspect.rst:10 +#: ../../library/inspect.rst:15 msgid "**Source code:** :source:`Lib/inspect.py`" msgstr "**ソースコード:** :source:`Lib/inspect.py`" -#: ../../library/inspect.rst:14 +#: ../../library/inspect.rst:19 msgid "" "The :mod:`inspect` module provides several useful functions to help get " "information about live objects such as modules, classes, methods, functions, " @@ -47,7 +47,7 @@ msgstr "" "したり、関数の引数リストを取り出して整形したり、詳細なトレースバックを表示す" "るのに必要な情報を取得したりするために利用できます。" -#: ../../library/inspect.rst:21 +#: ../../library/inspect.rst:26 msgid "" "There are four main kinds of services provided by this module: type " "checking, getting source code, inspecting classes and functions, and " @@ -57,11 +57,11 @@ msgstr "" "の情報取得、クラスや関数からの情報取得、インタープリタのスタック情報の調査で" "す。" -#: ../../library/inspect.rst:29 +#: ../../library/inspect.rst:34 msgid "Types and members" msgstr "型とメンバー" -#: ../../library/inspect.rst:31 +#: ../../library/inspect.rst:36 msgid "" "The :func:`getmembers` function retrieves the members of an object such as a " "class or module. The functions whose names begin with \"is\" are mainly " @@ -76,146 +76,146 @@ msgstr "" "る時にも使えるでしょう (モジュール属性については :ref:`import-mod-attrs` を参" "照してください):" -#: ../../library/inspect.rst:41 +#: ../../library/inspect.rst:46 msgid "Type" msgstr "型" -#: ../../library/inspect.rst:41 +#: ../../library/inspect.rst:46 msgid "Attribute" msgstr "属性" -#: ../../library/inspect.rst:41 +#: ../../library/inspect.rst:46 msgid "Description" msgstr "説明" -#: ../../library/inspect.rst:43 +#: ../../library/inspect.rst:48 msgid "class" msgstr "クラス" -#: ../../library/inspect.rst:43 ../../library/inspect.rst:53 -#: ../../library/inspect.rst:71 ../../library/inspect.rst:233 +#: ../../library/inspect.rst:48 ../../library/inspect.rst:58 +#: ../../library/inspect.rst:76 ../../library/inspect.rst:238 msgid "__doc__" msgstr "__doc__" -#: ../../library/inspect.rst:43 ../../library/inspect.rst:53 -#: ../../library/inspect.rst:71 ../../library/inspect.rst:233 +#: ../../library/inspect.rst:48 ../../library/inspect.rst:58 +#: ../../library/inspect.rst:76 ../../library/inspect.rst:238 msgid "documentation string" msgstr "ドキュメント文字列" -#: ../../library/inspect.rst:45 ../../library/inspect.rst:55 -#: ../../library/inspect.rst:73 ../../library/inspect.rst:202 -#: ../../library/inspect.rst:216 ../../library/inspect.rst:235 +#: ../../library/inspect.rst:50 ../../library/inspect.rst:60 +#: ../../library/inspect.rst:78 ../../library/inspect.rst:207 +#: ../../library/inspect.rst:221 ../../library/inspect.rst:240 msgid "__name__" msgstr "__name__" -#: ../../library/inspect.rst:45 +#: ../../library/inspect.rst:50 msgid "name with which this class was defined" msgstr "クラスの定義名" -#: ../../library/inspect.rst:48 ../../library/inspect.rst:58 -#: ../../library/inspect.rst:76 ../../library/inspect.rst:204 -#: ../../library/inspect.rst:218 ../../library/inspect.rst:238 +#: ../../library/inspect.rst:53 ../../library/inspect.rst:63 +#: ../../library/inspect.rst:81 ../../library/inspect.rst:209 +#: ../../library/inspect.rst:223 ../../library/inspect.rst:243 msgid "__qualname__" msgstr "__qualname__" -#: ../../library/inspect.rst:48 ../../library/inspect.rst:58 -#: ../../library/inspect.rst:76 ../../library/inspect.rst:204 -#: ../../library/inspect.rst:218 ../../library/inspect.rst:238 +#: ../../library/inspect.rst:53 ../../library/inspect.rst:63 +#: ../../library/inspect.rst:81 ../../library/inspect.rst:209 +#: ../../library/inspect.rst:223 ../../library/inspect.rst:243 msgid "qualified name" msgstr "qualified name" -#: ../../library/inspect.rst:50 ../../library/inspect.rst:68 -#: ../../library/inspect.rst:101 +#: ../../library/inspect.rst:55 ../../library/inspect.rst:73 +#: ../../library/inspect.rst:106 msgid "__module__" msgstr "__module__" -#: ../../library/inspect.rst:50 +#: ../../library/inspect.rst:55 msgid "name of module in which this class was defined" msgstr "クラスを定義しているモジュールの名前" -#: ../../library/inspect.rst:53 +#: ../../library/inspect.rst:58 msgid "method" msgstr "メソッド" -#: ../../library/inspect.rst:55 +#: ../../library/inspect.rst:60 msgid "name with which this method was defined" msgstr "メソッドの定義名" -#: ../../library/inspect.rst:60 +#: ../../library/inspect.rst:65 msgid "__func__" msgstr "__func__" -#: ../../library/inspect.rst:60 +#: ../../library/inspect.rst:65 msgid "function object containing implementation of method" msgstr "メソッドを実装している関数オブジェクト" -#: ../../library/inspect.rst:64 ../../library/inspect.rst:240 +#: ../../library/inspect.rst:69 ../../library/inspect.rst:245 msgid "__self__" msgstr "__self__" -#: ../../library/inspect.rst:64 +#: ../../library/inspect.rst:69 msgid "instance to which this method is bound, or ``None``" msgstr "メソッドに結合しているインスタンス、または ``None``" -#: ../../library/inspect.rst:68 +#: ../../library/inspect.rst:73 msgid "name of module in which this method was defined" msgstr "" -#: ../../library/inspect.rst:71 +#: ../../library/inspect.rst:76 msgid "function" msgstr "関数" -#: ../../library/inspect.rst:73 +#: ../../library/inspect.rst:78 msgid "name with which this function was defined" msgstr "関数の定義名" -#: ../../library/inspect.rst:78 +#: ../../library/inspect.rst:83 msgid "__code__" msgstr "__code__" -#: ../../library/inspect.rst:78 +#: ../../library/inspect.rst:83 msgid "code object containing compiled function :term:`bytecode`" msgstr "" "関数をコンパイルした :term:`バイトコード ` を格納するコードオブジェ" "クト" -#: ../../library/inspect.rst:82 +#: ../../library/inspect.rst:87 msgid "__defaults__" msgstr "__defaults__" -#: ../../library/inspect.rst:82 +#: ../../library/inspect.rst:87 msgid "tuple of any default values for positional or keyword parameters" msgstr "位置またはキーワード引数の全ての既定値のタプル" -#: ../../library/inspect.rst:86 +#: ../../library/inspect.rst:91 msgid "__kwdefaults__" msgstr "__kwdefaults__" -#: ../../library/inspect.rst:86 +#: ../../library/inspect.rst:91 msgid "mapping of any default values for keyword-only parameters" msgstr "キーワード専用引数の全ての既定値のマッピング" -#: ../../library/inspect.rst:90 +#: ../../library/inspect.rst:95 msgid "__globals__" msgstr "__globals__" -#: ../../library/inspect.rst:90 +#: ../../library/inspect.rst:95 msgid "global namespace in which this function was defined" msgstr "関数が定義されたグローバル名前空間" -#: ../../library/inspect.rst:93 +#: ../../library/inspect.rst:98 msgid "__builtins__" msgstr "" -#: ../../library/inspect.rst:93 +#: ../../library/inspect.rst:98 msgid "builtins namespace" msgstr "" -#: ../../library/inspect.rst:95 +#: ../../library/inspect.rst:100 msgid "__annotations__" msgstr "__annotations__" -#: ../../library/inspect.rst:95 +#: ../../library/inspect.rst:100 msgid "" "mapping of parameters names to annotations; ``\"return\"`` key is reserved " "for return annotations." @@ -223,341 +223,341 @@ msgstr "" "仮引数名からアノテーションへのマッピング; ``\"return\"`` キーは return アノ" "テーションに予約されています" -#: ../../library/inspect.rst:101 +#: ../../library/inspect.rst:106 msgid "name of module in which this function was defined" msgstr "" -#: ../../library/inspect.rst:104 +#: ../../library/inspect.rst:109 msgid "traceback" msgstr "traceback" -#: ../../library/inspect.rst:104 +#: ../../library/inspect.rst:109 msgid "tb_frame" msgstr "tb_frame" -#: ../../library/inspect.rst:104 +#: ../../library/inspect.rst:109 msgid "frame object at this level" msgstr "このレベルのフレームオブジェクト" -#: ../../library/inspect.rst:107 +#: ../../library/inspect.rst:112 msgid "tb_lasti" msgstr "tb_lasti" -#: ../../library/inspect.rst:107 ../../library/inspect.rst:129 +#: ../../library/inspect.rst:112 ../../library/inspect.rst:134 msgid "index of last attempted instruction in bytecode" msgstr "" "最後に実行しようとしたバイトコード中のインストラクションを示すインデックス" -#: ../../library/inspect.rst:110 +#: ../../library/inspect.rst:115 msgid "tb_lineno" msgstr "tb_lineno" -#: ../../library/inspect.rst:110 ../../library/inspect.rst:132 +#: ../../library/inspect.rst:115 ../../library/inspect.rst:137 msgid "current line number in Python source code" msgstr "現在の Python ソースコードの行番号" -#: ../../library/inspect.rst:113 +#: ../../library/inspect.rst:118 msgid "tb_next" msgstr "tb_next" -#: ../../library/inspect.rst:113 +#: ../../library/inspect.rst:118 msgid "next inner traceback object (called by this level)" msgstr "" "このオブジェクトの内側 (このレベルから呼び出された) のトレースバックオブジェ" "クト" -#: ../../library/inspect.rst:117 ../../library/inspect.rst:206 -#: ../../library/inspect.rst:223 +#: ../../library/inspect.rst:122 ../../library/inspect.rst:211 +#: ../../library/inspect.rst:228 msgid "frame" msgstr "フレーム" -#: ../../library/inspect.rst:117 +#: ../../library/inspect.rst:122 msgid "f_back" msgstr "f_back" -#: ../../library/inspect.rst:117 +#: ../../library/inspect.rst:122 msgid "next outer frame object (this frame's caller)" msgstr "外側 (このフレームを呼び出した) のフレームオブジェクト" -#: ../../library/inspect.rst:120 +#: ../../library/inspect.rst:125 msgid "f_builtins" msgstr "f_builtins" -#: ../../library/inspect.rst:120 +#: ../../library/inspect.rst:125 msgid "builtins namespace seen by this frame" msgstr "このフレームで参照している組み込み名前空間" -#: ../../library/inspect.rst:123 +#: ../../library/inspect.rst:128 msgid "f_code" msgstr "f_code" -#: ../../library/inspect.rst:123 +#: ../../library/inspect.rst:128 msgid "code object being executed in this frame" msgstr "このフレームで実行しているコードオブジェクト" -#: ../../library/inspect.rst:126 +#: ../../library/inspect.rst:131 msgid "f_globals" msgstr "f_globals" -#: ../../library/inspect.rst:126 +#: ../../library/inspect.rst:131 msgid "global namespace seen by this frame" msgstr "このフレームで参照しているグローバル名前空間" -#: ../../library/inspect.rst:129 +#: ../../library/inspect.rst:134 msgid "f_lasti" msgstr "f_lasti" -#: ../../library/inspect.rst:132 +#: ../../library/inspect.rst:137 msgid "f_lineno" msgstr "f_lineno" -#: ../../library/inspect.rst:135 +#: ../../library/inspect.rst:140 msgid "f_locals" msgstr "f_locals" -#: ../../library/inspect.rst:135 +#: ../../library/inspect.rst:140 msgid "local namespace seen by this frame" msgstr "このフレームで参照しているローカル名前空間" -#: ../../library/inspect.rst:138 +#: ../../library/inspect.rst:143 msgid "f_trace" msgstr "f_trace" -#: ../../library/inspect.rst:138 +#: ../../library/inspect.rst:143 msgid "tracing function for this frame, or ``None``" msgstr "このフレームのトレース関数、または ``None``" -#: ../../library/inspect.rst:141 ../../library/inspect.rst:210 -#: ../../library/inspect.rst:227 +#: ../../library/inspect.rst:146 ../../library/inspect.rst:215 +#: ../../library/inspect.rst:232 msgid "code" msgstr "コード" -#: ../../library/inspect.rst:141 +#: ../../library/inspect.rst:146 msgid "co_argcount" msgstr "co_argcount" -#: ../../library/inspect.rst:141 +#: ../../library/inspect.rst:146 msgid "" "number of arguments (not including keyword only arguments, \\* or \\*\\* " "args)" msgstr "" -#: ../../library/inspect.rst:146 +#: ../../library/inspect.rst:151 msgid "co_code" msgstr "co_code" -#: ../../library/inspect.rst:146 +#: ../../library/inspect.rst:151 msgid "string of raw compiled bytecode" msgstr "コンパイルされたバイトコードそのままの文字列" -#: ../../library/inspect.rst:149 +#: ../../library/inspect.rst:154 msgid "co_cellvars" msgstr "co_cellvars" -#: ../../library/inspect.rst:149 +#: ../../library/inspect.rst:154 msgid "tuple of names of cell variables (referenced by containing scopes)" msgstr "" -#: ../../library/inspect.rst:153 +#: ../../library/inspect.rst:158 msgid "co_consts" msgstr "co_consts" -#: ../../library/inspect.rst:153 +#: ../../library/inspect.rst:158 msgid "tuple of constants used in the bytecode" msgstr "バイトコード中で使用している定数のタプル" -#: ../../library/inspect.rst:156 +#: ../../library/inspect.rst:161 msgid "co_filename" msgstr "co_filename" -#: ../../library/inspect.rst:156 +#: ../../library/inspect.rst:161 msgid "name of file in which this code object was created" msgstr "コードオブジェクトを生成したファイルのファイル名" -#: ../../library/inspect.rst:160 +#: ../../library/inspect.rst:165 msgid "co_firstlineno" msgstr "co_firstlineno" -#: ../../library/inspect.rst:160 +#: ../../library/inspect.rst:165 msgid "number of first line in Python source code" msgstr "Python ソースコードの先頭行" -#: ../../library/inspect.rst:163 +#: ../../library/inspect.rst:168 msgid "co_flags" msgstr "co_flags" -#: ../../library/inspect.rst:163 +#: ../../library/inspect.rst:168 msgid "" "bitmap of ``CO_*`` flags, read more :ref:`here `" msgstr "" -#: ../../library/inspect.rst:167 +#: ../../library/inspect.rst:172 msgid "co_lnotab" msgstr "co_lnotab" -#: ../../library/inspect.rst:167 +#: ../../library/inspect.rst:172 msgid "encoded mapping of line numbers to bytecode indices" msgstr "" "行番号からバイトコードインデックスへの変換表を文字列にエンコードしたもの" -#: ../../library/inspect.rst:171 +#: ../../library/inspect.rst:176 msgid "co_freevars" msgstr "co_freevars" -#: ../../library/inspect.rst:171 +#: ../../library/inspect.rst:176 msgid "tuple of names of free variables (referenced via a function's closure)" msgstr "" -#: ../../library/inspect.rst:175 +#: ../../library/inspect.rst:180 msgid "co_posonlyargcount" msgstr "" -#: ../../library/inspect.rst:175 +#: ../../library/inspect.rst:180 msgid "number of positional only arguments" msgstr "" -#: ../../library/inspect.rst:178 +#: ../../library/inspect.rst:183 msgid "co_kwonlyargcount" msgstr "co_kwonlyargcount" -#: ../../library/inspect.rst:178 +#: ../../library/inspect.rst:183 msgid "number of keyword only arguments (not including \\*\\* arg)" msgstr "" -#: ../../library/inspect.rst:182 +#: ../../library/inspect.rst:187 msgid "co_name" msgstr "co_name" -#: ../../library/inspect.rst:182 +#: ../../library/inspect.rst:187 msgid "name with which this code object was defined" msgstr "コードオブジェクトが定義されたときの名前" -#: ../../library/inspect.rst:185 +#: ../../library/inspect.rst:190 msgid "co_qualname" msgstr "" -#: ../../library/inspect.rst:185 +#: ../../library/inspect.rst:190 msgid "fully qualified name with which this code object was defined" msgstr "" -#: ../../library/inspect.rst:189 +#: ../../library/inspect.rst:194 msgid "co_names" msgstr "co_names" -#: ../../library/inspect.rst:189 +#: ../../library/inspect.rst:194 msgid "tuple of names other than arguments and function locals" msgstr "" -#: ../../library/inspect.rst:193 +#: ../../library/inspect.rst:198 msgid "co_nlocals" msgstr "co_nlocals" -#: ../../library/inspect.rst:193 +#: ../../library/inspect.rst:198 msgid "number of local variables" msgstr "ローカル変数の数" -#: ../../library/inspect.rst:195 +#: ../../library/inspect.rst:200 msgid "co_stacksize" msgstr "co_stacksize" -#: ../../library/inspect.rst:195 +#: ../../library/inspect.rst:200 msgid "virtual machine stack space required" msgstr "必要とされる仮想マシンのスタックスペース" -#: ../../library/inspect.rst:198 +#: ../../library/inspect.rst:203 msgid "co_varnames" msgstr "co_varnames" -#: ../../library/inspect.rst:198 +#: ../../library/inspect.rst:203 msgid "tuple of names of arguments and local variables" msgstr "引数名とローカル変数名のタプル" -#: ../../library/inspect.rst:202 +#: ../../library/inspect.rst:207 msgid "generator" msgstr "ジェネレータ" -#: ../../library/inspect.rst:202 ../../library/inspect.rst:216 +#: ../../library/inspect.rst:207 ../../library/inspect.rst:221 msgid "name" msgstr "name" -#: ../../library/inspect.rst:206 +#: ../../library/inspect.rst:211 msgid "gi_frame" msgstr "gi_frame" -#: ../../library/inspect.rst:208 +#: ../../library/inspect.rst:213 msgid "gi_running" msgstr "gi_running" -#: ../../library/inspect.rst:208 +#: ../../library/inspect.rst:213 msgid "is the generator running?" msgstr "ジェネレータが実行中かどうか" -#: ../../library/inspect.rst:210 +#: ../../library/inspect.rst:215 msgid "gi_code" msgstr "gi_code" -#: ../../library/inspect.rst:212 +#: ../../library/inspect.rst:217 msgid "gi_yieldfrom" msgstr "gi_yieldfrom" -#: ../../library/inspect.rst:212 +#: ../../library/inspect.rst:217 msgid "object being iterated by ``yield from``, or ``None``" msgstr "``yield from`` でイテレートされているオブジェクト、または ``None``" -#: ../../library/inspect.rst:216 +#: ../../library/inspect.rst:221 msgid "coroutine" msgstr "コルーチン" -#: ../../library/inspect.rst:220 +#: ../../library/inspect.rst:225 msgid "cr_await" msgstr "cr_await" -#: ../../library/inspect.rst:220 +#: ../../library/inspect.rst:225 msgid "object being awaited on, or ``None``" msgstr "待機されているオブジェクト、または ``None``" -#: ../../library/inspect.rst:223 +#: ../../library/inspect.rst:228 msgid "cr_frame" msgstr "cr_frame" -#: ../../library/inspect.rst:225 +#: ../../library/inspect.rst:230 msgid "cr_running" msgstr "cr_running" -#: ../../library/inspect.rst:225 +#: ../../library/inspect.rst:230 msgid "is the coroutine running?" msgstr "コルーチンが実行中かどうか" -#: ../../library/inspect.rst:227 +#: ../../library/inspect.rst:232 msgid "cr_code" msgstr "cr_code" -#: ../../library/inspect.rst:229 +#: ../../library/inspect.rst:234 msgid "cr_origin" msgstr "" -#: ../../library/inspect.rst:229 +#: ../../library/inspect.rst:234 msgid "where coroutine was created, or ``None``. See |coroutine-origin-link|" msgstr "" -#: ../../library/inspect.rst:233 +#: ../../library/inspect.rst:238 msgid "builtin" msgstr "組み込み" -#: ../../library/inspect.rst:235 +#: ../../library/inspect.rst:240 msgid "original name of this function or method" msgstr "関数、メソッドの元々の名前" -#: ../../library/inspect.rst:240 +#: ../../library/inspect.rst:245 msgid "instance to which a method is bound, or ``None``" msgstr "メソッドが結合しているインスタンス、または ``None``" -#: ../../library/inspect.rst:247 +#: ../../library/inspect.rst:252 msgid "Add ``__qualname__`` and ``gi_yieldfrom`` attributes to generators." msgstr "" "ジェネレータに ``__qualname__`` と ``gi_yieldfrom`` 属性が追加されました。" -#: ../../library/inspect.rst:249 +#: ../../library/inspect.rst:254 msgid "" "The ``__name__`` attribute of generators is now set from the function name, " "instead of the code name, and it can now be modified." @@ -565,15 +565,15 @@ msgstr "" "ジェネレータの ``__name__`` 属性がコード名ではなく関数名から設定されるように" "なり、変更できるようになりました。" -#: ../../library/inspect.rst:254 +#: ../../library/inspect.rst:259 msgid "Add ``cr_origin`` attribute to coroutines." msgstr "" -#: ../../library/inspect.rst:258 +#: ../../library/inspect.rst:263 msgid "Add ``__builtins__`` attribute to functions." msgstr "" -#: ../../library/inspect.rst:262 +#: ../../library/inspect.rst:267 msgid "" "Return all the members of an object in a list of ``(name, value)`` pairs " "sorted by name. If the optional *predicate* argument—which will be called " @@ -581,16 +581,14 @@ msgid "" "the predicate returns a true value are included." msgstr "" -#: ../../library/inspect.rst:269 +#: ../../library/inspect.rst:274 msgid "" ":func:`getmembers` will only return class attributes defined in the " "metaclass when the argument is a class and those attributes have been listed " -"in the metaclass' custom :meth:`__dir__`." +"in the metaclass' custom :meth:`~object.__dir__`." msgstr "" -"引数がクラスで属性がメタクラスのカスタム :meth:`__dir__` に列挙されている場" -"合、:func:`getmembers` はメタクラスで定義されたクラス属性のみを返します。" -#: ../../library/inspect.rst:276 +#: ../../library/inspect.rst:281 msgid "" "Return all the members of an object in a list of ``(name, value)`` pairs " "sorted by name without triggering dynamic lookup via the descriptor " @@ -598,7 +596,7 @@ msgid "" "that satisfy a given predicate." msgstr "" -#: ../../library/inspect.rst:283 +#: ../../library/inspect.rst:288 msgid "" ":func:`getmembers_static` may not be able to retrieve all members that " "getmembers can fetch (like dynamically created attributes) and may find " @@ -607,7 +605,7 @@ msgid "" "cases." msgstr "" -#: ../../library/inspect.rst:294 +#: ../../library/inspect.rst:299 msgid "" "Return the name of the module named by the file *path*, without including " "the names of enclosing packages. The file extension is checked against all " @@ -616,22 +614,22 @@ msgid "" "``None`` is returned." msgstr "" -#: ../../library/inspect.rst:300 +#: ../../library/inspect.rst:305 msgid "" "Note that this function *only* returns a meaningful name for actual Python " "modules - paths that potentially refer to Python packages will still return " "``None``." msgstr "" -#: ../../library/inspect.rst:304 +#: ../../library/inspect.rst:309 msgid "The function is based directly on :mod:`importlib`." msgstr "" -#: ../../library/inspect.rst:310 +#: ../../library/inspect.rst:315 msgid "Return ``True`` if the object is a module." msgstr "オブジェクトがモジュールの場合 ``True`` を返します。" -#: ../../library/inspect.rst:315 +#: ../../library/inspect.rst:320 msgid "" "Return ``True`` if the object is a class, whether built-in or created in " "Python code." @@ -639,11 +637,11 @@ msgstr "" "オブジェクトが組み込みか Python が生成したクラスの場合に ``True`` を返しま" "す。" -#: ../../library/inspect.rst:321 +#: ../../library/inspect.rst:326 msgid "Return ``True`` if the object is a bound method written in Python." msgstr "オブジェクトがメソッドの場合 ``True`` を返します。" -#: ../../library/inspect.rst:326 +#: ../../library/inspect.rst:331 msgid "" "Return ``True`` if the object is a Python function, which includes functions " "created by a :term:`lambda` expression." @@ -651,21 +649,21 @@ msgstr "" "オブジェクトが、 :term:`lambda` 式で生成されたものを含む Python 関数の場合に " "``True`` を返します。" -#: ../../library/inspect.rst:332 +#: ../../library/inspect.rst:337 msgid "Return ``True`` if the object is a Python generator function." msgstr "オブジェクトが Python のジェネレータ関数の場合 ``True`` を返します。" -#: ../../library/inspect.rst:334 +#: ../../library/inspect.rst:339 msgid "" "Functions wrapped in :func:`functools.partial` now return ``True`` if the " "wrapped function is a Python generator function." msgstr "" -#: ../../library/inspect.rst:341 +#: ../../library/inspect.rst:346 msgid "Return ``True`` if the object is a generator." msgstr "オブジェクトがジェネレータの場合 ``True`` を返します。" -#: ../../library/inspect.rst:346 +#: ../../library/inspect.rst:351 msgid "" "Return ``True`` if the object is a :term:`coroutine function` (a function " "defined with an :keyword:`async def` syntax), a :func:`functools.partial` " @@ -673,37 +671,37 @@ msgid "" "`markcoroutinefunction`." msgstr "" -#: ../../library/inspect.rst:353 +#: ../../library/inspect.rst:358 msgid "" "Functions wrapped in :func:`functools.partial` now return ``True`` if the " "wrapped function is a :term:`coroutine function`." msgstr "" -#: ../../library/inspect.rst:357 +#: ../../library/inspect.rst:362 msgid "" "Sync functions marked with :func:`markcoroutinefunction` now return ``True``." msgstr "" -#: ../../library/inspect.rst:364 +#: ../../library/inspect.rst:369 msgid "" "Decorator to mark a callable as a :term:`coroutine function` if it would not " "otherwise be detected by :func:`iscoroutinefunction`." msgstr "" -#: ../../library/inspect.rst:367 +#: ../../library/inspect.rst:372 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 "" -#: ../../library/inspect.rst:370 +#: ../../library/inspect.rst:375 msgid "" "When possible, using an :keyword:`async def` function is preferred. Also " "acceptable is calling the function and testing the return with :func:" "`iscoroutine`." msgstr "" -#: ../../library/inspect.rst:379 +#: ../../library/inspect.rst:384 msgid "" "Return ``True`` if the object is a :term:`coroutine` created by an :keyword:" "`async def` function." @@ -711,35 +709,31 @@ msgstr "" "オブジェクトが :keyword:`async def` で生成された :term:`コルーチン " "` の場合 ``True`` を返します。" -#: ../../library/inspect.rst:387 +#: ../../library/inspect.rst:392 msgid "" "Return ``True`` if the object can be used in :keyword:`await` expression." msgstr "" "オブジェクトを :keyword:`await` 式内で使用できる場合 ``True`` を返します。" -#: ../../library/inspect.rst:389 +#: ../../library/inspect.rst:394 msgid "" "Can also be used to distinguish generator-based coroutines from regular " -"generators::" +"generators:" msgstr "" -"ジェネレータベースのコルーチンと通常のジェネレータを区別するのに使うこともで" -"きます。" -#: ../../library/inspect.rst:406 +#: ../../library/inspect.rst:415 msgid "" "Return ``True`` if the object is an :term:`asynchronous generator` function, " -"for example::" +"for example:" msgstr "" -"オブジェクトが :term:`asynchronous generator` 関数の場合に ``True`` を返しま" -"す。例:" -#: ../../library/inspect.rst:417 +#: ../../library/inspect.rst:428 msgid "" "Functions wrapped in :func:`functools.partial` now return ``True`` if the " "wrapped function is a :term:`asynchronous generator` function." msgstr "" -#: ../../library/inspect.rst:424 +#: ../../library/inspect.rst:435 msgid "" "Return ``True`` if the object is an :term:`asynchronous generator iterator` " "created by an :term:`asynchronous generator` function." @@ -747,19 +741,19 @@ msgstr "" "オブジェクトが :term:`asynchronous generator` 関数によって生成された :term:" "`asynchronous generator iterator` である場合に ``True`` を返します。" -#: ../../library/inspect.rst:431 +#: ../../library/inspect.rst:442 msgid "Return ``True`` if the object is a traceback." msgstr "オブジェクトがトレースバックの場合は ``True`` を返します。" -#: ../../library/inspect.rst:436 +#: ../../library/inspect.rst:447 msgid "Return ``True`` if the object is a frame." msgstr "オブジェクトがフレームの場合は ``True`` を返します。" -#: ../../library/inspect.rst:441 +#: ../../library/inspect.rst:452 msgid "Return ``True`` if the object is a code." msgstr "オブジェクトがコードの場合は ``True`` を返します。" -#: ../../library/inspect.rst:446 +#: ../../library/inspect.rst:457 msgid "" "Return ``True`` if the object is a built-in function or a bound built-in " "method." @@ -767,18 +761,18 @@ msgstr "" "オブジェクトが組み込み関数か束縛済みの組み込みメソッドの場合に ``True`` を返" "します。" -#: ../../library/inspect.rst:451 +#: ../../library/inspect.rst:462 msgid "" "Return ``True`` if the type of object is a :class:`~types.MethodWrapperType`." msgstr "" -#: ../../library/inspect.rst:453 +#: ../../library/inspect.rst:464 msgid "" "These are instances of :class:`~types.MethodWrapperType`, such as :meth:" "`~object.__str__`, :meth:`~object.__eq__` and :meth:`~object.__repr__`." msgstr "" -#: ../../library/inspect.rst:461 +#: ../../library/inspect.rst:472 msgid "" "Return ``True`` if the object is a user-defined or built-in function or " "method." @@ -786,11 +780,11 @@ msgstr "" "オブジェクトがユーザ定義か組み込みの関数またはメソッドの場合は ``True`` を返" "します。" -#: ../../library/inspect.rst:466 +#: ../../library/inspect.rst:477 msgid "Return ``True`` if the object is an abstract base class." msgstr "オブジェクトが抽象基底クラスであるときに ``True`` を返します。" -#: ../../library/inspect.rst:471 +#: ../../library/inspect.rst:482 msgid "" "Return ``True`` if the object is a method descriptor, but not if :func:" "`ismethod`, :func:`isclass`, :func:`isfunction` or :func:`isbuiltin` are " @@ -800,59 +794,42 @@ msgstr "" "`isclass`, :func:`isfunction`, :func:`isbuiltin` でない場合に ``True`` を返し" "ます。" -#: ../../library/inspect.rst:475 +#: ../../library/inspect.rst:486 msgid "" "This, for example, is true of ``int.__add__``. An object passing this test " "has a :meth:`~object.__get__` method but not a :meth:`~object.__set__` " "method, but beyond that the set of attributes varies. A :attr:`~definition." -"__name__` attribute is usually sensible, and :attr:`__doc__` often is." +"__name__` attribute is usually sensible, and :attr:`!__doc__` often is." msgstr "" -"これは例えば ``int.__add__`` で真になります。\n" -"このテストをパスするオブジェクトは :meth:`~object.__get__` メソッドを持ちます" -"が :meth:`~object.__set__` メソッドを持ちません。\n" -"それ以外の属性を持っているかもしれません。\n" -"通常 :attr:`~definition.__name__` 属性を持っていますし、たいていは :attr:" -"`__doc__` も持っています。" -#: ../../library/inspect.rst:481 +#: ../../library/inspect.rst:492 msgid "" "Methods implemented via descriptors that also pass one of the other tests " "return ``False`` from the :func:`ismethoddescriptor` test, simply because " "the other tests promise more -- you can, e.g., count on having the :attr:" -"`__func__` attribute (etc) when an object passes :func:`ismethod`." +"`~method.__func__` attribute (etc) when an object passes :func:`ismethod`." msgstr "" -"デスクリプタを使って実装されたメソッドで、上記のいずれかのテストもパスしてい" -"るものは、 :func:`ismethoddescriptor` では ``False`` を返します。これは単に他" -"のテストの方がもっと確実だからです -- 例えば、 :func:`ismethod` をパスしたオ" -"ブジェクトは :attr:`__func__` 属性 (など) を持っていると期待できます。" -#: ../../library/inspect.rst:489 +#: ../../library/inspect.rst:501 msgid "Return ``True`` if the object is a data descriptor." msgstr "オブジェクトがデータデスクリプタの場合に ``True`` を返します。" -#: ../../library/inspect.rst:491 +#: ../../library/inspect.rst:503 msgid "" "Data descriptors have a :attr:`~object.__set__` or a :attr:`~object." "__delete__` method. Examples are properties (defined in Python), getsets, " "and members. The latter two are defined in C and there are more specific " "tests available for those types, which is robust across Python " "implementations. Typically, data descriptors will also have :attr:" -"`~definition.__name__` and :attr:`__doc__` attributes (properties, getsets, " +"`~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 やメンバーです。後者のふたつは C で定義されており、個々の" -"型に特有のテストも行います。そのため、Python の実装よりもより確実です。通常、" -"データデスクリプタは :attr:`~definition.__name__` や :attr:`__doc__` 属性を" -"持ちます (プロパティ、 getset 、メンバーは両方の属性を持っています) が、保証" -"されているわけではありません。" -#: ../../library/inspect.rst:502 +#: ../../library/inspect.rst:514 msgid "Return ``True`` if the object is a getset descriptor." msgstr "オブジェクトが getset デスクリプタの場合に ``True`` を返します。" -#: ../../library/inspect.rst:506 +#: ../../library/inspect.rst:518 msgid "" "getsets are attributes defined in extension modules via :c:type:" "`PyGetSetDef` structures. For Python implementations without such types, " @@ -862,11 +839,11 @@ msgstr "" "属性のことです。そのような型を持たない Python 実装の場合は、このメソッドは常" "に ``False`` を返します。" -#: ../../library/inspect.rst:513 +#: ../../library/inspect.rst:525 msgid "Return ``True`` if the object is a member descriptor." msgstr "オブジェクトがメンバーデスクリプタの場合に ``True`` を返します。" -#: ../../library/inspect.rst:517 +#: ../../library/inspect.rst:529 msgid "" "Member descriptors are attributes defined in extension modules via :c:type:" "`PyMemberDef` structures. For Python implementations without such types, " @@ -876,11 +853,11 @@ msgstr "" "て定義された属性のことです。そのような型を持たない Python 実装の場合は、この" "メソッドは常に ``False`` を返します。" -#: ../../library/inspect.rst:525 +#: ../../library/inspect.rst:537 msgid "Retrieving source code" msgstr "ソースコードの情報取得" -#: ../../library/inspect.rst:529 +#: ../../library/inspect.rst:541 msgid "" "Get the documentation string for an object, cleaned up with :func:" "`cleandoc`. If the documentation string for an object is not provided and " @@ -889,13 +866,13 @@ msgid "" "documentation string is invalid or missing." msgstr "" -#: ../../library/inspect.rst:535 +#: ../../library/inspect.rst:547 msgid "Documentation strings are now inherited if not overridden." msgstr "" "ドキュメンテーション文字列がオーバーライドされていない場合は継承されるように" "なりました。" -#: ../../library/inspect.rst:541 +#: ../../library/inspect.rst:553 msgid "" "Return in a single string any lines of comments immediately preceding the " "object's source code (for a class, function, or method), or at the top of " @@ -904,7 +881,7 @@ msgid "" "been defined in C or the interactive shell." msgstr "" -#: ../../library/inspect.rst:550 +#: ../../library/inspect.rst:562 msgid "" "Return the name of the (text or binary) file in which an object was defined. " "This will fail with a :exc:`TypeError` if the object is a built-in module, " @@ -914,20 +891,20 @@ msgstr "" "す。オブジェクトが組み込みモジュール、クラス、関数の場合は :exc:`TypeError` " "例外が発生します。" -#: ../../library/inspect.rst:557 +#: ../../library/inspect.rst:569 msgid "" "Try to guess which module an object was defined in. Return ``None`` if the " "module cannot be determined." msgstr "" -#: ../../library/inspect.rst:563 +#: ../../library/inspect.rst:575 msgid "" "Return the name of the Python source file in which an object was defined or " "``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 "" -#: ../../library/inspect.rst:571 +#: ../../library/inspect.rst:583 msgid "" "Return a list of source lines and starting line number for an object. The " "argument may be a module, class, method, function, traceback, frame, or code " @@ -938,7 +915,7 @@ msgid "" "built-in module, class, or function." msgstr "" -#: ../../library/inspect.rst:580 ../../library/inspect.rst:594 +#: ../../library/inspect.rst:592 ../../library/inspect.rst:606 msgid "" ":exc:`OSError` is raised instead of :exc:`IOError`, now an alias of the " "former." @@ -946,7 +923,7 @@ msgstr "" ":exc:`IOError` の代わりに :exc:`OSError` を送出します。前者は後者のエイリアス" "です。" -#: ../../library/inspect.rst:587 +#: ../../library/inspect.rst:599 msgid "" "Return the text of the source code for an object. The argument may be a " "module, class, method, function, traceback, frame, or code object. The " @@ -955,14 +932,14 @@ msgid "" "object is a built-in module, class, or function." msgstr "" -#: ../../library/inspect.rst:601 +#: ../../library/inspect.rst:613 msgid "" "Clean up indentation from docstrings that are indented to line up with " "blocks of code." msgstr "" "コードブロックと位置を合わせるためのインデントを docstring から削除します。" -#: ../../library/inspect.rst:604 +#: ../../library/inspect.rst:616 msgid "" "All leading whitespace is removed from the first line. Any leading " "whitespace that can be uniformly removed from the second line onwards is " @@ -973,22 +950,22 @@ msgstr "" "2行目以降では全行で同じ数の行頭の空白文字が、削除できるだけ削除されます。\n" "その後、先頭と末尾の空白行が削除され、全てのタブが空白に展開されます。" -#: ../../library/inspect.rst:613 +#: ../../library/inspect.rst:625 msgid "Introspecting callables with the Signature object" msgstr "Signature オブジェクトで呼び出し可能オブジェクトを内省する" -#: ../../library/inspect.rst:617 +#: ../../library/inspect.rst:629 msgid "" -"The Signature object represents the call signature of a callable object and " -"its return annotation. To retrieve a Signature object, use the :func:" -"`signature` function." +"The :class:`Signature` object represents the call signature of a callable " +"object and its return annotation. To retrieve a :class:`!Signature` object, " +"use the :func:`!signature` function." msgstr "" -#: ../../library/inspect.rst:623 -msgid "Return a :class:`Signature` object for the given ``callable``::" -msgstr "与えられた ``callable`` の :class:`Signature` オブジェクトを返します::" +#: ../../library/inspect.rst:636 +msgid "Return a :class:`Signature` object for the given *callable*:" +msgstr "" -#: ../../library/inspect.rst:640 +#: ../../library/inspect.rst:655 msgid "" "Accepts a wide range of Python callables, from plain functions and classes " "to :func:`functools.partial` objects." @@ -996,65 +973,64 @@ msgstr "" "単純な関数やクラスから、 :func:`functools.partial` オブジェクトまで、幅広い " "Python の呼び出し可能なオブジェクトを受け付けます。" -#: ../../library/inspect.rst:643 +#: ../../library/inspect.rst:658 msgid "" "If the passed object has a ``__signature__`` attribute, this function " "returns it without further computations." msgstr "" -#: ../../library/inspect.rst:646 +#: ../../library/inspect.rst:661 msgid "" "For objects defined in modules using stringized annotations (``from " "__future__ import annotations``), :func:`signature` will attempt to " -"automatically un-stringize the annotations using :func:`inspect." -"get_annotations()`. The ``global``, ``locals``, and ``eval_str`` parameters " -"are passed into :func:`inspect.get_annotations()` when resolving the " -"annotations; see the documentation for :func:`inspect.get_annotations()` for " -"instructions on how to use these parameters." +"automatically un-stringize the annotations using :func:`get_annotations`. " +"The *globals*, *locals*, and *eval_str* parameters are passed into :func:" +"`get_annotations` when resolving the annotations; see the documentation for :" +"func:`get_annotations` for instructions on how to use these parameters." msgstr "" -#: ../../library/inspect.rst:655 +#: ../../library/inspect.rst:670 msgid "" "Raises :exc:`ValueError` if no signature can be provided, and :exc:" "`TypeError` if that type of object is not supported. Also, if the " -"annotations are stringized, and ``eval_str`` is not false, the ``eval()`` " -"call(s) to un-stringize the annotations could potentially raise any kind of " -"exception." +"annotations are stringized, and *eval_str* is not false, the ``eval()`` " +"call(s) to un-stringize the annotations in :func:`get_annotations` could " +"potentially raise any kind of exception." msgstr "" -#: ../../library/inspect.rst:661 +#: ../../library/inspect.rst:676 msgid "" "A slash(/) in the signature of a function denotes that the parameters prior " "to it are positional-only. For more info, see :ref:`the FAQ entry on " "positional-only parameters `." msgstr "" -#: ../../library/inspect.rst:665 +#: ../../library/inspect.rst:680 msgid "" -"``follow_wrapped`` parameter. Pass ``False`` to get a signature of " -"``callable`` specifically (``callable.__wrapped__`` will not be used to " +"The *follow_wrapped* parameter was added. Pass ``False`` to get a signature " +"of *callable* specifically (``callable.__wrapped__`` will not be used to " "unwrap decorated callables.)" msgstr "" -#: ../../library/inspect.rst:670 -msgid "``globals``, ``locals``, and ``eval_str`` parameters." +#: ../../library/inspect.rst:686 ../../library/inspect.rst:789 +msgid "The *globals*, *locals*, and *eval_str* parameters were added." msgstr "" -#: ../../library/inspect.rst:675 +#: ../../library/inspect.rst:691 msgid "" "Some callables may not be introspectable in certain implementations of " "Python. For example, in CPython, some built-in functions defined in C " "provide no metadata about their arguments." msgstr "" -#: ../../library/inspect.rst:682 +#: ../../library/inspect.rst:698 msgid "" -"A Signature object represents the call signature of a function and its " -"return annotation. For each parameter accepted by the function it stores a :" -"class:`Parameter` object in its :attr:`parameters` collection." +"A :class:`!Signature` object represents the call signature of a function and " +"its return annotation. For each parameter accepted by the function it " +"stores a :class:`Parameter` object in its :attr:`parameters` collection." msgstr "" -#: ../../library/inspect.rst:686 +#: ../../library/inspect.rst:703 msgid "" "The optional *parameters* argument is a sequence of :class:`Parameter` " "objects, which is validated to check that there are no parameters with " @@ -1063,45 +1039,41 @@ msgid "" "defaults follow parameters without defaults." msgstr "" -#: ../../library/inspect.rst:692 +#: ../../library/inspect.rst:709 msgid "" -"The optional *return_annotation* argument, can be an arbitrary Python " -"object, is the \"return\" annotation of the callable." +"The optional *return_annotation* argument can be an arbitrary Python object. " +"It represents the \"return\" annotation of the callable." msgstr "" -#: ../../library/inspect.rst:695 +#: ../../library/inspect.rst:712 msgid "" -"Signature objects are *immutable*. Use :meth:`Signature.replace` to make a " -"modified copy." +":class:`!Signature` objects are *immutable*. Use :meth:`Signature.replace` " +"to make a modified copy." msgstr "" -"Signature オブジェクトは *イミュータブル* です。変更されたコピーを作成するに" -"は :meth:`Signature.replace` を使用してください。" -#: ../../library/inspect.rst:698 -msgid "Signature objects are picklable and :term:`hashable`." +#: ../../library/inspect.rst:715 +msgid ":class:`!Signature` objects are now picklable and :term:`hashable`." msgstr "" -"Signature オブジェクトがピックル並びに :term:`ハッシュ可能 ` になり" -"ました。" -#: ../../library/inspect.rst:703 +#: ../../library/inspect.rst:720 msgid "A special class-level marker to specify absence of a return annotation." msgstr "return アノテーションがないことを指すクラスレベルの特殊マーカです。" -#: ../../library/inspect.rst:707 +#: ../../library/inspect.rst:724 msgid "" "An ordered mapping of parameters' names to the corresponding :class:" "`Parameter` objects. Parameters appear in strict definition order, " "including keyword-only parameters." msgstr "" -#: ../../library/inspect.rst:711 ../../library/inspect.rst:1039 +#: ../../library/inspect.rst:728 ../../library/inspect.rst:1065 msgid "" "Python only explicitly guaranteed that it preserved the declaration order of " "keyword-only parameters as of version 3.7, although in practice this order " "had always been preserved in Python 3." msgstr "" -#: ../../library/inspect.rst:718 +#: ../../library/inspect.rst:735 msgid "" "The \"return\" annotation for the callable. If the callable has no " "\"return\" annotation, this attribute is set to :attr:`Signature.empty`." @@ -1110,14 +1082,14 @@ msgstr "" "ジェクトに \"return\" アノテーションがない場合、この属性は :attr:`Signature." "empty` に設定されます。" -#: ../../library/inspect.rst:723 +#: ../../library/inspect.rst:740 msgid "" "Create a mapping from positional and keyword arguments to parameters. " "Returns :class:`BoundArguments` if ``*args`` and ``**kwargs`` match the " "signature, or raises a :exc:`TypeError`." msgstr "" -#: ../../library/inspect.rst:729 +#: ../../library/inspect.rst:746 msgid "" "Works the same way as :meth:`Signature.bind`, but allows the omission of " "some required arguments (mimics :func:`functools.partial` behavior.) " @@ -1125,75 +1097,67 @@ msgid "" "arguments do not match the signature." msgstr "" -#: ../../library/inspect.rst:736 +#: ../../library/inspect.rst:753 msgid "" -"Create a new Signature instance based on the instance :meth:`replace` was " -"invoked on. It is possible to pass different ``parameters`` and/or " -"``return_annotation`` to override the corresponding properties of the base " -"signature. To remove return_annotation from the copied Signature, pass in :" -"attr:`Signature.empty`." +"Create a new :class:`Signature` instance based on the instance :meth:" +"`replace` was invoked on. It is possible to pass different *parameters* and/" +"or *return_annotation* to override the corresponding properties of the base " +"signature. To remove ``return_annotation`` from the copied :class:`!" +"Signature`, pass in :attr:`Signature.empty`." msgstr "" -#: ../../library/inspect.rst:754 +#: ../../library/inspect.rst:773 msgid "" "Return a :class:`Signature` (or its subclass) object for a given callable " -"``obj``. Pass ``follow_wrapped=False`` to get a signature of ``obj`` " -"without unwrapping its ``__wrapped__`` chain. ``globalns`` and ``localns`` " -"will be used as the namespaces when resolving annotations." +"*obj*." msgstr "" -#: ../../library/inspect.rst:759 -msgid "This method simplifies subclassing of :class:`Signature`::" -msgstr "このメソッドは :class:`Signature` のサブクラス化を単純化します::" - -#: ../../library/inspect.rst:766 -msgid "Its behavior is otherwise identical to that of :func:`signature`." +#: ../../library/inspect.rst:776 +msgid "This method simplifies subclassing of :class:`Signature`:" msgstr "" -#: ../../library/inspect.rst:770 -msgid "``globalns`` and ``localns`` parameters." +#: ../../library/inspect.rst:785 +msgid "Its behavior is otherwise identical to that of :func:`signature`." msgstr "" -#: ../../library/inspect.rst:776 +#: ../../library/inspect.rst:795 msgid "" -"Parameter objects are *immutable*. Instead of modifying a Parameter object, " -"you can use :meth:`Parameter.replace` to create a modified copy." +":class:`!Parameter` objects are *immutable*. Instead of modifying a :class:`!" +"Parameter` object, you can use :meth:`Parameter.replace` to create a " +"modified copy." msgstr "" -"Parameter オブジェクトは *イミュータブル* です。変更されたコピーを作成するに" -"は :meth:`Parameter.replace` を使用してください。" -#: ../../library/inspect.rst:779 -msgid "Parameter objects are picklable and :term:`hashable`." +#: ../../library/inspect.rst:799 +msgid "Parameter objects are now picklable and :term:`hashable`." msgstr "" -"Parameter オブジェクトがピックル並びに :term:`ハッシュ可能 ` になり" -"ました。" -#: ../../library/inspect.rst:784 +#: ../../library/inspect.rst:804 msgid "" "A special class-level marker to specify absence of default values and " "annotations." msgstr "" "デフォルト値とアノテーションがないことを指すクラスレベルの特殊マーカです。" -#: ../../library/inspect.rst:789 +#: ../../library/inspect.rst:809 msgid "" "The name of the parameter as a string. The name must be a valid Python " "identifier." msgstr "" "仮引数名 (文字列) です。名前は有効な Python 識別子でなければなりません。" -#: ../../library/inspect.rst:794 +#: ../../library/inspect.rst:814 msgid "" "CPython generates implicit parameter names of the form ``.0`` on the code " "objects used to implement comprehensions and generator expressions." msgstr "" -#: ../../library/inspect.rst:798 +#: ../../library/inspect.rst:818 msgid "" -"These parameter names are exposed by this module as names like ``implicit0``." +"These parameter names are now exposed by this module as names like " +"``implicit0``." msgstr "" -#: ../../library/inspect.rst:804 +#: ../../library/inspect.rst:824 msgid "" "The default value for the parameter. If the parameter has no default value, " "this attribute is set to :attr:`Parameter.empty`." @@ -1201,7 +1165,7 @@ msgstr "" "引数のデフォルト値です。引数にデフォルト値がない場合、この属性は :attr:" "`Parameter.empty` に設定されます。" -#: ../../library/inspect.rst:809 +#: ../../library/inspect.rst:829 msgid "" "The annotation for the parameter. If the parameter has no annotation, this " "attribute is set to :attr:`Parameter.empty`." @@ -1209,37 +1173,37 @@ msgstr "" "引数のアノテーションです。引数にアノテーションがない場合、この属性は :attr:" "`Parameter.empty` に設定されます。" -#: ../../library/inspect.rst:814 +#: ../../library/inspect.rst:834 msgid "" "Describes how argument values are bound to the parameter. The possible " "values are accessible via :class:`Parameter` (like ``Parameter." "KEYWORD_ONLY``), and support comparison and ordering, in the following order:" msgstr "" -#: ../../library/inspect.rst:821 +#: ../../library/inspect.rst:841 msgid "Name" msgstr "名前" -#: ../../library/inspect.rst:821 +#: ../../library/inspect.rst:841 msgid "Meaning" msgstr "意味" -#: ../../library/inspect.rst:823 +#: ../../library/inspect.rst:843 msgid "*POSITIONAL_ONLY*" msgstr "*POSITIONAL_ONLY*" -#: ../../library/inspect.rst:823 +#: ../../library/inspect.rst:843 msgid "" "Value must be supplied as a positional argument. Positional only parameters " "are those which appear before a ``/`` entry (if present) in a Python " "function definition." msgstr "" -#: ../../library/inspect.rst:828 +#: ../../library/inspect.rst:848 msgid "*POSITIONAL_OR_KEYWORD*" msgstr "*POSITIONAL_OR_KEYWORD*" -#: ../../library/inspect.rst:828 +#: ../../library/inspect.rst:848 msgid "" "Value may be supplied as either a keyword or positional argument (this is " "the standard binding behaviour for functions implemented in Python.)" @@ -1247,11 +1211,11 @@ msgstr "" "値をキーワードまたは位置引数として渡すことができます (これは Python で実装さ" "れた関数の標準的な束縛動作です)。" -#: ../../library/inspect.rst:833 +#: ../../library/inspect.rst:853 msgid "*VAR_POSITIONAL*" msgstr "*VAR_POSITIONAL*" -#: ../../library/inspect.rst:833 +#: ../../library/inspect.rst:853 msgid "" "A tuple of positional arguments that aren't bound to any other parameter. " "This corresponds to a ``*args`` parameter in a Python function definition." @@ -1259,11 +1223,11 @@ msgstr "" "その他の仮引数に束縛されていない位置引数のタプルです。Python の関数定義におけ" "る ``*args`` 仮引数に対応します。" -#: ../../library/inspect.rst:838 +#: ../../library/inspect.rst:858 msgid "*KEYWORD_ONLY*" msgstr "*KEYWORD_ONLY*" -#: ../../library/inspect.rst:838 +#: ../../library/inspect.rst:858 msgid "" "Value must be supplied as a keyword argument. Keyword only parameters are " "those which appear after a ``*`` or ``*args`` entry in a Python function " @@ -1272,11 +1236,11 @@ msgstr "" "値をキーワード引数として渡さなければなりません。キーワード専用引数は Python " "の関数定義において ``*`` や ``*args`` の後に現れる引数です。" -#: ../../library/inspect.rst:843 +#: ../../library/inspect.rst:863 msgid "*VAR_KEYWORD*" msgstr "*VAR_KEYWORD*" -#: ../../library/inspect.rst:843 +#: ../../library/inspect.rst:863 msgid "" "A dict of keyword arguments that aren't bound to any other parameter. This " "corresponds to a ``**kwargs`` parameter in a Python function definition." @@ -1284,121 +1248,116 @@ msgstr "" "その他の仮引数に束縛されていないキーワード引数の辞書です。Python の関数定義に" "おける ``**kwargs`` 仮引数に対応します。" -#: ../../library/inspect.rst:849 -msgid "Example: print all keyword-only arguments without default values::" -msgstr "例: デフォルト値のない全てのキーワード専用引数を出力します::" +#: ../../library/inspect.rst:869 +msgid "Example: print all keyword-only arguments without default values:" +msgstr "" -#: ../../library/inspect.rst:863 -msgid "Describes a enum value of Parameter.kind." +#: ../../library/inspect.rst:885 +msgid "Describes a enum value of :attr:`Parameter.kind`." msgstr "" -#: ../../library/inspect.rst:867 -msgid "Example: print all descriptions of arguments::" +#: ../../library/inspect.rst:889 +msgid "Example: print all descriptions of arguments:" msgstr "" -#: ../../library/inspect.rst:882 +#: ../../library/inspect.rst:906 msgid "" -"Create a new Parameter instance based on the instance replaced was invoked " -"on. To override a :class:`Parameter` attribute, pass the corresponding " -"argument. To remove a default value or/and an annotation from a Parameter, " -"pass :attr:`Parameter.empty`." +"Create a new :class:`Parameter` instance based on the instance replaced was " +"invoked on. To override a :class:`!Parameter` attribute, pass the " +"corresponding argument. To remove a default value or/and an annotation from " +"a :class:`!Parameter`, pass :attr:`Parameter.empty`." msgstr "" -#: ../../library/inspect.rst:900 +#: ../../library/inspect.rst:924 msgid "" -"In Python 3.3 Parameter objects were allowed to have ``name`` set to " -"``None`` if their ``kind`` was set to ``POSITIONAL_ONLY``. This is no longer " -"permitted." +"In Python 3.3 :class:`Parameter` objects were allowed to have ``name`` set " +"to ``None`` if their ``kind`` was set to ``POSITIONAL_ONLY``. This is no " +"longer permitted." msgstr "" -"Python 3.3 では、Parameter オブジェクトは ``kind`` が ``POSITIONAL_ONLY`` の" -"場合 ``None`` に設定された ``name`` を持つことができました。 これはもう許可さ" -"れません。" -#: ../../library/inspect.rst:907 +#: ../../library/inspect.rst:931 msgid "" "Result of a :meth:`Signature.bind` or :meth:`Signature.bind_partial` call. " "Holds the mapping of arguments to the function's parameters." msgstr "" -#: ../../library/inspect.rst:912 +#: ../../library/inspect.rst:936 msgid "" "A mutable mapping of parameters' names to arguments' values. Contains only " "explicitly bound arguments. Changes in :attr:`arguments` will reflect in :" "attr:`args` and :attr:`kwargs`." msgstr "" -#: ../../library/inspect.rst:916 +#: ../../library/inspect.rst:940 msgid "" "Should be used in conjunction with :attr:`Signature.parameters` for any " "argument processing purposes." msgstr "" -#: ../../library/inspect.rst:921 +#: ../../library/inspect.rst:945 msgid "" "Arguments for which :meth:`Signature.bind` or :meth:`Signature.bind_partial` " "relied on a default value are skipped. However, if needed, use :meth:" "`BoundArguments.apply_defaults` to add them." msgstr "" -#: ../../library/inspect.rst:926 +#: ../../library/inspect.rst:950 msgid "" ":attr:`arguments` is now of type :class:`dict`. Formerly, it was of type :" "class:`collections.OrderedDict`." msgstr "" -#: ../../library/inspect.rst:932 +#: ../../library/inspect.rst:956 msgid "" "A tuple of positional arguments values. Dynamically computed from the :attr:" "`arguments` attribute." msgstr "" "位置引数の値のタプルです。:attr:`arguments` 属性から動的に計算されます。" -#: ../../library/inspect.rst:937 +#: ../../library/inspect.rst:961 msgid "" "A dict of keyword arguments values. Dynamically computed from the :attr:" "`arguments` attribute." msgstr "" "キーワード引数の値の辞書です。:attr:`arguments` 属性から動的に計算されます。" -#: ../../library/inspect.rst:942 +#: ../../library/inspect.rst:966 msgid "A reference to the parent :class:`Signature` object." msgstr "親の :class:`Signature` オブジェクトへの参照です。" -#: ../../library/inspect.rst:946 +#: ../../library/inspect.rst:970 msgid "Set default values for missing arguments." msgstr "存在しない引数のデフォルト値を設定します。" -#: ../../library/inspect.rst:948 +#: ../../library/inspect.rst:972 msgid "" "For variable-positional arguments (``*args``) the default is an empty tuple." msgstr "" -#: ../../library/inspect.rst:951 +#: ../../library/inspect.rst:975 msgid "" "For variable-keyword arguments (``**kwargs``) the default is an empty dict." msgstr "" -#: ../../library/inspect.rst:964 +#: ../../library/inspect.rst:988 msgid "" "The :attr:`args` and :attr:`kwargs` properties can be used to invoke " -"functions::" +"functions:" msgstr "" -":attr:`args` および :attr:`kwargs` 属性を使用して関数を呼び出すことができま" -"す::" -#: ../../library/inspect.rst:977 +#: ../../library/inspect.rst:1003 msgid ":pep:`362` - Function Signature Object." msgstr ":pep:`362`: - 関数シグニチャオブジェクト" -#: ../../library/inspect.rst:978 +#: ../../library/inspect.rst:1004 msgid "The detailed specification, implementation details and examples." msgstr "" -#: ../../library/inspect.rst:984 +#: ../../library/inspect.rst:1010 msgid "Classes and functions" msgstr "クラスと関数" -#: ../../library/inspect.rst:988 +#: ../../library/inspect.rst:1014 msgid "" "Arrange the given list of classes into a hierarchy of nested lists. Where a " "nested list appears, it contains classes derived from the class whose entry " @@ -1414,13 +1373,13 @@ msgstr "" "スは戻り値のリスト内に一つだけしか格納されません。真でなければ、多重継承を利" "用したクラスとその派生クラスは複数回格納される場合があります。" -#: ../../library/inspect.rst:999 +#: ../../library/inspect.rst:1025 msgid "" "Get the names and default values of a Python function's parameters. A :term:" "`named tuple` is returned:" msgstr "" -#: ../../library/inspect.rst:1002 +#: ../../library/inspect.rst:1028 msgid "" "``FullArgSpec(args, varargs, varkw, defaults, kwonlyargs, kwonlydefaults, " "annotations)``" @@ -1428,7 +1387,7 @@ msgstr "" "``FullArgSpec(args, varargs, varkw, defaults, kwonlyargs, kwonlydefaults, " "annotations)``" -#: ../../library/inspect.rst:1005 +#: ../../library/inspect.rst:1031 msgid "" "*args* is a list of the positional parameter names. *varargs* is the name of " "the ``*`` parameter or ``None`` if arbitrary positional arguments are not " @@ -1443,7 +1402,7 @@ msgid "" "report the function return value annotation (if any)." msgstr "" -#: ../../library/inspect.rst:1020 +#: ../../library/inspect.rst:1046 msgid "" "Note that :func:`signature` and :ref:`Signature Object ` provide the recommended API for callable introspection, and support " @@ -1453,14 +1412,14 @@ msgid "" "``inspect`` module API." msgstr "" -#: ../../library/inspect.rst:1027 +#: ../../library/inspect.rst:1053 msgid "" "This function is now based on :func:`signature`, but still ignores " "``__wrapped__`` attributes and includes the already bound first parameter in " "the signature output for bound methods." msgstr "" -#: ../../library/inspect.rst:1032 +#: ../../library/inspect.rst:1058 msgid "" "This method was previously documented as deprecated in favour of :func:" "`signature` in Python 3.5, but that decision has been reversed in order to " @@ -1468,7 +1427,7 @@ msgid "" "code migrating away from the legacy :func:`getargspec` API." msgstr "" -#: ../../library/inspect.rst:1047 +#: ../../library/inspect.rst:1073 msgid "" "Get information about arguments passed into a particular frame. A :term:" "`named tuple` ``ArgInfo(args, varargs, keywords, locals)`` is returned. " @@ -1482,11 +1441,11 @@ msgstr "" "引数の名前で、引数がなければ ``None`` となります。 *locals* は指定したフレー" "ムのローカル変数の辞書です。" -#: ../../library/inspect.rst:1054 ../../library/inspect.rst:1064 +#: ../../library/inspect.rst:1080 ../../library/inspect.rst:1090 msgid "This function was inadvertently marked as deprecated in Python 3.5." msgstr "" -#: ../../library/inspect.rst:1059 +#: ../../library/inspect.rst:1085 msgid "" "Format a pretty argument spec from the four values returned by :func:" "`getargvalues`. The format\\* arguments are the corresponding optional " @@ -1495,7 +1454,7 @@ msgstr "" ":func:`getargvalues` で取得した4つの値を読みやすく整形します。 format\\* 引数" "はオプションで、名前と値を文字列に変換する整形関数を指定することができます。" -#: ../../library/inspect.rst:1069 +#: ../../library/inspect.rst:1095 msgid "" "Return a tuple of class cls's base classes, including cls, in method " "resolution order. No class appears more than once in this tuple. Note that " @@ -1507,7 +1466,7 @@ msgstr "" "優先順位はクラスの型によって異なります。非常に特殊なユーザ定義のメタクラスを" "使用していない限り、*cls* が戻り値の先頭要素となります。" -#: ../../library/inspect.rst:1077 +#: ../../library/inspect.rst:1103 msgid "" "Bind the *args* and *kwds* to the argument names of the Python function or " "method *func*, as if it was called with them. For bound methods, bind also " @@ -1517,22 +1476,14 @@ msgid "" "In case of invoking *func* incorrectly, i.e. whenever ``func(*args, " "**kwds)`` would raise an exception because of incompatible signature, an " "exception of the same type and the same or similar message is raised. For " -"example::" -msgstr "" -"*args* と *kwds* を、Python の関数もしくはメソッド *func* を呼び出した場合と" -"同じように引数名に束縛します。束縛済みメソッド(bound method)の場合、最初の引" -"数(慣習的に ``self`` という名前が付けられます)にも、関連づけられたインスタン" -"スを束縛します。引数名 (``*`` や ``**`` 引数が存在すればその名前も) に " -"*args* と *kwds* からの値をマップした辞書を返します。*func* を正しく呼び出せ" -"ない場合、つまり ``func(*args, **kwds)`` がシグネチャの不一致のために例外を投" -"げるような場合には、それと同じ型で同じか似ているメッセージの例外を発生させま" -"す。例::" - -#: ../../library/inspect.rst:1101 +"example:" +msgstr "" + +#: ../../library/inspect.rst:1129 msgid "Use :meth:`Signature.bind` and :meth:`Signature.bind_partial` instead." msgstr "" -#: ../../library/inspect.rst:1107 +#: ../../library/inspect.rst:1135 msgid "" "Get the mapping of external name references in a Python function or method " "*func* to their current values. A :term:`named tuple` " @@ -1544,19 +1495,19 @@ msgid "" "builtins." msgstr "" -#: ../../library/inspect.rst:1116 +#: ../../library/inspect.rst:1144 msgid "" ":exc:`TypeError` is raised if *func* is not a Python function or method." msgstr "" "*func* が Python の関数やメソッドでない場合 :exc:`TypeError` が送出されます。" -#: ../../library/inspect.rst:1123 +#: ../../library/inspect.rst:1151 msgid "" "Get the object wrapped by *func*. It follows the chain of :attr:" "`__wrapped__` attributes returning the last object in the chain." msgstr "" -#: ../../library/inspect.rst:1126 +#: ../../library/inspect.rst:1154 msgid "" "*stop* is an optional callback accepting an object in the wrapper chain as " "its sole argument that allows the unwrapping to be terminated early if the " @@ -1566,68 +1517,68 @@ msgid "" "``__signature__`` attribute defined." msgstr "" -#: ../../library/inspect.rst:1133 +#: ../../library/inspect.rst:1161 msgid ":exc:`ValueError` is raised if a cycle is encountered." msgstr "" -#: ../../library/inspect.rst:1140 +#: ../../library/inspect.rst:1168 msgid "Compute the annotations dict for an object." msgstr "" -#: ../../library/inspect.rst:1142 +#: ../../library/inspect.rst:1170 msgid "" "``obj`` may be a callable, class, or module. Passing in an object of any " "other type raises :exc:`TypeError`." msgstr "" -#: ../../library/inspect.rst:1145 +#: ../../library/inspect.rst:1173 msgid "" "Returns a dict. ``get_annotations()`` returns a new dict every time it's " "called; calling it twice on the same object will return two different but " "equivalent dicts." msgstr "" -#: ../../library/inspect.rst:1149 +#: ../../library/inspect.rst:1177 msgid "This function handles several details for you:" msgstr "" -#: ../../library/inspect.rst:1151 +#: ../../library/inspect.rst:1179 msgid "" "If ``eval_str`` is true, values of type ``str`` will be un-stringized using :" "func:`eval()`. This is intended for use with stringized annotations (``from " "__future__ import annotations``)." msgstr "" -#: ../../library/inspect.rst:1155 +#: ../../library/inspect.rst:1183 msgid "" "If ``obj`` doesn't have an annotations dict, returns an empty dict. " "(Functions and methods always have an annotations dict; classes, modules, " "and other types of callables may not.)" msgstr "" -#: ../../library/inspect.rst:1159 +#: ../../library/inspect.rst:1187 msgid "" "Ignores inherited annotations on classes. If a class doesn't have its own " "annotations dict, returns an empty dict." msgstr "" -#: ../../library/inspect.rst:1161 +#: ../../library/inspect.rst:1189 msgid "" "All accesses to object members and dict values are done using ``getattr()`` " "and ``dict.get()`` for safety." msgstr "" -#: ../../library/inspect.rst:1163 +#: ../../library/inspect.rst:1191 msgid "Always, always, always returns a freshly created dict." msgstr "" -#: ../../library/inspect.rst:1165 +#: ../../library/inspect.rst:1193 msgid "" "``eval_str`` controls whether or not values of type ``str`` are replaced " "with the result of calling :func:`eval()` on those values:" msgstr "" -#: ../../library/inspect.rst:1168 +#: ../../library/inspect.rst:1196 msgid "" "If eval_str is true, :func:`eval()` is called on values of type ``str``. " "(Note that ``get_annotations`` doesn't catch exceptions; if :func:`eval()` " @@ -1635,12 +1586,12 @@ msgid "" "call.)" msgstr "" -#: ../../library/inspect.rst:1172 +#: ../../library/inspect.rst:1200 msgid "" "If eval_str is false (the default), values of type ``str`` are unchanged." msgstr "" -#: ../../library/inspect.rst:1174 +#: ../../library/inspect.rst:1202 msgid "" "``globals`` and ``locals`` are passed in to :func:`eval()`; see the " "documentation for :func:`eval()` for more information. If ``globals`` or " @@ -1648,35 +1599,35 @@ msgid "" "specific default, contingent on ``type(obj)``:" msgstr "" -#: ../../library/inspect.rst:1179 +#: ../../library/inspect.rst:1207 msgid "If ``obj`` is a module, ``globals`` defaults to ``obj.__dict__``." msgstr "" -#: ../../library/inspect.rst:1180 +#: ../../library/inspect.rst:1208 msgid "" "If ``obj`` is a class, ``globals`` defaults to ``sys.modules[obj.__module__]." "__dict__`` and ``locals`` defaults to the ``obj`` class namespace." msgstr "" -#: ../../library/inspect.rst:1183 +#: ../../library/inspect.rst:1211 msgid "" "If ``obj`` is a callable, ``globals`` defaults to ``obj.__globals__``, " "although if ``obj`` is a wrapped function (using ``functools." "update_wrapper()``) it is first unwrapped." msgstr "" -#: ../../library/inspect.rst:1187 +#: ../../library/inspect.rst:1215 msgid "" "Calling ``get_annotations`` is best practice for accessing the annotations " "dict of any object. See :ref:`annotations-howto` for more information on " "annotations best practices." msgstr "" -#: ../../library/inspect.rst:1197 +#: ../../library/inspect.rst:1225 msgid "The interpreter stack" msgstr "インタープリタスタック" -#: ../../library/inspect.rst:1199 +#: ../../library/inspect.rst:1227 msgid "" "Some of the following functions return :class:`FrameInfo` objects. For " "backwards compatibility these objects allow tuple-like operations on all " @@ -1684,95 +1635,95 @@ msgid "" "may be removed in the future." msgstr "" -#: ../../library/inspect.rst:1208 +#: ../../library/inspect.rst:1236 msgid "The :ref:`frame object ` that the record corresponds to." msgstr "" -#: ../../library/inspect.rst:1212 +#: ../../library/inspect.rst:1240 msgid "" "The file name associated with the code being executed by the frame this " "record corresponds to." msgstr "" -#: ../../library/inspect.rst:1217 +#: ../../library/inspect.rst:1245 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:1222 +#: ../../library/inspect.rst:1250 msgid "" "The function name that is being executed by the frame this record " "corresponds to." msgstr "" -#: ../../library/inspect.rst:1226 +#: ../../library/inspect.rst:1254 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:1231 ../../library/inspect.rst:1270 +#: ../../library/inspect.rst:1259 ../../library/inspect.rst:1298 msgid "" "The index of the current line being executed in the :attr:`code_context` " "list." msgstr "" -#: ../../library/inspect.rst:1235 +#: ../../library/inspect.rst:1263 msgid "" "A :class:`dis.Positions` object containing the start line number, end line " "number, start column offset, and end column offset associated with the " "instruction being executed by the frame this record corresponds to." msgstr "" -#: ../../library/inspect.rst:1239 +#: ../../library/inspect.rst:1267 msgid "Return a :term:`named tuple` instead of a :class:`tuple`." msgstr "" -#: ../../library/inspect.rst:1242 +#: ../../library/inspect.rst:1270 msgid "" ":class:`!FrameInfo` is now a class instance (that is backwards compatible " "with the previous :term:`named tuple`)." msgstr "" -#: ../../library/inspect.rst:1251 +#: ../../library/inspect.rst:1279 msgid "" "The file name associated with the code being executed by the frame this " "traceback corresponds to." msgstr "" -#: ../../library/inspect.rst:1256 +#: ../../library/inspect.rst:1284 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:1261 +#: ../../library/inspect.rst:1289 msgid "" "The function name that is being executed by the frame this traceback " "corresponds to." msgstr "" -#: ../../library/inspect.rst:1265 +#: ../../library/inspect.rst:1293 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:1274 +#: ../../library/inspect.rst:1302 msgid "" "A :class:`dis.Positions` object containing the start line number, end line " "number, start column offset, and end column offset associated with the " "instruction being executed by the frame this traceback corresponds to." msgstr "" -#: ../../library/inspect.rst:1279 +#: ../../library/inspect.rst:1307 msgid "" ":class:`!Traceback` is now a class instance (that is backwards compatible " "with the previous :term:`named tuple`)." msgstr "" -#: ../../library/inspect.rst:1286 +#: ../../library/inspect.rst:1314 msgid "" "Keeping references to frame objects, as found in the first element of the " "frame records these functions return, can cause your program to create " @@ -1789,7 +1740,7 @@ msgstr "" "ジェクトが解放されにくくなり、明示的に参照を削除しないとメモリ消費量が増大す" "る恐れがあります。" -#: ../../library/inspect.rst:1294 +#: ../../library/inspect.rst:1322 msgid "" "Though the cycle detector will catch these, destruction of the frames (and " "local variables) can be made deterministic by removing the cycle in a :" @@ -1801,14 +1752,14 @@ msgstr "" "されます。また、循環参照検出機能は Python のコンパイルオプションや :func:`gc." "disable` で無効とされている場合がありますので注意が必要です。例::" -#: ../../library/inspect.rst:1306 +#: ../../library/inspect.rst:1334 msgid "" "If you want to keep the frame around (for example to print a traceback " "later), you can also break reference cycles by using the :meth:`frame.clear` " "method." msgstr "" -#: ../../library/inspect.rst:1310 +#: ../../library/inspect.rst:1338 msgid "" "The optional *context* argument supported by most of these functions " "specifies the number of lines of context to return, which are centered " @@ -1818,17 +1769,17 @@ msgstr "" "ソースを含めるかを指定します。ソース行リストには、実行中の行を中心として指定" "された行数分のリストを返します。" -#: ../../library/inspect.rst:1317 +#: ../../library/inspect.rst:1345 msgid "" "Get information about a frame or traceback object. A :class:`Traceback` " "object is returned." msgstr "" -#: ../../library/inspect.rst:1320 +#: ../../library/inspect.rst:1348 msgid "A :class:`Traceback` object is returned instead of a named tuple." msgstr "" -#: ../../library/inspect.rst:1325 +#: ../../library/inspect.rst:1353 msgid "" "Get a list of :class:`FrameInfo` objects for a frame and all outer frames. " "These frames represent the calls that lead to the creation of *frame*. The " @@ -1841,8 +1792,8 @@ msgstr "" "の要素は *frame* のスタックにある最も外側のフレームのフレームレコードとなりま" "す。" -#: ../../library/inspect.rst:1330 ../../library/inspect.rst:1345 -#: ../../library/inspect.rst:1371 ../../library/inspect.rst:1386 +#: ../../library/inspect.rst:1358 ../../library/inspect.rst:1373 +#: ../../library/inspect.rst:1399 ../../library/inspect.rst:1414 msgid "" "A list of :term:`named tuples ` ``FrameInfo(frame, filename, " "lineno, function, code_context, index)`` is returned." @@ -1850,12 +1801,12 @@ msgstr "" ":term:`名前付きタプル ` ``FrameInfo(frame, filename, lineno, " "function, code_context, index)`` のリストが返されます。" -#: ../../library/inspect.rst:1335 ../../library/inspect.rst:1350 -#: ../../library/inspect.rst:1376 ../../library/inspect.rst:1391 +#: ../../library/inspect.rst:1363 ../../library/inspect.rst:1378 +#: ../../library/inspect.rst:1404 ../../library/inspect.rst:1419 msgid "A list of :class:`FrameInfo` objects is returned." msgstr "" -#: ../../library/inspect.rst:1340 +#: ../../library/inspect.rst:1368 msgid "" "Get a list of :class:`FrameInfo` objects for a traceback's frame and all " "inner frames. These frames represent calls made as a consequence of " @@ -1867,11 +1818,11 @@ msgstr "" "出しを示します。戻り値のリストの先頭は *traceback* のフレームレコードで、末尾" "の要素は例外が発生した位置を示します。" -#: ../../library/inspect.rst:1355 +#: ../../library/inspect.rst:1383 msgid "Return the frame object for the caller's stack frame." msgstr "呼び出し元のフレームオブジェクトを返します。" -#: ../../library/inspect.rst:1359 +#: ../../library/inspect.rst:1387 msgid "" "This function relies on Python stack frame support in the interpreter, which " "isn't guaranteed to exist in all implementations of Python. If running in " @@ -1882,7 +1833,7 @@ msgstr "" "Python のすべての実装に存在している保証はありません。Python スタックフレーム" "サポートのない環境では、この関数は ``None`` を返します。" -#: ../../library/inspect.rst:1367 +#: ../../library/inspect.rst:1395 msgid "" "Return a list of :class:`FrameInfo` objects for the caller's stack. The " "first entry in the returned list represents the caller; the last entry " @@ -1892,7 +1843,7 @@ msgstr "" "の要素は呼び出し元のフレームレコードで、末尾の要素はスタックにある最も外側の" "フレームのフレームレコードとなります。" -#: ../../library/inspect.rst:1381 +#: ../../library/inspect.rst:1409 msgid "" "Return a list of :class:`FrameInfo` objects for the stack between the " "current frame and the frame in which an exception currently being handled " @@ -1903,32 +1854,32 @@ msgstr "" "ブジェクトのリストを返します。最初の要素は呼び出し元のフレームレコードで、末" "尾の要素は例外が発生した位置を示します。" -#: ../../library/inspect.rst:1395 +#: ../../library/inspect.rst:1423 msgid "Fetching attributes statically" msgstr "属性の静的なフェッチ" -#: ../../library/inspect.rst:1397 +#: ../../library/inspect.rst:1425 msgid "" "Both :func:`getattr` and :func:`hasattr` can trigger code execution when " "fetching or checking for the existence of attributes. Descriptors, like " -"properties, will be invoked and :meth:`__getattr__` and :meth:" -"`__getattribute__` may be called." +"properties, will be invoked and :meth:`~object.__getattr__` and :meth:" +"`~object.__getattribute__` may be called." msgstr "" -#: ../../library/inspect.rst:1402 +#: ../../library/inspect.rst:1431 msgid "" "For cases where you want passive introspection, like documentation tools, " "this can be inconvenient. :func:`getattr_static` has the same signature as :" "func:`getattr` but avoids executing code when it fetches attributes." msgstr "" -#: ../../library/inspect.rst:1408 +#: ../../library/inspect.rst:1437 msgid "" "Retrieve attributes without triggering dynamic lookup via the descriptor " -"protocol, :meth:`__getattr__` or :meth:`__getattribute__`." +"protocol, :meth:`~object.__getattr__` or :meth:`~object.__getattribute__`." msgstr "" -#: ../../library/inspect.rst:1411 +#: ../../library/inspect.rst:1441 msgid "" "Note: this function may not be able to retrieve all attributes that getattr " "can fetch (like dynamically created attributes) and may find attributes that " @@ -1936,31 +1887,31 @@ msgid "" "return descriptors objects instead of instance members." msgstr "" -#: ../../library/inspect.rst:1417 +#: ../../library/inspect.rst:1447 msgid "" "If the instance :attr:`~object.__dict__` is shadowed by another member (for " "example a property) then this function will be unable to find instance " "members." msgstr "" -#: ../../library/inspect.rst:1423 +#: ../../library/inspect.rst:1453 msgid "" ":func:`getattr_static` does not resolve descriptors, for example slot " "descriptors or getset descriptors on objects implemented in C. The " "descriptor object is returned instead of the underlying attribute." msgstr "" -#: ../../library/inspect.rst:1427 +#: ../../library/inspect.rst:1457 msgid "" "You can handle these with code like the following. Note that for arbitrary " "getset descriptors invoking these may trigger code execution::" msgstr "" -#: ../../library/inspect.rst:1453 +#: ../../library/inspect.rst:1483 msgid "Current State of Generators, Coroutines, and Asynchronous Generators" msgstr "" -#: ../../library/inspect.rst:1455 +#: ../../library/inspect.rst:1485 msgid "" "When implementing coroutine schedulers and for other advanced uses of " "generators, it is useful to determine whether a generator is currently " @@ -1969,32 +1920,32 @@ msgid "" "generator to be determined easily." msgstr "" -#: ../../library/inspect.rst:1463 +#: ../../library/inspect.rst:1493 msgid "Get current state of a generator-iterator." msgstr "ジェネレータイテレータの現在の状態を取得します。" -#: ../../library/inspect.rst:1465 ../../library/inspect.rst:1481 -#: ../../library/inspect.rst:1498 +#: ../../library/inspect.rst:1495 ../../library/inspect.rst:1511 +#: ../../library/inspect.rst:1528 msgid "Possible states are:" msgstr "取り得る状態は:" -#: ../../library/inspect.rst:1467 +#: ../../library/inspect.rst:1497 msgid "GEN_CREATED: Waiting to start execution." msgstr "GEN_CREATED: 実行開始を待機しています。" -#: ../../library/inspect.rst:1468 +#: ../../library/inspect.rst:1498 msgid "GEN_RUNNING: Currently being executed by the interpreter." msgstr "GEN_RUNNING: インタープリタによって現在実行されています。" -#: ../../library/inspect.rst:1469 +#: ../../library/inspect.rst:1499 msgid "GEN_SUSPENDED: Currently suspended at a yield expression." msgstr "GEN_SUSPENDED: yield 式で現在サスペンドされています。" -#: ../../library/inspect.rst:1470 +#: ../../library/inspect.rst:1500 msgid "GEN_CLOSED: Execution has completed." msgstr "GEN_CLOSED: 実行が完了しました。" -#: ../../library/inspect.rst:1476 +#: ../../library/inspect.rst:1506 msgid "" "Get current state of a coroutine object. The function is intended to be " "used with coroutine objects created by :keyword:`async def` functions, but " @@ -2002,23 +1953,23 @@ msgid "" "``cr_frame`` attributes." msgstr "" -#: ../../library/inspect.rst:1483 +#: ../../library/inspect.rst:1513 msgid "CORO_CREATED: Waiting to start execution." msgstr "CORO_CREATED: 実行開始を待機しています。" -#: ../../library/inspect.rst:1484 +#: ../../library/inspect.rst:1514 msgid "CORO_RUNNING: Currently being executed by the interpreter." msgstr "CORO_RUNNING: インタープリタにより現在実行中です。" -#: ../../library/inspect.rst:1485 +#: ../../library/inspect.rst:1515 msgid "CORO_SUSPENDED: Currently suspended at an await expression." msgstr "CORO_SUSPENDED: await 式により現在停止中です。" -#: ../../library/inspect.rst:1486 +#: ../../library/inspect.rst:1516 msgid "CORO_CLOSED: Execution has completed." msgstr "CORO_CLOSED: 実行が完了しました。" -#: ../../library/inspect.rst:1492 +#: ../../library/inspect.rst:1522 msgid "" "Get current state of an asynchronous generator object. The function is " "intended to be used with asynchronous iterator objects created by :keyword:" @@ -2027,23 +1978,23 @@ msgid "" "``ag_frame`` attributes." msgstr "" -#: ../../library/inspect.rst:1500 +#: ../../library/inspect.rst:1530 msgid "AGEN_CREATED: Waiting to start execution." msgstr "" -#: ../../library/inspect.rst:1501 +#: ../../library/inspect.rst:1531 msgid "AGEN_RUNNING: Currently being executed by the interpreter." msgstr "" -#: ../../library/inspect.rst:1502 +#: ../../library/inspect.rst:1532 msgid "AGEN_SUSPENDED: Currently suspended at a yield expression." msgstr "" -#: ../../library/inspect.rst:1503 +#: ../../library/inspect.rst:1533 msgid "AGEN_CLOSED: Execution has completed." msgstr "" -#: ../../library/inspect.rst:1507 +#: ../../library/inspect.rst:1537 msgid "" "The current internal state of the generator can also be queried. This is " "mostly useful for testing purposes, to ensure that internal state is being " @@ -2052,7 +2003,7 @@ msgstr "" "ジェネレータの現在の内部状態を問い合わせることも出来ます。これは主に内部状態" "が期待通り更新されているかどうかを確認するためのテストの目的に有用です。" -#: ../../library/inspect.rst:1513 +#: ../../library/inspect.rst:1543 msgid "" "Get the mapping of live local variables in *generator* to their current " "values. A dictionary is returned that maps from variable names to values. " @@ -2060,14 +2011,14 @@ msgid "" "generator, and all the same caveats apply." msgstr "" -#: ../../library/inspect.rst:1518 +#: ../../library/inspect.rst:1548 msgid "" "If *generator* is a :term:`generator` with no currently associated frame, " "then an empty dictionary is returned. :exc:`TypeError` is raised if " "*generator* is not a Python generator object." msgstr "" -#: ../../library/inspect.rst:1524 +#: ../../library/inspect.rst:1554 msgid "" "This function relies on the generator exposing a Python stack frame for " "introspection, which isn't guaranteed to be the case in all implementations " @@ -2075,79 +2026,79 @@ msgid "" "dictionary." msgstr "" -#: ../../library/inspect.rst:1533 +#: ../../library/inspect.rst:1563 msgid "" "This function is analogous to :func:`~inspect.getgeneratorlocals`, but works " "for coroutine objects created by :keyword:`async def` functions." msgstr "" -#: ../../library/inspect.rst:1540 +#: ../../library/inspect.rst:1570 msgid "" "This function is analogous to :func:`~inspect.getgeneratorlocals`, but works " "for asynchronous generator objects created by :keyword:`async def` functions " "which use the :keyword:`yield` statement." msgstr "" -#: ../../library/inspect.rst:1550 +#: ../../library/inspect.rst:1580 msgid "Code Objects Bit Flags" msgstr "" -#: ../../library/inspect.rst:1552 +#: ../../library/inspect.rst:1582 msgid "" -"Python code objects have a ``co_flags`` attribute, which is a bitmap of the " -"following flags:" +"Python code objects have a :attr:`~codeobject.co_flags` attribute, which is " +"a bitmap of the following flags:" msgstr "" -#: ../../library/inspect.rst:1557 +#: ../../library/inspect.rst:1587 msgid "The code object is optimized, using fast locals." msgstr "" -#: ../../library/inspect.rst:1561 +#: ../../library/inspect.rst:1591 msgid "" -"If set, a new dict will be created for the frame's ``f_locals`` when the " -"code object is executed." +"If set, a new dict will be created for the frame's :attr:`~frame.f_locals` " +"when the code object is executed." msgstr "" -#: ../../library/inspect.rst:1566 +#: ../../library/inspect.rst:1596 msgid "The code object has a variable positional parameter (``*args``-like)." msgstr "" -#: ../../library/inspect.rst:1570 +#: ../../library/inspect.rst:1600 msgid "The code object has a variable keyword parameter (``**kwargs``-like)." msgstr "" -#: ../../library/inspect.rst:1574 +#: ../../library/inspect.rst:1604 msgid "The flag is set when the code object is a nested function." msgstr "" -#: ../../library/inspect.rst:1578 +#: ../../library/inspect.rst:1608 msgid "" "The flag is set when the code object is a generator function, i.e. a " "generator object is returned when the code object is executed." msgstr "" -#: ../../library/inspect.rst:1583 +#: ../../library/inspect.rst:1613 msgid "" "The flag is set when the code object is a coroutine function. When the code " "object is executed it returns a coroutine object. See :pep:`492` for more " "details." msgstr "" -#: ../../library/inspect.rst:1591 +#: ../../library/inspect.rst:1621 msgid "" "The flag is used to transform generators into generator-based coroutines. " "Generator objects with this flag can be used in ``await`` expression, and " "can ``yield from`` coroutine objects. See :pep:`492` for more details." msgstr "" -#: ../../library/inspect.rst:1600 +#: ../../library/inspect.rst:1630 msgid "" "The flag is set when the code object is an asynchronous generator function. " "When the code object is executed it returns an asynchronous generator " "object. See :pep:`525` for more details." msgstr "" -#: ../../library/inspect.rst:1607 +#: ../../library/inspect.rst:1637 msgid "" "The flags are specific to CPython, and may not be defined in other Python " "implementations. Furthermore, the flags are an implementation detail, and " @@ -2155,39 +2106,39 @@ msgid "" "use public APIs from the :mod:`inspect` module for any introspection needs." msgstr "" -#: ../../library/inspect.rst:1615 +#: ../../library/inspect.rst:1645 msgid "Buffer flags" msgstr "" -#: ../../library/inspect.rst:1619 +#: ../../library/inspect.rst:1649 msgid "" "This is an :class:`enum.IntFlag` that represents the flags that can be " "passed to the :meth:`~object.__buffer__` method of objects implementing the :" "ref:`buffer protocol `." msgstr "" -#: ../../library/inspect.rst:1623 +#: ../../library/inspect.rst:1653 msgid "The meaning of the flags is explained at :ref:`buffer-request-types`." msgstr "" -#: ../../library/inspect.rst:1650 +#: ../../library/inspect.rst:1680 msgid "Command Line Interface" msgstr "コマンドラインインターフェイス" -#: ../../library/inspect.rst:1652 +#: ../../library/inspect.rst:1682 msgid "" "The :mod:`inspect` module also provides a basic introspection capability " "from the command line." msgstr "" -#: ../../library/inspect.rst:1657 +#: ../../library/inspect.rst:1687 msgid "" "By default, accepts the name of a module and prints the source of that " "module. A class or function within the module can be printed instead by " "appended a colon and the qualified name of the target object." msgstr "" -#: ../../library/inspect.rst:1663 +#: ../../library/inspect.rst:1693 msgid "" "Print information about the specified object rather than the source code" msgstr "" diff --git a/library/pathlib.po b/library/pathlib.po index d2470cb94..1a2cb6db2 100644 --- a/library/pathlib.po +++ b/library/pathlib.po @@ -17,7 +17,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3.12\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2023-11-17 14:14+0000\n" +"POT-Creation-Date: 2023-12-08 14:14+0000\n" "PO-Revision-Date: 2021-06-28 01:11+0000\n" "Last-Translator: righteous righteous, 2023\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" diff --git a/library/reprlib.po b/library/reprlib.po index 96b96071a..77cbe1f69 100644 --- a/library/reprlib.po +++ b/library/reprlib.po @@ -12,7 +12,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3.12\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2023-11-24 14:13+0000\n" +"POT-Creation-Date: 2023-12-08 14:14+0000\n" "PO-Revision-Date: 2021-06-28 01:12+0000\n" "Last-Translator: tomo, 2023\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" @@ -33,13 +33,10 @@ msgstr "**ソースコード:** :source:`Lib/reprlib.py`" #: ../../library/reprlib.rst:13 msgid "" -"The :mod:`reprlib` module provides a means for producing object " +"The :mod:`!reprlib` module provides a means for producing object " "representations with limits on the size of the resulting strings. This is " "used in the Python debugger and may be useful in other contexts as well." msgstr "" -":mod:`reprlib` モジュールは、結果の文字列のサイズに対する制限付きでオブジェク" -"ト表現を生成するための手段を提供します。これは Python デバッガの中で使用され" -"ており、他の文脈でも同様に役に立つかもしれません。" #: ../../library/reprlib.rst:17 msgid "This module provides a class, an instance, and a function:" @@ -100,28 +97,22 @@ msgstr "" #: ../../library/reprlib.rst:60 msgid "" "In addition to size-limiting tools, the module also provides a decorator for " -"detecting recursive calls to :meth:`__repr__` and substituting a placeholder " -"string instead." +"detecting recursive calls to :meth:`~object.__repr__` and substituting a " +"placeholder string instead." msgstr "" -"サイズを制限するツールに加えて、このモジュールはさらに :meth:`__repr__` に対" -"する再帰呼び出しの検出とプレースホルダー文字列による置換のためのデコレータを" -"提供します。" #: ../../library/reprlib.rst:69 msgid "" -"Decorator for :meth:`__repr__` methods to detect recursive calls within the " -"same thread. If a recursive call is made, the *fillvalue* is returned, " -"otherwise, the usual :meth:`__repr__` call is made. For example:" +"Decorator for :meth:`~object.__repr__` methods to detect recursive calls " +"within the same thread. If a recursive call is made, the *fillvalue* is " +"returned, otherwise, the usual :meth:`!__repr__` call is made. For example:" msgstr "" -":meth:`__repr__` メソッドに対する同一スレッド内の再帰呼び出しを検出するデコ" -"レータです。再帰呼び出しが行われている場合 *fillvalue* が返されます。そうでな" -"ければ通常の :meth:`__repr__` 呼び出しが行われます。例えば:" -#: ../../library/reprlib.rst:91 +#: ../../library/reprlib.rst:93 msgid "Repr Objects" msgstr "Reprオブジェクト" -#: ../../library/reprlib.rst:93 +#: ../../library/reprlib.rst:95 msgid "" ":class:`Repr` instances provide several attributes which can be used to " "provide size limits for the representations of different object types, and " @@ -131,18 +122,18 @@ msgstr "" "るために使えるいくつかの属性と、特定のオブジェクト型をフォーマットするメソッ" "ドを提供します。" -#: ../../library/reprlib.rst:100 +#: ../../library/reprlib.rst:102 msgid "" "This string is displayed for recursive references. It defaults to ``...``." msgstr "" -#: ../../library/reprlib.rst:108 +#: ../../library/reprlib.rst:110 msgid "" "Depth limit on the creation of recursive representations. The default is " "``6``." msgstr "再帰的な表現を作る場合の深さ制限。デフォルトは ``6`` です。" -#: ../../library/reprlib.rst:119 +#: ../../library/reprlib.rst:121 msgid "" "Limits on the number of entries represented for the named object type. The " "default is ``4`` for :attr:`maxdict`, ``5`` for :attr:`maxarray`, and ``6`` " @@ -152,7 +143,7 @@ msgstr "" "`maxdict` に対するデフォルトは ``4`` で、 :attr:`maxarray` は ``5`` 、その他" "に対しては ``6`` です。" -#: ../../library/reprlib.rst:126 +#: ../../library/reprlib.rst:128 msgid "" "Maximum number of characters in the representation for an integer. Digits " "are dropped from the middle. The default is ``40``." @@ -160,7 +151,7 @@ msgstr "" "整数の表現のおける文字数の最大値。中央の数字が抜け落ちます。デフォルトは " "``40`` です。" -#: ../../library/reprlib.rst:132 +#: ../../library/reprlib.rst:134 msgid "" "Limit on the number of characters in the representation of the string. Note " "that the \"normal\" representation of the string is used as the character " @@ -172,7 +163,7 @@ msgstr "" "合、表現が短縮されるときにこれらのエスケープシーケンスの形式は崩れます。デ" "フォルトは ``30`` です。" -#: ../../library/reprlib.rst:140 +#: ../../library/reprlib.rst:142 msgid "" "This limit is used to control the size of object types for which no specific " "formatting method is available on the :class:`Repr` object. It is applied in " @@ -182,26 +173,26 @@ msgstr "" "ないオブジェクト型のサイズをコントロールするために使われます。 :attr:" "`maxstring` と同じようなやり方で適用されます。デフォルトは ``20`` です。" -#: ../../library/reprlib.rst:147 +#: ../../library/reprlib.rst:149 msgid "" "If this attribute is set to ``None`` (the default), the output is formatted " "with no line breaks or indentation, like the standard :func:`repr`. For " "example:" msgstr "" -#: ../../library/reprlib.rst:160 +#: ../../library/reprlib.rst:162 msgid "" "If :attr:`~Repr.indent` is set to a string, each recursion level is placed " "on its own line, indented by that string:" msgstr "" -#: ../../library/reprlib.rst:181 +#: ../../library/reprlib.rst:183 msgid "" "Setting :attr:`~Repr.indent` to a positive integer value behaves as if it " "was set to a string with that number of spaces:" msgstr "" -#: ../../library/reprlib.rst:207 +#: ../../library/reprlib.rst:209 msgid "" "The equivalent to the built-in :func:`repr` that uses the formatting imposed " "by the instance." @@ -209,7 +200,7 @@ msgstr "" "このインスタンスで設定されたフォーマットを使う、組み込み :func:`repr` と等価" "なもの。" -#: ../../library/reprlib.rst:213 +#: ../../library/reprlib.rst:215 msgid "" "Recursive implementation used by :meth:`.repr`. This uses the type of *obj* " "to determine which formatting method to call, passing it *obj* and *level*. " @@ -224,7 +215,7 @@ msgstr "" "フォーマットを実行するために、型に固有のメソッドは :meth:`repr1` を呼び出しま" "す。" -#: ../../library/reprlib.rst:222 +#: ../../library/reprlib.rst:224 msgid "" "Formatting methods for specific types are implemented as methods with a name " "based on the type name. In the method name, **TYPE** is replaced by ``'_'." @@ -238,22 +229,17 @@ msgstr "" "`repr1` によって処理されます。再帰的に値をフォーマットする必要がある型固有の" "メソッドは、 ``self.repr1(subobj, level - 1)`` を呼び出します。" -#: ../../library/reprlib.rst:232 +#: ../../library/reprlib.rst:234 msgid "Subclassing Repr Objects" msgstr "Reprオブジェクトをサブクラス化する" -#: ../../library/reprlib.rst:234 +#: ../../library/reprlib.rst:236 msgid "" "The use of dynamic dispatching by :meth:`Repr.repr1` allows subclasses of :" "class:`Repr` to add support for additional built-in object types or to " "modify the handling of types already supported. This example shows how " -"special support for file objects could be added::" +"special support for file objects could be added:" msgstr "" -"更なる組み込みオブジェクト型へのサポートを追加するため、あるいはすでにサポー" -"トされている型の扱いを変更するために、 :meth:`Repr.repr1` による動的なディス" -"パッチは :class:`Repr` のサブクラス化に対応しています。\n" -"この例はファイルオブジェクトのための特別なサポートを追加する方法を示していま" -"す::" #: ../../library/reprlib.rst:65 msgid "..." diff --git a/library/shelve.po b/library/shelve.po index 6d105dc35..2b2d37836 100644 --- a/library/shelve.po +++ b/library/shelve.po @@ -13,7 +13,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3.12\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2023-11-17 14:14+0000\n" +"POT-Creation-Date: 2023-12-08 14:14+0000\n" "PO-Revision-Date: 2021-06-28 01:12+0000\n" "Last-Translator: tomo, 2023\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" @@ -266,28 +266,18 @@ msgstr "コンテキストマネージャーサポートが追加されました #: ../../library/shelve.rst:152 msgid "" -"A subclass of :class:`Shelf` which exposes :meth:`first`, :meth:`!next`, :" -"meth:`previous`, :meth:`last` and :meth:`set_location` which are available " -"in the third-party :mod:`bsddb` module from `pybsddb `_ but not in other database modules. The *dict* " -"object passed to the constructor must support those methods. This is " -"generally accomplished by calling one of :func:`bsddb.hashopen`, :func:" -"`bsddb.btopen` or :func:`bsddb.rnopen`. The optional *protocol*, " +"A subclass of :class:`Shelf` which exposes :meth:`!first`, :meth:`!next`, :" +"meth:`!previous`, :meth:`!last` and :meth:`!set_location` methods. These are " +"available in the third-party :mod:`!bsddb` module from `pybsddb `_ but not in other database modules. The " +"*dict* object passed to the constructor must support those methods. This is " +"generally accomplished by calling one of :func:`!bsddb.hashopen`, :func:`!" +"bsddb.btopen` or :func:`!bsddb.rnopen`. The optional *protocol*, " "*writeback*, and *keyencoding* parameters have the same interpretation as " "for the :class:`Shelf` class." msgstr "" -":class:`Shelf` のサブクラスで、 :meth:`first`, :meth:`!next`, :meth:" -"`previous`, :meth:`last`, :meth:`set_location` メソッドを外部に提供していま" -"す。これらのメソッドは `pybsddb `_ にあるサードパーティの :mod:`bsddb` モジュールでは利用可能ですが、他の" -"データベースモジュールでは利用できません。コンストラクタに渡される *dict* オ" -"ブジェクトは上記のメソッドをサポートしていなくてはなりません。通常は、 :func:" -"`bsddb.hashopen`, :func:`bsddb.btopen` または :func:`bsddb.rnopen` のいずれか" -"を呼び出して得られるオブジェクトが条件を満たしています。オプションの " -"*protocol*, *writeback* および *keyencoding* パラメータは :class:`Shelf` クラ" -"スにおけるパラメータと同様に解釈されます。" - -#: ../../library/shelve.rst:165 + +#: ../../library/shelve.rst:166 msgid "" "A subclass of :class:`Shelf` which accepts a *filename* instead of a dict-" "like object. The underlying file will be opened using :func:`dbm.open`. By " @@ -303,11 +293,11 @@ msgstr "" "の *protocol* および *writeback* パラメータは :class:`Shelf` クラスにおけるパ" "ラメータと同様に解釈されます。" -#: ../../library/shelve.rst:176 +#: ../../library/shelve.rst:177 msgid "Example" msgstr "使用例" -#: ../../library/shelve.rst:178 +#: ../../library/shelve.rst:179 msgid "" "To summarize the interface (``key`` is a string, ``data`` is an arbitrary " "object)::" @@ -315,19 +305,19 @@ msgstr "" "インターフェースは以下のコードに集約されています (``key`` は文字列で、" "``data`` は任意のオブジェクトです)::" -#: ../../library/shelve.rst:215 +#: ../../library/shelve.rst:216 msgid "Module :mod:`dbm`" msgstr ":mod:`dbm` モジュール" -#: ../../library/shelve.rst:215 +#: ../../library/shelve.rst:216 msgid "Generic interface to ``dbm``-style databases." msgstr "``dbm`` スタイルのデータベースに対する共通インターフェース。" -#: ../../library/shelve.rst:217 +#: ../../library/shelve.rst:218 msgid "Module :mod:`pickle`" msgstr ":mod:`pickle` モジュール" -#: ../../library/shelve.rst:218 +#: ../../library/shelve.rst:219 msgid "Object serialization used by :mod:`shelve`." msgstr ":mod:`shelve` によって使われるオブジェクト整列化機構。" diff --git a/library/stdtypes.po b/library/stdtypes.po index 4037b1857..8d342de82 100644 --- a/library/stdtypes.po +++ b/library/stdtypes.po @@ -25,7 +25,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3.12\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2023-11-24 14:13+0000\n" +"POT-Creation-Date: 2023-12-08 14:14+0000\n" "PO-Revision-Date: 2021-06-28 01:13+0000\n" "Last-Translator: Takeshi Nakazato, 2023\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" @@ -94,20 +94,16 @@ msgstr "" #: ../../library/stdtypes.rst:46 msgid "" "By default, an object is considered true unless its class defines either a :" -"meth:`~object.__bool__` method that returns ``False`` or a :meth:`__len__` " -"method that returns zero, when called with the object. [1]_ Here are most " -"of the built-in objects considered false:" +"meth:`~object.__bool__` method that returns ``False`` or a :meth:`~object." +"__len__` method that returns zero, when called with the object. [1]_ Here " +"are most of the built-in objects considered false:" msgstr "" -"オブジェクトは、デフォルトでは真と判定されます。ただし、そのクラスが :meth:" -"`~object.__bool__` メソッドを定義していて ``False`` を返す場合、または :meth:" -"`__len__` メソッドを定義していてゼロを返す場合は偽と判定されます。 [1]_ 以下" -"は偽と判定される主な組み込みオブジェクトです:" -#: ../../library/stdtypes.rst:55 +#: ../../library/stdtypes.rst:56 msgid "constants defined to be false: ``None`` and ``False``" msgstr "偽であると定義されている定数: ``None`` と ``False``" -#: ../../library/stdtypes.rst:57 +#: ../../library/stdtypes.rst:58 msgid "" "zero of any numeric type: ``0``, ``0.0``, ``0j``, ``Decimal(0)``, " "``Fraction(0, 1)``" @@ -115,7 +111,7 @@ msgstr "" "数値型におけるゼロ: ``0``, ``0.0``, ``0j``, ``Decimal(0)``, ``Fraction(0, " "1)``" -#: ../../library/stdtypes.rst:60 +#: ../../library/stdtypes.rst:61 msgid "" "empty sequences and collections: ``''``, ``()``, ``[]``, ``{}``, ``set()``, " "``range(0)``" @@ -123,7 +119,7 @@ msgstr "" "空のシーケンスまたはコレクション: ``''``, ``()``, ``[]``, ``{}``, ``set()``, " "``range(0)``" -#: ../../library/stdtypes.rst:69 +#: ../../library/stdtypes.rst:70 msgid "" "Operations and built-in functions that have a Boolean result always return " "``0`` or ``False`` for false and ``1`` or ``True`` for true, unless " @@ -135,88 +131,88 @@ msgstr "" "す。 (重要な例外: ブール演算 ``or`` および ``and`` は常に被演算子のうちの一つ" "を返します。)" -#: ../../library/stdtypes.rst:78 +#: ../../library/stdtypes.rst:79 msgid "Boolean Operations --- :keyword:`!and`, :keyword:`!or`, :keyword:`!not`" msgstr "ブール演算 --- :keyword:`!and`, :keyword:`!or`, :keyword:`!not`" -#: ../../library/stdtypes.rst:82 +#: ../../library/stdtypes.rst:83 msgid "These are the Boolean operations, ordered by ascending priority:" msgstr "以下にブール演算を、優先順位が低い順に示します:" -#: ../../library/stdtypes.rst:85 ../../library/stdtypes.rst:143 -#: ../../library/stdtypes.rst:275 ../../library/stdtypes.rst:365 -#: ../../library/stdtypes.rst:415 ../../library/stdtypes.rst:964 -#: ../../library/stdtypes.rst:1169 +#: ../../library/stdtypes.rst:86 ../../library/stdtypes.rst:144 +#: ../../library/stdtypes.rst:276 ../../library/stdtypes.rst:366 +#: ../../library/stdtypes.rst:416 ../../library/stdtypes.rst:965 +#: ../../library/stdtypes.rst:1170 msgid "Operation" msgstr "演算" -#: ../../library/stdtypes.rst:85 ../../library/stdtypes.rst:275 -#: ../../library/stdtypes.rst:365 ../../library/stdtypes.rst:415 -#: ../../library/stdtypes.rst:964 ../../library/stdtypes.rst:1169 +#: ../../library/stdtypes.rst:86 ../../library/stdtypes.rst:276 +#: ../../library/stdtypes.rst:366 ../../library/stdtypes.rst:416 +#: ../../library/stdtypes.rst:965 ../../library/stdtypes.rst:1170 msgid "Result" msgstr "結果" -#: ../../library/stdtypes.rst:85 ../../library/stdtypes.rst:275 -#: ../../library/stdtypes.rst:415 ../../library/stdtypes.rst:964 -#: ../../library/stdtypes.rst:1169 ../../library/stdtypes.rst:2419 -#: ../../library/stdtypes.rst:3637 +#: ../../library/stdtypes.rst:86 ../../library/stdtypes.rst:276 +#: ../../library/stdtypes.rst:416 ../../library/stdtypes.rst:965 +#: ../../library/stdtypes.rst:1170 ../../library/stdtypes.rst:2420 +#: ../../library/stdtypes.rst:3638 msgid "Notes" msgstr "注釈" -#: ../../library/stdtypes.rst:87 +#: ../../library/stdtypes.rst:88 msgid "``x or y``" msgstr "``x or y``" -#: ../../library/stdtypes.rst:87 +#: ../../library/stdtypes.rst:88 msgid "if *x* is true, then *x*, else *y*" msgstr "*x* が真なら *x*, そうでなければ *y*" -#: ../../library/stdtypes.rst:87 ../../library/stdtypes.rst:966 -#: ../../library/stdtypes.rst:969 ../../library/stdtypes.rst:1180 -#: ../../library/stdtypes.rst:2425 ../../library/stdtypes.rst:3643 +#: ../../library/stdtypes.rst:88 ../../library/stdtypes.rst:967 +#: ../../library/stdtypes.rst:970 ../../library/stdtypes.rst:1181 +#: ../../library/stdtypes.rst:2426 ../../library/stdtypes.rst:3644 msgid "\\(1)" msgstr "\\(1)" -#: ../../library/stdtypes.rst:90 +#: ../../library/stdtypes.rst:91 msgid "``x and y``" msgstr "``x and y``" -#: ../../library/stdtypes.rst:90 +#: ../../library/stdtypes.rst:91 msgid "if *x* is false, then *x*, else *y*" msgstr "*x* が偽なら *x*, そうでなければ *y*" -#: ../../library/stdtypes.rst:90 ../../library/stdtypes.rst:288 -#: ../../library/stdtypes.rst:308 ../../library/stdtypes.rst:1208 -#: ../../library/stdtypes.rst:2429 ../../library/stdtypes.rst:2431 -#: ../../library/stdtypes.rst:3647 ../../library/stdtypes.rst:3649 +#: ../../library/stdtypes.rst:91 ../../library/stdtypes.rst:289 +#: ../../library/stdtypes.rst:309 ../../library/stdtypes.rst:1209 +#: ../../library/stdtypes.rst:2430 ../../library/stdtypes.rst:2432 +#: ../../library/stdtypes.rst:3648 ../../library/stdtypes.rst:3650 msgid "\\(2)" msgstr "\\(2)" -#: ../../library/stdtypes.rst:93 +#: ../../library/stdtypes.rst:94 msgid "``not x``" msgstr "``not x``" -#: ../../library/stdtypes.rst:93 +#: ../../library/stdtypes.rst:94 msgid "if *x* is false, then ``True``, else ``False``" msgstr "*x* が偽なら ``True``, そうでなければ ``False``" -#: ../../library/stdtypes.rst:93 ../../library/stdtypes.rst:978 -#: ../../library/stdtypes.rst:1211 ../../library/stdtypes.rst:2433 -#: ../../library/stdtypes.rst:2435 ../../library/stdtypes.rst:2437 -#: ../../library/stdtypes.rst:2439 ../../library/stdtypes.rst:3651 -#: ../../library/stdtypes.rst:3653 ../../library/stdtypes.rst:3655 -#: ../../library/stdtypes.rst:3657 +#: ../../library/stdtypes.rst:94 ../../library/stdtypes.rst:979 +#: ../../library/stdtypes.rst:1212 ../../library/stdtypes.rst:2434 +#: ../../library/stdtypes.rst:2436 ../../library/stdtypes.rst:2438 +#: ../../library/stdtypes.rst:2440 ../../library/stdtypes.rst:3652 +#: ../../library/stdtypes.rst:3654 ../../library/stdtypes.rst:3656 +#: ../../library/stdtypes.rst:3658 msgid "\\(3)" msgstr "\\(3)" -#: ../../library/stdtypes.rst:102 ../../library/stdtypes.rst:319 -#: ../../library/stdtypes.rst:433 ../../library/stdtypes.rst:1015 -#: ../../library/stdtypes.rst:1219 ../../library/stdtypes.rst:2465 -#: ../../library/stdtypes.rst:3687 +#: ../../library/stdtypes.rst:103 ../../library/stdtypes.rst:320 +#: ../../library/stdtypes.rst:434 ../../library/stdtypes.rst:1016 +#: ../../library/stdtypes.rst:1220 ../../library/stdtypes.rst:2466 +#: ../../library/stdtypes.rst:3688 msgid "Notes:" msgstr "注釈:" -#: ../../library/stdtypes.rst:105 +#: ../../library/stdtypes.rst:106 msgid "" "This is a short-circuit operator, so it only evaluates the second argument " "if the first one is false." @@ -224,7 +220,7 @@ msgstr "" "この演算子は短絡評価されます。つまり第一引数が偽のときにのみ、第二引数が評価" "されます。" -#: ../../library/stdtypes.rst:109 +#: ../../library/stdtypes.rst:110 msgid "" "This is a short-circuit operator, so it only evaluates the second argument " "if the first one is true." @@ -232,7 +228,7 @@ msgstr "" "この演算子は短絡評価されます。つまり第一引数が真のときにのみ、第二引数が評価" "されます。" -#: ../../library/stdtypes.rst:113 +#: ../../library/stdtypes.rst:114 msgid "" "``not`` has a lower priority than non-Boolean operators, so ``not a == b`` " "is interpreted as ``not (a == b)``, and ``a == not b`` is a syntax error." @@ -240,11 +236,11 @@ msgstr "" "``not`` は非ブール演算子よりも優先度が低いので、 ``not a == b`` は ``not (a " "== b)`` と解釈され、 ``a == not b`` は構文エラーです。" -#: ../../library/stdtypes.rst:120 +#: ../../library/stdtypes.rst:121 msgid "Comparisons" msgstr "比較" -#: ../../library/stdtypes.rst:134 +#: ../../library/stdtypes.rst:135 msgid "" "There are eight comparison operations in Python. They all have the same " "priority (which is higher than that of the Boolean operations). Comparisons " @@ -257,81 +253,81 @@ msgstr "" "z`` は ``x < y and y <= z`` とほぼ等価ですが、この *y* は一度だけしか評価され" "ません (どちらにしても、 ``x < y`` が偽となれば *z* は評価されません)。" -#: ../../library/stdtypes.rst:140 +#: ../../library/stdtypes.rst:141 msgid "This table summarizes the comparison operations:" msgstr "以下の表に比較演算をまとめます:" -#: ../../library/stdtypes.rst:143 ../../library/stdtypes.rst:2396 -#: ../../library/stdtypes.rst:2419 ../../library/stdtypes.rst:3614 -#: ../../library/stdtypes.rst:3637 +#: ../../library/stdtypes.rst:144 ../../library/stdtypes.rst:2397 +#: ../../library/stdtypes.rst:2420 ../../library/stdtypes.rst:3615 +#: ../../library/stdtypes.rst:3638 msgid "Meaning" msgstr "意味" -#: ../../library/stdtypes.rst:145 +#: ../../library/stdtypes.rst:146 msgid "``<``" msgstr "``<``" -#: ../../library/stdtypes.rst:145 +#: ../../library/stdtypes.rst:146 msgid "strictly less than" msgstr "より小さい" -#: ../../library/stdtypes.rst:147 +#: ../../library/stdtypes.rst:148 msgid "``<=``" msgstr "``<=``" -#: ../../library/stdtypes.rst:147 +#: ../../library/stdtypes.rst:148 msgid "less than or equal" msgstr "以下" -#: ../../library/stdtypes.rst:149 +#: ../../library/stdtypes.rst:150 msgid "``>``" msgstr "``>``" -#: ../../library/stdtypes.rst:149 +#: ../../library/stdtypes.rst:150 msgid "strictly greater than" msgstr "より大きい" -#: ../../library/stdtypes.rst:151 +#: ../../library/stdtypes.rst:152 msgid "``>=``" msgstr "``>=``" -#: ../../library/stdtypes.rst:151 +#: ../../library/stdtypes.rst:152 msgid "greater than or equal" msgstr "以上" -#: ../../library/stdtypes.rst:153 +#: ../../library/stdtypes.rst:154 msgid "``==``" msgstr "``==``" -#: ../../library/stdtypes.rst:153 +#: ../../library/stdtypes.rst:154 msgid "equal" msgstr "等しい" -#: ../../library/stdtypes.rst:155 +#: ../../library/stdtypes.rst:156 msgid "``!=``" msgstr "``!=``" -#: ../../library/stdtypes.rst:155 +#: ../../library/stdtypes.rst:156 msgid "not equal" msgstr "等しくない" -#: ../../library/stdtypes.rst:157 +#: ../../library/stdtypes.rst:158 msgid "``is``" msgstr "``is``" -#: ../../library/stdtypes.rst:157 +#: ../../library/stdtypes.rst:158 msgid "object identity" msgstr "同一のオブジェクトである" -#: ../../library/stdtypes.rst:159 +#: ../../library/stdtypes.rst:160 msgid "``is not``" msgstr "``is not``" -#: ../../library/stdtypes.rst:159 +#: ../../library/stdtypes.rst:160 msgid "negated object identity" msgstr "同一のオブジェクトでない" -#: ../../library/stdtypes.rst:166 +#: ../../library/stdtypes.rst:167 msgid "" "Objects of different types, except different numeric types, never compare " "equal. The ``==`` operator is always defined but for some object types (for " @@ -347,7 +343,7 @@ msgstr "" "す; たとえば、オペランドのいずれかが複素数である場合、これらの演算子は :exc:" "`TypeError` 例外を送出します。" -#: ../../library/stdtypes.rst:180 +#: ../../library/stdtypes.rst:181 msgid "" "Non-identical instances of a class normally compare as non-equal unless the " "class defines the :meth:`~object.__eq__` method." @@ -355,7 +351,7 @@ msgstr "" "あるクラスの同一でないインスタンスは、通常等価でないとされますが、そのクラス" "が :meth:`~object.__eq__` メソッドを定義している場合は除きます。" -#: ../../library/stdtypes.rst:183 +#: ../../library/stdtypes.rst:184 msgid "" "Instances of a class cannot be ordered with respect to other instances of " "the same class, or other types of object, unless the class defines enough of " @@ -370,7 +366,7 @@ msgstr "" "クトとは順序付けできません (一般に、比較演算子の通常の意味を求めるなら、 :" "meth:`~object.__lt__` と :meth:`~object.__eq__` だけで十分です)。" -#: ../../library/stdtypes.rst:190 +#: ../../library/stdtypes.rst:191 msgid "" "The behavior of the :keyword:`is` and :keyword:`is not` operators cannot be " "customized; also they can be applied to any two objects and never raise an " @@ -380,21 +376,18 @@ msgstr "" "ん。また、これらはいかなる 2 つのオブジェクトにも適用でき、決して例外を送出し" "ません。" -#: ../../library/stdtypes.rst:198 +#: ../../library/stdtypes.rst:199 msgid "" "Two more operations with the same syntactic priority, :keyword:`in` and :" "keyword:`not in`, are supported by types that are :term:`iterable` or " -"implement the :meth:`__contains__` method." +"implement the :meth:`~object.__contains__` method." msgstr "" -":keyword:`in` と :keyword:`not in` という構文上で同じ優先度を持つ演算子がさら" -"に 2 つあり、 :term:`iterable` または :meth:`__contains__` を実装した型でサ" -"ポートされています。" -#: ../../library/stdtypes.rst:205 +#: ../../library/stdtypes.rst:206 msgid "Numeric Types --- :class:`int`, :class:`float`, :class:`complex`" msgstr "数値型 :class:`int`, :class:`float`, :class:`complex`" -#: ../../library/stdtypes.rst:215 +#: ../../library/stdtypes.rst:216 msgid "" "There are three distinct numeric types: :dfn:`integers`, :dfn:`floating " "point numbers`, and :dfn:`complex numbers`. In addition, Booleans are a " @@ -418,7 +411,7 @@ msgstr "" "mod:`fractions.Fraction` や、ユーザによる精度の定義が可能な浮動小数点数のため" "の :mod:`decimal.Decimal` があります。)" -#: ../../library/stdtypes.rst:237 +#: ../../library/stdtypes.rst:238 msgid "" "Numbers are created by numeric literals or as the result of built-in " "functions and operators. Unadorned integer literals (including hex, octal " @@ -434,7 +427,7 @@ msgstr "" "テラルに ``'j'`` または ``'J'`` をつけると虚数 (実部がゼロの複素数) を与え、" "それに整数や浮動小数点数を加えて実部と虚部を持つ複素数を得られます。" -#: ../../library/stdtypes.rst:262 +#: ../../library/stdtypes.rst:263 msgid "" "Python fully supports mixed arithmetic: when a binary arithmetic operator " "has operands of different numeric types, the operand with the \"narrower\" " @@ -450,7 +443,7 @@ msgstr "" "たくさんの異なる型の数値間での比較は、それらの厳密な数で比較したかのように振" "る舞います。 [2]_" -#: ../../library/stdtypes.rst:268 +#: ../../library/stdtypes.rst:269 msgid "" "The constructors :func:`int`, :func:`float`, and :func:`complex` can be used " "to produce numbers of a specific type." @@ -458,7 +451,7 @@ msgstr "" "コンストラクタ :func:`int` 、 :func:`float` 、 :func:`complex` で、特定の型の" "数を生成できます。" -#: ../../library/stdtypes.rst:271 +#: ../../library/stdtypes.rst:272 msgid "" "All numeric types (except complex) support the following operations (for " "priorities of the operations, see :ref:`operator-summary`):" @@ -466,186 +459,186 @@ msgstr "" "全ての (複素数を除く) 組み込み数値型は以下の演算に対応しています (演算の優先" "順位については、 :ref:`operator-summary` を参照してください):" -#: ../../library/stdtypes.rst:275 +#: ../../library/stdtypes.rst:276 msgid "Full documentation" msgstr "完全なドキュメント" -#: ../../library/stdtypes.rst:277 +#: ../../library/stdtypes.rst:278 msgid "``x + y``" msgstr "``x + y``" -#: ../../library/stdtypes.rst:277 +#: ../../library/stdtypes.rst:278 msgid "sum of *x* and *y*" msgstr "*x* と *y* の和" -#: ../../library/stdtypes.rst:279 +#: ../../library/stdtypes.rst:280 msgid "``x - y``" msgstr "``x - y``" -#: ../../library/stdtypes.rst:279 +#: ../../library/stdtypes.rst:280 msgid "difference of *x* and *y*" msgstr "*x* と *y* の差" -#: ../../library/stdtypes.rst:281 +#: ../../library/stdtypes.rst:282 msgid "``x * y``" msgstr "``x * y``" -#: ../../library/stdtypes.rst:281 +#: ../../library/stdtypes.rst:282 msgid "product of *x* and *y*" msgstr "*x* と *y* の積" -#: ../../library/stdtypes.rst:283 +#: ../../library/stdtypes.rst:284 msgid "``x / y``" msgstr "``x / y``" -#: ../../library/stdtypes.rst:283 +#: ../../library/stdtypes.rst:284 msgid "quotient of *x* and *y*" msgstr "*x* と *y* の商" -#: ../../library/stdtypes.rst:285 +#: ../../library/stdtypes.rst:286 msgid "``x // y``" msgstr "``x // y``" -#: ../../library/stdtypes.rst:285 +#: ../../library/stdtypes.rst:286 msgid "floored quotient of *x* and *y*" msgstr "*x* と *y* の商を切り下げたもの" -#: ../../library/stdtypes.rst:285 +#: ../../library/stdtypes.rst:286 msgid "\\(1)\\(2)" msgstr "\\(1)\\(2)" -#: ../../library/stdtypes.rst:288 +#: ../../library/stdtypes.rst:289 msgid "``x % y``" msgstr "``x % y``" -#: ../../library/stdtypes.rst:288 +#: ../../library/stdtypes.rst:289 msgid "remainder of ``x / y``" msgstr "``x / y`` の剰余" -#: ../../library/stdtypes.rst:290 +#: ../../library/stdtypes.rst:291 msgid "``-x``" msgstr "``-x``" -#: ../../library/stdtypes.rst:290 +#: ../../library/stdtypes.rst:291 msgid "*x* negated" msgstr "*x* の符号反転" -#: ../../library/stdtypes.rst:292 +#: ../../library/stdtypes.rst:293 msgid "``+x``" msgstr "``+x``" -#: ../../library/stdtypes.rst:292 +#: ../../library/stdtypes.rst:293 msgid "*x* unchanged" msgstr "*x* そのまま" -#: ../../library/stdtypes.rst:294 +#: ../../library/stdtypes.rst:295 msgid "``abs(x)``" msgstr "``abs(x)``" -#: ../../library/stdtypes.rst:294 +#: ../../library/stdtypes.rst:295 msgid "absolute value or magnitude of *x*" msgstr "*x* の絶対値または大きさ" -#: ../../library/stdtypes.rst:294 +#: ../../library/stdtypes.rst:295 msgid ":func:`abs`" msgstr ":func:`abs`" -#: ../../library/stdtypes.rst:297 +#: ../../library/stdtypes.rst:298 msgid "``int(x)``" msgstr "``int(x)``" -#: ../../library/stdtypes.rst:297 +#: ../../library/stdtypes.rst:298 msgid "*x* converted to integer" msgstr "*x* の整数への変換" -#: ../../library/stdtypes.rst:297 +#: ../../library/stdtypes.rst:298 msgid "\\(3)\\(6)" msgstr "\\(3)\\(6)" -#: ../../library/stdtypes.rst:297 +#: ../../library/stdtypes.rst:298 msgid ":func:`int`" msgstr ":func:`int`" -#: ../../library/stdtypes.rst:299 +#: ../../library/stdtypes.rst:300 msgid "``float(x)``" msgstr "``float(x)``" -#: ../../library/stdtypes.rst:299 +#: ../../library/stdtypes.rst:300 msgid "*x* converted to floating point" msgstr "*x* の浮動小数点数への変換" -#: ../../library/stdtypes.rst:299 +#: ../../library/stdtypes.rst:300 msgid "\\(4)\\(6)" msgstr "\\(4)\\(6)" -#: ../../library/stdtypes.rst:299 +#: ../../library/stdtypes.rst:300 msgid ":func:`float`" msgstr ":func:`float`" -#: ../../library/stdtypes.rst:301 +#: ../../library/stdtypes.rst:302 msgid "``complex(re, im)``" msgstr "``complex(re, im)``" -#: ../../library/stdtypes.rst:301 +#: ../../library/stdtypes.rst:302 msgid "" "a complex number with real part *re*, imaginary part *im*. *im* defaults to " "zero." msgstr "実部 *re*, 虚部 *im* の複素数。 *im* の既定値はゼロ。" -#: ../../library/stdtypes.rst:301 ../../library/stdtypes.rst:1201 -#: ../../library/stdtypes.rst:2427 ../../library/stdtypes.rst:3674 +#: ../../library/stdtypes.rst:302 ../../library/stdtypes.rst:1202 +#: ../../library/stdtypes.rst:2428 ../../library/stdtypes.rst:3675 msgid "\\(6)" msgstr "\\(6)" -#: ../../library/stdtypes.rst:301 +#: ../../library/stdtypes.rst:302 msgid ":func:`complex`" msgstr ":func:`complex`" -#: ../../library/stdtypes.rst:305 +#: ../../library/stdtypes.rst:306 msgid "``c.conjugate()``" msgstr "``c.conjugate()``" -#: ../../library/stdtypes.rst:305 +#: ../../library/stdtypes.rst:306 msgid "conjugate of the complex number *c*" msgstr "複素数 *c* の共役複素数" -#: ../../library/stdtypes.rst:308 +#: ../../library/stdtypes.rst:309 msgid "``divmod(x, y)``" msgstr "``divmod(x, y)``" -#: ../../library/stdtypes.rst:308 +#: ../../library/stdtypes.rst:309 msgid "the pair ``(x // y, x % y)``" msgstr "``(x // y, x % y)`` からなるペア" -#: ../../library/stdtypes.rst:308 +#: ../../library/stdtypes.rst:309 msgid ":func:`divmod`" msgstr ":func:`divmod`" -#: ../../library/stdtypes.rst:310 +#: ../../library/stdtypes.rst:311 msgid "``pow(x, y)``" msgstr "``pow(x, y)``" -#: ../../library/stdtypes.rst:310 ../../library/stdtypes.rst:312 +#: ../../library/stdtypes.rst:311 ../../library/stdtypes.rst:313 msgid "*x* to the power *y*" msgstr "*x* の *y* 乗" -#: ../../library/stdtypes.rst:310 ../../library/stdtypes.rst:312 -#: ../../library/stdtypes.rst:1190 ../../library/stdtypes.rst:1193 -#: ../../library/stdtypes.rst:2452 ../../library/stdtypes.rst:2455 -#: ../../library/stdtypes.rst:2458 ../../library/stdtypes.rst:3670 -#: ../../library/stdtypes.rst:3677 +#: ../../library/stdtypes.rst:311 ../../library/stdtypes.rst:313 +#: ../../library/stdtypes.rst:1191 ../../library/stdtypes.rst:1194 +#: ../../library/stdtypes.rst:2453 ../../library/stdtypes.rst:2456 +#: ../../library/stdtypes.rst:2459 ../../library/stdtypes.rst:3671 +#: ../../library/stdtypes.rst:3678 msgid "\\(5)" msgstr "\\(5)" -#: ../../library/stdtypes.rst:310 +#: ../../library/stdtypes.rst:311 msgid ":func:`pow`" msgstr ":func:`pow`" -#: ../../library/stdtypes.rst:312 +#: ../../library/stdtypes.rst:313 msgid "``x ** y``" msgstr "``x ** y``" -#: ../../library/stdtypes.rst:322 +#: ../../library/stdtypes.rst:323 msgid "" "Also referred to as integer division. For operands of type :class:`int`, " "the result has type :class:`int`. For operands of type :class:`float`, the " @@ -661,7 +654,7 @@ msgstr "" "``1//2`` は ``0`` 、 ``(-1)//2`` は ``-1`` 、 ``1//(-2)`` は ``-1`` 、そして " "``(-1)//(-2)`` は ``0`` です。" -#: ../../library/stdtypes.rst:330 +#: ../../library/stdtypes.rst:331 msgid "" "Not for complex numbers. Instead convert to floats using :func:`abs` if " "appropriate." @@ -669,7 +662,7 @@ msgstr "" "複素数型には使えません。適用可能な場合には代わりに :func:`abs` で浮動小数点型" "に変換してください。" -#: ../../library/stdtypes.rst:341 +#: ../../library/stdtypes.rst:342 msgid "" "Conversion from :class:`float` to :class:`int` truncates, discarding the " "fractional part. See functions :func:`math.floor` and :func:`math.ceil` for " @@ -679,7 +672,7 @@ msgstr "" "方法については関数 :func:`math.floor` や :func:`math.ceil` を参照してくださ" "い。" -#: ../../library/stdtypes.rst:346 +#: ../../library/stdtypes.rst:347 msgid "" "float also accepts the strings \"nan\" and \"inf\" with an optional prefix " "\"+\" or \"-\" for Not a Number (NaN) and positive or negative infinity." @@ -688,7 +681,7 @@ msgstr "" "は \"-\" と共に、非数 (Not a Number (NaN)) や正、負の無限大として受け付けま" "す。" -#: ../../library/stdtypes.rst:350 +#: ../../library/stdtypes.rst:351 msgid "" "Python defines ``pow(0, 0)`` and ``0 ** 0`` to be ``1``, as is common for " "programming languages." @@ -696,7 +689,7 @@ msgstr "" "Python は、プログラム言語一般でそうであるように、 ``pow(0, 0)`` および ``0 " "** 0`` を ``1`` と定義します。" -#: ../../library/stdtypes.rst:354 +#: ../../library/stdtypes.rst:355 msgid "" "The numeric literals accepted include the digits ``0`` to ``9`` or any " "Unicode equivalent (code points with the ``Nd`` property)." @@ -704,7 +697,7 @@ msgstr "" "受け付けられる数値リテラルは数字 ``0`` から ``9`` または等価な Unicode " "(``Nd`` プロパティを持つコードポイント) を含みます。" -#: ../../library/stdtypes.rst:357 +#: ../../library/stdtypes.rst:358 msgid "" "See `the Unicode Standard `_ for a complete list of code points with the ``Nd`` " @@ -714,7 +707,7 @@ msgstr "" "unicode.org/Public/UNIDATA/extracted/DerivedNumericType.txt>`_ をご覧くださ" "い。" -#: ../../library/stdtypes.rst:361 +#: ../../library/stdtypes.rst:362 msgid "" "All :class:`numbers.Real` types (:class:`int` and :class:`float`) also " "include the following operations:" @@ -722,19 +715,19 @@ msgstr "" "全ての :class:`numbers.Real` 型 (:class:`int` 、 :class:`float`) は以下の演算" "も含みます:" -#: ../../library/stdtypes.rst:367 +#: ../../library/stdtypes.rst:368 msgid ":func:`math.trunc(\\ x) `" msgstr ":func:`math.trunc(\\ x) `" -#: ../../library/stdtypes.rst:367 +#: ../../library/stdtypes.rst:368 msgid "*x* truncated to :class:`~numbers.Integral`" msgstr "*x* を :class:`~numbers.Integral` (整数) に切り捨てます" -#: ../../library/stdtypes.rst:370 +#: ../../library/stdtypes.rst:371 msgid ":func:`round(x[, n]) `" msgstr ":func:`round(x[, n]) `" -#: ../../library/stdtypes.rst:370 +#: ../../library/stdtypes.rst:371 msgid "" "*x* rounded to *n* digits, rounding half to even. If *n* is omitted, it " "defaults to 0." @@ -742,34 +735,34 @@ msgstr "" "*x* を *n* 桁に丸めます。丸め方は偶数丸めです。 *n* が省略されれば 0 がデフォ" "ルトとなります。" -#: ../../library/stdtypes.rst:374 +#: ../../library/stdtypes.rst:375 msgid ":func:`math.floor(\\ x) `" msgstr ":func:`math.floor(\\ x) `" -#: ../../library/stdtypes.rst:374 +#: ../../library/stdtypes.rst:375 msgid "the greatest :class:`~numbers.Integral` <= *x*" msgstr "*x* 以下の最大の :class:`~numbers.Integral` (整数) を返します" -#: ../../library/stdtypes.rst:377 +#: ../../library/stdtypes.rst:378 msgid ":func:`math.ceil(x) `" msgstr ":func:`math.ceil(x) `" -#: ../../library/stdtypes.rst:377 +#: ../../library/stdtypes.rst:378 msgid "the least :class:`~numbers.Integral` >= *x*" msgstr "*x* 以上の最小の :class:`~numbers.Integral` (整数) を返します" -#: ../../library/stdtypes.rst:381 +#: ../../library/stdtypes.rst:382 msgid "" "For additional numeric operations see the :mod:`math` and :mod:`cmath` " "modules." msgstr "" "その他の数値演算は、 :mod:`math` や :mod:`cmath` モジュールをご覧ください。" -#: ../../library/stdtypes.rst:390 +#: ../../library/stdtypes.rst:391 msgid "Bitwise Operations on Integer Types" msgstr "整数型におけるビット単位演算" -#: ../../library/stdtypes.rst:404 +#: ../../library/stdtypes.rst:405 msgid "" "Bitwise operations only make sense for integers. The result of bitwise " "operations is calculated as though carried out in two's complement with an " @@ -779,7 +772,7 @@ msgstr "" "ビット単位演算の結果は、あたかも両方の値の先頭を無限個の符号ビットで埋めたも" "のに対して計算したかのような値になります。" -#: ../../library/stdtypes.rst:408 +#: ../../library/stdtypes.rst:409 msgid "" "The priorities of the binary bitwise operations are all lower than the " "numeric operations and higher than the comparisons; the unary operation " @@ -790,89 +783,89 @@ msgstr "" "います; 単項演算 ``~`` の優先順位は他の単項数値演算 (``+`` および ``-``) と同" "じです。" -#: ../../library/stdtypes.rst:412 +#: ../../library/stdtypes.rst:413 msgid "This table lists the bitwise operations sorted in ascending priority:" msgstr "以下の表では、ビット単位演算を優先順位が低い順に並べています:" -#: ../../library/stdtypes.rst:417 +#: ../../library/stdtypes.rst:418 msgid "``x | y``" msgstr "``x | y``" -#: ../../library/stdtypes.rst:417 +#: ../../library/stdtypes.rst:418 msgid "bitwise :dfn:`or` of *x* and *y*" msgstr "*x* と *y* のビット単位 :dfn:`論理和`" -#: ../../library/stdtypes.rst:417 ../../library/stdtypes.rst:420 -#: ../../library/stdtypes.rst:423 ../../library/stdtypes.rst:1214 -#: ../../library/stdtypes.rst:2441 ../../library/stdtypes.rst:2445 -#: ../../library/stdtypes.rst:3659 ../../library/stdtypes.rst:3663 +#: ../../library/stdtypes.rst:418 ../../library/stdtypes.rst:421 +#: ../../library/stdtypes.rst:424 ../../library/stdtypes.rst:1215 +#: ../../library/stdtypes.rst:2442 ../../library/stdtypes.rst:2446 +#: ../../library/stdtypes.rst:3660 ../../library/stdtypes.rst:3664 msgid "\\(4)" msgstr "\\(4)" -#: ../../library/stdtypes.rst:420 +#: ../../library/stdtypes.rst:421 msgid "``x ^ y``" msgstr "``x ^ y``" -#: ../../library/stdtypes.rst:420 +#: ../../library/stdtypes.rst:421 msgid "bitwise :dfn:`exclusive or` of *x* and *y*" msgstr "*x* と *y* のビット単位 :dfn:`排他的論理和`" -#: ../../library/stdtypes.rst:423 +#: ../../library/stdtypes.rst:424 msgid "``x & y``" msgstr "``x & y``" -#: ../../library/stdtypes.rst:423 +#: ../../library/stdtypes.rst:424 msgid "bitwise :dfn:`and` of *x* and *y*" msgstr "*x* と *y* のビット単位 :dfn:`論理積`" -#: ../../library/stdtypes.rst:426 +#: ../../library/stdtypes.rst:427 msgid "``x << n``" msgstr "``x << n``" -#: ../../library/stdtypes.rst:426 +#: ../../library/stdtypes.rst:427 msgid "*x* shifted left by *n* bits" msgstr "*x* の *n* ビット左シフト" -#: ../../library/stdtypes.rst:426 +#: ../../library/stdtypes.rst:427 msgid "(1)(2)" msgstr "(1)(2)" -#: ../../library/stdtypes.rst:428 +#: ../../library/stdtypes.rst:429 msgid "``x >> n``" msgstr "``x >> n``" -#: ../../library/stdtypes.rst:428 +#: ../../library/stdtypes.rst:429 msgid "*x* shifted right by *n* bits" msgstr "*x* の *n* ビット右シフト" -#: ../../library/stdtypes.rst:428 +#: ../../library/stdtypes.rst:429 msgid "(1)(3)" msgstr "(1)(3)" -#: ../../library/stdtypes.rst:430 +#: ../../library/stdtypes.rst:431 msgid "``~x``" msgstr "``~x``" -#: ../../library/stdtypes.rst:430 +#: ../../library/stdtypes.rst:431 msgid "the bits of *x* inverted" msgstr "*x* のビット反転" -#: ../../library/stdtypes.rst:436 +#: ../../library/stdtypes.rst:437 msgid "" "Negative shift counts are illegal and cause a :exc:`ValueError` to be raised." msgstr "負値のシフト数は不正であり、 :exc:`ValueError` が送出されます。" -#: ../../library/stdtypes.rst:439 +#: ../../library/stdtypes.rst:440 msgid "" "A left shift by *n* bits is equivalent to multiplication by ``pow(2, n)``." msgstr "*n* ビットの左シフトは、 ``pow(2, n)`` による乗算と等価です。" -#: ../../library/stdtypes.rst:442 +#: ../../library/stdtypes.rst:443 msgid "" "A right shift by *n* bits is equivalent to floor division by ``pow(2, n)``." msgstr "*n* ビットの右シフトは、 ``pow(2, n)`` による切り捨て除算と等価です。" -#: ../../library/stdtypes.rst:445 +#: ../../library/stdtypes.rst:446 msgid "" "Performing these calculations with at least one extra sign extension bit in " "a finite two's complement representation (a working bit-width of ``1 + max(x." @@ -884,11 +877,11 @@ msgstr "" "行えば、無限個の符号ビットがあるかのように計算したのと同じ結果を得るのに十分" "です。" -#: ../../library/stdtypes.rst:452 +#: ../../library/stdtypes.rst:453 msgid "Additional Methods on Integer Types" msgstr "整数型における追加のメソッド" -#: ../../library/stdtypes.rst:454 +#: ../../library/stdtypes.rst:455 msgid "" "The int type implements the :class:`numbers.Integral` :term:`abstract base " "class`. In addition, it provides a few more methods:" @@ -896,14 +889,14 @@ msgstr "" "整数型は :class:`numbers.Integral` :term:`抽象基底クラス ` を実装します。さらに、追加のメソッドをいくつか提供します:" -#: ../../library/stdtypes.rst:459 +#: ../../library/stdtypes.rst:460 msgid "" "Return the number of bits necessary to represent an integer in binary, " "excluding the sign and leading zeros::" msgstr "" "整数を、符号と先頭の 0 は除いて二進法で表すために必要なビットの数を返します::" -#: ../../library/stdtypes.rst:468 +#: ../../library/stdtypes.rst:469 msgid "" "More precisely, if ``x`` is nonzero, then ``x.bit_length()`` is the unique " "positive integer ``k`` such that ``2**(k-1) <= abs(x) < 2**k``. " @@ -916,12 +909,12 @@ msgstr "" "対数を適切に丸められるとき、 ``k = 1 + int(log(abs(x), 2))`` です。 ``x`` が " "0 なら、 ``x.bit_length()`` は ``0`` を返します。" -#: ../../library/stdtypes.rst:474 ../../library/stdtypes.rst:497 -#: ../../library/stdtypes.rst:542 ../../library/stdtypes.rst:586 +#: ../../library/stdtypes.rst:475 ../../library/stdtypes.rst:498 +#: ../../library/stdtypes.rst:543 ../../library/stdtypes.rst:587 msgid "Equivalent to::" msgstr "次と等価です::" -#: ../../library/stdtypes.rst:485 +#: ../../library/stdtypes.rst:486 msgid "" "Return the number of ones in the binary representation of the absolute value " "of the integer. This is also known as the population count. Example::" @@ -929,11 +922,11 @@ msgstr "" "整数の絶対値の二進数表現における 1 の数を返します。これは population count と" "しても知られています。 例::" -#: ../../library/stdtypes.rst:506 +#: ../../library/stdtypes.rst:507 msgid "Return an array of bytes representing an integer." msgstr "整数を表すバイト列を返します。" -#: ../../library/stdtypes.rst:518 +#: ../../library/stdtypes.rst:519 msgid "" "The integer is represented using *length* bytes, and defaults to 1. An :exc:" "`OverflowError` is raised if the integer is not representable with the given " @@ -942,7 +935,7 @@ msgstr "" "整数は *length* バイトで表されます、デフォルト値は 1 です。整数が与えられた数" "のバイトで表せなければ、 :exc:`OverflowError` が送出されます。" -#: ../../library/stdtypes.rst:522 +#: ../../library/stdtypes.rst:523 msgid "" "The *byteorder* argument determines the byte order used to represent the " "integer, and defaults to ``\"big\"``. If *byteorder* is ``\"big\"``, the " @@ -954,7 +947,7 @@ msgstr "" "バイト配列の最初に来ます。 *byteorder* が ``\"little\"`` なら、最上位のバイト" "がバイト配列の最後に来ます。" -#: ../../library/stdtypes.rst:528 +#: ../../library/stdtypes.rst:529 msgid "" "The *signed* argument determines whether two's complement is used to " "represent the integer. If *signed* is ``False`` and a negative integer is " @@ -965,7 +958,7 @@ msgstr "" "*signed* が ``False`` で、負の整数が与えられたなら、 :exc:`OverflowError` が" "送出されます。 *signed* のデフォルト値は ``False`` です。" -#: ../../library/stdtypes.rst:533 +#: ../../library/stdtypes.rst:534 msgid "" "The default values can be used to conveniently turn an integer into a single " "byte object::" @@ -973,7 +966,7 @@ msgstr "" "上記のデフォルト値は整数を 1 バイトのオブジェクトに適切に変換するのに使うこと" "ができます::" -#: ../../library/stdtypes.rst:539 +#: ../../library/stdtypes.rst:540 msgid "" "However, when using the default arguments, don't try to convert a value " "greater than 255 or you'll get an :exc:`OverflowError`." @@ -981,15 +974,15 @@ msgstr "" "ただし、デフォルト引数で 255 より大きな整数を変換しないでください。 そうでな" "ければ:exc:`OverflowError` 例外を引き起こします。" -#: ../../library/stdtypes.rst:555 +#: ../../library/stdtypes.rst:556 msgid "Added default argument values for ``length`` and ``byteorder``." msgstr "``length`` と ``byteorder`` 引数にデフォルト値を追加しました。" -#: ../../library/stdtypes.rst:560 +#: ../../library/stdtypes.rst:561 msgid "Return the integer represented by the given array of bytes." msgstr "与えられたバイト列の整数表現を返します。" -#: ../../library/stdtypes.rst:573 +#: ../../library/stdtypes.rst:574 msgid "" "The argument *bytes* must either be a :term:`bytes-like object` or an " "iterable producing bytes." @@ -997,7 +990,7 @@ msgstr "" "引数 *bytes* は :term:`bytes-like object` か、または bytes を生成する " "iterable でなければなりません。" -#: ../../library/stdtypes.rst:576 +#: ../../library/stdtypes.rst:577 msgid "" "The *byteorder* argument determines the byte order used to represent the " "integer, and defaults to ``\"big\"``. If *byteorder* is ``\"big\"``, the " @@ -1012,17 +1005,17 @@ msgstr "" "がバイト配列の最後に来ます。ホストシステムにネイティブのバイトオーダーを要求" "するには、 :data:`sys.byteorder` をバイトオーダーの値として使ってください。" -#: ../../library/stdtypes.rst:583 +#: ../../library/stdtypes.rst:584 msgid "" "The *signed* argument indicates whether two's complement is used to " "represent the integer." msgstr "*signed* 引数は、整数を表すのに 2 の補数を使うかどうかを決定します。" -#: ../../library/stdtypes.rst:603 +#: ../../library/stdtypes.rst:604 msgid "Added default argument value for ``byteorder``." msgstr "``byteorder`` 引数にデフォルト値を追加しました。" -#: ../../library/stdtypes.rst:608 +#: ../../library/stdtypes.rst:609 msgid "" "Return a pair of integers whose ratio is equal to the original integer and " "has a positive denominator. The integer ratio of integers (whole numbers) " @@ -1032,7 +1025,7 @@ msgstr "" "正の整数です。元の数が整数の場合の比は、常にその整数が分子であり、分母は " "``1`` です。" -#: ../../library/stdtypes.rst:617 +#: ../../library/stdtypes.rst:618 msgid "" "Returns ``True``. Exists for duck type compatibility with :meth:`float." "is_integer`." @@ -1040,11 +1033,11 @@ msgstr "" "常に ``True`` を返します。 :meth:`float.is_integer` に対するダックタイピング" "の互換性のために存在しています。" -#: ../../library/stdtypes.rst:622 +#: ../../library/stdtypes.rst:623 msgid "Additional Methods on Float" msgstr "浮動小数点数に対する追加のメソッド" -#: ../../library/stdtypes.rst:624 +#: ../../library/stdtypes.rst:625 msgid "" "The float type implements the :class:`numbers.Real` :term:`abstract base " "class`. float also has the following additional methods." @@ -1053,7 +1046,7 @@ msgstr "" "base class>` を実装しています。浮動小数点型はまた、以下の追加のメソッドを持ち" "ます。" -#: ../../library/stdtypes.rst:629 +#: ../../library/stdtypes.rst:630 msgid "" "Return a pair of integers whose ratio is exactly equal to the original " "float. The ratio is in lowest terms and has a positive denominator. Raises :" @@ -1063,7 +1056,7 @@ msgstr "" "て与えられ、分母は正の値です。無限大に対しては :exc:`OverflowError` を、非数 " "(NaN) に対しては :exc:`ValueError` を送出します。" -#: ../../library/stdtypes.rst:636 +#: ../../library/stdtypes.rst:637 msgid "" "Return ``True`` if the float instance is finite with integral value, and " "``False`` otherwise::" @@ -1071,7 +1064,7 @@ msgstr "" "浮動小数点数インスタンスが有限の整数値なら ``True`` を、そうでなければ " "``False`` を返します::" -#: ../../library/stdtypes.rst:644 +#: ../../library/stdtypes.rst:645 msgid "" "Two methods support conversion to and from hexadecimal strings. Since " "Python's floats are stored internally as binary numbers, converting a float " @@ -1086,7 +1079,7 @@ msgstr "" "れに対し、16 進表記では、浮動小数点数を正確に表現できます。これはデバッグのと" "きや、数学的な用途 (numerical work) に便利でしょう。" -#: ../../library/stdtypes.rst:655 +#: ../../library/stdtypes.rst:656 msgid "" "Return a representation of a floating-point number as a hexadecimal string. " "For finite floating-point numbers, this representation will always include a " @@ -1095,7 +1088,7 @@ msgstr "" "浮動小数点数の 16 進文字列表現を返します。有限の浮動小数点数に対し、この表現" "は常に ``0x`` で始まり ``p`` と指数が続きます。" -#: ../../library/stdtypes.rst:663 +#: ../../library/stdtypes.rst:664 msgid "" "Class method to return the float represented by a hexadecimal string *s*. " "The string *s* may have leading and trailing whitespace." @@ -1103,7 +1096,7 @@ msgstr "" "16 進文字列表現 *s* で表される、浮動小数点数を返すクラスメソッドです。文字列 " "*s* は、前や後にホワイトスペースを含んでいても構いません。" -#: ../../library/stdtypes.rst:668 +#: ../../library/stdtypes.rst:669 msgid "" "Note that :meth:`float.hex` is an instance method, while :meth:`float." "fromhex` is a class method." @@ -1111,11 +1104,11 @@ msgstr "" ":meth:`float.fromhex` はクラスメソッドですが、 :meth:`float.hex` はインスタン" "スメソッドであることに注意して下さい。" -#: ../../library/stdtypes.rst:671 +#: ../../library/stdtypes.rst:672 msgid "A hexadecimal string takes the form::" msgstr "16 進文字列表現は以下の書式となります::" -#: ../../library/stdtypes.rst:675 +#: ../../library/stdtypes.rst:676 msgid "" "where the optional ``sign`` may by either ``+`` or ``-``, ``integer`` and " "``fraction`` are strings of hexadecimal digits, and ``exponent`` is a " @@ -1137,7 +1130,7 @@ msgstr "" "C の ``%a`` 書式や、 Java の ``Double.toHexString`` で書きだされた文字列は :" "meth:`float.fromhex` で受け付けられます。" -#: ../../library/stdtypes.rst:688 +#: ../../library/stdtypes.rst:689 msgid "" "Note that the exponent is written in decimal rather than hexadecimal, and " "that it gives the power of 2 by which to multiply the coefficient. For " @@ -1148,7 +1141,7 @@ msgstr "" "えます。例えば、16 進文字列 ``0x3.a7p10`` は浮動小数点数 ``(3 + 10./16 + " "7./16**2) * 2.0**10`` すなわち ``3740.0`` を表します::" -#: ../../library/stdtypes.rst:698 +#: ../../library/stdtypes.rst:699 msgid "" "Applying the reverse conversion to ``3740.0`` gives a different hexadecimal " "string representing the same number::" @@ -1156,11 +1149,11 @@ msgstr "" "逆変換を ``3740.0`` に適用すると、同じ数を表す異なる 16 進文字列表現を返しま" "す::" -#: ../../library/stdtypes.rst:708 +#: ../../library/stdtypes.rst:709 msgid "Hashing of numeric types" msgstr "数値型のハッシュ化" -#: ../../library/stdtypes.rst:710 +#: ../../library/stdtypes.rst:711 msgid "" "For numbers ``x`` and ``y``, possibly of different types, it's a requirement " "that ``hash(x) == hash(y)`` whenever ``x == y`` (see the :meth:`~object." @@ -1172,22 +1165,11 @@ msgid "" "instances of :class:`int` and :class:`fractions.Fraction`, and all finite " "instances of :class:`float` and :class:`decimal.Decimal`. Essentially, this " "function is given by reduction modulo ``P`` for a fixed prime ``P``. The " -"value of ``P`` is made available to Python as the :attr:`modulus` attribute " -"of :data:`sys.hash_info`." -msgstr "" -"数 ``x`` と ``y`` に対して、型が異なっていたとしても、 ``x == y`` であれば必" -"ず ``hash(x) == hash(y)`` であることが要請されます (詳細は :meth:`~object." -"__hash__` メソッドドキュメントを参照してください)。実装の簡単さと 複数の数値" -"型 (:class:`int` 、 :class:`float` 、 :class:`decimal.Decimal` 、 :class:" -"`fractions.Fraction` を含みます) 間の効率のため、Python の 数値型に対するハッ" -"シュ値はある単一の数学的関数に基づいていて、 その関数はすべての有理数に対し定" -"義されているため、 :class:`int` と :class:`fractions.Fraction` のすべてのイン" -"スタンスと、 :class:`float` と :class:`decimal.Decimal` のすべての有限なイン" -"スタンスに 対して適用されます。本質的には、この関数は定数の素数 ``P`` に対し" -"て ``P`` を法とする還元で与えられます。 値 ``P`` は、 :data:`sys.hash_info` " -"の :attr:`modulus` 属性として Python で利用できます。" - -#: ../../library/stdtypes.rst:725 +"value of ``P`` is made available to Python as the :attr:`~sys.hash_info." +"modulus` attribute of :data:`sys.hash_info`." +msgstr "" + +#: ../../library/stdtypes.rst:726 msgid "" "Currently, the prime used is ``P = 2**31 - 1`` on machines with 32-bit C " "longs and ``P = 2**61 - 1`` on machines with 64-bit C longs." @@ -1195,11 +1177,11 @@ msgstr "" "現在使われている素数は、32 bit C long のマシンでは ``P = 2**31 - 1`` 、 64-" "bit C long のマシンでは ``P = 2**61 - 1`` です。" -#: ../../library/stdtypes.rst:728 +#: ../../library/stdtypes.rst:729 msgid "Here are the rules in detail:" msgstr "詳細な規則はこうです:" -#: ../../library/stdtypes.rst:730 +#: ../../library/stdtypes.rst:731 msgid "" "If ``x = m / n`` is a nonnegative rational number and ``n`` is not divisible " "by ``P``, define ``hash(x)`` as ``m * invmod(n, P) % P``, where ``invmod(n, " @@ -1209,7 +1191,7 @@ msgstr "" "``invmod(n, P)`` を ``n`` を ``P`` で割った剰余の (剰余演算の意味での) 逆数を" "与えるものとして、 ``hash(x)`` を ``m * invmod(n, P) % P`` と定義します。" -#: ../../library/stdtypes.rst:734 +#: ../../library/stdtypes.rst:735 msgid "" "If ``x = m / n`` is a nonnegative rational number and ``n`` is divisible by " "``P`` (but ``m`` is not) then ``n`` has no inverse modulo ``P`` and the rule " @@ -1220,7 +1202,7 @@ msgstr "" "切れない) なら、 ``n`` は ``P`` で割った余りの逆数を持たず、上の規則は適用で" "きません。この場合、 ``hash(x)`` を定数 ``sys.hash_info.inf`` と定義します。" -#: ../../library/stdtypes.rst:739 +#: ../../library/stdtypes.rst:740 msgid "" "If ``x = m / n`` is a negative rational number define ``hash(x)`` as ``-" "hash(-x)``. If the resulting hash is ``-1``, replace it with ``-2``." @@ -1228,7 +1210,7 @@ msgstr "" "``x = m / n`` が負の有理数なら、 ``hash(x)`` を ``-hash(-x)`` と定義します。" "その結果のハッシュが ``-1`` なら、 ``-2`` に置き換えます。" -#: ../../library/stdtypes.rst:743 +#: ../../library/stdtypes.rst:744 msgid "" "The particular values ``sys.hash_info.inf`` and ``-sys.hash_info.inf`` are " "used as hash values for positive infinity or negative infinity " @@ -1237,7 +1219,7 @@ msgstr "" "特定の値 ``sys.hash_info.inf`` 、 ``-sys.hash_info.inf`` は、正の無限大、負の" "無限大のハッシュ値を (それぞれ) 表すのに使われます。" -#: ../../library/stdtypes.rst:747 +#: ../../library/stdtypes.rst:748 msgid "" "For a :class:`complex` number ``z``, the hash values of the real and " "imaginary parts are combined by computing ``hash(z.real) + sys.hash_info." @@ -1251,7 +1233,7 @@ msgstr "" "``range(-2**(sys.hash_info.width - 1), 2**(sys.hash_info.width - 1))`` に収ま" "ります。再び、結果が ``-1`` なら、 ``-2`` で置き換えられます。" -#: ../../library/stdtypes.rst:755 +#: ../../library/stdtypes.rst:756 msgid "" "To clarify the above rules, here's some example Python code, equivalent to " "the built-in hash, for computing the hash of a rational number, :class:" @@ -1261,11 +1243,11 @@ msgstr "" "`complex` のハッシュを計算する組み込みのハッシュと等価な Python コードの例を" "挙げます::" -#: ../../library/stdtypes.rst:811 +#: ../../library/stdtypes.rst:812 msgid "Boolean Type - :class:`bool`" msgstr "ブーリアン型 - :class:`bool`" -#: ../../library/stdtypes.rst:813 +#: ../../library/stdtypes.rst:814 msgid "" "Booleans represent truth values. The :class:`bool` type has exactly two " "constant instances: ``True`` and ``False``." @@ -1273,7 +1255,7 @@ msgstr "" "ブーリアン型は真理値を表現します。 :class:`bool` 型はただ2つの定数インスタン" "ス ``True`` と ``False`` を持ちます。" -#: ../../library/stdtypes.rst:821 +#: ../../library/stdtypes.rst:822 msgid "" "The built-in function :func:`bool` converts any value to a boolean, if the " "value can be interpreted as a truth value (see section :ref:`truth` above)." @@ -1281,7 +1263,7 @@ msgstr "" "組み込み関数 :func:`bool` は、もしその値が真理値として解釈可能ならば、任意の" "値を真偽値に変換します (上記 :ref:`truth` 節を参照してください)。" -#: ../../library/stdtypes.rst:824 +#: ../../library/stdtypes.rst:825 msgid "" "For logical operations, use the :ref:`boolean operators ` ``and``, " "``or`` and ``not``. When applying the bitwise operators ``&``, ``|``, ``^`` " @@ -1295,7 +1277,7 @@ msgstr "" "ブール値を返します。しかしながら、論理演算子 ``and``, ``or`` および ``!=`` を" "使うほうが ``&``, ``|`` や ``^`` を使うよりも好ましいです。" -#: ../../library/stdtypes.rst:833 +#: ../../library/stdtypes.rst:834 msgid "" "The use of the bitwise inversion operator ``~`` is deprecated and will raise " "an error in Python 3.14." @@ -1303,7 +1285,7 @@ msgstr "" "ビット反転演算子 ``~`` は非推奨であり、 Python 3.14 ではエラーを送出するよう" "になります。" -#: ../../library/stdtypes.rst:836 +#: ../../library/stdtypes.rst:837 msgid "" ":class:`bool` is a subclass of :class:`int` (see :ref:`typesnumeric`). In " "many numeric contexts, ``False`` and ``True`` behave like the integers 0 and " @@ -1316,11 +1298,11 @@ msgstr "" "信頼することは推奨されません; :func:`int` を使って明示的に整数値に変換してく" "ださい。" -#: ../../library/stdtypes.rst:844 +#: ../../library/stdtypes.rst:845 msgid "Iterator Types" msgstr "イテレータ型" -#: ../../library/stdtypes.rst:852 +#: ../../library/stdtypes.rst:853 msgid "" "Python supports a concept of iteration over containers. This is implemented " "using two distinct methods; these are used to allow user-defined classes to " @@ -1332,7 +1314,7 @@ msgstr "" "クラスで反復を行えるようにできます。後に詳しく述べるシーケンスは、必ず反復処" "理メソッドをサポートしています。" -#: ../../library/stdtypes.rst:857 +#: ../../library/stdtypes.rst:858 msgid "" "One method needs to be defined for container objects to provide :term:" "`iterable` support:" @@ -1340,7 +1322,7 @@ msgstr "" "コンテナオブジェクトが :term:`イテラブル ` のサポートを提供するため" "には、一つのメソッドが定義されていなければなりません:" -#: ../../library/stdtypes.rst:864 +#: ../../library/stdtypes.rst:865 msgid "" "Return an :term:`iterator` object. The object is required to support the " "iterator protocol described below. If a container supports different types " @@ -1359,7 +1341,7 @@ msgstr "" "ドは Python/C API での Python オブジェクトの型構造体の :c:member:" "`~PyTypeObject.tp_iter` スロットに対応します。" -#: ../../library/stdtypes.rst:873 +#: ../../library/stdtypes.rst:874 msgid "" "The iterator objects themselves are required to support the following two " "methods, which together form the :dfn:`iterator protocol`:" @@ -1368,7 +1350,7 @@ msgstr "" "す。これらのメソッドは 2 つ合わせて :dfn:`iterator protocol`: (イテレータプロ" "トコル) を成します:" -#: ../../library/stdtypes.rst:879 +#: ../../library/stdtypes.rst:880 msgid "" "Return the :term:`iterator` object itself. This is required to allow both " "containers and iterators to be used with the :keyword:`for` and :keyword:" @@ -1380,7 +1362,7 @@ msgstr "" "です。このメソッドは Python/C API において Python オブジェクトを表す型構造体" "の :c:member:`~PyTypeObject.tp_iter` スロットに対応します。" -#: ../../library/stdtypes.rst:888 +#: ../../library/stdtypes.rst:889 msgid "" "Return the next item from the :term:`iterator`. If there are no further " "items, raise the :exc:`StopIteration` exception. This method corresponds to " @@ -1392,7 +1374,7 @@ msgstr "" "オブジェクトの型構造体の :c:member:`~PyTypeObject.tp_iternext` スロットに対応" "します。" -#: ../../library/stdtypes.rst:893 +#: ../../library/stdtypes.rst:894 msgid "" "Python defines several iterator objects to support iteration over general " "and specific sequence types, dictionaries, and other more specialized " @@ -1403,7 +1385,7 @@ msgstr "" "特殊なシーケンス型、辞書型、その他の特殊な形式に渡って反復をサポートしていま" "す。特殊型は、イテレータプロトコルの実装以外では重要ではありません。" -#: ../../library/stdtypes.rst:898 +#: ../../library/stdtypes.rst:899 msgid "" "Once an iterator's :meth:`~iterator.__next__` method raises :exc:" "`StopIteration`, it must continue to do so on subsequent calls. " @@ -1413,31 +1395,26 @@ msgstr "" "を送出したなら、以降の呼び出しでも例外を送出し続けなければなりません。この特" "性に従わない実装は壊れているとみなされます。" -#: ../../library/stdtypes.rst:906 +#: ../../library/stdtypes.rst:907 msgid "Generator Types" msgstr "ジェネレータ型" -#: ../../library/stdtypes.rst:908 +#: ../../library/stdtypes.rst:909 msgid "" "Python's :term:`generator`\\s provide a convenient way to implement the " -"iterator protocol. If a container object's :meth:`__iter__` method is " -"implemented as a generator, it will automatically return an iterator object " -"(technically, a generator object) supplying the :meth:`__iter__` and :meth:" -"`~generator.__next__` methods. More information about generators can be " -"found in :ref:`the documentation for the yield expression `." -msgstr "" -"Python における :term:`generator` (ジェネレータ) は、イテレータプロトコルを実" -"装する便利な方法を提供します。コンテナオブジェクトの :meth:`__iter__` メソッ" -"ドがジェネレータとして実装されていれば、そのメソッドは :meth:`__iter__` およ" -"び :meth:`~generator.__next__` メソッドを提供するイテレータオブジェクト (厳密" -"にはジェネレータオブジェクト) を自動的に返します。ジェネレータに関する詳細な" -"情報は、 :ref:`yield 式のドキュメント ` にあります。" - -#: ../../library/stdtypes.rst:920 +"iterator protocol. If a container object's :meth:`~iterator.__iter__` " +"method is implemented as a generator, it will automatically return an " +"iterator object (technically, a generator object) supplying the :meth:`!" +"__iter__` and :meth:`~generator.__next__` methods. More information about " +"generators can be found in :ref:`the documentation for the yield expression " +"`." +msgstr "" + +#: ../../library/stdtypes.rst:921 msgid "Sequence Types --- :class:`list`, :class:`tuple`, :class:`range`" msgstr "シーケンス型 --- :class:`list`, :class:`tuple`, :class:`range`" -#: ../../library/stdtypes.rst:922 +#: ../../library/stdtypes.rst:923 msgid "" "There are three basic sequence types: lists, tuples, and range objects. " "Additional sequence types tailored for processing of :ref:`binary data " @@ -1448,11 +1425,11 @@ msgstr "" "す。:ref:`バイナリデータ ` や :ref:`テキスト文字列 ` を処" "理するように仕立てられたシーケンス型は、セクションを割いて解説します。" -#: ../../library/stdtypes.rst:931 +#: ../../library/stdtypes.rst:932 msgid "Common Sequence Operations" msgstr "共通のシーケンス演算" -#: ../../library/stdtypes.rst:935 +#: ../../library/stdtypes.rst:936 msgid "" "The operations in the following table are supported by most sequence types, " "both mutable and immutable. The :class:`collections.abc.Sequence` ABC is " @@ -1464,7 +1441,7 @@ msgstr "" "のが簡単になるように、 :class:`collections.abc.Sequence` ABC が提供されていま" "す。" -#: ../../library/stdtypes.rst:940 +#: ../../library/stdtypes.rst:941 msgid "" "This table lists the sequence operations sorted in ascending priority. In " "the table, *s* and *t* are sequences of the same type, *n*, *i*, *j* and *k* " @@ -1475,7 +1452,7 @@ msgstr "" "と *t* は同じ型のシーケンス、 *n*、 *i*、 *j* 、 *k* は整数、*x* は *s* に課" "された型と値の条件を満たす任意のオブジェクトです。" -#: ../../library/stdtypes.rst:945 +#: ../../library/stdtypes.rst:946 msgid "" "The ``in`` and ``not in`` operations have the same priorities as the " "comparison operations. The ``+`` (concatenation) and ``*`` (repetition) " @@ -1485,107 +1462,107 @@ msgstr "" "``in`` および ``not in`` 演算の優先順位は比較演算と同じです。``+`` (結合) お" "よび ``*`` (繰り返し)の優先順位は対応する数値演算と同じです。 [3]_" -#: ../../library/stdtypes.rst:966 +#: ../../library/stdtypes.rst:967 msgid "``x in s``" msgstr "``x in s``" -#: ../../library/stdtypes.rst:966 +#: ../../library/stdtypes.rst:967 msgid "``True`` if an item of *s* is equal to *x*, else ``False``" msgstr "*s* のある要素が *x* と等しければ ``True`` , そうでなければ ``False``" -#: ../../library/stdtypes.rst:969 +#: ../../library/stdtypes.rst:970 msgid "``x not in s``" msgstr "``x not in s``" -#: ../../library/stdtypes.rst:969 +#: ../../library/stdtypes.rst:970 msgid "``False`` if an item of *s* is equal to *x*, else ``True``" msgstr "*s* のある要素が *x* と等しければ ``False``, そうでなければ ``True``" -#: ../../library/stdtypes.rst:972 +#: ../../library/stdtypes.rst:973 msgid "``s + t``" msgstr "``s + t``" -#: ../../library/stdtypes.rst:972 +#: ../../library/stdtypes.rst:973 msgid "the concatenation of *s* and *t*" msgstr "*s* と *t* の結合" -#: ../../library/stdtypes.rst:972 +#: ../../library/stdtypes.rst:973 msgid "(6)(7)" msgstr "(6)(7)" -#: ../../library/stdtypes.rst:975 +#: ../../library/stdtypes.rst:976 msgid "``s * n`` or ``n * s``" msgstr "``s * n`` または ``n * s``" -#: ../../library/stdtypes.rst:975 +#: ../../library/stdtypes.rst:976 msgid "equivalent to adding *s* to itself *n* times" msgstr "*s* 自身を *n* 回足すのと同じ" -#: ../../library/stdtypes.rst:975 +#: ../../library/stdtypes.rst:976 msgid "(2)(7)" msgstr "(2)(7)" -#: ../../library/stdtypes.rst:978 +#: ../../library/stdtypes.rst:979 msgid "``s[i]``" msgstr "``s[i]``" -#: ../../library/stdtypes.rst:978 +#: ../../library/stdtypes.rst:979 msgid "*i*\\ th item of *s*, origin 0" msgstr "*s* の 0 から数えて *i* 番目の要素" -#: ../../library/stdtypes.rst:980 +#: ../../library/stdtypes.rst:981 msgid "``s[i:j]``" msgstr "``s[i:j]``" -#: ../../library/stdtypes.rst:980 +#: ../../library/stdtypes.rst:981 msgid "slice of *s* from *i* to *j*" msgstr "*s* の *i* から *j* までのスライス" -#: ../../library/stdtypes.rst:980 +#: ../../library/stdtypes.rst:981 msgid "(3)(4)" msgstr "(3)(4)" -#: ../../library/stdtypes.rst:982 +#: ../../library/stdtypes.rst:983 msgid "``s[i:j:k]``" msgstr "``s[i:j:k]``" -#: ../../library/stdtypes.rst:982 +#: ../../library/stdtypes.rst:983 msgid "slice of *s* from *i* to *j* with step *k*" msgstr "*s* の *i* から *j* まで、 *k* 毎のスライス" -#: ../../library/stdtypes.rst:982 +#: ../../library/stdtypes.rst:983 msgid "(3)(5)" msgstr "(3)(5)" -#: ../../library/stdtypes.rst:985 +#: ../../library/stdtypes.rst:986 msgid "``len(s)``" msgstr "``len(s)``" -#: ../../library/stdtypes.rst:985 +#: ../../library/stdtypes.rst:986 msgid "length of *s*" msgstr "*s* の長さ" -#: ../../library/stdtypes.rst:987 +#: ../../library/stdtypes.rst:988 msgid "``min(s)``" msgstr "``min(s)``" -#: ../../library/stdtypes.rst:987 +#: ../../library/stdtypes.rst:988 msgid "smallest item of *s*" msgstr "*s* の最小の要素" -#: ../../library/stdtypes.rst:989 +#: ../../library/stdtypes.rst:990 msgid "``max(s)``" msgstr "``max(s)``" -#: ../../library/stdtypes.rst:989 +#: ../../library/stdtypes.rst:990 msgid "largest item of *s*" msgstr "*s* の最大の要素" -#: ../../library/stdtypes.rst:991 +#: ../../library/stdtypes.rst:992 msgid "``s.index(x[, i[, j]])``" msgstr "``s.index(x[, i[, j]])``" -#: ../../library/stdtypes.rst:991 +#: ../../library/stdtypes.rst:992 msgid "" "index of the first occurrence of *x* in *s* (at or after index *i* and " "before index *j*)" @@ -1593,19 +1570,19 @@ msgstr "" "*s* 中で *x* が最初に出現するインデックス (インデックス *i* 以降からインデッ" "クス *j* までの範囲)" -#: ../../library/stdtypes.rst:991 ../../library/stdtypes.rst:3645 +#: ../../library/stdtypes.rst:992 ../../library/stdtypes.rst:3646 msgid "\\(8)" msgstr "\\(8)" -#: ../../library/stdtypes.rst:995 +#: ../../library/stdtypes.rst:996 msgid "``s.count(x)``" msgstr "``s.count(x)``" -#: ../../library/stdtypes.rst:995 +#: ../../library/stdtypes.rst:996 msgid "total number of occurrences of *x* in *s*" msgstr "*s* 中に *x* が出現する回数" -#: ../../library/stdtypes.rst:999 +#: ../../library/stdtypes.rst:1000 msgid "" "Sequences of the same type also support comparisons. In particular, tuples " "and lists are compared lexicographically by comparing corresponding " @@ -1618,7 +1595,7 @@ msgstr "" "は、すべての要素が等しく、両シーケンスの型も長さも等しくなければなりません。" "(完全な詳細は言語リファレンスの :ref:`comparisons` を参照してください。)" -#: ../../library/stdtypes.rst:1009 +#: ../../library/stdtypes.rst:1010 msgid "" "Forward and reversed iterators over mutable sequences access values using an " "index. That index will continue to march forward (or backward) even if the " @@ -1632,7 +1609,7 @@ msgstr "" "は :exc:`StopIteration` に出会った場合 (またはインデックスがゼロより小さく" "なった場合) にのみ終了します。" -#: ../../library/stdtypes.rst:1018 +#: ../../library/stdtypes.rst:1019 msgid "" "While the ``in`` and ``not in`` operations are used only for simple " "containment testing in the general case, some specialised sequences (such " @@ -1643,7 +1620,7 @@ msgstr "" "class:`str`, :class:`bytes`, :class:`bytearray` のような) 特殊なシーケンスで" "は部分シーケンス判定にも使われます::" -#: ../../library/stdtypes.rst:1027 +#: ../../library/stdtypes.rst:1028 msgid "" "Values of *n* less than ``0`` are treated as ``0`` (which yields an empty " "sequence of the same type as *s*). Note that items in the sequence *s* are " @@ -1655,7 +1632,7 @@ msgstr "" "コピーではなく要素に対する参照カウントが増えます。これは Python に慣れていな" "いプログラマをよく悩ませます。例えば以下のコードを考えます:" -#: ../../library/stdtypes.rst:1039 +#: ../../library/stdtypes.rst:1040 msgid "" "What has happened is that ``[[]]`` is a one-element list containing an empty " "list, so all three elements of ``[[]] * 3`` are references to this single " @@ -1667,13 +1644,13 @@ msgstr "" "と、その一つのリストが変更されます。別々のリストのリストを作るにはこうしま" "す::" -#: ../../library/stdtypes.rst:1051 +#: ../../library/stdtypes.rst:1052 msgid "" "Further explanation is available in the FAQ entry :ref:`faq-multidimensional-" "list`." msgstr "別の説明が FAQ エントリ :ref:`faq-multidimensional-list` にあります。" -#: ../../library/stdtypes.rst:1055 +#: ../../library/stdtypes.rst:1056 msgid "" "If *i* or *j* is negative, the index is relative to the end of sequence *s*: " "``len(s) + i`` or ``len(s) + j`` is substituted. But note that ``-0`` is " @@ -1684,7 +1661,7 @@ msgstr "" "す。\n" "ただし ``-0`` はやはり ``0`` であることに注意してください。" -#: ../../library/stdtypes.rst:1060 +#: ../../library/stdtypes.rst:1061 msgid "" "The slice of *s* from *i* to *j* is defined as the sequence of items with " "index *k* such that ``i <= k < j``. If *i* or *j* is greater than " @@ -1699,7 +1676,7 @@ msgstr "" "合、 ``len(s)`` を使います。 *i* が *j* 以上の場合、スライスは空のシーケンス" "になります。" -#: ../../library/stdtypes.rst:1067 +#: ../../library/stdtypes.rst:1068 msgid "" "The slice of *s* from *i* to *j* with step *k* is defined as the sequence of " "items with index ``x = i + n*k`` such that ``0 <= n < (j-i)/k``. In other " @@ -1723,7 +1700,7 @@ msgstr "" "ロにできないので注意してください。また *k* に ``None`` を指定すると、 ``1`` " "が指定されたものとして扱われます。" -#: ../../library/stdtypes.rst:1078 +#: ../../library/stdtypes.rst:1079 msgid "" "Concatenating immutable sequences always results in a new object. This " "means that building up a sequence by repeated concatenation will have a " @@ -1735,7 +1712,7 @@ msgstr "" "計の二次式になることを意味します。実行時間コストを線形にするには、代わりに以" "下のいずれかにしてください:" -#: ../../library/stdtypes.rst:1083 +#: ../../library/stdtypes.rst:1084 msgid "" "if concatenating :class:`str` objects, you can build a list and use :meth:" "`str.join` at the end or else write to an :class:`io.StringIO` instance and " @@ -1745,7 +1722,7 @@ msgstr "" "join` を使うか、 :class:`io.StringIO` インスタンスに書き込んで完成してから値" "を取得してください" -#: ../../library/stdtypes.rst:1087 +#: ../../library/stdtypes.rst:1088 msgid "" "if concatenating :class:`bytes` objects, you can similarly use :meth:`bytes." "join` or :class:`io.BytesIO`, or you can do in-place concatenation with a :" @@ -1757,17 +1734,17 @@ msgstr "" "結合できます。 :class:`bytearray` オブジェクトはミュータブルで、効率のいい割" "り当て超過機構を備えています" -#: ../../library/stdtypes.rst:1092 +#: ../../library/stdtypes.rst:1093 msgid "if concatenating :class:`tuple` objects, extend a :class:`list` instead" msgstr "" ":class:`tuple` オブジェクトを結合するなら、代わりに :class:`list` を拡張して" "ください" -#: ../../library/stdtypes.rst:1094 +#: ../../library/stdtypes.rst:1095 msgid "for other types, investigate the relevant class documentation" msgstr "その他の型については、関連するクラスのドキュメントを調べてください" -#: ../../library/stdtypes.rst:1098 +#: ../../library/stdtypes.rst:1099 msgid "" "Some sequence types (such as :class:`range`) only support item sequences " "that follow specific patterns, and hence don't support sequence " @@ -1777,7 +1754,7 @@ msgstr "" "ンスのみをサポートするものがあり、それらはシーケンスの結合や繰り返しをサポー" "トしません。" -#: ../../library/stdtypes.rst:1103 +#: ../../library/stdtypes.rst:1104 msgid "" "``index`` raises :exc:`ValueError` when *x* is not found in *s*. Not all " "implementations support passing the additional arguments *i* and *j*. These " @@ -1792,11 +1769,11 @@ msgstr "" "タをコピーしなくて済むし、返されるのはスライスの最初ではなくシーケンスの最初" "からの相対インデクスです。" -#: ../../library/stdtypes.rst:1114 +#: ../../library/stdtypes.rst:1115 msgid "Immutable Sequence Types" msgstr "イミュータブルなシーケンス型" -#: ../../library/stdtypes.rst:1121 +#: ../../library/stdtypes.rst:1122 msgid "" "The only operation that immutable sequence types generally implement that is " "not also implemented by mutable sequence types is support for the :func:" @@ -1805,7 +1782,7 @@ msgstr "" "イミュータブルなシーケンス型が一般に実装している演算のうち、ミュータブルな" "シーケンス型がサポートしていないのは、組み込みの :func:`hash` だけです。" -#: ../../library/stdtypes.rst:1125 +#: ../../library/stdtypes.rst:1126 msgid "" "This support allows immutable sequences, such as :class:`tuple` instances, " "to be used as :class:`dict` keys and stored in :class:`set` and :class:" @@ -1815,7 +1792,7 @@ msgstr "" "ンスは、 :class:`dict` のキーとして使え、 :class:`set` や :class:`frozenset` " "インスタンスに保存できます。" -#: ../../library/stdtypes.rst:1129 +#: ../../library/stdtypes.rst:1130 msgid "" "Attempting to hash an immutable sequence that contains unhashable values " "will result in :exc:`TypeError`." @@ -1823,11 +1800,11 @@ msgstr "" "ハッシュ不可能な値を含むイミュータブルなシーケンスをハッシュ化しようとする" "と、 :exc:`TypeError` となります。" -#: ../../library/stdtypes.rst:1136 +#: ../../library/stdtypes.rst:1137 msgid "Mutable Sequence Types" msgstr "ミュータブルなシーケンス型" -#: ../../library/stdtypes.rst:1143 +#: ../../library/stdtypes.rst:1144 msgid "" "The operations in the following table are defined on mutable sequence types. " "The :class:`collections.abc.MutableSequence` ABC is provided to make it " @@ -1837,7 +1814,7 @@ msgstr "" "ています。カスタムのシーケンス型にこれらの演算を完全に実装するのが簡単になる" "ように、 :class:`collections.abc.MutableSequence` ABC が提供されています。" -#: ../../library/stdtypes.rst:1147 +#: ../../library/stdtypes.rst:1148 msgid "" "In the table *s* is an instance of a mutable sequence type, *t* is any " "iterable object and *x* is an arbitrary object that meets any type and value " @@ -1849,132 +1826,132 @@ msgstr "" "ブジェクト (例えば、 :class:`bytearray` は値の制限 ``0 <= x <= 255`` に合う整" "数のみを受け付けます) です。" -#: ../../library/stdtypes.rst:1171 +#: ../../library/stdtypes.rst:1172 msgid "``s[i] = x``" msgstr "``s[i] = x``" -#: ../../library/stdtypes.rst:1171 +#: ../../library/stdtypes.rst:1172 msgid "item *i* of *s* is replaced by *x*" msgstr "*s* の要素 *i* を *x* と入れ替えます" -#: ../../library/stdtypes.rst:1174 +#: ../../library/stdtypes.rst:1175 msgid "``s[i:j] = t``" msgstr "``s[i:j] = t``" -#: ../../library/stdtypes.rst:1174 +#: ../../library/stdtypes.rst:1175 msgid "" "slice of *s* from *i* to *j* is replaced by the contents of the iterable *t*" msgstr "" "*s* の *i* から *j* 番目までのスライスをイテラブル *t* の内容に入れ替えます" -#: ../../library/stdtypes.rst:1178 +#: ../../library/stdtypes.rst:1179 msgid "``del s[i:j]``" msgstr "``del s[i:j]``" -#: ../../library/stdtypes.rst:1178 +#: ../../library/stdtypes.rst:1179 msgid "same as ``s[i:j] = []``" msgstr "``s[i:j] = []`` と同じです" -#: ../../library/stdtypes.rst:1180 +#: ../../library/stdtypes.rst:1181 msgid "``s[i:j:k] = t``" msgstr "``s[i:j:k] = t``" -#: ../../library/stdtypes.rst:1180 +#: ../../library/stdtypes.rst:1181 msgid "the elements of ``s[i:j:k]`` are replaced by those of *t*" msgstr "``s[i:j:k]`` の要素を *t* の要素と入れ替えます" -#: ../../library/stdtypes.rst:1183 +#: ../../library/stdtypes.rst:1184 msgid "``del s[i:j:k]``" msgstr "``del s[i:j:k]``" -#: ../../library/stdtypes.rst:1183 +#: ../../library/stdtypes.rst:1184 msgid "removes the elements of ``s[i:j:k]`` from the list" msgstr "リストから ``s[i:j:k]`` の要素を削除します" -#: ../../library/stdtypes.rst:1186 +#: ../../library/stdtypes.rst:1187 msgid "``s.append(x)``" msgstr "``s.append(x)``" -#: ../../library/stdtypes.rst:1186 +#: ../../library/stdtypes.rst:1187 msgid "" "appends *x* to the end of the sequence (same as ``s[len(s):len(s)] = [x]``)" msgstr "*x* をシーケンスの最後に加えます (``s[len(s):len(s)] = [x]`` と同じ)" -#: ../../library/stdtypes.rst:1190 +#: ../../library/stdtypes.rst:1191 msgid "``s.clear()``" msgstr "``s.clear()``" -#: ../../library/stdtypes.rst:1190 +#: ../../library/stdtypes.rst:1191 msgid "removes all items from *s* (same as ``del s[:]``)" msgstr "*s* から全ての要素を取り除きます (``del s[:]`` と同じ)" -#: ../../library/stdtypes.rst:1193 +#: ../../library/stdtypes.rst:1194 msgid "``s.copy()``" msgstr "``s.copy()``" -#: ../../library/stdtypes.rst:1193 +#: ../../library/stdtypes.rst:1194 msgid "creates a shallow copy of *s* (same as ``s[:]``)" msgstr "*s* の浅いコピーを作成します (``s[:]`` と同じ)" -#: ../../library/stdtypes.rst:1196 +#: ../../library/stdtypes.rst:1197 msgid "``s.extend(t)`` or ``s += t``" msgstr "``s.extend(t)`` または ``s += t``" -#: ../../library/stdtypes.rst:1196 +#: ../../library/stdtypes.rst:1197 msgid "" "extends *s* with the contents of *t* (for the most part the same as " "``s[len(s):len(s)] = t``)" msgstr "" "*s* を *t* の内容で拡張します (ほとんど ``s[len(s):len(s)] = t`` と同じ)" -#: ../../library/stdtypes.rst:1201 +#: ../../library/stdtypes.rst:1202 msgid "``s *= n``" msgstr "``s *= n``" -#: ../../library/stdtypes.rst:1201 +#: ../../library/stdtypes.rst:1202 msgid "updates *s* with its contents repeated *n* times" msgstr "*s* をその内容を *n* 回繰り返したもので更新" -#: ../../library/stdtypes.rst:1204 +#: ../../library/stdtypes.rst:1205 msgid "``s.insert(i, x)``" msgstr "``s.insert(i, x)``" -#: ../../library/stdtypes.rst:1204 +#: ../../library/stdtypes.rst:1205 msgid "" "inserts *x* into *s* at the index given by *i* (same as ``s[i:i] = [x]``)" msgstr "" "*s* の *i* で与えられたインデックスに *x* を挿入します。 (``s[i:i] = [x]`` と" "同じ)" -#: ../../library/stdtypes.rst:1208 +#: ../../library/stdtypes.rst:1209 msgid "``s.pop()`` or ``s.pop(i)``" msgstr "``s.pop()`` または ``s.pop(i)`` " -#: ../../library/stdtypes.rst:1208 +#: ../../library/stdtypes.rst:1209 msgid "retrieves the item at *i* and also removes it from *s*" msgstr "*s* から *i* 番目の要素を取り出し、また取り除きます" -#: ../../library/stdtypes.rst:1211 +#: ../../library/stdtypes.rst:1212 msgid "``s.remove(x)``" msgstr "``s.remove(x)``" -#: ../../library/stdtypes.rst:1211 +#: ../../library/stdtypes.rst:1212 msgid "remove the first item from *s* where ``s[i]`` is equal to *x*" msgstr "*s* から ``s[i]`` が ``x`` が等価となる最初の要素を取り除きます" -#: ../../library/stdtypes.rst:1214 +#: ../../library/stdtypes.rst:1215 msgid "``s.reverse()``" msgstr "``s.reverse()``" -#: ../../library/stdtypes.rst:1214 +#: ../../library/stdtypes.rst:1215 msgid "reverses the items of *s* in place" msgstr "*s* をインプレースに逆転させます" -#: ../../library/stdtypes.rst:1222 +#: ../../library/stdtypes.rst:1223 msgid "*t* must have the same length as the slice it is replacing." msgstr "*t* は置き換えるスライスと同じ長さでなければいけません。" -#: ../../library/stdtypes.rst:1225 +#: ../../library/stdtypes.rst:1226 msgid "" "The optional argument *i* defaults to ``-1``, so that by default the last " "item is removed and returned." @@ -1982,13 +1959,13 @@ msgstr "" "オプションの引数 *i* は標準で ``-1`` なので、標準では最後の要素をリストから除" "去して返します。" -#: ../../library/stdtypes.rst:1229 +#: ../../library/stdtypes.rst:1230 msgid ":meth:`remove` raises :exc:`ValueError` when *x* is not found in *s*." msgstr "" ":meth:`remove` は *s* に *x* が見つからなければ :exc:`ValueError` を送出しま" "す。" -#: ../../library/stdtypes.rst:1232 +#: ../../library/stdtypes.rst:1233 msgid "" "The :meth:`reverse` method modifies the sequence in place for economy of " "space when reversing a large sequence. To remind users that it operates by " @@ -1998,7 +1975,7 @@ msgstr "" "め、シーケンスをインプレースに変化させます。副作用としてこの演算が行われるこ" "とをユーザに気づかせるために、これは反転したシーケンスを返しません。" -#: ../../library/stdtypes.rst:1237 +#: ../../library/stdtypes.rst:1238 msgid "" ":meth:`clear` and :meth:`!copy` are included for consistency with the " "interfaces of mutable containers that don't support slicing operations (such " @@ -2012,11 +1989,11 @@ msgstr "" ":meth:`!copy` は :class:`collections.abc.MutableSequence` ABC の一部ではあり" "ませんが、ほとんどのミュータブルなシーケンスクラスが提供しています。" -#: ../../library/stdtypes.rst:1243 +#: ../../library/stdtypes.rst:1244 msgid ":meth:`clear` and :meth:`!copy` methods." msgstr ":meth:`clear` および :meth:`!copy` メソッド。" -#: ../../library/stdtypes.rst:1247 +#: ../../library/stdtypes.rst:1248 msgid "" "The value *n* is an integer, or an object implementing :meth:`~object." "__index__`. Zero and negative values of *n* clear the sequence. Items in " @@ -2029,11 +2006,11 @@ msgstr "" "ピーされないので注意してください; コピーではなく要素に対する参照カウントが増" "えます。" -#: ../../library/stdtypes.rst:1256 +#: ../../library/stdtypes.rst:1257 msgid "Lists" msgstr "リスト型 (list)" -#: ../../library/stdtypes.rst:1260 +#: ../../library/stdtypes.rst:1261 msgid "" "Lists are mutable sequences, typically used to store collections of " "homogeneous items (where the precise degree of similarity will vary by " @@ -2043,28 +2020,28 @@ msgstr "" "に使われます (厳密な類似の度合いはアプリケーションによって異なる場合がありま" "す)。" -#: ../../library/stdtypes.rst:1266 +#: ../../library/stdtypes.rst:1267 msgid "Lists may be constructed in several ways:" msgstr "リストの構成にはいくつかの方法があります:" -#: ../../library/stdtypes.rst:1268 +#: ../../library/stdtypes.rst:1269 msgid "Using a pair of square brackets to denote the empty list: ``[]``" msgstr "角括弧の対を使い、空のリストを表す: ``[]``" -#: ../../library/stdtypes.rst:1269 +#: ../../library/stdtypes.rst:1270 msgid "" "Using square brackets, separating items with commas: ``[a]``, ``[a, b, c]``" msgstr "角括弧を使い、項目をカンマで区切る: ``[a]``、``[a, b, c]``" -#: ../../library/stdtypes.rst:1270 +#: ../../library/stdtypes.rst:1271 msgid "Using a list comprehension: ``[x for x in iterable]``" msgstr "リスト内包表記を使う: ``[x for x in iterable]``" -#: ../../library/stdtypes.rst:1271 +#: ../../library/stdtypes.rst:1272 msgid "Using the type constructor: ``list()`` or ``list(iterable)``" msgstr "型コンストラクタを使う: ``list()`` または ``list(iterable)``" -#: ../../library/stdtypes.rst:1273 +#: ../../library/stdtypes.rst:1274 msgid "" "The constructor builds a list whose items are the same and in the same order " "as *iterable*'s items. *iterable* may be either a sequence, a container " @@ -2081,14 +2058,14 @@ msgstr "" "を、 ``list( (1, 2, 3) )`` は ``[1, 2, 3]`` を返します。引数が与えられなけれ" "ば、このコンストラクタは新しい空のリスト ``[]`` を作成します。" -#: ../../library/stdtypes.rst:1282 +#: ../../library/stdtypes.rst:1283 msgid "" "Many other operations also produce lists, including the :func:`sorted` built-" "in." msgstr "" "リストを作る方法は、他にも組み込み関数 :func:`sorted` などいろいろあります。" -#: ../../library/stdtypes.rst:1285 +#: ../../library/stdtypes.rst:1286 msgid "" "Lists implement all of the :ref:`common ` and :ref:`mutable " "` sequence operations. Lists also provide the following " @@ -2098,7 +2075,7 @@ msgstr "" "` シーケンス演算をすべて実装します。リストは、更に以下のメ" "ソッドも提供します:" -#: ../../library/stdtypes.rst:1291 +#: ../../library/stdtypes.rst:1292 msgid "" "This method sorts the list in place, using only ``<`` comparisons between " "items. Exceptions are not suppressed - if any comparison operations fail, " @@ -2109,7 +2086,7 @@ msgstr "" "ます。例外は抑制されません。比較演算がどこかで失敗したら、ソート演算自体が失" "敗します (そしてリストは部分的に変更された状態で残されるでしょう)。" -#: ../../library/stdtypes.rst:1296 +#: ../../library/stdtypes.rst:1297 msgid "" ":meth:`sort` accepts two arguments that can only be passed by keyword (:ref:" "`keyword-only arguments `):" @@ -2117,7 +2094,7 @@ msgstr "" ":meth:`sort` は、キーワードでしか渡せない 2 つの引数 (:ref:`キーワード専用引" "数 `) を受け付けます:" -#: ../../library/stdtypes.rst:1299 +#: ../../library/stdtypes.rst:1300 msgid "" "*key* specifies a function of one argument that is used to extract a " "comparison key from each list element (for example, ``key=str.lower``). The " @@ -2130,7 +2107,7 @@ msgstr "" "度計算され、ソート処理全体に使われます。デフォルトの値 ``None`` は、別のキー" "値を計算せず、リストの値が直接ソートされることを意味します。" -#: ../../library/stdtypes.rst:1306 +#: ../../library/stdtypes.rst:1307 msgid "" "The :func:`functools.cmp_to_key` utility is available to convert a 2.x style " "*cmp* function to a *key* function." @@ -2138,7 +2115,7 @@ msgstr "" "2.x 形式の *cmp* 関数を *key* 関数に変換するために、:func:`functools." "cmp_to_key` ユーティリティが利用できます。" -#: ../../library/stdtypes.rst:1309 +#: ../../library/stdtypes.rst:1310 msgid "" "*reverse* is a boolean value. If set to ``True``, then the list elements " "are sorted as if each comparison were reversed." @@ -2146,7 +2123,7 @@ msgstr "" "*reverse* は真偽値です。 ``True`` がセットされた場合、リストの要素は個々の比" "較が反転したものとして並び替えられます。" -#: ../../library/stdtypes.rst:1312 +#: ../../library/stdtypes.rst:1313 msgid "" "This method modifies the sequence in place for economy of space when sorting " "a large sequence. To remind users that it operates by side effect, it does " @@ -2158,7 +2135,7 @@ msgstr "" "気づかせるために、これはソートしたシーケンスを返しません (新しいリストインス" "タンスを明示的に要求するには :func:`sorted` を使ってください)。" -#: ../../library/stdtypes.rst:1317 +#: ../../library/stdtypes.rst:1318 msgid "" "The :meth:`sort` method is guaranteed to be stable. A sort is stable if it " "guarantees not to change the relative order of elements that compare equal " @@ -2170,13 +2147,13 @@ msgstr "" "パスのソートを行なう (例えば部署でソートして、それから給与の等級でソートす" "る) のに役立ちます。" -#: ../../library/stdtypes.rst:1322 +#: ../../library/stdtypes.rst:1323 msgid "" "For sorting examples and a brief sorting tutorial, see :ref:`sortinghowto`." msgstr "" "ソートの例と簡単なチュートリアルは :ref:`sortinghowto` を参照して下さい。" -#: ../../library/stdtypes.rst:1326 +#: ../../library/stdtypes.rst:1327 msgid "" "While a list is being sorted, the effect of attempting to mutate, or even " "inspect, the list is undefined. The C implementation of Python makes the " @@ -2188,11 +2165,11 @@ msgstr "" "ストは空として出力され、リストがソート中に変更されていることを検知できたら :" "exc:`ValueError` を送出します。" -#: ../../library/stdtypes.rst:1335 +#: ../../library/stdtypes.rst:1336 msgid "Tuples" msgstr "タプル型 (tuple)" -#: ../../library/stdtypes.rst:1339 +#: ../../library/stdtypes.rst:1340 msgid "" "Tuples are immutable sequences, typically used to store collections of " "heterogeneous data (such as the 2-tuples produced by the :func:`enumerate` " @@ -2206,28 +2183,28 @@ msgstr "" "`set` インスタンスや :class:`dict` インスタンスに保存できるようにするためな" "ど) にも使われます。" -#: ../../library/stdtypes.rst:1347 +#: ../../library/stdtypes.rst:1348 msgid "Tuples may be constructed in a number of ways:" msgstr "タプルの構成にはいくつかの方法があります:" -#: ../../library/stdtypes.rst:1349 +#: ../../library/stdtypes.rst:1350 msgid "Using a pair of parentheses to denote the empty tuple: ``()``" msgstr "丸括弧の対を使い、空のタプルを表す: ``()``" -#: ../../library/stdtypes.rst:1350 +#: ../../library/stdtypes.rst:1351 msgid "Using a trailing comma for a singleton tuple: ``a,`` or ``(a,)``" msgstr "カンマを使い、単要素のタプルを表す: ``a,`` または ``(a,)``" -#: ../../library/stdtypes.rst:1351 +#: ../../library/stdtypes.rst:1352 msgid "Separating items with commas: ``a, b, c`` or ``(a, b, c)``" msgstr "項目をカンマで区切る: ``a, b, c`` または ``(a, b, c)``" -#: ../../library/stdtypes.rst:1352 +#: ../../library/stdtypes.rst:1353 msgid "Using the :func:`tuple` built-in: ``tuple()`` or ``tuple(iterable)``" msgstr "" "組み込みの :func:`tuple` を使う: ``tuple()`` または ``tuple(iterable)``" -#: ../../library/stdtypes.rst:1354 +#: ../../library/stdtypes.rst:1355 msgid "" "The constructor builds a tuple whose items are the same and in the same " "order as *iterable*'s items. *iterable* may be either a sequence, a " @@ -2244,7 +2221,7 @@ msgstr "" "2, 3)`` を返します。引数が与えられなければ、このコンストラクタは新しい空のタ" "プル ``()`` を作成します。" -#: ../../library/stdtypes.rst:1362 +#: ../../library/stdtypes.rst:1363 msgid "" "Note that it is actually the comma which makes a tuple, not the parentheses. " "The parentheses are optional, except in the empty tuple case, or when they " @@ -2257,14 +2234,14 @@ msgstr "" "ば、 ``f(a, b, c)`` は三引数の関数呼び出しですが、``f((a, b, c))`` は 3-タプ" "ルを唯一の引数とする関数の呼び出しです。" -#: ../../library/stdtypes.rst:1368 +#: ../../library/stdtypes.rst:1369 msgid "" "Tuples implement all of the :ref:`common ` sequence " "operations." msgstr "" "タプルは :ref:`共通の ` シーケンス演算をすべて実装します。" -#: ../../library/stdtypes.rst:1371 +#: ../../library/stdtypes.rst:1372 msgid "" "For heterogeneous collections of data where access by name is clearer than " "access by index, :func:`collections.namedtuple` may be a more appropriate " @@ -2274,11 +2251,11 @@ msgstr "" "クセスしたほうが明確になるものには、単純なタプルオブジェクトよりも :func:" "`collections.namedtuple` が向いているかもしれません。" -#: ../../library/stdtypes.rst:1379 +#: ../../library/stdtypes.rst:1380 msgid "Ranges" msgstr "range" -#: ../../library/stdtypes.rst:1383 +#: ../../library/stdtypes.rst:1384 msgid "" "The :class:`range` type represents an immutable sequence of numbers and is " "commonly used for looping a specific number of times in :keyword:`for` loops." @@ -2286,7 +2263,7 @@ msgstr "" ":class:`range` 型は、数のイミュータブルなシーケンスを表し、一般に :keyword:" "`for` ループにおいて特定の回数のループに使われます。" -#: ../../library/stdtypes.rst:1390 +#: ../../library/stdtypes.rst:1391 msgid "" "The arguments to the range constructor must be integers (either built-in :" "class:`int` or any object that implements the :meth:`~object.__index__` " @@ -2300,7 +2277,7 @@ msgstr "" "略された場合のデフォルト値は ``0`` です。 *step* が 0 の場合、:exc:" "`ValueError` が送出されます。" -#: ../../library/stdtypes.rst:1396 +#: ../../library/stdtypes.rst:1397 msgid "" "For a positive *step*, the contents of a range ``r`` are determined by the " "formula ``r[i] = start + step*i`` where ``i >= 0`` and ``r[i] < stop``." @@ -2308,7 +2285,7 @@ msgstr "" "*step* が正の場合、range ``r`` の内容は式 ``r[i] = start + step*i`` で決定さ" "れます。ここで、 ``i >= 0`` かつ ``r[i] < stop`` です。" -#: ../../library/stdtypes.rst:1400 +#: ../../library/stdtypes.rst:1401 msgid "" "For a negative *step*, the contents of the range are still determined by the " "formula ``r[i] = start + step*i``, but the constraints are ``i >= 0`` and " @@ -2317,7 +2294,7 @@ msgstr "" "*step* が負の場合も、range ``r`` の内容は式 ``r[i] = start + step*i`` で決定" "されます。ただし、制約条件は ``i >= 0`` かつ ``r[i] > stop`` です。" -#: ../../library/stdtypes.rst:1404 +#: ../../library/stdtypes.rst:1405 msgid "" "A range object will be empty if ``r[0]`` does not meet the value constraint. " "Ranges do support negative indices, but these are interpreted as indexing " @@ -2327,7 +2304,7 @@ msgstr "" "は負のインデックスをサポートしますが、これらは正のインデックスにより決定され" "るシーケンスの末尾からのインデックス指定として解釈されます。" -#: ../../library/stdtypes.rst:1409 +#: ../../library/stdtypes.rst:1410 msgid "" "Ranges containing absolute values larger than :data:`sys.maxsize` are " "permitted but some features (such as :func:`len`) may raise :exc:" @@ -2336,11 +2313,11 @@ msgstr "" "range は :data:`sys.maxsize` より大きい絶対値を含むことができますが、いくつか" "の機能 (:func:`len` など) は :exc:`OverflowError` を送出することがあります。" -#: ../../library/stdtypes.rst:1413 +#: ../../library/stdtypes.rst:1414 msgid "Range examples::" msgstr "range の例::" -#: ../../library/stdtypes.rst:1430 +#: ../../library/stdtypes.rst:1431 msgid "" "Ranges implement all of the :ref:`common ` sequence " "operations except concatenation and repetition (due to the fact that range " @@ -2351,23 +2328,23 @@ msgstr "" "すべて実装します (range オブジェクトは厳格なパターンに従うシーケンスのみを表" "せ、繰り返しと結合はたいていそのパターンを破るという事実によります)。" -#: ../../library/stdtypes.rst:1437 +#: ../../library/stdtypes.rst:1438 msgid "" "The value of the *start* parameter (or ``0`` if the parameter was not " "supplied)" msgstr "引数 *start* の値 (この引数が与えられていない場合は ``0``)" -#: ../../library/stdtypes.rst:1442 +#: ../../library/stdtypes.rst:1443 msgid "The value of the *stop* parameter" msgstr "引数 *stop* の値" -#: ../../library/stdtypes.rst:1446 +#: ../../library/stdtypes.rst:1447 msgid "" "The value of the *step* parameter (or ``1`` if the parameter was not " "supplied)" msgstr "引数 *step* の値 (この引数が与えられていない場合は ``1``)" -#: ../../library/stdtypes.rst:1449 +#: ../../library/stdtypes.rst:1450 msgid "" "The advantage of the :class:`range` type over a regular :class:`list` or :" "class:`tuple` is that a :class:`range` object will always take the same " @@ -2380,7 +2357,7 @@ msgstr "" "量のメモリを使うことです (``start``、``stop``、``step`` の値のみを保存し、後" "は必要に応じて個々の項目や部分 range を計算するためです)。" -#: ../../library/stdtypes.rst:1455 +#: ../../library/stdtypes.rst:1456 msgid "" "Range objects implement the :class:`collections.abc.Sequence` ABC, and " "provide features such as containment tests, element index lookup, slicing " @@ -2390,7 +2367,7 @@ msgstr "" "定、要素インデックス検索、スライシングのような機能を提供し、負のインデックス" "をサポートします (:ref:`typesseq` を参照):" -#: ../../library/stdtypes.rst:1475 +#: ../../library/stdtypes.rst:1476 msgid "" "Testing range objects for equality with ``==`` and ``!=`` compares them as " "sequences. That is, two range objects are considered equal if they " @@ -2406,7 +2383,7 @@ msgstr "" "step` 属性を持つことがあります。例えば ``range(0) == range(2, 1, 3)`` や " "``range(0, 3, 2) == range(0, 4, 2)``。)" -#: ../../library/stdtypes.rst:1482 +#: ../../library/stdtypes.rst:1483 msgid "" "Implement the Sequence ABC. Support slicing and negative indices. Test :" "class:`int` objects for membership in constant time instead of iterating " @@ -2416,7 +2393,7 @@ msgstr "" "ブジェクトの帰属判定を、すべてのアイテムをイテレートする代わりに、定数時間で" "行います。" -#: ../../library/stdtypes.rst:1488 +#: ../../library/stdtypes.rst:1489 msgid "" "Define '==' and '!=' to compare range objects based on the sequence of " "values they define (instead of comparing based on object identity)." @@ -2424,14 +2401,14 @@ msgstr "" "(オブジェクトの同一性に基づいて比較する代わりに) range オブジェクトをそれらが" "定義する値のシーケンスに基づいて比較するように '==' と '!=' を定義しました。" -#: ../../library/stdtypes.rst:1493 +#: ../../library/stdtypes.rst:1494 msgid "" "The :attr:`~range.start`, :attr:`~range.stop` and :attr:`~range.step` " "attributes." msgstr "" "属性 :attr:`~range.start`, :attr:`~range.stop` および :attr:`~range.step`。" -#: ../../library/stdtypes.rst:1499 +#: ../../library/stdtypes.rst:1500 msgid "" "The `linspace recipe `_ shows " "how to implement a lazy version of range suitable for floating point " @@ -2440,11 +2417,11 @@ msgstr "" "`linspace レシピ `_ には、遅延" "評価される浮動小数点版の range の実装方法が載っています。" -#: ../../library/stdtypes.rst:1511 +#: ../../library/stdtypes.rst:1512 msgid "Text Sequence Type --- :class:`str`" msgstr "テキストシーケンス型 --- :class:`str`" -#: ../../library/stdtypes.rst:1513 +#: ../../library/stdtypes.rst:1514 msgid "" "Textual data in Python is handled with :class:`str` objects, or :dfn:" "`strings`. Strings are immutable :ref:`sequences ` of Unicode code " @@ -2454,15 +2431,15 @@ msgstr "" "として扱われます。文字列は Unicode コードポイントのイミュータブルな :ref:`" "シーケンス ` です。文字列リテラルには様々な記述方法があります:" -#: ../../library/stdtypes.rst:1518 +#: ../../library/stdtypes.rst:1519 msgid "Single quotes: ``'allows embedded \"double\" quotes'``" msgstr "シングルクォート: ``'\"ダブル\" クォートを埋め込むことができます'``" -#: ../../library/stdtypes.rst:1519 +#: ../../library/stdtypes.rst:1520 msgid "Double quotes: ``\"allows embedded 'single' quotes\"``" msgstr "ダブルクォート: ``\"'シングル' クォートを埋め込むことができます\"``。" -#: ../../library/stdtypes.rst:1520 +#: ../../library/stdtypes.rst:1521 msgid "" "Triple quoted: ``'''Three single quotes'''``, ``\"\"\"Three double " "quotes\"\"\"``" @@ -2470,7 +2447,7 @@ msgstr "" "三重引用符: ``'''三つのシングルクォート'''``, ``\"\"\"三つのダブルクォート" "\"\"\"``" -#: ../../library/stdtypes.rst:1522 +#: ../../library/stdtypes.rst:1523 msgid "" "Triple quoted strings may span multiple lines - all associated whitespace " "will be included in the string literal." @@ -2478,7 +2455,7 @@ msgstr "" "三重引用符文字列は、複数行に分けることができます。関連付けられる空白はすべて" "文字列リテラルに含まれます。" -#: ../../library/stdtypes.rst:1525 +#: ../../library/stdtypes.rst:1526 msgid "" "String literals that are part of a single expression and have only " "whitespace between them will be implicitly converted to a single string " @@ -2487,7 +2464,7 @@ msgstr "" "単式の一部であり間に空白のみを含む文字列リテラルは、一つの文字列リテラルに暗" "黙に変換されます。つまり、``(\"spam \" \"eggs\") == \"spam eggs\"`` です。" -#: ../../library/stdtypes.rst:1529 +#: ../../library/stdtypes.rst:1530 msgid "" "See :ref:`strings` for more about the various forms of string literal, " "including supported escape sequences, and the ``r`` (\"raw\") prefix that " @@ -2497,7 +2474,7 @@ msgstr "" "にする ``r`` (\"raw\") 接頭辞などの、文字列リテラルの様々な形式は、:ref:" "`strings` を参照してください。" -#: ../../library/stdtypes.rst:1533 +#: ../../library/stdtypes.rst:1534 msgid "" "Strings may also be created from other objects using the :class:`str` " "constructor." @@ -2505,7 +2482,7 @@ msgstr "" "文字列は他のオブジェクトに :class:`str` コンストラクタを使うことでも生成でき" "ます。" -#: ../../library/stdtypes.rst:1536 +#: ../../library/stdtypes.rst:1537 msgid "" "Since there is no separate \"character\" type, indexing a string produces " "strings of length 1. That is, for a non-empty string *s*, ``s[0] == s[0:1]``." @@ -2514,7 +2491,7 @@ msgstr "" "指定を行うと長さ 1 の文字列を作成します。つまり、空でない文字列 *s* に対し、" "``s[0] == s[0:1]`` です。" -#: ../../library/stdtypes.rst:1542 +#: ../../library/stdtypes.rst:1543 msgid "" "There is also no mutable string type, but :meth:`str.join` or :class:`io." "StringIO` can be used to efficiently construct strings from multiple " @@ -2523,7 +2500,7 @@ msgstr "" "ミュータブルな文字列型もありませんが、ミュータブルな断片から効率よく文字列を" "構成するのに :meth:`str.join` や :class:`io.StringIO` が使えます。" -#: ../../library/stdtypes.rst:1546 +#: ../../library/stdtypes.rst:1547 msgid "" "For backwards compatibility with the Python 2 series, the ``u`` prefix is " "once again permitted on string literals. It has no effect on the meaning of " @@ -2533,7 +2510,7 @@ msgstr "" "許可されました。それは文字列リテラルとしての意味には影響がなく、 ``r`` 接頭辞" "と結合することはできません。" -#: ../../library/stdtypes.rst:1558 +#: ../../library/stdtypes.rst:1559 msgid "" "Return a :ref:`string ` version of *object*. If *object* is not " "provided, returns the empty string. Otherwise, the behavior of ``str()`` " @@ -2543,7 +2520,7 @@ msgstr "" "た場合、空文字列が返されます。それ以外の場合 ``str()`` の動作は、 *encoding* " "や *errors* が与えられたかどうかによって次のように変わります。" -#: ../../library/stdtypes.rst:1562 +#: ../../library/stdtypes.rst:1563 msgid "" "If neither *encoding* nor *errors* is given, ``str(object)`` returns :meth:" "`type(object).__str__(object) `, which is the \"informal\" " @@ -2559,7 +2536,7 @@ msgstr "" "ドを持たない場合、 :func:`str` は代わりに :func:`repr(object) ` の結果" "を返します。" -#: ../../library/stdtypes.rst:1574 +#: ../../library/stdtypes.rst:1575 msgid "" "If at least one of *encoding* or *errors* is given, *object* should be a :" "term:`bytes-like object` (e.g. :class:`bytes` or :class:`bytearray`). In " @@ -2579,7 +2556,7 @@ msgstr "" "ジェクトが取得されます。 buffer オブジェクトについて詳しい情報は、 :ref:" "`binaryseq` や :ref:`bufferobjects` を参照してください。" -#: ../../library/stdtypes.rst:1583 +#: ../../library/stdtypes.rst:1584 msgid "" "Passing a :class:`bytes` object to :func:`str` without the *encoding* or " "*errors* arguments falls under the first case of returning the informal " @@ -2590,7 +2567,7 @@ msgstr "" "`str` に渡すと、略式の文字列表現を返す 1 つ目の場合に該当します。(Python のコ" "マンドラインオプション :option:`-b` も参照してください) 例えば::" -#: ../../library/stdtypes.rst:1591 +#: ../../library/stdtypes.rst:1592 msgid "" "For more information on the ``str`` class and its methods, see :ref:" "`textseq` and the :ref:`string-methods` section below. To output formatted " @@ -2602,11 +2579,11 @@ msgstr "" "された文字列を出力するには、 :ref:`f-strings` と :ref:`string-formatting` の" "節を参照してください。加えて、 :ref:`stringservices` の節も参照してください。" -#: ../../library/stdtypes.rst:1603 +#: ../../library/stdtypes.rst:1604 msgid "String Methods" msgstr "文字列メソッド" -#: ../../library/stdtypes.rst:1608 +#: ../../library/stdtypes.rst:1609 msgid "" "Strings implement all of the :ref:`common ` sequence " "operations, along with the additional methods described below." @@ -2614,7 +2591,7 @@ msgstr "" "文字列は :ref:`共通の ` シーケンス演算全てに加え、以下に述べ" "るメソッドを実装します。" -#: ../../library/stdtypes.rst:1611 +#: ../../library/stdtypes.rst:1612 msgid "" "Strings also support two styles of string formatting, one providing a large " "degree of flexibility and customization (see :meth:`str.format`, :ref:" @@ -2629,7 +2606,7 @@ msgstr "" "づいてより狭い範囲と型を扱うもので、正しく扱うのは少し難しいですが、扱える場" "合ではたいていこちらのほうが高速です (:ref:`old-string-formatting`)。" -#: ../../library/stdtypes.rst:1618 +#: ../../library/stdtypes.rst:1619 msgid "" "The :ref:`textservices` section of the standard library covers a number of " "other modules that provide various text related utilities (including regular " @@ -2639,13 +2616,13 @@ msgstr "" "ティリティ (:mod:`re` モジュールによる正規表現サポートなど) を提供するいくつ" "かのモジュールをカバーしています。" -#: ../../library/stdtypes.rst:1624 +#: ../../library/stdtypes.rst:1625 msgid "" "Return a copy of the string with its first character capitalized and the " "rest lowercased." msgstr "最初の文字を大文字にし、残りを小文字にした文字列のコピーを返します。" -#: ../../library/stdtypes.rst:1627 +#: ../../library/stdtypes.rst:1628 msgid "" "The first character is now put into titlecase rather than uppercase. This " "means that characters like digraphs will only have their first letter " @@ -2655,7 +2632,7 @@ msgstr "" "まり二重音字のような文字はすべての文字が大文字にされるのではなく、最初の文字" "だけ大文字にされるようになります。" -#: ../../library/stdtypes.rst:1634 +#: ../../library/stdtypes.rst:1635 msgid "" "Return a casefolded copy of the string. Casefolded strings may be used for " "caseless matching." @@ -2663,7 +2640,7 @@ msgstr "" "文字列の casefold されたコピーを返します。casefold された文字列は、大文字小文" "字に関係ないマッチに使えます。" -#: ../../library/stdtypes.rst:1637 +#: ../../library/stdtypes.rst:1638 msgid "" "Casefolding is similar to lowercasing but more aggressive because it is " "intended to remove all case distinctions in a string. For example, the " @@ -2676,7 +2653,7 @@ msgstr "" "``'ß'`` は ``\"ss\"`` と同じです。これは既に小文字なので、:meth:`lower` は " "``'ß'`` に何もしませんが、:meth:`casefold` はこれを ``\"ss\"`` に変換します。" -#: ../../library/stdtypes.rst:1643 +#: ../../library/stdtypes.rst:1644 msgid "" "The casefolding algorithm is `described in section 3.13 'Default Case " "Folding' of the Unicode Standard `__ 。" -#: ../../library/stdtypes.rst:1652 +#: ../../library/stdtypes.rst:1653 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 " @@ -2696,7 +2673,7 @@ msgstr "" "*fillchar* で指定された値 (デフォルトでは ASCII スペース) が使われます。 " "*width* が ``len(s)`` 以下なら元の文字列が返されます。" -#: ../../library/stdtypes.rst:1660 +#: ../../library/stdtypes.rst:1661 msgid "" "Return the number of non-overlapping occurrences of substring *sub* in the " "range [*start*, *end*]. Optional arguments *start* and *end* are " @@ -2706,7 +2683,7 @@ msgstr "" "す。オプション引数 *start* および *end* はスライス表記と同じように解釈されま" "す。" -#: ../../library/stdtypes.rst:1664 +#: ../../library/stdtypes.rst:1665 msgid "" "If *sub* is empty, returns the number of empty strings between characters " "which is the length of the string plus one." @@ -2714,11 +2691,11 @@ msgstr "" "*sub* が空の場合は、文字と文字の間にある空文字列の数、すなわち文字列の長さに1" "を加えたものを返します。" -#: ../../library/stdtypes.rst:1670 +#: ../../library/stdtypes.rst:1671 msgid "Return the string encoded to :class:`bytes`." msgstr ":class:`bytes` にエンコードされた文字列を返します。" -#: ../../library/stdtypes.rst:1672 ../../library/stdtypes.rst:2811 +#: ../../library/stdtypes.rst:1673 ../../library/stdtypes.rst:2812 msgid "" "*encoding* defaults to ``'utf-8'``; see :ref:`standard-encodings` for " "possible values." @@ -2726,7 +2703,7 @@ msgstr "" "*encoding* のデフォルト値は ``'utf-8'`` です; 指定可能な値については :ref:" "`standard-encodings` を参照してください。" -#: ../../library/stdtypes.rst:1675 +#: ../../library/stdtypes.rst:1676 msgid "" "*errors* controls how encoding errors are handled. If ``'strict'`` (the " "default), a :exc:`UnicodeError` exception is raised. Other possible values " @@ -2740,7 +2717,7 @@ msgstr "" "``'backslashreplace'`` と、そして :func:`codecs.register_error` で登録された" "名前です。詳しくは :ref:`error-handlers` を参照してください。" -#: ../../library/stdtypes.rst:1682 +#: ../../library/stdtypes.rst:1683 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 :" @@ -2750,11 +2727,11 @@ msgstr "" "が実際に発生するか、 :ref:`devmode` が有効になっているか、もしくは :ref:`デ" "バッグビルド ` が使われていない限りチェックされません。" -#: ../../library/stdtypes.rst:1687 ../../library/stdtypes.rst:2830 +#: ../../library/stdtypes.rst:1688 ../../library/stdtypes.rst:2831 msgid "Added support for keyword arguments." msgstr "キーワード引数のサポートが追加されました。" -#: ../../library/stdtypes.rst:1690 ../../library/stdtypes.rst:2833 +#: ../../library/stdtypes.rst:1691 ../../library/stdtypes.rst:2834 msgid "" "The value of the *errors* argument is now checked in :ref:`devmode` and in :" "ref:`debug mode `." @@ -2762,7 +2739,7 @@ msgstr "" "*errors* 引数の値は :ref:`devmode` と :ref:`デバッグモード ` で" "チェックされるようになりました。" -#: ../../library/stdtypes.rst:1697 +#: ../../library/stdtypes.rst:1698 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. " @@ -2774,7 +2751,7 @@ msgstr "" "ん。オプションの *start* があれば、その位置から判定を始めます。オプションの " "*end* があれば、その位置で比較を止めます。" -#: ../../library/stdtypes.rst:1705 +#: ../../library/stdtypes.rst:1706 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 " @@ -2800,7 +2777,7 @@ msgstr "" "文字は変更されずにコピーされ、現桁位置は、その文字の表示のされ方 (訳注: 全" "角、半角など) に関係なく、1 ずつ増加します。" -#: ../../library/stdtypes.rst:1726 +#: ../../library/stdtypes.rst:1727 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 " @@ -2810,7 +2787,7 @@ msgstr "" "のインデックスを返します。オプション引数 *start* および *end* はスライス表記" "と同様に解釈されます。 *sub* が見つからなかった場合 ``-1`` を返します。" -#: ../../library/stdtypes.rst:1732 +#: ../../library/stdtypes.rst:1733 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 :" @@ -2820,7 +2797,7 @@ msgstr "" "す。 *sub* が部分文字列であるかどうかのみを調べるには、 :keyword:`in` 演算子" "を使ってください::" -#: ../../library/stdtypes.rst:1742 +#: ../../library/stdtypes.rst:1743 msgid "" "Perform a string formatting operation. The string on which this method is " "called can contain literal text or replacement fields delimited by braces " @@ -2835,7 +2812,7 @@ msgstr "" "値は、それぞれの置換フィールドが対応する引数の文字列値で置換された文字列のコ" "ピーです。" -#: ../../library/stdtypes.rst:1752 +#: ../../library/stdtypes.rst:1753 msgid "" "See :ref:`formatstrings` for a description of the various formatting options " "that can be specified in format strings." @@ -2843,7 +2820,7 @@ msgstr "" "書式指定のオプションについては、書式指定文字列を規定する :ref:" "`formatstrings` を参照してください。" -#: ../../library/stdtypes.rst:1756 +#: ../../library/stdtypes.rst:1757 msgid "" "When formatting a number (:class:`int`, :class:`float`, :class:`complex`, :" "class:`decimal.Decimal` and subclasses) with the ``n`` type (ex: ``'{:n}'." @@ -2861,7 +2838,7 @@ msgstr "" "フィールドを読み取るため一時的に ``LC_CTYPE`` ロケールに ``LC_NUMERIC`` のロ" "ケール値を設定します。この一時的な変更は他のスレッドの動作に影響します。" -#: ../../library/stdtypes.rst:1765 +#: ../../library/stdtypes.rst:1766 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." @@ -2869,7 +2846,7 @@ msgstr "" "数値を ``n`` の整数表現型でフォーマットするとき、この関数は一時的に " "``LC_CTYPE`` ロケールに ``LC_NUMERIC`` のロケール値を設定する場合があります。" -#: ../../library/stdtypes.rst:1773 +#: ../../library/stdtypes.rst:1774 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 " @@ -2879,7 +2856,7 @@ msgstr "" "ピーされず、直接使われます。これは例えば ``mapping`` が dict のサブクラスであ" "るときに便利です:" -#: ../../library/stdtypes.rst:1789 +#: ../../library/stdtypes.rst:1790 msgid "" "Like :meth:`~str.find`, but raise :exc:`ValueError` when the substring is " "not found." @@ -2887,7 +2864,7 @@ msgstr "" ":meth:`~str.find` と同様ですが、部分文字列が見つからなかったとき :exc:" "`ValueError` を送出します。" -#: ../../library/stdtypes.rst:1795 +#: ../../library/stdtypes.rst:1796 msgid "" "Return ``True`` if all characters in the string are alphanumeric and there " "is at least one character, ``False`` otherwise. A character ``c`` is " @@ -2899,7 +2876,7 @@ msgstr "" "英数字です: ``c.isalpha()`` 、 ``c.isdecimal()`` 、 ``c.isdigit()`` 、 ``c." "isnumeric()`` 。" -#: ../../library/stdtypes.rst:1803 +#: ../../library/stdtypes.rst:1804 msgid "" "Return ``True`` if all characters in the string are alphabetic and there is " "at least one character, ``False`` otherwise. Alphabetic characters are " @@ -2919,7 +2896,7 @@ msgstr "" "いるアルファベットプロパティ `_ とは異なります。" -#: ../../library/stdtypes.rst:1814 +#: ../../library/stdtypes.rst:1815 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 " @@ -2929,7 +2906,7 @@ msgstr "" "以外の場合に ``False`` を返します。\n" "ASCII 文字のコードポイントは U+0000-U+007F の範囲にあります。" -#: ../../library/stdtypes.rst:1823 +#: ../../library/stdtypes.rst:1824 msgid "" "Return ``True`` if all characters in the string are decimal characters and " "there is at least one character, ``False`` otherwise. Decimal characters are " @@ -2942,7 +2919,7 @@ msgstr "" "で、たとえば U+0660 (ARABIC-INDIC DIGIT ZERO) なども含みます。正式には、" "Unicode の一般カテゴリ \"Nd\" に含まれる文字を指します。" -#: ../../library/stdtypes.rst:1833 +#: ../../library/stdtypes.rst:1834 msgid "" "Return ``True`` if all characters in the string are digits and there is at " "least one character, ``False`` otherwise. Digits include decimal characters " @@ -2957,7 +2934,7 @@ msgstr "" "いカローシュティー数字のような体系の文字も含みます。正式には、数字とは、プロ" "パティ値 Numeric_Type=Digit または Numeric_Type=Decimal を持つ文字です。" -#: ../../library/stdtypes.rst:1843 +#: ../../library/stdtypes.rst:1844 msgid "" "Return ``True`` if the string is a valid identifier according to the " "language definition, section :ref:`identifiers`." @@ -2965,7 +2942,7 @@ msgstr "" "文字列が、 :ref:`identifiers` 節の言語定義における有効な識別子であれば " "``True`` を返します。" -#: ../../library/stdtypes.rst:1846 +#: ../../library/stdtypes.rst:1847 msgid "" ":func:`keyword.iskeyword` can be used to test whether string ``s`` is a " "reserved identifier, such as :keyword:`def` and :keyword:`class`." @@ -2973,11 +2950,11 @@ msgstr "" ":func:`keyword.iskeyword` は、文字列 ``s`` が :keyword:`def` や :keyword:" "`class` のような予約済みの識別子かどうかを調べるのに使うことができます。" -#: ../../library/stdtypes.rst:1849 +#: ../../library/stdtypes.rst:1850 msgid "Example: ::" msgstr "例: ::" -#: ../../library/stdtypes.rst:1862 +#: ../../library/stdtypes.rst:1863 msgid "" "Return ``True`` if all cased characters [4]_ in the string are lowercase and " "there is at least one cased character, ``False`` otherwise." @@ -2986,7 +2963,7 @@ msgstr "" "ある文字が 1 文字以上あるなら ``True`` を、そうでなければ ``False`` を返しま" "す。" -#: ../../library/stdtypes.rst:1868 +#: ../../library/stdtypes.rst:1869 msgid "" "Return ``True`` if all characters in the string are numeric characters, and " "there is at least one character, ``False`` otherwise. Numeric characters " @@ -3001,7 +2978,7 @@ msgstr "" "FIFTH)。正式には、数を表す文字は、プロパティ値 Numeric_Type=Digit、 " "Numeric_Type=Decimal または Numeric_Type=Numeric を持つものです。" -#: ../../library/stdtypes.rst:1878 +#: ../../library/stdtypes.rst:1879 msgid "" "Return ``True`` if all characters in the string are printable or the string " "is empty, ``False`` otherwise. Nonprintable characters are those characters " @@ -3019,7 +2996,7 @@ msgstr "" "す。これは :data:`sys.stdout` や :data:`sys.stderr` に書き込まれる文字列の操" "作とは関係ありません。)" -#: ../../library/stdtypes.rst:1889 +#: ../../library/stdtypes.rst:1890 msgid "" "Return ``True`` if there are only whitespace characters in the string and " "there is at least one character, ``False`` otherwise." @@ -3027,7 +3004,7 @@ msgstr "" "文字列が空白文字だけからなり、かつ 1 文字以上ある場合には ``True`` を返し、そ" "うでない場合は ``False`` を返します。" -#: ../../library/stdtypes.rst:1892 +#: ../../library/stdtypes.rst:1893 msgid "" "A character is *whitespace* if in the Unicode character database (see :mod:" "`unicodedata`), either its general category is ``Zs`` (\"Separator, " @@ -3037,7 +3014,7 @@ msgstr "" "(\"Seperator, space\") であるか、 双方向クラスが ``WS``、``B``、 ``S`` のい" "ずれかである場合、その文字は *空白文字(whitespace)* です。 " -#: ../../library/stdtypes.rst:1900 +#: ../../library/stdtypes.rst:1901 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 " @@ -3049,7 +3026,7 @@ msgstr "" "にのみ続く場合には ``True`` を返します。そうでない場合は ``False`` を返しま" "す。" -#: ../../library/stdtypes.rst:1907 +#: ../../library/stdtypes.rst:1908 msgid "" "Return ``True`` if all cased characters [4]_ in the string are uppercase and " "there is at least one cased character, ``False`` otherwise." @@ -3058,7 +3035,7 @@ msgstr "" "ある文字が 1 文字以上あるなら ``True`` を、そうでなければ ``False`` を返しま" "す。" -#: ../../library/stdtypes.rst:1925 +#: ../../library/stdtypes.rst:1926 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 " @@ -3069,7 +3046,7 @@ msgstr "" "`bytes` オブジェクトのような非文字列の値が存在するなら、 :exc:`TypeError` が" "送出されます。要素間のセパレータは、このメソッドを提供する文字列です。" -#: ../../library/stdtypes.rst:1933 +#: ../../library/stdtypes.rst:1934 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 " @@ -3079,7 +3056,7 @@ msgstr "" "(デフォルトでは ASCII スペース) を使って行われます。 *width* が ``len(s)`` 以" "下ならば、元の文字列が返されます。" -#: ../../library/stdtypes.rst:1940 +#: ../../library/stdtypes.rst:1941 msgid "" "Return a copy of the string with all the cased characters [4]_ converted to " "lowercase." @@ -3087,7 +3064,7 @@ msgstr "" "全ての大小文字の区別のある文字 [4]_ が小文字に変換された、文字列のコピーを返" "します。" -#: ../../library/stdtypes.rst:1943 +#: ../../library/stdtypes.rst:1944 msgid "" "The lowercasing algorithm used is `described in section 3.13 'Default Case " "Folding' of the Unicode Standard `__。" -#: ../../library/stdtypes.rst:1950 +#: ../../library/stdtypes.rst:1951 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 " @@ -3110,7 +3087,7 @@ msgstr "" "除去されます。 *chars* 文字列は接頭辞ではなく、その値に含まれる文字の組み合わ" "せ全てがはぎ取られます::" -#: ../../library/stdtypes.rst:1960 +#: ../../library/stdtypes.rst:1961 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::" @@ -3118,14 +3095,14 @@ msgstr "" "文字の集合全てではなく、指定した文字列そのものを接頭辞として削除するメソッド" "については、 :meth:`str.removeprefix` を参照してください。使用例::" -#: ../../library/stdtypes.rst:1971 +#: ../../library/stdtypes.rst:1972 msgid "" "This static method returns a translation table usable for :meth:`str." "translate`." msgstr "" "この静的メソッドは :meth:`str.translate` に使える変換テーブルを返します。" -#: ../../library/stdtypes.rst:1973 +#: ../../library/stdtypes.rst:1974 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, " @@ -3136,7 +3113,7 @@ msgstr "" "文字列) を、Unicode 序数、(任意長の) 文字列、または ``None`` に対応づける辞書" "でなければなりません。このとき、文字で指定したキーは序数に変換されます。" -#: ../../library/stdtypes.rst:1978 +#: ../../library/stdtypes.rst:1979 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 " @@ -3148,7 +3125,7 @@ msgstr "" "指定する場合、文字列を指定する必要があり、それに含まれる文字が ``None`` に対" "応付けられます。" -#: ../../library/stdtypes.rst:1986 +#: ../../library/stdtypes.rst:1987 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 " @@ -3160,7 +3137,7 @@ msgstr "" "す。もし区切れなければ、タプルには元の文字列そのものとその後ろに二つの空文字" "列が入ります。" -#: ../../library/stdtypes.rst:1994 +#: ../../library/stdtypes.rst:1995 msgid "" "If the string starts with the *prefix* string, return " "``string[len(prefix):]``. Otherwise, return a copy of the original string::" @@ -3168,7 +3145,7 @@ msgstr "" "文字列が *prefix* で始まる場合、 ``string[len(prefix):]`` を返します。それ以" "外の場合、元の文字列のコピーを返します::" -#: ../../library/stdtypes.rst:2008 +#: ../../library/stdtypes.rst:2009 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 " @@ -3177,7 +3154,7 @@ msgstr "" "文字列が *suffix* で終わる場合、 ``string[:-len(suffix)]`` を返します。それ以" "外の場合、元の文字列のコピーを返します::" -#: ../../library/stdtypes.rst:2022 +#: ../../library/stdtypes.rst:2023 msgid "" "Return a copy of the string with all occurrences of substring *old* replaced " "by *new*. If the optional argument *count* is given, only the first *count* " @@ -3187,7 +3164,7 @@ msgstr "" "プション引数 *count* が与えられている場合、先頭から *count* 個の *old* だけを" "置換します。" -#: ../../library/stdtypes.rst:2029 +#: ../../library/stdtypes.rst:2030 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* " @@ -3197,7 +3174,7 @@ msgstr "" "スを返します。オプション引数 *start* および *end* はスライス表記と同様に解釈" "されます。 *sub* が見つからなかった場合 ``-1`` を返します。" -#: ../../library/stdtypes.rst:2036 +#: ../../library/stdtypes.rst:2037 msgid "" "Like :meth:`rfind` but raises :exc:`ValueError` when the substring *sub* is " "not found." @@ -3205,7 +3182,7 @@ msgstr "" ":meth:`rfind` と同様ですが、 *sub* が見つからなかった場合 :exc:`ValueError` " "を送出します。" -#: ../../library/stdtypes.rst:2042 +#: ../../library/stdtypes.rst:2043 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 " @@ -3215,7 +3192,7 @@ msgstr "" "指定された文字(デフォルトでは ASCII スペース)が使われます。 *width* が " "``len(s)`` 以下の場合、元の文字列が返されます。" -#: ../../library/stdtypes.rst:2049 +#: ../../library/stdtypes.rst:2050 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 " @@ -3227,7 +3204,7 @@ msgstr "" "す。もし区切れなければ、タプルには二つの空文字列とその後ろに元の文字列そのも" "のが入ります。" -#: ../../library/stdtypes.rst:2057 +#: ../../library/stdtypes.rst:2058 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 " @@ -3241,7 +3218,7 @@ msgstr "" "ます。右から分割していくことを除けば、 :meth:`rsplit` は後ほど詳しく述べる :" "meth:`split` と同様に振る舞います。" -#: ../../library/stdtypes.rst:2066 +#: ../../library/stdtypes.rst:2067 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 " @@ -3254,7 +3231,7 @@ msgstr "" "されます。 *chars* 文字列は接尾語ではなく、そこに含まれる文字の組み合わせ全て" "がはぎ取られます::" -#: ../../library/stdtypes.rst:2076 +#: ../../library/stdtypes.rst:2077 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::" @@ -3262,7 +3239,7 @@ msgstr "" "文字の集合全てではなく、指定した文字列そのものを接尾辞として削除するメソッド" "については :meth:`str.removesuffix` を参照してください。使用例::" -#: ../../library/stdtypes.rst:2086 +#: ../../library/stdtypes.rst:2087 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, " @@ -3275,7 +3252,7 @@ msgstr "" "トは最大 ``maxsplit+1`` 要素になります)。 *maxsplit* が与えられないか ``-1`` " "なら、分割の回数に制限はありません (可能なだけ分割されます)。" -#: ../../library/stdtypes.rst:2092 +#: ../../library/stdtypes.rst:2093 msgid "" "If *sep* is given, consecutive delimiters are not grouped together and are " "deemed to delimit empty strings (for example, ``'1,,2'.split(',')`` returns " @@ -3289,20 +3266,20 @@ msgstr "" "split('<>')`` は ``['1', '2', '3']`` を返します)。区切り文字を指定して空の文" "字列を分割すると、 ``['']`` を返します。" -#: ../../library/stdtypes.rst:2098 ../../library/stdtypes.rst:2114 -#: ../../library/stdtypes.rst:2166 ../../library/stdtypes.rst:2234 -#: ../../library/stdtypes.rst:2302 ../../library/stdtypes.rst:3149 -#: ../../library/stdtypes.rst:3165 ../../library/stdtypes.rst:3256 -#: ../../library/stdtypes.rst:3272 ../../library/stdtypes.rst:3297 -#: ../../library/stdtypes.rst:3311 ../../library/stdtypes.rst:3339 -#: ../../library/stdtypes.rst:3353 ../../library/stdtypes.rst:3371 -#: ../../library/stdtypes.rst:3398 ../../library/stdtypes.rst:3421 -#: ../../library/stdtypes.rst:3448 ../../library/stdtypes.rst:3490 -#: ../../library/stdtypes.rst:3514 +#: ../../library/stdtypes.rst:2099 ../../library/stdtypes.rst:2115 +#: ../../library/stdtypes.rst:2167 ../../library/stdtypes.rst:2235 +#: ../../library/stdtypes.rst:2303 ../../library/stdtypes.rst:3150 +#: ../../library/stdtypes.rst:3166 ../../library/stdtypes.rst:3257 +#: ../../library/stdtypes.rst:3273 ../../library/stdtypes.rst:3298 +#: ../../library/stdtypes.rst:3312 ../../library/stdtypes.rst:3340 +#: ../../library/stdtypes.rst:3354 ../../library/stdtypes.rst:3372 +#: ../../library/stdtypes.rst:3399 ../../library/stdtypes.rst:3422 +#: ../../library/stdtypes.rst:3449 ../../library/stdtypes.rst:3491 +#: ../../library/stdtypes.rst:3515 msgid "For example::" msgstr "例えば::" -#: ../../library/stdtypes.rst:2107 +#: ../../library/stdtypes.rst:2108 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, " @@ -3316,7 +3293,7 @@ msgstr "" "末尾に空白があっても、結果の最初や最後に空文字列は含まれません。よって、空文" "字列や空白だけの文字列を ``None`` デリミタで分割すると ``[]`` が返されます。" -#: ../../library/stdtypes.rst:2129 +#: ../../library/stdtypes.rst:2130 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 " @@ -3325,7 +3302,7 @@ msgstr "" "文字列を改行部分で分解し、各行からなるリストを返します。 *keepends* に真が与" "えらない限り、返されるリストに改行は含まれません。" -#: ../../library/stdtypes.rst:2133 +#: ../../library/stdtypes.rst:2134 msgid "" "This method splits on the following line boundaries. In particular, the " "boundaries are a superset of :term:`universal newlines`." @@ -3333,107 +3310,107 @@ msgstr "" "このメソッドは以下の行境界で分解します。特に、以下の境界は :term:`universal " "newlines` のスーパーセットです。" -#: ../../library/stdtypes.rst:2137 +#: ../../library/stdtypes.rst:2138 msgid "Representation" msgstr "表現" -#: ../../library/stdtypes.rst:2137 +#: ../../library/stdtypes.rst:2138 msgid "Description" msgstr "説明" -#: ../../library/stdtypes.rst:2139 +#: ../../library/stdtypes.rst:2140 msgid "``\\n``" msgstr "``\\n``" -#: ../../library/stdtypes.rst:2139 +#: ../../library/stdtypes.rst:2140 msgid "Line Feed" msgstr "改行" -#: ../../library/stdtypes.rst:2141 +#: ../../library/stdtypes.rst:2142 msgid "``\\r``" msgstr "``\\r``" -#: ../../library/stdtypes.rst:2141 +#: ../../library/stdtypes.rst:2142 msgid "Carriage Return" msgstr "復帰" -#: ../../library/stdtypes.rst:2143 +#: ../../library/stdtypes.rst:2144 msgid "``\\r\\n``" msgstr "``\\r\\n``" -#: ../../library/stdtypes.rst:2143 +#: ../../library/stdtypes.rst:2144 msgid "Carriage Return + Line Feed" msgstr "改行 + 復帰" -#: ../../library/stdtypes.rst:2145 +#: ../../library/stdtypes.rst:2146 msgid "``\\v`` or ``\\x0b``" msgstr "``\\v`` or ``\\x0b``" -#: ../../library/stdtypes.rst:2145 +#: ../../library/stdtypes.rst:2146 msgid "Line Tabulation" msgstr "垂直タブ" -#: ../../library/stdtypes.rst:2147 +#: ../../library/stdtypes.rst:2148 msgid "``\\f`` or ``\\x0c``" msgstr "``\\f`` or ``\\x0c``" -#: ../../library/stdtypes.rst:2147 +#: ../../library/stdtypes.rst:2148 msgid "Form Feed" msgstr "改ページ" -#: ../../library/stdtypes.rst:2149 +#: ../../library/stdtypes.rst:2150 msgid "``\\x1c``" msgstr "``\\x1c``" -#: ../../library/stdtypes.rst:2149 +#: ../../library/stdtypes.rst:2150 msgid "File Separator" msgstr "ファイル区切り" -#: ../../library/stdtypes.rst:2151 +#: ../../library/stdtypes.rst:2152 msgid "``\\x1d``" msgstr "``\\x1d``" -#: ../../library/stdtypes.rst:2151 +#: ../../library/stdtypes.rst:2152 msgid "Group Separator" msgstr "グループ区切り" -#: ../../library/stdtypes.rst:2153 +#: ../../library/stdtypes.rst:2154 msgid "``\\x1e``" msgstr "``\\x1e``" -#: ../../library/stdtypes.rst:2153 +#: ../../library/stdtypes.rst:2154 msgid "Record Separator" msgstr "レコード区切り" -#: ../../library/stdtypes.rst:2155 +#: ../../library/stdtypes.rst:2156 msgid "``\\x85``" msgstr "``\\x85``" -#: ../../library/stdtypes.rst:2155 +#: ../../library/stdtypes.rst:2156 msgid "Next Line (C1 Control Code)" msgstr "改行 (C1 制御コード)" -#: ../../library/stdtypes.rst:2157 +#: ../../library/stdtypes.rst:2158 msgid "``\\u2028``" msgstr "``\\u2028``" -#: ../../library/stdtypes.rst:2157 +#: ../../library/stdtypes.rst:2158 msgid "Line Separator" msgstr "行区切り" -#: ../../library/stdtypes.rst:2159 +#: ../../library/stdtypes.rst:2160 msgid "``\\u2029``" msgstr "``\\u2029``" -#: ../../library/stdtypes.rst:2159 +#: ../../library/stdtypes.rst:2160 msgid "Paragraph Separator" msgstr "段落区切り" -#: ../../library/stdtypes.rst:2164 +#: ../../library/stdtypes.rst:2165 msgid "``\\v`` and ``\\f`` added to list of line boundaries." msgstr "``\\v`` と ``\\f`` が行境界のリストに追加されました。" -#: ../../library/stdtypes.rst:2173 +#: ../../library/stdtypes.rst:2174 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 " @@ -3442,11 +3419,11 @@ msgstr "" ":meth:`~str.split` とは違って、デリミタ文字列 *sep* が与えられたとき、このメ" "ソッドは空文字列に空リストを返し、終末の改行は結果に行を追加しません::" -#: ../../library/stdtypes.rst:2182 +#: ../../library/stdtypes.rst:2183 msgid "For comparison, ``split('\\n')`` gives::" msgstr "比較のために ``split('\\n')`` は以下のようになります::" -#: ../../library/stdtypes.rst:2192 +#: ../../library/stdtypes.rst:2193 msgid "" "Return ``True`` if string starts with the *prefix*, otherwise return " "``False``. *prefix* can also be a tuple of prefixes to look for. With " @@ -3458,7 +3435,7 @@ msgstr "" "ん。オプションの *start* があれば、その位置から判定を始めます。オプションの " "*end* があれば、その位置で比較を止めます。" -#: ../../library/stdtypes.rst:2200 +#: ../../library/stdtypes.rst:2201 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 " @@ -3471,7 +3448,7 @@ msgstr "" "文字が除去されます。 *chars* 文字列は接頭語でも接尾語でもなく、そこに含まれる" "文字の組み合わせ全てがはぎ取られます::" -#: ../../library/stdtypes.rst:2211 +#: ../../library/stdtypes.rst:2212 msgid "" "The outermost leading and trailing *chars* argument values are stripped from " "the string. Characters are removed from the leading end until reaching a " @@ -3483,7 +3460,7 @@ msgstr "" "す。文字列の末尾に対しても同様の操作が行われます。例えば、次のようになりま" "す::" -#: ../../library/stdtypes.rst:2224 +#: ../../library/stdtypes.rst:2225 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()." @@ -3492,7 +3469,7 @@ msgstr "" "大文字が小文字に、小文字が大文字に変換された、文字列のコピーを返します。な" "お、 ``s.swapcase().swapcase() == s`` が真であるとは限りません。" -#: ../../library/stdtypes.rst:2231 +#: ../../library/stdtypes.rst:2232 msgid "" "Return a titlecased version of the string where words start with an " "uppercase character and the remaining characters are lowercase." @@ -3500,7 +3477,7 @@ msgstr "" "文字列を、単語ごとに大文字から始まり、残りの文字のうち大小文字の区別があるも" "のは全て小文字にする、タイトルケースにして返します。" -#: ../../library/stdtypes.rst:2239 ../../library/stdtypes.rst:3458 +#: ../../library/stdtypes.rst:2240 ../../library/stdtypes.rst:3459 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 " @@ -3512,19 +3489,19 @@ msgstr "" "アポストロフィが単語の境界になってしまい、望みの結果を得られない場合がありま" "す::" -#: ../../library/stdtypes.rst:2247 +#: ../../library/stdtypes.rst:2248 msgid "" "The :func:`string.capwords` function does not have this problem, as it " "splits words on spaces only." msgstr "" -#: ../../library/stdtypes.rst:2250 +#: ../../library/stdtypes.rst:2251 msgid "" "Alternatively, a workaround for apostrophes can be constructed using regular " "expressions::" msgstr "" -#: ../../library/stdtypes.rst:2265 +#: ../../library/stdtypes.rst:2266 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 " @@ -3536,7 +3513,7 @@ msgid "" "exception, to map the character to itself." msgstr "" -#: ../../library/stdtypes.rst:2274 +#: ../../library/stdtypes.rst:2275 msgid "" "You can use :meth:`str.maketrans` to create a translation map from character-" "to-character mappings in different formats." @@ -3544,7 +3521,7 @@ msgstr "" "文字から文字への異なる形式のマッピングから変換マップを作成するために、 :meth:" "`str.maketrans` が使えます。" -#: ../../library/stdtypes.rst:2277 +#: ../../library/stdtypes.rst:2278 msgid "" "See also the :mod:`codecs` module for a more flexible approach to custom " "character mappings." @@ -3552,7 +3529,7 @@ msgstr "" "文字のマッピングを好みに合わせてより柔軟に変更する方法については、:mod:" "`codecs` モジュールも参照してください。" -#: ../../library/stdtypes.rst:2283 +#: ../../library/stdtypes.rst:2284 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`` " @@ -3565,14 +3542,14 @@ msgstr "" "含まなかったり、結果の文字の Unicode カテゴリが \"Lu\" ではなく例えば " "\"Lt\" (Letter, titlecase) などであったら、 ``False`` になりえます。" -#: ../../library/stdtypes.rst:2289 +#: ../../library/stdtypes.rst:2290 msgid "" "The uppercasing algorithm used is `described in section 3.13 'Default Case " "Folding' of the Unicode Standard `__." msgstr "" -#: ../../library/stdtypes.rst:2296 +#: ../../library/stdtypes.rst:2297 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 " @@ -3584,11 +3561,11 @@ msgstr "" "く *後* に挿入されます。*width* が ``len(s)`` 以下の場合元の文字列を返しま" "す。" -#: ../../library/stdtypes.rst:2314 +#: ../../library/stdtypes.rst:2315 msgid "``printf``-style String Formatting" msgstr "``printf`` 形式の文字列書式化" -#: ../../library/stdtypes.rst:2327 +#: ../../library/stdtypes.rst:2328 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 " @@ -3606,7 +3583,7 @@ msgstr "" "これらの代替手段には、それ自身に、トレードオフや、簡潔さ、柔軟さ、拡張性と" "いった利点があります。" -#: ../../library/stdtypes.rst:2335 +#: ../../library/stdtypes.rst:2336 msgid "" "String objects have one unique built-in operation: the ``%`` operator " "(modulo). This is also known as the string *formatting* or *interpolation* " @@ -3621,7 +3598,7 @@ msgstr "" "*values* 中のゼロ個またはそれ以上の要素で置換されます。この動作は C 言語にお" "ける :c:func:`sprintf` に似ています。" -#: ../../library/stdtypes.rst:2341 +#: ../../library/stdtypes.rst:2342 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 " @@ -3633,7 +3610,7 @@ msgstr "" "列中で指定された項目と正確に同じ数の要素からなるタプルか、単一のマップオブ" "ジェクトでなければなりません。" -#: ../../library/stdtypes.rst:2351 ../../library/stdtypes.rst:3569 +#: ../../library/stdtypes.rst:2352 ../../library/stdtypes.rst:3570 msgid "" "A conversion specifier contains two or more characters and has the following " "components, which must occur in this order:" @@ -3641,11 +3618,11 @@ msgstr "" "一つの変換指定子は 2 またはそれ以上の文字を含み、その構成要素は以下からなりま" "すが、示した順に出現しなければなりません:" -#: ../../library/stdtypes.rst:2354 ../../library/stdtypes.rst:3572 +#: ../../library/stdtypes.rst:2355 ../../library/stdtypes.rst:3573 msgid "The ``'%'`` character, which marks the start of the specifier." msgstr "指定子の開始を示す文字 ``'%'`` 。" -#: ../../library/stdtypes.rst:2356 ../../library/stdtypes.rst:3574 +#: ../../library/stdtypes.rst:2357 ../../library/stdtypes.rst:3575 msgid "" "Mapping key (optional), consisting of a parenthesised sequence of characters " "(for example, ``(somename)``)." @@ -3653,13 +3630,13 @@ msgstr "" "マップキー (オプション)。丸括弧で囲った文字列からなります (例えば " "``(somename)``) 。" -#: ../../library/stdtypes.rst:2359 ../../library/stdtypes.rst:3577 +#: ../../library/stdtypes.rst:2360 ../../library/stdtypes.rst:3578 msgid "" "Conversion flags (optional), which affect the result of some conversion " "types." msgstr "変換フラグ (オプション)。一部の変換型の結果に影響します。" -#: ../../library/stdtypes.rst:2362 ../../library/stdtypes.rst:3580 +#: ../../library/stdtypes.rst:2363 ../../library/stdtypes.rst:3581 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 " @@ -3670,7 +3647,7 @@ msgstr "" "フィールド幅やオプションの精度指定の後に変換したいオブジェクトがくるようにし" "ます。" -#: ../../library/stdtypes.rst:2366 ../../library/stdtypes.rst:3584 +#: ../../library/stdtypes.rst:2367 ../../library/stdtypes.rst:3585 msgid "" "Precision (optional), given as a ``'.'`` (dot) followed by the precision. " "If specified as ``'*'`` (an asterisk), the actual precision is read from the " @@ -3681,15 +3658,15 @@ msgstr "" "``'*'`` (アスタリスク) を指定した場合、精度の桁数は *values* タプルの次の要素" "から読み出されます。タプルには精度指定の後に変換したい値がくるようにします。" -#: ../../library/stdtypes.rst:2371 ../../library/stdtypes.rst:3589 +#: ../../library/stdtypes.rst:2372 ../../library/stdtypes.rst:3590 msgid "Length modifier (optional)." msgstr "精度長変換子 (オプション)。" -#: ../../library/stdtypes.rst:2373 ../../library/stdtypes.rst:3591 +#: ../../library/stdtypes.rst:2374 ../../library/stdtypes.rst:3592 msgid "Conversion type." msgstr "変換型。" -#: ../../library/stdtypes.rst:2375 +#: ../../library/stdtypes.rst:2376 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 " @@ -3701,7 +3678,7 @@ msgstr "" "後にくるようにしたものが含まれていなければ *なりません* 。マップキーはフォー" "マット化したい値をマップから選び出します。例えば:" -#: ../../library/stdtypes.rst:2384 ../../library/stdtypes.rst:3602 +#: ../../library/stdtypes.rst:2385 ../../library/stdtypes.rst:3603 msgid "" "In this case no ``*`` specifiers may occur in a format (since they require a " "sequential parameter list)." @@ -3709,36 +3686,36 @@ msgstr "" "この場合、 ``*`` 指定子をフォーマットに含めてはいけません (``*`` 指定子は順番" "付けされたパラメタのリストが必要だからです)。" -#: ../../library/stdtypes.rst:2387 ../../library/stdtypes.rst:3605 +#: ../../library/stdtypes.rst:2388 ../../library/stdtypes.rst:3606 msgid "The conversion flag characters are:" msgstr "変換フラグ文字を以下に示します:" -#: ../../library/stdtypes.rst:2396 ../../library/stdtypes.rst:3614 +#: ../../library/stdtypes.rst:2397 ../../library/stdtypes.rst:3615 msgid "Flag" msgstr "Flag" -#: ../../library/stdtypes.rst:2398 ../../library/stdtypes.rst:3616 +#: ../../library/stdtypes.rst:2399 ../../library/stdtypes.rst:3617 msgid "``'#'``" msgstr "``'#'``" -#: ../../library/stdtypes.rst:2398 ../../library/stdtypes.rst:3616 +#: ../../library/stdtypes.rst:2399 ../../library/stdtypes.rst:3617 msgid "" "The value conversion will use the \"alternate form\" (where defined below)." msgstr "値の変換に (下で定義されている) \"別の形式\" を使います。" -#: ../../library/stdtypes.rst:2401 ../../library/stdtypes.rst:3619 +#: ../../library/stdtypes.rst:2402 ../../library/stdtypes.rst:3620 msgid "``'0'``" msgstr "``'0'``" -#: ../../library/stdtypes.rst:2401 ../../library/stdtypes.rst:3619 +#: ../../library/stdtypes.rst:2402 ../../library/stdtypes.rst:3620 msgid "The conversion will be zero padded for numeric values." msgstr "数値型に対してゼロによるパディングを行います。" -#: ../../library/stdtypes.rst:2403 ../../library/stdtypes.rst:3621 +#: ../../library/stdtypes.rst:2404 ../../library/stdtypes.rst:3622 msgid "``'-'``" msgstr "``'-'``" -#: ../../library/stdtypes.rst:2403 ../../library/stdtypes.rst:3621 +#: ../../library/stdtypes.rst:2404 ../../library/stdtypes.rst:3622 msgid "" "The converted value is left adjusted (overrides the ``'0'`` conversion if " "both are given)." @@ -3746,11 +3723,11 @@ msgstr "" "変換された値を左寄せにします (``'0'`` と同時に与えた場合、 ``'0'`` を上書きし" "ます) 。" -#: ../../library/stdtypes.rst:2406 ../../library/stdtypes.rst:3624 +#: ../../library/stdtypes.rst:2407 ../../library/stdtypes.rst:3625 msgid "``' '``" msgstr "``' '``" -#: ../../library/stdtypes.rst:2406 ../../library/stdtypes.rst:3624 +#: ../../library/stdtypes.rst:2407 ../../library/stdtypes.rst:3625 msgid "" "(a space) A blank should be left before a positive number (or empty string) " "produced by a signed conversion." @@ -3758,11 +3735,11 @@ msgstr "" "(スペース) 符号付きの変換で正の数の場合、前に一つスペースを空けます (そうでな" "い場合は空文字になります) 。" -#: ../../library/stdtypes.rst:2409 ../../library/stdtypes.rst:3627 +#: ../../library/stdtypes.rst:2410 ../../library/stdtypes.rst:3628 msgid "``'+'``" msgstr "``'+'``" -#: ../../library/stdtypes.rst:2409 ../../library/stdtypes.rst:3627 +#: ../../library/stdtypes.rst:2410 ../../library/stdtypes.rst:3628 msgid "" "A sign character (``'+'`` or ``'-'``) will precede the conversion (overrides " "a \"space\" flag)." @@ -3770,7 +3747,7 @@ msgstr "" "変換の先頭に符号文字 (``'+'`` または ``'-'``) を付けます(\"スペース\" フラグ" "を上書きします) 。" -#: ../../library/stdtypes.rst:2413 ../../library/stdtypes.rst:3631 +#: ../../library/stdtypes.rst:2414 ../../library/stdtypes.rst:3632 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``." @@ -3778,93 +3755,93 @@ msgstr "" "精度長変換子(``h``, ``l``,または ``L``) を使うことができますが、 Python では" "必要ないため無視されます。 -- つまり、例えば ``%ld`` は ``%d`` と等価です。" -#: ../../library/stdtypes.rst:2416 ../../library/stdtypes.rst:3634 +#: ../../library/stdtypes.rst:2417 ../../library/stdtypes.rst:3635 msgid "The conversion types are:" msgstr "変換型を以下に示します:" -#: ../../library/stdtypes.rst:2419 ../../library/stdtypes.rst:3637 +#: ../../library/stdtypes.rst:2420 ../../library/stdtypes.rst:3638 msgid "Conversion" msgstr "変換" -#: ../../library/stdtypes.rst:2421 ../../library/stdtypes.rst:3639 +#: ../../library/stdtypes.rst:2422 ../../library/stdtypes.rst:3640 msgid "``'d'``" msgstr "``'d'``" -#: ../../library/stdtypes.rst:2421 ../../library/stdtypes.rst:2423 -#: ../../library/stdtypes.rst:3639 ../../library/stdtypes.rst:3641 +#: ../../library/stdtypes.rst:2422 ../../library/stdtypes.rst:2424 +#: ../../library/stdtypes.rst:3640 ../../library/stdtypes.rst:3642 msgid "Signed integer decimal." msgstr "符号付き 10 進整数。" -#: ../../library/stdtypes.rst:2423 ../../library/stdtypes.rst:3641 +#: ../../library/stdtypes.rst:2424 ../../library/stdtypes.rst:3642 msgid "``'i'``" msgstr "``'i'``" -#: ../../library/stdtypes.rst:2425 ../../library/stdtypes.rst:3643 +#: ../../library/stdtypes.rst:2426 ../../library/stdtypes.rst:3644 msgid "``'o'``" msgstr "``'o'``" -#: ../../library/stdtypes.rst:2425 ../../library/stdtypes.rst:3643 +#: ../../library/stdtypes.rst:2426 ../../library/stdtypes.rst:3644 msgid "Signed octal value." msgstr "符号付き 8 進数。" -#: ../../library/stdtypes.rst:2427 ../../library/stdtypes.rst:3645 +#: ../../library/stdtypes.rst:2428 ../../library/stdtypes.rst:3646 msgid "``'u'``" msgstr "``'u'``" -#: ../../library/stdtypes.rst:2427 ../../library/stdtypes.rst:3645 +#: ../../library/stdtypes.rst:2428 ../../library/stdtypes.rst:3646 msgid "Obsolete type -- it is identical to ``'d'``." msgstr "旧式の型 -- ``'d'`` と同じです。" -#: ../../library/stdtypes.rst:2429 ../../library/stdtypes.rst:3647 +#: ../../library/stdtypes.rst:2430 ../../library/stdtypes.rst:3648 msgid "``'x'``" msgstr "``'x'``" -#: ../../library/stdtypes.rst:2429 ../../library/stdtypes.rst:3647 +#: ../../library/stdtypes.rst:2430 ../../library/stdtypes.rst:3648 msgid "Signed hexadecimal (lowercase)." msgstr "符号付き 16 進数 (小文字)。" -#: ../../library/stdtypes.rst:2431 ../../library/stdtypes.rst:3649 +#: ../../library/stdtypes.rst:2432 ../../library/stdtypes.rst:3650 msgid "``'X'``" msgstr "``'X'``" -#: ../../library/stdtypes.rst:2431 ../../library/stdtypes.rst:3649 +#: ../../library/stdtypes.rst:2432 ../../library/stdtypes.rst:3650 msgid "Signed hexadecimal (uppercase)." msgstr "符号付き 16 進数 (大文字)。" -#: ../../library/stdtypes.rst:2433 ../../library/stdtypes.rst:3651 +#: ../../library/stdtypes.rst:2434 ../../library/stdtypes.rst:3652 msgid "``'e'``" msgstr "``'e'``" -#: ../../library/stdtypes.rst:2433 ../../library/stdtypes.rst:3651 +#: ../../library/stdtypes.rst:2434 ../../library/stdtypes.rst:3652 msgid "Floating point exponential format (lowercase)." msgstr "指数表記の浮動小数点数 (小文字)。" -#: ../../library/stdtypes.rst:2435 ../../library/stdtypes.rst:3653 +#: ../../library/stdtypes.rst:2436 ../../library/stdtypes.rst:3654 msgid "``'E'``" msgstr "``'E'``" -#: ../../library/stdtypes.rst:2435 ../../library/stdtypes.rst:3653 +#: ../../library/stdtypes.rst:2436 ../../library/stdtypes.rst:3654 msgid "Floating point exponential format (uppercase)." msgstr "指数表記の浮動小数点数 (大文字)。" -#: ../../library/stdtypes.rst:2437 ../../library/stdtypes.rst:3655 +#: ../../library/stdtypes.rst:2438 ../../library/stdtypes.rst:3656 msgid "``'f'``" msgstr "``'f'``" -#: ../../library/stdtypes.rst:2437 ../../library/stdtypes.rst:2439 -#: ../../library/stdtypes.rst:3655 ../../library/stdtypes.rst:3657 +#: ../../library/stdtypes.rst:2438 ../../library/stdtypes.rst:2440 +#: ../../library/stdtypes.rst:3656 ../../library/stdtypes.rst:3658 msgid "Floating point decimal format." msgstr "10 進浮動小数点数。" -#: ../../library/stdtypes.rst:2439 ../../library/stdtypes.rst:3657 +#: ../../library/stdtypes.rst:2440 ../../library/stdtypes.rst:3658 msgid "``'F'``" msgstr "``'F'``" -#: ../../library/stdtypes.rst:2441 ../../library/stdtypes.rst:3659 +#: ../../library/stdtypes.rst:2442 ../../library/stdtypes.rst:3660 msgid "``'g'``" msgstr "``'g'``" -#: ../../library/stdtypes.rst:2441 ../../library/stdtypes.rst:3659 +#: ../../library/stdtypes.rst:2442 ../../library/stdtypes.rst:3660 msgid "" "Floating point format. Uses lowercase exponential format if exponent is less " "than -4 or not less than precision, decimal format otherwise." @@ -3872,11 +3849,11 @@ msgstr "" "浮動小数点数。指数部が -4 以上または精度以下の場合には小文字指数表記、それ以" "外の場合には10進表記。" -#: ../../library/stdtypes.rst:2445 ../../library/stdtypes.rst:3663 +#: ../../library/stdtypes.rst:2446 ../../library/stdtypes.rst:3664 msgid "``'G'``" msgstr "``'G'``" -#: ../../library/stdtypes.rst:2445 ../../library/stdtypes.rst:3663 +#: ../../library/stdtypes.rst:2446 ../../library/stdtypes.rst:3664 msgid "" "Floating point format. Uses uppercase exponential format if exponent is less " "than -4 or not less than precision, decimal format otherwise." @@ -3884,47 +3861,47 @@ msgstr "" "浮動小数点数。指数部が -4 以上または精度以下の場合には大文字指数表記、それ以" "外の場合には10進表記。" -#: ../../library/stdtypes.rst:2449 ../../library/stdtypes.rst:3667 +#: ../../library/stdtypes.rst:2450 ../../library/stdtypes.rst:3668 msgid "``'c'``" msgstr "``'c'``" -#: ../../library/stdtypes.rst:2449 +#: ../../library/stdtypes.rst:2450 msgid "Single character (accepts integer or single character string)." msgstr "文字一文字 (整数または一文字からなる文字列を受理します)。" -#: ../../library/stdtypes.rst:2452 ../../library/stdtypes.rst:3680 +#: ../../library/stdtypes.rst:2453 ../../library/stdtypes.rst:3681 msgid "``'r'``" msgstr "``'r'``" -#: ../../library/stdtypes.rst:2452 +#: ../../library/stdtypes.rst:2453 msgid "String (converts any Python object using :func:`repr`)." msgstr "文字列 (Python オブジェクトを :func:`repr` で変換します)。" -#: ../../library/stdtypes.rst:2455 ../../library/stdtypes.rst:3674 +#: ../../library/stdtypes.rst:2456 ../../library/stdtypes.rst:3675 msgid "``'s'``" msgstr "``'s'``" -#: ../../library/stdtypes.rst:2455 +#: ../../library/stdtypes.rst:2456 msgid "String (converts any Python object using :func:`str`)." msgstr "文字列 (Python オブジェクトを :func:`str` で変換します)。" -#: ../../library/stdtypes.rst:2458 ../../library/stdtypes.rst:3677 +#: ../../library/stdtypes.rst:2459 ../../library/stdtypes.rst:3678 msgid "``'a'``" msgstr "``'a'``" -#: ../../library/stdtypes.rst:2458 +#: ../../library/stdtypes.rst:2459 msgid "String (converts any Python object using :func:`ascii`)." msgstr "文字列 (Python オブジェクトを :func:`ascii` で変換します)。" -#: ../../library/stdtypes.rst:2461 ../../library/stdtypes.rst:3683 +#: ../../library/stdtypes.rst:2462 ../../library/stdtypes.rst:3684 msgid "``'%'``" msgstr "``'%'``" -#: ../../library/stdtypes.rst:2461 ../../library/stdtypes.rst:3683 +#: ../../library/stdtypes.rst:2462 ../../library/stdtypes.rst:3684 msgid "No argument is converted, results in a ``'%'`` character in the result." msgstr "引数を変換せず、返される文字列中では文字 ``'%'`` になります。" -#: ../../library/stdtypes.rst:2468 ../../library/stdtypes.rst:3690 +#: ../../library/stdtypes.rst:2469 ../../library/stdtypes.rst:3691 msgid "" "The alternate form causes a leading octal specifier (``'0o'``) to be " "inserted before the first digit." @@ -3932,7 +3909,7 @@ msgstr "" "別の形式を指定(訳注: 変換フラグ ``#`` を使用)すると 8 進数を表す接頭辞 " "(``'0o'``) が最初の数字の前に挿入されます。" -#: ../../library/stdtypes.rst:2472 ../../library/stdtypes.rst:3694 +#: ../../library/stdtypes.rst:2473 ../../library/stdtypes.rst:3695 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 " @@ -3942,7 +3919,7 @@ msgstr "" "``'0x'`` または ``'0X'`` (使用するフォーマット文字が ``'x'`` か ``'X'`` に依" "存します) が最初の数字の前に挿入されます。" -#: ../../library/stdtypes.rst:2476 ../../library/stdtypes.rst:3698 +#: ../../library/stdtypes.rst:2477 ../../library/stdtypes.rst:3699 msgid "" "The alternate form causes the result to always contain a decimal point, even " "if no digits follow it." @@ -3950,13 +3927,13 @@ msgstr "" "この形式にした場合、変換結果には常に小数点が含まれ、それはその後ろに数字が続" "かない場合にも適用されます。" -#: ../../library/stdtypes.rst:2479 ../../library/stdtypes.rst:3701 +#: ../../library/stdtypes.rst:2480 ../../library/stdtypes.rst:3702 msgid "" "The precision determines the number of digits after the decimal point and " "defaults to 6." msgstr "指定精度は小数点の後の桁数を決定し、そのデフォルトは 6 です。" -#: ../../library/stdtypes.rst:2483 ../../library/stdtypes.rst:3705 +#: ../../library/stdtypes.rst:2484 ../../library/stdtypes.rst:3706 msgid "" "The alternate form causes the result to always contain a decimal point, and " "trailing zeroes are not removed as they would otherwise be." @@ -3964,21 +3941,21 @@ msgstr "" "この形式にした場合、変換結果には常に小数点が含まれ他の形式とは違って末尾の 0 " "は取り除かれません。" -#: ../../library/stdtypes.rst:2486 ../../library/stdtypes.rst:3708 +#: ../../library/stdtypes.rst:2487 ../../library/stdtypes.rst:3709 msgid "" "The precision determines the number of significant digits before and after " "the decimal point and defaults to 6." msgstr "指定精度は小数点の前後の有効桁数を決定し、そのデフォルトは 6 です。" -#: ../../library/stdtypes.rst:2490 ../../library/stdtypes.rst:3712 +#: ../../library/stdtypes.rst:2491 ../../library/stdtypes.rst:3713 msgid "If precision is ``N``, the output is truncated to ``N`` characters." msgstr "精度が ``N`` なら、出力は ``N`` 文字に切り詰められます。" -#: ../../library/stdtypes.rst:2493 ../../library/stdtypes.rst:3721 +#: ../../library/stdtypes.rst:2494 ../../library/stdtypes.rst:3722 msgid "See :pep:`237`." msgstr ":pep:`237` を参照してください。" -#: ../../library/stdtypes.rst:2495 +#: ../../library/stdtypes.rst:2496 msgid "" "Since Python strings have an explicit length, ``%s`` conversions do not " "assume that ``'\\0'`` is the end of the string." @@ -3986,7 +3963,7 @@ msgstr "" "Python 文字列には明示的な長さ情報があるので、 ``%s`` 変換において ``'\\0'`` " "を文字列の末端と仮定したりはしません。" -#: ../../library/stdtypes.rst:2500 +#: ../../library/stdtypes.rst:2501 msgid "" "``%f`` conversions for numbers whose absolute value is over 1e50 are no " "longer replaced by ``%g`` conversions." @@ -3994,7 +3971,7 @@ msgstr "" "絶対値が 1e50 を超える数値の ``%f`` 変換が ``%g`` 変換に置き換えられなくなり" "ました。" -#: ../../library/stdtypes.rst:2511 +#: ../../library/stdtypes.rst:2512 msgid "" "Binary Sequence Types --- :class:`bytes`, :class:`bytearray`, :class:" "`memoryview`" @@ -4002,7 +3979,7 @@ msgstr "" "バイナリシーケンス型 --- :class:`bytes`, :class:`bytearray`, :class:" "`memoryview`" -#: ../../library/stdtypes.rst:2519 +#: ../../library/stdtypes.rst:2520 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 :" @@ -4014,7 +3991,7 @@ msgstr "" "ること無くアクセスするための :ref:`バッファプロトコル ` を利用" "する :class:`memoryview` でサポートされています。" -#: ../../library/stdtypes.rst:2524 +#: ../../library/stdtypes.rst:2525 msgid "" "The :mod:`array` module supports efficient storage of basic data types like " "32-bit integers and IEEE754 double-precision floating values." @@ -4022,11 +3999,11 @@ msgstr "" ":mod:`array` モジュールは、32 ビット整数や IEEE754 倍精度浮動小数点値のような" "基本データ型の、効率的な保存をサポートしています。" -#: ../../library/stdtypes.rst:2530 +#: ../../library/stdtypes.rst:2531 msgid "Bytes Objects" msgstr "バイトオブジェクト" -#: ../../library/stdtypes.rst:2534 +#: ../../library/stdtypes.rst:2535 msgid "" "Bytes objects are immutable sequences of single bytes. Since many major " "binary protocols are based on the ASCII text encoding, bytes objects offer " @@ -4038,7 +4015,7 @@ msgstr "" "データに対してのみ動作する幾つかのメソッドを提供していて、文字列オブジェクト" "と他の多くの点で近いです。" -#: ../../library/stdtypes.rst:2541 +#: ../../library/stdtypes.rst:2542 msgid "" "Firstly, the syntax for bytes literals is largely the same as that for " "string literals, except that a ``b`` prefix is added:" @@ -4046,21 +4023,21 @@ msgstr "" "まず、 bytes リテラルの構文は文字列リテラルとほぼ同じで、 ``b`` というプリ" "フィックスを付けます:" -#: ../../library/stdtypes.rst:2544 +#: ../../library/stdtypes.rst:2545 msgid "Single quotes: ``b'still allows embedded \"double\" quotes'``" msgstr "シングルクォート: ``b'still allows embedded \"double\" quotes'``" -#: ../../library/stdtypes.rst:2545 +#: ../../library/stdtypes.rst:2546 msgid "Double quotes: ``b\"still allows embedded 'single' quotes\"``" msgstr "ダブルクォート: ``b\"still allows embedded 'single' quotes\"``." -#: ../../library/stdtypes.rst:2546 +#: ../../library/stdtypes.rst:2547 msgid "" "Triple quoted: ``b'''3 single quotes'''``, ``b\"\"\"3 double quotes\"\"\"``" msgstr "" "3重クォート: ``b'''3 single quotes'''``, ``b\"\"\"3 double quotes\"\"\"``" -#: ../../library/stdtypes.rst:2548 +#: ../../library/stdtypes.rst:2549 msgid "" "Only ASCII characters are permitted in bytes literals (regardless of the " "declared source code encoding). Any binary values over 127 must be entered " @@ -4070,7 +4047,7 @@ msgstr "" "許可されています。 127より大きい値を bytes リテラルに記述する場合は適切なエス" "ケープシーケンスを書く必要があります。" -#: ../../library/stdtypes.rst:2552 +#: ../../library/stdtypes.rst:2553 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 " @@ -4081,7 +4058,7 @@ msgstr "" "やサポートされているエスケープシーケンスについては :ref:`strings` を参照して" "ください。" -#: ../../library/stdtypes.rst:2556 +#: ../../library/stdtypes.rst:2557 msgid "" "While bytes literals and representations are based on ASCII text, bytes " "objects actually behave like immutable sequences of integers, with each " @@ -4102,29 +4079,29 @@ msgstr "" "設計されました (何も考えずにテキスト操作アルゴリズムをASCII非互換なバイナリ" "データフォーマットに対して行うとデータを破壊することがあります)。" -#: ../../library/stdtypes.rst:2566 +#: ../../library/stdtypes.rst:2567 msgid "" "In addition to the literal forms, bytes objects can be created in a number " "of other ways:" msgstr "リテラル以外に、幾つかの方法で bytes オブジェクトを作ることができます:" -#: ../../library/stdtypes.rst:2569 +#: ../../library/stdtypes.rst:2570 msgid "A zero-filled bytes object of a specified length: ``bytes(10)``" msgstr "指定された長さの、0で埋められた bytes オブジェクト: ``bytes(10)``" -#: ../../library/stdtypes.rst:2570 +#: ../../library/stdtypes.rst:2571 msgid "From an iterable of integers: ``bytes(range(20))``" msgstr "整数の iterable から: ``bytes(range(20))``" -#: ../../library/stdtypes.rst:2571 +#: ../../library/stdtypes.rst:2572 msgid "Copying existing binary data via the buffer protocol: ``bytes(obj)``" msgstr "既存のバイナリデータからバッファプロトコルでコピーする: ``bytes(obj)``" -#: ../../library/stdtypes.rst:2573 +#: ../../library/stdtypes.rst:2574 msgid "Also see the :ref:`bytes ` built-in." msgstr ":ref:`bytes ` ビルトイン関数も参照してください。" -#: ../../library/stdtypes.rst:2575 +#: ../../library/stdtypes.rst:2576 msgid "" "Since 2 hexadecimal digits correspond precisely to a single byte, " "hexadecimal numbers are a commonly used format for describing binary data. " @@ -4135,7 +4112,7 @@ msgstr "" "表現する形式として広く使われています。 従って、 bytes 型にはその形式でデータ" "を読み取るための追加のクラスメソッドがあります。" -#: ../../library/stdtypes.rst:2581 +#: ../../library/stdtypes.rst:2582 msgid "" "This :class:`bytes` class method returns a bytes object, decoding the given " "string object. The string must contain two hexadecimal digits per byte, " @@ -4145,7 +4122,7 @@ msgstr "" "ドして bytes オブジェクトを返します。それぞれのバイトを 16 進数 2 桁で表現し" "た文字列を指定しなければなりません。ASCII 空白文字は無視されます。" -#: ../../library/stdtypes.rst:2588 +#: ../../library/stdtypes.rst:2589 msgid "" ":meth:`bytes.fromhex` now skips all ASCII whitespace in the string, not just " "spaces." @@ -4153,7 +4130,7 @@ msgstr "" ":meth:`bytes.fromhex` は文字列にある空白だけでなく、 ASCII の空白文字全てをス" "キップするようになりました。" -#: ../../library/stdtypes.rst:2592 +#: ../../library/stdtypes.rst:2593 msgid "" "A reverse conversion function exists to transform a bytes object into its " "hexadecimal representation." @@ -4161,7 +4138,7 @@ msgstr "" "bytes オブジェクトをその 16 進表記に変換するための、反対向きの変換関数があり" "ます。" -#: ../../library/stdtypes.rst:2597 ../../library/stdtypes.rst:2682 +#: ../../library/stdtypes.rst:2598 ../../library/stdtypes.rst:2683 msgid "" "Return a string object containing two hexadecimal digits for each byte in " "the instance." @@ -4169,7 +4146,7 @@ msgstr "" "インスタンス内の 1 バイトにつき 2 つの 16 進数を含む、文字列オブジェクトを返" "します。" -#: ../../library/stdtypes.rst:2603 +#: ../../library/stdtypes.rst:2604 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, " @@ -4178,13 +4155,13 @@ msgid "" "the separator position from the right, negative values from the left." msgstr "" -#: ../../library/stdtypes.rst:2620 +#: ../../library/stdtypes.rst:2621 msgid "" ":meth:`bytes.hex` now supports optional *sep* and *bytes_per_sep* parameters " "to insert separators between bytes in the hex output." msgstr "" -#: ../../library/stdtypes.rst:2624 +#: ../../library/stdtypes.rst:2625 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 " @@ -4196,7 +4173,7 @@ msgstr "" "ジェクトになります。 (この動作は、文字列に対するインデックス指定もスライスも" "長さ 1 の文字列を返すのと対照的です。)" -#: ../../library/stdtypes.rst:2629 +#: ../../library/stdtypes.rst:2630 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 " @@ -4206,11 +4183,11 @@ msgstr "" "``bytes([46, 46, 46])`` などの形式よりも便利な事が多いからです。 bytes オブ" "ジェクトはいつでも ``list(b)`` で整数のリストに変換できます。" -#: ../../library/stdtypes.rst:2637 +#: ../../library/stdtypes.rst:2638 msgid "Bytearray Objects" msgstr "bytearray オブジェクト" -#: ../../library/stdtypes.rst:2641 +#: ../../library/stdtypes.rst:2642 msgid "" ":class:`bytearray` objects are a mutable counterpart to :class:`bytes` " "objects." @@ -4218,33 +4195,33 @@ msgstr "" ":class:`bytearray` オブジェクトは :class:`bytes` オブジェクトの可変なバージョ" "ンです。" -#: ../../library/stdtypes.rst:2646 +#: ../../library/stdtypes.rst:2647 msgid "" "There is no dedicated literal syntax for bytearray objects, instead they are " "always created by calling the constructor:" msgstr "" "bytearray に専用のリテラル構文はないので、コンストラクタを使って作成します:" -#: ../../library/stdtypes.rst:2649 +#: ../../library/stdtypes.rst:2650 msgid "Creating an empty instance: ``bytearray()``" msgstr "空のインスタンスを作る: ``bytearray()``" -#: ../../library/stdtypes.rst:2650 +#: ../../library/stdtypes.rst:2651 msgid "Creating a zero-filled instance with a given length: ``bytearray(10)``" msgstr "指定された長さの0で埋められたインスタンスを作る: ``bytearray(10)``" -#: ../../library/stdtypes.rst:2651 +#: ../../library/stdtypes.rst:2652 msgid "From an iterable of integers: ``bytearray(range(20))``" msgstr "整数の iterable から: ``bytearray(range(20))``" -#: ../../library/stdtypes.rst:2652 +#: ../../library/stdtypes.rst:2653 msgid "" "Copying existing binary data via the buffer protocol: ``bytearray(b'Hi!')``" msgstr "" "既存のバイナリデータからバッファプロトコルを通してコピーする: " "``bytearray(b'Hi!')``" -#: ../../library/stdtypes.rst:2654 +#: ../../library/stdtypes.rst:2655 msgid "" "As bytearray objects are mutable, they support the :ref:`mutable ` sequence operations in addition to the common bytes and bytearray " @@ -4254,11 +4231,11 @@ msgstr "" "bytes オブジェクトと共通の操作に加えて、 :ref:`mutable ` " "シーケンス操作もサポートしています。" -#: ../../library/stdtypes.rst:2658 +#: ../../library/stdtypes.rst:2659 msgid "Also see the :ref:`bytearray ` built-in." msgstr ":ref:`bytearray ` ビルトイン関数も参照してください。" -#: ../../library/stdtypes.rst:2660 +#: ../../library/stdtypes.rst:2661 msgid "" "Since 2 hexadecimal digits correspond precisely to a single byte, " "hexadecimal numbers are a commonly used format for describing binary data. " @@ -4269,7 +4246,7 @@ msgstr "" "表現する形式として広く使われています。 従って、 bytearray 型にはその形式で" "データを読み取るための追加のクラスメソッドがあります。" -#: ../../library/stdtypes.rst:2666 +#: ../../library/stdtypes.rst:2667 msgid "" "This :class:`bytearray` class method returns bytearray object, decoding the " "given string object. The string must contain two hexadecimal digits per " @@ -4279,7 +4256,7 @@ msgstr "" "コードして bytearray オブジェクトを返します。それぞれのバイトを 16 進数 2 桁" "で表現した文字列を指定しなければなりません。ASCII 空白文字は無視されます。" -#: ../../library/stdtypes.rst:2673 +#: ../../library/stdtypes.rst:2674 msgid "" ":meth:`bytearray.fromhex` now skips all ASCII whitespace in the string, not " "just spaces." @@ -4287,7 +4264,7 @@ msgstr "" ":meth:`bytearray.fromhex` は文字列にある空白だけでなく、 ASCII の空白文字全て" "をスキップするようになりました。" -#: ../../library/stdtypes.rst:2677 +#: ../../library/stdtypes.rst:2678 msgid "" "A reverse conversion function exists to transform a bytearray object into " "its hexadecimal representation." @@ -4295,14 +4272,14 @@ msgstr "" "bytearray オブジェクトをその 16 進表記に変換するための、反対向きの変換関数が" "あります。" -#: ../../library/stdtypes.rst:2690 +#: ../../library/stdtypes.rst:2691 msgid "" "Similar to :meth:`bytes.hex`, :meth:`bytearray.hex` now supports optional " "*sep* and *bytes_per_sep* parameters to insert separators between bytes in " "the hex output." msgstr "" -#: ../../library/stdtypes.rst:2695 +#: ../../library/stdtypes.rst:2696 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 " @@ -4314,7 +4291,7 @@ msgstr "" "さ 1 の bytearray オブジェクトになります。(これは、文字列においてインデックス" "指定もスライスも長さ 1 の文字列を返すのと対照的です。)" -#: ../../library/stdtypes.rst:2700 +#: ../../library/stdtypes.rst:2701 msgid "" "The representation of bytearray objects uses the bytes literal format " "(``bytearray(b'...')``) since it is often more useful than e.g. " @@ -4326,11 +4303,11 @@ msgstr "" "ためです。\n" "bytearray オブジェクトはいつでも ``list(b)`` で整数のリストに変換できます。" -#: ../../library/stdtypes.rst:2709 +#: ../../library/stdtypes.rst:2710 msgid "Bytes and Bytearray Operations" msgstr "bytes と bytearray の操作" -#: ../../library/stdtypes.rst:2714 +#: ../../library/stdtypes.rst:2715 msgid "" "Both bytes and bytearray objects support the :ref:`common ` " "sequence operations. They interoperate not just with operands of the same " @@ -4344,7 +4321,7 @@ msgstr "" "と bytearray を自由に混ぜてもエラーを起こすことなく扱うことができます。ただ" "し、操作の結果のオブジェクトはその操作の順序に依存することになります。" -#: ../../library/stdtypes.rst:2722 +#: ../../library/stdtypes.rst:2723 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 " @@ -4354,11 +4331,11 @@ msgstr "" "と bytearray オブジェクトのメソッドは引数として文字列を受け付けません。例え" "ば、以下のように書かなければなりません::" -#: ../../library/stdtypes.rst:2729 +#: ../../library/stdtypes.rst:2730 msgid "and::" msgstr "および::" -#: ../../library/stdtypes.rst:2734 +#: ../../library/stdtypes.rst:2735 msgid "" "Some bytes and bytearray operations assume the use of ASCII compatible " "binary formats, and hence should be avoided when working with arbitrary " @@ -4368,7 +4345,7 @@ msgstr "" "トが使われていると仮定していますので、フォーマットの不明なバイナリデータに対" "して使うことは避けるべきです。こうした制約については以下で説明します。" -#: ../../library/stdtypes.rst:2739 +#: ../../library/stdtypes.rst:2740 msgid "" "Using these ASCII based operations to manipulate binary data that is not " "stored in an ASCII based format may lead to data corruption." @@ -4376,7 +4353,7 @@ msgstr "" "これらの ASCII ベースの演算を使って ASCII ベースではないバイナリデータを操作" "すると、データを破壊する恐れがあります。" -#: ../../library/stdtypes.rst:2742 +#: ../../library/stdtypes.rst:2743 msgid "" "The following methods on bytes and bytearray objects can be used with " "arbitrary binary data." @@ -4384,7 +4361,7 @@ msgstr "" "以下の bytes および bytearray オブジェクトのメソッドは、任意のバイナリデータ" "に対して使用できます。" -#: ../../library/stdtypes.rst:2748 +#: ../../library/stdtypes.rst:2749 msgid "" "Return the number of non-overlapping occurrences of subsequence *sub* in the " "range [*start*, *end*]. Optional arguments *start* and *end* are " @@ -4394,9 +4371,9 @@ msgstr "" "ます。オプション引数 *start* および *end* はスライス表記と同じように解釈され" "ます。" -#: ../../library/stdtypes.rst:2752 ../../library/stdtypes.rst:2857 -#: ../../library/stdtypes.rst:2879 ../../library/stdtypes.rst:2945 -#: ../../library/stdtypes.rst:2958 +#: ../../library/stdtypes.rst:2753 ../../library/stdtypes.rst:2858 +#: ../../library/stdtypes.rst:2880 ../../library/stdtypes.rst:2946 +#: ../../library/stdtypes.rst:2959 msgid "" "The subsequence to search for may be any :term:`bytes-like object` or an " "integer in the range 0 to 255." @@ -4404,20 +4381,20 @@ msgstr "" "検索対象の部分シーケンスは、任意の :term:`bytes-like object` または 0 から " "255 の範囲の整数にできます。" -#: ../../library/stdtypes.rst:2755 +#: ../../library/stdtypes.rst:2756 msgid "" "If *sub* is empty, returns the number of empty slices between characters " "which is the length of the bytes object plus one." msgstr "" -#: ../../library/stdtypes.rst:2758 ../../library/stdtypes.rst:2869 -#: ../../library/stdtypes.rst:2882 ../../library/stdtypes.rst:2948 -#: ../../library/stdtypes.rst:2961 +#: ../../library/stdtypes.rst:2759 ../../library/stdtypes.rst:2870 +#: ../../library/stdtypes.rst:2883 ../../library/stdtypes.rst:2949 +#: ../../library/stdtypes.rst:2962 msgid "Also accept an integer in the range 0 to 255 as the subsequence." msgstr "" "部分シーケンスとして 0 から 255 の範囲の整数も受け取れるようになりました。" -#: ../../library/stdtypes.rst:2765 +#: ../../library/stdtypes.rst:2766 msgid "" "If the binary data starts with the *prefix* string, return " "``bytes[len(prefix):]``. Otherwise, return a copy of the original binary " @@ -4426,19 +4403,19 @@ msgstr "" "バリナリーデータが文字列 *prefix* で始まる場合、 ``bytes[len(prefix):]`` を" "返します。それ以外の場合、元のバイナリーデータのコピーを返します::" -#: ../../library/stdtypes.rst:2774 +#: ../../library/stdtypes.rst:2775 msgid "The *prefix* may be any :term:`bytes-like object`." msgstr "*prefix* は、任意の :term:`bytes-like object` にできます。" -#: ../../library/stdtypes.rst:2778 ../../library/stdtypes.rst:2800 -#: ../../library/stdtypes.rst:2933 ../../library/stdtypes.rst:3026 -#: ../../library/stdtypes.rst:3040 ../../library/stdtypes.rst:3071 -#: ../../library/stdtypes.rst:3085 ../../library/stdtypes.rst:3127 -#: ../../library/stdtypes.rst:3197 ../../library/stdtypes.rst:3215 -#: ../../library/stdtypes.rst:3243 ../../library/stdtypes.rst:3382 -#: ../../library/stdtypes.rst:3437 ../../library/stdtypes.rst:3480 -#: ../../library/stdtypes.rst:3501 ../../library/stdtypes.rst:3523 -#: ../../library/stdtypes.rst:3725 +#: ../../library/stdtypes.rst:2779 ../../library/stdtypes.rst:2801 +#: ../../library/stdtypes.rst:2934 ../../library/stdtypes.rst:3027 +#: ../../library/stdtypes.rst:3041 ../../library/stdtypes.rst:3072 +#: ../../library/stdtypes.rst:3086 ../../library/stdtypes.rst:3128 +#: ../../library/stdtypes.rst:3198 ../../library/stdtypes.rst:3216 +#: ../../library/stdtypes.rst:3244 ../../library/stdtypes.rst:3383 +#: ../../library/stdtypes.rst:3438 ../../library/stdtypes.rst:3481 +#: ../../library/stdtypes.rst:3502 ../../library/stdtypes.rst:3524 +#: ../../library/stdtypes.rst:3726 msgid "" "The bytearray version of this method does *not* operate in place - it always " "produces a new object, even if no changes were made." @@ -4446,7 +4423,7 @@ msgstr "" "bytearray のこのメソッドはインプレースでは動作 *しません* -- 一切変化が無い場" "合でも、常に新しいオブジェクトを生成します。" -#: ../../library/stdtypes.rst:2787 +#: ../../library/stdtypes.rst:2788 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 " @@ -4456,15 +4433,15 @@ msgstr "" "``bytes[:-len(suffix)]`` を返します。それ以外の場合、元のバイナリーデータのコ" "ピーを返します::" -#: ../../library/stdtypes.rst:2796 +#: ../../library/stdtypes.rst:2797 msgid "The *suffix* may be any :term:`bytes-like object`." msgstr "*suffix* は、任意の :term:`bytes-like object` にできます。" -#: ../../library/stdtypes.rst:2809 +#: ../../library/stdtypes.rst:2810 msgid "Return the bytes decoded to a :class:`str`." msgstr "" -#: ../../library/stdtypes.rst:2814 +#: ../../library/stdtypes.rst:2815 msgid "" "*errors* controls how decoding errors are handled. If ``'strict'`` (the " "default), a :exc:`UnicodeError` exception is raised. Other possible values " @@ -4472,14 +4449,14 @@ msgid "" "`codecs.register_error`. See :ref:`error-handlers` for details." msgstr "" -#: ../../library/stdtypes.rst:2820 +#: ../../library/stdtypes.rst:2821 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:" "`debug build ` is used." msgstr "" -#: ../../library/stdtypes.rst:2826 +#: ../../library/stdtypes.rst:2827 msgid "" "Passing the *encoding* argument to :class:`str` allows decoding any :term:" "`bytes-like object` directly, without needing to make a temporary :class:`!" @@ -4489,7 +4466,7 @@ msgstr "" "コードすることができます。つまり、一時的な :class:`!bytes` や :class:`!" "bytearray` オブジェクトを作成する必要はありません。" -#: ../../library/stdtypes.rst:2841 +#: ../../library/stdtypes.rst:2842 msgid "" "Return ``True`` if the binary data ends with the specified *suffix*, " "otherwise return ``False``. *suffix* can also be a tuple of suffixes to " @@ -4501,12 +4478,12 @@ msgstr "" "せん。オプションの *start* が指定されている場合、その位置から判定を開始しま" "す。オプションの *end* が指定されている場合、その位置で比較を終了します。" -#: ../../library/stdtypes.rst:2846 +#: ../../library/stdtypes.rst:2847 msgid "The suffix(es) to search for may be any :term:`bytes-like object`." msgstr "" "検索対象の接尾語 (複数も可) は、任意の :term:`bytes-like object` にできます。" -#: ../../library/stdtypes.rst:2852 +#: ../../library/stdtypes.rst:2853 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 " @@ -4518,7 +4495,7 @@ msgstr "" "はスライス表記と同様に解釈されます。 *sub* が見つからなかった場合、 ``-1`` を" "返します。" -#: ../../library/stdtypes.rst:2862 +#: ../../library/stdtypes.rst:2863 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 :" @@ -4528,7 +4505,7 @@ msgstr "" "す。 *sub* が部分文字列 (訳注: おそらく原文の誤り、正しくは部分シーケンス) で" "あるかどうかのみを調べるには、 :keyword:`in` 演算子を使ってください::" -#: ../../library/stdtypes.rst:2876 +#: ../../library/stdtypes.rst:2877 msgid "" "Like :meth:`~bytes.find`, but raise :exc:`ValueError` when the subsequence " "is not found." @@ -4536,7 +4513,7 @@ msgstr "" ":meth:`~bytes.find` と同様ですが、部分シーケンスが見つからなかった場合 :exc:" "`ValueError` を送出します。" -#: ../../library/stdtypes.rst:2889 +#: ../../library/stdtypes.rst:2890 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 " @@ -4551,7 +4528,7 @@ msgstr "" "が送出されます。なお要素間のセパレータは、このメソッドを提供する bytes また" "は bytearray オブジェクトとなります。" -#: ../../library/stdtypes.rst:2900 +#: ../../library/stdtypes.rst:2901 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 " @@ -4563,7 +4540,7 @@ msgstr "" "マッピングします。 *from* と *to* は両方とも同じ長さの :term:`bytes-like " "objects ` でなければなりません。" -#: ../../library/stdtypes.rst:2911 +#: ../../library/stdtypes.rst:2912 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 " @@ -4577,12 +4554,12 @@ msgstr "" "れば、タプルには元のシーケンスのコピーと、その後ろに二つの空の bytes または " "bytearray オブジェクトが入ります。" -#: ../../library/stdtypes.rst:2918 ../../library/stdtypes.rst:2975 +#: ../../library/stdtypes.rst:2919 ../../library/stdtypes.rst:2976 msgid "The separator to search for may be any :term:`bytes-like object`." msgstr "" "検索する区切りとしては、任意の :term:`bytes-like object` を指定できます。" -#: ../../library/stdtypes.rst:2924 +#: ../../library/stdtypes.rst:2925 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 " @@ -4592,7 +4569,7 @@ msgstr "" "引数 *count* が与えられている場合、先頭から *count* 個の *old* だけを置換しま" "す。" -#: ../../library/stdtypes.rst:2928 +#: ../../library/stdtypes.rst:2929 msgid "" "The subsequence to search for and its replacement may be any :term:`bytes-" "like object`." @@ -4600,7 +4577,7 @@ msgstr "" "検索する部分シーケンスおよび置換後の部分シーケンスとしては、任意の :term:" "`bytes-like object` を指定できます。" -#: ../../library/stdtypes.rst:2940 +#: ../../library/stdtypes.rst:2941 msgid "" "Return the highest index in the sequence where the subsequence *sub* is " "found, such that *sub* is contained within ``s[start:end]``. Optional " @@ -4611,7 +4588,7 @@ msgstr "" "デックスを返します。オプション引数 *start* および *end* はスライス表記と同様" "に解釈されます。 *sub* が見つからなかった場合 ``-1`` を返します。" -#: ../../library/stdtypes.rst:2955 +#: ../../library/stdtypes.rst:2956 msgid "" "Like :meth:`~bytes.rfind` but raises :exc:`ValueError` when the subsequence " "*sub* is not found." @@ -4619,7 +4596,7 @@ msgstr "" ":meth:`~bytes.rfind` と同様ですが、部分シーケンス *sub* が見つからなかった場" "合 :exc:`ValueError` を送出します。" -#: ../../library/stdtypes.rst:2968 +#: ../../library/stdtypes.rst:2969 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 " @@ -4628,7 +4605,7 @@ msgid "" "followed by a copy of the original sequence." msgstr "" -#: ../../library/stdtypes.rst:2981 +#: ../../library/stdtypes.rst:2982 msgid "" "Return ``True`` if the binary data starts with the specified *prefix*, " "otherwise return ``False``. *prefix* can also be a tuple of prefixes to " @@ -4640,12 +4617,12 @@ msgstr "" "せん。オプションの *start* が指定されている場合、その位置から判定を開始しま" "す。オプションの *end* が指定されている場合、その位置で比較を終了します。" -#: ../../library/stdtypes.rst:2986 +#: ../../library/stdtypes.rst:2987 msgid "The prefix(es) to search for may be any :term:`bytes-like object`." msgstr "" "検索対象の接頭語 (複数も可) は、任意の :term:`bytes-like object` にできます。" -#: ../../library/stdtypes.rst:2992 +#: ../../library/stdtypes.rst:2993 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 " @@ -4657,24 +4634,24 @@ msgstr "" "を返します。変換テーブルは長さ 256 のバイト列オブジェクトでなければなりませ" "ん。" -#: ../../library/stdtypes.rst:2997 +#: ../../library/stdtypes.rst:2998 msgid "" "You can use the :func:`bytes.maketrans` method to create a translation table." msgstr "" "変換テーブルの作成に、 :func:`bytes.maketrans` メソッドを使うこともできます。" -#: ../../library/stdtypes.rst:3000 +#: ../../library/stdtypes.rst:3001 msgid "" "Set the *table* argument to ``None`` for translations that only delete " "characters::" msgstr "" "文字を削除するだけの変換には、 *table* 引数を ``None`` に設定してください::" -#: ../../library/stdtypes.rst:3006 +#: ../../library/stdtypes.rst:3007 msgid "*delete* is now supported as a keyword argument." msgstr "*delete* はキーワード引数として指定可能になりました。" -#: ../../library/stdtypes.rst:3010 +#: ../../library/stdtypes.rst:3011 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 " @@ -4688,7 +4665,7 @@ msgstr "" "のメソッドはすべてインプレースで動作 *せず* 、新しいオブジェクトを生成しま" "す。" -#: ../../library/stdtypes.rst:3019 +#: ../../library/stdtypes.rst:3020 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). " @@ -4700,7 +4677,7 @@ msgstr "" "class:`bytes` オブジェクトの場合、 *width* が ``len(s)`` 以下なら元のシーケン" "スが返されます。" -#: ../../library/stdtypes.rst:3033 +#: ../../library/stdtypes.rst:3034 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). " @@ -4712,7 +4689,7 @@ msgstr "" "class:`bytes` オブジェクトの場合、 *width* が ``len(s)`` 以下なら元のシーケン" "スが返されます。" -#: ../../library/stdtypes.rst:3047 +#: ../../library/stdtypes.rst:3048 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 " @@ -4728,14 +4705,14 @@ msgstr "" "`bytearray.isspace` を参照) が除去されます。なお *chars* 引数と一致する接頭辞" "が除去されるのではなく、それに含まれるバイトの組み合わせ全てが除去されます::" -#: ../../library/stdtypes.rst:3059 +#: ../../library/stdtypes.rst:3060 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 " "single prefix string rather than all of a set of characters. For example::" msgstr "" -#: ../../library/stdtypes.rst:3078 +#: ../../library/stdtypes.rst:3079 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). " @@ -4747,7 +4724,7 @@ msgstr "" "class:`bytes` オブジェクトの場合、 *width* が ``len(s)`` 以下なら元のシーケン" "スが返されます。" -#: ../../library/stdtypes.rst:3092 +#: ../../library/stdtypes.rst:3093 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 " @@ -4762,7 +4739,7 @@ msgstr "" "れる部分シーケンスすべてが区切りとなります。右から分割していくことを除け" "ば、 :meth:`rsplit` は後ほど詳しく述べる :meth:`split` と同様に振る舞います。" -#: ../../library/stdtypes.rst:3103 +#: ../../library/stdtypes.rst:3104 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 " @@ -4778,14 +4755,14 @@ msgstr "" "`bytearray.isspace` を参照) が除去されます。なお *chars* 引数と一致する接尾辞" "が除去されるのではなく、それに含まれるバイトの組み合わせ全てが除去されます::" -#: ../../library/stdtypes.rst:3115 +#: ../../library/stdtypes.rst:3116 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 " "single suffix string rather than all of a set of characters. For example::" msgstr "" -#: ../../library/stdtypes.rst:3134 +#: ../../library/stdtypes.rst:3135 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 " @@ -4799,7 +4776,7 @@ msgstr "" "す)。 *maxsplit* が指定されていないか ``-1`` のとき、分割の回数に制限はありま" "せん (可能なだけ分割されます)。" -#: ../../library/stdtypes.rst:3140 +#: ../../library/stdtypes.rst:3141 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',')`` " @@ -4817,7 +4794,7 @@ msgstr "" "または ``[bytearray(b'')]`` が返ります。引数 *sep* には、あらゆる :term:" "`bytes-like object` を指定できます。" -#: ../../library/stdtypes.rst:3158 +#: ../../library/stdtypes.rst:3159 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 " @@ -4832,7 +4809,7 @@ msgstr "" "がって区切りを指定せずに空のシーケンスや ASCII 空白文字だけのシーケンスを分割" "すると、 ``[]`` が返されます。" -#: ../../library/stdtypes.rst:3179 +#: ../../library/stdtypes.rst:3180 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 " @@ -4849,7 +4826,7 @@ msgstr "" "する接頭辞および接尾辞が除去されるのではなく、それに含まれるバイトの組み合わ" "せ全てが除去されます::" -#: ../../library/stdtypes.rst:3192 +#: ../../library/stdtypes.rst:3193 msgid "" "The binary sequence of byte values to remove may be any :term:`bytes-like " "object`." @@ -4857,7 +4834,7 @@ msgstr "" "除去対象のバイト値を含むバイナリシーケンスには、任意の :term:`bytes-like " "object` を指定できます。" -#: ../../library/stdtypes.rst:3201 +#: ../../library/stdtypes.rst:3202 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 " @@ -4869,7 +4846,7 @@ msgstr "" "て使用すべきではありません。なお、このセクションで紹介する bytearray のメソッ" "ドはすべてインプレースで動作 *せず* 、新しいオブジェクトを生成します。" -#: ../../library/stdtypes.rst:3209 +#: ../../library/stdtypes.rst:3210 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 " @@ -4879,7 +4856,7 @@ msgstr "" "シーケンスのコピーを返します。 ASCII 文字と解釈できないバイト値は、変更されま" "せん。" -#: ../../library/stdtypes.rst:3222 +#: ../../library/stdtypes.rst:3223 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 " @@ -4907,7 +4884,7 @@ msgstr "" "ト値の表示のされ方(訳注: 全角、半角など)に関わらず現桁位置を 1 つ増加させま" "す::" -#: ../../library/stdtypes.rst:3250 +#: ../../library/stdtypes.rst:3251 msgid "" "Return ``True`` if all bytes in the sequence are alphabetical ASCII " "characters or ASCII decimal digits and the sequence is not empty, ``False`` " @@ -4921,7 +4898,7 @@ msgstr "" "``b'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ'`` に含まれるバイト" "値です。 ASCII 文字の数字とは ``b'0123456789'`` に含まれるバイト値です。" -#: ../../library/stdtypes.rst:3267 +#: ../../library/stdtypes.rst:3268 msgid "" "Return ``True`` if all bytes in the sequence are alphabetic ASCII characters " "and the sequence is not empty, ``False`` otherwise. Alphabetic ASCII " @@ -4934,7 +4911,7 @@ msgstr "" "``b'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ'`` に含まれるバイト" "値です。" -#: ../../library/stdtypes.rst:3283 +#: ../../library/stdtypes.rst:3284 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." @@ -4943,7 +4920,7 @@ msgstr "" "``True`` を、それ以外の場合に ``False`` を返します。\n" "ASCII バイトは 0-0x7F の範囲にあります。" -#: ../../library/stdtypes.rst:3293 +#: ../../library/stdtypes.rst:3294 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 " @@ -4953,7 +4930,7 @@ msgstr "" "``True`` を、そうでなければ ``False`` を返します。ここでの ASCII 文字の数字と" "は ``b'0123456789'`` に含まれるバイト値です。" -#: ../../library/stdtypes.rst:3308 +#: ../../library/stdtypes.rst:3309 msgid "" "Return ``True`` if there is at least one lowercase ASCII character in the " "sequence and no uppercase ASCII characters, ``False`` otherwise." @@ -4962,9 +4939,9 @@ msgstr "" "ファベットの ASCII 文字が一つも無い場合に ``True`` を返します。そうでなけれ" "ば ``False`` を返します。" -#: ../../library/stdtypes.rst:3318 ../../library/stdtypes.rst:3360 -#: ../../library/stdtypes.rst:3376 ../../library/stdtypes.rst:3426 -#: ../../library/stdtypes.rst:3495 +#: ../../library/stdtypes.rst:3319 ../../library/stdtypes.rst:3361 +#: ../../library/stdtypes.rst:3377 ../../library/stdtypes.rst:3427 +#: ../../library/stdtypes.rst:3496 msgid "" "Lowercase ASCII characters are those byte values in the sequence " "``b'abcdefghijklmnopqrstuvwxyz'``. Uppercase ASCII characters are those byte " @@ -4974,7 +4951,7 @@ msgstr "" "バイト値です。また大文字の ASCII 文字とは ``b'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`` " "に含まれるバイト値です。" -#: ../../library/stdtypes.rst:3326 +#: ../../library/stdtypes.rst:3327 msgid "" "Return ``True`` if all bytes in the sequence are ASCII whitespace and the " "sequence is not empty, ``False`` otherwise. ASCII whitespace characters are " @@ -4986,7 +4963,7 @@ msgstr "" "シーケンス ``b' \\t\\n\\r\\x0b\\f'`` に含まれるバイト値です (半角スペース、タ" "ブ、ラインフィード、キャリッジリターン、垂直タブ、フォームフィード) 。" -#: ../../library/stdtypes.rst:3335 +#: ../../library/stdtypes.rst:3336 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 " @@ -4996,7 +4973,7 @@ msgstr "" "``True`` を、そうでなければ ``False`` を返します。「タイトルケース文字列」の" "定義については :meth:`bytes.title` を参照してください。" -#: ../../library/stdtypes.rst:3350 +#: ../../library/stdtypes.rst:3351 msgid "" "Return ``True`` if there is at least one uppercase alphabetic ASCII " "character in the sequence and no lowercase ASCII characters, ``False`` " @@ -5006,7 +4983,7 @@ msgstr "" "ファベットの ASCII 文字が一つも無い場合に ``True`` を返します。そうでなけれ" "ば ``False`` を返します。" -#: ../../library/stdtypes.rst:3368 +#: ../../library/stdtypes.rst:3369 msgid "" "Return a copy of the sequence with all the uppercase ASCII characters " "converted to their corresponding lowercase counterpart." @@ -5014,7 +4991,7 @@ msgstr "" "シーケンスに含まれる大文字アルファベットの ASCII 文字を全て小文字アルファベッ" "トに変換したシーケンスのコピーを返します。" -#: ../../library/stdtypes.rst:3393 +#: ../../library/stdtypes.rst:3394 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 " @@ -5026,7 +5003,7 @@ msgstr "" "*keepends* 引数に真を与えた場合を除き、改行コードは結果のリストに含まれませ" "ん。" -#: ../../library/stdtypes.rst:3405 +#: ../../library/stdtypes.rst:3406 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 " @@ -5036,7 +5013,7 @@ msgstr "" "び出すと空のリストを返します。またシーケンス末尾に改行コードがある場合、(訳" "註: その後ろに空行があるとは判断せず)余分な行を生成することはありません::" -#: ../../library/stdtypes.rst:3418 +#: ../../library/stdtypes.rst:3419 msgid "" "Return a copy of the sequence with all the lowercase ASCII characters " "converted to their corresponding uppercase counterpart and vice-versa." @@ -5045,7 +5022,7 @@ msgstr "" "トに変換し、さらに大文字アルファベットを同様に小文字アルファベットに変換した" "シーケンスのコピーを返します。" -#: ../../library/stdtypes.rst:3430 +#: ../../library/stdtypes.rst:3431 msgid "" "Unlike :func:`str.swapcase()`, it is always the case that ``bin.swapcase()." "swapcase() == bin`` for the binary versions. Case conversions are " @@ -5056,7 +5033,7 @@ msgstr "" "swapcase().swapcase() == bin`` が常に成り立ちます。一般的に Unicode 文字の大" "文字小文字変換は対称的ではありませんが、 ASCII 文字の場合は対称的です。" -#: ../../library/stdtypes.rst:3444 +#: ../../library/stdtypes.rst:3445 msgid "" "Return a titlecased version of the binary sequence where words start with an " "uppercase ASCII character and the remaining characters are lowercase. " @@ -5067,7 +5044,7 @@ msgstr "" "なっているシーケンスが返ります。大文字小文字の区別が無いバイト値については変" "更されずそのままになります。" -#: ../../library/stdtypes.rst:3453 +#: ../../library/stdtypes.rst:3454 msgid "" "Lowercase ASCII characters are those byte values in the sequence " "``b'abcdefghijklmnopqrstuvwxyz'``. Uppercase ASCII characters are those byte " @@ -5079,12 +5056,12 @@ msgstr "" "に含まれるバイト値です。その他のバイト値については、大文字小文字の区別はあり" "ません。" -#: ../../library/stdtypes.rst:3466 +#: ../../library/stdtypes.rst:3467 msgid "" "A workaround for apostrophes can be constructed using regular expressions::" msgstr "正規表現を使うことでアポストロフィに対応できます::" -#: ../../library/stdtypes.rst:3487 +#: ../../library/stdtypes.rst:3488 msgid "" "Return a copy of the sequence with all the lowercase ASCII characters " "converted to their corresponding uppercase counterpart." @@ -5092,7 +5069,7 @@ msgstr "" "シーケンスに含まれる小文字アルファベットの ASCII 文字を全て大文字アルファベッ" "トに変換したシーケンスのコピーを返します。" -#: ../../library/stdtypes.rst:3508 +#: ../../library/stdtypes.rst:3509 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 " @@ -5105,11 +5082,11 @@ msgstr "" "はなく *後* に挿入されます。 :class:`bytes` オブジェクトの場合、 *width* が " "``len(seq)`` 以下であれば元のシーケンスが返ります。" -#: ../../library/stdtypes.rst:3530 +#: ../../library/stdtypes.rst:3531 msgid "``printf``-style Bytes Formatting" msgstr "``printf`` 形式での bytes の書式化" -#: ../../library/stdtypes.rst:3547 +#: ../../library/stdtypes.rst:3548 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 " @@ -5120,7 +5097,7 @@ msgstr "" "ルや辞書を正しく表示できないなど)。もし表示する値がタプルや辞書かもしれない場" "合、それをタプルに包むようにしてください。" -#: ../../library/stdtypes.rst:3552 +#: ../../library/stdtypes.rst:3553 msgid "" "Bytes objects (``bytes``/``bytearray``) have one unique built-in operation: " "the ``%`` operator (modulo). This is also known as the bytes *formatting* or " @@ -5135,7 +5112,7 @@ msgstr "" "*format* 中の ``%`` 変換指定は *values* 中のゼロ個またはそれ以上の要素で置換" "されます。この動作は C 言語における :c:func:`sprintf` に似ています。" -#: ../../library/stdtypes.rst:3559 +#: ../../library/stdtypes.rst:3560 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 " @@ -5148,7 +5125,7 @@ msgstr "" "プルか、単一のマッピング型のオブジェクト (たとえば辞書) でなければなりませ" "ん。" -#: ../../library/stdtypes.rst:3593 +#: ../../library/stdtypes.rst:3594 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 " @@ -5160,25 +5137,23 @@ msgstr "" "``'%'`` の直後に書いたものが含まれていなければ *なりません* 。マップキーは書" "式化したい値をマッピングから選び出します。例えば:" -#: ../../library/stdtypes.rst:3667 +#: ../../library/stdtypes.rst:3668 msgid "Single byte (accepts integer or single byte objects)." msgstr "" "1 バイト (整数または要素 1 つの ``bytes``/``bytearray`` オブジェクトを受理し" "ます)" -#: ../../library/stdtypes.rst:3670 +#: ../../library/stdtypes.rst:3671 msgid "``'b'``" msgstr "``'b'``" -#: ../../library/stdtypes.rst:3670 +#: ../../library/stdtypes.rst:3671 msgid "" "Bytes (any object that follows the :ref:`buffer protocol ` or " -"has :meth:`__bytes__`)." +"has :meth:`~object.__bytes__`)." msgstr "" -"バイナリシーケンス (:ref:`buffer protocol ` をサポートする" -"か、 :meth:`__bytes__` メソッドがあるオブジェクト)" -#: ../../library/stdtypes.rst:3674 +#: ../../library/stdtypes.rst:3675 msgid "" "``'s'`` is an alias for ``'b'`` and should only be used for Python2/3 code " "bases." @@ -5186,7 +5161,7 @@ msgstr "" "``'s'`` は ``'b'`` の別名です。Python 2/3 の両方を対象としたコードでのみ使用" "すべきです。" -#: ../../library/stdtypes.rst:3677 +#: ../../library/stdtypes.rst:3678 msgid "" "Bytes (converts any Python object using ``repr(obj).encode('ascii', " "'backslashreplace')``)." @@ -5194,7 +5169,7 @@ msgstr "" "バイナリシーケンス (Python オブジェクトを ``repr(obj).encode('ascii', " "'backslashreplace')`` で変換します)。" -#: ../../library/stdtypes.rst:3680 +#: ../../library/stdtypes.rst:3681 msgid "" "``'r'`` is an alias for ``'a'`` and should only be used for Python2/3 code " "bases." @@ -5202,27 +5177,27 @@ msgstr "" "``'r'`` は ``'a'`` の別名です。Python 2/3 の両方を対象としたコードでのみ使用" "すべきです。" -#: ../../library/stdtypes.rst:3680 +#: ../../library/stdtypes.rst:3681 msgid "\\(7)" msgstr "\\(7)" -#: ../../library/stdtypes.rst:3715 +#: ../../library/stdtypes.rst:3716 msgid "``b'%s'`` is deprecated, but will not be removed during the 3.x series." msgstr "``b'%s'`` は非推奨ですが、3.x 系では削除されません。" -#: ../../library/stdtypes.rst:3718 +#: ../../library/stdtypes.rst:3719 msgid "``b'%r'`` is deprecated, but will not be removed during the 3.x series." msgstr "``b'%r'`` は非推奨ですが、3.x 系では削除されません。" -#: ../../library/stdtypes.rst:3730 +#: ../../library/stdtypes.rst:3731 msgid ":pep:`461` - Adding % formatting to bytes and bytearray" msgstr ":pep:`461` - bytes と bytearray への % 書式化の追加" -#: ../../library/stdtypes.rst:3737 +#: ../../library/stdtypes.rst:3738 msgid "Memory Views" msgstr "メモリビュー" -#: ../../library/stdtypes.rst:3739 +#: ../../library/stdtypes.rst:3740 msgid "" ":class:`memoryview` objects allow Python code to access the internal data of " "an object that supports the :ref:`buffer protocol ` without " @@ -5232,7 +5207,7 @@ msgstr "" "` をサポートするオブジェクトの内部データへ、コピーすることなく" "アクセスすることを可能にします。" -#: ../../library/stdtypes.rst:3745 +#: ../../library/stdtypes.rst:3746 msgid "" "Create a :class:`memoryview` that references *object*. *object* must " "support the buffer protocol. Built-in objects that support the buffer " @@ -5243,7 +5218,7 @@ msgstr "" "組み込みオブジェクトには、 :class:`bytes` 、 :class:`bytearray` などがありま" "す。" -#: ../../library/stdtypes.rst:3749 +#: ../../library/stdtypes.rst:3750 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 " @@ -5255,26 +5230,26 @@ msgstr "" "`bytearray` では、要素は単バイトになりますが、他の :class:`array.array` 等の" "型では、要素はより大きくなりえます。" -#: ../../library/stdtypes.rst:3754 +#: ../../library/stdtypes.rst:3755 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 " "equal to the number of elements in the view." msgstr "" -#: ../../library/stdtypes.rst:3758 +#: ../../library/stdtypes.rst:3759 msgid "" "If ``view.ndim == 0``, ``len(view)`` now raises :exc:`TypeError` instead of " "returning 1." msgstr "" -#: ../../library/stdtypes.rst:3761 +#: ../../library/stdtypes.rst:3762 msgid "" "The :class:`~memoryview.itemsize` attribute will give you the number of " "bytes in a single element." msgstr "" -#: ../../library/stdtypes.rst:3764 +#: ../../library/stdtypes.rst:3765 msgid "" "A :class:`memoryview` supports slicing and indexing to expose its data. One-" "dimensional slicing will result in a subview::" @@ -5282,7 +5257,7 @@ msgstr "" ":class:`memoryview` はスライスおよびインデックス指定で内容を取得できます。一" "次元のスライスは部分ビューになります::" -#: ../../library/stdtypes.rst:3777 +#: ../../library/stdtypes.rst:3778 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 " @@ -5300,11 +5275,11 @@ msgstr "" "*ndim* 個の整数からなるタプルでインデックス指定できます。ゼロ次元のメモリ" "ビューでは、空のタプルでインデックス指定できます。" -#: ../../library/stdtypes.rst:3786 +#: ../../library/stdtypes.rst:3787 msgid "Here is an example with a non-byte format::" msgstr ":class:`~memoryview.format` が単バイト単位ではない例を示します::" -#: ../../library/stdtypes.rst:3798 +#: ../../library/stdtypes.rst:3799 msgid "" "If the underlying object is writable, the memoryview supports one-" "dimensional slice assignment. Resizing is not allowed::" @@ -5312,7 +5287,7 @@ msgstr "" "メモリビューの参照しているオブジェクトが書き込み可能であれば、一次元スライス" "での代入が可能です。ただしサイズの変更はできません::" -#: ../../library/stdtypes.rst:3819 +#: ../../library/stdtypes.rst:3820 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) " @@ -5322,7 +5297,7 @@ msgstr "" "み出し専用の) 型の1次元メモリビューもまた、ハッシュ可能です。ハッシュは " "``hash(m) == hash(m.tobytes())`` として定義されています::" -#: ../../library/stdtypes.rst:3831 +#: ../../library/stdtypes.rst:3832 msgid "" "One-dimensional memoryviews can now be sliced. One-dimensional memoryviews " "with formats 'B', 'b' or 'c' are now :term:`hashable`." @@ -5331,7 +5306,7 @@ msgstr "" "フォーマットの 1 次元のメモリビューが :term:`ハッシュ可能 ` になり" "ました。" -#: ../../library/stdtypes.rst:3835 +#: ../../library/stdtypes.rst:3836 msgid "" "memoryview is now registered automatically with :class:`collections.abc." "Sequence`" @@ -5339,15 +5314,15 @@ msgstr "" "memoryview は自動的に :class:`collections.abc.Sequence` へ登録されるようにな" "りました。" -#: ../../library/stdtypes.rst:3839 +#: ../../library/stdtypes.rst:3840 msgid "memoryviews can now be indexed with tuple of integers." msgstr "メモリビューは整数のタプルでインデックス指定できるようになりました。" -#: ../../library/stdtypes.rst:3842 +#: ../../library/stdtypes.rst:3843 msgid ":class:`memoryview` has several methods:" msgstr ":class:`memoryview` にはいくつかのメソッドがあります:" -#: ../../library/stdtypes.rst:3846 +#: ../../library/stdtypes.rst:3847 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' " @@ -5356,7 +5331,7 @@ msgstr "" "memoryview と :pep:`3118` エクスポーターは、 shape が同じで、 :mod:`struct` " "のフォーマットで解釈したときの値が同じ場合に同値になります。" -#: ../../library/stdtypes.rst:3850 +#: ../../library/stdtypes.rst:3851 msgid "" "For the subset of :mod:`struct` format strings currently supported by :meth:" "`tolist`, ``v`` and ``w`` are equal if ``v.tolist() == w.tolist()``::" @@ -5364,7 +5339,7 @@ msgstr "" ":meth:`tolist` がサポートしている :mod:`struct` フォーマットの一部では、 ``v." "tolist() == w.tolist()`` が成り立つときに ``v`` == ``w`` になります::" -#: ../../library/stdtypes.rst:3869 +#: ../../library/stdtypes.rst:3870 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 " @@ -5374,7 +5349,7 @@ msgstr "" "(書式文字列とバッファの内容が同一でも) オブジェクトは常に等しくないものとして" "比較されます::" -#: ../../library/stdtypes.rst:3885 +#: ../../library/stdtypes.rst:3886 msgid "" "Note that, as with floating point numbers, ``v is w`` does *not* imply ``v " "== w`` for memoryview objects." @@ -5382,7 +5357,7 @@ msgstr "" "浮動小数点数の場合と同様 memoryview オブジェクトに対する ``v is w`` は ``v " "== w`` を意味しないことに注意してください。" -#: ../../library/stdtypes.rst:3888 +#: ../../library/stdtypes.rst:3889 msgid "" "Previous versions compared the raw memory disregarding the item format and " "the logical array structure." @@ -5390,7 +5365,7 @@ msgstr "" "以前のバージョンは、要素フォーマットと論理的な配列構造を無視して生のメモリを" "比較していました。" -#: ../../library/stdtypes.rst:3894 +#: ../../library/stdtypes.rst:3895 msgid "" "Return the data in the buffer as a bytestring. This is equivalent to " "calling the :class:`bytes` constructor on the memoryview. ::" @@ -5398,7 +5373,7 @@ msgstr "" "バッファ中のデータをバイト文字列として返します。これはメモリビューに対して :" "class:`bytes` コンストラクタを呼び出すのと同等です。 ::" -#: ../../library/stdtypes.rst:3903 +#: ../../library/stdtypes.rst:3904 msgid "" "For non-contiguous arrays the result is equal to the flattened list " "representation with all elements converted to bytes. :meth:`tobytes` " @@ -5409,7 +5384,7 @@ msgstr "" "ラットなリスト表現に等しくなります。 :meth:`tobytes` は、 :mod:`struct` モ" "ジュール文法にないものを含むすべての書式文字列をサポートします。" -#: ../../library/stdtypes.rst:3908 +#: ../../library/stdtypes.rst:3909 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' " @@ -5418,24 +5393,24 @@ msgid "" "to C first. *order=None* is the same as *order='C'*." msgstr "" -#: ../../library/stdtypes.rst:3917 +#: ../../library/stdtypes.rst:3918 msgid "" "Return a string object containing two hexadecimal digits for each byte in " "the buffer. ::" msgstr "バッファ中の各バイトを 2 つの 16 進数で表した文字列を返します::" -#: ../../library/stdtypes.rst:3926 +#: ../../library/stdtypes.rst:3927 msgid "" "Similar to :meth:`bytes.hex`, :meth:`memoryview.hex` now supports optional " "*sep* and *bytes_per_sep* parameters to insert separators between bytes in " "the hex output." msgstr "" -#: ../../library/stdtypes.rst:3933 +#: ../../library/stdtypes.rst:3934 msgid "Return the data in the buffer as a list of elements. ::" msgstr "バッファ中のデータを要素のリストとして返します。 ::" -#: ../../library/stdtypes.rst:3943 +#: ../../library/stdtypes.rst:3944 msgid "" ":meth:`tolist` now supports all single character native formats in :mod:" "`struct` module syntax as well as multi-dimensional representations." @@ -5443,13 +5418,13 @@ msgstr "" ":meth:`tolist` が :mod:`struct` モジュール文法に含まれるすべての単一文字の " "native フォーマットと多次元の表現をサポートするようになりました。" -#: ../../library/stdtypes.rst:3950 +#: ../../library/stdtypes.rst:3951 msgid "" "Return a readonly version of the memoryview object. The original memoryview " "object is unchanged. ::" msgstr "" -#: ../../library/stdtypes.rst:3969 +#: ../../library/stdtypes.rst:3970 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 :" @@ -5463,7 +5438,7 @@ msgstr "" "release() を呼び出すことは、これらの制約をできるだけ早く取り除く (そしてぶら" "下がったリソースをすべて解放する) のに便利です。" -#: ../../library/stdtypes.rst:3975 +#: ../../library/stdtypes.rst:3976 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 " @@ -5472,7 +5447,7 @@ msgstr "" "このメソッドが呼ばれた後、このビュー上のそれ以上の演算は :class:`ValueError` " "を送出します (複数回呼ばれえる :meth:`release()` 自身は除きます)::" -#: ../../library/stdtypes.rst:3986 +#: ../../library/stdtypes.rst:3987 msgid "" "The context management protocol can be used for a similar effect, using the " "``with`` statement::" @@ -5480,7 +5455,7 @@ msgstr "" "コンテキストマネージャプロトコルは、 ``with`` 文を使って同様の効果を得るのに" "使えます::" -#: ../../library/stdtypes.rst:4002 +#: ../../library/stdtypes.rst:4003 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 " @@ -5494,7 +5469,7 @@ msgstr "" "は 1次元配列 -> C言語型の連続配列 と C言語型の連続配列 -> 1次元配列 です(参" "考: :term:`contiguous`)。" -#: ../../library/stdtypes.rst:4008 +#: ../../library/stdtypes.rst:4009 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 " @@ -5502,37 +5477,37 @@ msgid "" "Note that all byte lengths may depend on the operating system." msgstr "" -#: ../../library/stdtypes.rst:4014 +#: ../../library/stdtypes.rst:4015 msgid "Cast 1D/long to 1D/unsigned bytes::" msgstr "1次元 long から 1次元 unsigned byte へのキャスト::" -#: ../../library/stdtypes.rst:4037 +#: ../../library/stdtypes.rst:4038 msgid "Cast 1D/unsigned bytes to 1D/char::" msgstr "1次元 unsigned byte から 1次元 char へのキャスト::" -#: ../../library/stdtypes.rst:4050 +#: ../../library/stdtypes.rst:4051 msgid "Cast 1D/bytes to 3D/ints to 1D/signed char::" msgstr "1次元 byte から 3次元 int へ、そして 1次元 signed char へのキャスト::" -#: ../../library/stdtypes.rst:4076 +#: ../../library/stdtypes.rst:4077 msgid "Cast 1D/unsigned long to 2D/unsigned long::" msgstr "1次元 unsigned long から 2次元 unsigned long へのキャスト::" -#: ../../library/stdtypes.rst:4090 +#: ../../library/stdtypes.rst:4091 msgid "The source format is no longer restricted when casting to a byte view." msgstr "" "単バイトのビューへキャストする場合、キャスト元のフォーマットについて制約は無" "くなりました。" -#: ../../library/stdtypes.rst:4093 +#: ../../library/stdtypes.rst:4094 msgid "There are also several readonly attributes available:" msgstr "読み出し専用の属性もいくつか使えます:" -#: ../../library/stdtypes.rst:4097 +#: ../../library/stdtypes.rst:4098 msgid "The underlying object of the memoryview::" msgstr "memoryview が参照しているオブジェクト::" -#: ../../library/stdtypes.rst:4108 +#: ../../library/stdtypes.rst:4109 msgid "" "``nbytes == product(shape) * itemsize == len(m.tobytes())``. This is the " "amount of space in bytes that the array would use in a contiguous " @@ -5541,15 +5516,15 @@ msgstr "" "``nbytes == product(shape) * itemsize == len(m.tobytes())``. その配列が連続表" "現において利用するスペースです。これは ``len(m)`` と一致するとは限りません::" -#: ../../library/stdtypes.rst:4127 +#: ../../library/stdtypes.rst:4128 msgid "Multi-dimensional arrays::" msgstr "多次元配列::" -#: ../../library/stdtypes.rst:4144 +#: ../../library/stdtypes.rst:4145 msgid "A bool indicating whether the memory is read only." msgstr "メモリが読み出し専用かどうかを示す真偽値です。" -#: ../../library/stdtypes.rst:4148 +#: ../../library/stdtypes.rst:4149 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 " @@ -5561,7 +5536,7 @@ msgstr "" "から作成することができます。しかし、いくつかのメソッド(例えば :meth:" "`tolist`) はネイティブの単一要素フォーマットに制限されます。" -#: ../../library/stdtypes.rst:4153 +#: ../../library/stdtypes.rst:4154 msgid "" "format ``'B'`` is now handled according to the struct module syntax. This " "means that ``memoryview(b'abc')[0] == b'abc'[0] == 97``." @@ -5569,17 +5544,17 @@ msgstr "" "フォーマット ``'B'`` は struct モジュール構文で扱われるようになりました。これ" "は ``memoryview(b'abc')[0] == b'abc'[0] == 97`` ということを意味します。" -#: ../../library/stdtypes.rst:4159 +#: ../../library/stdtypes.rst:4160 msgid "The size in bytes of each element of the memoryview::" msgstr "memoryview の各要素のバイト単位の大きさ::" -#: ../../library/stdtypes.rst:4172 +#: ../../library/stdtypes.rst:4173 msgid "" "An integer indicating how many dimensions of a multi-dimensional array the " "memory represents." msgstr "メモリが表す多次元配列が何次元かを示す整数です。" -#: ../../library/stdtypes.rst:4177 +#: ../../library/stdtypes.rst:4178 msgid "" "A tuple of integers the length of :attr:`ndim` giving the shape of the " "memory as an N-dimensional array." @@ -5587,12 +5562,12 @@ msgstr "" "メモリが表している N 次元配列の形状を表す、長さ :attr:`ndim` の整数のタプルで" "す。" -#: ../../library/stdtypes.rst:4180 ../../library/stdtypes.rst:4188 +#: ../../library/stdtypes.rst:4181 ../../library/stdtypes.rst:4189 msgid "An empty tuple instead of ``None`` when ndim = 0." msgstr "" "ndim = 0 の場合は ``None`` ではなく空のタプルとなるよう変更されました。" -#: ../../library/stdtypes.rst:4185 +#: ../../library/stdtypes.rst:4186 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." @@ -5600,34 +5575,34 @@ msgstr "" "配列のそれぞれの次元に対して、それぞれの要素にアクセスするのに必要なバイト数" "を表す、長さ :attr:`ndim` の整数のタプルです。" -#: ../../library/stdtypes.rst:4193 +#: ../../library/stdtypes.rst:4194 msgid "Used internally for PIL-style arrays. The value is informational only." msgstr "" "PILスタイルの配列の内部で利用している値。この値はただの情報として公開されてい" "ます。" -#: ../../library/stdtypes.rst:4197 +#: ../../library/stdtypes.rst:4198 msgid "A bool indicating whether the memory is C-:term:`contiguous`." msgstr "" "メモリーが C 形式の順序で連続しているかどうかを示す真偽値(参考: :term:" "`contiguous` )。" -#: ../../library/stdtypes.rst:4203 +#: ../../library/stdtypes.rst:4204 msgid "A bool indicating whether the memory is Fortran :term:`contiguous`." msgstr "" "メモリーがFortran形式の順序で連続しているかどうかを示す真偽値(参考: :term:" "`contiguous` )。" -#: ../../library/stdtypes.rst:4209 +#: ../../library/stdtypes.rst:4210 msgid "A bool indicating whether the memory is :term:`contiguous`." msgstr "" "メモリーが連続しているかどうかを示す真偽値(参考: :term:`contiguous` )。" -#: ../../library/stdtypes.rst:4217 +#: ../../library/stdtypes.rst:4218 msgid "Set Types --- :class:`set`, :class:`frozenset`" msgstr "set(集合)型 --- :class:`set`, :class:`frozenset`" -#: ../../library/stdtypes.rst:4221 +#: ../../library/stdtypes.rst:4222 msgid "" "A :dfn:`set` object is an unordered collection of distinct :term:`hashable` " "objects. Common uses include membership testing, removing duplicates from a " @@ -5642,7 +5617,7 @@ msgstr "" "(他のコンテナについては組み込みの :class:`dict`, :class:`list`, :class:" "`tuple` クラスや :mod:`collections` モジュールを参照してください。)" -#: ../../library/stdtypes.rst:4228 +#: ../../library/stdtypes.rst:4229 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 " @@ -5654,7 +5629,7 @@ msgstr "" "素の位置を記録しません。従って、集合はインデクシング、スライシング、その他の" "シーケンス的な振舞いをサポートしません。" -#: ../../library/stdtypes.rst:4233 +#: ../../library/stdtypes.rst:4234 msgid "" "There are currently two built-in set types, :class:`set` and :class:" "`frozenset`. The :class:`set` type is mutable --- the contents can be " @@ -5673,7 +5648,7 @@ msgstr "" "作成後に内容を改変できないため、辞書のキーや他の集合の要素として用いることが" "できます。" -#: ../../library/stdtypes.rst:4241 +#: ../../library/stdtypes.rst:4242 msgid "" "Non-empty sets (not frozensets) can be created by placing a comma-separated " "list of elements within braces, for example: ``{'jack', 'sjoerd'}``, in " @@ -5683,11 +5658,11 @@ msgstr "" "ラクタに加え、要素を波括弧中にカンマで区切って列挙することでも生成できます。" "例: ``{'jack', 'sjoerd'}``。" -#: ../../library/stdtypes.rst:4245 +#: ../../library/stdtypes.rst:4246 msgid "The constructors for both classes work the same:" msgstr "どちらのクラスのコンストラクタも同様に働きます:" -#: ../../library/stdtypes.rst:4250 +#: ../../library/stdtypes.rst:4251 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 " @@ -5700,21 +5675,21 @@ msgstr "" "集合は :class:`frozenset` オブジェクトでなくてはなりません。*iterable* が指定" "されない場合、新しい空の集合が返されます。" -#: ../../library/stdtypes.rst:4256 +#: ../../library/stdtypes.rst:4257 msgid "Sets can be created by several means:" msgstr "集合はいくつかの方法で生成できます:" -#: ../../library/stdtypes.rst:4258 +#: ../../library/stdtypes.rst:4259 msgid "" "Use a comma-separated list of elements within braces: ``{'jack', 'sjoerd'}``" msgstr "波括弧内にカンマ区切りで要素を列挙する: ``{'jack', 'sjoerd'}``" -#: ../../library/stdtypes.rst:4259 +#: ../../library/stdtypes.rst:4260 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:4260 +#: ../../library/stdtypes.rst:4261 msgid "" "Use the type constructor: ``set()``, ``set('foobar')``, ``set(['a', 'b', " "'foo'])``" @@ -5722,7 +5697,7 @@ msgstr "" "型コンストラクタを使う: ``set()``, ``set('foobar')``, ``set(['a', 'b', " "'foo'])``" -#: ../../library/stdtypes.rst:4262 +#: ../../library/stdtypes.rst:4263 msgid "" "Instances of :class:`set` and :class:`frozenset` provide the following " "operations:" @@ -5730,19 +5705,19 @@ msgstr "" ":class:`set` および :class:`frozenset` のインスタンスは以下の操作を提供しま" "す:" -#: ../../library/stdtypes.rst:4267 +#: ../../library/stdtypes.rst:4268 msgid "Return the number of elements in set *s* (cardinality of *s*)." msgstr "集合 *s* の要素数 (*s* の濃度) を返します。" -#: ../../library/stdtypes.rst:4271 +#: ../../library/stdtypes.rst:4272 msgid "Test *x* for membership in *s*." msgstr "*x* が *s* のメンバーに含まれるか判定します。" -#: ../../library/stdtypes.rst:4275 +#: ../../library/stdtypes.rst:4276 msgid "Test *x* for non-membership in *s*." msgstr "*x* が *s* のメンバーに含まれていないことを判定します。" -#: ../../library/stdtypes.rst:4279 +#: ../../library/stdtypes.rst:4280 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." @@ -5750,11 +5725,11 @@ msgstr "" "集合が *other* と共通の要素を持たないとき、``True`` を返します。集合はそれら" "の積集合が空集合となるときのみ、互いに素 (disjoint) となります。" -#: ../../library/stdtypes.rst:4285 +#: ../../library/stdtypes.rst:4286 msgid "Test whether every element in the set is in *other*." msgstr "set の全ての要素が *other* に含まれるか判定します。" -#: ../../library/stdtypes.rst:4289 +#: ../../library/stdtypes.rst:4290 msgid "" "Test whether the set is a proper subset of *other*, that is, ``set <= other " "and set != other``." @@ -5762,11 +5737,11 @@ msgstr "" "set が *other* の真部分集合であるかを判定します。つまり、 ``set <= other and " "set != other`` と等価です。" -#: ../../library/stdtypes.rst:4295 +#: ../../library/stdtypes.rst:4296 msgid "Test whether every element in *other* is in the set." msgstr "*other* の全ての要素が set に含まれるか判定します。" -#: ../../library/stdtypes.rst:4299 +#: ../../library/stdtypes.rst:4300 msgid "" "Test whether the set is a proper superset of *other*, that is, ``set >= " "other and set != other``." @@ -5774,31 +5749,31 @@ msgstr "" "set が *other* の真上位集合であるかを判定します。つまり、 ``set >= other and " "set != other`` と等価です。" -#: ../../library/stdtypes.rst:4305 +#: ../../library/stdtypes.rst:4306 msgid "Return a new set with elements from the set and all others." msgstr "set と全ての other の要素からなる新しい集合を返します。" -#: ../../library/stdtypes.rst:4310 +#: ../../library/stdtypes.rst:4311 msgid "Return a new set with elements common to the set and all others." msgstr "set と全ての other に共通する要素を持つ、新しい集合を返します。" -#: ../../library/stdtypes.rst:4315 +#: ../../library/stdtypes.rst:4316 msgid "Return a new set with elements in the set that are not in the others." msgstr "" "set に含まれて、かつ、全ての other に含まれない要素を持つ、新しい集合を返しま" "す。" -#: ../../library/stdtypes.rst:4320 +#: ../../library/stdtypes.rst:4321 msgid "" "Return a new set with elements in either the set or *other* but not both." msgstr "" "set と *other* のいずれか一方だけに含まれる要素を持つ新しい集合を返します。" -#: ../../library/stdtypes.rst:4324 +#: ../../library/stdtypes.rst:4325 msgid "Return a shallow copy of the set." msgstr "集合の浅いコピーを返します。" -#: ../../library/stdtypes.rst:4327 +#: ../../library/stdtypes.rst:4328 msgid "" "Note, the non-operator versions of :meth:`union`, :meth:`intersection`, :" "meth:`difference`, :meth:`symmetric_difference`, :meth:`issubset`, and :meth:" @@ -5814,7 +5789,7 @@ msgstr "" "'cbs'`` のような誤りがちな構文を予防し、より読みやすい ``set('abc')." "intersection('cbs')`` を支持します。" -#: ../../library/stdtypes.rst:4334 +#: ../../library/stdtypes.rst:4335 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 " @@ -5831,7 +5806,7 @@ msgstr "" "(上位集合であるが等しくない) とき、かつそのときに限り一方の集合は他方の集合よ" "り大きいです。" -#: ../../library/stdtypes.rst:4341 +#: ../../library/stdtypes.rst:4342 msgid "" "Instances of :class:`set` are compared to instances of :class:`frozenset` " "based on their members. For example, ``set('abc') == frozenset('abc')`` " @@ -5841,7 +5816,7 @@ msgstr "" "づいて比較されます。例えば、 ``set('abc') == frozenset('abc')`` や " "``set('abc') in set([frozenset('abc')])`` は ``True`` を返します。" -#: ../../library/stdtypes.rst:4345 +#: ../../library/stdtypes.rst:4346 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 " @@ -5853,7 +5828,7 @@ msgstr "" "せんから、以下の *すべて* に ``False`` を返します: ``ab``." -#: ../../library/stdtypes.rst:4350 +#: ../../library/stdtypes.rst:4351 msgid "" "Since sets only define partial ordering (subset relationships), the output " "of the :meth:`list.sort` method is undefined for lists of sets." @@ -5861,13 +5836,13 @@ msgstr "" "集合は半順序(部分集合関係)しか定義しないので、集合のリストにおける :meth:" "`list.sort` メソッドの出力は未定義です。" -#: ../../library/stdtypes.rst:4353 +#: ../../library/stdtypes.rst:4354 msgid "Set elements, like dictionary keys, must be :term:`hashable`." msgstr "" "集合の要素は、辞書のキーのように、 :term:`ハッシュ可能 ` でなければ" "なりません。" -#: ../../library/stdtypes.rst:4355 +#: ../../library/stdtypes.rst:4356 msgid "" "Binary operations that mix :class:`set` instances with :class:`frozenset` " "return the type of the first operand. For example: ``frozenset('ab') | " @@ -5877,7 +5852,7 @@ msgstr "" "演算は、第一被演算子の型を返します。例えば: ``frozenset('ab') | set('bc')`` " "は :class:`frozenset` インスタンスを返します。" -#: ../../library/stdtypes.rst:4359 +#: ../../library/stdtypes.rst:4360 msgid "" "The following table lists operations available for :class:`set` that do not " "apply to immutable instances of :class:`frozenset`:" @@ -5885,28 +5860,28 @@ msgstr "" "以下の表に挙げる演算は :class:`set` に適用されますが、:class:`frozenset` のイ" "ミュータブルなインスタンスには適用されません:" -#: ../../library/stdtypes.rst:4365 +#: ../../library/stdtypes.rst:4366 msgid "Update the set, adding elements from all others." msgstr "全ての other の要素を追加し、 set を更新します。" -#: ../../library/stdtypes.rst:4370 +#: ../../library/stdtypes.rst:4371 msgid "Update the set, keeping only elements found in it and all others." msgstr "元の set と全ての other に共通する要素だけを残して set を更新します。" -#: ../../library/stdtypes.rst:4375 +#: ../../library/stdtypes.rst:4376 msgid "Update the set, removing elements found in others." msgstr "*other* に含まれる要素を取り除き、 set を更新します。" -#: ../../library/stdtypes.rst:4380 +#: ../../library/stdtypes.rst:4381 msgid "" "Update the set, keeping only elements found in either set, but not in both." msgstr "どちらかにのみ含まれて、共通には持たない要素のみで set を更新します。" -#: ../../library/stdtypes.rst:4384 +#: ../../library/stdtypes.rst:4385 msgid "Add element *elem* to the set." msgstr "要素 *elem* を set に追加します。" -#: ../../library/stdtypes.rst:4388 +#: ../../library/stdtypes.rst:4389 msgid "" "Remove element *elem* from the set. Raises :exc:`KeyError` if *elem* is not " "contained in the set." @@ -5914,11 +5889,11 @@ msgstr "" "要素 *elem* を set から取り除きます。*elem* が set に含まれていなければ :exc:" "`KeyError` を送出します。" -#: ../../library/stdtypes.rst:4393 +#: ../../library/stdtypes.rst:4394 msgid "Remove element *elem* from the set if it is present." msgstr "要素 *elem* が set に含まれていれば、取り除きます。" -#: ../../library/stdtypes.rst:4397 +#: ../../library/stdtypes.rst:4398 msgid "" "Remove and return an arbitrary element from the set. Raises :exc:`KeyError` " "if the set is empty." @@ -5926,11 +5901,11 @@ msgstr "" "*s* から任意の要素を取り除き、それを返します。集合が空の場合、 :exc:" "`KeyError` を送出します" -#: ../../library/stdtypes.rst:4402 +#: ../../library/stdtypes.rst:4403 msgid "Remove all elements from the set." msgstr "set の全ての要素を取り除きます。" -#: ../../library/stdtypes.rst:4405 +#: ../../library/stdtypes.rst:4406 msgid "" "Note, the non-operator versions of the :meth:`update`, :meth:" "`intersection_update`, :meth:`difference_update`, and :meth:" @@ -5941,22 +5916,18 @@ msgstr "" "`difference_update`, および :meth:`symmetric_difference_update` メソッドは、" "任意のイテラブルを引数として受け付けます。" -#: ../../library/stdtypes.rst:4410 +#: ../../library/stdtypes.rst:4411 msgid "" -"Note, the *elem* argument to the :meth:`__contains__`, :meth:`remove`, and :" -"meth:`discard` methods may be a set. To support searching for an equivalent " -"frozenset, a temporary one is created from *elem*." +"Note, the *elem* argument to the :meth:`~object.__contains__`, :meth:" +"`remove`, and :meth:`discard` methods may be a set. To support searching " +"for an equivalent frozenset, a temporary one is created from *elem*." msgstr "" -":meth:`__contains__`, :meth:`remove`, :meth:`discard` メソッドの引数 *elem* " -"は集合かもしれないことに注意してください。\n" -"その集合と等価な :class:`frozenset` の検索をサポートするために、 *elem* から" -"一時的な frozenset を作成します。" -#: ../../library/stdtypes.rst:4418 +#: ../../library/stdtypes.rst:4420 msgid "Mapping Types --- :class:`dict`" msgstr "マッピング型 --- :class:`dict`" -#: ../../library/stdtypes.rst:4428 +#: ../../library/stdtypes.rst:4430 msgid "" "A :term:`mapping` object maps :term:`hashable` values to arbitrary objects. " "Mappings are mutable objects. There is currently only one standard mapping " @@ -5970,7 +5941,7 @@ msgstr "" "す。 (他のコンテナについては組み込みの :class:`list`, :class:`set`, および :" "class:`tuple` クラスと、 :mod:`collections` モジュールを参照してください。)" -#: ../../library/stdtypes.rst:4434 +#: ../../library/stdtypes.rst:4436 msgid "" "A dictionary's keys are *almost* arbitrary values. Values that are not :" "term:`hashable`, that is, values containing lists, dictionaries or other " @@ -5985,7 +5956,7 @@ msgstr "" "比較した際に等しいとみなされる値 (例えば ``1`` と ``1.0`` と ``True``) は、ど" "れを使っても同じエントリーに関連付けられます。" -#: ../../library/stdtypes.rst:4445 +#: ../../library/stdtypes.rst:4447 msgid "" "Return a new dictionary initialized from an optional positional argument and " "a possibly empty set of keyword arguments." @@ -5993,11 +5964,11 @@ msgstr "" "オプションの位置引数と空の可能性もあるキーワード引数の集合により初期化された" "新しい辞書を返します。" -#: ../../library/stdtypes.rst:4448 +#: ../../library/stdtypes.rst:4450 msgid "Dictionaries can be created by several means:" msgstr "辞書はいくつかの方法で生成できます:" -#: ../../library/stdtypes.rst:4450 +#: ../../library/stdtypes.rst:4452 msgid "" "Use a comma-separated list of ``key: value`` pairs within braces: ``{'jack': " "4098, 'sjoerd': 4127}`` or ``{4098: 'jack', 4127: 'sjoerd'}``" @@ -6005,11 +5976,11 @@ msgstr "" "波括弧内にカンマ区切りで ``key: value`` 対を列挙する: ``{'jack': 4098, " "'sjoerd': 4127}`` あるいは ``{4098: 'jack', 4127: 'sjoerd'}``" -#: ../../library/stdtypes.rst:4452 +#: ../../library/stdtypes.rst:4454 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:4453 +#: ../../library/stdtypes.rst:4455 msgid "" "Use the type constructor: ``dict()``, ``dict([('foo', 100), ('bar', " "200)])``, ``dict(foo=100, bar=200)``" @@ -6017,7 +5988,7 @@ msgstr "" "型コンストラクタを使う: ``dict()``, ``dict([('foo', 100), ('bar', 200)])``, " "``dict(foo=100, bar=200)``" -#: ../../library/stdtypes.rst:4456 +#: ../../library/stdtypes.rst:4458 msgid "" "If no positional argument is given, an empty dictionary is created. If a " "positional argument is given and it is a mapping object, a dictionary is " @@ -6037,7 +6008,7 @@ msgstr "" "れに対応する値になります。同一のキーが 2 回以上現れた場合は、そのキーの最後の" "値が新しい辞書での対応する値になります。" -#: ../../library/stdtypes.rst:4466 +#: ../../library/stdtypes.rst:4468 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 " @@ -6048,7 +6019,7 @@ msgstr "" "辞書に追加されます。既に存在しているキーが追加された場合、キーワード引数の値" "は位置引数の値を置き換えます。" -#: ../../library/stdtypes.rst:4471 +#: ../../library/stdtypes.rst:4473 msgid "" "To illustrate, the following examples all return a dictionary equal to " "``{\"one\": 1, \"two\": 2, \"three\": 3}``::" @@ -6056,7 +6027,7 @@ msgstr "" "例を出すと、次の例は全て ``{\"one\": 1, \"two\": 2, \"three\": 3}`` に等しい" "辞書を返します::" -#: ../../library/stdtypes.rst:4483 +#: ../../library/stdtypes.rst:4485 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." @@ -6065,7 +6036,7 @@ msgstr "" "でなければなりません。それ以外の方法では、辞書のキーとして有効などんなキーで" "も使えます。" -#: ../../library/stdtypes.rst:4487 +#: ../../library/stdtypes.rst:4489 msgid "" "These are the operations that dictionaries support (and therefore, custom " "mapping types should support too):" @@ -6073,15 +6044,15 @@ msgstr "" "以下は辞書型がサポートする操作です (それゆえ、カスタムのマップ型もこれらの操" "作をサポートするべきです):" -#: ../../library/stdtypes.rst:4492 +#: ../../library/stdtypes.rst:4494 msgid "Return a list of all the keys used in the dictionary *d*." msgstr "辞書 *d* で使われている全てのキーのリストを返します。" -#: ../../library/stdtypes.rst:4496 +#: ../../library/stdtypes.rst:4498 msgid "Return the number of items in the dictionary *d*." msgstr "辞書 *d* の項目数を返します。" -#: ../../library/stdtypes.rst:4500 +#: ../../library/stdtypes.rst:4502 msgid "" "Return the item of *d* with key *key*. Raises a :exc:`KeyError` if *key* is " "not in the map." @@ -6089,7 +6060,7 @@ msgstr "" "*d* のキー *key* の項目を返します。マップに *key* が存在しなければ、 :exc:" "`KeyError` を送出します。" -#: ../../library/stdtypes.rst:4505 +#: ../../library/stdtypes.rst:4507 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 " @@ -6107,7 +6078,7 @@ msgstr "" "場合、 :exc:`KeyError` が送出されます。 :meth:`__missing__` はメソッドでなけ" "ればならず、インスタンス変数であってはなりません::" -#: ../../library/stdtypes.rst:4524 +#: ../../library/stdtypes.rst:4526 msgid "" "The example above shows part of the implementation of :class:`collections." "Counter`. A different ``__missing__`` method is used by :class:`collections." @@ -6116,11 +6087,11 @@ msgstr "" "ここでお見せした例は :class:`collections.Counter` 実装の一部です。これとは" "違った ``__missing__`` が :class:`collections.defaultdict` で使われています。" -#: ../../library/stdtypes.rst:4530 +#: ../../library/stdtypes.rst:4532 msgid "Set ``d[key]`` to *value*." msgstr "``d[key]`` に *value* を設定します。" -#: ../../library/stdtypes.rst:4534 +#: ../../library/stdtypes.rst:4536 msgid "" "Remove ``d[key]`` from *d*. Raises a :exc:`KeyError` if *key* is not in the " "map." @@ -6128,17 +6099,17 @@ msgstr "" "*d* から ``d[key]`` を削除します。マップに *key* が存在しなければ、 :exc:" "`KeyError` を送出します。" -#: ../../library/stdtypes.rst:4539 +#: ../../library/stdtypes.rst:4541 msgid "Return ``True`` if *d* has a key *key*, else ``False``." msgstr "" "*d* がキー *key* を持っていれば ``True`` を、そうでなければ、 ``False`` を返" "します。" -#: ../../library/stdtypes.rst:4543 +#: ../../library/stdtypes.rst:4545 msgid "Equivalent to ``not key in d``." msgstr "``not key in d`` と等価です。" -#: ../../library/stdtypes.rst:4547 +#: ../../library/stdtypes.rst:4549 msgid "" "Return an iterator over the keys of the dictionary. This is a shortcut for " "``iter(d.keys())``." @@ -6146,21 +6117,21 @@ msgstr "" "辞書のキーに渡るイテレータを返します。これは ``iter(d.keys())`` へのショート" "カットです。" -#: ../../library/stdtypes.rst:4552 +#: ../../library/stdtypes.rst:4554 msgid "Remove all items from the dictionary." msgstr "辞書の全ての項目を消去します。" -#: ../../library/stdtypes.rst:4556 +#: ../../library/stdtypes.rst:4558 msgid "Return a shallow copy of the dictionary." msgstr "辞書の浅いコピーを返します。" -#: ../../library/stdtypes.rst:4560 +#: ../../library/stdtypes.rst:4562 msgid "" "Create a new dictionary with keys from *iterable* and values set to *value*." msgstr "" "*iterable* からキーを取り、値を *value* に設定した、新しい辞書を作成します。" -#: ../../library/stdtypes.rst:4562 +#: ../../library/stdtypes.rst:4564 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 " @@ -6176,7 +6147,7 @@ msgstr "" "別々の値を指すようにしたい場合は、代わりに :ref:`辞書内包表記 ` を使用" "してください。" -#: ../../library/stdtypes.rst:4570 +#: ../../library/stdtypes.rst:4572 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 " @@ -6186,7 +6157,7 @@ msgstr "" "す。 *default* が与えられなかった場合、デフォルトでは ``None`` となります。そ" "のため、このメソッドは :exc:`KeyError` を送出することはありません。" -#: ../../library/stdtypes.rst:4576 +#: ../../library/stdtypes.rst:4578 msgid "" "Return a new view of the dictionary's items (``(key, value)`` pairs). See " "the :ref:`documentation of view objects `." @@ -6194,7 +6165,7 @@ msgstr "" "辞書の項目 (``(key, value)`` 対) の新しいビューを返します。:ref:`ビューオブ" "ジェクトのドキュメント ` を参照してください。" -#: ../../library/stdtypes.rst:4581 +#: ../../library/stdtypes.rst:4583 msgid "" "Return a new view of the dictionary's keys. See the :ref:`documentation of " "view objects `." @@ -6202,7 +6173,7 @@ msgstr "" "辞書のキーの新しいビューを返します。:ref:`ビューオブジェクトのドキュメント " "` を参照してください。" -#: ../../library/stdtypes.rst:4586 +#: ../../library/stdtypes.rst:4588 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 :" @@ -6212,7 +6183,7 @@ msgstr "" "*default* を返します。 *default* が与えられず、かつ *key* が辞書に存在しなけ" "れば :exc:`KeyError` を送出します。" -#: ../../library/stdtypes.rst:4592 +#: ../../library/stdtypes.rst:4594 msgid "" "Remove and return a ``(key, value)`` pair from the dictionary. Pairs are " "returned in :abbr:`LIFO (last-in, first-out)` order." @@ -6220,7 +6191,7 @@ msgstr "" "任意の ``(key, value)`` 対を辞書から消去して返します。\n" "対は :abbr:`LIFO (後入れ、先出し)` の順序で返却されます。" -#: ../../library/stdtypes.rst:4595 +#: ../../library/stdtypes.rst:4597 msgid "" ":meth:`popitem` is useful to destructively iterate over a dictionary, as " "often used in set algorithms. If the dictionary is empty, calling :meth:" @@ -6230,7 +6201,7 @@ msgstr "" "適用して消去するのに便利です。辞書が空であれば、 :meth:`popitem` の呼び出し" "は :exc:`KeyError` を送出します。" -#: ../../library/stdtypes.rst:4599 +#: ../../library/stdtypes.rst:4601 msgid "" "LIFO order is now guaranteed. In prior versions, :meth:`popitem` would " "return an arbitrary key/value pair." @@ -6239,7 +6210,7 @@ msgstr "" "以前のバージョンでは、 :meth:`popitem` は任意の key/value 対を返していまし" "た。" -#: ../../library/stdtypes.rst:4605 +#: ../../library/stdtypes.rst:4607 msgid "" "Return a reverse iterator over the keys of the dictionary. This is a " "shortcut for ``reversed(d.keys())``." @@ -6247,7 +6218,7 @@ msgstr "" "辞書のキーに渡る逆イテレータを返します。これは ``reversed(d.keys())`` への" "ショートカットです。" -#: ../../library/stdtypes.rst:4612 +#: ../../library/stdtypes.rst:4614 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``." @@ -6256,7 +6227,7 @@ msgstr "" "*default* として *key* を挿入し、 *default* を返します。 *default* のデフォル" "トは ``None`` です。" -#: ../../library/stdtypes.rst:4618 +#: ../../library/stdtypes.rst:4620 msgid "" "Update the dictionary with the key/value pairs from *other*, overwriting " "existing keys. Return ``None``." @@ -6264,7 +6235,7 @@ msgstr "" "辞書の内容を *other* のキーと値で更新します。既存のキーは上書きされます。返り" "値は ``None`` です。" -#: ../../library/stdtypes.rst:4621 +#: ../../library/stdtypes.rst:4623 msgid "" ":meth:`update` accepts either another dictionary object or an iterable of " "key/value pairs (as tuples or other iterables of length two). If keyword " @@ -6276,7 +6247,7 @@ msgstr "" "指定されれば、そのキー/値の対で辞書を更新します: ``d.update(red=1, " "blue=2)``。" -#: ../../library/stdtypes.rst:4628 +#: ../../library/stdtypes.rst:4630 msgid "" "Return a new view of the dictionary's values. See the :ref:`documentation " "of view objects `." @@ -6284,7 +6255,7 @@ msgstr "" "辞書の値の新しいビューを返します。:ref:`ビューオブジェクトのドキュメント " "` を参照してください。" -#: ../../library/stdtypes.rst:4631 +#: ../../library/stdtypes.rst:4633 msgid "" "An equality comparison between one ``dict.values()`` view and another will " "always return ``False``. This also applies when comparing ``dict.values()`` " @@ -6294,7 +6265,7 @@ msgstr "" "が返ります。\n" "``dict.values()`` どうしを比較したときも同様です::" -#: ../../library/stdtypes.rst:4641 +#: ../../library/stdtypes.rst:4643 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 " @@ -6303,7 +6274,7 @@ msgstr "" "*d* と *other* のキーと値を統合した新しい辞書を作成します。\n" "*d* と *other* のキーに重複がある場合は、 *other* の方の値が優先されます。" -#: ../../library/stdtypes.rst:4649 +#: ../../library/stdtypes.rst:4651 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 " @@ -6314,7 +6285,7 @@ msgstr "" "テラブル ` です。\n" "*d* と *other* のキーに重複がある場合は、 *other* の方の値が優先されます。" -#: ../../library/stdtypes.rst:4655 +#: ../../library/stdtypes.rst:4657 msgid "" "Dictionaries compare equal if and only if they have the same ``(key, " "value)`` pairs (regardless of ordering). Order comparisons ('<', '<=', '>=', " @@ -6324,7 +6295,7 @@ msgstr "" "その場合にのみ等しくなります。順序比較 ('<', '<=', '>=', '>') は :exc:" "`TypeError` を送出します。" -#: ../../library/stdtypes.rst:4659 +#: ../../library/stdtypes.rst:4661 msgid "" "Dictionaries preserve insertion order. Note that updating a key does not " "affect the order. Keys added after deletion are inserted at the end. ::" @@ -6333,7 +6304,7 @@ msgstr "" "キーの更新は順序には影響が無いことに注意してください。\n" "いったん削除されてから再度追加されたキーは末尾に挿入されます。::" -#: ../../library/stdtypes.rst:4677 +#: ../../library/stdtypes.rst:4679 msgid "" "Dictionary order is guaranteed to be insertion order. This behavior was an " "implementation detail of CPython from 3.6." @@ -6341,15 +6312,15 @@ msgstr "" "辞書の順序が挿入順序であることが保証されるようになりました。この振る舞いは " "CPython 3.6 の実装詳細でした。" -#: ../../library/stdtypes.rst:4681 +#: ../../library/stdtypes.rst:4683 msgid "Dictionaries and dictionary views are reversible. ::" msgstr "辞書と辞書のビューは ``reversed()`` で順序を逆にすることができます::" -#: ../../library/stdtypes.rst:4693 +#: ../../library/stdtypes.rst:4695 msgid "Dictionaries are now reversible." msgstr "辞書がリバース可能になりました。" -#: ../../library/stdtypes.rst:4698 +#: ../../library/stdtypes.rst:4700 msgid "" ":class:`types.MappingProxyType` can be used to create a read-only view of a :" "class:`dict`." @@ -6357,11 +6328,11 @@ msgstr "" ":class:`dict` の読み出し専用ビューを作るために :class:`types." "MappingProxyType` を使うことができます。" -#: ../../library/stdtypes.rst:4705 +#: ../../library/stdtypes.rst:4707 msgid "Dictionary view objects" msgstr "辞書ビューオブジェクト" -#: ../../library/stdtypes.rst:4707 +#: ../../library/stdtypes.rst:4709 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 " @@ -6372,7 +6343,7 @@ msgstr "" "ブジェクトは、 *ビューオブジェクト* です。これらは、辞書の項目の動的なビュー" "を提供し、辞書が変更された時、ビューはその変更を反映します。" -#: ../../library/stdtypes.rst:4712 +#: ../../library/stdtypes.rst:4714 msgid "" "Dictionary views can be iterated over to yield their respective data, and " "support membership tests:" @@ -6380,11 +6351,11 @@ msgstr "" "辞書ビューは、イテレートすることで対応するデータを yield できます。また、帰属" "判定をサポートします:" -#: ../../library/stdtypes.rst:4717 +#: ../../library/stdtypes.rst:4719 msgid "Return the number of entries in the dictionary." msgstr "辞書の項目数を返します。" -#: ../../library/stdtypes.rst:4721 +#: ../../library/stdtypes.rst:4723 msgid "" "Return an iterator over the keys, values or items (represented as tuples of " "``(key, value)``) in the dictionary." @@ -6392,7 +6363,7 @@ msgstr "" "辞書のキー、値、または (``(key, value)`` のタプルとして表される) 項目に渡るイ" "テレータを返します。" -#: ../../library/stdtypes.rst:4724 +#: ../../library/stdtypes.rst:4726 msgid "" "Keys and values are iterated over in insertion order. This allows the " "creation of ``(value, key)`` pairs using :func:`zip`: ``pairs = zip(d." @@ -6405,7 +6376,7 @@ msgstr "" "同じリストを作成する他の方法は、 ``pairs = [(v, k) for (k, v) in d." "items()]`` です。 " -#: ../../library/stdtypes.rst:4729 +#: ../../library/stdtypes.rst:4731 msgid "" "Iterating views while adding or deleting entries in the dictionary may raise " "a :exc:`RuntimeError` or fail to iterate over all entries." @@ -6413,11 +6384,11 @@ msgstr "" "辞書の項目の追加や削除中にビューをイテレートすると、 :exc:`RuntimeError` を送" "出したり、すべての項目に渡ってイテレートできなかったりします。" -#: ../../library/stdtypes.rst:4732 +#: ../../library/stdtypes.rst:4734 msgid "Dictionary order is guaranteed to be insertion order." msgstr "辞書の順序が挿入順序であると保証されるようになりました。" -#: ../../library/stdtypes.rst:4737 +#: ../../library/stdtypes.rst:4739 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)." @@ -6425,7 +6396,7 @@ msgstr "" "*x* が元の辞書のキー、値、または項目 (項目の場合、 *x* は ``(key, value)`` タ" "プルです) にあるとき ``True`` を返します。" -#: ../../library/stdtypes.rst:4742 +#: ../../library/stdtypes.rst:4744 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." @@ -6433,11 +6404,11 @@ msgstr "" "辞書のキーもしくは値、項目の順序を逆にしたイテレーターを返します。\n" "戻り値のビューは、挿入された順とは逆の順でイテレートします。" -#: ../../library/stdtypes.rst:4745 +#: ../../library/stdtypes.rst:4747 msgid "Dictionary views are now reversible." msgstr "辞書のビューがリバース可能になりました。" -#: ../../library/stdtypes.rst:4750 +#: ../../library/stdtypes.rst:4752 msgid "" "Return a :class:`types.MappingProxyType` that wraps the original dictionary " "to which the view refers." @@ -6445,7 +6416,7 @@ msgstr "" "ビューの参照先の辞書をラップする :class:`types.MappingProxyType` オブジェク" "ト を返します。" -#: ../../library/stdtypes.rst:4755 +#: ../../library/stdtypes.rst:4757 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 " @@ -6459,15 +6430,15 @@ msgid "" "input." msgstr "" -#: ../../library/stdtypes.rst:4767 +#: ../../library/stdtypes.rst:4769 msgid "An example of dictionary view usage::" msgstr "辞書ビューの使用法の例::" -#: ../../library/stdtypes.rst:4811 +#: ../../library/stdtypes.rst:4813 msgid "Context Manager Types" msgstr "コンテキストマネージャ型" -#: ../../library/stdtypes.rst:4818 +#: ../../library/stdtypes.rst:4820 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 " @@ -6479,7 +6450,7 @@ msgstr "" "文の終わりで脱出する実行時コンテキストを、ユーザ定義クラスが定義できるように" "する一対のメソッドで実装されます:" -#: ../../library/stdtypes.rst:4826 +#: ../../library/stdtypes.rst:4828 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 " @@ -6490,7 +6461,7 @@ msgstr "" "したオブジェクトを返します。このメソッドが返す値はこのコンテキストマネージャ" "を使う :keyword:`with` 文の :keyword:`!as` 節の識別子に束縛されます。" -#: ../../library/stdtypes.rst:4831 +#: ../../library/stdtypes.rst:4833 msgid "" "An example of a context manager that returns itself is a :term:`file " "object`. File objects return themselves from __enter__() to allow :func:" @@ -6501,7 +6472,7 @@ msgstr "" "返し、 :func:`open` が :keyword:`with` 文のコンテキスト式として使われるように" "します。" -#: ../../library/stdtypes.rst:4835 +#: ../../library/stdtypes.rst:4837 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 " @@ -6516,7 +6487,7 @@ msgstr "" "うすることで, :keyword:`with` 文の本体の内部で、:keyword:`!with` 文の外側の" "コードに影響を与えずに、 10進数コンテキストを変更できます。" -#: ../../library/stdtypes.rst:4845 +#: ../../library/stdtypes.rst:4847 msgid "" "Exit the runtime context and return a Boolean flag indicating if any " "exception that occurred should be suppressed. If an exception occurred while " @@ -6529,7 +6500,7 @@ msgstr "" "合、引数にはその例外の型と値とトレースバック情報を渡します。そうでない場合、" "引数は全て ``None`` となります。" -#: ../../library/stdtypes.rst:4850 +#: ../../library/stdtypes.rst:4852 msgid "" "Returning a true value from this method will cause the :keyword:`with` " "statement to suppress the exception and continue execution with the " @@ -6544,7 +6515,7 @@ msgstr "" "実行を終えると例外の伝播が続きます。このメソッドの実行中に起きた例外は :" "keyword:`!with` 文の本体の実行中に起こった例外を置き換えてしまいます。" -#: ../../library/stdtypes.rst:4857 +#: ../../library/stdtypes.rst:4859 msgid "" "The exception passed in should never be reraised explicitly - instead, this " "method should return a false value to indicate that the method completed " @@ -6553,7 +6524,7 @@ msgid "" "__exit__` method has actually failed." msgstr "" -#: ../../library/stdtypes.rst:4863 +#: ../../library/stdtypes.rst:4865 msgid "" "Python defines several context managers to support easy thread " "synchronisation, prompt closure of files or other objects, and simpler " @@ -6567,7 +6538,7 @@ msgstr "" "ているという以上の特別の取り扱いを受けるわけではありません。例については :" "mod:`contextlib` モジュールを参照してください。" -#: ../../library/stdtypes.rst:4869 +#: ../../library/stdtypes.rst:4871 msgid "" "Python's :term:`generator`\\s and the :class:`contextlib.contextmanager` " "decorator provide a convenient way to implement these protocols. If a " @@ -6584,7 +6555,7 @@ msgstr "" "`~contextmanager.__exit__` メソッドを実装したコンテキストマネージャを返すよう" "になります。" -#: ../../library/stdtypes.rst:4876 +#: ../../library/stdtypes.rst:4878 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 " @@ -6598,7 +6569,7 @@ msgstr "" "供しなければなりません。実行時コンテキストを準備するオーバーヘッドに比べた" "ら、一回のクラス辞書の探索のオーバーヘッドは無視できます。" -#: ../../library/stdtypes.rst:4884 +#: ../../library/stdtypes.rst:4886 msgid "" "Type Annotation Types --- :ref:`Generic Alias `, :ref:" "`Union `" @@ -6606,7 +6577,7 @@ msgstr "" "型アノテーション型 --- :ref:`ジェネリックエイリアス ` 、 :ref:`ユニオン `" -#: ../../library/stdtypes.rst:4889 +#: ../../library/stdtypes.rst:4891 msgid "" "The core built-in types for :term:`type annotations ` are :ref:" "`Generic Alias ` and :ref:`Union `." @@ -6615,11 +6586,11 @@ msgstr "" "リックエイリアス ` と :ref:`ユニオン ` で" "す。" -#: ../../library/stdtypes.rst:4896 +#: ../../library/stdtypes.rst:4898 msgid "Generic Alias Type" msgstr "ジェネリックエイリアス型" -#: ../../library/stdtypes.rst:4902 +#: ../../library/stdtypes.rst:4904 msgid "" "``GenericAlias`` objects are generally created by :ref:`subscripting " "` a class. They are most often used with :ref:`container " @@ -6637,7 +6608,7 @@ msgstr "" "``GenericAlias`` オブジェクトは主に :term:`型アノテーション ` の" "用途で使われます。" -#: ../../library/stdtypes.rst:4912 +#: ../../library/stdtypes.rst:4914 msgid "" "It is generally only possible to subscript a class if the class implements " "the special method :meth:`~object.__class_getitem__`." @@ -6645,13 +6616,13 @@ msgstr "" "一般に、クラスへの添字表記は、そのクラスが特殊メソッド :meth:`~object." "__class_getitem__` を実装しているときに限り可能です。" -#: ../../library/stdtypes.rst:4915 +#: ../../library/stdtypes.rst:4917 msgid "" "A ``GenericAlias`` object acts as a proxy for a :term:`generic type`, " "implementing *parameterized generics*." msgstr "" -#: ../../library/stdtypes.rst:4918 +#: ../../library/stdtypes.rst:4920 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 " @@ -6660,7 +6631,7 @@ msgid "" "`bytes`." msgstr "" -#: ../../library/stdtypes.rst:4924 +#: ../../library/stdtypes.rst:4926 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 " @@ -6669,7 +6640,7 @@ msgid "" "the :class:`str` data type and the :class:`bytes` data type:" msgstr "" -#: ../../library/stdtypes.rst:4930 +#: ../../library/stdtypes.rst:4932 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 " @@ -6677,7 +6648,7 @@ msgid "" "annotations with the ``GenericAlias`` ``re.Match[str]``." msgstr "" -#: ../../library/stdtypes.rst:4936 +#: ../../library/stdtypes.rst:4938 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." @@ -6686,21 +6657,21 @@ msgid "" "objects>` objects with ``re.Match[bytes]``." msgstr "" -#: ../../library/stdtypes.rst:4942 +#: ../../library/stdtypes.rst:4944 msgid "" "``GenericAlias`` objects are instances of the class :class:`types." "GenericAlias`, which can also be used to create ``GenericAlias`` objects " "directly." msgstr "" -#: ../../library/stdtypes.rst:4948 +#: ../../library/stdtypes.rst:4950 msgid "" "Creates a ``GenericAlias`` representing a type ``T`` parameterized by types " "*X*, *Y*, and more depending on the ``T`` used. For example, a function " "expecting a :class:`list` containing :class:`float` elements::" msgstr "" -#: ../../library/stdtypes.rst:4956 +#: ../../library/stdtypes.rst:4958 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 " @@ -6708,13 +6679,13 @@ msgid "" "of type :class:`str` and values of type :class:`int`::" msgstr "" -#: ../../library/stdtypes.rst:4964 +#: ../../library/stdtypes.rst:4966 msgid "" "The builtin functions :func:`isinstance` and :func:`issubclass` do not " "accept ``GenericAlias`` types for their second argument::" msgstr "" -#: ../../library/stdtypes.rst:4972 +#: ../../library/stdtypes.rst:4974 msgid "" "The Python runtime does not enforce :term:`type annotations `. " "This extends to generic types and their type parameters. When creating a " @@ -6723,332 +6694,332 @@ msgid "" "discouraged, but will run without errors::" msgstr "" -#: ../../library/stdtypes.rst:4982 +#: ../../library/stdtypes.rst:4984 msgid "" "Furthermore, parameterized generics erase type parameters during object " "creation::" msgstr "" -#: ../../library/stdtypes.rst:4993 +#: ../../library/stdtypes.rst:4995 msgid "" "Calling :func:`repr` or :func:`str` on a generic shows the parameterized " "type::" msgstr "" -#: ../../library/stdtypes.rst:5001 +#: ../../library/stdtypes.rst:5003 msgid "" "The :meth:`~object.__getitem__` method of generic containers will raise an " "exception to disallow mistakes like ``dict[str][str]``::" msgstr "" -#: ../../library/stdtypes.rst:5009 +#: ../../library/stdtypes.rst:5011 msgid "" "However, such expressions are valid when :ref:`type variables ` " "are used. The index must have as many elements as there are type variable " "items in the ``GenericAlias`` object's :attr:`~genericalias.__args__`. ::" msgstr "" -#: ../../library/stdtypes.rst:5020 +#: ../../library/stdtypes.rst:5022 msgid "Standard Generic Classes" msgstr "" -#: ../../library/stdtypes.rst:5022 +#: ../../library/stdtypes.rst:5024 msgid "" "The following standard library classes support parameterized generics. This " "list is non-exhaustive." msgstr "" -#: ../../library/stdtypes.rst:5025 +#: ../../library/stdtypes.rst:5027 msgid ":class:`tuple`" msgstr ":class:`tuple`" -#: ../../library/stdtypes.rst:5026 +#: ../../library/stdtypes.rst:5028 msgid ":class:`list`" msgstr ":class:`list`" -#: ../../library/stdtypes.rst:5027 +#: ../../library/stdtypes.rst:5029 msgid ":class:`dict`" msgstr ":class:`dict`" -#: ../../library/stdtypes.rst:5028 +#: ../../library/stdtypes.rst:5030 msgid ":class:`set`" msgstr ":class:`set`" -#: ../../library/stdtypes.rst:5029 +#: ../../library/stdtypes.rst:5031 msgid ":class:`frozenset`" msgstr ":class:`frozenset`" -#: ../../library/stdtypes.rst:5030 +#: ../../library/stdtypes.rst:5032 msgid ":class:`type`" msgstr ":class:`type`" -#: ../../library/stdtypes.rst:5031 +#: ../../library/stdtypes.rst:5033 msgid ":class:`collections.deque`" msgstr ":class:`collections.deque`" -#: ../../library/stdtypes.rst:5032 +#: ../../library/stdtypes.rst:5034 msgid ":class:`collections.defaultdict`" msgstr ":class:`collections.defaultdict`" -#: ../../library/stdtypes.rst:5033 +#: ../../library/stdtypes.rst:5035 msgid ":class:`collections.OrderedDict`" msgstr ":class:`collections.OrderedDict`" -#: ../../library/stdtypes.rst:5034 +#: ../../library/stdtypes.rst:5036 msgid ":class:`collections.Counter`" msgstr ":class:`collections.Counter`" -#: ../../library/stdtypes.rst:5035 +#: ../../library/stdtypes.rst:5037 msgid ":class:`collections.ChainMap`" msgstr ":class:`collections.ChainMap`" -#: ../../library/stdtypes.rst:5036 +#: ../../library/stdtypes.rst:5038 msgid ":class:`collections.abc.Awaitable`" msgstr "’’:class:`collections.abc.Awaitable`" -#: ../../library/stdtypes.rst:5037 +#: ../../library/stdtypes.rst:5039 msgid ":class:`collections.abc.Coroutine`" msgstr ":class:`collections.abc.Coroutine`" -#: ../../library/stdtypes.rst:5038 +#: ../../library/stdtypes.rst:5040 msgid ":class:`collections.abc.AsyncIterable`" msgstr ":class:`collections.abc.AsyncIterable`" -#: ../../library/stdtypes.rst:5039 +#: ../../library/stdtypes.rst:5041 msgid ":class:`collections.abc.AsyncIterator`" msgstr ":class:`collections.abc.AsyncIterator`" -#: ../../library/stdtypes.rst:5040 +#: ../../library/stdtypes.rst:5042 msgid ":class:`collections.abc.AsyncGenerator`" msgstr ":class:`collections.abc.AsyncGenerator`" -#: ../../library/stdtypes.rst:5041 +#: ../../library/stdtypes.rst:5043 msgid ":class:`collections.abc.Iterable`" msgstr ":class:`collections.abc.Iterable`" -#: ../../library/stdtypes.rst:5042 +#: ../../library/stdtypes.rst:5044 msgid ":class:`collections.abc.Iterator`" msgstr ":class:`collections.abc.Iterator`" -#: ../../library/stdtypes.rst:5043 +#: ../../library/stdtypes.rst:5045 msgid ":class:`collections.abc.Generator`" msgstr ":class:`collections.abc.Generator`" -#: ../../library/stdtypes.rst:5044 +#: ../../library/stdtypes.rst:5046 msgid ":class:`collections.abc.Reversible`" msgstr ":class:`collections.abc.Reversible`" -#: ../../library/stdtypes.rst:5045 +#: ../../library/stdtypes.rst:5047 msgid ":class:`collections.abc.Container`" msgstr ":class:`collections.abc.Container`" -#: ../../library/stdtypes.rst:5046 +#: ../../library/stdtypes.rst:5048 msgid ":class:`collections.abc.Collection`" msgstr ":class:`collections.abc.Collection`" -#: ../../library/stdtypes.rst:5047 +#: ../../library/stdtypes.rst:5049 msgid ":class:`collections.abc.Callable`" msgstr ":class:`collections.abc.Callable`" -#: ../../library/stdtypes.rst:5048 +#: ../../library/stdtypes.rst:5050 msgid ":class:`collections.abc.Set`" msgstr ":class:`collections.abc.Set`" -#: ../../library/stdtypes.rst:5049 +#: ../../library/stdtypes.rst:5051 msgid ":class:`collections.abc.MutableSet`" msgstr ":class:`collections.abc.MutableSet`" -#: ../../library/stdtypes.rst:5050 +#: ../../library/stdtypes.rst:5052 msgid ":class:`collections.abc.Mapping`" msgstr ":class:`collections.abc.Mapping`" -#: ../../library/stdtypes.rst:5051 +#: ../../library/stdtypes.rst:5053 msgid ":class:`collections.abc.MutableMapping`" msgstr ":class:`collections.abc.MutableMapping`" -#: ../../library/stdtypes.rst:5052 +#: ../../library/stdtypes.rst:5054 msgid ":class:`collections.abc.Sequence`" msgstr ":class:`collections.abc.Sequence`" -#: ../../library/stdtypes.rst:5053 +#: ../../library/stdtypes.rst:5055 msgid ":class:`collections.abc.MutableSequence`" msgstr ":class:`collections.abc.MutableSequence`" -#: ../../library/stdtypes.rst:5054 +#: ../../library/stdtypes.rst:5056 msgid ":class:`collections.abc.ByteString`" msgstr ":class:`collections.abc.ByteString`" -#: ../../library/stdtypes.rst:5055 +#: ../../library/stdtypes.rst:5057 msgid ":class:`collections.abc.MappingView`" msgstr ":class:`collections.abc.MappingView`" -#: ../../library/stdtypes.rst:5056 +#: ../../library/stdtypes.rst:5058 msgid ":class:`collections.abc.KeysView`" msgstr ":class:`collections.abc.KeysView`" -#: ../../library/stdtypes.rst:5057 +#: ../../library/stdtypes.rst:5059 msgid ":class:`collections.abc.ItemsView`" msgstr ":class:`collections.abc.ItemsView`" -#: ../../library/stdtypes.rst:5058 +#: ../../library/stdtypes.rst:5060 msgid ":class:`collections.abc.ValuesView`" msgstr ":class:`collections.abc.ValuesView`" -#: ../../library/stdtypes.rst:5059 +#: ../../library/stdtypes.rst:5061 msgid ":class:`contextlib.AbstractContextManager`" msgstr ":class:`contextlib.AbstractContextManager`" -#: ../../library/stdtypes.rst:5060 +#: ../../library/stdtypes.rst:5062 msgid ":class:`contextlib.AbstractAsyncContextManager`" msgstr ":class:`contextlib.AbstractAsyncContextManager`" -#: ../../library/stdtypes.rst:5061 +#: ../../library/stdtypes.rst:5063 msgid ":class:`dataclasses.Field`" msgstr "" -#: ../../library/stdtypes.rst:5062 +#: ../../library/stdtypes.rst:5064 msgid ":class:`functools.cached_property`" msgstr "" -#: ../../library/stdtypes.rst:5063 +#: ../../library/stdtypes.rst:5065 msgid ":class:`functools.partialmethod`" msgstr "" -#: ../../library/stdtypes.rst:5064 +#: ../../library/stdtypes.rst:5066 msgid ":class:`os.PathLike`" msgstr "" -#: ../../library/stdtypes.rst:5065 +#: ../../library/stdtypes.rst:5067 msgid ":class:`queue.LifoQueue`" msgstr "" -#: ../../library/stdtypes.rst:5066 +#: ../../library/stdtypes.rst:5068 msgid ":class:`queue.Queue`" msgstr "" -#: ../../library/stdtypes.rst:5067 +#: ../../library/stdtypes.rst:5069 msgid ":class:`queue.PriorityQueue`" msgstr "" -#: ../../library/stdtypes.rst:5068 +#: ../../library/stdtypes.rst:5070 msgid ":class:`queue.SimpleQueue`" msgstr "" -#: ../../library/stdtypes.rst:5069 +#: ../../library/stdtypes.rst:5071 msgid ":ref:`re.Pattern `" msgstr ":ref:`re.Pattern `" -#: ../../library/stdtypes.rst:5070 +#: ../../library/stdtypes.rst:5072 msgid ":ref:`re.Match `" msgstr ":ref:`re.Match `" -#: ../../library/stdtypes.rst:5071 +#: ../../library/stdtypes.rst:5073 msgid ":class:`shelve.BsdDbShelf`" msgstr "" -#: ../../library/stdtypes.rst:5072 +#: ../../library/stdtypes.rst:5074 msgid ":class:`shelve.DbfilenameShelf`" msgstr "" -#: ../../library/stdtypes.rst:5073 +#: ../../library/stdtypes.rst:5075 msgid ":class:`shelve.Shelf`" msgstr "" -#: ../../library/stdtypes.rst:5074 +#: ../../library/stdtypes.rst:5076 msgid ":class:`types.MappingProxyType`" msgstr "" -#: ../../library/stdtypes.rst:5075 +#: ../../library/stdtypes.rst:5077 msgid ":class:`weakref.WeakKeyDictionary`" msgstr "" -#: ../../library/stdtypes.rst:5076 +#: ../../library/stdtypes.rst:5078 msgid ":class:`weakref.WeakMethod`" msgstr "" -#: ../../library/stdtypes.rst:5077 +#: ../../library/stdtypes.rst:5079 msgid ":class:`weakref.WeakSet`" msgstr "" -#: ../../library/stdtypes.rst:5078 +#: ../../library/stdtypes.rst:5080 msgid ":class:`weakref.WeakValueDictionary`" msgstr "" -#: ../../library/stdtypes.rst:5083 +#: ../../library/stdtypes.rst:5085 msgid "Special Attributes of ``GenericAlias`` objects" msgstr "" -#: ../../library/stdtypes.rst:5085 +#: ../../library/stdtypes.rst:5087 msgid "All parameterized generics implement special read-only attributes." msgstr "" -#: ../../library/stdtypes.rst:5089 +#: ../../library/stdtypes.rst:5091 msgid "This attribute points at the non-parameterized generic class::" msgstr "" -#: ../../library/stdtypes.rst:5097 +#: ../../library/stdtypes.rst:5099 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 " "class::" msgstr "" -#: ../../library/stdtypes.rst:5107 +#: ../../library/stdtypes.rst:5109 msgid "" "This attribute is a lazily computed tuple (possibly empty) of unique type " "variables found in ``__args__``::" msgstr "" -#: ../../library/stdtypes.rst:5118 +#: ../../library/stdtypes.rst:5120 msgid "" "A ``GenericAlias`` object with :class:`typing.ParamSpec` parameters may not " "have correct ``__parameters__`` after substitution because :class:`typing." "ParamSpec` is intended primarily for static type checking." msgstr "" -#: ../../library/stdtypes.rst:5125 +#: ../../library/stdtypes.rst:5127 msgid "" "A boolean that is true if the alias has been unpacked using the ``*`` " "operator (see :data:`~typing.TypeVarTuple`)." msgstr "" -#: ../../library/stdtypes.rst:5134 +#: ../../library/stdtypes.rst:5136 msgid ":pep:`484` - Type Hints" msgstr ":pep:`484` - 型ヒント" -#: ../../library/stdtypes.rst:5134 +#: ../../library/stdtypes.rst:5136 msgid "Introducing Python's framework for type annotations." msgstr "" -#: ../../library/stdtypes.rst:5139 +#: ../../library/stdtypes.rst:5141 msgid ":pep:`585` - Type Hinting Generics In Standard Collections" msgstr "" ":pep:`585` - 標準コレクション型の型ヒントにおける総称型 (generics) の使用" -#: ../../library/stdtypes.rst:5137 +#: ../../library/stdtypes.rst:5139 msgid "" "Introducing the ability to natively parameterize standard-library classes, " "provided they implement the special class method :meth:`~object." "__class_getitem__`." msgstr "" -#: ../../library/stdtypes.rst:5142 +#: ../../library/stdtypes.rst:5144 msgid "" ":ref:`Generics`, :ref:`user-defined generics ` and :" "class:`typing.Generic`" msgstr "" -#: ../../library/stdtypes.rst:5142 +#: ../../library/stdtypes.rst:5144 msgid "" "Documentation on how to implement generic classes that can be parameterized " "at runtime and understood by static type-checkers." msgstr "" -#: ../../library/stdtypes.rst:5151 +#: ../../library/stdtypes.rst:5153 msgid "Union Type" msgstr "" -#: ../../library/stdtypes.rst:5157 +#: ../../library/stdtypes.rst:5159 msgid "" "A union object holds the value of the ``|`` (bitwise or) operation on " "multiple :ref:`type objects `. These types are intended " @@ -7057,7 +7028,7 @@ msgid "" "Union`." msgstr "" -#: ../../library/stdtypes.rst:5164 +#: ../../library/stdtypes.rst:5166 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 " @@ -7065,7 +7036,7 @@ msgid "" "class:`float`::" msgstr "" -#: ../../library/stdtypes.rst:5174 +#: ../../library/stdtypes.rst:5176 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 " @@ -7074,66 +7045,66 @@ msgid "" "a string, e.g. ``\"int | Foo\"``." msgstr "" -#: ../../library/stdtypes.rst:5182 +#: ../../library/stdtypes.rst:5184 msgid "" "Union objects can be tested for equality with other union objects. Details:" msgstr "" -#: ../../library/stdtypes.rst:5184 +#: ../../library/stdtypes.rst:5186 msgid "Unions of unions are flattened::" msgstr "" -#: ../../library/stdtypes.rst:5188 +#: ../../library/stdtypes.rst:5190 msgid "Redundant types are removed::" msgstr "" -#: ../../library/stdtypes.rst:5192 +#: ../../library/stdtypes.rst:5194 msgid "When comparing unions, the order is ignored::" msgstr "" -#: ../../library/stdtypes.rst:5196 +#: ../../library/stdtypes.rst:5198 msgid "It is compatible with :data:`typing.Union`::" msgstr "" -#: ../../library/stdtypes.rst:5200 +#: ../../library/stdtypes.rst:5202 msgid "Optional types can be spelled as a union with ``None``::" msgstr "" -#: ../../library/stdtypes.rst:5207 +#: ../../library/stdtypes.rst:5209 msgid "" "Calls to :func:`isinstance` and :func:`issubclass` are also supported with a " "union object::" msgstr "" -#: ../../library/stdtypes.rst:5213 +#: ../../library/stdtypes.rst:5215 msgid "" "However, :ref:`parameterized generics ` in union objects " "cannot be checked::" msgstr "" -#: ../../library/stdtypes.rst:5223 +#: ../../library/stdtypes.rst:5225 msgid "" "The user-exposed type for the union object can be accessed from :data:`types." "UnionType` and used for :func:`isinstance` checks. An object cannot be " "instantiated from the type::" msgstr "" -#: ../../library/stdtypes.rst:5236 +#: ../../library/stdtypes.rst:5238 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 override " -"it::" +"The :meth:`!__or__` method for type objects was added to support the syntax " +"``X | Y``. If a metaclass implements :meth:`!__or__`, the Union may " +"override it:" msgstr "" -#: ../../library/stdtypes.rst:5254 +#: ../../library/stdtypes.rst:5258 msgid ":pep:`604` -- PEP proposing the ``X | Y`` syntax and the Union type." msgstr "" -#: ../../library/stdtypes.rst:5262 +#: ../../library/stdtypes.rst:5266 msgid "Other Built-in Types" msgstr "その他の組み込み型" -#: ../../library/stdtypes.rst:5264 +#: ../../library/stdtypes.rst:5268 msgid "" "The interpreter supports several other kinds of objects. Most of these " "support only one or two operations." @@ -7141,11 +7112,11 @@ msgstr "" "インタプリタは、その他いくつかの種類のオブジェクトをサポートしています。これ" "らのほとんどは 1 つまたは 2 つの演算だけをサポートしています。" -#: ../../library/stdtypes.rst:5271 +#: ../../library/stdtypes.rst:5275 msgid "Modules" msgstr "モジュール" -#: ../../library/stdtypes.rst:5273 +#: ../../library/stdtypes.rst:5277 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 " @@ -7162,7 +7133,7 @@ msgstr "" "ん; ``import foo`` は *foo* と名づけられたモジュールオブジェクトの存在を必要" "とはせず、*foo* と名づけられたモジュールの (外部の) *定義* を必要とします。)" -#: ../../library/stdtypes.rst:5280 +#: ../../library/stdtypes.rst:5284 msgid "" "A special attribute of every module is :attr:`~object.__dict__`. This is the " "dictionary containing the module's symbol table. Modifying this dictionary " @@ -7180,7 +7151,7 @@ msgstr "" "とはできません)。 :attr:`~object.__dict__` を直接書き換えることは推奨されませ" "ん。" -#: ../../library/stdtypes.rst:5288 +#: ../../library/stdtypes.rst:5292 msgid "" "Modules built into the interpreter are written like this: ````. If loaded from a file, they are written as ```` と書かれます。" -#: ../../library/stdtypes.rst:5296 +#: ../../library/stdtypes.rst:5300 msgid "Classes and Class Instances" msgstr "クラスおよびクラスインスタンス" -#: ../../library/stdtypes.rst:5298 +#: ../../library/stdtypes.rst:5302 msgid "See :ref:`objects` and :ref:`class` for these." msgstr "" "これらについては :ref:`objects` および :ref:`class` を参照してください。" -#: ../../library/stdtypes.rst:5304 +#: ../../library/stdtypes.rst:5308 msgid "Functions" msgstr "関数" -#: ../../library/stdtypes.rst:5306 +#: ../../library/stdtypes.rst:5310 msgid "" "Function objects are created by function definitions. The only operation on " "a function object is to call it: ``func(argument-list)``." @@ -7211,7 +7182,7 @@ msgstr "" "関数オブジェクトは関数定義によって生成されます。関数オブジェクトに対する唯一" "の操作は、それを呼び出すことです: ``func(argument-list)`` 。" -#: ../../library/stdtypes.rst:5309 +#: ../../library/stdtypes.rst:5313 msgid "" "There are really two flavors of function objects: built-in functions and " "user-defined functions. Both support the same operation (to call the " @@ -7222,71 +7193,55 @@ msgstr "" "す。どちらも同じ操作 (関数の呼び出し) をサポートしますが、実装は異なるので、" "オブジェクトの型も異なります。" -#: ../../library/stdtypes.rst:5313 +#: ../../library/stdtypes.rst:5317 msgid "See :ref:`function` for more information." msgstr "詳細は、 :ref:`function` を参照してください。" -#: ../../library/stdtypes.rst:5319 +#: ../../library/stdtypes.rst:5323 msgid "Methods" msgstr "メソッド" -#: ../../library/stdtypes.rst:5323 +#: ../../library/stdtypes.rst:5327 msgid "" "Methods are functions that are called using the attribute notation. There " -"are two flavors: built-in methods (such as :meth:`append` on lists) and " -"class instance methods. Built-in methods are described with the types that " -"support them." +"are two flavors: :ref:`built-in methods ` (such as :meth:" +"`append` on lists) and :ref:`class instance method `. " +"Built-in methods are described with the types that support them." msgstr "" -"メソッドは属性表記を使って呼び出される関数です。メソッドには二種類あります: " -"(リストの :meth:`append` のような) 組み込みメソッドと、クラスインスタンスのメ" -"ソッドです。組み込みメソッドは、それをサポートする型と一緒に記述されていま" -"す。" -#: ../../library/stdtypes.rst:5328 +#: ../../library/stdtypes.rst:5332 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 :dfn:" -"`instance method`) object. When called, it will add the ``self`` argument to " -"the argument list. Bound methods have two special read-only attributes: ``m." -"__self__`` is the object on which the method operates, and ``m.__func__`` is " -"the function implementing the method. Calling ``m(arg-1, arg-2, ..., arg-" -"n)`` is completely equivalent to calling ``m.__func__(m.__self__, arg-1, " +"instance, you get a special object: a :dfn:`bound method` (also called :ref:" +"`instance method `) object. When called, it will add the " +"``self`` argument to the argument list. Bound methods have two special read-" +"only attributes: :attr:`m.__self__ ` is the object on which " +"the method operates, and :attr:`m.__func__ ` is the " +"function implementing the method. Calling ``m(arg-1, arg-2, ..., arg-n)`` " +"is completely equivalent to calling ``m.__func__(m.__self__, arg-1, " "arg-2, ..., arg-n)``." msgstr "" -"インスタンスを通してメソッド (クラスの名前空間内で定義された関数) にアクセス" -"すると、特殊なオブジェクトが得られます。それは束縛メソッド (:dfn:`bound " -"method`) オブジェクトで、インスタンスメソッド (:dfn:`instance method`) とも呼" -"ばれます。呼び出された時、引数リストに ``self`` 引数が追加されます。束縛メ" -"ソッドには 2 つの特殊読み出し専用属性があります。 ``m.__self__`` はそのメソッ" -"ドが操作するオブジェクトで、 ``m.__func__`` はそのメソッドを実装している関数" -"です。 ``m(arg-1, arg-2, ..., arg-n)`` の呼び出しは、 ``m.__func__(m." -"__self__, arg-1, arg-2, ..., arg-n)`` の呼び出しと完全に等価です。" - -#: ../../library/stdtypes.rst:5337 -msgid "" -"Like function objects, bound method objects support getting arbitrary " -"attributes. However, since method attributes are actually stored on the " -"underlying function object (``meth.__func__``), setting method attributes on " -"bound methods is disallowed. Attempting to set an attribute on a method " -"results in an :exc:`AttributeError` being raised. In order to set a method " -"attribute, you need to explicitly set it on the underlying function object::" -msgstr "" -"関数オブジェクトと同様に、メソッドオブジェクトは任意の属性の取得をサポートし" -"ています。しかし、メソッド属性は実際には下層の関数オブジェクト (``meth." -"__func__``) に記憶されているので、バインドされるメソッドにメソッド属性を設定" -"することは許されていません。メソッドに属性を設定しようとすると :exc:" -"`AttributeError` が送出されます。メソッドの属性を設定するためには、次のように" -"その下層の関数オブジェクトに明示的に設定する必要があります::" - -#: ../../library/stdtypes.rst:5357 ../../library/stdtypes.rst:5388 -msgid "See :ref:`types` for more information." -msgstr "詳細は、 :ref:`types` を参照してください。" -#: ../../library/stdtypes.rst:5365 +#: ../../library/stdtypes.rst:5343 +msgid "" +"Like :ref:`function objects `, bound method objects " +"support getting arbitrary attributes. However, since method attributes are " +"actually stored on the underlying function object (:attr:`method.__func__`), " +"setting method attributes on bound methods is disallowed. Attempting to set " +"an attribute on a method results in an :exc:`AttributeError` being raised. " +"In order to set a method attribute, you need to explicitly set it on the " +"underlying function object:" +msgstr "" + +#: ../../library/stdtypes.rst:5366 +msgid "See :ref:`instance-methods` for more information." +msgstr "" + +#: ../../library/stdtypes.rst:5374 msgid "Code Objects" msgstr "コードオブジェクト" -#: ../../library/stdtypes.rst:5371 +#: ../../library/stdtypes.rst:5380 msgid "" "Code objects are used by the implementation to represent \"pseudo-compiled\" " "executable Python code such as a function body. They differ from function " @@ -7302,7 +7257,7 @@ msgstr "" "の :attr:`__code__` 属性として取り出せます。 :mod:`code` モジュールも参照して" "ください。" -#: ../../library/stdtypes.rst:5378 +#: ../../library/stdtypes.rst:5387 msgid "" "Accessing ``__code__`` raises an :ref:`auditing event ` ``object." "__getattr__`` with arguments ``obj`` and ``\"__code__\"``." @@ -7311,7 +7266,7 @@ msgstr "" "``\"__code__\"`` を渡して行いますが、 :ref:`監査イベント ` を送出し" "ます。" -#: ../../library/stdtypes.rst:5385 +#: ../../library/stdtypes.rst:5394 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." @@ -7319,11 +7274,15 @@ msgstr "" "コードオブジェクトは、組み込み関数 :func:`exec` や :func:`eval` に (ソース文" "字列の代わりに) 渡すことで、実行や評価できます。" -#: ../../library/stdtypes.rst:5394 +#: ../../library/stdtypes.rst:5397 +msgid "See :ref:`types` for more information." +msgstr "詳細は、 :ref:`types` を参照してください。" + +#: ../../library/stdtypes.rst:5403 msgid "Type Objects" msgstr "型オブジェクト" -#: ../../library/stdtypes.rst:5400 +#: ../../library/stdtypes.rst:5409 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 " @@ -7334,15 +7293,15 @@ msgstr "" "数 :func:`type` でアクセスされます。型オブジェクトには特有の操作はありませ" "ん。標準モジュール :mod:`types` には全ての組み込み型名が定義されています。" -#: ../../library/stdtypes.rst:5405 +#: ../../library/stdtypes.rst:5414 msgid "Types are written like this: ````." msgstr "型はこのように書き表されます: ```` 。" -#: ../../library/stdtypes.rst:5411 +#: ../../library/stdtypes.rst:5420 msgid "The Null Object" msgstr "ヌルオブジェクト" -#: ../../library/stdtypes.rst:5413 +#: ../../library/stdtypes.rst:5422 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 " @@ -7353,15 +7312,15 @@ msgstr "" "み名) と名づけられています。 ``type(None)()`` は同じシングルトンを作成しま" "す。" -#: ../../library/stdtypes.rst:5417 +#: ../../library/stdtypes.rst:5426 msgid "It is written as ``None``." msgstr "``None`` と書き表されます。" -#: ../../library/stdtypes.rst:5424 +#: ../../library/stdtypes.rst:5433 msgid "The Ellipsis Object" msgstr "Ellipsis オブジェクト" -#: ../../library/stdtypes.rst:5426 +#: ../../library/stdtypes.rst:5435 msgid "" "This object is commonly used by slicing (see :ref:`slicings`). It supports " "no special operations. There is exactly one ellipsis object, named :const:" @@ -7373,15 +7332,15 @@ msgstr "" "は一つだけで、その名前は :const:`Ellipsis` (組み込み名) です。" "``type(Ellipsis)()`` は単一の :const:`Ellipsis` を作成します。" -#: ../../library/stdtypes.rst:5431 +#: ../../library/stdtypes.rst:5440 msgid "It is written as ``Ellipsis`` or ``...``." msgstr "``Ellipsis`` または ``...`` と書き表されます。" -#: ../../library/stdtypes.rst:5437 +#: ../../library/stdtypes.rst:5446 msgid "The NotImplemented Object" msgstr "NotImplemented オブジェクト" -#: ../../library/stdtypes.rst:5439 +#: ../../library/stdtypes.rst:5448 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 " @@ -7393,15 +7352,15 @@ msgstr "" "い。 ``NotImplemented`` オブジェクトは一つだけです。 ``type(NotImplemented)" "()`` はこの単一のインスタンスを作成します。" -#: ../../library/stdtypes.rst:5444 +#: ../../library/stdtypes.rst:5453 msgid "It is written as ``NotImplemented``." msgstr "``NotImplemented`` と書き表されます。" -#: ../../library/stdtypes.rst:5450 +#: ../../library/stdtypes.rst:5459 msgid "Internal Objects" msgstr "内部オブジェクト" -#: ../../library/stdtypes.rst:5452 +#: ../../library/stdtypes.rst:5461 msgid "" "See :ref:`types` for this information. It describes stack frame objects, " "traceback objects, and slice objects." @@ -7409,11 +7368,11 @@ msgstr "" "この情報は :ref:`types` を参照してください。スタックフレームオブジェクト、ト" "レースバックオブジェクト、スライスオブジェクトについて記述されています。" -#: ../../library/stdtypes.rst:5459 +#: ../../library/stdtypes.rst:5468 msgid "Special Attributes" msgstr "特殊属性" -#: ../../library/stdtypes.rst:5461 +#: ../../library/stdtypes.rst:5470 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:" @@ -7422,7 +7381,7 @@ msgstr "" "実装は、いくつかのオブジェクト型に対して、適切な場合には特殊な読み出し専用の" "属性を追加します。そのうちいくつかは :func:`dir` 組込み関数で報告されません。" -#: ../../library/stdtypes.rst:5468 +#: ../../library/stdtypes.rst:5477 msgid "" "A dictionary or other mapping object used to store an object's (writable) " "attributes." @@ -7430,21 +7389,21 @@ msgstr "" "オブジェクトの (書き込み可能な) 属性を保存するために使われる辞書またはその他" "のマッピングオブジェクトです。" -#: ../../library/stdtypes.rst:5474 +#: ../../library/stdtypes.rst:5483 msgid "The class to which a class instance belongs." msgstr "クラスインスタンスが属しているクラスです。" -#: ../../library/stdtypes.rst:5479 +#: ../../library/stdtypes.rst:5488 msgid "The tuple of base classes of a class object." msgstr "クラスオブジェクトの基底クラスのタプルです。" -#: ../../library/stdtypes.rst:5484 +#: ../../library/stdtypes.rst:5493 msgid "" "The name of the class, function, method, descriptor, or generator instance." msgstr "" "クラス、関数、メソッド、デスクリプタ、ジェネレータインスタンスの名前です。" -#: ../../library/stdtypes.rst:5490 +#: ../../library/stdtypes.rst:5499 msgid "" "The :term:`qualified name` of the class, function, method, descriptor, or " "generator instance." @@ -7452,13 +7411,13 @@ msgstr "" "クラス、関数、メソッド、デスクリプタ、ジェネレータインスタンスの :term:`修飾" "名 ` です。" -#: ../../library/stdtypes.rst:5498 +#: ../../library/stdtypes.rst:5507 msgid "" "The :ref:`type parameters ` of generic classes, functions, and :" "ref:`type aliases `." msgstr "" -#: ../../library/stdtypes.rst:5506 +#: ../../library/stdtypes.rst:5515 msgid "" "This attribute is a tuple of classes that are considered when looking for " "base classes during method resolution." @@ -7466,7 +7425,7 @@ msgstr "" "この属性はメソッドの解決時に基底クラスを探索するときに考慮されるクラスのタプ" "ルです。" -#: ../../library/stdtypes.rst:5512 +#: ../../library/stdtypes.rst:5521 msgid "" "This method can be overridden by a metaclass to customize the method " "resolution order for its instances. It is called at class instantiation, " @@ -7476,7 +7435,7 @@ msgstr "" "スタマイズするために、上書きされるかも知れません。このメソッドはクラスのイン" "スタンス化時に呼ばれ、その結果は :attr:`~class.__mro__` に格納されます。" -#: ../../library/stdtypes.rst:5519 +#: ../../library/stdtypes.rst:5528 msgid "" "Each class keeps a list of weak references to its immediate subclasses. " "This method returns a list of all those references still alive. The list is " @@ -7486,11 +7445,11 @@ msgstr "" "ソッドはそれらの参照のうち、生存しているもののリストを返します。リストは定義" "順です。例::" -#: ../../library/stdtypes.rst:5530 +#: ../../library/stdtypes.rst:5539 msgid "Integer string conversion length limitation" msgstr "" -#: ../../library/stdtypes.rst:5532 +#: ../../library/stdtypes.rst:5541 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 " @@ -7498,7 +7457,7 @@ msgid "" "binary conversions are unlimited. The limit can be configured." msgstr "" -#: ../../library/stdtypes.rst:5537 +#: ../../library/stdtypes.rst:5546 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 " @@ -7508,25 +7467,25 @@ msgid "" "value such as ``int('1' * 500_000)`` can take over a second on a fast CPU." msgstr "" -#: ../../library/stdtypes.rst:5544 +#: ../../library/stdtypes.rst:5553 msgid "" "Limiting conversion size offers a practical way to avoid `CVE-2020-10735 " "`_." msgstr "" -#: ../../library/stdtypes.rst:5547 +#: ../../library/stdtypes.rst:5556 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. " "Underscores and the sign are not counted towards the limit." msgstr "" -#: ../../library/stdtypes.rst:5551 +#: ../../library/stdtypes.rst:5560 msgid "" "When an operation would exceed the limit, a :exc:`ValueError` is raised:" msgstr "" -#: ../../library/stdtypes.rst:5573 +#: ../../library/stdtypes.rst:5582 msgid "" "The default limit is 4300 digits as provided in :data:`sys.int_info." "default_max_str_digits `. The lowest limit that can be " @@ -7534,94 +7493,94 @@ msgid "" "str_digits_check_threshold `." msgstr "" -#: ../../library/stdtypes.rst:5578 +#: ../../library/stdtypes.rst:5587 msgid "Verification:" msgstr "" -#: ../../library/stdtypes.rst:5593 +#: ../../library/stdtypes.rst:5602 msgid "Affected APIs" msgstr "" -#: ../../library/stdtypes.rst:5595 +#: ../../library/stdtypes.rst:5604 msgid "" "The limitation only applies to potentially slow conversions between :class:" "`int` and :class:`str` or :class:`bytes`:" msgstr "" -#: ../../library/stdtypes.rst:5598 +#: ../../library/stdtypes.rst:5607 msgid "``int(string)`` with default base 10." msgstr "" -#: ../../library/stdtypes.rst:5599 +#: ../../library/stdtypes.rst:5608 msgid "``int(string, base)`` for all bases that are not a power of 2." msgstr "" -#: ../../library/stdtypes.rst:5600 +#: ../../library/stdtypes.rst:5609 msgid "``str(integer)``." msgstr "" -#: ../../library/stdtypes.rst:5601 +#: ../../library/stdtypes.rst:5610 msgid "``repr(integer)``." msgstr "" -#: ../../library/stdtypes.rst:5602 +#: ../../library/stdtypes.rst:5611 msgid "" "any other string conversion to base 10, for example ``f\"{integer}\"``, " "``\"{}\".format(integer)``, or ``b\"%d\" % integer``." msgstr "" -#: ../../library/stdtypes.rst:5605 +#: ../../library/stdtypes.rst:5614 msgid "The limitations do not apply to functions with a linear algorithm:" msgstr "" -#: ../../library/stdtypes.rst:5607 +#: ../../library/stdtypes.rst:5616 msgid "``int(string, base)`` with base 2, 4, 8, 16, or 32." msgstr "" -#: ../../library/stdtypes.rst:5608 +#: ../../library/stdtypes.rst:5617 msgid ":func:`int.from_bytes` and :func:`int.to_bytes`." msgstr "" -#: ../../library/stdtypes.rst:5609 +#: ../../library/stdtypes.rst:5618 msgid ":func:`hex`, :func:`oct`, :func:`bin`." msgstr "" -#: ../../library/stdtypes.rst:5610 +#: ../../library/stdtypes.rst:5619 msgid ":ref:`formatspec` for hex, octal, and binary numbers." msgstr "" -#: ../../library/stdtypes.rst:5611 +#: ../../library/stdtypes.rst:5620 msgid ":class:`str` to :class:`float`." msgstr "" -#: ../../library/stdtypes.rst:5612 +#: ../../library/stdtypes.rst:5621 msgid ":class:`str` to :class:`decimal.Decimal`." msgstr "" -#: ../../library/stdtypes.rst:5615 +#: ../../library/stdtypes.rst:5624 msgid "Configuring the limit" msgstr "" -#: ../../library/stdtypes.rst:5617 +#: ../../library/stdtypes.rst:5626 msgid "" "Before Python starts up you can use an environment variable or an " "interpreter command line flag to configure the limit:" msgstr "" -#: ../../library/stdtypes.rst:5620 +#: ../../library/stdtypes.rst:5629 msgid "" ":envvar:`PYTHONINTMAXSTRDIGITS`, e.g. ``PYTHONINTMAXSTRDIGITS=640 python3`` " "to set the limit to 640 or ``PYTHONINTMAXSTRDIGITS=0 python3`` to disable " "the limitation." msgstr "" -#: ../../library/stdtypes.rst:5623 +#: ../../library/stdtypes.rst:5632 msgid "" ":option:`-X int_max_str_digits <-X>`, e.g. ``python3 -X " "int_max_str_digits=640``" msgstr "" -#: ../../library/stdtypes.rst:5625 +#: ../../library/stdtypes.rst:5634 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 " @@ -7630,38 +7589,38 @@ msgid "" "int_info.default_max_str_digits` was used during initialization." msgstr "" -#: ../../library/stdtypes.rst:5631 +#: ../../library/stdtypes.rst:5640 msgid "" "From code, you can inspect the current limit and set a new one using these :" "mod:`sys` APIs:" msgstr "" -#: ../../library/stdtypes.rst:5634 +#: ../../library/stdtypes.rst:5643 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 " "their own limit." msgstr "" -#: ../../library/stdtypes.rst:5638 +#: ../../library/stdtypes.rst:5647 msgid "" "Information about the default and minimum can be found in :data:`sys." "int_info`:" msgstr "" -#: ../../library/stdtypes.rst:5640 +#: ../../library/stdtypes.rst:5649 msgid "" ":data:`sys.int_info.default_max_str_digits ` is the compiled-" "in default limit." msgstr "" -#: ../../library/stdtypes.rst:5642 +#: ../../library/stdtypes.rst:5651 msgid "" ":data:`sys.int_info.str_digits_check_threshold ` is the lowest " "accepted value for the limit (other than 0 which disables it)." msgstr "" -#: ../../library/stdtypes.rst:5649 +#: ../../library/stdtypes.rst:5658 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 " @@ -7673,7 +7632,7 @@ msgid "" "constants is to convert them to ``0x`` hexadecimal form as it has no limit." msgstr "" -#: ../../library/stdtypes.rst:5658 +#: ../../library/stdtypes.rst:5667 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 " @@ -7681,11 +7640,11 @@ msgid "" "to precompile ``.py`` sources to ``.pyc`` files." msgstr "" -#: ../../library/stdtypes.rst:5664 +#: ../../library/stdtypes.rst:5673 msgid "Recommended configuration" msgstr "" -#: ../../library/stdtypes.rst:5666 +#: ../../library/stdtypes.rst:5675 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 " @@ -7693,19 +7652,19 @@ msgid "" "as these APIs were added in security patch releases in versions before 3.12." msgstr "" -#: ../../library/stdtypes.rst:5671 +#: ../../library/stdtypes.rst:5680 msgid "Example::" msgstr "以下はプログラム例です::" -#: ../../library/stdtypes.rst:5683 +#: ../../library/stdtypes.rst:5692 msgid "If you need to disable it entirely, set it to ``0``." msgstr "" -#: ../../library/stdtypes.rst:5687 +#: ../../library/stdtypes.rst:5696 msgid "Footnotes" msgstr "脚注" -#: ../../library/stdtypes.rst:5688 +#: ../../library/stdtypes.rst:5697 msgid "" "Additional information on these special methods may be found in the Python " "Reference Manual (:ref:`customization`)." @@ -7713,7 +7672,7 @@ msgstr "" "これらの特殊なメソッドのさらなる情報については、 Python リファレンスマニュア" "ル (:ref:`customization`) を参照してください。" -#: ../../library/stdtypes.rst:5691 +#: ../../library/stdtypes.rst:5700 msgid "" "As a consequence, the list ``[1, 2]`` is considered equal to ``[1.0, 2.0]``, " "and similarly for tuples." @@ -7721,13 +7680,13 @@ msgstr "" "この結果として、リスト ``[1, 2]`` は ``[1.0, 2.0]`` と等しいと見なされます。" "タプルの場合も同様です。" -#: ../../library/stdtypes.rst:5694 +#: ../../library/stdtypes.rst:5703 msgid "They must have since the parser can't tell the type of the operands." msgstr "" "パーザが演算対象の型を識別できるようにするために、このような優先順位でなけれ" "ばならないのです。" -#: ../../library/stdtypes.rst:5696 +#: ../../library/stdtypes.rst:5705 msgid "" "Cased characters are those with general category property being one of " "\"Lu\" (Letter, uppercase), \"Ll\" (Letter, lowercase), or \"Lt\" (Letter, " @@ -7737,7 +7696,7 @@ msgstr "" "uppercase (大文字))、 \"Ll\" (Letter, lowercase (小文字))、 \"Lt\" (Letter、" "titlecase (先頭が大文字)) のいずれかであるものです。" -#: ../../library/stdtypes.rst:5699 +#: ../../library/stdtypes.rst:5708 msgid "" "To format only a tuple you should therefore provide a singleton tuple whose " "only element is the tuple to be formatted." @@ -7749,16 +7708,16 @@ msgstr "" msgid "built-in" msgstr "組み込み" -#: ../../library/stdtypes.rst:13 ../../library/stdtypes.rst:315 -#: ../../library/stdtypes.rst:392 ../../library/stdtypes.rst:949 -#: ../../library/stdtypes.rst:1116 ../../library/stdtypes.rst:1138 -#: ../../library/stdtypes.rst:1153 ../../library/stdtypes.rst:4420 -#: ../../library/stdtypes.rst:5396 +#: ../../library/stdtypes.rst:13 ../../library/stdtypes.rst:316 +#: ../../library/stdtypes.rst:393 ../../library/stdtypes.rst:950 +#: ../../library/stdtypes.rst:1117 ../../library/stdtypes.rst:1139 +#: ../../library/stdtypes.rst:1154 ../../library/stdtypes.rst:4422 +#: ../../library/stdtypes.rst:5405 msgid "types" msgstr "types" -#: ../../library/stdtypes.rst:34 ../../library/stdtypes.rst:1153 -#: ../../library/stdtypes.rst:4420 +#: ../../library/stdtypes.rst:34 ../../library/stdtypes.rst:1154 +#: ../../library/stdtypes.rst:4422 msgid "statement" msgstr "statement" @@ -7778,13 +7737,13 @@ msgstr "真理値" msgid "value" msgstr "value" -#: ../../library/stdtypes.rst:34 ../../library/stdtypes.rst:80 -#: ../../library/stdtypes.rst:207 ../../library/stdtypes.rst:816 +#: ../../library/stdtypes.rst:34 ../../library/stdtypes.rst:81 +#: ../../library/stdtypes.rst:208 ../../library/stdtypes.rst:817 msgid "Boolean" msgstr "Boolean" -#: ../../library/stdtypes.rst:34 ../../library/stdtypes.rst:80 -#: ../../library/stdtypes.rst:392 +#: ../../library/stdtypes.rst:34 ../../library/stdtypes.rst:81 +#: ../../library/stdtypes.rst:393 msgid "operations" msgstr "操作" @@ -7796,698 +7755,698 @@ msgstr "false" msgid "true" msgstr "true" -#: ../../library/stdtypes.rst:51 +#: ../../library/stdtypes.rst:52 msgid "None (Built-in object)" msgstr "None (組み込みオブジェクト)" -#: ../../library/stdtypes.rst:51 +#: ../../library/stdtypes.rst:52 msgid "False (Built-in object)" msgstr "False (組み込みオブジェクト)" -#: ../../library/stdtypes.rst:63 ../../library/stdtypes.rst:97 -#: ../../library/stdtypes.rst:122 ../../library/stdtypes.rst:194 -#: ../../library/stdtypes.rst:245 ../../library/stdtypes.rst:392 -#: ../../library/stdtypes.rst:949 +#: ../../library/stdtypes.rst:64 ../../library/stdtypes.rst:98 +#: ../../library/stdtypes.rst:123 ../../library/stdtypes.rst:195 +#: ../../library/stdtypes.rst:246 ../../library/stdtypes.rst:393 +#: ../../library/stdtypes.rst:950 msgid "operator" msgstr "operator" -#: ../../library/stdtypes.rst:63 ../../library/stdtypes.rst:97 +#: ../../library/stdtypes.rst:64 ../../library/stdtypes.rst:98 msgid "or" msgstr "or" -#: ../../library/stdtypes.rst:63 ../../library/stdtypes.rst:97 +#: ../../library/stdtypes.rst:64 ../../library/stdtypes.rst:98 msgid "and" msgstr "and" -#: ../../library/stdtypes.rst:63 ../../library/stdtypes.rst:816 +#: ../../library/stdtypes.rst:64 ../../library/stdtypes.rst:817 msgid "False" msgstr "False" -#: ../../library/stdtypes.rst:63 ../../library/stdtypes.rst:816 +#: ../../library/stdtypes.rst:64 ../../library/stdtypes.rst:817 msgid "True" msgstr "True" -#: ../../library/stdtypes.rst:97 +#: ../../library/stdtypes.rst:98 msgid "not" msgstr "not" -#: ../../library/stdtypes.rst:122 +#: ../../library/stdtypes.rst:123 msgid "chaining" msgstr "連鎖" -#: ../../library/stdtypes.rst:122 +#: ../../library/stdtypes.rst:123 msgid "comparisons" msgstr "比較" -#: ../../library/stdtypes.rst:122 +#: ../../library/stdtypes.rst:123 msgid "comparison" msgstr "比較" -#: ../../library/stdtypes.rst:122 +#: ../../library/stdtypes.rst:123 msgid "==" msgstr "==" -#: ../../library/stdtypes.rst:122 +#: ../../library/stdtypes.rst:123 msgid "< (less)" msgstr "" -#: ../../library/stdtypes.rst:122 +#: ../../library/stdtypes.rst:123 msgid "<=" msgstr "<=" -#: ../../library/stdtypes.rst:122 +#: ../../library/stdtypes.rst:123 msgid "> (greater)" msgstr "" -#: ../../library/stdtypes.rst:122 +#: ../../library/stdtypes.rst:123 msgid ">=" msgstr ">=" -#: ../../library/stdtypes.rst:122 +#: ../../library/stdtypes.rst:123 msgid "!=" msgstr "!=" -#: ../../library/stdtypes.rst:122 +#: ../../library/stdtypes.rst:123 msgid "is" msgstr "is" -#: ../../library/stdtypes.rst:122 +#: ../../library/stdtypes.rst:123 msgid "is not" msgstr "is not" -#: ../../library/stdtypes.rst:162 ../../library/stdtypes.rst:207 -#: ../../library/stdtypes.rst:933 ../../library/stdtypes.rst:1116 -#: ../../library/stdtypes.rst:1138 ../../library/stdtypes.rst:1258 -#: ../../library/stdtypes.rst:1337 ../../library/stdtypes.rst:1381 -#: ../../library/stdtypes.rst:1503 ../../library/stdtypes.rst:1539 -#: ../../library/stdtypes.rst:2513 ../../library/stdtypes.rst:2532 -#: ../../library/stdtypes.rst:2639 ../../library/stdtypes.rst:4219 -#: ../../library/stdtypes.rst:4420 ../../library/stdtypes.rst:4898 -#: ../../library/stdtypes.rst:5153 ../../library/stdtypes.rst:5321 -#: ../../library/stdtypes.rst:5360 +#: ../../library/stdtypes.rst:163 ../../library/stdtypes.rst:208 +#: ../../library/stdtypes.rst:934 ../../library/stdtypes.rst:1117 +#: ../../library/stdtypes.rst:1139 ../../library/stdtypes.rst:1259 +#: ../../library/stdtypes.rst:1338 ../../library/stdtypes.rst:1382 +#: ../../library/stdtypes.rst:1504 ../../library/stdtypes.rst:1540 +#: ../../library/stdtypes.rst:2514 ../../library/stdtypes.rst:2533 +#: ../../library/stdtypes.rst:2640 ../../library/stdtypes.rst:4220 +#: ../../library/stdtypes.rst:4422 ../../library/stdtypes.rst:4900 +#: ../../library/stdtypes.rst:5155 ../../library/stdtypes.rst:5325 +#: ../../library/stdtypes.rst:5369 msgid "object" msgstr "object" -#: ../../library/stdtypes.rst:162 ../../library/stdtypes.rst:207 -#: ../../library/stdtypes.rst:228 ../../library/stdtypes.rst:315 -#: ../../library/stdtypes.rst:334 +#: ../../library/stdtypes.rst:163 ../../library/stdtypes.rst:208 +#: ../../library/stdtypes.rst:229 ../../library/stdtypes.rst:316 +#: ../../library/stdtypes.rst:335 msgid "numeric" msgstr "数値" -#: ../../library/stdtypes.rst:162 +#: ../../library/stdtypes.rst:163 msgid "objects" msgstr "オブジェクト" -#: ../../library/stdtypes.rst:162 +#: ../../library/stdtypes.rst:163 msgid "comparing" msgstr "比較する" -#: ../../library/stdtypes.rst:172 +#: ../../library/stdtypes.rst:173 msgid "__eq__() (instance method)" msgstr "__eq__() (インスタンスメソッド)" -#: ../../library/stdtypes.rst:172 +#: ../../library/stdtypes.rst:173 msgid "__ne__() (instance method)" msgstr "__ne__() (インスタンスメソッド)" -#: ../../library/stdtypes.rst:172 +#: ../../library/stdtypes.rst:173 msgid "__lt__() (instance method)" msgstr "__lt__() (インスタンスメソッド)" -#: ../../library/stdtypes.rst:172 +#: ../../library/stdtypes.rst:173 msgid "__le__() (instance method)" msgstr "__le__() (インスタンスメソッド)" -#: ../../library/stdtypes.rst:172 +#: ../../library/stdtypes.rst:173 msgid "__gt__() (instance method)" msgstr "__gt__() (インスタンスメソッド)" -#: ../../library/stdtypes.rst:172 +#: ../../library/stdtypes.rst:173 msgid "__ge__() (instance method)" msgstr "__ge__() (インスタンスメソッド)" -#: ../../library/stdtypes.rst:194 ../../library/stdtypes.rst:949 +#: ../../library/stdtypes.rst:195 ../../library/stdtypes.rst:950 msgid "in" msgstr "in" -#: ../../library/stdtypes.rst:194 ../../library/stdtypes.rst:949 +#: ../../library/stdtypes.rst:195 ../../library/stdtypes.rst:950 msgid "not in" msgstr "not in" -#: ../../library/stdtypes.rst:207 ../../library/stdtypes.rst:228 -#: ../../library/stdtypes.rst:392 +#: ../../library/stdtypes.rst:208 ../../library/stdtypes.rst:229 +#: ../../library/stdtypes.rst:393 msgid "integer" msgstr "整数" -#: ../../library/stdtypes.rst:207 ../../library/stdtypes.rst:228 +#: ../../library/stdtypes.rst:208 ../../library/stdtypes.rst:229 msgid "floating point" msgstr "浮動小数点数" -#: ../../library/stdtypes.rst:207 ../../library/stdtypes.rst:228 +#: ../../library/stdtypes.rst:208 ../../library/stdtypes.rst:229 msgid "complex number" msgstr "complex number" -#: ../../library/stdtypes.rst:207 +#: ../../library/stdtypes.rst:208 msgid "C" msgstr "C" -#: ../../library/stdtypes.rst:207 +#: ../../library/stdtypes.rst:208 msgid "language" msgstr "言語" -#: ../../library/stdtypes.rst:228 +#: ../../library/stdtypes.rst:229 msgid "literals" msgstr "リテラル" -#: ../../library/stdtypes.rst:228 +#: ../../library/stdtypes.rst:229 msgid "hexadecimal" msgstr "16進数" -#: ../../library/stdtypes.rst:228 +#: ../../library/stdtypes.rst:229 msgid "octal" msgstr "8進数" -#: ../../library/stdtypes.rst:228 +#: ../../library/stdtypes.rst:229 msgid "binary" msgstr "2進数" -#: ../../library/stdtypes.rst:245 +#: ../../library/stdtypes.rst:246 msgid "arithmetic" msgstr "算術" -#: ../../library/stdtypes.rst:245 ../../library/stdtypes.rst:949 -#: ../../library/stdtypes.rst:1116 ../../library/stdtypes.rst:4420 -#: ../../library/stdtypes.rst:5367 ../../library/stdtypes.rst:5381 -#: ../../library/stdtypes.rst:5396 +#: ../../library/stdtypes.rst:246 ../../library/stdtypes.rst:950 +#: ../../library/stdtypes.rst:1117 ../../library/stdtypes.rst:4422 +#: ../../library/stdtypes.rst:5376 ../../library/stdtypes.rst:5390 +#: ../../library/stdtypes.rst:5405 msgid "built-in function" msgstr "組み込み関数" -#: ../../library/stdtypes.rst:245 +#: ../../library/stdtypes.rst:246 msgid "int" msgstr "int" -#: ../../library/stdtypes.rst:245 +#: ../../library/stdtypes.rst:246 msgid "float" msgstr "浮動小数点数" -#: ../../library/stdtypes.rst:245 +#: ../../library/stdtypes.rst:246 msgid "complex" msgstr "複素数" -#: ../../library/stdtypes.rst:245 ../../library/stdtypes.rst:2389 -#: ../../library/stdtypes.rst:3607 +#: ../../library/stdtypes.rst:246 ../../library/stdtypes.rst:2390 +#: ../../library/stdtypes.rst:3608 msgid "+ (plus)" msgstr "+ (プラス記号)" -#: ../../library/stdtypes.rst:245 +#: ../../library/stdtypes.rst:246 msgid "unary operator" msgstr "" -#: ../../library/stdtypes.rst:245 +#: ../../library/stdtypes.rst:246 msgid "binary operator" msgstr "" -#: ../../library/stdtypes.rst:245 ../../library/stdtypes.rst:2389 -#: ../../library/stdtypes.rst:3607 +#: ../../library/stdtypes.rst:246 ../../library/stdtypes.rst:2390 +#: ../../library/stdtypes.rst:3608 msgid "- (minus)" msgstr "- (負符号)" -#: ../../library/stdtypes.rst:245 ../../library/stdtypes.rst:2346 -#: ../../library/stdtypes.rst:3564 +#: ../../library/stdtypes.rst:246 ../../library/stdtypes.rst:2347 +#: ../../library/stdtypes.rst:3565 msgid "* (asterisk)" msgstr "* (アスタリスク)" -#: ../../library/stdtypes.rst:245 +#: ../../library/stdtypes.rst:246 msgid "/ (slash)" msgstr "" -#: ../../library/stdtypes.rst:245 +#: ../../library/stdtypes.rst:246 msgid "//" msgstr "//" -#: ../../library/stdtypes.rst:245 ../../library/stdtypes.rst:2316 -#: ../../library/stdtypes.rst:3532 +#: ../../library/stdtypes.rst:246 ../../library/stdtypes.rst:2317 +#: ../../library/stdtypes.rst:3533 msgid "% (percent)" msgstr "" -#: ../../library/stdtypes.rst:245 +#: ../../library/stdtypes.rst:246 msgid "**" msgstr "**" -#: ../../library/stdtypes.rst:315 ../../library/stdtypes.rst:392 -#: ../../library/stdtypes.rst:949 ../../library/stdtypes.rst:1153 -#: ../../library/stdtypes.rst:4420 +#: ../../library/stdtypes.rst:316 ../../library/stdtypes.rst:393 +#: ../../library/stdtypes.rst:950 ../../library/stdtypes.rst:1154 +#: ../../library/stdtypes.rst:4422 msgid "operations on" msgstr "演算" -#: ../../library/stdtypes.rst:315 +#: ../../library/stdtypes.rst:316 msgid "conjugate() (complex number method)" msgstr "conjugate() (複素数のメソッド)" -#: ../../library/stdtypes.rst:334 ../../library/stdtypes.rst:1605 -#: ../../library/stdtypes.rst:2513 ../../library/stdtypes.rst:5396 +#: ../../library/stdtypes.rst:335 ../../library/stdtypes.rst:1606 +#: ../../library/stdtypes.rst:2514 ../../library/stdtypes.rst:5405 msgid "module" msgstr "module" -#: ../../library/stdtypes.rst:334 +#: ../../library/stdtypes.rst:335 msgid "math" msgstr "math" -#: ../../library/stdtypes.rst:334 +#: ../../library/stdtypes.rst:335 msgid "floor() (in module math)" msgstr "floor() (math モジュール)" -#: ../../library/stdtypes.rst:334 +#: ../../library/stdtypes.rst:335 msgid "ceil() (in module math)" msgstr "ceil() (math モジュール)" -#: ../../library/stdtypes.rst:334 +#: ../../library/stdtypes.rst:335 msgid "trunc() (in module math)" msgstr "trunc() (math モジュール)" -#: ../../library/stdtypes.rst:334 +#: ../../library/stdtypes.rst:335 msgid "conversions" msgstr "変換" -#: ../../library/stdtypes.rst:392 +#: ../../library/stdtypes.rst:393 msgid "bitwise" msgstr "ビット単位" -#: ../../library/stdtypes.rst:392 +#: ../../library/stdtypes.rst:393 msgid "shifting" msgstr "シフト" -#: ../../library/stdtypes.rst:392 +#: ../../library/stdtypes.rst:393 msgid "masking" msgstr "ビットマスク" -#: ../../library/stdtypes.rst:392 +#: ../../library/stdtypes.rst:393 msgid "| (vertical bar)" msgstr "" -#: ../../library/stdtypes.rst:392 +#: ../../library/stdtypes.rst:393 msgid "^ (caret)" msgstr "" -#: ../../library/stdtypes.rst:392 +#: ../../library/stdtypes.rst:393 msgid "& (ampersand)" msgstr "" -#: ../../library/stdtypes.rst:392 +#: ../../library/stdtypes.rst:393 msgid "<<" msgstr "<<" -#: ../../library/stdtypes.rst:392 +#: ../../library/stdtypes.rst:393 msgid ">>" msgstr ">>" -#: ../../library/stdtypes.rst:392 +#: ../../library/stdtypes.rst:393 msgid "~ (tilde)" msgstr "" -#: ../../library/stdtypes.rst:816 +#: ../../library/stdtypes.rst:817 msgid "values" msgstr "``values``" -#: ../../library/stdtypes.rst:846 +#: ../../library/stdtypes.rst:847 msgid "iterator protocol" msgstr "イテレータプロトコル" -#: ../../library/stdtypes.rst:846 ../../library/stdtypes.rst:4813 +#: ../../library/stdtypes.rst:847 ../../library/stdtypes.rst:4815 msgid "protocol" msgstr "プロトコル" -#: ../../library/stdtypes.rst:846 +#: ../../library/stdtypes.rst:847 msgid "iterator" msgstr "iterator" -#: ../../library/stdtypes.rst:846 ../../library/stdtypes.rst:933 -#: ../../library/stdtypes.rst:949 ../../library/stdtypes.rst:1116 -#: ../../library/stdtypes.rst:1138 ../../library/stdtypes.rst:1153 +#: ../../library/stdtypes.rst:847 ../../library/stdtypes.rst:934 +#: ../../library/stdtypes.rst:950 ../../library/stdtypes.rst:1117 +#: ../../library/stdtypes.rst:1139 ../../library/stdtypes.rst:1154 msgid "sequence" msgstr "sequence" -#: ../../library/stdtypes.rst:846 +#: ../../library/stdtypes.rst:847 msgid "iteration" msgstr "反復処理" -#: ../../library/stdtypes.rst:846 +#: ../../library/stdtypes.rst:847 msgid "container" msgstr "コンテナ" -#: ../../library/stdtypes.rst:846 +#: ../../library/stdtypes.rst:847 msgid "iteration over" msgstr "での反復" -#: ../../library/stdtypes.rst:949 ../../library/stdtypes.rst:4420 +#: ../../library/stdtypes.rst:950 ../../library/stdtypes.rst:4422 msgid "len" msgstr "len" -#: ../../library/stdtypes.rst:949 +#: ../../library/stdtypes.rst:950 msgid "min" msgstr "min" -#: ../../library/stdtypes.rst:949 +#: ../../library/stdtypes.rst:950 msgid "max" msgstr "max" -#: ../../library/stdtypes.rst:949 +#: ../../library/stdtypes.rst:950 msgid "concatenation" msgstr "結合" -#: ../../library/stdtypes.rst:949 +#: ../../library/stdtypes.rst:950 msgid "operation" msgstr "演算" -#: ../../library/stdtypes.rst:949 +#: ../../library/stdtypes.rst:950 msgid "repetition" msgstr "繰り返し" -#: ../../library/stdtypes.rst:949 ../../library/stdtypes.rst:1153 +#: ../../library/stdtypes.rst:950 ../../library/stdtypes.rst:1154 msgid "subscript" msgstr "添字" -#: ../../library/stdtypes.rst:949 ../../library/stdtypes.rst:1153 +#: ../../library/stdtypes.rst:950 ../../library/stdtypes.rst:1154 msgid "slice" msgstr "slice" -#: ../../library/stdtypes.rst:949 +#: ../../library/stdtypes.rst:950 msgid "count() (sequence method)" msgstr "count() (シーケンスのメソッド)" -#: ../../library/stdtypes.rst:949 +#: ../../library/stdtypes.rst:950 msgid "index() (sequence method)" msgstr "index() (シーケンスのメソッド)" -#: ../../library/stdtypes.rst:1005 +#: ../../library/stdtypes.rst:1006 msgid "loop" msgstr "loop" -#: ../../library/stdtypes.rst:1005 +#: ../../library/stdtypes.rst:1006 msgid "over mutable sequence" msgstr "over mutable sequence" -#: ../../library/stdtypes.rst:1005 +#: ../../library/stdtypes.rst:1006 msgid "mutable sequence" msgstr "変更可能なシーケンス" -#: ../../library/stdtypes.rst:1005 +#: ../../library/stdtypes.rst:1006 msgid "loop over" msgstr "loop over" -#: ../../library/stdtypes.rst:1116 +#: ../../library/stdtypes.rst:1117 msgid "immutable" msgstr "immutable" -#: ../../library/stdtypes.rst:1116 ../../library/stdtypes.rst:1337 +#: ../../library/stdtypes.rst:1117 ../../library/stdtypes.rst:1338 msgid "tuple" msgstr "tuple" -#: ../../library/stdtypes.rst:1116 +#: ../../library/stdtypes.rst:1117 msgid "hash" msgstr "hash" -#: ../../library/stdtypes.rst:1138 +#: ../../library/stdtypes.rst:1139 msgid "mutable" msgstr "mutable" -#: ../../library/stdtypes.rst:1138 ../../library/stdtypes.rst:1153 -#: ../../library/stdtypes.rst:1258 +#: ../../library/stdtypes.rst:1139 ../../library/stdtypes.rst:1154 +#: ../../library/stdtypes.rst:1259 msgid "list" msgstr "list" -#: ../../library/stdtypes.rst:1138 ../../library/stdtypes.rst:2513 -#: ../../library/stdtypes.rst:2639 ../../library/stdtypes.rst:2711 -#: ../../library/stdtypes.rst:3532 +#: ../../library/stdtypes.rst:1139 ../../library/stdtypes.rst:2514 +#: ../../library/stdtypes.rst:2640 ../../library/stdtypes.rst:2712 +#: ../../library/stdtypes.rst:3533 msgid "bytearray" msgstr "bytearray" -#: ../../library/stdtypes.rst:1153 ../../library/stdtypes.rst:4420 -#: ../../library/stdtypes.rst:5153 ../../library/stdtypes.rst:5396 +#: ../../library/stdtypes.rst:1154 ../../library/stdtypes.rst:4422 +#: ../../library/stdtypes.rst:5155 ../../library/stdtypes.rst:5405 msgid "type" msgstr "type" -#: ../../library/stdtypes.rst:1153 +#: ../../library/stdtypes.rst:1154 msgid "assignment" msgstr "代入" -#: ../../library/stdtypes.rst:1153 ../../library/stdtypes.rst:4420 +#: ../../library/stdtypes.rst:1154 ../../library/stdtypes.rst:4422 msgid "del" msgstr "del" -#: ../../library/stdtypes.rst:1153 +#: ../../library/stdtypes.rst:1154 msgid "append() (sequence method)" msgstr "append() (シーケンスのメソッド)" -#: ../../library/stdtypes.rst:1153 +#: ../../library/stdtypes.rst:1154 msgid "clear() (sequence method)" msgstr "clear() (シーケンスのメソッド)" -#: ../../library/stdtypes.rst:1153 +#: ../../library/stdtypes.rst:1154 msgid "copy() (sequence method)" msgstr "copy() (シーケンスのメソッド)" -#: ../../library/stdtypes.rst:1153 +#: ../../library/stdtypes.rst:1154 msgid "extend() (sequence method)" msgstr "extend() (シーケンスのメソッド)" -#: ../../library/stdtypes.rst:1153 +#: ../../library/stdtypes.rst:1154 msgid "insert() (sequence method)" msgstr "insert() (シーケンスのメソッド)" -#: ../../library/stdtypes.rst:1153 +#: ../../library/stdtypes.rst:1154 msgid "pop() (sequence method)" msgstr "pop() (シーケンスのメソッド)" -#: ../../library/stdtypes.rst:1153 +#: ../../library/stdtypes.rst:1154 msgid "remove() (sequence method)" msgstr "remove() (シーケンスのメソッド)" -#: ../../library/stdtypes.rst:1153 +#: ../../library/stdtypes.rst:1154 msgid "reverse() (sequence method)" msgstr "reverse() (シーケンスのメソッド)" -#: ../../library/stdtypes.rst:1381 +#: ../../library/stdtypes.rst:1382 msgid "range" msgstr "range" -#: ../../library/stdtypes.rst:1503 ../../library/stdtypes.rst:1552 -#: ../../library/stdtypes.rst:1597 ../../library/stdtypes.rst:2316 +#: ../../library/stdtypes.rst:1504 ../../library/stdtypes.rst:1553 +#: ../../library/stdtypes.rst:1598 ../../library/stdtypes.rst:2317 msgid "string" msgstr "string" -#: ../../library/stdtypes.rst:1503 +#: ../../library/stdtypes.rst:1504 msgid "text sequence type" msgstr "テキストシーケンス型" -#: ../../library/stdtypes.rst:1503 ../../library/stdtypes.rst:1552 -#: ../../library/stdtypes.rst:1570 +#: ../../library/stdtypes.rst:1504 ../../library/stdtypes.rst:1553 +#: ../../library/stdtypes.rst:1571 msgid "str (built-in class)" msgstr "str (組み込みクラス)" -#: ../../library/stdtypes.rst:1503 +#: ../../library/stdtypes.rst:1504 msgid "(see also string)" msgstr "(string も参照のこと)" -#: ../../library/stdtypes.rst:1539 +#: ../../library/stdtypes.rst:1540 msgid "io.StringIO" msgstr "io.StringIO" -#: ../../library/stdtypes.rst:1570 ../../library/stdtypes.rst:2505 +#: ../../library/stdtypes.rst:1571 ../../library/stdtypes.rst:2506 msgid "buffer protocol" msgstr "buffer protocol" -#: ../../library/stdtypes.rst:1570 ../../library/stdtypes.rst:2513 -#: ../../library/stdtypes.rst:2532 ../../library/stdtypes.rst:2711 -#: ../../library/stdtypes.rst:3532 +#: ../../library/stdtypes.rst:1571 ../../library/stdtypes.rst:2514 +#: ../../library/stdtypes.rst:2533 ../../library/stdtypes.rst:2712 +#: ../../library/stdtypes.rst:3533 msgid "bytes" msgstr "bytes" -#: ../../library/stdtypes.rst:1597 ../../library/stdtypes.rst:2711 +#: ../../library/stdtypes.rst:1598 ../../library/stdtypes.rst:2712 msgid "methods" msgstr "メソッド" -#: ../../library/stdtypes.rst:1605 +#: ../../library/stdtypes.rst:1606 msgid "re" msgstr "re" -#: ../../library/stdtypes.rst:2124 ../../library/stdtypes.rst:3386 +#: ../../library/stdtypes.rst:2125 ../../library/stdtypes.rst:3387 msgid "universal newlines" msgstr "universal newlines" -#: ../../library/stdtypes.rst:2124 +#: ../../library/stdtypes.rst:2125 msgid "str.splitlines method" msgstr "str.splitlines メソッド" -#: ../../library/stdtypes.rst:2316 +#: ../../library/stdtypes.rst:2317 msgid "formatting, string (%)" msgstr "書式化, 文字列 (%)" -#: ../../library/stdtypes.rst:2316 +#: ../../library/stdtypes.rst:2317 msgid "interpolation, string (%)" msgstr "補間, 文字列 (%)" -#: ../../library/stdtypes.rst:2316 +#: ../../library/stdtypes.rst:2317 msgid "formatting, printf" msgstr "" -#: ../../library/stdtypes.rst:2316 +#: ../../library/stdtypes.rst:2317 msgid "interpolation, printf" msgstr "" -#: ../../library/stdtypes.rst:2316 ../../library/stdtypes.rst:3532 +#: ../../library/stdtypes.rst:2317 ../../library/stdtypes.rst:3533 msgid "printf-style formatting" msgstr "printf 形式の書式化" -#: ../../library/stdtypes.rst:2316 ../../library/stdtypes.rst:3532 +#: ../../library/stdtypes.rst:2317 ../../library/stdtypes.rst:3533 msgid "sprintf-style formatting" msgstr "sprintf 形式の書式化" -#: ../../library/stdtypes.rst:2346 ../../library/stdtypes.rst:3564 +#: ../../library/stdtypes.rst:2347 ../../library/stdtypes.rst:3565 msgid "() (parentheses)" msgstr "" -#: ../../library/stdtypes.rst:2346 ../../library/stdtypes.rst:2389 -#: ../../library/stdtypes.rst:3564 ../../library/stdtypes.rst:3607 +#: ../../library/stdtypes.rst:2347 ../../library/stdtypes.rst:2390 +#: ../../library/stdtypes.rst:3565 ../../library/stdtypes.rst:3608 msgid "in printf-style formatting" msgstr "" -#: ../../library/stdtypes.rst:2346 ../../library/stdtypes.rst:3564 +#: ../../library/stdtypes.rst:2347 ../../library/stdtypes.rst:3565 msgid ". (dot)" msgstr ". (ドット)" -#: ../../library/stdtypes.rst:2389 ../../library/stdtypes.rst:3607 +#: ../../library/stdtypes.rst:2390 ../../library/stdtypes.rst:3608 msgid "# (hash)" msgstr "# (hash)" -#: ../../library/stdtypes.rst:2389 ../../library/stdtypes.rst:3607 +#: ../../library/stdtypes.rst:2390 ../../library/stdtypes.rst:3608 msgid "space" msgstr "空白" -#: ../../library/stdtypes.rst:2505 +#: ../../library/stdtypes.rst:2506 msgid "binary sequence types" msgstr "バイナリシーケンス型" -#: ../../library/stdtypes.rst:2513 +#: ../../library/stdtypes.rst:2514 msgid "memoryview" msgstr "memoryview" -#: ../../library/stdtypes.rst:2513 +#: ../../library/stdtypes.rst:2514 msgid "array" msgstr "array" -#: ../../library/stdtypes.rst:3386 +#: ../../library/stdtypes.rst:3387 msgid "bytes.splitlines method" msgstr "" -#: ../../library/stdtypes.rst:3386 +#: ../../library/stdtypes.rst:3387 msgid "bytearray.splitlines method" msgstr "" -#: ../../library/stdtypes.rst:3532 +#: ../../library/stdtypes.rst:3533 msgid "formatting" msgstr "書式化" -#: ../../library/stdtypes.rst:3532 +#: ../../library/stdtypes.rst:3533 msgid "bytes (%)" msgstr "" -#: ../../library/stdtypes.rst:3532 +#: ../../library/stdtypes.rst:3533 msgid "bytearray (%)" msgstr "" -#: ../../library/stdtypes.rst:3532 +#: ../../library/stdtypes.rst:3533 msgid "interpolation" msgstr "補間" -#: ../../library/stdtypes.rst:4219 +#: ../../library/stdtypes.rst:4220 msgid "set" msgstr "集合" -#: ../../library/stdtypes.rst:4420 +#: ../../library/stdtypes.rst:4422 msgid "mapping" msgstr "mapping" -#: ../../library/stdtypes.rst:4420 +#: ../../library/stdtypes.rst:4422 msgid "dictionary" msgstr "dictionary" -#: ../../library/stdtypes.rst:4503 +#: ../../library/stdtypes.rst:4505 msgid "__missing__()" msgstr "" -#: ../../library/stdtypes.rst:4813 +#: ../../library/stdtypes.rst:4815 msgid "context manager" msgstr "context manager" -#: ../../library/stdtypes.rst:4813 +#: ../../library/stdtypes.rst:4815 msgid "context management protocol" msgstr "コンテキスト管理プロトコル" -#: ../../library/stdtypes.rst:4813 +#: ../../library/stdtypes.rst:4815 msgid "context management" msgstr "コンテキスト管理" -#: ../../library/stdtypes.rst:4886 +#: ../../library/stdtypes.rst:4888 msgid "annotation" msgstr "注釈" -#: ../../library/stdtypes.rst:4886 +#: ../../library/stdtypes.rst:4888 msgid "type annotation; type hint" msgstr "" -#: ../../library/stdtypes.rst:4898 +#: ../../library/stdtypes.rst:4900 msgid "GenericAlias" msgstr "" -#: ../../library/stdtypes.rst:4898 +#: ../../library/stdtypes.rst:4900 msgid "Generic" msgstr "" -#: ../../library/stdtypes.rst:4898 +#: ../../library/stdtypes.rst:4900 msgid "Alias" msgstr "" -#: ../../library/stdtypes.rst:5153 +#: ../../library/stdtypes.rst:5155 msgid "Union" msgstr "" -#: ../../library/stdtypes.rst:5153 +#: ../../library/stdtypes.rst:5155 msgid "union" msgstr "" -#: ../../library/stdtypes.rst:5321 +#: ../../library/stdtypes.rst:5325 msgid "method" msgstr "メソッド" -#: ../../library/stdtypes.rst:5360 +#: ../../library/stdtypes.rst:5369 msgid "code" msgstr "コード" -#: ../../library/stdtypes.rst:5360 +#: ../../library/stdtypes.rst:5369 msgid "code object" msgstr "コードオブジェクト" -#: ../../library/stdtypes.rst:5367 +#: ../../library/stdtypes.rst:5376 msgid "compile" msgstr "コンパイル" -#: ../../library/stdtypes.rst:5367 +#: ../../library/stdtypes.rst:5376 msgid "__code__ (function object attribute)" msgstr "__code__ (関数オブジェクトの属性)" -#: ../../library/stdtypes.rst:5381 +#: ../../library/stdtypes.rst:5390 msgid "exec" msgstr "exec" -#: ../../library/stdtypes.rst:5381 +#: ../../library/stdtypes.rst:5390 msgid "eval" msgstr "eval" -#: ../../library/stdtypes.rst:5420 +#: ../../library/stdtypes.rst:5429 msgid "..." msgstr "..." -#: ../../library/stdtypes.rst:5420 +#: ../../library/stdtypes.rst:5429 msgid "ellipsis literal" msgstr "" diff --git a/library/sys.po b/library/sys.po index 754cea539..1471e1074 100644 --- a/library/sys.po +++ b/library/sys.po @@ -17,7 +17,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3.12\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2023-11-17 14:14+0000\n" +"POT-Creation-Date: 2023-12-08 14:14+0000\n" "PO-Revision-Date: 2021-06-28 01:14+0000\n" "Last-Translator: Takanori Suzuki , 2023\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" @@ -462,7 +462,7 @@ msgid "Integer specifying the handle of the Python DLL." msgstr "Python DLLのハンドルを示す整数です。" #: ../../library/sys.rst:286 ../../library/sys.rst:976 -#: ../../library/sys.rst:1730 ../../library/sys.rst:1966 +#: ../../library/sys.rst:1731 ../../library/sys.rst:1967 msgid ":ref:`Availability `: Windows." msgstr ":ref:`利用可能な環境 `: Windows 。" @@ -1482,7 +1482,7 @@ msgstr "" msgid "See :pep:`525` for more details." msgstr "より詳しくは :pep:`525` を参照してください。" -#: ../../library/sys.rst:999 ../../library/sys.rst:1662 +#: ../../library/sys.rst:999 ../../library/sys.rst:1663 msgid "" "This function has been added on a provisional basis (see :pep:`411` for " "details.)" @@ -1494,7 +1494,7 @@ msgid "" "`set_coroutine_origin_tracking_depth`." msgstr "" -#: ../../library/sys.rst:1011 ../../library/sys.rst:1683 +#: ../../library/sys.rst:1011 ../../library/sys.rst:1684 msgid "" "This function has been added on a provisional basis (see :pep:`411` for " "details.) Use it only for debugging purposes." @@ -2205,7 +2205,7 @@ msgstr "" "関数が呼び出された(もしくは、何かのコードブロックに入った)。プロファイル関数" "が呼ばれる。 *arg* は ``None`` が渡される。" -#: ../../library/sys.rst:1497 ../../library/sys.rst:1595 +#: ../../library/sys.rst:1497 ../../library/sys.rst:1596 msgid "``'return'``" msgstr "``'return'``" @@ -2364,7 +2364,7 @@ msgstr "" "trace 関数が呼ばれる。 *arg* は ``None`` が渡される。戻り値はローカルの " "trace 関数。" -#: ../../library/sys.rst:1589 +#: ../../library/sys.rst:1590 msgid "``'line'``" msgstr "``'line'``" @@ -2374,11 +2374,11 @@ msgid "" "condition of a loop. The local trace function is called; *arg* is ``None``; " "the return value specifies the new local trace function. See :file:`Objects/" "lnotab_notes.txt` for a detailed explanation of how this works. Per-line " -"events may be disabled for a frame by setting :attr:`!f_trace_lines` to :" -"const:`False` on that :ref:`frame `." +"events may be disabled for a frame by setting :attr:`~frame.f_trace_lines` " +"to :const:`False` on that :ref:`frame `." msgstr "" -#: ../../library/sys.rst:1592 +#: ../../library/sys.rst:1593 msgid "" "A function (or other code block) is about to return. The local trace " "function is called; *arg* is the value that will be returned, or ``None`` if " @@ -2389,11 +2389,11 @@ msgstr "" "呼ばれる。 *arg* は返されようとしている値、または、このイベントが例外が送出さ" "れることによって起こったなら ``None`` 。 trace 関数の戻り値は無視される。" -#: ../../library/sys.rst:1600 +#: ../../library/sys.rst:1601 msgid "``'exception'``" msgstr "``'exception'``" -#: ../../library/sys.rst:1598 +#: ../../library/sys.rst:1599 msgid "" "An exception has occurred. The local trace function is called; *arg* is a " "tuple ``(exception, value, traceback)``; the return value specifies the new " @@ -2402,20 +2402,21 @@ msgstr "" "例外が発生した。ローカルの trace 関数が呼ばれる。 *arg* は ``(exception, " "value, traceback)`` のタプル。戻り値は新しいローカルの trace 関数。" -#: ../../library/sys.rst:1608 +#: ../../library/sys.rst:1609 msgid "``'opcode'``" msgstr "``'opcode'``" -#: ../../library/sys.rst:1603 +#: ../../library/sys.rst:1604 msgid "" "The interpreter is about to execute a new opcode (see :mod:`dis` for opcode " "details). The local trace function is called; *arg* is ``None``; the return " "value specifies the new local trace function. Per-opcode events are not " -"emitted by default: they must be explicitly requested by setting :attr:`!" -"f_trace_opcodes` to :const:`True` on the :ref:`frame `." +"emitted by default: they must be explicitly requested by setting :attr:" +"`~frame.f_trace_opcodes` to :const:`True` on the :ref:`frame `." msgstr "" -#: ../../library/sys.rst:1610 +#: ../../library/sys.rst:1611 msgid "" "Note that as an exception is propagated down the chain of callers, an " "``'exception'`` event is generated at each level." @@ -2423,7 +2424,7 @@ msgstr "" "例外が呼び出しチェインを辿って伝播していくことに注意してください。 " "``'exception'`` イベントは各レベルで発生します。" -#: ../../library/sys.rst:1613 +#: ../../library/sys.rst:1614 msgid "" "For more fine-grained usage, it's possible to set a trace function by " "assigning ``frame.f_trace = tracefunc`` explicitly, rather than relying on " @@ -2437,19 +2438,19 @@ msgid "" "on each frame)." msgstr "" -#: ../../library/sys.rst:1624 +#: ../../library/sys.rst:1625 msgid "For more information on code and frame objects, refer to :ref:`types`." msgstr "" "code と frame オブジェクトについては、 :ref:`types` を参照してください。" -#: ../../library/sys.rst:1626 +#: ../../library/sys.rst:1627 msgid "" "Raises an :ref:`auditing event ` ``sys.settrace`` with no " "arguments." msgstr "" "引数無しで :ref:`監査イベント ` ``sys.settrace`` を送出します。 " -#: ../../library/sys.rst:1630 +#: ../../library/sys.rst:1631 msgid "" "The :func:`settrace` function is intended only for implementing debuggers, " "profilers, coverage tools and the like. Its behavior is part of the " @@ -2460,13 +2461,13 @@ msgstr "" "だけのものです。この関数の挙動は言語定義よりも実装プラットフォームの分野の問" "題で、全ての Python 実装で利用できるとは限りません。" -#: ../../library/sys.rst:1637 +#: ../../library/sys.rst:1638 msgid "" -"``'opcode'`` event type added; :attr:`!f_trace_lines` and :attr:`!" -"f_trace_opcodes` attributes added to frames" +"``'opcode'`` event type added; :attr:`~frame.f_trace_lines` and :attr:" +"`~frame.f_trace_opcodes` attributes added to frames" msgstr "" -#: ../../library/sys.rst:1642 +#: ../../library/sys.rst:1643 msgid "" "Accepts two optional keyword arguments which are callables that accept an :" "term:`asynchronous generator iterator` as an argument. The *firstiter* " @@ -2475,7 +2476,7 @@ msgid "" "about to be garbage collected." msgstr "" -#: ../../library/sys.rst:1648 +#: ../../library/sys.rst:1649 msgid "" "Raises an :ref:`auditing event ` ``sys." "set_asyncgen_hooks_firstiter`` with no arguments." @@ -2483,7 +2484,7 @@ msgstr "" "引数無しで :ref:`監査イベント ` ``sys." "set_asyncgen_hooks_firstiter`` を送出します。 " -#: ../../library/sys.rst:1650 +#: ../../library/sys.rst:1651 msgid "" "Raises an :ref:`auditing event ` ``sys." "set_asyncgen_hooks_finalizer`` with no arguments." @@ -2491,20 +2492,20 @@ msgstr "" "引数無しで :ref:`監査イベント ` ``sys." "set_asyncgen_hooks_finalizer`` を送出します。 " -#: ../../library/sys.rst:1652 +#: ../../library/sys.rst:1653 msgid "" "Two auditing events are raised because the underlying API consists of two " "calls, each of which must raise its own event." msgstr "" -#: ../../library/sys.rst:1655 +#: ../../library/sys.rst:1656 msgid "" "See :pep:`525` for more details, and for a reference example of a " "*finalizer* method see the implementation of ``asyncio.Loop." "shutdown_asyncgens`` in :source:`Lib/asyncio/base_events.py`" msgstr "" -#: ../../library/sys.rst:1667 +#: ../../library/sys.rst:1668 msgid "" "Allows enabling or disabling coroutine origin tracking. When enabled, the " "``cr_origin`` attribute on coroutine objects will contain a tuple of " @@ -2513,71 +2514,71 @@ msgid "" "disabled, ``cr_origin`` will be None." msgstr "" -#: ../../library/sys.rst:1674 +#: ../../library/sys.rst:1675 msgid "" "To enable, pass a *depth* value greater than zero; this sets the number of " "frames whose information will be captured. To disable, pass set *depth* to " "zero." msgstr "" -#: ../../library/sys.rst:1678 +#: ../../library/sys.rst:1679 msgid "This setting is thread-specific." msgstr "" -#: ../../library/sys.rst:1688 +#: ../../library/sys.rst:1689 msgid "" "Activate the stack profiler trampoline *backend*. The only supported backend " "is ``\"perf\"``." msgstr "" -#: ../../library/sys.rst:1691 ../../library/sys.rst:1706 -#: ../../library/sys.rst:1714 +#: ../../library/sys.rst:1692 ../../library/sys.rst:1707 +#: ../../library/sys.rst:1715 msgid ":ref:`Availability `: Linux." msgstr ":ref:`利用可能な環境 `: Linux。" -#: ../../library/sys.rst:1697 +#: ../../library/sys.rst:1698 msgid ":ref:`perf_profiling`" msgstr "" -#: ../../library/sys.rst:1698 +#: ../../library/sys.rst:1699 msgid "https://perf.wiki.kernel.org" msgstr "" -#: ../../library/sys.rst:1702 +#: ../../library/sys.rst:1703 msgid "Deactivate the current stack profiler trampoline backend." msgstr "" -#: ../../library/sys.rst:1704 +#: ../../library/sys.rst:1705 msgid "If no stack profiler is activated, this function has no effect." msgstr "" -#: ../../library/sys.rst:1712 +#: ../../library/sys.rst:1713 msgid "Return ``True`` if a stack profiler trampoline is active." msgstr "" -#: ../../library/sys.rst:1720 +#: ../../library/sys.rst:1721 msgid "" "Changes the :term:`filesystem encoding and error handler` to 'mbcs' and " "'replace' respectively, for consistency with versions of Python prior to 3.6." msgstr "" -#: ../../library/sys.rst:1724 +#: ../../library/sys.rst:1725 msgid "" "This is equivalent to defining the :envvar:`PYTHONLEGACYWINDOWSFSENCODING` " "environment variable before launching Python." msgstr "" -#: ../../library/sys.rst:1727 +#: ../../library/sys.rst:1728 msgid "" "See also :func:`sys.getfilesystemencoding` and :func:`sys." "getfilesystemencodeerrors`." msgstr "" -#: ../../library/sys.rst:1732 +#: ../../library/sys.rst:1733 msgid "See :pep:`529` for more details." msgstr "より詳しくは :pep:`529` を参照してください。" -#: ../../library/sys.rst:1739 +#: ../../library/sys.rst:1740 msgid "" ":term:`File objects ` used by the interpreter for standard " "input, output and errors:" @@ -2585,7 +2586,7 @@ msgstr "" "インタプリタが使用する、それぞれ標準入力、標準出力、および標準エラー出力の :" "term:`ファイルオブジェクト ` です:" -#: ../../library/sys.rst:1742 +#: ../../library/sys.rst:1743 msgid "" "``stdin`` is used for all interactive input (including calls to :func:" "`input`);" @@ -2593,7 +2594,7 @@ msgstr "" "``stdin`` は (:func:`input` の呼び出しも含む) すべての対話型入力に使われま" "す。" -#: ../../library/sys.rst:1744 +#: ../../library/sys.rst:1745 msgid "" "``stdout`` is used for the output of :func:`print` and :term:`expression` " "statements and for the prompts of :func:`input`;" @@ -2601,13 +2602,13 @@ msgstr "" "``stdout`` は :func:`print` および :term:`expression` 文の出力と、:func:" "`input` のプロンプトに使用されます。" -#: ../../library/sys.rst:1746 +#: ../../library/sys.rst:1747 msgid "The interpreter's own prompts and its error messages go to ``stderr``." msgstr "" "インタプリタ自身のプロンプトおよびエラーメッセージは ``stderr`` に出力されま" "す。" -#: ../../library/sys.rst:1748 +#: ../../library/sys.rst:1749 msgid "" "These streams are regular :term:`text files ` like those returned " "by the :func:`open` function. Their parameters are chosen as follows:" @@ -2615,13 +2616,13 @@ msgstr "" "これらのストリームは :func:`open` が返すような通常の :term:`テキストファイル " "` です。引数は以下のように選択されます:" -#: ../../library/sys.rst:1752 +#: ../../library/sys.rst:1753 msgid "" "The encoding and error handling are is initialized from :c:member:`PyConfig." "stdio_encoding` and :c:member:`PyConfig.stdio_errors`." msgstr "" -#: ../../library/sys.rst:1755 +#: ../../library/sys.rst:1756 msgid "" "On Windows, UTF-8 is used for the console device. Non-character devices " "such as disk files and pipes use the system locale encoding (i.e. the ANSI " @@ -2632,14 +2633,14 @@ msgid "" "initially attached to a console." msgstr "" -#: ../../library/sys.rst:1764 +#: ../../library/sys.rst:1765 msgid "" "The special behaviour of the console can be overridden by setting the " "environment variable PYTHONLEGACYWINDOWSSTDIO before starting Python. In " "that case, the console codepages are used as for any other character device." msgstr "" -#: ../../library/sys.rst:1769 +#: ../../library/sys.rst:1770 msgid "" "Under all platforms, you can override the character encoding by setting the :" "envvar:`PYTHONIOENCODING` environment variable before starting Python or by " @@ -2648,7 +2649,7 @@ msgid "" "only applies when :envvar:`PYTHONLEGACYWINDOWSSTDIO` is also set." msgstr "" -#: ../../library/sys.rst:1776 +#: ../../library/sys.rst:1777 msgid "" "When interactive, the ``stdout`` stream is line-buffered. Otherwise, it is " "block-buffered like regular text files. The ``stderr`` stream is line-" @@ -2657,12 +2658,12 @@ msgid "" "`PYTHONUNBUFFERED` environment variable." msgstr "" -#: ../../library/sys.rst:1782 +#: ../../library/sys.rst:1783 msgid "" "Non-interactive ``stderr`` is now line-buffered instead of fully buffered." msgstr "" -#: ../../library/sys.rst:1788 +#: ../../library/sys.rst:1789 msgid "" "To write or read binary data from/to the standard streams, use the " "underlying binary :data:`~io.TextIOBase.buffer` object. For example, to " @@ -2673,7 +2674,7 @@ msgstr "" "`bytes` を :data:`stdout` に書き出す場合は ``sys.stdout.buffer." "write(b'abc')`` を使用してください。" -#: ../../library/sys.rst:1792 +#: ../../library/sys.rst:1793 msgid "" "However, if you are writing a library (and do not control in which context " "its code will be executed), be aware that the standard streams may be " @@ -2681,7 +2682,7 @@ msgid "" "support the :attr:`!buffer` attribute." msgstr "" -#: ../../library/sys.rst:1802 +#: ../../library/sys.rst:1803 msgid "" "These objects contain the original values of ``stdin``, ``stderr`` and " "``stdout`` at the start of the program. They are used during finalization, " @@ -2693,7 +2694,7 @@ msgstr "" "イクオブジェクトに)リダイレクトされている場合でも、実際の標準ストリームへの出" "力に利用できます。" -#: ../../library/sys.rst:1807 +#: ../../library/sys.rst:1808 msgid "" "It can also be used to restore the actual files to known working file " "objects in case they have been overwritten with a broken object. However, " @@ -2704,7 +2705,7 @@ msgstr "" "のファイルを復元するために利用することもできます。しかし、明示的に置き換え前" "のストリームを保存しておき、そのオブジェクトを復元する事を推奨します。" -#: ../../library/sys.rst:1813 +#: ../../library/sys.rst:1814 msgid "" "Under some conditions ``stdin``, ``stdout`` and ``stderr`` as well as the " "original values ``__stdin__``, ``__stdout__`` and ``__stderr__`` can be " @@ -2716,12 +2717,12 @@ msgstr "" "す。これはコンソールに接続しない Windows GUI アプリケーションであり、かつ :" "program:`pythonw` で起動された Python アプリケーションが該当します。" -#: ../../library/sys.rst:1821 +#: ../../library/sys.rst:1822 msgid "" "A frozenset of strings containing the names of standard library modules." msgstr "" -#: ../../library/sys.rst:1823 +#: ../../library/sys.rst:1824 msgid "" "It is the same on all platforms. Modules which are not available on some " "platforms and modules disabled at Python build are also listed. All module " @@ -2729,7 +2730,7 @@ msgid "" "modules are excluded." msgstr "" -#: ../../library/sys.rst:1828 +#: ../../library/sys.rst:1829 msgid "" "For packages, only the main package is listed: sub-packages and sub-modules " "are not listed. For example, the ``email`` package is listed, but the " @@ -2737,60 +2738,60 @@ msgid "" "listed." msgstr "" -#: ../../library/sys.rst:1833 +#: ../../library/sys.rst:1834 msgid "See also the :data:`sys.builtin_module_names` list." msgstr "" -#: ../../library/sys.rst:1840 +#: ../../library/sys.rst:1841 msgid "" "A :term:`named tuple` holding information about the thread implementation." msgstr "スレッドの実装に関する情報が格納された :term:`named tuple` です。" -#: ../../library/sys.rst:1845 +#: ../../library/sys.rst:1846 msgid "The name of the thread implementation:" msgstr "" -#: ../../library/sys.rst:1847 +#: ../../library/sys.rst:1848 msgid "``\"nt\"``: Windows threads" msgstr "" -#: ../../library/sys.rst:1848 +#: ../../library/sys.rst:1849 msgid "``\"pthread\"``: POSIX threads" msgstr "" -#: ../../library/sys.rst:1849 +#: ../../library/sys.rst:1850 msgid "" "``\"pthread-stubs\"``: stub POSIX threads (on WebAssembly platforms without " "threading support)" msgstr "" -#: ../../library/sys.rst:1851 +#: ../../library/sys.rst:1852 msgid "``\"solaris\"``: Solaris threads" msgstr "" -#: ../../library/sys.rst:1855 +#: ../../library/sys.rst:1856 msgid "The name of the lock implementation:" msgstr "" -#: ../../library/sys.rst:1857 +#: ../../library/sys.rst:1858 msgid "``\"semaphore\"``: a lock uses a semaphore" msgstr "" -#: ../../library/sys.rst:1858 +#: ../../library/sys.rst:1859 msgid "``\"mutex+cond\"``: a lock uses a mutex and a condition variable" msgstr "" -#: ../../library/sys.rst:1859 +#: ../../library/sys.rst:1860 msgid "``None`` if this information is unknown" msgstr "``None`` この情報が不明の場合" -#: ../../library/sys.rst:1863 +#: ../../library/sys.rst:1864 msgid "" "The name and version of the thread library. It is a string, or ``None`` if " "this information is unknown." msgstr "" -#: ../../library/sys.rst:1871 +#: ../../library/sys.rst:1872 msgid "" "When this variable is set to an integer value, it determines the maximum " "number of levels of traceback information printed when an unhandled " @@ -2802,73 +2803,73 @@ msgstr "" "定する整数値(デフォルト値は ``1000``)。 ``0`` 以下の値が設定された場合、ト" "レースバック情報は出力されず例外型と例外値のみが出力されます。" -#: ../../library/sys.rst:1879 +#: ../../library/sys.rst:1880 msgid "Handle an unraisable exception." msgstr "" -#: ../../library/sys.rst:1881 +#: ../../library/sys.rst:1882 msgid "" "Called when an exception has occurred but there is no way for Python to " "handle it. For example, when a destructor raises an exception or during " "garbage collection (:func:`gc.collect`)." msgstr "" -#: ../../library/sys.rst:1885 +#: ../../library/sys.rst:1886 msgid "The *unraisable* argument has the following attributes:" msgstr "" -#: ../../library/sys.rst:1887 +#: ../../library/sys.rst:1888 msgid ":attr:`!exc_type`: Exception type." msgstr "" -#: ../../library/sys.rst:1888 +#: ../../library/sys.rst:1889 msgid ":attr:`!exc_value`: Exception value, can be ``None``." msgstr "" -#: ../../library/sys.rst:1889 +#: ../../library/sys.rst:1890 msgid ":attr:`!exc_traceback`: Exception traceback, can be ``None``." msgstr "" -#: ../../library/sys.rst:1890 +#: ../../library/sys.rst:1891 msgid ":attr:`!err_msg`: Error message, can be ``None``." msgstr "" -#: ../../library/sys.rst:1891 +#: ../../library/sys.rst:1892 msgid ":attr:`!object`: Object causing the exception, can be ``None``." msgstr "" -#: ../../library/sys.rst:1893 +#: ../../library/sys.rst:1894 msgid "" "The default hook formats :attr:`!err_msg` and :attr:`!object` as: " "``f'{err_msg}: {object!r}'``; use \"Exception ignored in\" error message if :" "attr:`!err_msg` is ``None``." msgstr "" -#: ../../library/sys.rst:1897 +#: ../../library/sys.rst:1898 msgid "" ":func:`sys.unraisablehook` can be overridden to control how unraisable " "exceptions are handled." msgstr "" -#: ../../library/sys.rst:1902 +#: ../../library/sys.rst:1903 msgid ":func:`excepthook` which handles uncaught exceptions." msgstr "" -#: ../../library/sys.rst:1906 +#: ../../library/sys.rst:1907 msgid "" "Storing :attr:`!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/sys.rst:1910 +#: ../../library/sys.rst:1911 msgid "" "Storing :attr:`!object` using a custom hook can resurrect it if it is set to " "an object which is being finalized. Avoid storing :attr:`!object` after the " "custom hook completes to avoid resurrecting objects." msgstr "" -#: ../../library/sys.rst:1914 +#: ../../library/sys.rst:1915 msgid "" "Raises an :ref:`auditing event ` ``sys.unraisablehook`` with " "arguments ``hook``, ``unraisable``." @@ -2876,7 +2877,7 @@ msgstr "" "引数 ``hook``, ``unraisable`` を指定して :ref:`監査イベント ` " "``sys.unraisablehook`` を送出します。 " -#: ../../library/sys.rst:1916 +#: ../../library/sys.rst:1917 msgid "" "Raise an auditing event ``sys.unraisablehook`` with arguments *hook*, " "*unraisable* when an exception that cannot be handled occurs. The " @@ -2884,7 +2885,7 @@ msgid "" "hook has been set, *hook* may be ``None``." msgstr "" -#: ../../library/sys.rst:1925 +#: ../../library/sys.rst:1926 msgid "" "A string containing the version number of the Python interpreter plus " "additional information on the build number and compiler used. This string " @@ -2897,7 +2898,7 @@ msgstr "" "れます。バージョン情報はここから抜き出さずに、 :data:`version_info` および :" "mod:`platform` が提供する関数を使って下さい。" -#: ../../library/sys.rst:1934 +#: ../../library/sys.rst:1935 msgid "" "The C API version for this interpreter. Programmers may find this useful " "when debugging version conflicts between Python and extension modules." @@ -2905,7 +2906,7 @@ msgstr "" "使用中のインタプリタの C API バージョン。 Python と拡張モジュール間の不整合を" "デバッグする場合などに利用できます。" -#: ../../library/sys.rst:1940 +#: ../../library/sys.rst:1941 msgid "" "A tuple containing the five components of the version number: *major*, " "*minor*, *micro*, *releaselevel*, and *serial*. All values except " @@ -2922,11 +2923,11 @@ msgstr "" "は名前でもアクセスできるので、 ``sys.version_info[0]`` は ``sys.version_info." "major`` と等価、などになります。" -#: ../../library/sys.rst:1948 +#: ../../library/sys.rst:1949 msgid "Added named component attributes." msgstr "名前を使った要素アクセスがサポートされました。" -#: ../../library/sys.rst:1953 +#: ../../library/sys.rst:1954 msgid "" "This is an implementation detail of the warnings framework; do not modify " "this value. Refer to the :mod:`warnings` module for more information on the " @@ -2935,7 +2936,7 @@ msgstr "" "この値は、warnings フレームワーク内部のみ使用され、変更することはできません。" "詳細は :mod:`warnings` を参照してください。" -#: ../../library/sys.rst:1960 +#: ../../library/sys.rst:1961 msgid "" "The version number used to form registry keys on Windows platforms. This is " "stored as string resource 1000 in the Python DLL. The value is normally the " @@ -2944,13 +2945,13 @@ msgid "" "has no effect on the registry keys used by Python." msgstr "" -#: ../../library/sys.rst:1972 +#: ../../library/sys.rst:1973 msgid "" "Namespace containing functions and constants for register callbacks and " "controlling monitoring events. See :mod:`sys.monitoring` for details." msgstr "" -#: ../../library/sys.rst:1978 +#: ../../library/sys.rst:1979 msgid "" "A dictionary of the various implementation-specific flags passed through " "the :option:`-X` command-line option. Option names are either mapped to " @@ -2960,7 +2961,7 @@ msgstr "" "です。オプション名にはその値が明示されていればそれが、それ以外の場合は :" "const:`True` がマップされます。例えば:" -#: ../../library/sys.rst:1994 +#: ../../library/sys.rst:1995 msgid "" "This is a CPython-specific way of accessing options passed through :option:`-" "X`. Other implementations may export them through other means, or not at " @@ -2970,11 +2971,11 @@ msgstr "" "です。他の実装ではそれらは他の意味でエクスポートされるか、あるいは何もしませ" "ん。" -#: ../../library/sys.rst:2002 +#: ../../library/sys.rst:2003 msgid "Citations" msgstr "出典" -#: ../../library/sys.rst:2003 +#: ../../library/sys.rst:2004 msgid "" "ISO/IEC 9899:1999. \"Programming languages -- C.\" A public draft of this " "standard is available at https://www.open-std.org/jtc1/sc22/wg14/www/docs/" diff --git a/library/types.po b/library/types.po index 32ad8b3b9..ba31c0681 100644 --- a/library/types.po +++ b/library/types.po @@ -16,7 +16,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3.12\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2023-11-24 14:13+0000\n" +"POT-Creation-Date: 2023-12-08 14:14+0000\n" "PO-Revision-Date: 2021-06-28 01:16+0000\n" "Last-Translator: tomo, 2023\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" @@ -498,16 +498,13 @@ msgstr "" #: ../../library/types.rst:388 msgid "" "The type of objects defined in extension modules with ``PyGetSetDef``, such " -"as ``FrameType.f_locals`` or ``array.array.typecode``. This type is used as " -"descriptor for object attributes; it has the same purpose as the :class:" -"`property` type, but for classes defined in extension modules." +"as :attr:`FrameType.f_locals ` or ``array.array.typecode``. " +"This type is used as descriptor for object attributes; it has the same " +"purpose as the :class:`property` type, but for classes defined in extension " +"modules." msgstr "" -"``FrameType.f_locals`` や ``array.array.typecode`` のような、拡張モジュールに" -"おいて ``PyGetSetDef`` によって定義されたオブジェクトの型です。この型はオブ" -"ジェクト属性のディスクリプタとして利用されます。 :class:`property` 型と同じ目" -"的を持った型ですが、こちらは拡張モジュールで定義された型のためのものです。" -#: ../../library/types.rst:396 +#: ../../library/types.rst:397 msgid "" "The type of objects defined in extension modules with ``PyMemberDef``, such " "as ``datetime.timedelta.days``. This type is used as descriptor for simple " @@ -520,7 +517,7 @@ msgstr "" "うな、Cのシンプルなデータメンバで利用されます。 :class:`property` 型と同じ目" "的を持った型ですが、こちらは拡張モジュールで定義された型のためのものです。" -#: ../../library/types.rst:403 +#: ../../library/types.rst:404 msgid "" "In other implementations of Python, this type may be identical to " "``GetSetDescriptorType``." @@ -528,7 +525,7 @@ msgstr "" "Pythonの他の実装では、この型は ``GetSetDescriptorType`` と同じかもしれませ" "ん。" -#: ../../library/types.rst:408 +#: ../../library/types.rst:409 msgid "" "Read-only proxy of a mapping. It provides a dynamic view on the mapping's " "entries, which means that when the mapping changes, the view reflects these " @@ -538,20 +535,20 @@ msgstr "" "ビューを提供します。つまり、マッピングが変わった場合にビューがこれらの変更を" "反映するということです。" -#: ../../library/types.rst:416 +#: ../../library/types.rst:417 msgid "" "Updated to support the new union (``|``) operator from :pep:`584`, which " "simply delegates to the underlying mapping." msgstr "" -#: ../../library/types.rst:421 +#: ../../library/types.rst:422 msgid "" "Return ``True`` if the underlying mapping has a key *key*, else ``False``." msgstr "" "元になったマッピングが *key* というキーを持っている場合 ``True`` を返します。" "そうでなければ ``False`` を返します。" -#: ../../library/types.rst:426 +#: ../../library/types.rst:427 msgid "" "Return the item of the underlying mapping with key *key*. Raises a :exc:" "`KeyError` if *key* is not in the underlying mapping." @@ -559,7 +556,7 @@ msgstr "" "元になったマッピングの *key* というキーに対応するアイテムを返します。 *key* " "が存在しなければ、 :exc:`KeyError` が発生します。" -#: ../../library/types.rst:431 +#: ../../library/types.rst:432 msgid "" "Return an iterator over the keys of the underlying mapping. This is a " "shortcut for ``iter(proxy.keys())``." @@ -567,15 +564,15 @@ msgstr "" "元になったマッピングのキーを列挙するイテレータを返します。これは " "``iter(proxy.keys())`` のショートカットです。" -#: ../../library/types.rst:436 +#: ../../library/types.rst:437 msgid "Return the number of items in the underlying mapping." msgstr "元になったマッピングに含まれるアイテムの数を返します。" -#: ../../library/types.rst:440 +#: ../../library/types.rst:441 msgid "Return a shallow copy of the underlying mapping." msgstr "元になったマッピングの浅いコピーを返します。" -#: ../../library/types.rst:444 +#: ../../library/types.rst:445 msgid "" "Return the value for *key* if *key* is in the underlying mapping, else " "*default*. If *default* is not given, it defaults to ``None``, so that this " @@ -586,34 +583,34 @@ msgstr "" "ト値の ``None`` になります。そのため、このメソッドが :exc:`KeyError` を発生さ" "せることはありません。" -#: ../../library/types.rst:450 +#: ../../library/types.rst:451 msgid "" "Return a new view of the underlying mapping's items (``(key, value)`` pairs)." msgstr "" "元になったマッピングの items (``(key, value)`` ペアの列) に対する新しいビュー" "を返します。" -#: ../../library/types.rst:455 +#: ../../library/types.rst:456 msgid "Return a new view of the underlying mapping's keys." msgstr "元になったマッピングの keys に対する新しいビューを返します。" -#: ../../library/types.rst:459 +#: ../../library/types.rst:460 msgid "Return a new view of the underlying mapping's values." msgstr "元になったマッピングの values に対する新しいビューを返します。" -#: ../../library/types.rst:463 +#: ../../library/types.rst:464 msgid "Return a reverse iterator over the keys of the underlying mapping." msgstr "" -#: ../../library/types.rst:469 +#: ../../library/types.rst:470 msgid "Return a hash of the underlying mapping." msgstr "" -#: ../../library/types.rst:475 +#: ../../library/types.rst:476 msgid "Additional Utility Classes and Functions" msgstr "追加のユーティリティクラスと関数" -#: ../../library/types.rst:479 +#: ../../library/types.rst:480 msgid "" "A simple :class:`object` subclass that provides attribute access to its " "namespace, as well as a meaningful repr." @@ -621,7 +618,7 @@ msgstr "" "名前空間への属性アクセスに加えて意味のある repr を提供するための、単純な :" "class:`object` サブクラスです。" -#: ../../library/types.rst:482 +#: ../../library/types.rst:483 msgid "" "Unlike :class:`object`, with ``SimpleNamespace`` you can add and remove " "attributes. If a ``SimpleNamespace`` object is initialized with keyword " @@ -631,11 +628,11 @@ msgstr "" "りすることができます。 ``SimpleNamespace`` オブジェクトがキーワード引数で初期" "化される場合、それらは元になる名前空間に直接追加されます。" -#: ../../library/types.rst:486 +#: ../../library/types.rst:487 msgid "The type is roughly equivalent to the following code::" msgstr "この型は以下のコードとほぼ等価です::" -#: ../../library/types.rst:501 +#: ../../library/types.rst:502 msgid "" "``SimpleNamespace`` may be useful as a replacement for ``class NS: pass``. " "However, for a structured record type use :func:`~collections.namedtuple` " @@ -645,17 +642,17 @@ msgstr "" "ません。ですが、構造化されたレコード型に対しては、これよりはむしろ :func:" "`~collections.namedtuple` を使用してください。" -#: ../../library/types.rst:507 +#: ../../library/types.rst:508 msgid "" "Attribute order in the repr changed from alphabetical to insertion (like " "``dict``)." msgstr "" -#: ../../library/types.rst:513 +#: ../../library/types.rst:514 msgid "Route attribute access on a class to __getattr__." msgstr "クラスの属性アクセスを __getattr__ に振り替えます。" -#: ../../library/types.rst:515 +#: ../../library/types.rst:516 msgid "" "This is a descriptor, used to define attributes that act differently when " "accessed through an instance and through a class. Instance access remains " @@ -667,7 +664,7 @@ msgstr "" "ス経由の属性アクセスはクラスの __getattr__ メソッドに振り替えられます。これ" "は AttributeError の送出により行われます。" -#: ../../library/types.rst:520 +#: ../../library/types.rst:521 msgid "" "This allows one to have properties active on an instance, and have virtual " "attributes on the class with the same name (see :class:`enum.Enum` for an " @@ -676,11 +673,11 @@ msgstr "" "これによって、インスタンス上で有効なプロパティを持ち、クラス上で同名の仮想属" "性を持つことができます (例については :class:`enum.Enum` を参照してください)。" -#: ../../library/types.rst:527 +#: ../../library/types.rst:528 msgid "Coroutine Utility Functions" msgstr "コルーチンユーティリティ関数" -#: ../../library/types.rst:531 +#: ../../library/types.rst:532 msgid "" "This function transforms a :term:`generator` function into a :term:" "`coroutine function` which returns a generator-based coroutine. The " @@ -695,11 +692,11 @@ msgstr "" "ブジェクトかつ :term:`awaitable` であるとみなされます。ただし、必ずしも :" "meth:`~object.__await__` メソッドを実装する必要はありません。" -#: ../../library/types.rst:538 +#: ../../library/types.rst:539 msgid "If *gen_func* is a generator function, it will be modified in-place." msgstr "*gen_func* はジェネレータ関数で、インプレースに変更されます。" -#: ../../library/types.rst:540 +#: ../../library/types.rst:541 msgid "" "If *gen_func* is not a generator function, it will be wrapped. If it returns " "an instance of :class:`collections.abc.Generator`, the instance will be " diff --git a/reference/datamodel.po b/reference/datamodel.po index 79b3eccf1..437c48d19 100644 --- a/reference/datamodel.po +++ b/reference/datamodel.po @@ -19,7 +19,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3.12\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2023-11-24 14:13+0000\n" +"POT-Creation-Date: 2023-12-08 14:14+0000\n" "PO-Revision-Date: 2021-06-28 01:19+0000\n" "Last-Translator: tomo, 2023\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" @@ -159,19 +159,11 @@ msgid "" "or windows. It is understood that these resources are freed when the object " "is garbage-collected, but since garbage collection is not guaranteed to " "happen, such objects also provide an explicit way to release the external " -"resource, usually a :meth:`close` method. Programs are strongly recommended " +"resource, usually a :meth:`!close` method. Programs are strongly recommended " "to explicitly close such objects. The ':keyword:`try`...\\ :keyword:" "`finally`' statement and the ':keyword:`with`' statement provide convenient " "ways to do this." msgstr "" -"オブジェクトには、開かれたファイルやウィンドウといった、 \"外部の (external) " -"\" リソースへの参照を含むものがあります。これらのリソースは、オブジェクトがガ" -"ベージコレクションされた際に解放されるものと理解されていますが、ガベージコレ" -"クションが行われる保証はないので、こうしたオブジェクトは外部リソースを明示的" -"に解放する方法、大抵は :meth:`close` メソッドも提供しています。こうしたオブ" -"ジェクトは明示的に close するよう強く推奨されます。この操作をする際には、':" -"keyword:`try`...\\ :keyword:`finally`' 文や、 ':keyword:`with`' 文を使うと便" -"利です。" #: ../../reference/datamodel.rst:97 msgid "" @@ -819,11 +811,11 @@ msgid "" "`calls`) can be applied:" msgstr "関数呼び出し操作 (:ref:`calls` 参照) を行うことができる型です:" -#: ../../reference/datamodel.rst:523 +#: ../../reference/datamodel.rst:525 msgid "User-defined functions" msgstr "ユーザ定義関数 (user-defined function)" -#: ../../reference/datamodel.rst:530 +#: ../../reference/datamodel.rst:532 msgid "" "A user-defined function object is created by a function definition (see " "section :ref:`function`). It should be called with an argument list " @@ -833,24 +825,24 @@ msgstr "" "`function` 参照)。関数は、仮引数 (formal parameter) リストと同じ数の要素が" "入った引数リストとともに呼び出されます。" -#: ../../reference/datamodel.rst:535 ../../reference/datamodel.rst:926 +#: ../../reference/datamodel.rst:537 ../../reference/datamodel.rst:955 msgid "Special attributes:" msgstr "特殊属性:" -#: ../../reference/datamodel.rst:554 +#: ../../reference/datamodel.rst:556 msgid "Attribute" msgstr "属性" -#: ../../reference/datamodel.rst:554 +#: ../../reference/datamodel.rst:556 msgid "Meaning" msgstr "意味" -#: ../../reference/datamodel.rst:556 ../../reference/datamodel.rst:843 -#: ../../reference/datamodel.rst:942 +#: ../../reference/datamodel.rst:558 ../../reference/datamodel.rst:871 +#: ../../reference/datamodel.rst:971 msgid ":attr:`__doc__`" msgstr ":attr:`__doc__`" -#: ../../reference/datamodel.rst:556 +#: ../../reference/datamodel.rst:558 msgid "" "The function's documentation string, or ``None`` if unavailable; not " "inherited by subclasses." @@ -858,35 +850,35 @@ msgstr "" "関数のドキュメンテーション文字列で、ドキュメンテーションがない場合は " "``None`` になります。サブクラスに継承されません。" -#: ../../reference/datamodel.rst:556 ../../reference/datamodel.rst:561 -#: ../../reference/datamodel.rst:564 ../../reference/datamodel.rst:569 -#: ../../reference/datamodel.rst:573 ../../reference/datamodel.rst:579 -#: ../../reference/datamodel.rst:589 ../../reference/datamodel.rst:600 -#: ../../reference/datamodel.rst:610 ../../reference/datamodel.rst:613 +#: ../../reference/datamodel.rst:558 ../../reference/datamodel.rst:563 +#: ../../reference/datamodel.rst:566 ../../reference/datamodel.rst:571 +#: ../../reference/datamodel.rst:575 ../../reference/datamodel.rst:581 +#: ../../reference/datamodel.rst:591 ../../reference/datamodel.rst:602 +#: ../../reference/datamodel.rst:612 ../../reference/datamodel.rst:615 msgid "Writable" msgstr "書き込み可能" -#: ../../reference/datamodel.rst:561 +#: ../../reference/datamodel.rst:563 msgid ":attr:`~definition.\\ __name__`" msgstr ":attr:`~definition.\\ __name__`" -#: ../../reference/datamodel.rst:561 +#: ../../reference/datamodel.rst:563 msgid "The function's name." msgstr "関数の名前です。" -#: ../../reference/datamodel.rst:564 +#: ../../reference/datamodel.rst:566 msgid ":attr:`~definition.\\ __qualname__`" msgstr ":attr:`~definition.\\ __qualname__`" -#: ../../reference/datamodel.rst:564 +#: ../../reference/datamodel.rst:566 msgid "The function's :term:`qualified name`." msgstr "関数の :term:`qualified name` です。" -#: ../../reference/datamodel.rst:569 ../../reference/datamodel.rst:932 +#: ../../reference/datamodel.rst:571 ../../reference/datamodel.rst:961 msgid ":attr:`__module__`" msgstr ":attr:`__module__`" -#: ../../reference/datamodel.rst:569 +#: ../../reference/datamodel.rst:571 msgid "" "The name of the module the function was defined in, or ``None`` if " "unavailable." @@ -894,11 +886,11 @@ msgstr "" "関数が定義されているモジュールの名前です。モジュール名がない場合は ``None`` " "になります。" -#: ../../reference/datamodel.rst:573 +#: ../../reference/datamodel.rst:575 msgid ":attr:`__defaults__`" msgstr ":attr:`__defaults__`" -#: ../../reference/datamodel.rst:573 +#: ../../reference/datamodel.rst:575 msgid "" "A tuple containing default argument values for those arguments that have " "defaults, or ``None`` if no arguments have a default value." @@ -906,19 +898,19 @@ msgstr "" "デフォルト値を持つ引数に対するデフォルト値が収められたタプルで、デフォルト値" "を持つ引数がない場合には ``None`` になります" -#: ../../reference/datamodel.rst:579 +#: ../../reference/datamodel.rst:581 msgid ":attr:`__code__`" msgstr ":attr:`__code__`" -#: ../../reference/datamodel.rst:579 +#: ../../reference/datamodel.rst:581 msgid "The code object representing the compiled function body." msgstr "コンパイルされた関数本体を表現するコードオブジェクトです。" -#: ../../reference/datamodel.rst:582 +#: ../../reference/datamodel.rst:584 msgid ":attr:`__globals__`" msgstr ":attr:`__globals__`" -#: ../../reference/datamodel.rst:582 +#: ../../reference/datamodel.rst:584 msgid "" "A reference to the dictionary that holds the function's global variables --- " "the global namespace of the module in which the function was defined." @@ -926,23 +918,23 @@ msgstr "" "関数のグローバル変数の入った辞書 (への参照) です --- この辞書は、関数が定義さ" "れているモジュールのグローバルな名前空間を決定します。" -#: ../../reference/datamodel.rst:582 ../../reference/datamodel.rst:593 +#: ../../reference/datamodel.rst:584 ../../reference/datamodel.rst:595 msgid "Read-only" msgstr "読み出し専用" -#: ../../reference/datamodel.rst:589 ../../reference/datamodel.rst:935 +#: ../../reference/datamodel.rst:591 ../../reference/datamodel.rst:964 msgid ":attr:`~object.__dict__`" msgstr ":attr:`~object.__dict__`" -#: ../../reference/datamodel.rst:589 +#: ../../reference/datamodel.rst:591 msgid "The namespace supporting arbitrary function attributes." msgstr "任意の関数属性をサポートするための名前空間が収められています。" -#: ../../reference/datamodel.rst:593 +#: ../../reference/datamodel.rst:595 msgid ":attr:`__closure__`" msgstr ":attr:`__closure__`" -#: ../../reference/datamodel.rst:593 +#: ../../reference/datamodel.rst:595 msgid "" "``None`` or a tuple of cells that contain bindings for the function's free " "variables. See below for information on the ``cell_contents`` attribute." @@ -951,12 +943,12 @@ msgstr "" "セル (cell) 群からなるタプルになります。\n" "``cell_contents`` 属性についての情報は下を参照してください。" -#: ../../reference/datamodel.rst:600 ../../reference/datamodel.rst:858 -#: ../../reference/datamodel.rst:949 +#: ../../reference/datamodel.rst:602 ../../reference/datamodel.rst:886 +#: ../../reference/datamodel.rst:978 msgid ":attr:`__annotations__`" msgstr ":attr:`__annotations__`" -#: ../../reference/datamodel.rst:600 +#: ../../reference/datamodel.rst:602 msgid "" "A dict containing annotations of parameters. The keys of the dict are the " "parameter names, and ``'return'`` for the return annotation, if provided. " @@ -967,25 +959,25 @@ msgstr "" "ある場合は、``'return'`` がそのキーとなります。この属性を使って作業することの" "情報は :ref:`annotations-howto` を参照してください。" -#: ../../reference/datamodel.rst:610 +#: ../../reference/datamodel.rst:612 msgid ":attr:`__kwdefaults__`" msgstr ":attr:`__kwdefaults__`" -#: ../../reference/datamodel.rst:610 +#: ../../reference/datamodel.rst:612 msgid "A dict containing defaults for keyword-only parameters." msgstr "キーワード専用パラメータのデフォルト値を含む辞書です。" -#: ../../reference/datamodel.rst:613 ../../reference/datamodel.rst:954 +#: ../../reference/datamodel.rst:615 ../../reference/datamodel.rst:983 msgid ":attr:`__type_params__`" msgstr "" -#: ../../reference/datamodel.rst:613 +#: ../../reference/datamodel.rst:615 msgid "" "A tuple containing the :ref:`type parameters ` of a :ref:" "`generic function `." msgstr "" -#: ../../reference/datamodel.rst:620 +#: ../../reference/datamodel.rst:622 msgid "" "Most of the attributes labelled \"Writable\" check the type of the assigned " "value." @@ -993,7 +985,7 @@ msgstr "" "「書き込み可能」とラベルされている属性のほとんどは、代入された値の型をチェッ" "クします。" -#: ../../reference/datamodel.rst:622 +#: ../../reference/datamodel.rst:624 msgid "" "Function objects also support getting and setting arbitrary attributes, " "which can be used, for example, to attach metadata to functions. Regular " @@ -1008,7 +1000,7 @@ msgstr "" "性をサポートしているので注意して下さい。組み込み関数の属性は将来サポートする" "予定です。*" -#: ../../reference/datamodel.rst:628 +#: ../../reference/datamodel.rst:630 msgid "" "A cell object has the attribute ``cell_contents``. This can be used to get " "the value of the cell, as well as set the value." @@ -1016,7 +1008,7 @@ msgstr "" "セルオブジェクトは属性 ``cell_contents`` を持っています。\n" "これはセルの値を設定するのに加えて、セルの値を得るのにも使えます。" -#: ../../reference/datamodel.rst:631 +#: ../../reference/datamodel.rst:633 msgid "" "Additional information about a function's definition can be retrieved from " "its code object; see the description of internal types below. The :data:" @@ -1027,11 +1019,11 @@ msgstr "" ":data:`cell ` 型には :mod:`types` モジュールからアクセスでき" "ます。" -#: ../../reference/datamodel.rst:638 +#: ../../reference/datamodel.rst:642 msgid "Instance methods" msgstr "インスタンスメソッド" -#: ../../reference/datamodel.rst:645 +#: ../../reference/datamodel.rst:649 msgid "" "An instance method object combines a class, a class instance and any " "callable object (normally a user-defined function)." @@ -1039,118 +1031,103 @@ msgstr "" "インスタンスメソッドオブジェクトは、クラス、クラスインスタンスと任意の呼び出" "し可能オブジェクト (通常はユーザ定義関数) を結びつけます。" -#: ../../reference/datamodel.rst:655 +#: ../../reference/datamodel.rst:659 +msgid "Special read-only attributes:" +msgstr "" + +#: ../../reference/datamodel.rst:664 +msgid "" +"Refers to the class instance object to which the method is :ref:`bound " +"`" +msgstr "" + +#: ../../reference/datamodel.rst:668 +msgid "Refers to the original function object" +msgstr "" + +#: ../../reference/datamodel.rst:671 msgid "" -"Special read-only attributes: :attr:`__self__` is the class instance " -"object, :attr:`__func__` is the function object; :attr:`__doc__` is the " -"method's documentation (same as ``__func__.__doc__``); :attr:`~definition." -"__name__` is the method name (same as ``__func__.__name__``); :attr:" -"`__module__` is the name of the module the method was defined in, or " -"``None`` if unavailable." +"The method's documentation (same as :attr:`!method.__func__.__doc__`). A :" +"class:`string ` if the original function had a docstring, else ``None``." +msgstr "" + +#: ../../reference/datamodel.rst:676 +msgid "The name of the method (same as :attr:`!method.__func__.__name__`)" msgstr "" -"読み出し専用の特殊属性: :attr:`__self__` はクラスインスタンスオブジェクト" -"で、 :attr:`__func__` は関数オブジェクトです;\n" -":attr:`__doc__` はメソッドのドキュメンテーション文字列 (``__func__.__doc__`` " -"と同じ) です;\n" -":attr:`~definition.__name__` はメソッドの名前 (``__func__.__name__`` と同じ) " -"です;\n" -":attr:`__module__` はメソッドが定義されたモジュールの名前か、モジュール名がな" -"い場合は ``None`` になります。" -#: ../../reference/datamodel.rst:661 +#: ../../reference/datamodel.rst:679 +msgid "" +"The name of the module the method was defined in, or ``None`` if unavailable." +msgstr "" + +#: ../../reference/datamodel.rst:682 msgid "" "Methods also support accessing (but not setting) the arbitrary function " -"attributes on the underlying function object." +"attributes on the underlying :ref:`function object `." msgstr "" -"メソッドもまた、根底にある関数オブジェクトの任意の関数属性に (値の設定はでき" -"ませんが) アクセスできます。" -#: ../../reference/datamodel.rst:664 +#: ../../reference/datamodel.rst:685 msgid "" "User-defined method objects may be created when getting an attribute of a " "class (perhaps via an instance of that class), if that attribute is a user-" -"defined function object or a class method object." +"defined :ref:`function object ` or a :class:" +"`classmethod` object." msgstr "" -"クラスの属性を (場合によってはそのクラスのインスタンスを介して) 取得すると" -"き、その属性がユーザ定義の関数オブジェクトまたはクラスメソッドオブジェクトで" -"あれば、ユーザ定義メソッドオブジェクトが生成されることがあります。" -#: ../../reference/datamodel.rst:668 +#: ../../reference/datamodel.rst:692 msgid "" -"When an instance method object is created by retrieving a user-defined " -"function object from a class via one of its instances, its :attr:`__self__` " -"attribute is the instance, and the method object is said to be bound. The " -"new method's :attr:`__func__` attribute is the original function object." +"When an instance method object is created by retrieving a user-defined :ref:" +"`function object ` from a class via one of its " +"instances, its :attr:`~method.__self__` attribute is the instance, and the " +"method object is said to be *bound*. The new method's :attr:`~method." +"__func__` attribute is the original function object." msgstr "" -"クラスからインスタンスを経由してユーザ定義関数オブジェクトを取得することに" -"よってインスタンスメソッドオブジェクトが生成されたとき、 :attr:`__self__` 属" -"性はそのインスタンスで、このメソッドオブジェクトは束縛されている (bound) とい" -"います。新しいメソッドの :attr:`__func__` 属性はもとの関数オブジェクトです。" -#: ../../reference/datamodel.rst:674 +#: ../../reference/datamodel.rst:698 msgid "" -"When an instance method object is created by retrieving a class method " -"object from a class or instance, its :attr:`__self__` attribute is the class " -"itself, and its :attr:`__func__` attribute is the function object underlying " -"the class method." +"When an instance method object is created by retrieving a :class:" +"`classmethod` object from a class or instance, its :attr:`~method.__self__` " +"attribute is the class itself, and its :attr:`~method.__func__` attribute is " +"the function object underlying the class method." msgstr "" -"クラスやインスタンスからクラスメソッドオブジェクトを取得することによってイン" -"スタンスメソッドオブジェクトが生成されたとき、 :attr:`__self__` 属性はクラス" -"そのもので、 :attr:`__func__` 属性はクラスメソッドの根底にある関数オブジェク" -"トです。" -#: ../../reference/datamodel.rst:679 +#: ../../reference/datamodel.rst:703 msgid "" "When an instance method object is called, the underlying function (:attr:" -"`__func__`) is called, inserting the class instance (:attr:`__self__`) in " -"front of the argument list. For instance, when :class:`C` is a class which " -"contains a definition for a function :meth:`f`, and ``x`` is an instance of :" -"class:`C`, calling ``x.f(1)`` is equivalent to calling ``C.f(x, 1)``." -msgstr "" -"インスタンスメソッドオブジェクトが呼び出される際、根底にある関数 (:attr:" -"`__func__`) が呼び出されます。このとき、クラスインスタンス (:attr:" -"`__self__`) が引数リストの先頭に挿入されます。例えば、 :class:`C` を関数 :" -"meth:`f` の定義を含むクラス、 ``x`` を :class:`C` のインスタンスとすると、 " -"``x.f(1)`` の呼び出しは ``C.f(x, 1)`` の呼び出しと同じです。" - -#: ../../reference/datamodel.rst:686 -msgid "" -"When an instance method object is derived from a class method object, the " -"\"class instance\" stored in :attr:`__self__` will actually be the class " -"itself, so that calling either ``x.f(1)`` or ``C.f(1)`` is equivalent to " -"calling ``f(C,1)`` where ``f`` is the underlying function." -msgstr "" -"クラスメソッドオブジェクトからインスタンスメソッドオブジェクトが導出される" -"際、 :attr:`__self__` に記憶されている \"クラスインスタンス\" は実際はクラス" -"そのものなので、 ``x.f(1)`` や ``C.f(1)`` の呼び出しは、根底にある関数を " -"``f`` として ``f(C,1)`` の呼び出しと等価です。" - -#: ../../reference/datamodel.rst:691 -msgid "" -"Note that the transformation from function object to instance method object " -"happens each time the attribute is retrieved from the instance. In some " -"cases, a fruitful optimization is to assign the attribute to a local " -"variable and call that local variable. Also notice that this transformation " -"only happens for user-defined functions; other callable objects (and all non-" -"callable objects) are retrieved without transformation. It is also " -"important to note that user-defined functions which are attributes of a " -"class instance are not converted to bound methods; this *only* happens when " -"the function is an attribute of the class." -msgstr "" -"なお、関数オブジェクトからインスタンスメソッドオブジェクトへの変換は、インス" -"タンスから属性が取り出されるたびに行われます。場合によっては、属性をローカル" -"変数に代入しておき、そのローカル変数を呼び出すようにするのが効果的な最適化に" -"なります。また、上記の変換はユーザ定義関数に対してのみ行われます; その他の呼" -"び出し可能オブジェクト (および呼び出し可能でない全てのオブジェクト) は、変換" -"されずに取り出されます。それから、クラスインスタンスの属性になっているユーザ" -"定義関数は、束縛メソッドに変換されません; 変換されるのは、関数がクラスの属性" -"である場合 *だけ* です。" - -#: ../../reference/datamodel.rst:704 +"`~method.__func__`) is called, inserting the class instance (:attr:`~method." +"__self__`) in front of the argument list. For instance, when :class:`!C` is " +"a class which contains a definition for a function :meth:`!f`, and ``x`` is " +"an instance of :class:`!C`, calling ``x.f(1)`` is equivalent to calling ``C." +"f(x, 1)``." +msgstr "" + +#: ../../reference/datamodel.rst:710 +msgid "" +"When an instance method object is derived from a :class:`classmethod` " +"object, the \"class instance\" stored in :attr:`~method.__self__` will " +"actually be the class itself, so that calling either ``x.f(1)`` or ``C." +"f(1)`` is equivalent to calling ``f(C,1)`` where ``f`` is the underlying " +"function." +msgstr "" + +#: ../../reference/datamodel.rst:715 +msgid "" +"Note that the transformation from :ref:`function object ` to instance method object happens each time the attribute is " +"retrieved from the instance. In some cases, a fruitful optimization is to " +"assign the attribute to a local variable and call that local variable. Also " +"notice that this transformation only happens for user-defined functions; " +"other callable objects (and all non-callable objects) are retrieved without " +"transformation. It is also important to note that user-defined functions " +"which are attributes of a class instance are not converted to bound methods; " +"this *only* happens when the function is an attribute of the class." +msgstr "" + +#: ../../reference/datamodel.rst:729 msgid "Generator functions" msgstr "ジェネレータ関数 (generator function)" -#: ../../reference/datamodel.rst:710 +#: ../../reference/datamodel.rst:735 msgid "" "A function or method which uses the :keyword:`yield` statement (see section :" "ref:`yield`) is called a :dfn:`generator function`. Such a function, when " @@ -1172,11 +1149,11 @@ msgstr "" "`StopIteration` 例外が送出され、イテレータが返すべき値の最後まで到達していま" "す。" -#: ../../reference/datamodel.rst:722 +#: ../../reference/datamodel.rst:747 msgid "Coroutine functions" msgstr "コルーチン関数 (coroutine function)" -#: ../../reference/datamodel.rst:727 +#: ../../reference/datamodel.rst:752 msgid "" "A function or method which is defined using :keyword:`async def` is called " "a :dfn:`coroutine function`. Such a function, when called, returns a :term:" @@ -1191,11 +1168,11 @@ msgstr "" "keyword:`await` 式を持つことが出来ます。\n" ":ref:`coroutine-objects` を参照してください。" -#: ../../reference/datamodel.rst:735 +#: ../../reference/datamodel.rst:760 msgid "Asynchronous generator functions" msgstr "非同期ジェネレータ関数 (asynchronous generator function)" -#: ../../reference/datamodel.rst:741 +#: ../../reference/datamodel.rst:766 msgid "" "A function or method which is defined using :keyword:`async def` and which " "uses the :keyword:`yield` statement is called a :dfn:`asynchronous generator " @@ -1210,7 +1187,7 @@ msgstr "" "このオブジェクトは :keyword:`async for` 文で関数の本体を実行するのに使えま" "す。" -#: ../../reference/datamodel.rst:747 +#: ../../reference/datamodel.rst:772 msgid "" "Calling the asynchronous iterator's :meth:`aiterator.__anext__ ` method will return an :term:`awaitable` which when awaited will " @@ -1227,11 +1204,11 @@ msgstr "" "ときは、 :exc:`StopAsyncIteration` 例外が送出され、非同期イテレータは出力すべ" "き値の最後に到達したことになります。" -#: ../../reference/datamodel.rst:758 +#: ../../reference/datamodel.rst:783 msgid "Built-in functions" msgstr "組み込み関数 (built-in function)" -#: ../../reference/datamodel.rst:765 +#: ../../reference/datamodel.rst:790 msgid "" "A built-in function object is a wrapper around a C function. Examples of " "built-in functions are :func:`len` and :func:`math.sin` (:mod:`math` is a " @@ -1255,47 +1232,39 @@ msgstr "" ":attr:`__module__` は、関数が定義されているモジュールの名前です。\n" "モジュール名がない場合は ``None`` になります。" -#: ../../reference/datamodel.rst:776 +#: ../../reference/datamodel.rst:803 msgid "Built-in methods" msgstr "組み込みメソッド (built-in method)" -#: ../../reference/datamodel.rst:783 +#: ../../reference/datamodel.rst:810 msgid "" "This is really a different disguise of a built-in function, this time " "containing an object passed to the C function as an implicit extra " "argument. An example of a built-in method is ``alist.append()``, assuming " "*alist* is a list object. In this case, the special read-only attribute :" -"attr:`__self__` is set to the object denoted by *alist*." +"attr:`!__self__` is set to the object denoted by *alist*. (The attribute has " +"the same semantics as it does with :attr:`other instance methods `.)" msgstr "" -"実際には組み込み関数を別の形で隠蔽したもので、こちらの場合には C 関数に渡され" -"る何らかのオブジェクトを非明示的な外部引数として持っています。組み込みメソッ" -"ドの例は、 *alist* をリストオブジェクトとしたときの ``alist.append()`` です。" -"この場合には、読み出し専用の属性 :attr:`__self__` は *alist* で表されるオブ" -"ジェクトになります。" -#: ../../reference/datamodel.rst:791 +#: ../../reference/datamodel.rst:819 msgid "Classes" msgstr "クラス" -#: ../../reference/datamodel.rst:793 +#: ../../reference/datamodel.rst:821 msgid "" "Classes are callable. These objects normally act as factories for new " "instances of themselves, but variations are possible for class types that " "override :meth:`~object.__new__`. The arguments of the call are passed to :" -"meth:`__new__` and, in the typical case, to :meth:`~object.__init__` to " +"meth:`!__new__` and, in the typical case, to :meth:`~object.__init__` to " "initialize the new instance." msgstr "" -"クラスは呼び出し可能です。そのオブジェクトは通常、そのクラスの新たなインスタ" -"ンスのファクトリとして振舞いますが、 :meth:`~object.__new__` をオーバーライド" -"して、バリエーションを持たせることもできます。呼び出しに使われた引数は、 :" -"meth:`__new__` と、典型的な場合では :meth:`~object.__init__` に渡され、新たな" -"インスタンスの初期化に使われます。" -#: ../../reference/datamodel.rst:801 +#: ../../reference/datamodel.rst:829 msgid "Class Instances" msgstr "クラスのインスタンス" -#: ../../reference/datamodel.rst:803 +#: ../../reference/datamodel.rst:831 msgid "" "Instances of arbitrary classes can be made callable by defining a :meth:" "`~object.__call__` method in their class." @@ -1303,11 +1272,11 @@ msgstr "" "任意のクラスのインスタンスは、クラスで :meth:`~object.__call__` メソッドを定" "義することで呼び出し可能になります。" -#: ../../reference/datamodel.rst:808 +#: ../../reference/datamodel.rst:836 msgid "Modules" msgstr "モジュール" -#: ../../reference/datamodel.rst:814 +#: ../../reference/datamodel.rst:842 msgid "" "Modules are a basic organizational unit of Python code, and are created by " "the :ref:`import system ` as invoked either by the :keyword:" @@ -1330,7 +1299,7 @@ msgstr "" "の初期化に使われるコードオブジェクトを含んでいません (初期化が終わればもう必" "要ないからです)。" -#: ../../reference/datamodel.rst:826 +#: ../../reference/datamodel.rst:854 msgid "" "Attribute assignment updates the module's namespace dictionary, e.g., ``m.x " "= 1`` is equivalent to ``m.__dict__[\"x\"] = 1``." @@ -1338,28 +1307,28 @@ msgstr "" "属性の代入を行うと、モジュールの名前空間辞書の内容を更新します。例えば、 ``m." "x = 1`` は ``m.__dict__[\"x\"] = 1`` と同じです。" -#: ../../reference/datamodel.rst:836 +#: ../../reference/datamodel.rst:864 msgid "Predefined (writable) attributes:" msgstr "定義済みの (書き込み可能な) 属性:" -#: ../../reference/datamodel.rst:839 +#: ../../reference/datamodel.rst:867 msgid ":attr:`__name__`" msgstr ":attr:`__name__`" -#: ../../reference/datamodel.rst:839 +#: ../../reference/datamodel.rst:867 msgid "The module's name." msgstr "モジュールの名前。" -#: ../../reference/datamodel.rst:842 +#: ../../reference/datamodel.rst:870 msgid "The module's documentation string, or ``None`` if unavailable." msgstr "" "モジュールのドキュメントで、文字列か、もし利用できない場合は ``None`` です。" -#: ../../reference/datamodel.rst:852 +#: ../../reference/datamodel.rst:880 msgid ":attr:`__file__`" msgstr ":attr:`__file__`" -#: ../../reference/datamodel.rst:846 +#: ../../reference/datamodel.rst:874 msgid "" "The pathname of the file from which the module was loaded, if it was loaded " "from a file. The :attr:`__file__` attribute may be missing for certain types " @@ -1372,7 +1341,7 @@ msgstr "" "存在しないかもしれません。共有ライブラリから動的にロードされた拡張モジュール" "の場合、この属性は 共有ライブラリファイルのパス名になります。" -#: ../../reference/datamodel.rst:855 +#: ../../reference/datamodel.rst:883 msgid "" "A dictionary containing :term:`variable annotations ` " "collected during module body execution. For best practices on working with :" @@ -1383,7 +1352,7 @@ msgstr "" "ラクティスについては、 :ref:`アノテーションのHOWTO ` を参" "照してください。" -#: ../../reference/datamodel.rst:862 +#: ../../reference/datamodel.rst:890 msgid "" "Special read-only attribute: :attr:`~object.__dict__` is the module's " "namespace as a dictionary object." @@ -1391,7 +1360,7 @@ msgstr "" "読み出し専用の特殊属性: :attr:`~object.__dict__` はモジュールの名前空間で、辞" "書オブジェクトです。" -#: ../../reference/datamodel.rst:867 +#: ../../reference/datamodel.rst:895 msgid "" "Because of the way CPython clears module dictionaries, the module dictionary " "will be cleared when the module falls out of scope even if the dictionary " @@ -1403,11 +1372,11 @@ msgstr "" "これを避けるには、辞書をコピーするか、辞書を直接使っている間モジュールを保持" "してください。" -#: ../../reference/datamodel.rst:874 +#: ../../reference/datamodel.rst:902 msgid "Custom classes" msgstr "カスタムクラス型" -#: ../../reference/datamodel.rst:876 +#: ../../reference/datamodel.rst:904 msgid "" "Custom class types are typically created by class definitions (see section :" "ref:`class`). A class has a namespace implemented by a dictionary object. " @@ -1433,26 +1402,18 @@ msgstr "" "報は、 2.3リリースに付属するドキュメント https://www.python.org/download/" "releases/2.3/mro/ にあります。" -#: ../../reference/datamodel.rst:900 +#: ../../reference/datamodel.rst:928 msgid "" -"When a class attribute reference (for class :class:`C`, say) would yield a " +"When a class attribute reference (for class :class:`!C`, say) would yield a " "class method object, it is transformed into an instance method object whose :" -"attr:`__self__` attribute is :class:`C`. When it would yield a static " -"method object, it is transformed into the object wrapped by the static " -"method object. See section :ref:`descriptors` for another way in which " -"attributes retrieved from a class may differ from those actually contained " -"in its :attr:`~object.__dict__`." -msgstr "" -"クラス (:class:`C` とします) 属性参照がクラスメソッドオブジェクトを返そうとす" -"るときには、 そのオブジェクトは :attr:`__self__` 属性が :class:`C` であるよう" -"なインスタンスメソッドオブジェクトに変換されます。\n" -"静的メソッドオブジェクトを返そうとするときには、静的メソッドオブジェクトで" -"ラップされたオブジェクトに変換されます。\n" -":ref:`descriptors` 節を参照すると、また別の理由でクラスから取り出した属性と実" -"際に :attr:`~object.__dict__` に保存されているものが異なることがあるのが分か" -"ります。" +"attr:`~method.__self__` attribute is :class:`!C`. When it would yield a :" +"class:`staticmethod` object, it is transformed into the object wrapped by " +"the static method object. See section :ref:`descriptors` for another way in " +"which attributes retrieved from a class may differ from those actually " +"contained in its :attr:`~object.__dict__`." +msgstr "" -#: ../../reference/datamodel.rst:910 +#: ../../reference/datamodel.rst:939 msgid "" "Class attribute assignments update the class's dictionary, never the " "dictionary of a base class." @@ -1460,7 +1421,7 @@ msgstr "" "クラス属性を代入すると、そのクラスの辞書だけが更新され、基底クラスの辞書は更" "新しません。" -#: ../../reference/datamodel.rst:915 +#: ../../reference/datamodel.rst:944 msgid "" "A class object can be called (see above) to yield a class instance (see " "below)." @@ -1468,37 +1429,37 @@ msgstr "" "クラスオブジェクトを呼び出す (上記を参照) と、クラスインスタンスを生成します " "(下記を参照)。" -#: ../../reference/datamodel.rst:929 +#: ../../reference/datamodel.rst:958 msgid ":attr:`~definition.__name__`" msgstr ":attr:`~definition.__name__`" -#: ../../reference/datamodel.rst:929 +#: ../../reference/datamodel.rst:958 msgid "The class name." msgstr "クラス名。" -#: ../../reference/datamodel.rst:932 +#: ../../reference/datamodel.rst:961 msgid "The name of the module in which the class was defined." msgstr "クラスが定義されているモジュールの名前。" -#: ../../reference/datamodel.rst:935 +#: ../../reference/datamodel.rst:964 msgid "The dictionary containing the class's namespace." msgstr "クラスの名前空間を格納している辞書。" -#: ../../reference/datamodel.rst:939 +#: ../../reference/datamodel.rst:968 msgid ":attr:`~class.__bases__`" msgstr ":attr:`~class.__bases__`" -#: ../../reference/datamodel.rst:938 +#: ../../reference/datamodel.rst:967 msgid "" "A tuple containing the base classes, in the order of their occurrence in the " "base class list." msgstr "ベースクラスリストに現れる順序でベースクラスを格納しているタプル。" -#: ../../reference/datamodel.rst:942 +#: ../../reference/datamodel.rst:971 msgid "The class's documentation string, or ``None`` if undefined." msgstr "クラスのドキュメントで、文字列か、もし未定義の場合は ``None`` です。" -#: ../../reference/datamodel.rst:945 +#: ../../reference/datamodel.rst:974 msgid "" "A dictionary containing :term:`variable annotations ` " "collected during class body execution. For best practices on working with :" @@ -1509,17 +1470,17 @@ msgstr "" "ラクティスについては、 :ref:`アノテーションのHOWTO ` を参" "照してください。" -#: ../../reference/datamodel.rst:952 +#: ../../reference/datamodel.rst:981 msgid "" "A tuple containing the :ref:`type parameters ` of a :ref:" "`generic class `." msgstr "" -#: ../../reference/datamodel.rst:957 +#: ../../reference/datamodel.rst:986 msgid "Class instances" msgstr "クラスインスタンス (class instance)" -#: ../../reference/datamodel.rst:965 +#: ../../reference/datamodel.rst:994 msgid "" "A class instance is created by calling a class object (see above). A class " "instance has a namespace implemented as a dictionary which is the first " @@ -1527,33 +1488,16 @@ msgid "" "found there, and the instance's class has an attribute by that name, the " "search continues with the class attributes. If a class attribute is found " "that is a user-defined function object, it is transformed into an instance " -"method object whose :attr:`__self__` attribute is the instance. Static " -"method and class method objects are also transformed; see above under " +"method object whose :attr:`~method.__self__` attribute is the instance. " +"Static method and class method objects are also transformed; see above under " "\"Classes\". See section :ref:`descriptors` for another way in which " "attributes of a class retrieved via its instances may differ from the " "objects actually stored in the class's :attr:`~object.__dict__`. If no " "class attribute is found, and the object's class has a :meth:`~object." "__getattr__` method, that is called to satisfy the lookup." msgstr "" -"クラスインスタンスは、クラスオブジェクト (上記参照) を呼び出して生成しま" -"す。\n" -"クラスインスタンスは辞書で実装された名前空間を持っており、属性参照の時にはま" -"ずこの辞書が探索されます。\n" -"ここで属性が見つからず、インスタンスのクラスにその名前の属性があるときは、続" -"けてクラス属性を検索します。\n" -"見つかったクラス属性がユーザ定義関数オブジェクトだった場合、クラスインスタン" -"スを :attr:`__self__` 属性とするインスタンスメソッドオブジェクトに変換しま" -"す。\n" -"静的メソッドオブジェクトやクラスメソッドオブジェクトも同様に変換されます;\n" -"上記の \"クラス\" を参照してください。\n" -":ref:`descriptors` 節を参照すると、また別の理由でインスタンスを通してクラスか" -"ら取り出した属性と実際に :attr:`~object.__dict__` に保存されているものが異な" -"ることがあるのが分かります。\n" -"クラス属性が見つからず、かつオブジェクトのクラスが :meth:`~object." -"__getattr__` メソッドを持っている場合は、探索の義務を果たすためにこのメソッド" -"が呼び出されます。" -#: ../../reference/datamodel.rst:981 +#: ../../reference/datamodel.rst:1010 msgid "" "Attribute assignments and deletions update the instance's dictionary, never " "a class's dictionary. If the class has a :meth:`~object.__setattr__` or :" @@ -1565,7 +1509,7 @@ msgstr "" "`~object.__delattr__` メソッドが定義されている場合、直接インスタンスの辞書を" "更新する代わりにこれらのメソッドが呼び出されます。" -#: ../../reference/datamodel.rst:991 +#: ../../reference/datamodel.rst:1020 msgid "" "Class instances can pretend to be numbers, sequences, or mappings if they " "have methods with certain special names. See section :ref:`specialnames`." @@ -1574,7 +1518,7 @@ msgstr "" "ケンス型、あるいはマップ型のように振舞うことができます。 :ref:`specialnames` " "を参照してください。" -#: ../../reference/datamodel.rst:998 +#: ../../reference/datamodel.rst:1027 msgid "" "Special attributes: :attr:`~object.__dict__` is the attribute dictionary; :" "attr:`~instance.__class__` is the instance's class." @@ -1582,11 +1526,11 @@ msgstr "" "特殊属性: :attr:`~object.__dict__` は属性の辞書です; :attr:`~instance." "__class__` はインスタンスのクラスです。" -#: ../../reference/datamodel.rst:1003 +#: ../../reference/datamodel.rst:1032 msgid "I/O objects (also known as file objects)" msgstr "I/O オブジェクト (ファイルオブジェクトの別名)" -#: ../../reference/datamodel.rst:1018 +#: ../../reference/datamodel.rst:1047 msgid "" "A :term:`file object` represents an open file. Various shortcuts are " "available to create file objects: the :func:`open` built-in function, and " @@ -1600,7 +1544,7 @@ msgstr "" "makefile` メソッド (あるいは拡張モジュールから提供される他の関数やメソッ" "ド) 。" -#: ../../reference/datamodel.rst:1024 +#: ../../reference/datamodel.rst:1053 msgid "" "The objects ``sys.stdin``, ``sys.stdout`` and ``sys.stderr`` are initialized " "to file objects corresponding to the interpreter's standard input, output " @@ -1612,11 +1556,11 @@ msgstr "" "オブジェクトに初期化されます。これらはすべてテキストモードで開かれ、 :class:" "`io.TextIOBase` 抽象クラスによって定義されたインターフェースに従います。" -#: ../../reference/datamodel.rst:1032 +#: ../../reference/datamodel.rst:1061 msgid "Internal types" msgstr "内部型 (internal type)" -#: ../../reference/datamodel.rst:1038 +#: ../../reference/datamodel.rst:1067 msgid "" "A few types used internally by the interpreter are exposed to the user. " "Their definitions may change with future versions of the interpreter, but " @@ -1626,11 +1570,11 @@ msgstr "" "れらの定義は将来のインタプリタのバージョンでは変更される可能性がありますが、" "ここでは記述の完全性のために触れておきます。" -#: ../../reference/datamodel.rst:1046 +#: ../../reference/datamodel.rst:1075 msgid "Code objects" msgstr "コードオブジェクト" -#: ../../reference/datamodel.rst:1050 +#: ../../reference/datamodel.rst:1079 msgid "" "Code objects represent *byte-compiled* executable Python code, or :term:" "`bytecode`. The difference between a code object and a function object is " @@ -1651,120 +1595,187 @@ msgstr "" "ジェクトは変更不可能で、変更可能なオブジェクトへの参照を (直接、間接に関わら" "ず) 含みません。" -#: ../../reference/datamodel.rst:1078 -msgid "" -"Special read-only attributes: :attr:`co_name` gives the function name; :attr:" -"`co_qualname` gives the fully qualified function name; :attr:`co_argcount` " -"is the total number of positional arguments (including positional-only " -"arguments and arguments with default values); :attr:`co_posonlyargcount` is " -"the number of positional-only arguments (including arguments with default " -"values); :attr:`co_kwonlyargcount` is the number of keyword-only arguments " -"(including arguments with default values); :attr:`co_nlocals` is the number " -"of local variables used by the function (including arguments); :attr:" -"`co_varnames` is a tuple containing the names of the local variables " -"(starting with the argument names); :attr:`co_cellvars` is a tuple " -"containing the names of local variables that are referenced by nested " -"functions; :attr:`co_freevars` is a tuple containing the names of free " -"variables; :attr:`co_code` is a string representing the sequence of bytecode " -"instructions; :attr:`co_consts` is a tuple containing the literals used by " -"the bytecode; :attr:`co_names` is a tuple containing the names used by the " -"bytecode; :attr:`co_filename` is the filename from which the code was " -"compiled; :attr:`co_firstlineno` is the first line number of the function; :" -"attr:`co_lnotab` is a string encoding the mapping from bytecode offsets to " -"line numbers (for details see the source code of the interpreter, is " -"deprecated since 3.12 and may be removed in 3.14); :attr:`co_stacksize` is " -"the required stack size; :attr:`co_flags` is an integer encoding a number of " -"flags for the interpreter." -msgstr "" - -#: ../../reference/datamodel.rst:1104 -msgid "" -"The following flag bits are defined for :attr:`co_flags`: bit ``0x04`` is " -"set if the function uses the ``*arguments`` syntax to accept an arbitrary " -"number of positional arguments; bit ``0x08`` is set if the function uses the " -"``**keywords`` syntax to accept arbitrary keyword arguments; bit ``0x20`` is " -"set if the function is a generator." -msgstr "" -"以下のフラグビットが :attr:`co_flags` で定義されています: ``0x04`` ビットは、" -"関数が ``*arguments`` 構文を使って任意の数の位置引数を受理できる場合に立てら" -"れます; ``0x08`` ビットは、関数が ``**keywords`` 構文を使ってキーワード引数を" -"受理できる場合に立てられます; ``0x20`` ビットは、関数がジェネレータである場合" -"に立てられます。" - -#: ../../reference/datamodel.rst:1110 +#: ../../reference/datamodel.rst:1108 ../../reference/datamodel.rst:1259 +msgid "Special read-only attributes" +msgstr "" + +#: ../../reference/datamodel.rst:1113 +msgid "The function name" +msgstr "" + +#: ../../reference/datamodel.rst:1116 +msgid "The fully qualified function name" +msgstr "" + +#: ../../reference/datamodel.rst:1119 +msgid "" +"The total number of positional :term:`parameters ` (including " +"positional-only parameters and parameters with default values) that the " +"function has" +msgstr "" + +#: ../../reference/datamodel.rst:1124 +msgid "" +"The number of positional-only :term:`parameters ` (including " +"arguments with default values) that the function has" +msgstr "" + +#: ../../reference/datamodel.rst:1128 +msgid "" +"The number of keyword-only :term:`parameters ` (including " +"arguments with default values) that the function has" +msgstr "" + +#: ../../reference/datamodel.rst:1132 +msgid "" +"The number of :ref:`local variables ` used by the function " +"(including parameters)" +msgstr "" + +#: ../../reference/datamodel.rst:1136 +msgid "" +"A :class:`tuple` containing the names of the local variables in the function " +"(starting with the parameter names)" +msgstr "" + +#: ../../reference/datamodel.rst:1140 +msgid "" +"A :class:`tuple` containing the names of :ref:`local variables ` " +"that are referenced by nested functions inside the function" +msgstr "" + +#: ../../reference/datamodel.rst:1144 +msgid "A :class:`tuple` containing the names of free variables in the function" +msgstr "" + +#: ../../reference/datamodel.rst:1147 +msgid "" +"A string representing the sequence of :term:`bytecode` instructions in the " +"function" +msgstr "" + +#: ../../reference/datamodel.rst:1151 +msgid "" +"A :class:`tuple` containing the literals used by the :term:`bytecode` in the " +"function" +msgstr "" + +#: ../../reference/datamodel.rst:1155 +msgid "" +"A :class:`tuple` containing the names used by the :term:`bytecode` in the " +"function" +msgstr "" + +#: ../../reference/datamodel.rst:1159 +msgid "The name of the file from which the code was compiled" +msgstr "" + +#: ../../reference/datamodel.rst:1162 +msgid "The line number of the first line of the function" +msgstr "" + +#: ../../reference/datamodel.rst:1165 +msgid "" +"A string encoding the mapping from :term:`bytecode` offsets to line numbers. " +"For details, see the source code of the interpreter." +msgstr "" + +#: ../../reference/datamodel.rst:1168 +msgid "" +"This attribute of code objects is deprecated, and may be removed in Python " +"3.14." +msgstr "" + +#: ../../reference/datamodel.rst:1173 +msgid "The required stack size of the code object" +msgstr "" + +#: ../../reference/datamodel.rst:1176 +msgid "" +"An :class:`integer ` encoding a number of flags for the interpreter." +msgstr "" + +#: ../../reference/datamodel.rst:1181 +msgid "" +"The following flag bits are defined for :attr:`~codeobject.co_flags`: bit " +"``0x04`` is set if the function uses the ``*arguments`` syntax to accept an " +"arbitrary number of positional arguments; bit ``0x08`` is set if the " +"function uses the ``**keywords`` syntax to accept arbitrary keyword " +"arguments; bit ``0x20`` is set if the function is a generator. See :ref:" +"`inspect-module-co-flags` for details on the semantics of each flags that " +"might be present." +msgstr "" + +#: ../../reference/datamodel.rst:1189 msgid "" "Future feature declarations (``from __future__ import division``) also use " -"bits in :attr:`co_flags` to indicate whether a code object was compiled with " -"a particular feature enabled: bit ``0x2000`` is set if the function was " -"compiled with future division enabled; bits ``0x10`` and ``0x1000`` were " -"used in earlier versions of Python." +"bits in :attr:`~codeobject.co_flags` to indicate whether a code object was " +"compiled with a particular feature enabled: bit ``0x2000`` is set if the " +"function was compiled with future division enabled; bits ``0x10`` and " +"``0x1000`` were used in earlier versions of Python." msgstr "" -"将来機能 (future feature) 宣言 (``from __future__ import division``) もま" -"た、 :attr:`co_flags` のビットを立てることで、コードオブジェクトが特定の機能" -"を有効にしてコンパイルされていることを示します: ``0x2000`` ビットは、関数が将" -"来機能を有効にしてコンパイルされている場合に立てられます; 以前のバージョンの " -"Python では、 ``0x10`` および ``0x1000`` ビットが使われていました。" -#: ../../reference/datamodel.rst:1116 -msgid "Other bits in :attr:`co_flags` are reserved for internal use." +#: ../../reference/datamodel.rst:1195 +msgid "" +"Other bits in :attr:`~codeobject.co_flags` are reserved for internal use." msgstr "" -":attr:`co_flags` のその他のビットは将来に内部的に利用するために予約されていま" -"す。" -#: ../../reference/datamodel.rst:1120 +#: ../../reference/datamodel.rst:1199 msgid "" -"If a code object represents a function, the first item in :attr:`co_consts` " -"is the documentation string of the function, or ``None`` if undefined." +"If a code object represents a function, the first item in :attr:`~codeobject." +"co_consts` is the documentation string of the function, or ``None`` if " +"undefined." +msgstr "" + +#: ../../reference/datamodel.rst:1204 +msgid "The :meth:`!co_positions` method" msgstr "" -"コードオブジェクトが関数を表現している場合、 :attr:`co_consts` の最初の要素は" -"関数のドキュメンテーション文字列になります。ドキュメンテーション文字列が定義" -"されていない場合には ``None`` になります。" -#: ../../reference/datamodel.rst:1125 +#: ../../reference/datamodel.rst:1208 msgid "" -"Returns an iterable over the source code positions of each bytecode " +"Returns an iterable over the source code positions of each :term:`bytecode` " "instruction in the code object." msgstr "" -#: ../../reference/datamodel.rst:1128 +#: ../../reference/datamodel.rst:1211 msgid "" -"The iterator returns tuples containing the ``(start_line, end_line, " -"start_column, end_column)``. The *i-th* tuple corresponds to the position of " -"the source code that compiled to the *i-th* instruction. Column information " -"is 0-indexed utf-8 byte offsets on the given source line." +"The iterator returns :class:`tuple`\\s containing the ``(start_line, " +"end_line, start_column, end_column)``. The *i-th* tuple corresponds to the " +"position of the source code that compiled to the *i-th* instruction. Column " +"information is 0-indexed utf-8 byte offsets on the given source line." msgstr "" -#: ../../reference/datamodel.rst:1134 +#: ../../reference/datamodel.rst:1217 msgid "" "This positional information can be missing. A non-exhaustive lists of cases " "where this may happen:" msgstr "" -#: ../../reference/datamodel.rst:1137 +#: ../../reference/datamodel.rst:1220 msgid "Running the interpreter with :option:`-X` ``no_debug_ranges``." msgstr "" -#: ../../reference/datamodel.rst:1138 +#: ../../reference/datamodel.rst:1221 msgid "" "Loading a pyc file compiled while using :option:`-X` ``no_debug_ranges``." msgstr "" -#: ../../reference/datamodel.rst:1139 +#: ../../reference/datamodel.rst:1222 msgid "Position tuples corresponding to artificial instructions." msgstr "" -#: ../../reference/datamodel.rst:1140 +#: ../../reference/datamodel.rst:1223 msgid "" "Line and column numbers that can't be represented due to implementation " "specific limitations." msgstr "" -#: ../../reference/datamodel.rst:1143 +#: ../../reference/datamodel.rst:1226 msgid "" "When this occurs, some or all of the tuple elements can be :const:`None`." msgstr "" -#: ../../reference/datamodel.rst:1149 +#: ../../reference/datamodel.rst:1232 msgid "" "This feature requires storing column positions in code objects which may " "result in a small increase of disk usage of compiled Python files or " @@ -1774,11 +1785,11 @@ msgid "" "environment variable can be used." msgstr "" -#: ../../reference/datamodel.rst:1160 +#: ../../reference/datamodel.rst:1243 msgid "Frame objects" msgstr "フレーム (frame) オブジェクト" -#: ../../reference/datamodel.rst:1164 +#: ../../reference/datamodel.rst:1247 msgid "" "Frame objects represent execution frames. They may occur in traceback " "objects (see below), and are also passed to registered trace functions." @@ -1787,97 +1798,99 @@ msgstr "" "実行フレームはトレースバックオブジェクト (下記参照) 内に出現し、登録されたト" "レース関数に渡されます。" -#: ../../reference/datamodel.rst:1175 +#: ../../reference/datamodel.rst:1264 msgid "" -"Special read-only attributes: :attr:`f_back` is to the previous stack frame " -"(towards the caller), or ``None`` if this is the bottom stack frame; :attr:" -"`f_code` is the code object being executed in this frame; :attr:`f_locals` " -"is the dictionary used to look up local variables; :attr:`f_globals` is used " -"for global variables; :attr:`f_builtins` is used for built-in (intrinsic) " -"names; :attr:`f_lasti` gives the precise instruction (this is an index into " -"the bytecode string of the code object)." +"Points to the previous stack frame (towards the caller), or ``None`` if this " +"is the bottom stack frame" msgstr "" -"読み出し専用の特殊属性: :attr:`f_back` は直前のスタックフレーム (呼び出し側の" -"方向) で、それがスタックフレームの最下段なら ``None`` です; :attr:`f_code` は" -"そのフレームで実行されているコードオブジェクトです; :attr:`f_locals` はローカ" -"ル変数の探索に使われる辞書です; :attr:`f_globals` はグローバル変数に使われま" -"す; :attr:`f_builtins` は組み込みの (Python 固有の) 名前に使われます; :attr:" -"`f_lasti` は厳密な命令コード (コードオブジェクトのバイトコード文字列へのイン" -"デックス) です。" -#: ../../reference/datamodel.rst:1183 +#: ../../reference/datamodel.rst:1268 msgid "" -"Accessing ``f_code`` raises an :ref:`auditing event ` ``object." +"The :ref:`code object ` being executed in this frame. " +"Accessing this attribute raises an :ref:`auditing event ` ``object." "__getattr__`` with arguments ``obj`` and ``\"f_code\"``." msgstr "" -"``f_code`` へのアクセスは ``object.__getattr__`` に ``obj`` と " -"``\"f_code\"`` を渡して行いますが、 :ref:`監査イベント ` を送出しま" -"す。" -#: ../../reference/datamodel.rst:1192 +#: ../../reference/datamodel.rst:1273 msgid "" -"Special writable attributes: :attr:`f_trace`, if not ``None``, is a function " -"called for various events during code execution (this is used by the " -"debugger). Normally an event is triggered for each new source line - this " -"can be disabled by setting :attr:`f_trace_lines` to :const:`False`." +"The dictionary used by the frame to look up :ref:`local variables `" msgstr "" -"特別な書き込み可能な属性: :attr:`f_trace` は ``None`` でない場合は、コードの" -"実行中に様々なイベントで呼び出される関数です (デバッガが利用します)。\n" -"通常は、ソースの新しい行ごとにイベントが発行されますが、 :attr:" -"`f_trace_lines` を :const:`False` に設定することでイベントの発行を無効化でき" -"ます。" -#: ../../reference/datamodel.rst:1197 +#: ../../reference/datamodel.rst:1277 +msgid "" +"The dictionary used by the frame to look up :ref:`global variables `" +msgstr "" + +#: ../../reference/datamodel.rst:1281 +msgid "" +"The dictionary used by the frame to look up :ref:`built-in (intrinsic) names " +"`" +msgstr "" + +#: ../../reference/datamodel.rst:1285 +msgid "" +"The \"precise instruction\" of the frame object (this is an index into the :" +"term:`bytecode` string of the :ref:`code object `)" +msgstr "" + +#: ../../reference/datamodel.rst:1296 +msgid "Special writable attributes" +msgstr "" + +#: ../../reference/datamodel.rst:1301 +msgid "" +"If not ``None``, this is a function called for various events during code " +"execution (this is used by debuggers). Normally an event is triggered for " +"each new source line (see :attr:`~frame.f_trace_lines`)." +msgstr "" + +#: ../../reference/datamodel.rst:1306 +msgid "" +"Set this attribute to :const:`False` to disable triggering a tracing event " +"for each source line." +msgstr "" + +#: ../../reference/datamodel.rst:1310 msgid "" -"Implementations *may* allow per-opcode events to be requested by setting :" -"attr:`f_trace_opcodes` to :const:`True`. Note that this may lead to " -"undefined interpreter behaviour if exceptions raised by the trace function " -"escape to the function being traced." +"Set this attribute to :const:`True` to allow per-opcode events to be " +"requested. Note that this may lead to undefined interpreter behaviour if " +"exceptions raised by the trace function escape to the function being traced." msgstr "" -"実装は :attr:`f_trace_opcodes` を :const:`True` に設定して、命令コードごとの" -"イベントの要求を許可している *かもしれません* 。\n" -"これは、トレース関数によって送出された例外がトレースされている関数に漏れ出た" -"場合、未定義なインタープリタの振る舞いにつながるかもしれないことに注意してく" -"ださい。" -#: ../../reference/datamodel.rst:1202 +#: ../../reference/datamodel.rst:1316 msgid "" -":attr:`f_lineno` is the current line number of the frame --- writing to this " -"from within a trace function jumps to the given line (only for the bottom-" -"most frame). A debugger can implement a Jump command (aka Set Next " -"Statement) by writing to f_lineno." +"The current line number of the frame -- writing to this from within a trace " +"function jumps to the given line (only for the bottom-most frame). A " +"debugger can implement a Jump command (aka Set Next Statement) by writing to " +"this attribute." +msgstr "" + +#: ../../reference/datamodel.rst:1322 +msgid "Frame object methods" msgstr "" -":attr:`f_lineno` はフレーム中における現在の行番号です --- トレース関数 " -"(trace function) 側でこの値に書き込みを行うと、指定した行にジャンプします (最" -"下段の実行フレームにいるときのみ)。デバッガでは、 f_fileno を書き込むことで、" -"ジャンプ命令 (Set Next Statement 命令とも) を実装できます。" -#: ../../reference/datamodel.rst:1207 +#: ../../reference/datamodel.rst:1324 msgid "Frame objects support one method:" msgstr "フレームオブジェクトはメソッドを一つサポートします:" -#: ../../reference/datamodel.rst:1211 +#: ../../reference/datamodel.rst:1328 msgid "" -"This method clears all references to local variables held by the frame. " -"Also, if the frame belonged to a generator, the generator is finalized. " -"This helps break reference cycles involving frame objects (for example when " -"catching an exception and storing its traceback for later use)." +"This method clears all references to :ref:`local variables ` held by " +"the frame. Also, if the frame belonged to a :term:`generator`, the " +"generator is finalized. This helps break reference cycles involving frame " +"objects (for example when catching an :ref:`exception ` " +"and storing its :ref:`traceback ` for later use)." msgstr "" -"このメソッドはフレームが保持しているローカル変数への参照を全て削除します。\n" -"また、フレームがジェネレータに属していた場合は、ジェネレータにも終了処理が行" -"われます。\n" -"これによってフレームオブジェクトを含んだ循環参照が解消されるようになります " -"(例えば、例外を捕捉し、後で使うためにトレースバックを保存する場合)。" -#: ../../reference/datamodel.rst:1217 +#: ../../reference/datamodel.rst:1334 msgid ":exc:`RuntimeError` is raised if the frame is currently executing." msgstr "フレームが現在実行中の場合 :exc:`RuntimeError` が送出されます。" -#: ../../reference/datamodel.rst:1225 +#: ../../reference/datamodel.rst:1342 msgid "Traceback objects" msgstr "トレースバック (traceback) オブジェクト" -#: ../../reference/datamodel.rst:1238 +#: ../../reference/datamodel.rst:1355 msgid "" "Traceback objects represent a stack trace of an exception. A traceback " "object is implicitly created when an exception occurs, and may also be " @@ -1887,7 +1900,7 @@ msgstr "" "トレースバックオブジェクトは例外が起きたときに暗黙的に作成されたり、 :class:" "`types.TracebackType` を呼び出して明示的にも作成されたりします。" -#: ../../reference/datamodel.rst:1242 +#: ../../reference/datamodel.rst:1359 msgid "" "For implicitly created tracebacks, when the search for an exception handler " "unwinds the execution stack, at each unwound level a traceback object is " @@ -1904,7 +1917,7 @@ msgstr "" "トレースバックは、 ``sys.exc_info()`` が返すタプルの三番目の要素や、捕捉した" "例外の ``__traceback__`` 属性として得られます。" -#: ../../reference/datamodel.rst:1250 +#: ../../reference/datamodel.rst:1367 msgid "" "When the program contains no suitable handler, the stack trace is written " "(nicely formatted) to the standard error stream; if the interpreter is " @@ -1914,7 +1927,7 @@ msgstr "" "て) 標準エラーストリームに書き出されます; インタプリタが対話的に実行されてい" "る場合、 ``sys.last_traceback`` として得ることもできます。" -#: ../../reference/datamodel.rst:1255 +#: ../../reference/datamodel.rst:1372 msgid "" "For explicitly created tracebacks, it is up to the creator of the traceback " "to determine how the ``tb_next`` attributes should be linked to form a full " @@ -1923,7 +1936,7 @@ msgstr "" "明示的に作成されたトレースバックでは、 ``tb_next`` 属性がリンクされスタックト" "レース全体を形成する方法の決定は、トレースバックの作成者に任されます。" -#: ../../reference/datamodel.rst:1265 +#: ../../reference/datamodel.rst:1382 msgid "" "Special read-only attributes: :attr:`tb_frame` points to the execution frame " "of the current level; :attr:`tb_lineno` gives the line number where the " @@ -1939,7 +1952,7 @@ msgstr "" "keyword:`finally` 節がない場合には、フレームオブジェクト内の行番号とは異なる" "かもしれません。" -#: ../../reference/datamodel.rst:1274 +#: ../../reference/datamodel.rst:1391 msgid "" "Accessing ``tb_frame`` raises an :ref:`auditing event ` ``object." "__getattr__`` with arguments ``obj`` and ``\"tb_frame\"``." @@ -1948,7 +1961,7 @@ msgstr "" "``\"tb_frame\"`` を渡して行いますが、 :ref:`監査イベント ` を送出し" "ます。" -#: ../../reference/datamodel.rst:1280 +#: ../../reference/datamodel.rst:1397 msgid "" "Special writable attribute: :attr:`tb_next` is the next level in the stack " "trace (towards the frame where the exception occurred), or ``None`` if there " @@ -1957,7 +1970,7 @@ msgstr "" "書き込み可能な特殊属性: :attr:`tb_next` はスタックトレースの次のレベル (例外" "が発生したフレームの方向) か、あるいは次のレベルが無い場合は ``None`` です。" -#: ../../reference/datamodel.rst:1284 +#: ../../reference/datamodel.rst:1401 msgid "" "Traceback objects can now be explicitly instantiated from Python code, and " "the ``tb_next`` attribute of existing instances can be updated." @@ -1965,11 +1978,11 @@ msgstr "" "トレースバックオブジェクトは Python コードから明示的にインスタンス化できるよ" "うになり、既存のインスタンスの ``tb_next`` 属性は更新できるようになりました。" -#: ../../reference/datamodel.rst:1290 +#: ../../reference/datamodel.rst:1407 msgid "Slice objects" msgstr "スライス (slice) オブジェクト" -#: ../../reference/datamodel.rst:1294 +#: ../../reference/datamodel.rst:1411 msgid "" "Slice objects are used to represent slices for :meth:`~object.__getitem__` " "methods. They are also created by the built-in :func:`slice` function." @@ -1978,7 +1991,7 @@ msgstr "" "を表すのに使われます。スライスオブジェクトは組み込みの :func:`slice` 関数でも" "生成されます。" -#: ../../reference/datamodel.rst:1303 +#: ../../reference/datamodel.rst:1420 msgid "" "Special read-only attributes: :attr:`~slice.start` is the lower bound; :attr:" "`~slice.stop` is the upper bound; :attr:`~slice.step` is the step value; " @@ -1988,11 +2001,11 @@ msgstr "" "は上限です; :attr:`~slice.step` はステップの値です; それぞれ省略された場合は " "``None`` となっています。これらの属性は任意の型を持てます。" -#: ../../reference/datamodel.rst:1307 +#: ../../reference/datamodel.rst:1424 msgid "Slice objects support one method:" msgstr "スライスオブジェクトはメソッドを一つサポートします:" -#: ../../reference/datamodel.rst:1311 +#: ../../reference/datamodel.rst:1428 msgid "" "This method takes a single integer argument *length* and computes " "information about the slice that the slice object would describe if applied " @@ -2008,11 +2021,11 @@ msgstr "" "す。インデックス値がないか、範囲外の値であれば、通常のスライスと変わらないや" "りかたで扱われます。" -#: ../../reference/datamodel.rst:1320 +#: ../../reference/datamodel.rst:1437 msgid "Static method objects" msgstr "静的メソッド (static method) オブジェクト" -#: ../../reference/datamodel.rst:1322 +#: ../../reference/datamodel.rst:1439 msgid "" "Static method objects provide a way of defeating the transformation of " "function objects to method objects described above. A static method object " @@ -2031,11 +2044,11 @@ msgstr "" "ジェクト自体は呼び出し可能です。静的オブジェクトは組み込みコンストラクタ :" "func:`staticmethod` で生成されます。" -#: ../../reference/datamodel.rst:1332 +#: ../../reference/datamodel.rst:1449 msgid "Class method objects" msgstr "クラスメソッドオブジェクト" -#: ../../reference/datamodel.rst:1334 +#: ../../reference/datamodel.rst:1451 msgid "" "A class method object, like a static method object, is a wrapper around " "another object that alters the way in which that object is retrieved from " @@ -2050,11 +2063,11 @@ msgstr "" "ます。クラスメソッドオブジェクトは組み込みのコンストラクタ :func:" "`classmethod` で生成されます。" -#: ../../reference/datamodel.rst:1344 +#: ../../reference/datamodel.rst:1461 msgid "Special method names" msgstr "特殊メソッド名" -#: ../../reference/datamodel.rst:1350 +#: ../../reference/datamodel.rst:1467 msgid "" "A class can implement certain operations that are invoked by special syntax " "(such as arithmetic operations or subscripting and slicing) by defining " @@ -2077,7 +2090,7 @@ msgstr "" "き、このような演算を試みると例外 (たいていは :exc:`AttributeError` か :exc:" "`TypeError`) が送出されます。" -#: ../../reference/datamodel.rst:1361 +#: ../../reference/datamodel.rst:1478 msgid "" "Setting a special method to ``None`` indicates that the corresponding " "operation is not available. For example, if a class sets :meth:`~object." @@ -2092,7 +2105,7 @@ msgstr "" "(:meth:`~object.__getitem__` に処理が戻されずに) :exc:`TypeError` を送出しま" "す。 [#]_" -#: ../../reference/datamodel.rst:1367 +#: ../../reference/datamodel.rst:1484 msgid "" "When implementing a class that emulates any built-in type, it is important " "that the emulation only be implemented to the degree that it makes sense for " @@ -2107,11 +2120,11 @@ msgstr "" "いかもしれません。 (W3C のドキュメントオブジェクトモデルにある :class:`~xml." "dom.NodeList` インターフェースがその一例です。)" -#: ../../reference/datamodel.rst:1378 +#: ../../reference/datamodel.rst:1495 msgid "Basic customization" msgstr "基本的なカスタマイズ" -#: ../../reference/datamodel.rst:1384 +#: ../../reference/datamodel.rst:1501 msgid "" "Called to create a new instance of class *cls*. :meth:`__new__` is a static " "method (special-cased so you need not declare it as such) that takes the " @@ -2127,7 +2140,7 @@ msgstr "" "(クラスの呼び出し文) に渡されます。 :meth:`__new__` の戻り値は新しいオブジェ" "クトのインスタンス (通常は *cls* のインスタンス) でなければなりません。" -#: ../../reference/datamodel.rst:1391 +#: ../../reference/datamodel.rst:1508 msgid "" "Typical implementations create a new instance of the class by invoking the " "superclass's :meth:`__new__` method using ``super().__new__(cls[, ...])`` " @@ -2139,7 +2152,7 @@ msgstr "" "ソッドを呼び出し、新たに生成されたインスタンスに必要な変更を加えてから返しま" "す。" -#: ../../reference/datamodel.rst:1396 +#: ../../reference/datamodel.rst:1513 msgid "" "If :meth:`__new__` is invoked during object construction and it returns an " "instance of *cls*, then the new instance’s :meth:`__init__` method will be " @@ -2153,7 +2166,7 @@ msgstr "" "ンスタンスで、残りの引数はオブジェクトコンストラクタに渡された引数と同じにな" "ります。" -#: ../../reference/datamodel.rst:1401 +#: ../../reference/datamodel.rst:1518 msgid "" "If :meth:`__new__` does not return an instance of *cls*, then the new " "instance's :meth:`__init__` method will not be invoked." @@ -2161,7 +2174,7 @@ msgstr "" ":meth:`__new__` が *cls* のインスタンスを返さない場合、インスタンスの :meth:" "`__init__` メソッドは呼び出されません。" -#: ../../reference/datamodel.rst:1404 +#: ../../reference/datamodel.rst:1521 msgid "" ":meth:`__new__` is intended mainly to allow subclasses of immutable types " "(like int, str, or tuple) to customize instance creation. It is also " @@ -2172,7 +2185,7 @@ msgstr "" "スでインスタンス生成をカスタマイズすることにあります。また、クラス生成をカス" "タマイズするために、カスタムのメタクラスでよくオーバーライドされます。" -#: ../../reference/datamodel.rst:1413 +#: ../../reference/datamodel.rst:1530 msgid "" "Called after the instance has been created (by :meth:`__new__`), but before " "it is returned to the caller. The arguments are those passed to the class " @@ -2188,7 +2201,7 @@ msgstr "" "示的に呼び出して、インスタンスの基底クラス部分が適切に初期化されること保証し" "なければなりません。例えば、 ``super().__init__([args...])`` 。" -#: ../../reference/datamodel.rst:1420 +#: ../../reference/datamodel.rst:1537 msgid "" "Because :meth:`__new__` and :meth:`__init__` work together in constructing " "objects (:meth:`__new__` to create it, and :meth:`__init__` to customize " @@ -2200,7 +2213,7 @@ msgstr "" "`__init__` から非 ``None`` 値を返してはいけません; そうしてしまうと、実行時" "に :exc:`TypeError` が送出されてしまいます。" -#: ../../reference/datamodel.rst:1433 +#: ../../reference/datamodel.rst:1550 msgid "" "Called when the instance is about to be destroyed. This is also called a " "finalizer or (improperly) a destructor. If a base class has a :meth:" @@ -2215,7 +2228,7 @@ msgstr "" "に呼び出して、インスタンスの基底クラス部分をきちんと確実に削除しなければなり" "ません。" -#: ../../reference/datamodel.rst:1439 +#: ../../reference/datamodel.rst:1556 msgid "" "It is possible (though not recommended!) for the :meth:`__del__` method to " "postpone destruction of the instance by creating a new reference to it. " @@ -2231,7 +2244,7 @@ msgstr "" "うかは実装依存です;\n" "現在の :term:`CPython` の実装では最初の一回しか呼び出されません。" -#: ../../reference/datamodel.rst:1446 +#: ../../reference/datamodel.rst:1563 msgid "" "It is not guaranteed that :meth:`__del__` methods are called for objects " "that still exist when the interpreter exits." @@ -2239,7 +2252,7 @@ msgstr "" "インタプリタが終了したときに、残存しているオブジェクトの :meth:`__del__` メ" "ソッドが呼び出される保証はありません。" -#: ../../reference/datamodel.rst:1451 +#: ../../reference/datamodel.rst:1568 msgid "" "``del x`` doesn't directly call ``x.__del__()`` --- the former decrements " "the reference count for ``x`` by one, and the latter is only called when " @@ -2249,7 +2262,7 @@ msgstr "" "ントを 1 つ減らし、後者は ``x`` の参照カウントが 0 まで落ちたときのみ呼び出さ" "れます。" -#: ../../reference/datamodel.rst:1456 +#: ../../reference/datamodel.rst:1573 msgid "" "It is possible for a reference cycle to prevent the reference count of an " "object from going to zero. In this case, the cycle will be later detected " @@ -2260,11 +2273,11 @@ msgid "" "caught in the traceback." msgstr "" -#: ../../reference/datamodel.rst:1466 +#: ../../reference/datamodel.rst:1583 msgid "Documentation for the :mod:`gc` module." msgstr ":mod:`gc` モジュールのドキュメント。" -#: ../../reference/datamodel.rst:1470 +#: ../../reference/datamodel.rst:1587 msgid "" "Due to the precarious circumstances under which :meth:`__del__` methods are " "invoked, exceptions that occur during their execution are ignored, and a " @@ -2273,7 +2286,7 @@ msgstr "" "メソッド :meth:`__del__` は不安定な状況で呼び出されるため、実行中に発生した例" "外は無視され、代わりに ``sys.stderr`` に警告が表示されます。特に:" -#: ../../reference/datamodel.rst:1474 +#: ../../reference/datamodel.rst:1591 msgid "" ":meth:`__del__` can be invoked when arbitrary code is being executed, " "including from any arbitrary thread. If :meth:`__del__` needs to take a " @@ -2287,7 +2300,7 @@ msgstr "" "必要がある場合、 :meth:`__del__` の実行により中断されたコードにより、そのリ" "ソースが既に取得されていて、デッドロックが起きるかもしれません。" -#: ../../reference/datamodel.rst:1480 +#: ../../reference/datamodel.rst:1597 msgid "" ":meth:`__del__` can be executed during interpreter shutdown. As a " "consequence, the global variables it needs to access (including other " @@ -2306,7 +2319,7 @@ msgstr "" "が呼ばれた時点で、インポートされたモジュールがまだ利用可能であることを保証す" "るのに役立つかもしれません。" -#: ../../reference/datamodel.rst:1495 +#: ../../reference/datamodel.rst:1612 msgid "" "Called by the :func:`repr` built-in function to compute the \"official\" " "string representation of an object. If at all possible, this should look " @@ -2326,7 +2339,7 @@ msgstr "" "スのインスタンスの「非公式の (informal)」文字列表現が要求されたときにも :" "meth:`__repr__` が使われます。" -#: ../../reference/datamodel.rst:1504 +#: ../../reference/datamodel.rst:1621 msgid "" "This is typically used for debugging, so it is important that the " "representation is information-rich and unambiguous." @@ -2334,7 +2347,7 @@ msgstr "" "この関数はデバッグの際によく用いられるので、たくさんの情報を含み、あいまいで" "ないような表記にすることが重要です。" -#: ../../reference/datamodel.rst:1515 +#: ../../reference/datamodel.rst:1632 msgid "" "Called by :func:`str(object) ` and the built-in functions :func:" "`format` and :func:`print` to compute the \"informal\" or nicely printable " @@ -2346,7 +2359,7 @@ msgstr "" "`print` によって呼ばれます。戻り値は :ref:`string ` オブジェクトでな" "ければなりません。" -#: ../../reference/datamodel.rst:1520 +#: ../../reference/datamodel.rst:1637 msgid "" "This method differs from :meth:`object.__repr__` in that there is no " "expectation that :meth:`__str__` return a valid Python expression: a more " @@ -2356,7 +2369,7 @@ msgstr "" "メソッドは :meth:`object.__repr__` とは異なります: より便利な、または簡潔な表" "現を使用することができます。" -#: ../../reference/datamodel.rst:1524 +#: ../../reference/datamodel.rst:1641 msgid "" "The default implementation defined by the built-in type :class:`object` " "calls :meth:`object.__repr__`." @@ -2364,7 +2377,7 @@ msgstr "" "組み込み型 :class:`object` によって定義されたデフォルト実装は、 :meth:" "`object.__repr__` を呼び出します。" -#: ../../reference/datamodel.rst:1534 +#: ../../reference/datamodel.rst:1651 msgid "" "Called by :ref:`bytes ` to compute a byte-string representation " "of an object. This should return a :class:`bytes` object." @@ -2372,7 +2385,7 @@ msgstr "" ":ref:`bytes ` によって呼び出され、オブジェクトのバイト文字列表現" "を計算します。これは :class:`bytes` オブジェクトを返すべきです。" -#: ../../reference/datamodel.rst:1545 +#: ../../reference/datamodel.rst:1662 msgid "" "Called by the :func:`format` built-in function, and by extension, evaluation " "of :ref:`formatted string literals ` and the :meth:`str.format` " @@ -2391,17 +2404,17 @@ msgstr "" "が、 ほとんどのクラスは組み込み型のいずれかにフォーマット化を委譲したり、 同" "じようなフォーマット化オプション構文を使います。" -#: ../../reference/datamodel.rst:1555 +#: ../../reference/datamodel.rst:1672 msgid "" "See :ref:`formatspec` for a description of the standard formatting syntax." msgstr "" "標準のフォーマット構文の解説は、 :ref:`formatspec` を参照してください。" -#: ../../reference/datamodel.rst:1557 +#: ../../reference/datamodel.rst:1674 msgid "The return value must be a string object." msgstr "戻り値は文字列オブジェクトでなければなりません。" -#: ../../reference/datamodel.rst:1559 +#: ../../reference/datamodel.rst:1676 msgid "" "The __format__ method of ``object`` itself raises a :exc:`TypeError` if " "passed any non-empty string." @@ -2409,7 +2422,7 @@ msgstr "" "空でない文字列が渡された場合 ``object`` 自身の __format__ メソッドは :exc:" "`TypeError` を送出します。" -#: ../../reference/datamodel.rst:1563 +#: ../../reference/datamodel.rst:1680 msgid "" "``object.__format__(x, '')`` is now equivalent to ``str(x)`` rather than " "``format(str(x), '')``." @@ -2417,7 +2430,7 @@ msgstr "" "``object.__format__(x, '')`` は ``format(str(x), '')`` ではなく ``str(x)`` と" "等価になりました。" -#: ../../reference/datamodel.rst:1579 +#: ../../reference/datamodel.rst:1696 msgid "" "These are the so-called \"rich comparison\" methods. The correspondence " "between operator symbols and method names is as follows: ``xy`` は ``x." "__gt__(y)`` を呼び出します; ``x>=y`` は ``x.__ge__(y)`` を呼び出します。" -#: ../../reference/datamodel.rst:1585 +#: ../../reference/datamodel.rst:1702 msgid "" "A rich comparison method may return the singleton ``NotImplemented`` if it " "does not implement the operation for a given pair of arguments. By " @@ -2448,7 +2461,7 @@ msgstr "" "値のコンテキスト (たとえば ``if`` 文の条件部分) で使われた場合、 Python はそ" "の値に対して :func:`bool` を呼び出して結果の真偽を判断します。" -#: ../../reference/datamodel.rst:1592 +#: ../../reference/datamodel.rst:1709 msgid "" "By default, ``object`` implements :meth:`__eq__` by using ``is``, returning " "``NotImplemented`` in the case of a false comparison: ``True if x is y else " @@ -2467,7 +2480,7 @@ msgstr "" "``(x` オブジェクトを作るときの重要な注意点について、 :" "meth:`__hash__` のドキュメント内に書かれているので参照してください。" -#: ../../reference/datamodel.rst:1605 +#: ../../reference/datamodel.rst:1722 msgid "" "There are no swapped-argument versions of these methods (to be used when the " "left argument does not support the operation but the right argument does); " @@ -2499,7 +2512,7 @@ msgstr "" "そうでない場合左の被演算子のメソッドが優先されます。\n" "仮想サブクラス化は考慮されません。" -#: ../../reference/datamodel.rst:1622 +#: ../../reference/datamodel.rst:1739 msgid "" "Called by built-in function :func:`hash` and for operations on members of " "hashed collections including :class:`set`, :class:`frozenset`, and :class:" @@ -2518,7 +2531,7 @@ msgstr "" "オブジェクトを比較するときでも利用される要素をタプルに詰めてハッシュ値を計算" "することで、それぞれの要素のハッシュ値を混合することをおすすめします。" -#: ../../reference/datamodel.rst:1635 +#: ../../reference/datamodel.rst:1752 msgid "" ":func:`hash` truncates the value returned from an object's custom :meth:" "`__hash__` method to the size of a :c:type:`Py_ssize_t`. This is typically " @@ -2536,7 +2549,7 @@ msgstr "" "そうする簡単な方法は ``python -c \"import sys; print(sys.hash_info." "width)\"`` を実行することです。" -#: ../../reference/datamodel.rst:1643 +#: ../../reference/datamodel.rst:1760 msgid "" "If a class does not define an :meth:`__eq__` method it should not define a :" "meth:`__hash__` operation either; if it defines :meth:`__eq__` but not :meth:" @@ -2557,7 +2570,7 @@ msgstr "" "クトのハッシュ値が変化すると、誤ったハッシュバケツ: hash bucket に入ってしま" "います)。" -#: ../../reference/datamodel.rst:1652 +#: ../../reference/datamodel.rst:1769 msgid "" "User-defined classes have :meth:`__eq__` and :meth:`__hash__` methods by " "default; with them, all objects compare unequal (except with themselves) and " @@ -2569,7 +2582,7 @@ msgstr "" "り、 ``x.__hash__()`` は ``x == y`` が ``x is y`` と ``hash(x) == hash(y)`` " "の両方を意味するような適切な値を返します。" -#: ../../reference/datamodel.rst:1657 +#: ../../reference/datamodel.rst:1774 msgid "" "A class that overrides :meth:`__eq__` and does not define :meth:`__hash__` " "will have its :meth:`__hash__` implicitly set to ``None``. When the :meth:" @@ -2585,7 +2598,7 @@ msgstr "" "``isinstance(obj, collections.abc.Hashable)`` でチェックするとハッシュ不能な" "ものとして正しく認識されます。" -#: ../../reference/datamodel.rst:1664 +#: ../../reference/datamodel.rst:1781 msgid "" "If a class that overrides :meth:`__eq__` needs to retain the implementation " "of :meth:`__hash__` from a parent class, the interpreter must be told this " @@ -2595,7 +2608,7 @@ msgstr "" "の 実装を保持したいなら、明示的に ``__hash__ = .__hash__`` を設" "定することで、それをインタプリタに伝えなければなりません。" -#: ../../reference/datamodel.rst:1668 +#: ../../reference/datamodel.rst:1785 msgid "" "If a class that does not override :meth:`__eq__` wishes to suppress hash " "support, it should include ``__hash__ = None`` in the class definition. A " @@ -2609,7 +2622,7 @@ msgstr "" "``isinstance(obj, collections.abc.Hashable)`` 呼び出しで誤ってハッシュ可能と" "識別されるでしょう。" -#: ../../reference/datamodel.rst:1677 +#: ../../reference/datamodel.rst:1794 msgid "" "By default, the :meth:`__hash__` values of str and bytes objects are " "\"salted\" with an unpredictable random value. Although they remain " @@ -2620,7 +2633,7 @@ msgstr "" "値で \"ソルト\" されます。 ハッシュ値は単独の Python プロセス内では定数であり" "続けますが、Python を繰り返し起動する毎に、予測できなくなります。" -#: ../../reference/datamodel.rst:1682 +#: ../../reference/datamodel.rst:1799 msgid "" "This is intended to provide protection against a denial-of-service caused by " "carefully chosen inputs that exploit the worst case performance of a dict " @@ -2628,7 +2641,7 @@ msgid "" "ocert-2011-003.html for details." msgstr "" -#: ../../reference/datamodel.rst:1687 +#: ../../reference/datamodel.rst:1804 msgid "" "Changing hash values affects the iteration order of sets. Python has never " "made guarantees about this ordering (and it typically varies between 32-bit " @@ -2637,15 +2650,15 @@ msgstr "" "ハッシュ値の変更は、集合のイテレーション順序に影響します。Python はこの順序付" "けを保証していません (そして通常 32-bit と 64-bit の間でも異なります)。" -#: ../../reference/datamodel.rst:1691 +#: ../../reference/datamodel.rst:1808 msgid "See also :envvar:`PYTHONHASHSEED`." msgstr ":envvar:`PYTHONHASHSEED` も参照してください。" -#: ../../reference/datamodel.rst:1693 +#: ../../reference/datamodel.rst:1810 msgid "Hash randomization is enabled by default." msgstr "ハッシュのランダム化がデフォルトで有効になりました。" -#: ../../reference/datamodel.rst:1701 +#: ../../reference/datamodel.rst:1818 msgid "" "Called to implement truth value testing and the built-in operation " "``bool()``; should return ``False`` or ``True``. When this method is not " @@ -2654,11 +2667,11 @@ msgid "" "meth:`!__len__` nor :meth:`!__bool__`, all its instances are considered true." msgstr "" -#: ../../reference/datamodel.rst:1712 +#: ../../reference/datamodel.rst:1829 msgid "Customizing attribute access" msgstr "属性値アクセスをカスタマイズする" -#: ../../reference/datamodel.rst:1714 +#: ../../reference/datamodel.rst:1831 msgid "" "The following methods can be defined to customize the meaning of attribute " "access (use of, assignment to, or deletion of ``x.name``) for class " @@ -2668,7 +2681,7 @@ msgstr "" "使用、 ``x.name`` への代入、 ``x.name`` の削除) の意味をカスタマイズすること" "ができます。" -#: ../../reference/datamodel.rst:1722 +#: ../../reference/datamodel.rst:1839 msgid "" "Called when the default attribute access fails with an :exc:`AttributeError` " "(either :meth:`__getattribute__` raises an :exc:`AttributeError` because " @@ -2685,7 +2698,7 @@ msgstr "" "このメソッドは (計算された) 属性値を返すか、 :exc:`AttributeError` 例外を送出" "しなければなりません。" -#: ../../reference/datamodel.rst:1729 +#: ../../reference/datamodel.rst:1846 msgid "" "Note that if the attribute is found through the normal mechanism, :meth:" "`__getattr__` is not called. (This is an intentional asymmetry between :" @@ -2706,7 +2719,7 @@ msgstr "" "ます。実際に属性アクセスを完全に制御する方法は、以下の :meth:" "`__getattribute__` メソッドを参照してください。" -#: ../../reference/datamodel.rst:1742 +#: ../../reference/datamodel.rst:1859 msgid "" "Called unconditionally to implement attribute accesses for instances of the " "class. If the class also defines :meth:`__getattr__`, the latter will not be " @@ -2726,7 +2739,7 @@ msgstr "" "で、例えば ``object.__getattribute__(self, name)`` のように基底クラスのメソッ" "ドを同じ属性名を使って呼び出さなければなりません。" -#: ../../reference/datamodel.rst:1753 +#: ../../reference/datamodel.rst:1870 msgid "" "This method may still be bypassed when looking up special methods as the " "result of implicit invocation via language syntax or built-in functions. " @@ -2735,7 +2748,7 @@ msgstr "" "言語構文や組み込み関数から暗黙に呼び出された特殊メソッドの検索では、このメ" "ソッドも回避されることがあります。 :ref:`special-lookup` を参照してください。" -#: ../../reference/datamodel.rst:1757 +#: ../../reference/datamodel.rst:1874 msgid "" "Raises an :ref:`auditing event ` ``object.__getattr__`` with " "arguments ``obj``, ``name``." @@ -2743,7 +2756,7 @@ msgstr "" "``object.__getattr__`` に ``obj`` と ``name`` を渡して実行すると、 :ref:`監査" "イベント ` を送出します。" -#: ../../reference/datamodel.rst:1759 +#: ../../reference/datamodel.rst:1876 msgid "" "For certain sensitive attribute accesses, raises an :ref:`auditing event " "` ``object.__getattr__`` with arguments ``obj`` and ``name``." @@ -2752,7 +2765,7 @@ msgstr "" "__getattr__`` を使った属性アクセスは :ref:`監査イベント ` を送出し" "ます。" -#: ../../reference/datamodel.rst:1766 +#: ../../reference/datamodel.rst:1883 msgid "" "Called when an attribute assignment is attempted. This is called instead of " "the normal mechanism (i.e. store the value in the instance dictionary). " @@ -2762,7 +2775,7 @@ msgstr "" "インスタンス辞書への値の代入) の代わりに呼び出されます。*name* は属性名で、" "*value* はその属性に代入する値です。" -#: ../../reference/datamodel.rst:1770 +#: ../../reference/datamodel.rst:1887 msgid "" "If :meth:`__setattr__` wants to assign to an instance attribute, it should " "call the base class method with the same name, for example, ``object." @@ -2772,7 +2785,7 @@ msgstr "" "れと同じ名前のメソッドを呼び出さなければなりません。例えば、 ``object." "__setattr__(self, name, value)`` とします。" -#: ../../reference/datamodel.rst:1774 +#: ../../reference/datamodel.rst:1891 msgid "" "Raises an :ref:`auditing event ` ``object.__setattr__`` with " "arguments ``obj``, ``name``, ``value``." @@ -2780,7 +2793,7 @@ msgstr "" "``object.__setattr__`` に ``obj`` と ``name`` と ``value`` を渡して実行する" "と、 :ref:`監査イベント ` を送出します。" -#: ../../reference/datamodel.rst:1776 +#: ../../reference/datamodel.rst:1893 msgid "" "For certain sensitive attribute assignments, raises an :ref:`auditing event " "` ``object.__setattr__`` with arguments ``obj``, ``name``, " @@ -2790,7 +2803,7 @@ msgstr "" "``object.__setattr__`` を使った属性のアサインは :ref:`監査イベント " "` を送出します。" -#: ../../reference/datamodel.rst:1783 +#: ../../reference/datamodel.rst:1900 msgid "" "Like :meth:`__setattr__` but for attribute deletion instead of assignment. " "This should only be implemented if ``del obj.name`` is meaningful for the " @@ -2800,7 +2813,7 @@ msgstr "" "ソッドを実装するのは、オブジェクトにとって ``del obj.name`` が意味がある場合" "だけにしなければなりません。" -#: ../../reference/datamodel.rst:1786 +#: ../../reference/datamodel.rst:1903 msgid "" "Raises an :ref:`auditing event ` ``object.__delattr__`` with " "arguments ``obj``, ``name``." @@ -2808,7 +2821,7 @@ msgstr "" "``object.__delattr__`` に ``obj`` と ``name`` を渡して実行すると、 :ref:`監査" "イベント ` を送出します。" -#: ../../reference/datamodel.rst:1788 +#: ../../reference/datamodel.rst:1905 msgid "" "For certain sensitive attribute deletions, raises an :ref:`auditing event " "` ``object.__delattr__`` with arguments ``obj`` and ``name``." @@ -2817,7 +2830,7 @@ msgstr "" "__getattr__`` を使った属性の削除は :ref:`監査イベント ` を送出しま" "す。" -#: ../../reference/datamodel.rst:1795 +#: ../../reference/datamodel.rst:1912 msgid "" "Called when :func:`dir` is called on the object. A sequence must be " "returned. :func:`dir` converts the returned sequence to a list and sorts it." @@ -2826,11 +2839,11 @@ msgstr "" "されなければなりません。 :func:`dir` は返されたシーケンスをリストに変換し、" "ソートします。" -#: ../../reference/datamodel.rst:1800 +#: ../../reference/datamodel.rst:1917 msgid "Customizing module attribute access" msgstr "モジュールの属性値アクセスをカスタマイズする" -#: ../../reference/datamodel.rst:1807 +#: ../../reference/datamodel.rst:1924 msgid "" "Special names ``__getattr__`` and ``__dir__`` can be also used to customize " "access to module attributes. The ``__getattr__`` function at the module " @@ -2850,7 +2863,7 @@ msgstr "" "前に、モジュールの ``__dict__`` から ``__getattr__`` が検索されます。\n" "見付かった場合は、その属性名で呼び出され、結果が返されます。" -#: ../../reference/datamodel.rst:1816 +#: ../../reference/datamodel.rst:1933 msgid "" "The ``__dir__`` function should accept no arguments, and return a sequence " "of strings that represents the names accessible on module. If present, this " @@ -2860,7 +2873,7 @@ msgstr "" "列のシーケンスを返さなければなりません。存在する場合は、この関数はモジュール" "の標準の :func:`dir` 検索を上書きします。" -#: ../../reference/datamodel.rst:1820 +#: ../../reference/datamodel.rst:1937 msgid "" "For a more fine grained customization of the module behavior (setting " "attributes, properties, etc.), one can set the ``__class__`` attribute of a " @@ -2871,7 +2884,7 @@ msgstr "" "ModuleType` のサブクラスが設定できます。\n" "例えば次のようになります::" -#: ../../reference/datamodel.rst:1838 +#: ../../reference/datamodel.rst:1955 msgid "" "Defining module ``__getattr__`` and setting module ``__class__`` only affect " "lookups made using the attribute access syntax -- directly accessing the " @@ -2883,27 +2896,27 @@ msgstr "" "globals への直接アクセスは (モジュール内のコードからとモジュールの globals の" "どちらでも) 影響を受けません。" -#: ../../reference/datamodel.rst:1843 +#: ../../reference/datamodel.rst:1960 msgid "``__class__`` module attribute is now writable." msgstr "モジュールの属性 ``__class__`` が書き込み可能になりました。" -#: ../../reference/datamodel.rst:1846 +#: ../../reference/datamodel.rst:1963 msgid "``__getattr__`` and ``__dir__`` module attributes." msgstr "``__getattr__`` モジュール属性と ``__dir__`` モジュール属性。" -#: ../../reference/datamodel.rst:1851 +#: ../../reference/datamodel.rst:1968 msgid ":pep:`562` - Module __getattr__ and __dir__" msgstr ":pep:`562` - モジュールの __getattr__ と __dir__" -#: ../../reference/datamodel.rst:1852 +#: ../../reference/datamodel.rst:1969 msgid "Describes the ``__getattr__`` and ``__dir__`` functions on modules." msgstr "モジュールの ``__getattr__`` 関数および ``__dir__`` 関数の説明。" -#: ../../reference/datamodel.rst:1858 +#: ../../reference/datamodel.rst:1975 msgid "Implementing Descriptors" msgstr "デスクリプタ (descriptor) の実装" -#: ../../reference/datamodel.rst:1860 +#: ../../reference/datamodel.rst:1977 msgid "" "The following methods only apply when an instance of the class containing " "the method (a so-called *descriptor* class) appears in an *owner* class (the " @@ -2919,7 +2932,7 @@ msgstr "" "以下の例では、\"属性\" とは、名前がオーナークラスの :attr:`~object.__dict__` " "のプロパティ (porperty) のキーであるような属性を指します。" -#: ../../reference/datamodel.rst:1870 +#: ../../reference/datamodel.rst:1987 msgid "" "Called to get the attribute of the owner class (class attribute access) or " "of an instance of that class (instance attribute access). The optional " @@ -2932,7 +2945,7 @@ msgstr "" "性をアクセスする時に、オプションの *owner* 引数はオーナークラスです。 " "*owner* を通じて属性アクセスするときは ``None`` です。" -#: ../../reference/datamodel.rst:1876 +#: ../../reference/datamodel.rst:1993 msgid "" "This method should return the computed attribute value or raise an :exc:" "`AttributeError` exception." @@ -2940,7 +2953,7 @@ msgstr "" "このメソッドは、算出された属性値を返すか、 :exc:`AttributeError` 例外を送出し" "ます。" -#: ../../reference/datamodel.rst:1879 +#: ../../reference/datamodel.rst:1996 msgid "" ":PEP:`252` specifies that :meth:`__get__` is callable with one or two " "arguments. Python's own built-in descriptors support this specification; " @@ -2955,7 +2968,7 @@ msgstr "" "ます。Pythonの :meth:`__getattribute__` 実装は必要かどうかに関わらず、両方の" "引数を常に渡します。" -#: ../../reference/datamodel.rst:1888 +#: ../../reference/datamodel.rst:2005 msgid "" "Called to set the attribute on an instance *instance* of the owner class to " "a new value, *value*." @@ -2963,7 +2976,7 @@ msgstr "" "オーナークラスのインスタンス *instance* 上の属性を新たな値 *value* に設定する" "際に呼び出されます。" -#: ../../reference/datamodel.rst:1891 +#: ../../reference/datamodel.rst:2008 msgid "" "Note, adding :meth:`__set__` or :meth:`__delete__` changes the kind of " "descriptor to a \"data descriptor\". See :ref:`descriptor-invocation` for " @@ -2973,16 +2986,22 @@ msgstr "" "「データデスクリプタ」に変わります。詳細は :ref:`descriptor-invocation` を参" "照してください。" -#: ../../reference/datamodel.rst:1897 +#: ../../reference/datamodel.rst:2014 msgid "" "Called to delete the attribute on an instance *instance* of the owner class." msgstr "" "オーナークラスのインスタンス *instance* 上の属性を削除する際に呼び出されま" "す。" -#: ../../reference/datamodel.rst:1900 +#: ../../reference/datamodel.rst:2016 msgid "" -"The attribute :attr:`__objclass__` is interpreted by the :mod:`inspect` " +"Instances of descriptors may also have the :attr:`!__objclass__` attribute " +"present:" +msgstr "" + +#: ../../reference/datamodel.rst:2021 +msgid "" +"The attribute :attr:`!__objclass__` is interpreted by the :mod:`inspect` " "module as specifying the class where this object was defined (setting this " "appropriately can assist in runtime introspection of dynamic class " "attributes). For callables, it may indicate that an instance of the given " @@ -2990,19 +3009,12 @@ msgid "" "argument (for example, CPython sets this attribute for unbound methods that " "are implemented in C)." msgstr "" -":attr:`__objclass__` 属性は :mod:`inspect` モジュールによって解釈され、このオ" -"ブジェクトが定義されたクラスを特定するのに使われます (この属性を適切に設定し" -"ておくと、動的なクラスの属性を実行時に調べる助けになります)。\n" -"呼び出される側にとっては、この属性で指定されたクラス (もしくはそのサブクラ" -"ス) のインスタンスが1番目の位置引数として期待もしくは要求されていることが示せ" -"ます (例えば、 CPython は束縛されていない C で実行されたメソッドにこの属性を" -"設定します)。" -#: ../../reference/datamodel.rst:1911 +#: ../../reference/datamodel.rst:2032 msgid "Invoking Descriptors" msgstr "デスクリプタの呼び出し" -#: ../../reference/datamodel.rst:1913 +#: ../../reference/datamodel.rst:2034 msgid "" "In general, a descriptor is an object attribute with \"binding behavior\", " "one whose attribute access has been overridden by methods in the descriptor " @@ -3017,7 +3029,7 @@ msgstr "" "ライドしているものです。これらのメソッドのいずれかがオブジェクトに対して定義" "されている場合、オブジェクトはデスクリプタであるといいます。" -#: ../../reference/datamodel.rst:1919 +#: ../../reference/datamodel.rst:2040 msgid "" "The default behavior for attribute access is to get, set, or delete the " "attribute from an object's dictionary. For instance, ``a.x`` has a lookup " @@ -3030,7 +3042,7 @@ msgstr "" "``type(a)`` の基底クラスでメタクラスでないものに続く、といった具合に連鎖が起" "こります。" -#: ../../reference/datamodel.rst:1924 +#: ../../reference/datamodel.rst:2045 msgid "" "However, if the looked-up value is an object defining one of the descriptor " "methods, then Python may override the default behavior and invoke the " @@ -3043,7 +3055,7 @@ msgstr "" "出されるかは、どのデスクリプタメソッドが定義されていて、どのように呼び出され" "たかに依存します。" -#: ../../reference/datamodel.rst:1929 +#: ../../reference/datamodel.rst:2050 msgid "" "The starting point for descriptor invocation is a binding, ``a.x``. How the " "arguments are assembled depends on ``a``:" @@ -3052,11 +3064,11 @@ msgstr "" "``a.x`` です。引数がどのようにデスクリプタに結合されるかは ``a`` に依存しま" "す:" -#: ../../reference/datamodel.rst:1934 +#: ../../reference/datamodel.rst:2055 msgid "Direct Call" msgstr "直接呼び出し (Direct Call)" -#: ../../reference/datamodel.rst:1933 +#: ../../reference/datamodel.rst:2054 msgid "" "The simplest and least common call is when user code directly invokes a " "descriptor method: ``x.__get__(a)``." @@ -3064,11 +3076,11 @@ msgstr "" "最も単純で、かつめったに使われない呼び出し操作は、コード中で直接デスクリプタ" "メソッドの呼び出し: ``x.__get__(a)`` を行うというものです。" -#: ../../reference/datamodel.rst:1938 +#: ../../reference/datamodel.rst:2059 msgid "Instance Binding" msgstr "インスタンス束縛 (Instance Binding)" -#: ../../reference/datamodel.rst:1937 +#: ../../reference/datamodel.rst:2058 msgid "" "If binding to an object instance, ``a.x`` is transformed into the call: " "``type(a).__dict__['x'].__get__(a, type(a))``." @@ -3076,11 +3088,11 @@ msgstr "" "オブジェクトインスタンスへ束縛すると、``a.x`` は呼び出し ``type(a)." "__dict__['x'].__get__(a, type(a))`` に変換されます。" -#: ../../reference/datamodel.rst:1942 +#: ../../reference/datamodel.rst:2063 msgid "Class Binding" msgstr "クラス束縛 (Class Binding)" -#: ../../reference/datamodel.rst:1941 +#: ../../reference/datamodel.rst:2062 msgid "" "If binding to a class, ``A.x`` is transformed into the call: ``A." "__dict__['x'].__get__(None, A)``." @@ -3088,11 +3100,11 @@ msgstr "" "クラスへ束縛すると、``A.x`` は呼び出し ``A.__dict__['x'].__get__(None, A)`` " "に変換されます。" -#: ../../reference/datamodel.rst:1948 +#: ../../reference/datamodel.rst:2069 msgid "Super Binding" msgstr "super 束縛 (Super Binding)" -#: ../../reference/datamodel.rst:1945 +#: ../../reference/datamodel.rst:2066 msgid "" "A dotted lookup such as ``super(A, a).x`` searches ``a.__class__.__mro__`` " "for a base class ``B`` following ``A`` and then returns ``B.__dict__['x']." @@ -3103,37 +3115,25 @@ msgstr "" "__dict__['x'].__get__(a, A)`` を返します。もしデスクリプタでなければ ``x`` を" "変更せずに返します。" -#: ../../reference/datamodel.rst:1982 +#: ../../reference/datamodel.rst:2103 msgid "" "For instance bindings, the precedence of descriptor invocation depends on " "which descriptor methods are defined. A descriptor can define any " "combination of :meth:`~object.__get__`, :meth:`~object.__set__` and :meth:" -"`~object.__delete__`. If it does not define :meth:`__get__`, then accessing " -"the attribute will return the descriptor object itself unless there is a " -"value in the object's instance dictionary. If the descriptor defines :meth:" -"`__set__` and/or :meth:`__delete__`, it is a data descriptor; if it defines " -"neither, it is a non-data descriptor. Normally, data descriptors define " -"both :meth:`__get__` and :meth:`__set__`, while non-data descriptors have " -"just the :meth:`__get__` method. Data descriptors with :meth:`__get__` and :" -"meth:`__set__` (and/or :meth:`__delete__`) defined always override a " -"redefinition in an instance dictionary. In contrast, non-data descriptors " -"can be overridden by instances." -msgstr "" -"インスタンス束縛では、デスクリプタ呼び出しの優先順位はどのデスクリプタが定義" -"されているかに依存します。データデスクリプタは、 :meth:`~object.__get__` と :" -"meth:`~object.__set__` 、 :meth:`~object.__delete__` の任意の組合せを定義する" -"ことができます。 :meth:`__get__` が定義されない場合には、その属性にアクセスす" -"ると、そのオブジェクトのインスタンス辞書にその値がある場合を除けば、デスクリ" -"プタオブジェクト自身が返ってきます。デスクリプタが :meth:`__set__` と :meth:" -"`__delete__` またはそのどちらかを定義していれば、データデスクリプタとなりま" -"す; もし両方とも定義しなければ、非データデスクリプタです。通常、データデスク" -"リプタでは、 :meth:`__get__` と :meth:`__set__` を定義し、一方、非データデス" -"クリプタには :meth:`__get__` メソッドしかありません。 :meth:`__set__` と :" -"meth:`__get__` を定義したデータデスクリプタは、インスタンス辞書内で属性値が再" -"定義されても、常にこの値をオーバライドします。対照的に、非データデスクリプタ" -"の場合には、属性値はインスタンス側でオーバライドされます。" +"`~object.__delete__`. If it does not define :meth:`!__get__`, then " +"accessing the attribute will return the descriptor object itself unless " +"there is a value in the object's instance dictionary. If the descriptor " +"defines :meth:`!__set__` and/or :meth:`!__delete__`, it is a data " +"descriptor; if it defines neither, it is a non-data descriptor. Normally, " +"data descriptors define both :meth:`!__get__` and :meth:`!__set__`, while " +"non-data descriptors have just the :meth:`!__get__` method. Data " +"descriptors with :meth:`!__get__` and :meth:`!__set__` (and/or :meth:`!" +"__delete__`) defined always override a redefinition in an instance " +"dictionary. In contrast, non-data descriptors can be overridden by " +"instances." +msgstr "" -#: ../../reference/datamodel.rst:1996 +#: ../../reference/datamodel.rst:2118 msgid "" "Python methods (including those decorated with :func:`@staticmethod " "` and :func:`@classmethod `) are implemented as " @@ -3147,7 +3147,7 @@ msgstr "" "より、個々のインスタンスが同じクラスの他のインスタンスと互いに異なる動作を獲" "得することができます。" -#: ../../reference/datamodel.rst:2002 +#: ../../reference/datamodel.rst:2124 msgid "" "The :func:`property` function is implemented as a data descriptor. " "Accordingly, instances cannot override the behavior of a property." @@ -3155,11 +3155,11 @@ msgstr "" ":func:`property` 関数はデータデスクリプタとして実装されています。従って、イン" "スタンスはあるプロパティの動作をオーバーライドすることができません。" -#: ../../reference/datamodel.rst:2009 +#: ../../reference/datamodel.rst:2131 msgid "__slots__" msgstr "__slots__" -#: ../../reference/datamodel.rst:2011 +#: ../../reference/datamodel.rst:2133 msgid "" "*__slots__* allow us to explicitly declare data members (like properties) " "and deny the creation of :attr:`~object.__dict__` and *__weakref__* (unless " @@ -3169,7 +3169,7 @@ msgstr "" "示的に *__slots__* で宣言しているか親クラスに存在しているかでない限り) :attr:" "`~object.__dict__` や *__weakref__* を作成しないようにできます。" -#: ../../reference/datamodel.rst:2015 +#: ../../reference/datamodel.rst:2137 msgid "" "The space saved over using :attr:`~object.__dict__` can be significant. " "Attribute lookup speed can be significantly improved as well." @@ -3178,7 +3178,7 @@ msgstr "" "です。\n" "属性探索のスピードもかなり向上できます。" -#: ../../reference/datamodel.rst:2020 +#: ../../reference/datamodel.rst:2142 msgid "" "This class variable can be assigned a string, iterable, or sequence of " "strings with variable names used by instances. *__slots__* reserves space " @@ -3190,11 +3190,11 @@ msgstr "" "宣言された変数に必要な記憶領域を確保し、:attr:`~object.__dict__` と " "*__weakref__* が自動的に生成されないようにします。" -#: ../../reference/datamodel.rst:2029 +#: ../../reference/datamodel.rst:2151 msgid "Notes on using *__slots__*:" msgstr "" -#: ../../reference/datamodel.rst:2031 +#: ../../reference/datamodel.rst:2153 msgid "" "When inheriting from a class without *__slots__*, the :attr:`~object." "__dict__` and *__weakref__* attribute of the instances will always be " @@ -3203,7 +3203,7 @@ msgstr "" "*__slots__* を持たないクラスから継承するとき、インスタンスの :attr:`~object." "__dict__` 属性と *__weakref__* 属性は常に利用可能です。" -#: ../../reference/datamodel.rst:2035 +#: ../../reference/datamodel.rst:2157 msgid "" "Without a :attr:`~object.__dict__` variable, instances cannot be assigned " "new variables not listed in the *__slots__* definition. Attempts to assign " @@ -3217,7 +3217,7 @@ msgstr "" "的に代入したいのなら、 *__slots__* を宣言する際に ``'__dict__'`` を変数名の" "シーケンスに追加してください。" -#: ../../reference/datamodel.rst:2042 +#: ../../reference/datamodel.rst:2164 msgid "" "Without a *__weakref__* variable for each instance, classes defining " "*__slots__* do not support :mod:`weak references ` to its " @@ -3229,7 +3229,7 @@ msgstr "" "されません。弱参照のサポートが必要なら、 *__slots__* を宣言する際に " "``'__weakref__'`` を変数名のシーケンスに追加してください。" -#: ../../reference/datamodel.rst:2048 +#: ../../reference/datamodel.rst:2170 msgid "" "*__slots__* are implemented at the class level by creating :ref:`descriptors " "` for each variable name. As a result, class attributes cannot " @@ -3241,7 +3241,7 @@ msgstr "" "インスタンス変数のデフォルト値はクラス属性を使って設定できなくなっています; " "そうしないと、デスクリプタによる代入をクラス属性が上書きしてしまうからです。" -#: ../../reference/datamodel.rst:2054 +#: ../../reference/datamodel.rst:2176 msgid "" "The action of a *__slots__* declaration is not limited to the class where it " "is defined. *__slots__* declared in parents are available in child classes. " @@ -3255,7 +3255,7 @@ msgstr "" "含めるべき) を定義しない限り :attr:`~object.__dict__` や *__weakref__* を持ち" "ます。" -#: ../../reference/datamodel.rst:2060 +#: ../../reference/datamodel.rst:2182 msgid "" "If a class defines a slot also defined in a base class, the instance " "variable defined by the base class slot is inaccessible (except by " @@ -3269,7 +3269,7 @@ msgstr "" "が不定になってしまいます。将来は、この問題を避けるために何らかのチェックが追" "加されるかもしれません。" -#: ../../reference/datamodel.rst:2065 +#: ../../reference/datamodel.rst:2187 msgid "" ":exc:`TypeError` will be raised if nonempty *__slots__* are defined for a " "class derived from a :c:member:`\"variable-length\" built-in type " @@ -3277,11 +3277,11 @@ msgid "" "`tuple`." msgstr "" -#: ../../reference/datamodel.rst:2070 +#: ../../reference/datamodel.rst:2192 msgid "Any non-string :term:`iterable` may be assigned to *__slots__*." msgstr "" -#: ../../reference/datamodel.rst:2072 +#: ../../reference/datamodel.rst:2194 msgid "" "If a :class:`dictionary ` is used to assign *__slots__*, the " "dictionary keys will be used as the slot names. The values of the dictionary " @@ -3289,7 +3289,7 @@ msgid "" "func:`inspect.getdoc` and displayed in the output of :func:`help`." msgstr "" -#: ../../reference/datamodel.rst:2077 +#: ../../reference/datamodel.rst:2199 msgid "" ":attr:`~instance.__class__` assignment works only if both classes have the " "same *__slots__*." @@ -3297,7 +3297,7 @@ msgstr "" ":attr:`~instance.__class__` への代入は、両方のクラスが同じ *__slots__* を持っ" "ているときのみ動作します。" -#: ../../reference/datamodel.rst:2080 +#: ../../reference/datamodel.rst:2202 msgid "" ":ref:`Multiple inheritance ` with multiple slotted parent " "classes can be used, but only one parent is allowed to have attributes " @@ -3309,7 +3309,7 @@ msgstr "" "スのスロットは空でなければなりません) - それに違反すると :exc:`TypeError` が" "送出されます。" -#: ../../reference/datamodel.rst:2086 +#: ../../reference/datamodel.rst:2208 msgid "" "If an :term:`iterator` is used for *__slots__* then a :term:`descriptor` is " "created for each of the iterator's values. However, the *__slots__* " @@ -3319,11 +3319,11 @@ msgstr "" "レータの値ごとに :term:`デスクリプタ ` が作られます。しかし、 " "*__slots__* 属性は空のイテレータとなります。" -#: ../../reference/datamodel.rst:2094 +#: ../../reference/datamodel.rst:2216 msgid "Customizing class creation" msgstr "クラス生成をカスタマイズする" -#: ../../reference/datamodel.rst:2096 +#: ../../reference/datamodel.rst:2218 msgid "" "Whenever a class inherits from another class, :meth:`~object." "__init_subclass__` is called on the parent class. This way, it is possible " @@ -3339,7 +3339,7 @@ msgstr "" "して、 ``__init_subclass__`` は、もっぱら、このメソッドを定義したクラスの将来" "のサブクラスに適用されます。" -#: ../../reference/datamodel.rst:2105 +#: ../../reference/datamodel.rst:2227 msgid "" "This method is called whenever the containing class is subclassed. *cls* is " "then the new subclass. If defined as a normal instance method, this method " @@ -3349,7 +3349,7 @@ msgstr "" "*cls* は新しいサブクラスです。もし、このメソッドがインスタンスメソッドとして" "定義されると、暗黙的にクラスメソッドに変換されます。" -#: ../../reference/datamodel.rst:2109 +#: ../../reference/datamodel.rst:2231 msgid "" "Keyword arguments which are given to a new class are passed to the parent's " "class ``__init_subclass__``. For compatibility with other classes using " @@ -3361,7 +3361,7 @@ msgstr "" "に、以下のコードのように必要なキーワード引数を取得したら、他の引数は基底クラ" "スに引き渡すべきです::" -#: ../../reference/datamodel.rst:2123 +#: ../../reference/datamodel.rst:2245 msgid "" "The default implementation ``object.__init_subclass__`` does nothing, but " "raises an error if it is called with any arguments." @@ -3369,7 +3369,7 @@ msgstr "" "``object.__init_subclass__`` のデフォルト実装は何も行いませんが、何らかの引数" "とともに呼び出された場合は、エラーを送出します。" -#: ../../reference/datamodel.rst:2128 +#: ../../reference/datamodel.rst:2250 msgid "" "The metaclass hint ``metaclass`` is consumed by the rest of the type " "machinery, and is never passed to ``__init_subclass__`` implementations. The " @@ -3381,13 +3381,13 @@ msgstr "" "実際のメタクラス (明示的なヒントではなく) は、 ``type(cls)`` としてアクセスで" "きます。" -#: ../../reference/datamodel.rst:2136 +#: ../../reference/datamodel.rst:2258 msgid "" "When a class is created, :meth:`type.__new__` scans the class variables and " "makes callbacks to those with a :meth:`~object.__set_name__` hook." msgstr "" -#: ../../reference/datamodel.rst:2141 +#: ../../reference/datamodel.rst:2263 msgid "" "Automatically called at the time the owning class *owner* is created. The " "object has been assigned to *name* in that class::" @@ -3395,22 +3395,22 @@ msgstr "" "オーナーとなるクラス *owner* が作成された時点で自動的に呼び出されます。\n" "オブジェクトはそのクラスの *name* に割り当てられます。" -#: ../../reference/datamodel.rst:2147 +#: ../../reference/datamodel.rst:2269 msgid "" "If the class variable is assigned after the class is created, :meth:" "`__set_name__` will not be called automatically. If needed, :meth:" "`__set_name__` can be called directly::" msgstr "" -#: ../../reference/datamodel.rst:2158 +#: ../../reference/datamodel.rst:2280 msgid "See :ref:`class-object-creation` for more details." msgstr "詳細は :ref:`class-object-creation` を参照してください。" -#: ../../reference/datamodel.rst:2166 +#: ../../reference/datamodel.rst:2288 msgid "Metaclasses" msgstr "メタクラス" -#: ../../reference/datamodel.rst:2173 +#: ../../reference/datamodel.rst:2295 msgid "" "By default, classes are constructed using :func:`type`. The class body is " "executed in a new namespace and the class name is bound locally to the " @@ -3420,7 +3420,7 @@ msgstr "" "い名前空間で実行され、クラス名が ``type(name, bases, namespace)`` の結果に" "ローカルに束縛されます。" -#: ../../reference/datamodel.rst:2177 +#: ../../reference/datamodel.rst:2299 msgid "" "The class creation process can be customized by passing the ``metaclass`` " "keyword argument in the class definition line, or by inheriting from an " @@ -3433,7 +3433,7 @@ msgstr "" "次の例で ``MyClass`` と ``MySubclass`` は両方とも ``Meta`` のインスタンスで" "す::" -#: ../../reference/datamodel.rst:2191 +#: ../../reference/datamodel.rst:2313 msgid "" "Any other keyword arguments that are specified in the class definition are " "passed through to all metaclass operations described below." @@ -3441,35 +3441,35 @@ msgstr "" "クラス定義の中で指定された他のキーワード引数は、後述するすべてのメタクラス操" "作に渡されます。" -#: ../../reference/datamodel.rst:2194 +#: ../../reference/datamodel.rst:2316 msgid "When a class definition is executed, the following steps occur:" msgstr "クラス定義が実行される際に、以下のステップが生じます:" -#: ../../reference/datamodel.rst:2196 +#: ../../reference/datamodel.rst:2318 msgid "MRO entries are resolved;" msgstr "MRO エントリの解決が行われる;" -#: ../../reference/datamodel.rst:2197 +#: ../../reference/datamodel.rst:2319 msgid "the appropriate metaclass is determined;" msgstr "適切なメタクラスが決定される;" -#: ../../reference/datamodel.rst:2198 +#: ../../reference/datamodel.rst:2320 msgid "the class namespace is prepared;" msgstr "クラスの名前空間が準備される;" -#: ../../reference/datamodel.rst:2199 +#: ../../reference/datamodel.rst:2321 msgid "the class body is executed;" msgstr "クラスの本体が実行される;" -#: ../../reference/datamodel.rst:2200 +#: ../../reference/datamodel.rst:2322 msgid "the class object is created." msgstr "クラスオブジェクトが作られる。" -#: ../../reference/datamodel.rst:2204 +#: ../../reference/datamodel.rst:2326 msgid "Resolving MRO entries" msgstr "MRO エントリの解決" -#: ../../reference/datamodel.rst:2208 +#: ../../reference/datamodel.rst:2330 msgid "" "If a base that appears in a class definition is not an instance of :class:" "`type`, then an :meth:`!__mro_entries__` method is searched on the base. If " @@ -3481,48 +3481,48 @@ msgid "" "is ignored." msgstr "" -#: ../../reference/datamodel.rst:2220 +#: ../../reference/datamodel.rst:2342 msgid ":func:`types.resolve_bases`" msgstr "" -#: ../../reference/datamodel.rst:2220 +#: ../../reference/datamodel.rst:2342 msgid "Dynamically resolve bases that are not instances of :class:`type`." msgstr "" -#: ../../reference/datamodel.rst:2224 +#: ../../reference/datamodel.rst:2346 msgid ":func:`types.get_original_bases`" msgstr "" -#: ../../reference/datamodel.rst:2223 +#: ../../reference/datamodel.rst:2345 msgid "" "Retrieve a class's \"original bases\" prior to modifications by :meth:" "`~object.__mro_entries__`." msgstr "" -#: ../../reference/datamodel.rst:2226 +#: ../../reference/datamodel.rst:2348 msgid ":pep:`560`" msgstr "" -#: ../../reference/datamodel.rst:2227 +#: ../../reference/datamodel.rst:2349 msgid "Core support for typing module and generic types." msgstr "" -#: ../../reference/datamodel.rst:2231 +#: ../../reference/datamodel.rst:2353 msgid "Determining the appropriate metaclass" msgstr "適切なメタクラスの決定" -#: ../../reference/datamodel.rst:2235 +#: ../../reference/datamodel.rst:2357 msgid "" "The appropriate metaclass for a class definition is determined as follows:" msgstr "クラス定義に対して適切なメタクラスは、以下のように決定されます:" -#: ../../reference/datamodel.rst:2237 +#: ../../reference/datamodel.rst:2359 msgid "" "if no bases and no explicit metaclass are given, then :func:`type` is used;" msgstr "" "基底も明示的なメタクラスも与えられていない場合は、 :func:`type` が使われます;" -#: ../../reference/datamodel.rst:2238 +#: ../../reference/datamodel.rst:2360 msgid "" "if an explicit metaclass is given and it is *not* an instance of :func:" "`type`, then it is used directly as the metaclass;" @@ -3530,7 +3530,7 @@ msgstr "" "明示的なメタクラスが与えられていて、それが :func:`type` のインスタンス *では" "ない* 場合、それをメタクラスとして直接使います;" -#: ../../reference/datamodel.rst:2240 +#: ../../reference/datamodel.rst:2362 msgid "" "if an instance of :func:`type` is given as the explicit metaclass, or bases " "are defined, then the most derived metaclass is used." @@ -3539,7 +3539,7 @@ msgstr "" "義されていた場合は、最も派生した (継承関係で最も下の) メタクラスが使われま" "す。" -#: ../../reference/datamodel.rst:2243 +#: ../../reference/datamodel.rst:2365 msgid "" "The most derived metaclass is selected from the explicitly specified " "metaclass (if any) and the metaclasses (i.e. ``type(cls)``) of all specified " @@ -3553,11 +3553,11 @@ msgstr "" "ス候補のどれもその基準を満たさなければ、クラス定義は ``TypeError`` で失敗しま" "す。" -#: ../../reference/datamodel.rst:2253 +#: ../../reference/datamodel.rst:2375 msgid "Preparing the class namespace" msgstr "クラスの名前空間の準備" -#: ../../reference/datamodel.rst:2258 +#: ../../reference/datamodel.rst:2380 msgid "" "Once the appropriate metaclass has been identified, then the class namespace " "is prepared. If the metaclass has a ``__prepare__`` attribute, it is called " @@ -3576,7 +3576,7 @@ msgstr "" "て返した名前空間は ``__new__`` に渡されますが、最終的なクラスオブジェクトは新" "しい ``dict`` にコピーして作成されます。" -#: ../../reference/datamodel.rst:2267 +#: ../../reference/datamodel.rst:2389 msgid "" "If the metaclass has no ``__prepare__`` attribute, then the class namespace " "is initialised as an empty ordered mapping." @@ -3584,19 +3584,19 @@ msgstr "" "メタクラスに ``__prepare__`` 属性がない場合、クラスの名前空間は空の 順序付き" "マッピングとして初期化されます。" -#: ../../reference/datamodel.rst:2272 +#: ../../reference/datamodel.rst:2394 msgid ":pep:`3115` - Metaclasses in Python 3000" msgstr ":pep:`3115` - Metaclasses in Python 3000" -#: ../../reference/datamodel.rst:2273 +#: ../../reference/datamodel.rst:2395 msgid "Introduced the ``__prepare__`` namespace hook" msgstr "``__prepare__`` 名前空間フックの導入" -#: ../../reference/datamodel.rst:2277 +#: ../../reference/datamodel.rst:2399 msgid "Executing the class body" msgstr "クラス本体の実行" -#: ../../reference/datamodel.rst:2282 +#: ../../reference/datamodel.rst:2404 msgid "" "The class body is executed (approximately) as ``exec(body, globals(), " "namespace)``. The key difference from a normal call to :func:`exec` is that " @@ -3609,7 +3609,7 @@ msgstr "" "われる場合、レキシカルスコープによってクラス本体 (任意のメソッドを含む) が現" "在のスコープと外側のスコープから名前を参照できるという点です。" -#: ../../reference/datamodel.rst:2288 +#: ../../reference/datamodel.rst:2410 msgid "" "However, even when the class definition occurs inside the function, methods " "defined inside the class still cannot see names defined at the class scope. " @@ -3623,11 +3623,11 @@ msgstr "" "説明する、暗黙的に静的スコープが切られている ``__class__`` 参照からアクセスし" "なければなりません。" -#: ../../reference/datamodel.rst:2297 +#: ../../reference/datamodel.rst:2419 msgid "Creating the class object" msgstr "クラスオブジェクトの作成" -#: ../../reference/datamodel.rst:2304 +#: ../../reference/datamodel.rst:2426 msgid "" "Once the class namespace has been populated by executing the class body, the " "class object is created by calling ``metaclass(name, bases, namespace, " @@ -3638,7 +3638,7 @@ msgstr "" "bases, namespace, **kwds)`` を呼び出すことでクラスオブジェクトが作成されます " "(ここで渡される追加のキーワードは ``__prepare__`` に渡されるものと同じです)。" -#: ../../reference/datamodel.rst:2309 +#: ../../reference/datamodel.rst:2431 msgid "" "This class object is the one that will be referenced by the zero-argument " "form of :func:`super`. ``__class__`` is an implicit closure reference " @@ -3656,7 +3656,7 @@ msgstr "" "`super` の無引数形式がレキシカルスコープに基づいて定義されているクラスを正確" "に識別することを可能にします。" -#: ../../reference/datamodel.rst:2319 +#: ../../reference/datamodel.rst:2441 msgid "" "In CPython 3.6 and later, the ``__class__`` cell is passed to the metaclass " "as a ``__classcell__`` entry in the class namespace. If present, this must " @@ -3670,7 +3670,7 @@ msgstr "" "に、 ``type.__new__`` の呼び出しに到達するまで上に伝搬されます。\n" "失敗した場合は、Python 3.8 では :exc:`RuntimeError` になります。" -#: ../../reference/datamodel.rst:2325 +#: ../../reference/datamodel.rst:2447 msgid "" "When using the default metaclass :class:`type`, or any metaclass that " "ultimately calls ``type.__new__``, the following additional customization " @@ -3680,7 +3680,7 @@ msgstr "" "メタクラスを使っているときは、クラスオブジェクトを作成した後に次のカスタム化" "の手順が起動されます:" -#: ../../reference/datamodel.rst:2329 +#: ../../reference/datamodel.rst:2451 msgid "" "The ``type.__new__`` method collects all of the attributes in the class " "namespace that define a :meth:`~object.__set_name__` method;" @@ -3688,7 +3688,7 @@ msgstr "" "``type.__new__`` メソッドが :meth:`~object.__set_name__` が定義されているクラ" "スの名前空間にある全ての属性を収集します;" -#: ../../reference/datamodel.rst:2331 +#: ../../reference/datamodel.rst:2453 msgid "" "Those ``__set_name__`` methods are called with the class being defined and " "the assigned name of that particular attribute;" @@ -3696,7 +3696,7 @@ msgstr "" "それらの ``__set_name__`` メソッドが、そのメソッドが定義されているクラス、お" "よびそこに属する属性に割り当てられている名前を引数として呼び出されます;" -#: ../../reference/datamodel.rst:2333 +#: ../../reference/datamodel.rst:2455 msgid "" "The :meth:`~object.__init_subclass__` hook is called on the immediate parent " "of the new class in its method resolution order." @@ -3704,7 +3704,7 @@ msgstr "" "新しいクラスのメソッド解決順序ですぐ上に位置する親クラスで :meth:`~object." "__init_subclass__` フックが呼び出されます。" -#: ../../reference/datamodel.rst:2336 +#: ../../reference/datamodel.rst:2458 msgid "" "After the class object is created, it is passed to the class decorators " "included in the class definition (if any) and the resulting object is bound " @@ -3714,7 +3714,7 @@ msgstr "" "タ (もしあれば) にクラスオブジェクトが渡され、デコレータが返すオブジェクトが" "ここで定義されたクラスとしてローカルの名前空間に束縛されます。" -#: ../../reference/datamodel.rst:2340 +#: ../../reference/datamodel.rst:2462 msgid "" "When a new class is created by ``type.__new__``, the object provided as the " "namespace parameter is copied to a new ordered mapping and the original " @@ -3727,19 +3727,19 @@ msgstr "" "新しく複製したものは読み出し専用のプロキシでラップされ、クラスオブジェクト" "の :attr:`~object.__dict__` 属性になります。" -#: ../../reference/datamodel.rst:2347 +#: ../../reference/datamodel.rst:2469 msgid ":pep:`3135` - New super" msgstr ":pep:`3135` - New super" -#: ../../reference/datamodel.rst:2348 +#: ../../reference/datamodel.rst:2470 msgid "Describes the implicit ``__class__`` closure reference" msgstr "暗黙の ``__class__`` クロージャ参照について記述しています" -#: ../../reference/datamodel.rst:2352 +#: ../../reference/datamodel.rst:2474 msgid "Uses for metaclasses" msgstr "メタクラスの用途" -#: ../../reference/datamodel.rst:2354 +#: ../../reference/datamodel.rst:2476 msgid "" "The potential uses for metaclasses are boundless. Some ideas that have been " "explored include enum, logging, interface checking, automatic delegation, " @@ -3751,11 +3751,11 @@ msgstr "" "動プロパティ生成、プロキシ、フレームワーク、そして自動リソースロック/同期と" "いったものがあります。" -#: ../../reference/datamodel.rst:2361 +#: ../../reference/datamodel.rst:2483 msgid "Customizing instance and subclass checks" msgstr "インスタンスのカスタマイズとサブクラスチェック" -#: ../../reference/datamodel.rst:2363 +#: ../../reference/datamodel.rst:2485 msgid "" "The following methods are used to override the default behavior of the :func:" "`isinstance` and :func:`issubclass` built-in functions." @@ -3763,7 +3763,7 @@ msgstr "" "以下のメソッドは組み込み関数 :func:`isinstance` と :func:`issubclass` のデ" "フォルトの動作を上書きするのに利用します。" -#: ../../reference/datamodel.rst:2366 +#: ../../reference/datamodel.rst:2488 msgid "" "In particular, the metaclass :class:`abc.ABCMeta` implements these methods " "in order to allow the addition of Abstract Base Classes (ABCs) as \"virtual " @@ -3774,7 +3774,7 @@ msgstr "" "クラス (virtual base classes)\" として、他の ABC を含む、任意のクラスや (組み" "込み型を含む) 型に追加するために、これらのメソッドを実装しています。" -#: ../../reference/datamodel.rst:2373 +#: ../../reference/datamodel.rst:2495 msgid "" "Return true if *instance* should be considered a (direct or indirect) " "instance of *class*. If defined, called to implement ``isinstance(instance, " @@ -3784,7 +3784,7 @@ msgstr "" "に true を返します。定義されていれば、 ``isinstance(instance, class)`` の実装" "のために呼び出されます。" -#: ../../reference/datamodel.rst:2380 +#: ../../reference/datamodel.rst:2502 msgid "" "Return true if *subclass* should be considered a (direct or indirect) " "subclass of *class*. If defined, called to implement ``issubclass(subclass, " @@ -3794,7 +3794,7 @@ msgstr "" "true を返します。定義されていれば、 ``issubclass(subclass, class)`` の実装の" "ために呼び出されます。" -#: ../../reference/datamodel.rst:2385 +#: ../../reference/datamodel.rst:2507 msgid "" "Note that these methods are looked up on the type (metaclass) of a class. " "They cannot be defined as class methods in the actual class. This is " @@ -3806,11 +3806,11 @@ msgstr "" "自体がクラスであるこの場合にのみ、インスタンスに呼び出される特殊メソッドの検" "索と一貫しています。" -#: ../../reference/datamodel.rst:2396 +#: ../../reference/datamodel.rst:2518 msgid ":pep:`3119` - Introducing Abstract Base Classes" msgstr ":pep:`3119` - 抽象基底クラスの導入" -#: ../../reference/datamodel.rst:2393 +#: ../../reference/datamodel.rst:2515 msgid "" "Includes the specification for customizing :func:`isinstance` and :func:" "`issubclass` behavior through :meth:`~class.__instancecheck__` and :meth:" @@ -3823,11 +3823,11 @@ msgstr "" "__subclasscheck__` を通して、 :func:`isinstance` と :func:`issubclass` に独自" "の動作をさせるための仕様の記述があります。" -#: ../../reference/datamodel.rst:2401 +#: ../../reference/datamodel.rst:2523 msgid "Emulating generic types" msgstr "ジェネリック型をエミュレートする" -#: ../../reference/datamodel.rst:2403 +#: ../../reference/datamodel.rst:2525 msgid "" "When using :term:`type annotations`, it is often useful to " "*parameterize* a :term:`generic type` using Python's square-brackets " @@ -3835,41 +3835,41 @@ msgid "" "a :class:`list` in which all the elements are of type :class:`int`." msgstr "" -#: ../../reference/datamodel.rst:2411 +#: ../../reference/datamodel.rst:2533 msgid ":pep:`484` - Type Hints" msgstr ":pep:`484` - 型ヒント" -#: ../../reference/datamodel.rst:2411 +#: ../../reference/datamodel.rst:2533 msgid "Introducing Python's framework for type annotations" msgstr "" -#: ../../reference/datamodel.rst:2414 +#: ../../reference/datamodel.rst:2536 msgid ":ref:`Generic Alias Types`" msgstr "" -#: ../../reference/datamodel.rst:2414 +#: ../../reference/datamodel.rst:2536 msgid "Documentation for objects representing parameterized generic classes" msgstr "" -#: ../../reference/datamodel.rst:2417 +#: ../../reference/datamodel.rst:2539 msgid "" ":ref:`Generics`, :ref:`user-defined generics` and :" "class:`typing.Generic`" msgstr "" -#: ../../reference/datamodel.rst:2417 +#: ../../reference/datamodel.rst:2539 msgid "" "Documentation on how to implement generic classes that can be parameterized " "at runtime and understood by static type-checkers." msgstr "" -#: ../../reference/datamodel.rst:2420 +#: ../../reference/datamodel.rst:2542 msgid "" "A class can *generally* only be parameterized if it defines the special " "class method ``__class_getitem__()``." msgstr "" -#: ../../reference/datamodel.rst:2425 +#: ../../reference/datamodel.rst:2547 msgid "" "Return an object representing the specialization of a generic class by type " "arguments found in *key*." @@ -3877,25 +3877,25 @@ msgstr "" "*key* にある型引数で特殊化されたジェネリッククラスを表すオブジェクトを返しま" "す。" -#: ../../reference/datamodel.rst:2428 +#: ../../reference/datamodel.rst:2550 msgid "" "When defined on a class, ``__class_getitem__()`` is automatically a class " "method. As such, there is no need for it to be decorated with :func:" "`@classmethod` when it is defined." msgstr "" -#: ../../reference/datamodel.rst:2434 +#: ../../reference/datamodel.rst:2556 msgid "The purpose of *__class_getitem__*" msgstr "" -#: ../../reference/datamodel.rst:2436 +#: ../../reference/datamodel.rst:2558 msgid "" "The purpose of :meth:`~object.__class_getitem__` is to allow runtime " "parameterization of standard-library generic classes in order to more easily " "apply :term:`type hints` to these classes." msgstr "" -#: ../../reference/datamodel.rst:2440 +#: ../../reference/datamodel.rst:2562 msgid "" "To implement custom generic classes that can be parameterized at runtime and " "understood by static type-checkers, users should either inherit from a " @@ -3904,7 +3904,7 @@ msgid "" "own implementation of ``__class_getitem__()``." msgstr "" -#: ../../reference/datamodel.rst:2446 +#: ../../reference/datamodel.rst:2568 msgid "" "Custom implementations of :meth:`~object.__class_getitem__` on classes " "defined outside of the standard library may not be understood by third-party " @@ -3912,11 +3912,11 @@ msgid "" "purposes other than type hinting is discouraged." msgstr "" -#: ../../reference/datamodel.rst:2456 +#: ../../reference/datamodel.rst:2578 msgid "*__class_getitem__* versus *__getitem__*" msgstr "" -#: ../../reference/datamodel.rst:2458 +#: ../../reference/datamodel.rst:2580 msgid "" "Usually, the :ref:`subscription` of an object using square " "brackets will call the :meth:`~object.__getitem__` instance method defined " @@ -3926,14 +3926,14 @@ msgid "" "genericalias>` object if it is properly defined." msgstr "" -#: ../../reference/datamodel.rst:2465 +#: ../../reference/datamodel.rst:2587 msgid "" "Presented with the :term:`expression` ``obj[x]``, the Python interpreter " "follows something like the following process to decide whether :meth:" "`~object.__getitem__` or :meth:`~object.__class_getitem__` should be called::" msgstr "" -#: ../../reference/datamodel.rst:2493 +#: ../../reference/datamodel.rst:2615 msgid "" "In Python, all classes are themselves instances of other classes. The class " "of a class is known as that class's :term:`metaclass`, and most classes have " @@ -3943,30 +3943,30 @@ msgid "" "__class_getitem__` being called::" msgstr "" -#: ../../reference/datamodel.rst:2512 +#: ../../reference/datamodel.rst:2634 msgid "" "However, if a class has a custom metaclass that defines :meth:`~object." "__getitem__`, subscribing the class may result in different behaviour. An " "example of this can be found in the :mod:`enum` module::" msgstr "" -#: ../../reference/datamodel.rst:2537 +#: ../../reference/datamodel.rst:2659 msgid ":pep:`560` - Core Support for typing module and generic types" msgstr "" ":pep:`560` - typing モジュールとジェネリック型に対する言語コアによるサポート" -#: ../../reference/datamodel.rst:2536 +#: ../../reference/datamodel.rst:2658 msgid "" "Introducing :meth:`~object.__class_getitem__`, and outlining when a :ref:" "`subscription` results in ``__class_getitem__()`` being " "called instead of :meth:`~object.__getitem__`" msgstr "" -#: ../../reference/datamodel.rst:2544 +#: ../../reference/datamodel.rst:2666 msgid "Emulating callable objects" msgstr "呼び出し可能オブジェクトをエミュレートする" -#: ../../reference/datamodel.rst:2551 +#: ../../reference/datamodel.rst:2673 msgid "" "Called when the instance is \"called\" as a function; if this method is " "defined, ``x(arg1, arg2, ...)`` roughly translates to ``type(x).__call__(x, " @@ -3976,11 +3976,11 @@ msgstr "" "されている場合、 ``x(arg1, arg2, ...)`` は大まかには ``type(x).__call__(x, " "arg1, ...)`` に変換されます。" -#: ../../reference/datamodel.rst:2558 +#: ../../reference/datamodel.rst:2680 msgid "Emulating container types" msgstr "コンテナをエミュレートする" -#: ../../reference/datamodel.rst:2560 +#: ../../reference/datamodel.rst:2682 msgid "" "The following methods can be defined to implement container objects. " "Containers usually are :term:`sequences ` (such as :class:`lists " @@ -3990,64 +3990,33 @@ msgid "" "a mapping; the difference is that for a sequence, the allowable keys should " "be the integers *k* for which ``0 <= k < N`` where *N* is the length of the " "sequence, or :class:`slice` objects, which define a range of items. It is " -"also recommended that mappings provide the methods :meth:`keys`, :meth:" -"`values`, :meth:`items`, :meth:`get`, :meth:`clear`, :meth:`setdefault`, :" -"meth:`pop`, :meth:`popitem`, :meth:`!copy`, and :meth:`update` behaving " +"also recommended that mappings provide the methods :meth:`!keys`, :meth:`!" +"values`, :meth:`!items`, :meth:`!get`, :meth:`!clear`, :meth:`!setdefault`, :" +"meth:`!pop`, :meth:`!popitem`, :meth:`!copy`, and :meth:`!update` behaving " "similar to those for Python's standard :class:`dictionary ` objects. " "The :mod:`collections.abc` module provides a :class:`~collections.abc." "MutableMapping` :term:`abstract base class` to help create those methods " "from a base set of :meth:`~object.__getitem__`, :meth:`~object." -"__setitem__`, :meth:`~object.__delitem__`, and :meth:`keys`. Mutable " -"sequences should provide methods :meth:`append`, :meth:`count`, :meth:" -"`index`, :meth:`extend`, :meth:`insert`, :meth:`pop`, :meth:`remove`, :meth:" -"`reverse` and :meth:`sort`, like Python standard :class:`list` objects. " -"Finally, sequence types should implement addition (meaning concatenation) " -"and multiplication (meaning repetition) by defining the methods :meth:" -"`~object.__add__`, :meth:`~object.__radd__`, :meth:`~object.__iadd__`, :meth:" -"`~object.__mul__`, :meth:`~object.__rmul__` and :meth:`~object.__imul__` " -"described below; they should not define other numerical operators. It is " -"recommended that both mappings and sequences implement the :meth:`~object." -"__contains__` method to allow efficient use of the ``in`` operator; for " -"mappings, ``in`` should search the mapping's keys; for sequences, it should " -"search through the values. It is further recommended that both mappings and " -"sequences implement the :meth:`~object.__iter__` method to allow efficient " -"iteration through the container; for mappings, :meth:`__iter__` should " -"iterate through the object's keys; for sequences, it should iterate through " -"the values." -msgstr "" -"以下に挙げるメソッドを定義することで、コンテナオブジェクトを実装できます。コ" -"ンテナは通常は (:class:`リスト ` や :class:`タプル ` のような) :" -"term:`シーケンス ` や (:class:`辞書 ` のような) :term:`マッピ" -"ング ` ですが、他のコンテナも同じように表現することができます。最初" -"のメソッド群はシーケンスもしくはマッピングを模倣するために使われます; 両者の" -"違いは、シーケンスでキーとして使えるのは、 *N* をシーケンスの長さとして ``0 " -"<= k < N`` を満たす整数 *k* 、もしくは要素の範囲を定義する :class:`slice` オ" -"ブジェクトです。マッピングは、 Python の標準の :class:`辞書 ` オブジェ" -"クトのメソッドと似た振る舞いをするメソッド :meth:`keys` 、 :meth:" -"`values` 、 :meth:`items` 、 :meth:`get` 、 :meth:`clear` 、 :meth:" -"`setdefault` 、 :meth:`pop` 、 :meth:`popitem` 、 :meth:`!copy` 、 :meth:" -"`update` を提供することも推奨されています。 :mod:`collections` モジュール" -"は、 :class:`~collections.abc.MutableMapping` :term:`抽象基底クラス " -"` を提供し、 :meth:`~object.__getitem__` 、 :meth:" -"`~object.__setitem__` 、 :meth:`~object.__delitem__` 、 :meth:`keys` という基" -"礎となるメソッド群から前文で挙げたメソッドを作成するのを助けてくれます。可変" -"シーケンスは、 Python の標準の :class:`list` オブジェクトと同じように、メソッ" -"ド :meth:`append` 、 :meth:`count` 、 :meth:`index` 、 :meth:`extend` 、 :" -"meth:`insert` 、 :meth:`pop` 、 :meth:`remove` 、 :meth:`reverse` 、 :meth:" -"`sort` を提供すべきです。最後に、シーケンス型は (連結を意味する) 加算と (繰り" -"返しを意味する) 乗算を、以下に説明するメソッド :meth:`~object.__add__` 、 :" -"meth:`~object.__radd__` 、 :meth:`~object.__iadd__` 、 :meth:`~object." -"__mul__` 、 :meth:`~object.__rmul__` 、 :meth:`~object.__imul__` を定義して実" -"装すべきです; そして、それ以外の数値演算子は定義すべきではありません。マッピ" -"ングとシーケンスは両方とも、効率の良い ``in`` 演算子が使えるように :meth:" -"`~object.__contains__` メソッドを実装すべきです; マッピングでは ``in`` はマッ" -"ピングのキーを検索すべきです; シーケンスでは値を検索すべきです。マッピングも" -"シーケンスも、コンテナの効率の良い反復処理ができるよう :meth:`~object." -"__iter__` メソッドを実装すべきです; マッピングでは :meth:`__iter__` はオブ" -"ジェクトのキーに対して反復処理を; シーケンスでは値全体の反復処理を行うべきで" -"す。" - -#: ../../reference/datamodel.rst:2600 +"__setitem__`, :meth:`~object.__delitem__`, and :meth:`!keys`. Mutable " +"sequences should provide methods :meth:`!append`, :meth:`!count`, :meth:`!" +"index`, :meth:`!extend`, :meth:`!insert`, :meth:`!pop`, :meth:`!remove`, :" +"meth:`!reverse` and :meth:`!sort`, like Python standard :class:`list` " +"objects. Finally, sequence types should implement addition (meaning " +"concatenation) and multiplication (meaning repetition) by defining the " +"methods :meth:`~object.__add__`, :meth:`~object.__radd__`, :meth:`~object." +"__iadd__`, :meth:`~object.__mul__`, :meth:`~object.__rmul__` and :meth:" +"`~object.__imul__` described below; they should not define other numerical " +"operators. It is recommended that both mappings and sequences implement " +"the :meth:`~object.__contains__` method to allow efficient use of the ``in`` " +"operator; for mappings, ``in`` should search the mapping's keys; for " +"sequences, it should search through the values. It is further recommended " +"that both mappings and sequences implement the :meth:`~object.__iter__` " +"method to allow efficient iteration through the container; for mappings, :" +"meth:`!__iter__` should iterate through the object's keys; for sequences, it " +"should iterate through the values." +msgstr "" + +#: ../../reference/datamodel.rst:2723 msgid "" "Called to implement the built-in function :func:`len`. Should return the " "length of the object, an integer ``>=`` 0. Also, an object that doesn't " @@ -4055,7 +4024,7 @@ msgid "" "returns zero is considered to be false in a Boolean context." msgstr "" -#: ../../reference/datamodel.rst:2607 +#: ../../reference/datamodel.rst:2730 msgid "" "In CPython, the length is required to be at most :data:`sys.maxsize`. If the " "length is larger than :data:`!sys.maxsize` some features (such as :func:" @@ -4064,7 +4033,7 @@ msgid "" "`~object.__bool__` method." msgstr "" -#: ../../reference/datamodel.rst:2616 +#: ../../reference/datamodel.rst:2739 msgid "" "Called to implement :func:`operator.length_hint`. Should return an estimated " "length for the object (which may be greater or less than the actual length). " @@ -4080,22 +4049,22 @@ msgstr "" "ソッドがなかった場合と同じと扱われます。このメソッドは純粋に最適化であり、正" "確性は必要ではありません。" -#: ../../reference/datamodel.rst:2630 +#: ../../reference/datamodel.rst:2753 msgid "" "Slicing is done exclusively with the following three methods. A call like ::" msgstr "" "スライシングは、以下の 3 メソッドによって排他的に行われます。次のような呼び出" "しは ::" -#: ../../reference/datamodel.rst:2634 +#: ../../reference/datamodel.rst:2757 msgid "is translated to ::" msgstr "次のように翻訳され ::" -#: ../../reference/datamodel.rst:2638 +#: ../../reference/datamodel.rst:2761 msgid "and so forth. Missing slice items are always filled in with ``None``." msgstr "以下も同様です。存在しないスライスの要素は ``None`` で埋められます。" -#: ../../reference/datamodel.rst:2643 +#: ../../reference/datamodel.rst:2766 msgid "" "Called to implement evaluation of ``self[key]``. For :term:`sequence` types, " "the accepted keys should be integers and slice objects. Note that the " @@ -4117,7 +4086,7 @@ msgstr "" "term:`マップ ` 型の場合は、 *key* に誤りがある場合(コンテナに含まれ" "ていない場合)、 :exc:`KeyError` を送出しなければなりません。" -#: ../../reference/datamodel.rst:2655 +#: ../../reference/datamodel.rst:2778 msgid "" ":keyword:`for` loops expect that an :exc:`IndexError` will be raised for " "illegal indexes to allow proper detection of the end of the sequence." @@ -4126,14 +4095,14 @@ msgstr "" "に、不正なインデクスに対して :exc:`IndexError` が送出されるものと期待していま" "す。" -#: ../../reference/datamodel.rst:2660 +#: ../../reference/datamodel.rst:2783 msgid "" "When :ref:`subscripting` a *class*, the special class method :" "meth:`~object.__class_getitem__` may be called instead of ``__getitem__()``. " "See :ref:`classgetitem-versus-getitem` for more details." msgstr "" -#: ../../reference/datamodel.rst:2668 +#: ../../reference/datamodel.rst:2791 msgid "" "Called to implement assignment to ``self[key]``. Same note as for :meth:" "`__getitem__`. This should only be implemented for mappings if the objects " @@ -4148,7 +4117,7 @@ msgstr "" "正な *key* に対しては、 :meth:`__getitem__` メソッドと同様の例外の送出を行わ" "なければなりません。" -#: ../../reference/datamodel.rst:2677 +#: ../../reference/datamodel.rst:2800 msgid "" "Called to implement deletion of ``self[key]``. Same note as for :meth:" "`__getitem__`. This should only be implemented for mappings if the objects " @@ -4162,7 +4131,7 @@ msgstr "" "*key* に対しては、 :meth:`__getitem__` メソッドと同様の例外の送出を行わなけれ" "ばなりません。" -#: ../../reference/datamodel.rst:2686 +#: ../../reference/datamodel.rst:2809 msgid "" "Called by :class:`dict`\\ .\\ :meth:`__getitem__` to implement ``self[key]`` " "for dict subclasses when key is not in the dictionary." @@ -4171,7 +4140,7 @@ msgstr "" "クラスのために :class:`dict`\\ .\\ :meth:`__getitem__` によって呼び出されま" "す。" -#: ../../reference/datamodel.rst:2692 +#: ../../reference/datamodel.rst:2815 msgid "" "This method is called when an :term:`iterator` is required for a container. " "This method should return a new iterator object that can iterate over all " @@ -4183,7 +4152,7 @@ msgstr "" "処理できるような、新たなイテレータオブジェクトを返さなければなりません。マッ" "ピングでは、コンテナ内のキーに渡って反復処理しなければなりません。" -#: ../../reference/datamodel.rst:2700 +#: ../../reference/datamodel.rst:2823 msgid "" "Called (if present) by the :func:`reversed` built-in to implement reverse " "iteration. It should return a new iterator object that iterates over all " @@ -4193,7 +4162,7 @@ msgstr "" "れば)呼び出します。コンテナ内の全要素を逆順にイテレートする、新しいイテレータ" "を返すべきです。" -#: ../../reference/datamodel.rst:2704 +#: ../../reference/datamodel.rst:2827 msgid "" "If the :meth:`__reversed__` method is not provided, the :func:`reversed` " "built-in will fall back to using the sequence protocol (:meth:`__len__` and :" @@ -4207,7 +4176,7 @@ msgstr "" "は、 :func:`reversed` よりも効率のいい実装を提供できる場合にのみ :meth:" "`__reversed__` を定義するべきです。" -#: ../../reference/datamodel.rst:2711 +#: ../../reference/datamodel.rst:2834 msgid "" "The membership test operators (:keyword:`in` and :keyword:`not in`) are " "normally implemented as an iteration through a container. However, container " @@ -4219,7 +4188,7 @@ msgstr "" "の特殊メソッドを定義して、より効率的な実装を行ったり、オブジェクトがイテラブ" "ルでなくてもよいようにできます。" -#: ../../reference/datamodel.rst:2718 +#: ../../reference/datamodel.rst:2841 msgid "" "Called to implement membership test operators. Should return true if *item* " "is in *self*, false otherwise. For mapping objects, this should consider " @@ -4230,7 +4199,7 @@ msgstr "" "トの場合、値やキーと値の組ではなく、キーに対する帰属テストを考えなければなり" "ません。" -#: ../../reference/datamodel.rst:2722 +#: ../../reference/datamodel.rst:2845 msgid "" "For objects that don't define :meth:`__contains__`, the membership test " "first tries iteration via :meth:`__iter__`, then the old sequence iteration " @@ -4242,11 +4211,11 @@ msgstr "" "コル :meth:`__getitem__` を使います、 :ref:`言語レファレンスのこの節 " "` を参照して下さい。" -#: ../../reference/datamodel.rst:2731 +#: ../../reference/datamodel.rst:2854 msgid "Emulating numeric types" msgstr "数値型をエミュレートする" -#: ../../reference/datamodel.rst:2733 +#: ../../reference/datamodel.rst:2856 msgid "" "The following methods can be defined to emulate numeric objects. Methods " "corresponding to operations that are not supported by the particular kind of " @@ -4258,7 +4227,7 @@ msgstr "" "(非整数の数値に対するビット単位演算など) は、未定義のままにしておかなければな" "りません。" -#: ../../reference/datamodel.rst:2759 +#: ../../reference/datamodel.rst:2882 msgid "" "These methods are called to implement the binary arithmetic operations " "(``+``, ``-``, ``*``, ``@``, ``/``, ``//``, ``%``, :func:`divmod`, :func:" @@ -4283,7 +4252,7 @@ msgstr "" "合、 :meth:`__pow__` はオプションの第三引数を受け取るものとして定義されなけれ" "ばなりません。" -#: ../../reference/datamodel.rst:2770 +#: ../../reference/datamodel.rst:2893 msgid "" "If one of those methods does not support the operation with the supplied " "arguments, it should return ``NotImplemented``." @@ -4291,7 +4260,7 @@ msgstr "" "これらのメソッドのいずれかが渡された引数に対する操作を提供していない場合、 " "``NotImplemented`` を返すべきです。" -#: ../../reference/datamodel.rst:2793 +#: ../../reference/datamodel.rst:2916 msgid "" "These methods are called to implement the binary arithmetic operations " "(``+``, ``-``, ``*``, ``@``, ``/``, ``//``, ``%``, :func:`divmod`, :func:" @@ -4312,7 +4281,7 @@ msgstr "" "合、 式 ``x - y`` を評価すると ``type(x).__sub__(x, y)`` が *NotImplemented* " "を返すときは ``type(y).__rsub__(y, x)`` が呼ばれます。" -#: ../../reference/datamodel.rst:2805 +#: ../../reference/datamodel.rst:2928 msgid "" "Note that ternary :func:`pow` will not try calling :meth:`__rpow__` (the " "coercion rules would become too complicated)." @@ -4320,7 +4289,7 @@ msgstr "" "ただし、三項演算子 :func:`pow` が :meth:`__rpow__` を呼ぶことはないので注意し" "てください (型強制の規則が非常に難解になるからです)。" -#: ../../reference/datamodel.rst:2810 +#: ../../reference/datamodel.rst:2933 msgid "" "If the right operand's type is a subclass of the left operand's type and " "that subclass provides a different implementation of the reflected method " @@ -4333,7 +4302,7 @@ msgstr "" "演算子の非反射メソッドが呼ばれる前に、このメソッドが呼ばれます。この振る舞い" "により、サブクラスが親の演算をオーバーライドすることが可能になります。" -#: ../../reference/datamodel.rst:2831 +#: ../../reference/datamodel.rst:2954 msgid "" "These methods are called to implement the augmented arithmetic assignments " "(``+=``, ``-=``, ``*=``, ``@=``, ``/=``, ``//=``, ``%=``, ``**=``, ``<<=``, " @@ -4364,7 +4333,7 @@ msgstr "" "augmented-assignment-tuple-error` を参照してください) が、この挙動は実際は" "データモデルの挙動の一部です。" -#: ../../reference/datamodel.rst:2852 +#: ../../reference/datamodel.rst:2975 msgid "" "Called to implement the unary arithmetic operations (``-``, ``+``, :func:" "`abs` and ``~``)." @@ -4372,7 +4341,7 @@ msgstr "" "呼び出して単項算術演算 (``-``, ``+``, :func:`abs` および ``~``) を実装しま" "す。" -#: ../../reference/datamodel.rst:2865 +#: ../../reference/datamodel.rst:2988 msgid "" "Called to implement the built-in functions :func:`complex`, :func:`int` and :" "func:`float`. Should return a value of the appropriate type." @@ -4381,7 +4350,7 @@ msgstr "" "れます。\n" "適切な型の値を返さなければなりません。" -#: ../../reference/datamodel.rst:2872 +#: ../../reference/datamodel.rst:2995 msgid "" "Called to implement :func:`operator.index`, and whenever Python needs to " "losslessly convert the numeric object to an integer object (such as in " @@ -4396,7 +4365,7 @@ msgstr "" "このメソッドがあるとその数値オブジェクトが整数型であることが示唆されます。\n" "整数を返さなければなりません。" -#: ../../reference/datamodel.rst:2878 +#: ../../reference/datamodel.rst:3001 msgid "" "If :meth:`__int__`, :meth:`__float__` and :meth:`__complex__` are not " "defined then corresponding built-in functions :func:`int`, :func:`float` " @@ -4406,7 +4375,7 @@ msgstr "" "い場合、組み込み関数の :func:`int`, :func:`float`, :func:`complex` は :meth:" "`__index__` にフォールバックします。" -#: ../../reference/datamodel.rst:2890 +#: ../../reference/datamodel.rst:3013 msgid "" "Called to implement the built-in function :func:`round` and :mod:`math` " "functions :func:`~math.trunc`, :func:`~math.floor` and :func:`~math.ceil`. " @@ -4420,21 +4389,21 @@ msgstr "" "は :class:`~numbers.Integral` (たいていは :class:`int`) に切り詰められたオブ" "ジェクトの値を返すべきです。" -#: ../../reference/datamodel.rst:2896 +#: ../../reference/datamodel.rst:3019 msgid "" "The built-in function :func:`int` falls back to :meth:`__trunc__` if " "neither :meth:`__int__` nor :meth:`__index__` is defined." msgstr "" -#: ../../reference/datamodel.rst:2899 +#: ../../reference/datamodel.rst:3022 msgid "The delegation of :func:`int` to :meth:`__trunc__` is deprecated." msgstr ":func:`int` の :meth:`__trunc__` への処理の委譲は非推奨になりました。" -#: ../../reference/datamodel.rst:2906 +#: ../../reference/datamodel.rst:3029 msgid "With Statement Context Managers" msgstr "with文とコンテキストマネージャ" -#: ../../reference/datamodel.rst:2908 +#: ../../reference/datamodel.rst:3031 msgid "" "A :dfn:`context manager` is an object that defines the runtime context to be " "established when executing a :keyword:`with` statement. The context manager " @@ -4450,7 +4419,7 @@ msgstr "" "照)により起動されますが、これらのメソッドを直接呼び出すことで起動することも" "できます。" -#: ../../reference/datamodel.rst:2919 +#: ../../reference/datamodel.rst:3042 msgid "" "Typical uses of context managers include saving and restoring various kinds " "of global state, locking and unlocking resources, closing opened files, etc." @@ -4459,14 +4428,14 @@ msgstr "" "よび更新、リソースのロックとアンロック、ファイルのオープンとクローズなどが挙" "げられます。" -#: ../../reference/datamodel.rst:2922 +#: ../../reference/datamodel.rst:3045 msgid "" "For more information on context managers, see :ref:`typecontextmanager`." msgstr "" "コンテキストマネージャについてのさらなる情報については、 :ref:" "`typecontextmanager` を参照してください。" -#: ../../reference/datamodel.rst:2927 +#: ../../reference/datamodel.rst:3050 msgid "" "Enter the runtime context related to this object. The :keyword:`with` " "statement will bind this method's return value to the target(s) specified in " @@ -4475,7 +4444,7 @@ msgstr "" "コンテキストマネージャのの入り口で実行される処理です。 :keyword:`with` 文は、" "文の :keyword:`!as` 節で規定された値を返すこのメソッドを呼び出します。" -#: ../../reference/datamodel.rst:2934 +#: ../../reference/datamodel.rst:3057 msgid "" "Exit the runtime context related to this object. The parameters describe the " "exception that caused the context to be exited. If the context was exited " @@ -4485,7 +4454,7 @@ msgstr "" "が終了した原因となった例外について説明しています。コンテキストが例外を送出せ" "ず終了した場合は、全ての引き数に :const:`None` が設定されます。" -#: ../../reference/datamodel.rst:2938 +#: ../../reference/datamodel.rst:3061 msgid "" "If an exception is supplied, and the method wishes to suppress the exception " "(i.e., prevent it from being propagated), it should return a true value. " @@ -4496,27 +4465,27 @@ msgstr "" "播されるのを防ぎたい場合)、このメソッドは True を返す必要があります。そうで" "なければ、このメソッドの終了後、例外は通常通り伝播することになります。" -#: ../../reference/datamodel.rst:2942 +#: ../../reference/datamodel.rst:3065 msgid "" "Note that :meth:`~object.__exit__` methods should not reraise the passed-in " "exception; this is the caller's responsibility." msgstr "" -#: ../../reference/datamodel.rst:2949 +#: ../../reference/datamodel.rst:3072 msgid ":pep:`343` - The \"with\" statement" msgstr ":pep:`343` - \"with\" ステートメント" -#: ../../reference/datamodel.rst:2949 +#: ../../reference/datamodel.rst:3072 msgid "" "The specification, background, and examples for the Python :keyword:`with` " "statement." msgstr "Python の :keyword:`with` 文の仕様、背景、および例が記載されています。" -#: ../../reference/datamodel.rst:2956 +#: ../../reference/datamodel.rst:3079 msgid "Customizing positional arguments in class pattern matching" msgstr "クラスパターンマッチの位置引数のカスタマイズ" -#: ../../reference/datamodel.rst:2958 +#: ../../reference/datamodel.rst:3081 msgid "" "When using a class name in a pattern, positional arguments in the pattern " "are not allowed by default, i.e. ``case MyClass(x, y)`` is typically invalid " @@ -4528,7 +4497,7 @@ msgstr "" "です。このようなパターンを利用するには、 *__match_args__* 属性をクラスに定義" "する必要があります。" -#: ../../reference/datamodel.rst:2965 +#: ../../reference/datamodel.rst:3088 msgid "" "This class variable can be assigned a tuple of strings. When this class is " "used in a class pattern with positional arguments, each positional argument " @@ -4541,7 +4510,7 @@ msgstr "" "*__match_args__* の中の値をキーワードとする、キーワード引数に変換されます。こ" "の属性がない時は、 ``()`` が設定されているのと同義です。" -#: ../../reference/datamodel.rst:2971 +#: ../../reference/datamodel.rst:3094 msgid "" "For example, if ``MyClass.__match_args__`` is ``(\"left\", \"center\", " "\"right\")`` that means that ``case MyClass(x, y)`` is equivalent to ``case " @@ -4556,19 +4525,19 @@ msgstr "" "*__match_args__* の要素数と同等かそれ以下でなければならない点に注意してくださ" "い。もし、多かった場合には、パターンマッチは :exc:`TypeError` を送出します。" -#: ../../reference/datamodel.rst:2981 +#: ../../reference/datamodel.rst:3104 msgid ":pep:`634` - Structural Pattern Matching" msgstr ":pep:`634` - 構造的パターンマッチ" -#: ../../reference/datamodel.rst:2982 +#: ../../reference/datamodel.rst:3105 msgid "The specification for the Python ``match`` statement." msgstr "``match`` 文の詳細。" -#: ../../reference/datamodel.rst:2988 +#: ../../reference/datamodel.rst:3111 msgid "Emulating buffer types" msgstr "" -#: ../../reference/datamodel.rst:2990 +#: ../../reference/datamodel.rst:3113 msgid "" "The :ref:`buffer protocol ` provides a way for Python objects " "to expose efficient access to a low-level memory array. This protocol is " @@ -4576,13 +4545,13 @@ msgid "" "and third-party libraries may define additional buffer types." msgstr "" -#: ../../reference/datamodel.rst:2995 +#: ../../reference/datamodel.rst:3118 msgid "" "While buffer types are usually implemented in C, it is also possible to " "implement the protocol in Python." msgstr "" -#: ../../reference/datamodel.rst:3000 +#: ../../reference/datamodel.rst:3123 msgid "" "Called when a buffer is requested from *self* (for example, by the :class:" "`memoryview` constructor). The *flags* argument is an integer representing " @@ -4592,7 +4561,7 @@ msgid "" "`memoryview` object." msgstr "" -#: ../../reference/datamodel.rst:3009 +#: ../../reference/datamodel.rst:3132 msgid "" "Called when a buffer is no longer needed. The *buffer* argument is a :class:" "`memoryview` object that was previously returned by :meth:`~object." @@ -4601,28 +4570,28 @@ msgid "" "to perform any cleanup are not required to implement this method." msgstr "" -#: ../../reference/datamodel.rst:3021 +#: ../../reference/datamodel.rst:3144 msgid ":pep:`688` - Making the buffer protocol accessible in Python" msgstr "" -#: ../../reference/datamodel.rst:3021 +#: ../../reference/datamodel.rst:3144 msgid "" "Introduces the Python ``__buffer__`` and ``__release_buffer__`` methods." msgstr "" -#: ../../reference/datamodel.rst:3023 +#: ../../reference/datamodel.rst:3146 msgid ":class:`collections.abc.Buffer`" msgstr "" -#: ../../reference/datamodel.rst:3024 +#: ../../reference/datamodel.rst:3147 msgid "ABC for buffer types." msgstr "" -#: ../../reference/datamodel.rst:3029 +#: ../../reference/datamodel.rst:3152 msgid "Special method lookup" msgstr "特殊メソッド検索" -#: ../../reference/datamodel.rst:3031 +#: ../../reference/datamodel.rst:3154 msgid "" "For custom classes, implicit invocations of special methods are only " "guaranteed to work correctly if defined on an object's type, not in the " @@ -4633,7 +4602,7 @@ msgstr "" "ス辞書ではなく、オブジェクトの型で定義されているときにのみ正しく動作すること" "が保証されます。この動作のため、以下のコードは例外を送出します::" -#: ../../reference/datamodel.rst:3046 +#: ../../reference/datamodel.rst:3169 msgid "" "The rationale behind this behaviour lies with a number of special methods " "such as :meth:`~object.__hash__` and :meth:`~object.__repr__` that are " @@ -4647,7 +4616,7 @@ msgstr "" "使った場合、 type オブジェクト自体に対して実行されたときに失敗してしまいま" "す::" -#: ../../reference/datamodel.rst:3060 +#: ../../reference/datamodel.rst:3183 msgid "" "Incorrectly attempting to invoke an unbound method of a class in this way is " "sometimes referred to as 'metaclass confusion', and is avoided by bypassing " @@ -4657,7 +4626,7 @@ msgstr "" "confusion' と呼ばれることもあり、特殊メソッドを検索するときはインスタンスをバ" "イパスすることで回避されます::" -#: ../../reference/datamodel.rst:3069 +#: ../../reference/datamodel.rst:3192 msgid "" "In addition to bypassing any instance attributes in the interest of " "correctness, implicit special method lookup generally also bypasses the :" @@ -4667,7 +4636,7 @@ msgstr "" "ブジェクトのメタクラスを含めて、 :meth:`~object.__getattribute__` メソッドも" "バイパスします::" -#: ../../reference/datamodel.rst:3095 +#: ../../reference/datamodel.rst:3218 msgid "" "Bypassing the :meth:`~object.__getattribute__` machinery in this fashion " "provides significant scope for speed optimisations within the interpreter, " @@ -4680,15 +4649,15 @@ msgstr "" "から一貫して実行されるためにクラスオブジェクトに設定 *しなければならない*)、" "インタープリタを高速化するための大きな余地が手に入ります。" -#: ../../reference/datamodel.rst:3106 +#: ../../reference/datamodel.rst:3229 msgid "Coroutines" msgstr "コルーチン" -#: ../../reference/datamodel.rst:3110 +#: ../../reference/datamodel.rst:3233 msgid "Awaitable Objects" msgstr "待機可能オブジェクト (Awaitable Object)" -#: ../../reference/datamodel.rst:3112 +#: ../../reference/datamodel.rst:3235 msgid "" "An :term:`awaitable` object generally implements an :meth:`~object." "__await__` method. :term:`Coroutine objects ` returned from :" @@ -4698,7 +4667,7 @@ msgstr "" "が実装されています。 :keyword:`async def` 関数が返す :term:`Coroutineオブジェ" "クト ` は待機可能です。" -#: ../../reference/datamodel.rst:3118 +#: ../../reference/datamodel.rst:3241 msgid "" "The :term:`generator iterator` objects returned from generators decorated " "with :func:`types.coroutine` are also awaitable, but they do not implement :" @@ -4708,7 +4677,7 @@ msgstr "" "される :term:`generator iterator` オブジェクトも待機可能ですが、 :meth:" "`~object.__await__` は実装されていません。" -#: ../../reference/datamodel.rst:3124 +#: ../../reference/datamodel.rst:3247 msgid "" "Must return an :term:`iterator`. Should be used to implement :term:" "`awaitable` objects. For instance, :class:`asyncio.Future` implements this " @@ -4720,7 +4689,7 @@ msgstr "" "簡単のために、 :class:`asyncio.Future` にはこのメソッドが実装され、 :keyword:" "`await` 式と互換性を持つようになっています。" -#: ../../reference/datamodel.rst:3130 +#: ../../reference/datamodel.rst:3253 msgid "" "The language doesn't place any restriction on the type or value of the " "objects yielded by the iterator returned by ``__await__``, as this is " @@ -4728,16 +4697,16 @@ msgid "" "g. :mod:`asyncio`) that will be managing the :term:`awaitable` object." msgstr "" -#: ../../reference/datamodel.rst:3138 +#: ../../reference/datamodel.rst:3261 msgid ":pep:`492` for additional information about awaitable objects." msgstr "" "待機可能オブジェクトについてより詳しくは :pep:`492` を参照してください。" -#: ../../reference/datamodel.rst:3144 +#: ../../reference/datamodel.rst:3267 msgid "Coroutine Objects" msgstr "コルーチンオブジェクト" -#: ../../reference/datamodel.rst:3146 +#: ../../reference/datamodel.rst:3269 msgid "" ":term:`Coroutine objects ` are :term:`awaitable` objects. A " "coroutine's execution can be controlled by calling :meth:`~object.__await__` " @@ -4755,7 +4724,7 @@ msgstr "" "により伝搬されます。コルーチンから :exc:`StopIteration` 例外を外に送出すべき" "ではありません。" -#: ../../reference/datamodel.rst:3154 +#: ../../reference/datamodel.rst:3277 msgid "" "Coroutines also have the methods listed below, which are analogous to those " "of generators (see :ref:`generator-methods`). However, unlike generators, " @@ -4766,30 +4735,23 @@ msgstr "" "ただし、ジェネレータと違って、コルーチンは反復処理を直接はサポートしていませ" "ん。" -#: ../../reference/datamodel.rst:3158 +#: ../../reference/datamodel.rst:3281 msgid "It is a :exc:`RuntimeError` to await on a coroutine more than once." msgstr "" "コルーチンで2回以上待機 (await) すると :exc:`RuntimeError` となります。" -#: ../../reference/datamodel.rst:3164 +#: ../../reference/datamodel.rst:3287 msgid "" "Starts or resumes execution of the coroutine. If *value* is ``None``, this " "is equivalent to advancing the iterator returned by :meth:`~object." "__await__`. If *value* is not ``None``, this method delegates to the :meth:" "`~generator.send` method of the iterator that caused the coroutine to " "suspend. The result (return value, :exc:`StopIteration`, or other " -"exception) is the same as when iterating over the :meth:`__await__` return " +"exception) is the same as when iterating over the :meth:`!__await__` return " "value, described above." msgstr "" -"コルーチンの実行を開始したり再開したりします。\n" -"*value* が ``None`` の場合は、 :meth:`~object.__await__` から返されたイテレー" -"タを進めるのと同等です。\n" -"*value* が ``None`` でない場合は、このコルーチンを一時停止させたイテレータ" -"の :meth:`~generator.send` メソッドに処理を委任します。\n" -"結果 (返り値か :exc:`StopIteration` かその他の例外) は、上で解説したような :" -"meth:`__await__` の返り値に対して反復処理を行ったときと同じです。" -#: ../../reference/datamodel.rst:3175 +#: ../../reference/datamodel.rst:3298 msgid "" "Raises the specified exception in the coroutine. This method delegates to " "the :meth:`~generator.throw` method of the iterator that caused the " @@ -4807,13 +4769,13 @@ msgstr "" "meth:`~object.__await__` の返り値に対して反復処理を行ったときと同じです。\n" "例外がコルーチンの中で捕捉されなかった場合、呼び出し元へ伝搬されます。" -#: ../../reference/datamodel.rst:3186 +#: ../../reference/datamodel.rst:3309 msgid "" "The second signature \\(type\\[, value\\[, traceback\\]\\]\\) is deprecated " "and may be removed in a future version of Python." msgstr "" -#: ../../reference/datamodel.rst:3191 +#: ../../reference/datamodel.rst:3314 msgid "" "Causes the coroutine to clean itself up and exit. If the coroutine is " "suspended, this method first delegates to the :meth:`~generator.close` " @@ -4830,7 +4792,7 @@ msgstr "" "最後に、実行が開始されていなかった場合でも、コルーチンに実行が完了した印を付" "けます。" -#: ../../reference/datamodel.rst:3199 +#: ../../reference/datamodel.rst:3322 msgid "" "Coroutine objects are automatically closed using the above process when they " "are about to be destroyed." @@ -4838,27 +4800,27 @@ msgstr "" "コルーチンオブジェクトが破棄されるときには、上記の手順を経て自動的に閉じられ" "ます。" -#: ../../reference/datamodel.rst:3205 +#: ../../reference/datamodel.rst:3328 msgid "Asynchronous Iterators" msgstr "非同期イテレータ (Asynchronous Iterator)" -#: ../../reference/datamodel.rst:3207 +#: ../../reference/datamodel.rst:3330 msgid "" "An *asynchronous iterator* can call asynchronous code in its ``__anext__`` " "method." msgstr "" "*非同期イテレータ* の ``__anext__`` メソッドからは非同期のコードが呼べます。" -#: ../../reference/datamodel.rst:3210 +#: ../../reference/datamodel.rst:3333 msgid "" "Asynchronous iterators can be used in an :keyword:`async for` statement." msgstr "非同期イテレータは :keyword:`async for` 文の中で使えます。" -#: ../../reference/datamodel.rst:3214 +#: ../../reference/datamodel.rst:3337 msgid "Must return an *asynchronous iterator* object." msgstr "*非同期イテレータ* オブジェクトを返さなくてはなりません。" -#: ../../reference/datamodel.rst:3218 +#: ../../reference/datamodel.rst:3341 msgid "" "Must return an *awaitable* resulting in a next value of the iterator. " "Should raise a :exc:`StopAsyncIteration` error when the iteration is over." @@ -4866,11 +4828,11 @@ msgstr "" "イテレータの次の値を返す *待機可能オブジェクト* を返さなければなりません。\n" "反復処理が終了したときには :exc:`StopAsyncIteration` エラーを送出すべきです。" -#: ../../reference/datamodel.rst:3221 +#: ../../reference/datamodel.rst:3344 msgid "An example of an asynchronous iterable object::" msgstr "非同期イテラブルオブジェクトの例::" -#: ../../reference/datamodel.rst:3238 +#: ../../reference/datamodel.rst:3361 msgid "" "Prior to Python 3.7, :meth:`~object.__aiter__` could return an *awaitable* " "that would resolve to an :term:`asynchronous iterator ` になる *awaitable* を返せました。" -#: ../../reference/datamodel.rst:3243 +#: ../../reference/datamodel.rst:3366 msgid "" "Starting with Python 3.7, :meth:`~object.__aiter__` must return an " "asynchronous iterator object. Returning anything else will result in a :exc:" @@ -4889,11 +4851,11 @@ msgstr "" "を返さなければなりません。\n" "それ以外のものを返すと :exc:`TypeError` になります。" -#: ../../reference/datamodel.rst:3251 +#: ../../reference/datamodel.rst:3374 msgid "Asynchronous Context Managers" msgstr "非同期コンテキストマネージャ (Asynchronous Context Manager)" -#: ../../reference/datamodel.rst:3253 +#: ../../reference/datamodel.rst:3376 msgid "" "An *asynchronous context manager* is a *context manager* that is able to " "suspend execution in its ``__aenter__`` and ``__aexit__`` methods." @@ -4901,34 +4863,34 @@ msgstr "" "*非同期コンテキストマネージャ* は、 ``__aenter__`` メソッドと ``__aexit__`` " "メソッド内部で実行を一時停止できる *コンテキストマネージャ* です。" -#: ../../reference/datamodel.rst:3256 +#: ../../reference/datamodel.rst:3379 msgid "" "Asynchronous context managers can be used in an :keyword:`async with` " "statement." msgstr "" "非同期コンテキストマネージャは :keyword:`async with` 文の中で使えます。" -#: ../../reference/datamodel.rst:3260 +#: ../../reference/datamodel.rst:3383 msgid "" "Semantically similar to :meth:`~object.__enter__`, the only difference being " "that it must return an *awaitable*." msgstr "" -#: ../../reference/datamodel.rst:3265 +#: ../../reference/datamodel.rst:3388 msgid "" "Semantically similar to :meth:`~object.__exit__`, the only difference being " "that it must return an *awaitable*." msgstr "" -#: ../../reference/datamodel.rst:3268 +#: ../../reference/datamodel.rst:3391 msgid "An example of an asynchronous context manager class::" msgstr "非同期コンテキストマネージャクラスの例::" -#: ../../reference/datamodel.rst:3281 +#: ../../reference/datamodel.rst:3404 msgid "Footnotes" msgstr "脚注" -#: ../../reference/datamodel.rst:3282 +#: ../../reference/datamodel.rst:3405 msgid "" "It *is* possible in some cases to change an object's type, under certain " "controlled conditions. It generally isn't a good idea though, since it can " @@ -4938,7 +4900,7 @@ msgstr "" "* 。これは、正しく扱われなかった場合にとても奇妙な動作を引き起こすので、一般" "的には良い考えではありません。" -#: ../../reference/datamodel.rst:3286 +#: ../../reference/datamodel.rst:3409 msgid "" "The :meth:`~object.__hash__`, :meth:`~object.__iter__`, :meth:`~object." "__reversed__`, and :meth:`~object.__contains__` methods have special " @@ -4951,7 +4913,7 @@ msgstr "" "他の特殊メソッドも :exc:`TypeError` を送出するかもしれませんが、これは " "``None`` が呼び出し可能でないという振る舞いに基づいた動作です。" -#: ../../reference/datamodel.rst:3292 +#: ../../reference/datamodel.rst:3415 msgid "" "\"Does not support\" here means that the class has no such method, or the " "method returns ``NotImplemented``. Do not set the method to ``None`` if you " @@ -4964,7 +4926,7 @@ msgstr "" "を設定してはいけません—こうするとむしろ、処理を回すのを明示的に *妨げる* とい" "う正反対の効果を生みます。" -#: ../../reference/datamodel.rst:3298 +#: ../../reference/datamodel.rst:3421 msgid "" "For operands of the same type, it is assumed that if the non-reflected " "method -- such as :meth:`~object.__add__` -- fails then the overall " @@ -4984,13 +4946,13 @@ msgstr "" #: ../../reference/datamodel.rst:420 ../../reference/datamodel.rst:440 #: ../../reference/datamodel.rst:448 ../../reference/datamodel.rst:459 #: ../../reference/datamodel.rst:476 ../../reference/datamodel.rst:512 -#: ../../reference/datamodel.rst:525 ../../reference/datamodel.rst:640 -#: ../../reference/datamodel.rst:760 ../../reference/datamodel.rst:778 -#: ../../reference/datamodel.rst:810 ../../reference/datamodel.rst:891 -#: ../../reference/datamodel.rst:959 ../../reference/datamodel.rst:986 -#: ../../reference/datamodel.rst:1048 ../../reference/datamodel.rst:1102 -#: ../../reference/datamodel.rst:1162 ../../reference/datamodel.rst:1227 -#: ../../reference/datamodel.rst:1618 ../../reference/datamodel.rst:2626 +#: ../../reference/datamodel.rst:527 ../../reference/datamodel.rst:644 +#: ../../reference/datamodel.rst:785 ../../reference/datamodel.rst:805 +#: ../../reference/datamodel.rst:838 ../../reference/datamodel.rst:919 +#: ../../reference/datamodel.rst:988 ../../reference/datamodel.rst:1015 +#: ../../reference/datamodel.rst:1077 ../../reference/datamodel.rst:1179 +#: ../../reference/datamodel.rst:1245 ../../reference/datamodel.rst:1344 +#: ../../reference/datamodel.rst:1735 ../../reference/datamodel.rst:2749 msgid "object" msgstr "object" @@ -5000,14 +4962,14 @@ msgstr "データ" #: ../../reference/datamodel.rst:23 ../../reference/datamodel.rst:292 #: ../../reference/datamodel.rst:336 ../../reference/datamodel.rst:420 -#: ../../reference/datamodel.rst:459 ../../reference/datamodel.rst:760 -#: ../../reference/datamodel.rst:1005 ../../reference/datamodel.rst:1292 -#: ../../reference/datamodel.rst:1532 ../../reference/datamodel.rst:1537 -#: ../../reference/datamodel.rst:1618 ../../reference/datamodel.rst:2168 -#: ../../reference/datamodel.rst:2596 ../../reference/datamodel.rst:2754 -#: ../../reference/datamodel.rst:2789 ../../reference/datamodel.rst:2803 -#: ../../reference/datamodel.rst:2850 ../../reference/datamodel.rst:2860 -#: ../../reference/datamodel.rst:2888 +#: ../../reference/datamodel.rst:459 ../../reference/datamodel.rst:785 +#: ../../reference/datamodel.rst:1034 ../../reference/datamodel.rst:1409 +#: ../../reference/datamodel.rst:1649 ../../reference/datamodel.rst:1654 +#: ../../reference/datamodel.rst:1735 ../../reference/datamodel.rst:2290 +#: ../../reference/datamodel.rst:2719 ../../reference/datamodel.rst:2877 +#: ../../reference/datamodel.rst:2912 ../../reference/datamodel.rst:2926 +#: ../../reference/datamodel.rst:2973 ../../reference/datamodel.rst:2983 +#: ../../reference/datamodel.rst:3011 msgid "built-in function" msgstr "組み込み関数" @@ -5016,7 +4978,7 @@ msgid "id" msgstr "id" #: ../../reference/datamodel.rst:23 ../../reference/datamodel.rst:122 -#: ../../reference/datamodel.rst:2168 +#: ../../reference/datamodel.rst:2290 msgid "type" msgstr "type" @@ -5052,7 +5014,7 @@ msgstr "参照カウント" msgid "unreachable object" msgstr "到達不能オブジェクト" -#: ../../reference/datamodel.rst:95 ../../reference/datamodel.rst:891 +#: ../../reference/datamodel.rst:95 ../../reference/datamodel.rst:919 msgid "container" msgstr "コンテナ" @@ -5066,24 +5028,24 @@ msgstr "拡張" #: ../../reference/datamodel.rst:122 ../../reference/datamodel.rst:393 #: ../../reference/datamodel.rst:394 ../../reference/datamodel.rst:495 -#: ../../reference/datamodel.rst:810 ../../reference/datamodel.rst:829 -#: ../../reference/datamodel.rst:1005 +#: ../../reference/datamodel.rst:838 ../../reference/datamodel.rst:857 +#: ../../reference/datamodel.rst:1034 msgid "module" msgstr "module" #: ../../reference/datamodel.rst:122 ../../reference/datamodel.rst:261 -#: ../../reference/datamodel.rst:760 +#: ../../reference/datamodel.rst:785 msgid "C" msgstr "C" #: ../../reference/datamodel.rst:122 ../../reference/datamodel.rst:261 -#: ../../reference/datamodel.rst:760 +#: ../../reference/datamodel.rst:785 msgid "language" msgstr "言語" -#: ../../reference/datamodel.rst:135 ../../reference/datamodel.rst:891 -#: ../../reference/datamodel.rst:908 ../../reference/datamodel.rst:959 -#: ../../reference/datamodel.rst:979 +#: ../../reference/datamodel.rst:135 ../../reference/datamodel.rst:919 +#: ../../reference/datamodel.rst:937 ../../reference/datamodel.rst:988 +#: ../../reference/datamodel.rst:1008 msgid "attribute" msgstr "属性" @@ -5103,7 +5065,7 @@ msgstr "..." msgid "ellipsis literal" msgstr "" -#: ../../reference/datamodel.rst:192 ../../reference/datamodel.rst:986 +#: ../../reference/datamodel.rst:192 ../../reference/datamodel.rst:1015 msgid "numeric" msgstr "数値" @@ -5140,16 +5102,16 @@ msgstr "number" msgid "Java" msgstr "Java" -#: ../../reference/datamodel.rst:279 ../../reference/datamodel.rst:2860 +#: ../../reference/datamodel.rst:279 ../../reference/datamodel.rst:2983 msgid "complex" msgstr "複素数" #: ../../reference/datamodel.rst:292 ../../reference/datamodel.rst:420 -#: ../../reference/datamodel.rst:459 ../../reference/datamodel.rst:2596 +#: ../../reference/datamodel.rst:459 ../../reference/datamodel.rst:2719 msgid "len" msgstr "len" -#: ../../reference/datamodel.rst:292 ../../reference/datamodel.rst:986 +#: ../../reference/datamodel.rst:292 ../../reference/datamodel.rst:1015 msgid "sequence" msgstr "sequence" @@ -5178,8 +5140,8 @@ msgstr "変更不能なシーケンス" msgid "immutable" msgstr "immutable" -#: ../../reference/datamodel.rst:332 ../../reference/datamodel.rst:1507 -#: ../../reference/datamodel.rst:1537 +#: ../../reference/datamodel.rst:332 ../../reference/datamodel.rst:1624 +#: ../../reference/datamodel.rst:1654 msgid "string" msgstr "string" @@ -5215,7 +5177,7 @@ msgstr "単一要素の" msgid "empty" msgstr "空の" -#: ../../reference/datamodel.rst:369 ../../reference/datamodel.rst:1532 +#: ../../reference/datamodel.rst:369 ../../reference/datamodel.rst:1649 msgid "bytes" msgstr "bytes" @@ -5231,14 +5193,14 @@ msgstr "変更可能なシーケンス" msgid "mutable" msgstr "mutable" -#: ../../reference/datamodel.rst:381 ../../reference/datamodel.rst:908 -#: ../../reference/datamodel.rst:979 +#: ../../reference/datamodel.rst:381 ../../reference/datamodel.rst:937 +#: ../../reference/datamodel.rst:1008 msgid "assignment" msgstr "代入" -#: ../../reference/datamodel.rst:381 ../../reference/datamodel.rst:810 -#: ../../reference/datamodel.rst:1259 ../../reference/datamodel.rst:1428 -#: ../../reference/datamodel.rst:2915 +#: ../../reference/datamodel.rst:381 ../../reference/datamodel.rst:838 +#: ../../reference/datamodel.rst:1376 ../../reference/datamodel.rst:1545 +#: ../../reference/datamodel.rst:3038 msgid "statement" msgstr "statement" @@ -5270,12 +5232,12 @@ msgstr "集合" msgid "frozenset" msgstr "frozenset" -#: ../../reference/datamodel.rst:459 ../../reference/datamodel.rst:986 +#: ../../reference/datamodel.rst:459 ../../reference/datamodel.rst:1015 msgid "mapping" msgstr "mapping" -#: ../../reference/datamodel.rst:476 ../../reference/datamodel.rst:891 -#: ../../reference/datamodel.rst:1618 +#: ../../reference/datamodel.rst:476 ../../reference/datamodel.rst:919 +#: ../../reference/datamodel.rst:1735 msgid "dictionary" msgstr "dictionary" @@ -5291,14 +5253,14 @@ msgstr "dbm.gnu" msgid "callable" msgstr "callable" -#: ../../reference/datamodel.rst:512 ../../reference/datamodel.rst:525 -#: ../../reference/datamodel.rst:706 ../../reference/datamodel.rst:724 -#: ../../reference/datamodel.rst:737 ../../reference/datamodel.rst:760 +#: ../../reference/datamodel.rst:512 ../../reference/datamodel.rst:527 +#: ../../reference/datamodel.rst:731 ../../reference/datamodel.rst:749 +#: ../../reference/datamodel.rst:762 ../../reference/datamodel.rst:785 msgid "function" msgstr "関数" -#: ../../reference/datamodel.rst:512 ../../reference/datamodel.rst:891 -#: ../../reference/datamodel.rst:913 ../../reference/datamodel.rst:2549 +#: ../../reference/datamodel.rst:512 ../../reference/datamodel.rst:919 +#: ../../reference/datamodel.rst:942 ../../reference/datamodel.rst:2671 msgid "call" msgstr "call" @@ -5310,619 +5272,619 @@ msgstr "関数呼び出し" msgid "argument" msgstr "引数 (argument)" -#: ../../reference/datamodel.rst:525 ../../reference/datamodel.rst:640 +#: ../../reference/datamodel.rst:527 ../../reference/datamodel.rst:644 msgid "user-defined" msgstr "ユーザ定義の" -#: ../../reference/datamodel.rst:525 +#: ../../reference/datamodel.rst:527 msgid "user-defined function" msgstr "ユーザ定義関数" -#: ../../reference/datamodel.rst:539 +#: ../../reference/datamodel.rst:541 msgid "__doc__ (function attribute)" msgstr "__doc__ (関数属性)" -#: ../../reference/datamodel.rst:539 +#: ../../reference/datamodel.rst:541 msgid "__name__ (function attribute)" msgstr "__name__ (関数属性)" -#: ../../reference/datamodel.rst:539 +#: ../../reference/datamodel.rst:541 msgid "__module__ (function attribute)" msgstr "__module__ (関数属性)" -#: ../../reference/datamodel.rst:539 +#: ../../reference/datamodel.rst:541 msgid "__dict__ (function attribute)" msgstr "__dict__ (関数属性)" -#: ../../reference/datamodel.rst:539 +#: ../../reference/datamodel.rst:541 msgid "__defaults__ (function attribute)" msgstr "__defaults__ (関数属性)" -#: ../../reference/datamodel.rst:539 +#: ../../reference/datamodel.rst:541 msgid "__closure__ (function attribute)" msgstr "__closure__ (関数属性)" -#: ../../reference/datamodel.rst:539 +#: ../../reference/datamodel.rst:541 msgid "__code__ (function attribute)" msgstr "__code__ (関数属性)" -#: ../../reference/datamodel.rst:539 +#: ../../reference/datamodel.rst:541 msgid "__globals__ (function attribute)" msgstr "__globals__ (関数属性)" -#: ../../reference/datamodel.rst:539 +#: ../../reference/datamodel.rst:541 msgid "__annotations__ (function attribute)" msgstr "__annotations__ (関数属性)" -#: ../../reference/datamodel.rst:539 +#: ../../reference/datamodel.rst:541 msgid "__kwdefaults__ (function attribute)" msgstr "__kwdefaults__ (関数属性)" -#: ../../reference/datamodel.rst:539 +#: ../../reference/datamodel.rst:541 msgid "__type_params__ (function attribute)" msgstr "" -#: ../../reference/datamodel.rst:539 +#: ../../reference/datamodel.rst:541 msgid "global" msgstr "グローバル" -#: ../../reference/datamodel.rst:539 ../../reference/datamodel.rst:829 +#: ../../reference/datamodel.rst:541 ../../reference/datamodel.rst:857 msgid "namespace" msgstr "namespace" -#: ../../reference/datamodel.rst:640 ../../reference/datamodel.rst:778 +#: ../../reference/datamodel.rst:644 ../../reference/datamodel.rst:805 msgid "method" msgstr "メソッド" -#: ../../reference/datamodel.rst:640 +#: ../../reference/datamodel.rst:644 msgid "user-defined method" msgstr "ユーザ定義メソッド" -#: ../../reference/datamodel.rst:648 +#: ../../reference/datamodel.rst:652 msgid "__func__ (method attribute)" msgstr "__func__ (メソッド属性)" -#: ../../reference/datamodel.rst:648 +#: ../../reference/datamodel.rst:652 msgid "__self__ (method attribute)" msgstr "__self__ (メソッド属性)" -#: ../../reference/datamodel.rst:648 +#: ../../reference/datamodel.rst:652 msgid "__doc__ (method attribute)" msgstr "__doc__ (メソッド属性)" -#: ../../reference/datamodel.rst:648 +#: ../../reference/datamodel.rst:652 msgid "__name__ (method attribute)" msgstr "__name__ (メソッド属性)" -#: ../../reference/datamodel.rst:648 +#: ../../reference/datamodel.rst:652 msgid "__module__ (method attribute)" msgstr "__module__ (メソッド属性)" -#: ../../reference/datamodel.rst:706 ../../reference/datamodel.rst:1102 +#: ../../reference/datamodel.rst:731 ../../reference/datamodel.rst:1179 msgid "generator" msgstr "ジェネレータ" -#: ../../reference/datamodel.rst:706 +#: ../../reference/datamodel.rst:731 msgid "iterator" msgstr "iterator" -#: ../../reference/datamodel.rst:724 ../../reference/datamodel.rst:3102 +#: ../../reference/datamodel.rst:749 ../../reference/datamodel.rst:3225 msgid "coroutine" msgstr "コルーチン" -#: ../../reference/datamodel.rst:737 +#: ../../reference/datamodel.rst:762 msgid "asynchronous generator" msgstr "asynchronous generator" -#: ../../reference/datamodel.rst:737 +#: ../../reference/datamodel.rst:762 msgid "asynchronous iterator" msgstr "asynchronous iterator" -#: ../../reference/datamodel.rst:778 +#: ../../reference/datamodel.rst:805 msgid "built-in method" msgstr "組み込みメソッド" -#: ../../reference/datamodel.rst:778 +#: ../../reference/datamodel.rst:805 msgid "built-in" msgstr "組み込み" -#: ../../reference/datamodel.rst:810 +#: ../../reference/datamodel.rst:838 msgid "import" msgstr "import" -#: ../../reference/datamodel.rst:829 +#: ../../reference/datamodel.rst:857 msgid "__name__ (module attribute)" msgstr "__name__ (モジュール属性)" -#: ../../reference/datamodel.rst:829 +#: ../../reference/datamodel.rst:857 msgid "__doc__ (module attribute)" msgstr "__doc__ (モジュール属性)" -#: ../../reference/datamodel.rst:829 +#: ../../reference/datamodel.rst:857 msgid "__file__ (module attribute)" msgstr "__file__ (モジュール属性)" -#: ../../reference/datamodel.rst:829 +#: ../../reference/datamodel.rst:857 msgid "__annotations__ (module attribute)" msgstr "" -#: ../../reference/datamodel.rst:860 +#: ../../reference/datamodel.rst:888 msgid "__dict__ (module attribute)" msgstr "__dict__ (モジュール属性)" -#: ../../reference/datamodel.rst:891 ../../reference/datamodel.rst:908 -#: ../../reference/datamodel.rst:959 ../../reference/datamodel.rst:1411 -#: ../../reference/datamodel.rst:2279 +#: ../../reference/datamodel.rst:919 ../../reference/datamodel.rst:937 +#: ../../reference/datamodel.rst:988 ../../reference/datamodel.rst:1528 +#: ../../reference/datamodel.rst:2401 msgid "class" msgstr "クラス" -#: ../../reference/datamodel.rst:891 ../../reference/datamodel.rst:959 -#: ../../reference/datamodel.rst:979 +#: ../../reference/datamodel.rst:919 ../../reference/datamodel.rst:988 +#: ../../reference/datamodel.rst:1008 msgid "class instance" msgstr "クラスインスタンス" -#: ../../reference/datamodel.rst:891 ../../reference/datamodel.rst:959 -#: ../../reference/datamodel.rst:2549 +#: ../../reference/datamodel.rst:919 ../../reference/datamodel.rst:988 +#: ../../reference/datamodel.rst:2671 msgid "instance" msgstr "instance" -#: ../../reference/datamodel.rst:891 ../../reference/datamodel.rst:913 +#: ../../reference/datamodel.rst:919 ../../reference/datamodel.rst:942 msgid "class object" msgstr "クラスオブジェクト" -#: ../../reference/datamodel.rst:917 +#: ../../reference/datamodel.rst:946 msgid "__name__ (class attribute)" msgstr "__name__ (クラス属性)" -#: ../../reference/datamodel.rst:917 +#: ../../reference/datamodel.rst:946 msgid "__module__ (class attribute)" msgstr "__module__ (クラス属性)" -#: ../../reference/datamodel.rst:917 +#: ../../reference/datamodel.rst:946 msgid "__dict__ (class attribute)" msgstr "__dict__ (クラス属性)" -#: ../../reference/datamodel.rst:917 +#: ../../reference/datamodel.rst:946 msgid "__bases__ (class attribute)" msgstr "__bases__ (クラス属性)" -#: ../../reference/datamodel.rst:917 +#: ../../reference/datamodel.rst:946 msgid "__doc__ (class attribute)" msgstr "__doc__ (クラス属性)" -#: ../../reference/datamodel.rst:917 +#: ../../reference/datamodel.rst:946 msgid "__annotations__ (class attribute)" msgstr "" -#: ../../reference/datamodel.rst:917 +#: ../../reference/datamodel.rst:946 msgid "__type_params__ (class attribute)" msgstr "" -#: ../../reference/datamodel.rst:994 +#: ../../reference/datamodel.rst:1023 msgid "__dict__ (instance attribute)" msgstr "__dict__ (インスタンス属性)" -#: ../../reference/datamodel.rst:994 +#: ../../reference/datamodel.rst:1023 msgid "__class__ (instance attribute)" msgstr "__class__ (インスタンス属性)" -#: ../../reference/datamodel.rst:1005 +#: ../../reference/datamodel.rst:1034 msgid "open" msgstr "open" -#: ../../reference/datamodel.rst:1005 +#: ../../reference/datamodel.rst:1034 msgid "io" msgstr "io" -#: ../../reference/datamodel.rst:1005 +#: ../../reference/datamodel.rst:1034 msgid "popen() (in module os)" msgstr "popen() (os モジュール)" -#: ../../reference/datamodel.rst:1005 +#: ../../reference/datamodel.rst:1034 msgid "makefile() (socket method)" msgstr "makefile() (socket のメソッド)" -#: ../../reference/datamodel.rst:1005 +#: ../../reference/datamodel.rst:1034 msgid "sys.stdin" msgstr "sys.stdin" -#: ../../reference/datamodel.rst:1005 +#: ../../reference/datamodel.rst:1034 msgid "sys.stdout" msgstr "sys.stdout" -#: ../../reference/datamodel.rst:1005 +#: ../../reference/datamodel.rst:1034 msgid "sys.stderr" msgstr "sys.stderr" -#: ../../reference/datamodel.rst:1005 +#: ../../reference/datamodel.rst:1034 msgid "stdio" msgstr "stdio" -#: ../../reference/datamodel.rst:1005 +#: ../../reference/datamodel.rst:1034 msgid "stdin (in module sys)" msgstr "stdin (sys モジュール)" -#: ../../reference/datamodel.rst:1005 +#: ../../reference/datamodel.rst:1034 msgid "stdout (in module sys)" msgstr "stdout (sys モジュール)" -#: ../../reference/datamodel.rst:1005 +#: ../../reference/datamodel.rst:1034 msgid "stderr (in module sys)" msgstr "stderr (sys モジュール)" -#: ../../reference/datamodel.rst:1034 +#: ../../reference/datamodel.rst:1063 msgid "internal type" msgstr "内部型" -#: ../../reference/datamodel.rst:1034 +#: ../../reference/datamodel.rst:1063 msgid "types, internal" msgstr "型, 内部の" -#: ../../reference/datamodel.rst:1048 +#: ../../reference/datamodel.rst:1077 msgid "bytecode" msgstr "bytecode" -#: ../../reference/datamodel.rst:1048 +#: ../../reference/datamodel.rst:1077 msgid "code" msgstr "コード" -#: ../../reference/datamodel.rst:1048 +#: ../../reference/datamodel.rst:1077 msgid "code object" msgstr "コードオブジェクト" -#: ../../reference/datamodel.rst:1059 +#: ../../reference/datamodel.rst:1088 msgid "co_argcount (code object attribute)" msgstr "co_argcount (コードオブジェクトの属性)" -#: ../../reference/datamodel.rst:1059 +#: ../../reference/datamodel.rst:1088 msgid "co_posonlyargcount (code object attribute)" msgstr "" -#: ../../reference/datamodel.rst:1059 +#: ../../reference/datamodel.rst:1088 msgid "co_kwonlyargcount (code object attribute)" msgstr "" -#: ../../reference/datamodel.rst:1059 +#: ../../reference/datamodel.rst:1088 msgid "co_code (code object attribute)" msgstr "co_code (コードオブジェクトの属性)" -#: ../../reference/datamodel.rst:1059 +#: ../../reference/datamodel.rst:1088 msgid "co_consts (code object attribute)" msgstr "co_consts (コードオブジェクトの属性)" -#: ../../reference/datamodel.rst:1059 +#: ../../reference/datamodel.rst:1088 msgid "co_filename (code object attribute)" msgstr "co_filename (コードオブジェクトの属性)" -#: ../../reference/datamodel.rst:1059 +#: ../../reference/datamodel.rst:1088 msgid "co_firstlineno (code object attribute)" msgstr "co_firstlineno (コードオブジェクトの属性)" -#: ../../reference/datamodel.rst:1059 +#: ../../reference/datamodel.rst:1088 msgid "co_flags (code object attribute)" msgstr "co_flags (コードオブジェクトの属性)" -#: ../../reference/datamodel.rst:1059 +#: ../../reference/datamodel.rst:1088 msgid "co_lnotab (code object attribute)" msgstr "co_lnotab (コードオブジェクトの属性)" -#: ../../reference/datamodel.rst:1059 +#: ../../reference/datamodel.rst:1088 msgid "co_name (code object attribute)" msgstr "co_name (コードオブジェクトの属性)" -#: ../../reference/datamodel.rst:1059 +#: ../../reference/datamodel.rst:1088 msgid "co_names (code object attribute)" msgstr "co_names (コードオブジェクトの属性)" -#: ../../reference/datamodel.rst:1059 +#: ../../reference/datamodel.rst:1088 msgid "co_nlocals (code object attribute)" msgstr "co_nlocals (コードオブジェクトの属性)" -#: ../../reference/datamodel.rst:1059 +#: ../../reference/datamodel.rst:1088 msgid "co_stacksize (code object attribute)" msgstr "co_stacksize (コードオブジェクトの属性)" -#: ../../reference/datamodel.rst:1059 +#: ../../reference/datamodel.rst:1088 msgid "co_varnames (code object attribute)" msgstr "co_varnames (コードオブジェクトの属性)" -#: ../../reference/datamodel.rst:1059 +#: ../../reference/datamodel.rst:1088 msgid "co_cellvars (code object attribute)" msgstr "co_cellvars (コードオブジェクトの属性)" -#: ../../reference/datamodel.rst:1059 +#: ../../reference/datamodel.rst:1088 msgid "co_freevars (code object attribute)" msgstr "co_freevars (コードオブジェクトの属性)" -#: ../../reference/datamodel.rst:1059 +#: ../../reference/datamodel.rst:1088 msgid "co_qualname (code object attribute)" msgstr "" -#: ../../reference/datamodel.rst:1118 +#: ../../reference/datamodel.rst:1197 msgid "documentation string" msgstr "ドキュメント文字列" -#: ../../reference/datamodel.rst:1162 +#: ../../reference/datamodel.rst:1245 msgid "frame" msgstr "フレーム" -#: ../../reference/datamodel.rst:1167 +#: ../../reference/datamodel.rst:1250 msgid "f_back (frame attribute)" msgstr "f_back (フレーム属性)" -#: ../../reference/datamodel.rst:1167 +#: ../../reference/datamodel.rst:1250 msgid "f_code (frame attribute)" msgstr "f_code (フレーム属性)" -#: ../../reference/datamodel.rst:1167 +#: ../../reference/datamodel.rst:1250 msgid "f_globals (frame attribute)" msgstr "f_globals (フレーム属性)" -#: ../../reference/datamodel.rst:1167 +#: ../../reference/datamodel.rst:1250 msgid "f_locals (frame attribute)" msgstr "f_locals (フレーム属性)" -#: ../../reference/datamodel.rst:1167 +#: ../../reference/datamodel.rst:1250 msgid "f_lasti (frame attribute)" msgstr "f_lasti (フレーム属性)" -#: ../../reference/datamodel.rst:1167 +#: ../../reference/datamodel.rst:1250 msgid "f_builtins (frame attribute)" msgstr "f_builtins (フレーム属性)" -#: ../../reference/datamodel.rst:1186 +#: ../../reference/datamodel.rst:1289 msgid "f_trace (frame attribute)" msgstr "f_trace (フレーム属性)" -#: ../../reference/datamodel.rst:1186 +#: ../../reference/datamodel.rst:1289 msgid "f_trace_lines (frame attribute)" msgstr "" -#: ../../reference/datamodel.rst:1186 +#: ../../reference/datamodel.rst:1289 msgid "f_trace_opcodes (frame attribute)" msgstr "" -#: ../../reference/datamodel.rst:1186 +#: ../../reference/datamodel.rst:1289 msgid "f_lineno (frame attribute)" msgstr "f_lineno (フレーム属性)" -#: ../../reference/datamodel.rst:1227 +#: ../../reference/datamodel.rst:1344 msgid "traceback" msgstr "traceback" -#: ../../reference/datamodel.rst:1227 +#: ../../reference/datamodel.rst:1344 msgid "stack" msgstr "スタック" -#: ../../reference/datamodel.rst:1227 +#: ../../reference/datamodel.rst:1344 msgid "trace" msgstr "トレース" -#: ../../reference/datamodel.rst:1227 +#: ../../reference/datamodel.rst:1344 msgid "exception" msgstr "例外" -#: ../../reference/datamodel.rst:1227 +#: ../../reference/datamodel.rst:1344 msgid "handler" msgstr "ハンドラ" -#: ../../reference/datamodel.rst:1227 +#: ../../reference/datamodel.rst:1344 msgid "execution" msgstr "実行" -#: ../../reference/datamodel.rst:1227 +#: ../../reference/datamodel.rst:1344 msgid "exc_info (in module sys)" msgstr "exc_info (sys モジュール)" -#: ../../reference/datamodel.rst:1227 +#: ../../reference/datamodel.rst:1344 msgid "last_traceback (in module sys)" msgstr "last_traceback (sys モジュール)" -#: ../../reference/datamodel.rst:1227 +#: ../../reference/datamodel.rst:1344 msgid "sys.exc_info" msgstr "sys.exc_info" -#: ../../reference/datamodel.rst:1227 +#: ../../reference/datamodel.rst:1344 msgid "sys.exception" msgstr "" -#: ../../reference/datamodel.rst:1227 +#: ../../reference/datamodel.rst:1344 msgid "sys.last_traceback" msgstr "sys.last_traceback" -#: ../../reference/datamodel.rst:1259 +#: ../../reference/datamodel.rst:1376 msgid "tb_frame (traceback attribute)" msgstr "tb_frame (トレースバック属性)" -#: ../../reference/datamodel.rst:1259 +#: ../../reference/datamodel.rst:1376 msgid "tb_lineno (traceback attribute)" msgstr "tb_lineno (トレースバック属性)" -#: ../../reference/datamodel.rst:1259 +#: ../../reference/datamodel.rst:1376 msgid "tb_lasti (traceback attribute)" msgstr "tb_lasti (トレースバック属性)" -#: ../../reference/datamodel.rst:1259 +#: ../../reference/datamodel.rst:1376 msgid "try" msgstr "try" -#: ../../reference/datamodel.rst:1277 +#: ../../reference/datamodel.rst:1394 msgid "tb_next (traceback attribute)" msgstr "tb_next (トレースバック属性)" -#: ../../reference/datamodel.rst:1292 ../../reference/datamodel.rst:2626 +#: ../../reference/datamodel.rst:1409 ../../reference/datamodel.rst:2749 msgid "slice" msgstr "slice" -#: ../../reference/datamodel.rst:1298 +#: ../../reference/datamodel.rst:1415 msgid "start (slice object attribute)" msgstr "start (スライスオブジェクトの属性)" -#: ../../reference/datamodel.rst:1298 +#: ../../reference/datamodel.rst:1415 msgid "stop (slice object attribute)" msgstr "stop (スライスオブジェクトの属性)" -#: ../../reference/datamodel.rst:1298 +#: ../../reference/datamodel.rst:1415 msgid "step (slice object attribute)" msgstr "step (スライスオブジェクトの属性)" -#: ../../reference/datamodel.rst:1346 +#: ../../reference/datamodel.rst:1463 msgid "operator" msgstr "operator" -#: ../../reference/datamodel.rst:1346 +#: ../../reference/datamodel.rst:1463 msgid "overloading" msgstr "オーバーロード" -#: ../../reference/datamodel.rst:1346 +#: ../../reference/datamodel.rst:1463 msgid "__getitem__() (mapping object method)" msgstr "__getitem__() (マップオブジェクトのメソッド)" -#: ../../reference/datamodel.rst:1382 +#: ../../reference/datamodel.rst:1499 msgid "subclassing" msgstr "サブクラス化" -#: ../../reference/datamodel.rst:1382 +#: ../../reference/datamodel.rst:1499 msgid "immutable types" msgstr "変更不能な型" -#: ../../reference/datamodel.rst:1411 +#: ../../reference/datamodel.rst:1528 msgid "constructor" msgstr "コンストラクタ" -#: ../../reference/datamodel.rst:1428 +#: ../../reference/datamodel.rst:1545 msgid "destructor" msgstr "デストラクタ" -#: ../../reference/datamodel.rst:1428 +#: ../../reference/datamodel.rst:1545 msgid "finalizer" msgstr "" -#: ../../reference/datamodel.rst:1428 +#: ../../reference/datamodel.rst:1545 msgid "del" msgstr "del" -#: ../../reference/datamodel.rst:1490 +#: ../../reference/datamodel.rst:1607 msgid "repr() (built-in function)" msgstr "repr() (組み込み関数)" -#: ../../reference/datamodel.rst:1490 +#: ../../reference/datamodel.rst:1607 msgid "__repr__() (object method)" msgstr "__repr__() (オブジェクトメソッド)" -#: ../../reference/datamodel.rst:1507 +#: ../../reference/datamodel.rst:1624 msgid "__str__() (object method)" msgstr "__str__() (オブジェクトメソッド)" -#: ../../reference/datamodel.rst:1507 +#: ../../reference/datamodel.rst:1624 msgid "format() (built-in function)" msgstr "format() (組み込み関数)" -#: ../../reference/datamodel.rst:1507 +#: ../../reference/datamodel.rst:1624 msgid "print() (built-in function)" msgstr "print() (組み込み関数)" -#: ../../reference/datamodel.rst:1537 +#: ../../reference/datamodel.rst:1654 msgid "__format__() (object method)" msgstr "__format__() (オブジェクトメソッド)" -#: ../../reference/datamodel.rst:1537 +#: ../../reference/datamodel.rst:1654 msgid "conversion" msgstr "変換" -#: ../../reference/datamodel.rst:1537 +#: ../../reference/datamodel.rst:1654 msgid "print" msgstr "print" -#: ../../reference/datamodel.rst:1576 +#: ../../reference/datamodel.rst:1693 msgid "comparisons" msgstr "比較" -#: ../../reference/datamodel.rst:1618 +#: ../../reference/datamodel.rst:1735 msgid "hash" msgstr "hash" -#: ../../reference/datamodel.rst:1699 +#: ../../reference/datamodel.rst:1816 msgid "__len__() (mapping object method)" msgstr "__len__() (マップオブジェクトのメソッド)" -#: ../../reference/datamodel.rst:1802 +#: ../../reference/datamodel.rst:1919 msgid "__getattr__ (module attribute)" msgstr "" -#: ../../reference/datamodel.rst:1802 +#: ../../reference/datamodel.rst:1919 msgid "__dir__ (module attribute)" msgstr "" -#: ../../reference/datamodel.rst:1802 +#: ../../reference/datamodel.rst:1919 msgid "__class__ (module attribute)" msgstr "" -#: ../../reference/datamodel.rst:2168 +#: ../../reference/datamodel.rst:2290 msgid "metaclass" msgstr "metaclass" -#: ../../reference/datamodel.rst:2168 +#: ../../reference/datamodel.rst:2290 msgid "= (equals)" msgstr "" -#: ../../reference/datamodel.rst:2168 +#: ../../reference/datamodel.rst:2290 msgid "class definition" msgstr "" -#: ../../reference/datamodel.rst:2232 +#: ../../reference/datamodel.rst:2354 msgid "metaclass hint" msgstr "" -#: ../../reference/datamodel.rst:2255 +#: ../../reference/datamodel.rst:2377 msgid "__prepare__ (metaclass method)" msgstr "" -#: ../../reference/datamodel.rst:2279 +#: ../../reference/datamodel.rst:2401 msgid "body" msgstr "" -#: ../../reference/datamodel.rst:2299 +#: ../../reference/datamodel.rst:2421 msgid "__class__ (method cell)" msgstr "" -#: ../../reference/datamodel.rst:2299 +#: ../../reference/datamodel.rst:2421 msgid "__classcell__ (class namespace entry)" msgstr "" -#: ../../reference/datamodel.rst:2596 +#: ../../reference/datamodel.rst:2719 msgid "__bool__() (object method)" msgstr "__bool__() (オブジェクトメソッド)" -#: ../../reference/datamodel.rst:2754 ../../reference/datamodel.rst:2789 +#: ../../reference/datamodel.rst:2877 ../../reference/datamodel.rst:2912 msgid "divmod" msgstr "divmod" -#: ../../reference/datamodel.rst:2754 ../../reference/datamodel.rst:2789 -#: ../../reference/datamodel.rst:2803 +#: ../../reference/datamodel.rst:2877 ../../reference/datamodel.rst:2912 +#: ../../reference/datamodel.rst:2926 msgid "pow" msgstr "pow" -#: ../../reference/datamodel.rst:2850 +#: ../../reference/datamodel.rst:2973 msgid "abs" msgstr "abs" -#: ../../reference/datamodel.rst:2860 +#: ../../reference/datamodel.rst:2983 msgid "int" msgstr "int" -#: ../../reference/datamodel.rst:2860 +#: ../../reference/datamodel.rst:2983 msgid "float" msgstr "浮動小数点数" -#: ../../reference/datamodel.rst:2888 +#: ../../reference/datamodel.rst:3011 msgid "round" msgstr "round" -#: ../../reference/datamodel.rst:2915 +#: ../../reference/datamodel.rst:3038 msgid "with" msgstr "with" -#: ../../reference/datamodel.rst:2915 +#: ../../reference/datamodel.rst:3038 msgid "context manager" msgstr "context manager" diff --git a/tutorial/classes.po b/tutorial/classes.po index b31556210..4f127662e 100644 --- a/tutorial/classes.po +++ b/tutorial/classes.po @@ -16,7 +16,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3.12\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2023-11-17 14:14+0000\n" +"POT-Creation-Date: 2023-12-08 14:14+0000\n" "PO-Revision-Date: 2021-06-28 01:49+0000\n" "Last-Translator: TENMYO Masakazu, 2023\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" @@ -1184,19 +1184,17 @@ msgstr "" #: ../../tutorial/classes.rst:772 msgid "" -"Instance method objects have attributes, too: ``m.__self__`` is the instance " -"object with the method :meth:`!m`, and ``m.__func__`` is the function object " -"corresponding to the method." +":ref:`Instance method objects ` have attributes, too: :" +"attr:`m.__self__ ` is the instance object with the method :" +"meth:`!m`, and :attr:`m.__func__ ` is the :ref:`function " +"object ` corresponding to the method." msgstr "" -"インスタンスメソッドオブジェクトにも属性があります。 ``m.__self__`` はメソッ" -"ド :meth:`!m` の属しているインスタンスオブジェクトで、 ``m.__func__`` はその" -"メソッドに対応する関数オブジェクトです。" -#: ../../tutorial/classes.rst:780 +#: ../../tutorial/classes.rst:782 msgid "Iterators" msgstr "イテレータ (iterator)" -#: ../../tutorial/classes.rst:782 +#: ../../tutorial/classes.rst:784 msgid "" "By now you have probably noticed that most container objects can be looped " "over using a :keyword:`for` statement::" @@ -1204,7 +1202,7 @@ msgstr "" "すでに気づいているでしょうが、 :keyword:`for` 文を使うとほとんどのコンテナオ" "ブジェクトにわたってループを行うことができます::" -#: ../../tutorial/classes.rst:796 +#: ../../tutorial/classes.rst:798 msgid "" "This style of access is clear, concise, and convenient. The use of " "iterators pervades and unifies Python. Behind the scenes, the :keyword:" @@ -1226,7 +1224,7 @@ msgstr "" "て :meth:`~iterator.__next__` メソッドを直接呼ぶこともできます; この例は関数" "がどう働くのかを示しています::" -#: ../../tutorial/classes.rst:821 +#: ../../tutorial/classes.rst:823 msgid "" "Having seen the mechanics behind the iterator protocol, it is easy to add " "iterator behavior to your classes. Define an :meth:`~container.__iter__` " @@ -1240,11 +1238,11 @@ msgstr "" "す。クラスが :meth:`!__next__` メソッドを定義している場合、 :meth:`!" "__iter__` メソッドは単に ``self`` を返すことも可能です::" -#: ../../tutorial/classes.rst:858 +#: ../../tutorial/classes.rst:860 msgid "Generators" msgstr "ジェネレータ (generator)" -#: ../../tutorial/classes.rst:860 +#: ../../tutorial/classes.rst:862 msgid "" ":term:`Generators ` are a simple and powerful tool for creating " "iterators. They are written like regular functions but use the :keyword:" @@ -1260,7 +1258,7 @@ msgstr "" "(ジェネレータは、全てのデータ値と最後にどの文が実行されたかを記憶していま" "す)。以下の例を見れば、ジェネレータがとても簡単に作成できることがわかります::" -#: ../../tutorial/classes.rst:881 +#: ../../tutorial/classes.rst:883 msgid "" "Anything that can be done with generators can also be done with class-based " "iterators as described in the previous section. What makes generators so " @@ -1272,7 +1270,7 @@ msgstr "" "__iter__` メソッドと :meth:`~generator.__next__` メソッドが自動で作成されるか" "らです。" -#: ../../tutorial/classes.rst:886 +#: ../../tutorial/classes.rst:888 msgid "" "Another key feature is that the local variables and execution state are " "automatically saved between calls. This made the function easier to write " @@ -1284,7 +1282,7 @@ msgstr "" "data`` といったインスタンス変数を使ったアプローチよりも簡単に関数を書くことが" "できるようになります。" -#: ../../tutorial/classes.rst:891 +#: ../../tutorial/classes.rst:893 msgid "" "In addition to automatic method creation and saving program state, when " "generators terminate, they automatically raise :exc:`StopIteration`. In " @@ -1295,11 +1293,11 @@ msgstr "" "タは終了時に自動的に :exc:`StopIteration` を送出します。これらの機能を組み合" "わせると、通常の関数を書くのと同じ労力で、簡単にイテレータを生成できます。" -#: ../../tutorial/classes.rst:900 +#: ../../tutorial/classes.rst:902 msgid "Generator Expressions" msgstr "ジェネレータ式" -#: ../../tutorial/classes.rst:902 +#: ../../tutorial/classes.rst:904 msgid "" "Some simple generators can be coded succinctly as expressions using a syntax " "similar to list comprehensions but with parentheses instead of square " @@ -1318,15 +1316,15 @@ msgstr "" "同じ内容を返すリスト内包表記よりはメモリに優しいことが多いという利点がありま" "す。" -#: ../../tutorial/classes.rst:909 +#: ../../tutorial/classes.rst:911 msgid "Examples::" msgstr "例::" -#: ../../tutorial/classes.rst:930 +#: ../../tutorial/classes.rst:932 msgid "Footnotes" msgstr "脚注" -#: ../../tutorial/classes.rst:931 +#: ../../tutorial/classes.rst:933 msgid "" "Except for one thing. Module objects have a secret read-only attribute " "called :attr:`~object.__dict__` which returns the dictionary used to " diff --git a/tutorial/floatingpoint.po b/tutorial/floatingpoint.po index d8424167a..5056675c1 100644 --- a/tutorial/floatingpoint.po +++ b/tutorial/floatingpoint.po @@ -13,7 +13,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3.12\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2023-11-24 14:13+0000\n" +"POT-Creation-Date: 2023-12-08 14:14+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/" @@ -231,16 +231,9 @@ msgid "" "`_ for " "a pleasant summary of how binary floating-point works and the kinds of " "problems commonly encountered in practice. Also see `The Perils of Floating " -"Point `_ for a more complete account of " -"other common surprises." -msgstr "" -"このように2進数の浮動小数点の演算には多くの驚きがあります。「0.1」の問題につ" -"いて詳しい説明は、「表現エラー」セクションで行います。2進数の浮動小数点の仕組" -"みと、実際によく遭遇する問題各種についての分かりやすい概要は、 `Examples of " -"Floating Point Problems `_ を参照してください。その他よくある驚きの より詳細" -"な説明は `The Perils of Floating Point `_ も" -"参照してください。" +"Point `_ for a more complete " +"account of other common surprises." +msgstr "" #: ../../tutorial/floatingpoint.rst:156 msgid "" diff --git a/tutorial/introduction.po b/tutorial/introduction.po index 86faef153..05a39130b 100644 --- a/tutorial/introduction.po +++ b/tutorial/introduction.po @@ -18,7 +18,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3.12\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2023-11-17 14:14+0000\n" +"POT-Creation-Date: 2023-12-08 14:14+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/" diff --git a/whatsnew/2.3.po b/whatsnew/2.3.po index 10efe7014..08b8ee6cd 100644 --- a/whatsnew/2.3.po +++ b/whatsnew/2.3.po @@ -14,7 +14,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3.12\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2023-11-24 14:13+0000\n" +"POT-Creation-Date: 2023-12-08 14:14+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/" @@ -3109,27 +3109,19 @@ msgstr "" #: ../../whatsnew/2.3.rst:2001 msgid "" -"C extensions that access the :attr:`f_lineno` field of frame objects should " -"instead call ``PyCode_Addr2Line(f->f_code, f->f_lasti)``. This will have the " -"added effect of making the code work as desired under \"python -O\" in " -"earlier versions of Python." +"C extensions that access the :attr:`~frame.f_lineno` field of frame objects " +"should instead call ``PyCode_Addr2Line(f->f_code, f->f_lasti)``. This will " +"have the added effect of making the code work as desired under \"python -O\" " +"in earlier versions of Python." msgstr "" -"フレームオブジェクトの :attr:`f_lineno` フィールドにアクセスしている C 拡張" -"は、代わりに ``PyCode_Addr2Line(f->f_code, f->f_lasti)`` を呼び出すべきです。" -"これは以前の Python バージョンでも \"python -O\" のもとでコードが動作するのに" -"も望ましい効果を持つでしょう。" #: ../../whatsnew/2.3.rst:2006 msgid "" "A nifty new feature is that trace functions can now assign to the :attr:" -"`f_lineno` attribute of frame objects, changing the line that will be " +"`~frame.f_lineno` attribute of frame objects, changing the line that will be " "executed next. A ``jump`` command has been added to the :mod:`pdb` debugger " "taking advantage of this new feature. (Implemented by Richie Hindle.)" msgstr "" -"気の利いた新機能としては、トレース関数は、今ではフレームオブジェクトの :attr:" -"`f_lineno` 属性を、次に実行される行に変更してセットします。 :mod:`pdb` デバッ" -"ガにはこの新機能の恩恵を受けて ``jump`` コマンドが追加されています。 " -"(Implemented by Richie Hindle.)" #: ../../whatsnew/2.3.rst:2015 msgid "Porting to Python 2.3" diff --git a/whatsnew/2.6.po b/whatsnew/2.6.po index 6341bd885..1dac3ba64 100644 --- a/whatsnew/2.6.po +++ b/whatsnew/2.6.po @@ -11,7 +11,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3.12\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2023-11-24 14:13+0000\n" +"POT-Creation-Date: 2023-12-08 14:14+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/" @@ -2211,8 +2211,8 @@ msgstr "" "ています: :meth:`intersection`, :meth:`intersection_update`, :meth:`union`, :" "meth:`update`, :meth:`difference`, :meth:`difference_update` です。" -#: ../../whatsnew/2.6.rst:1596 ../../whatsnew/2.6.rst:1880 -#: ../../whatsnew/2.6.rst:1901 +#: ../../whatsnew/2.6.rst:1596 ../../whatsnew/2.6.rst:1881 +#: ../../whatsnew/2.6.rst:1902 msgid "(Contributed by Raymond Hettinger.)" msgstr "(Contributed by Raymond Hettinger.)" @@ -2371,17 +2371,13 @@ msgstr "" #: ../../whatsnew/2.6.rst:1679 msgid "" "Instance method objects have new attributes for the object and function " -"comprising the method; the new synonym for :attr:`im_self` is :attr:" -"`__self__`, and :attr:`im_func` is also available as :attr:`__func__`. The " -"old names are still supported in Python 2.6, but are gone in 3.0." -msgstr "" -"インスタンスメソッドオブジェクトが、そのメソッドを包含するオブジェクトと関数" -"のための新たな属性を持つようになっています; :attr:`im_self` への新しい別名" -"が :attr:`__self__` です。また :attr:`im_func` も :attr:`__func__` として利用" -"可能です。古い名前は Python 2.6 で引き続きサポートされますが、3.0 ではいなく" -"なります。" +"comprising the method; the new synonym for :attr:`!im_self` is :attr:" +"`~method.__self__`, and :attr:`!im_func` is also available as :attr:`~method." +"__func__`. The old names are still supported in Python 2.6, but are gone in " +"3.0." +msgstr "" -#: ../../whatsnew/2.6.rst:1684 +#: ../../whatsnew/2.6.rst:1685 msgid "" "An obscure change: when you use the :func:`locals` function inside a :" "keyword:`class` statement, the resulting dictionary no longer returns free " @@ -2392,11 +2388,11 @@ msgstr "" "際、結果の辞書はもはや自由変数を返しません。(この場合、自由変数は :keyword:`!" "class` ステートメント内で参照される変数で、クラスの属性ではありません。)" -#: ../../whatsnew/2.6.rst:1693 +#: ../../whatsnew/2.6.rst:1694 msgid "Optimizations" msgstr "最適化" -#: ../../whatsnew/2.6.rst:1695 +#: ../../whatsnew/2.6.rst:1696 msgid "" "The :mod:`warnings` module has been rewritten in C. This makes it possible " "to invoke warnings from the parser, and may also make the interpreter's " @@ -2407,7 +2403,7 @@ msgstr "" "発行出来、また、インタプリタの起動が高速化しています。 (Contributed by Neal " "Norwitz and Brett Cannon; :issue:`1631171`.)" -#: ../../whatsnew/2.6.rst:1700 +#: ../../whatsnew/2.6.rst:1701 msgid "" "Type objects now have a cache of methods that can reduce the work required " "to find the correct method implementation for a particular class; once " @@ -2425,7 +2421,7 @@ msgstr "" "ないので、キャッシュはクリアされます。 (Original optimization implemented by " "Armin Rigo, updated for Python 2.6 by Kevin Jacobs; :issue:`1700288`.)" -#: ../../whatsnew/2.6.rst:1710 +#: ../../whatsnew/2.6.rst:1711 msgid "" "By default, this change is only applied to types that are included with the " "Python core. Extension modules may not necessarily be compatible with this " @@ -2446,7 +2442,7 @@ msgstr "" "タがそれを検知することは出来ません。 :issue:`1878` にいくらかの議論があります" "ので参照してください。)" -#: ../../whatsnew/2.6.rst:1721 +#: ../../whatsnew/2.6.rst:1722 msgid "" "Function calls that use keyword arguments are significantly faster by doing " "a quick pointer comparison, usually saving the time of a full string " @@ -2458,7 +2454,7 @@ msgstr "" "by Raymond Hettinger, after an initial implementation by Antoine Pitrou; :" "issue:`1819`.)" -#: ../../whatsnew/2.6.rst:1726 +#: ../../whatsnew/2.6.rst:1727 msgid "" "All of the functions in the :mod:`struct` module have been rewritten in C, " "thanks to work at the Need For Speed sprint. (Contributed by Raymond " @@ -2467,7 +2463,7 @@ msgstr "" ":mod:`struct` モジュールの全ての関数が C で書き換えられました。「Need For " "Speed スプリント」での作業の成果です。 (Contributed by Raymond Hettinger.)" -#: ../../whatsnew/2.6.rst:1730 +#: ../../whatsnew/2.6.rst:1731 msgid "" "Some of the standard built-in types now set a bit in their type objects. " "This speeds up checking whether an object is a subclass of one of these " @@ -2477,7 +2473,7 @@ msgstr "" "りました。これは、オブジェクトがそれら型のサブクラスの一つであるかどうかの" "チェックするのを高速化します。 (Contributed by Neal Norwitz.)" -#: ../../whatsnew/2.6.rst:1734 +#: ../../whatsnew/2.6.rst:1735 msgid "" "Unicode strings now use faster code for detecting whitespace and line " "breaks; this speeds up the :meth:`split` method by about 25% and :meth:" @@ -2489,13 +2485,13 @@ msgstr "" "`splitlines` メソッドでは 35% です。(Contributed by Antoine Pitrou.) Unicode " "文字列データのために pymalloc を使うことでメモリ使用が減りました。" -#: ../../whatsnew/2.6.rst:1740 +#: ../../whatsnew/2.6.rst:1741 msgid "" "The ``with`` statement now stores the :meth:`~object.__exit__` method on the " "stack, producing a small speedup. (Implemented by Jeffrey Yasskin.)" msgstr "" -#: ../../whatsnew/2.6.rst:1743 +#: ../../whatsnew/2.6.rst:1744 msgid "" "To reduce memory usage, the garbage collector will now clear internal free " "lists when garbage-collecting the highest generation of objects. This may " @@ -2505,11 +2501,11 @@ msgstr "" "に、ガーベージコレクタが内部のフリーリストをクリアするようになりました。これ" "はオペレーティングシステムにすぐに返されます。" -#: ../../whatsnew/2.6.rst:1752 +#: ../../whatsnew/2.6.rst:1753 msgid "Interpreter Changes" msgstr "インタプリタの変更" -#: ../../whatsnew/2.6.rst:1754 +#: ../../whatsnew/2.6.rst:1755 msgid "" "Two command-line options have been reserved for use by other Python " "implementations. The :option:`-J` switch has been reserved for use by " @@ -2526,7 +2522,7 @@ msgstr "" "Python 2.6 でどちらかのオプションが使われると、インタプリタはそのオプションは" "現在使われていないことを報告します。" -#: ../../whatsnew/2.6.rst:1762 +#: ../../whatsnew/2.6.rst:1763 msgid "" "Python can now be prevented from writing :file:`.pyc` or :file:`.pyo` files " "by supplying the :option:`-B` switch to the Python interpreter, or by " @@ -2543,7 +2539,7 @@ msgstr "" "で、Python コードはこの変数を変更してインタプリタの振る舞いを変えることが出来" "ます。 (Contributed by Neal Norwitz and Georg Brandl.)" -#: ../../whatsnew/2.6.rst:1770 +#: ../../whatsnew/2.6.rst:1771 msgid "" "The encoding used for standard input, output, and standard error can be " "specified by setting the :envvar:`PYTHONIOENCODING` environment variable " @@ -2562,11 +2558,11 @@ msgstr "" "グによって処理出来ない文字に対して何をするのかを指定するもので、 \"error\", " "\"ignore\", \"replace\" のどれかです。 (Contributed by Martin von Löwis.)" -#: ../../whatsnew/2.6.rst:1783 +#: ../../whatsnew/2.6.rst:1784 msgid "New and Improved Modules" msgstr "新しいモジュールと改良されたモジュール" -#: ../../whatsnew/2.6.rst:1785 +#: ../../whatsnew/2.6.rst:1786 msgid "" "As in every release, Python's standard library received a number of " "enhancements and bug fixes. Here's a partial list of the most notable " @@ -2580,7 +2576,7 @@ msgstr "" "内の :file:`Misc/NEWS` ファイルか、全ての完全な詳細が入っている Subversion の" "ログを参照してください。" -#: ../../whatsnew/2.6.rst:1791 +#: ../../whatsnew/2.6.rst:1792 msgid "" "The :mod:`asyncore` and :mod:`asynchat` modules are being actively " "maintained again, and a number of patches and bugfixes were applied. " @@ -2590,7 +2586,7 @@ msgstr "" "チとバグ修正が適用されました。 (Maintained by Josiah Carlson; see :issue:" "`1736190` for one patch.)" -#: ../../whatsnew/2.6.rst:1796 +#: ../../whatsnew/2.6.rst:1797 msgid "" "The :mod:`bsddb` module also has a new maintainer, Jesús Cea Avión, and the " "package is now available as a standalone package. The web page for the " @@ -2606,7 +2602,7 @@ msgstr "" "除される予定です。というのも、これの更新ペースは Python のそれよりも遥かに頻" "繁だからです。" -#: ../../whatsnew/2.6.rst:1804 +#: ../../whatsnew/2.6.rst:1805 msgid "" "The :mod:`bsddb.dbshelve` module now uses the highest pickling protocol " "available, instead of restricting itself to protocol 1. (Contributed by W. " @@ -2616,7 +2612,7 @@ msgstr "" "なく利用出来る一番高いプロトコルバージョンを使うようになりました。" "(Contributed by W. Barnes.)" -#: ../../whatsnew/2.6.rst:1808 +#: ../../whatsnew/2.6.rst:1809 msgid "" "The :mod:`cgi` module will now read variables from the query string of an " "HTTP POST request. This makes it possible to use form actions with URLs " @@ -2628,7 +2624,7 @@ msgstr "" "列を含む form アクションに使えるようになります。 (Contributed by Alexandre " "Fiori and Nubis; :issue:`1817`.)" -#: ../../whatsnew/2.6.rst:1814 +#: ../../whatsnew/2.6.rst:1815 msgid "" "The :func:`parse_qs` and :func:`parse_qsl` functions have been relocated " "from the :mod:`cgi` module to the :mod:`urlparse` module. The versions still " @@ -2640,7 +2636,7 @@ msgstr "" "にまだいて、2.6 では呼び出すと :exc:`PendingDeprecationWarning` メッセージが" "報告されます。 (:issue:`600362`)." -#: ../../whatsnew/2.6.rst:1820 +#: ../../whatsnew/2.6.rst:1821 msgid "" "The :mod:`cmath` module underwent extensive revision, contributed by Mark " "Dickinson and Christian Heimes. Five new functions were added:" @@ -2648,7 +2644,7 @@ msgstr "" ":mod:`cmath` モジュールに大掛かりな改訂が行われました。Mark Dickinson と " "Christian Heimes による貢献です。5 つの新しい関数が追加されました:" -#: ../../whatsnew/2.6.rst:1824 +#: ../../whatsnew/2.6.rst:1825 msgid "" ":func:`polar` converts a complex number to polar form, returning the modulus " "and argument of the complex number." @@ -2656,19 +2652,19 @@ msgstr "" ":func:`polar` は複素数を極形式 (polar form) に変換し、複素数の絶対値 " "(modulus) と偏角 (argument) を返します。" -#: ../../whatsnew/2.6.rst:1827 +#: ../../whatsnew/2.6.rst:1828 msgid "" ":func:`rect` does the opposite, turning a modulus, argument pair back into " "the corresponding complex number." msgstr ":func:`rect` はその逆で、絶対値と偏角から対応する複素数に戻します。" -#: ../../whatsnew/2.6.rst:1830 +#: ../../whatsnew/2.6.rst:1831 msgid "" ":func:`phase` returns the argument (also called the angle) of a complex " "number." msgstr ":func:`phase` は複素数の偏角 (angle とも呼ばれています) を返します。" -#: ../../whatsnew/2.6.rst:1833 +#: ../../whatsnew/2.6.rst:1834 msgid "" ":func:`isnan` returns True if either the real or imaginary part of its " "argument is a NaN." @@ -2676,7 +2672,7 @@ msgstr "" ":func:`isnan` はその引数の実数部か虚数部のどちらかが NaN であれば真を返しま" "す。" -#: ../../whatsnew/2.6.rst:1836 +#: ../../whatsnew/2.6.rst:1837 msgid "" ":func:`isinf` returns True if either the real or imaginary part of its " "argument is infinite." @@ -2684,7 +2680,7 @@ msgstr "" ":func:`isinf` はその引数の実数部か虚数部のどちらかが無限大であれば真を返しま" "す。" -#: ../../whatsnew/2.6.rst:1839 +#: ../../whatsnew/2.6.rst:1840 msgid "" "The revisions also improved the numerical soundness of the :mod:`cmath` " "module. For all functions, the real and imaginary parts of the results are " @@ -2701,7 +2697,7 @@ msgstr "" "ビットという意味。分岐截線 (branch cut) は一般的な訳語かどうかはわかりません" "が、wikipedia から採りました。---)" -#: ../../whatsnew/2.6.rst:1846 +#: ../../whatsnew/2.6.rst:1847 msgid "" "The tests for the module have been greatly expanded; nearly 2000 new test " "cases exercise the algebraic functions." @@ -2709,7 +2705,7 @@ msgstr "" "そのモジュールのテストは大変拡大しました; およそ 2000 の新たなテストケースが" "数学関数群を鍛え上げます。" -#: ../../whatsnew/2.6.rst:1849 +#: ../../whatsnew/2.6.rst:1850 msgid "" "On IEEE 754 platforms, the :mod:`cmath` module now handles IEEE 754 special " "values and floating-point exceptions in a manner consistent with Annex 'G' " @@ -2719,14 +2715,14 @@ msgstr "" "浮動小数点例外を、C99 標準の付録 'G' での一貫性のある方法で処理するようになり" "ました。" -#: ../../whatsnew/2.6.rst:1853 +#: ../../whatsnew/2.6.rst:1854 msgid "" "A new data type in the :mod:`collections` module: ``namedtuple(typename, " "fieldnames)`` is a factory function that creates subclasses of the standard " "tuple whose fields are accessible by name as well as index. For example::" msgstr "" -#: ../../whatsnew/2.6.rst:1875 +#: ../../whatsnew/2.6.rst:1876 msgid "" "Several places in the standard library that returned tuples have been " "modified to return :func:`namedtuple` instances. For example, the :meth:" @@ -2734,7 +2730,7 @@ msgid "" "`digits`, and :attr:`exponent` fields." msgstr "" -#: ../../whatsnew/2.6.rst:1882 +#: ../../whatsnew/2.6.rst:1883 msgid "" "Another change to the :mod:`collections` module is that the :class:`deque` " "type now supports an optional *maxlen* parameter; if supplied, the deque's " @@ -2746,7 +2742,7 @@ msgstr "" "deque のサイズが要素数 *maxlen* を超えないように制限されます。お腹いっぱいの " "deque にさらに要素を追加すると、古いものから捨てられます。" -#: ../../whatsnew/2.6.rst:1903 +#: ../../whatsnew/2.6.rst:1904 msgid "" "The :mod:`Cookie` module's :class:`Morsel` objects now support an :attr:" "`httponly` attribute. In some browsers. cookies with this attribute set " @@ -2758,7 +2754,7 @@ msgstr "" "クッキーは JavaScript コードからアクセスや操作が出来ません。 (Contributed by " "Arvin Schnell; :issue:`1638033`.)" -#: ../../whatsnew/2.6.rst:1908 +#: ../../whatsnew/2.6.rst:1909 msgid "" "A new window method in the :mod:`curses` module, :meth:`chgat`, changes the " "display attributes for a certain number of characters on a single line. " @@ -2767,7 +2763,7 @@ msgstr "" ":mod:`curses` モジュールの新しい window メソッド :meth:`chgat` は、一行での指" "定数ぶん文字の表示属性を変更します。 (Contributed by Fabian Kreutz.)" -#: ../../whatsnew/2.6.rst:1918 +#: ../../whatsnew/2.6.rst:1919 msgid "" "The :class:`Textbox` class in the :mod:`curses.textpad` module now supports " "editing in insert mode as well as overwrite mode. Insert mode is enabled by " @@ -2779,7 +2775,7 @@ msgstr "" "`Textbox` インスタンス構築時に *insert_mode* パラメータを真にすることで有効に" "なります。" -#: ../../whatsnew/2.6.rst:1923 +#: ../../whatsnew/2.6.rst:1924 msgid "" "The :mod:`datetime` module's :meth:`strftime` methods now support a ``%f`` " "format code that expands to the number of microseconds in the object, zero-" @@ -2794,7 +2790,7 @@ msgstr "" "654 ミリ秒が「654000」と書式化されますし、32 ミリ秒は「032000」です。---) " "(Contributed by Skip Montanaro; :issue:`1158`.)" -#: ../../whatsnew/2.6.rst:1928 +#: ../../whatsnew/2.6.rst:1929 msgid "" "The :mod:`decimal` module was updated to version 1.66 of `the General " "Decimal Specification `__. " @@ -2802,7 +2798,7 @@ msgid "" "as :meth:`exp` and :meth:`log10`::" msgstr "" -#: ../../whatsnew/2.6.rst:1940 +#: ../../whatsnew/2.6.rst:1941 msgid "" "The :meth:`as_tuple` method of :class:`Decimal` objects now returns a named " "tuple with :attr:`sign`, :attr:`digits`, and :attr:`exponent` fields." @@ -2811,7 +2807,7 @@ msgstr "" "`digits`, :attr:`exponent` フィールドを持った名前付きタプルを返すようになりま" "した。" -#: ../../whatsnew/2.6.rst:1943 +#: ../../whatsnew/2.6.rst:1944 msgid "" "(Implemented by Facundo Batista and Mark Dickinson. Named tuple support " "added by Raymond Hettinger.)" @@ -2819,7 +2815,7 @@ msgstr "" "(Implemented by Facundo Batista and Mark Dickinson. Named tuple support " "added by Raymond Hettinger.)" -#: ../../whatsnew/2.6.rst:1946 +#: ../../whatsnew/2.6.rst:1947 msgid "" "The :mod:`difflib` module's :class:`SequenceMatcher` class now returns named " "tuples representing matches, with :attr:`a`, :attr:`b`, and :attr:`size` " @@ -2829,7 +2825,7 @@ msgstr "" "attr:`a`, :attr:`b`, :attr:`size` 属性を持つ名前付きタプルで返すようになりま" "した。 (Contributed by Raymond Hettinger.)" -#: ../../whatsnew/2.6.rst:1951 +#: ../../whatsnew/2.6.rst:1952 msgid "" "An optional ``timeout`` parameter, specifying a timeout measured in seconds, " "was added to the :class:`ftplib.FTP` class constructor as well as the :meth:" @@ -2845,7 +2841,7 @@ msgstr "" "れはデータが送信されたあとでデータの各ブロックごとに呼び出されます。 " "(Contributed by Phil Schwartz; :issue:`1221598`.)" -#: ../../whatsnew/2.6.rst:1959 +#: ../../whatsnew/2.6.rst:1960 msgid "" "The :func:`reduce` built-in function is also available in the :mod:" "`functools` module. In Python 3.0, the builtin has been dropped and :func:" @@ -2860,7 +2856,7 @@ msgstr "" "いません。使用を検出するには :option:`!-3` オプションなどで警告をチェックして" "ください。 ---)" -#: ../../whatsnew/2.6.rst:1965 +#: ../../whatsnew/2.6.rst:1966 msgid "" "When possible, the :mod:`getpass` module will now use :file:`/dev/tty` to " "print a prompt message and read the password, falling back to standard error " @@ -2874,7 +2870,7 @@ msgstr "" "もしれない場合、プロンプト表示の前に警告が出力されます。 (Contributed by " "Gregory P. Smith.)" -#: ../../whatsnew/2.6.rst:1971 +#: ../../whatsnew/2.6.rst:1972 msgid "" "The :func:`glob.glob` function can now return Unicode filenames if a Unicode " "path was used and Unicode filenames are matched within the directory. (:" @@ -2884,7 +2880,7 @@ msgstr "" "ファイル名がマッチすると Unicode ファイル名を返すようになりました。 (:issue:" "`1001604`)" -#: ../../whatsnew/2.6.rst:1975 +#: ../../whatsnew/2.6.rst:1976 msgid "" "A new function in the :mod:`heapq` module, ``merge(iter1, iter2, ...)``, " "takes any number of iterables returning data in sorted order, and returns a " @@ -2899,7 +2895,7 @@ msgstr "" "ても並べ替えられるわけではありません。リファレンスにはここはきちんと書かれて" "います。---)。例えば::" -#: ../../whatsnew/2.6.rst:1983 +#: ../../whatsnew/2.6.rst:1984 msgid "" "Another new function, ``heappushpop(heap, item)``, pushes *item* onto " "*heap*, then pops off and returns the smallest item. This is more efficient " @@ -2910,7 +2906,7 @@ msgstr "" "を :func:`heappush` に引き続いて :func:`heappop` を別々に呼び出すよりも効率的" "に実行します。" -#: ../../whatsnew/2.6.rst:1988 +#: ../../whatsnew/2.6.rst:1989 msgid "" ":mod:`heapq` is now implemented to only use less-than comparison, instead of " "the less-than-or-equal comparison it previously used. This makes :mod:" @@ -2922,7 +2918,7 @@ msgstr "" "型の要件が :meth:`list.sort` メソッドに合致します。 (Contributed by Raymond " "Hettinger.)" -#: ../../whatsnew/2.6.rst:1994 +#: ../../whatsnew/2.6.rst:1995 msgid "" "An optional ``timeout`` parameter, specifying a timeout measured in seconds, " "was added to the :class:`httplib.HTTPConnection` and :class:" @@ -2932,7 +2928,7 @@ msgstr "" "`HTTPSConnection` クラスのコンストラクタに追加されました。タイムアウトを秒で" "指定します。 (Added by Facundo Batista.)" -#: ../../whatsnew/2.6.rst:1999 +#: ../../whatsnew/2.6.rst:2000 msgid "" "Most of the :mod:`inspect` module's functions, such as :func:`getmoduleinfo` " "and :func:`getargs`, now return named tuples. In addition to behaving like " @@ -2944,7 +2940,7 @@ msgstr "" "だけでなく、属性でアクセスすることも出来ます。 (Contributed by Raymond " "Hettinger.)" -#: ../../whatsnew/2.6.rst:2005 +#: ../../whatsnew/2.6.rst:2006 msgid "" "Some new functions in the module include :func:`isgenerator`, :func:" "`isgeneratorfunction`, and :func:`isabstract`." @@ -2952,11 +2948,11 @@ msgstr "" "モジュールには :func:`isgenerator`, :func:`isgeneratorfunction`, :func:" "`isabstract` を含むいくつかの新しい関数が追加されています。" -#: ../../whatsnew/2.6.rst:2009 +#: ../../whatsnew/2.6.rst:2010 msgid "The :mod:`itertools` module gained several new functions." msgstr ":mod:`itertools` モジュールにいくつかの関数が追加されています。" -#: ../../whatsnew/2.6.rst:2011 +#: ../../whatsnew/2.6.rst:2012 msgid "" "``izip_longest(iter1, iter2, ...[, fillvalue])`` makes tuples from each of " "the elements; if some of the iterables are shorter than others, the missing " @@ -2966,7 +2962,7 @@ msgstr "" "を生成します; イテラブルの要素数がほかのものより短ければ欠落値として " "*fillvalue* が埋められます。例えば::" -#: ../../whatsnew/2.6.rst:2018 +#: ../../whatsnew/2.6.rst:2019 msgid "" "``product(iter1, iter2, ..., [repeat=N])`` returns the Cartesian product of " "the supplied iterables, a set of tuples containing every possible " @@ -2976,7 +2972,7 @@ msgstr "" "(Cartesian product)、つまりそれぞれのイテラブルから返るその要素たちの全てのあ" "りうる組み合わせを含むタプルの集合を返します。::" -#: ../../whatsnew/2.6.rst:2027 +#: ../../whatsnew/2.6.rst:2028 msgid "" "The optional *repeat* keyword argument is used for taking the product of an " "iterable or a set of iterables with themselves, repeated *N* times. With a " @@ -2986,11 +2982,11 @@ msgstr "" "が *N* 個、複数あればそのセットが *N* 回与えられたとみなします。単一のイテラ" "ブルに対しては *N* 要素タプルのリストで返ります::" -#: ../../whatsnew/2.6.rst:2036 +#: ../../whatsnew/2.6.rst:2037 msgid "With two iterables, *2N*-tuples are returned. ::" msgstr "2 つのイテラブルであれば *2N* 要素タプルのリストで返ります::" -#: ../../whatsnew/2.6.rst:2044 +#: ../../whatsnew/2.6.rst:2045 msgid "" "``combinations(iterable, r)`` returns sub-sequences of length *r* from the " "elements of *iterable*. ::" @@ -2999,7 +2995,7 @@ msgstr "" "部分列を返します (---訳注: 数学の初等組み合わせ論の「組合せ (combination)」 " "---)::" -#: ../../whatsnew/2.6.rst:2055 +#: ../../whatsnew/2.6.rst:2056 msgid "" "``permutations(iter[, r])`` returns all the permutations of length *r* of " "the iterable's elements. If *r* is not specified, it will default to the " @@ -3012,7 +3008,7 @@ msgstr "" "両方出てきていますが、高校教育で習う用語で「順列」が伝わりやすいのでここでは" "「順列」としています。 ---)::" -#: ../../whatsnew/2.6.rst:2065 +#: ../../whatsnew/2.6.rst:2066 msgid "" "``itertools.chain(*iterables)`` is an existing function in :mod:`itertools` " "that gained a new constructor in Python 2.6. ``itertools.chain." @@ -3026,11 +3022,11 @@ msgstr "" "func:`chain` は、最初のイテラブルからの全要素、次のイテラブルからの全要" "素、…、のように返します::" -#: ../../whatsnew/2.6.rst:2075 +#: ../../whatsnew/2.6.rst:2076 msgid "(All contributed by Raymond Hettinger.)" msgstr "(All contributed by Raymond Hettinger.)" -#: ../../whatsnew/2.6.rst:2077 +#: ../../whatsnew/2.6.rst:2078 msgid "" "The :mod:`logging` module's :class:`FileHandler` class and its subclasses :" "class:`WatchedFileHandler`, :class:`RotatingFileHandler`, and :class:" @@ -3045,7 +3041,7 @@ msgstr "" "の :meth:`emit` が呼び出されるまで延期されます。 (Contributed by Vinay " "Sajip.)" -#: ../../whatsnew/2.6.rst:2084 +#: ../../whatsnew/2.6.rst:2085 msgid "" ":class:`TimedRotatingFileHandler` also has a *utc* constructor parameter. " "If the argument is true, UTC time will be used in determining when midnight " @@ -3055,11 +3051,11 @@ msgstr "" "ようになっています。これが真の場合、 ``when='midnight'`` などの切り替え時刻判" "定とその生成ファイル名に UTC が使われます。" -#: ../../whatsnew/2.6.rst:2089 +#: ../../whatsnew/2.6.rst:2090 msgid "Several new functions were added to the :mod:`math` module:" msgstr "いくつかの新しい関数が :mod:`math` モジュールに追加されました:" -#: ../../whatsnew/2.6.rst:2091 +#: ../../whatsnew/2.6.rst:2092 msgid "" ":func:`~math.isinf` and :func:`~math.isnan` determine whether a given float " "is a (positive or negative) infinity or a NaN (Not a Number), respectively." @@ -3068,7 +3064,7 @@ msgstr "" "(正または負の) 無限大であるかどうか、非数 (NaN=Not a Number) であるかどうかを" "返します。" -#: ../../whatsnew/2.6.rst:2094 +#: ../../whatsnew/2.6.rst:2095 msgid "" ":func:`~math.copysign` copies the sign bit of an IEEE 754 number, returning " "the absolute value of *x* combined with the sign bit of *y*. For example, " @@ -3078,7 +3074,7 @@ msgstr "" "値と *y* の符号ビットを組み合わせたものを返します。例えば ``math.copysign(1, " "-0.0)`` は -1.0 を返します。 (Contributed by Christian Heimes.)" -#: ../../whatsnew/2.6.rst:2099 +#: ../../whatsnew/2.6.rst:2100 msgid "" ":func:`~math.factorial` computes the factorial of a number. (Contributed by " "Raymond Hettinger; :issue:`2138`.)" @@ -3086,7 +3082,7 @@ msgstr "" ":func:`~math.factorial` は階乗を計算します。 (Contributed by Raymond " "Hettinger; :issue:`2138`.)" -#: ../../whatsnew/2.6.rst:2102 +#: ../../whatsnew/2.6.rst:2103 msgid "" ":func:`~math.fsum` adds up the stream of numbers from an iterable, and is " "careful to avoid loss of precision through using partial sums. (Contributed " @@ -3096,7 +3092,7 @@ msgstr "" "避けながら積み上げた合計の計算をします。 (Contributed by Jean Brouwers, " "Raymond Hettinger, and Mark Dickinson; :issue:`2819`.)" -#: ../../whatsnew/2.6.rst:2107 +#: ../../whatsnew/2.6.rst:2108 msgid "" ":func:`~math.acosh`, :func:`~math.asinh` and :func:`~math.atanh` compute the " "inverse hyperbolic functions." @@ -3104,11 +3100,11 @@ msgstr "" ":func:`~math.acosh`, :func:`~math.asinh`, :func:`~math.atanh` は逆双曲線関数" "を計算します。" -#: ../../whatsnew/2.6.rst:2110 +#: ../../whatsnew/2.6.rst:2111 msgid ":func:`~math.log1p` returns the natural logarithm of *1+x* (base *e*)." msgstr ":func:`~math.log1p` は *1+x* の自然対数 (底 *e* の対数) を返します。" -#: ../../whatsnew/2.6.rst:2113 +#: ../../whatsnew/2.6.rst:2114 msgid "" ":func:`trunc` rounds a number toward zero, returning the closest :class:" "`Integral` that's between the function's argument and zero. Added as part of " @@ -3118,7 +3114,7 @@ msgstr "" "い :class:`Integral` を返します。これは `PEP 3141: 数値の型階層 " "<#pep-3141>`__ のバックポートの一部として追加されました。" -#: ../../whatsnew/2.6.rst:2118 +#: ../../whatsnew/2.6.rst:2119 msgid "" "The :mod:`math` module has been improved to give more consistent behaviour " "across platforms, especially with respect to handling of floating-point " @@ -3128,7 +3124,7 @@ msgstr "" "て、プラットフォーム間に渡る振る舞いの一貫性をさらに高めるように改善されまし" "た。" -#: ../../whatsnew/2.6.rst:2122 +#: ../../whatsnew/2.6.rst:2123 msgid "" "Whenever possible, the module follows the recommendations of the C99 " "standard about 754's special values. For example, ``sqrt(-1.)`` should now " @@ -3148,11 +3144,11 @@ msgstr "" "している箇所では Python は :exc:`OverflowError` を投げます。 (See :issue:" "`711019` and :issue:`1640`.)" -#: ../../whatsnew/2.6.rst:2132 +#: ../../whatsnew/2.6.rst:2133 msgid "(Contributed by Christian Heimes and Mark Dickinson.)" msgstr "(Contributed by Christian Heimes and Mark Dickinson.)" -#: ../../whatsnew/2.6.rst:2134 +#: ../../whatsnew/2.6.rst:2135 msgid "" ":class:`~mmap.mmap` objects now have a :meth:`rfind` method that searches " "for a substring beginning at the end of the string and searching backwards. " @@ -3164,7 +3160,7 @@ msgstr "" "数 *end* パラメータが追加されていて、検索対象の終了位置を指定することが出来ま" "す。 (Contributed by John Lenton.)" -#: ../../whatsnew/2.6.rst:2140 +#: ../../whatsnew/2.6.rst:2141 msgid "" "The :mod:`operator` module gained a :func:`methodcaller` function that takes " "a name and an optional set of arguments, returning a callable that will call " @@ -3174,12 +3170,12 @@ msgstr "" "前と省略可能な引数を与えると、渡したその任意の引数でその名前の関数を呼び出す" "呼び出し可能オブジェクトを返します。例えば::" -#: ../../whatsnew/2.6.rst:2150 +#: ../../whatsnew/2.6.rst:2151 msgid "(Contributed by Georg Brandl, after a suggestion by Gregory Petrosyan.)" msgstr "" "(Contributed by Georg Brandl, after a suggestion by Gregory Petrosyan.)" -#: ../../whatsnew/2.6.rst:2152 +#: ../../whatsnew/2.6.rst:2153 msgid "" "The :func:`attrgetter` function now accepts dotted names and performs the " "corresponding attribute lookups::" @@ -3187,11 +3183,11 @@ msgstr "" ":func:`attrgetter` 関数がドット付きの名前を受け付け、対応する属性ルックアップ" "をするようになりました::" -#: ../../whatsnew/2.6.rst:2162 +#: ../../whatsnew/2.6.rst:2163 msgid "(Contributed by Georg Brandl, after a suggestion by Barry Warsaw.)" msgstr "(Contributed by Georg Brandl, after a suggestion by Barry Warsaw.)" -#: ../../whatsnew/2.6.rst:2164 +#: ../../whatsnew/2.6.rst:2165 msgid "" "The :mod:`os` module now wraps several new system calls. ``fchmod(fd, " "mode)`` and ``fchown(fd, uid, gid)`` change the mode and ownership of an " @@ -3203,7 +3199,7 @@ msgstr "" "gid)`` は所有権を変更し、 ``lchmod(path, mode)`` はシンボリックリンクのモード" "を変更します。 (Contributed by Georg Brandl and Christian Heimes.)" -#: ../../whatsnew/2.6.rst:2170 +#: ../../whatsnew/2.6.rst:2171 msgid "" ":func:`chflags` and :func:`lchflags` are wrappers for the corresponding " "system calls (where they're available), changing the flags set on a file. " @@ -3219,7 +3215,7 @@ msgstr "" "データの追記のみが可能であることを伝える :const:`UF_APPEND` 、があります。 " "(Contributed by M. Levinson.)" -#: ../../whatsnew/2.6.rst:2178 +#: ../../whatsnew/2.6.rst:2179 msgid "" "``os.closerange(low, high)`` efficiently closes all file descriptors from " "*low* to *high*, ignoring any errors and not including *high* itself. This " @@ -3232,7 +3228,7 @@ msgstr "" "を開始するのを高速化するために使われています。 (Contributed by Georg " "Brandl; :issue:`1663329`.)" -#: ../../whatsnew/2.6.rst:2183 +#: ../../whatsnew/2.6.rst:2184 msgid "" "The ``os.environ`` object's :meth:`clear` method will now unset the " "environment variables using :func:`os.unsetenv` in addition to clearing the " @@ -3242,7 +3238,7 @@ msgstr "" "ら取り除くだけでなく :func:`os.unsetenv` を使って環境変数を未設定にするように" "なりました。 (Contributed by Martin Horcicka; :issue:`1181`.)" -#: ../../whatsnew/2.6.rst:2187 +#: ../../whatsnew/2.6.rst:2188 msgid "" "The :func:`os.walk` function now has a ``followlinks`` parameter. If set to " "True, it will follow symlinks pointing to directories and visit the " @@ -3256,7 +3252,7 @@ msgstr "" "を指すシンボリックリンクなど参照が循環していると、無限再帰に陥りますので注意" "してください。 (:issue:`1273829`)" -#: ../../whatsnew/2.6.rst:2194 +#: ../../whatsnew/2.6.rst:2195 msgid "" "In the :mod:`os.path` module, the :func:`splitext` function has been changed " "to not split on leading period characters. This produces better results when " @@ -3269,7 +3265,7 @@ msgstr "" "なります。例えば ``os.path.splitext('.ipython')`` は ``('', '.ipython')`` で" "はなく ``('.ipython', '')`` を返すようになっています。 (:issue:`1115886`)" -#: ../../whatsnew/2.6.rst:2201 +#: ../../whatsnew/2.6.rst:2202 msgid "" "A new function, ``os.path.relpath(path, start='.')``, returns a relative " "path from the ``start`` path, if it's supplied, or from the current working " @@ -3280,7 +3276,7 @@ msgstr "" "の、与えられなければカレントディレクトリからの、目的地 ``path`` への相対パス" "を返します。 (Contributed by Richard Barran; :issue:`1339796`.)" -#: ../../whatsnew/2.6.rst:2206 +#: ../../whatsnew/2.6.rst:2207 msgid "" "On Windows, :func:`os.path.expandvars` will now expand environment variables " "given in the form \"%var%\", and \"~user\" will be expanded into the user's " @@ -3293,7 +3289,7 @@ msgstr "" "docstring もリファレンスもありませんし、当然この振る舞いは現在実在していませ" "ん。---)" -#: ../../whatsnew/2.6.rst:2211 +#: ../../whatsnew/2.6.rst:2212 msgid "" "The Python debugger provided by the :mod:`pdb` module gained a new command: " "\"run\" restarts the Python program being debugged and can optionally take " @@ -3305,7 +3301,7 @@ msgstr "" "ンとして、対象プログラムに与えるコマンドライン引数を渡せます。 (Contributed " "by Rocky Bernstein; :issue:`1393667`.)" -#: ../../whatsnew/2.6.rst:2216 +#: ../../whatsnew/2.6.rst:2217 msgid "" "The :func:`pdb.post_mortem` function, used to begin debugging a traceback, " "will now use the traceback returned by :func:`sys.exc_info` if no traceback " @@ -3316,7 +3312,7 @@ msgstr "" "バックを使うようになりました。 (Contributed by Facundo Batista; :issue:" "`1106316`.)" -#: ../../whatsnew/2.6.rst:2221 +#: ../../whatsnew/2.6.rst:2222 msgid "" "The :mod:`pickletools` module now has an :func:`optimize` function that " "takes a string containing a pickle and removes some unused opcodes, " @@ -3327,7 +3323,7 @@ msgstr "" "は pickle を含んだ文字列を受け取って、未使用 opcode を削除の上で同じデータ構" "造を含んだより小さい pickle を返します。 (Contributed by Raymond Hettinger.)" -#: ../../whatsnew/2.6.rst:2226 +#: ../../whatsnew/2.6.rst:2227 msgid "" "A :func:`get_data` function was added to the :mod:`pkgutil` module that " "returns the contents of resource files included with an installed Python " @@ -3337,11 +3333,11 @@ msgstr "" "ストールされている Python パッケージに含まれるリソースファイルの内容を返しま" "す。例えば::" -#: ../../whatsnew/2.6.rst:2241 +#: ../../whatsnew/2.6.rst:2242 msgid "(Contributed by Paul Moore; :issue:`2439`.)" msgstr "(Contributed by Paul Moore; :issue:`2439`.)" -#: ../../whatsnew/2.6.rst:2243 +#: ../../whatsnew/2.6.rst:2244 msgid "" "The :mod:`pyexpat` module's :class:`Parser` objects now allow setting their :" "attr:`buffer_size` attribute to change the size of the buffer used to hold " @@ -3351,7 +3347,7 @@ msgstr "" "`buffer_size` 属性の設定により文字データの保持に使うバッファのサイズを変更出" "来るようになりました。 (Contributed by Achim Gaedke; :issue:`1137`.)" -#: ../../whatsnew/2.6.rst:2248 +#: ../../whatsnew/2.6.rst:2249 msgid "" "The :mod:`Queue` module now provides queue variants that retrieve entries in " "different orders. The :class:`PriorityQueue` class stores queued items in a " @@ -3365,7 +3361,7 @@ msgstr "" "は、最後にエントリに追加されたものを最初に取り出します。つまり stack のように" "振舞うということです。 (Contributed by Raymond Hettinger.)" -#: ../../whatsnew/2.6.rst:2255 +#: ../../whatsnew/2.6.rst:2256 msgid "" "The :mod:`random` module's :class:`Random` objects can now be pickled on a " "32-bit system and unpickled on a 64-bit system, and vice versa. " @@ -3379,7 +3375,7 @@ msgstr "" "unpickle 出来ないことを意味します。 (Contributed by Shawn Ligocki; :issue:" "`1727780`.)" -#: ../../whatsnew/2.6.rst:2262 +#: ../../whatsnew/2.6.rst:2263 msgid "" "The new ``triangular(low, high, mode)`` function returns random numbers " "following a triangular distribution. The returned values are between *low* " @@ -3392,7 +3388,7 @@ msgstr "" "*high* を含まない *low* と *high* の間です。 (Contributed by Wladmir van der " "Laan and Raymond Hettinger; :issue:`1681432`.)" -#: ../../whatsnew/2.6.rst:2269 +#: ../../whatsnew/2.6.rst:2270 msgid "" "Long regular expression searches carried out by the :mod:`re` module will " "check for signals being delivered, so time-consuming searches can now be " @@ -3405,7 +3401,7 @@ msgstr "" "仕掛けたので Python が割り込める、というのがここで言っていることです。本質的" "には「長い」や「時間のかかる」はあまり関係ないです。---)" -#: ../../whatsnew/2.6.rst:2274 +#: ../../whatsnew/2.6.rst:2275 msgid "" "The regular expression module is implemented by compiling bytecodes for a " "tiny regex-specific virtual machine. Untrusted code could create malicious " @@ -3419,7 +3415,7 @@ msgstr "" "コードの検証をするようにしてあります。(Contributed by Guido van Rossum from " "work for Google App Engine; :issue:`3487`.)" -#: ../../whatsnew/2.6.rst:2281 +#: ../../whatsnew/2.6.rst:2282 msgid "" "The :mod:`rlcompleter` module's :meth:`Completer.complete()` method will now " "ignore exceptions triggered while evaluating a name. (Fixed by Lorenz " @@ -3429,7 +3425,7 @@ msgstr "" "評価時に引き起こされた例外を無視するようになりました。 (Fixed by Lorenz " "Quack; :issue:`2250`.)" -#: ../../whatsnew/2.6.rst:2285 +#: ../../whatsnew/2.6.rst:2286 msgid "" "The :mod:`sched` module's :class:`scheduler` instances now have a read-only :" "attr:`queue` attribute that returns the contents of the scheduler's queue, " @@ -3441,7 +3437,7 @@ msgstr "" "付きタプル ``(time, priority, action, argument)`` で返します。 (Contributed " "by Raymond Hettinger; :issue:`1861`.)" -#: ../../whatsnew/2.6.rst:2291 +#: ../../whatsnew/2.6.rst:2292 msgid "" "The :mod:`select` module now has wrapper functions for the Linux :c:func:`!" "epoll` and BSD :c:func:`!kqueue` system calls. :meth:`modify` method was " @@ -3451,7 +3447,7 @@ msgid "" "Heimes; :issue:`1657`.)" msgstr "" -#: ../../whatsnew/2.6.rst:2299 +#: ../../whatsnew/2.6.rst:2300 msgid "" "The :func:`shutil.copytree` function now has an optional *ignore* argument " "that takes a callable object. This callable will receive each directory " @@ -3463,7 +3459,7 @@ msgstr "" "ディレクトリパスとその内容リストを受け取って、コピーせずに無視したい名前のリ" "ストを返します。" -#: ../../whatsnew/2.6.rst:2304 +#: ../../whatsnew/2.6.rst:2305 msgid "" "The :mod:`shutil` module also provides an :func:`ignore_patterns` function " "for use with this new parameter. :func:`ignore_patterns` takes an arbitrary " @@ -3479,11 +3475,11 @@ msgstr "" "ディレクトリと '~' で終わるファイル名を持つ Emacs のバックアップファイルをス" "キップしてディレクトリコピーをする例です::" -#: ../../whatsnew/2.6.rst:2315 +#: ../../whatsnew/2.6.rst:2316 msgid "(Contributed by Tarek Ziadé; :issue:`2663`.)" msgstr "(Contributed by Tarek Ziadé; :issue:`2663`.)" -#: ../../whatsnew/2.6.rst:2317 +#: ../../whatsnew/2.6.rst:2318 msgid "" "Integrating signal handling with GUI handling event loops like those used by " "Tkinter or GTk+ has long been a problem; most software ends up polling, " @@ -3503,7 +3499,7 @@ msgstr "" "れます。 C レベルの関数 :c:func:`PySignal_SetWakeupFd` もあります。同じくファ" "イルデスクリプタを渡します。" -#: ../../whatsnew/2.6.rst:2327 +#: ../../whatsnew/2.6.rst:2328 msgid "" "Event loops will use this by opening a pipe to create two descriptors, one " "for reading and one for writing. The writable descriptor will be passed to :" @@ -3513,11 +3509,11 @@ msgid "" "loop will be woken up, avoiding the need to poll." msgstr "" -#: ../../whatsnew/2.6.rst:2335 +#: ../../whatsnew/2.6.rst:2336 msgid "(Contributed by Adam Olsen; :issue:`1583`.)" msgstr "(Contributed by Adam Olsen; :issue:`1583`.)" -#: ../../whatsnew/2.6.rst:2337 +#: ../../whatsnew/2.6.rst:2338 msgid "" "The :func:`siginterrupt` function is now available from Python code, and " "allows changing whether signals can interrupt system calls or not. " @@ -3527,7 +3523,7 @@ msgstr "" "ルがシステムコールを中断出来るかどうかを変更出来ます。 (Contributed by Ralf " "Schmitt.)" -#: ../../whatsnew/2.6.rst:2341 +#: ../../whatsnew/2.6.rst:2342 msgid "" "The :func:`setitimer` and :func:`getitimer` functions have also been added " "(where they're available). :func:`setitimer` allows setting interval timers " @@ -3541,7 +3537,7 @@ msgstr "" "る)、「プロセスの実行時間 (consumed process time)」、またはプロセス + システ" "ム時間の組合せで指定します。(Contributed by Guilherme Polo; :issue:`2240`.)" -#: ../../whatsnew/2.6.rst:2348 +#: ../../whatsnew/2.6.rst:2349 msgid "" "The :mod:`smtplib` module now supports SMTP over SSL thanks to the addition " "of the :class:`SMTP_SSL` class. This class supports an interface identical " @@ -3556,7 +3552,7 @@ msgstr "" "ンストラクタでは新たに省略可能な ``timeout`` パラメータを取ります。最初に接続" "を試みる際のタイムアウト値を秒で指定します。(Contributed by Facundo Batista.)" -#: ../../whatsnew/2.6.rst:2356 +#: ../../whatsnew/2.6.rst:2357 msgid "" "An implementation of the LMTP protocol (:rfc:`2033`) was also added to the " "module. LMTP is used in place of SMTP when transferring e-mail between " @@ -3567,7 +3563,7 @@ msgstr "" "ルキューを管理しないエージェント間で e-mail を転送する際に、SMTP の代わりに使" "われます。(LMTP implemented by Leif Hedstrom; :issue:`957003`.)" -#: ../../whatsnew/2.6.rst:2361 +#: ../../whatsnew/2.6.rst:2362 msgid "" ":meth:`SMTP.starttls` now complies with :rfc:`3207` and forgets any " "knowledge obtained from the server not obtained from the TLS negotiation " @@ -3577,7 +3573,7 @@ msgstr "" "で得たのでないサーバから得られるいかなる知識も記憶しません。(Patch " "contributed by Bill Fenner; :issue:`829951`.)" -#: ../../whatsnew/2.6.rst:2366 +#: ../../whatsnew/2.6.rst:2367 msgid "" "The :mod:`socket` module now supports TIPC (https://tipc.sourceforge.net/), " "a high-performance non-IP-based protocol designed for use in clustered " @@ -3585,7 +3581,7 @@ msgid "" "Bertogli; :issue:`1646`.)" msgstr "" -#: ../../whatsnew/2.6.rst:2371 +#: ../../whatsnew/2.6.rst:2372 msgid "" "A new function, :func:`create_connection`, takes an address and connects to " "it using an optional timeout value, returning the connected socket object. " @@ -3601,7 +3597,7 @@ msgstr "" "`create_connection` に乗り換えることは、それが IPv6 対応で必要なこと全て、と" "なるでしょう。" -#: ../../whatsnew/2.6.rst:2379 +#: ../../whatsnew/2.6.rst:2380 msgid "" "The base classes in the :mod:`SocketServer` module now support calling a :" "meth:`handle_timeout` method after a span of inactivity specified by the " @@ -3619,7 +3615,7 @@ msgstr "" "(Contributed by Pedro Werneck and Jeffrey Yasskin; :issue:`742598`, :issue:" "`1193577`.)" -#: ../../whatsnew/2.6.rst:2388 +#: ../../whatsnew/2.6.rst:2389 msgid "" "The :mod:`sqlite3` module, maintained by Gerhard Häring, has been updated " "from version 2.3.2 in Python 2.5 to version 2.4.1." @@ -3627,13 +3623,13 @@ msgstr "" "Gerhard Häring により保守されている :mod:`sqlite3` モジュールが、Python 2.5 " "時のバージョン 2.3.2 からバージョン 2.4.1 に更新されました。" -#: ../../whatsnew/2.6.rst:2392 +#: ../../whatsnew/2.6.rst:2393 msgid "" "The :mod:`struct` module now supports the C99 :c:expr:`_Bool` type, using " "the format character ``'?'``. (Contributed by David Remahl.)" msgstr "" -#: ../../whatsnew/2.6.rst:2396 +#: ../../whatsnew/2.6.rst:2397 msgid "" "The :class:`Popen` objects provided by the :mod:`subprocess` module now " "have :meth:`terminate`, :meth:`kill`, and :meth:`send_signal` methods. On " @@ -3647,7 +3643,7 @@ msgstr "" "れ、またこれら全てのメソッドは Win32 API 関数の :c:func:`TerminateProcess` の" "別名になっています。 (Contributed by Christian Heimes.)" -#: ../../whatsnew/2.6.rst:2403 +#: ../../whatsnew/2.6.rst:2404 msgid "" "A new variable in the :mod:`sys` module, :attr:`float_info`, is an object " "containing information derived from the :file:`float.h` file about the " @@ -3662,7 +3658,7 @@ msgstr "" "部の桁数)、 :attr:`epsilon` (1.0 と、それより大きい表現可能な最小値との差)な" "どがあります。 (Contributed by Christian Heimes; :issue:`1534`.)" -#: ../../whatsnew/2.6.rst:2411 +#: ../../whatsnew/2.6.rst:2412 msgid "" "Another new variable, :attr:`dont_write_bytecode`, controls whether Python " "writes any :file:`.pyc` or :file:`.pyo` files on importing a module. If this " @@ -3681,7 +3677,7 @@ msgstr "" "このあとでこの変数の値を変更することで、バイトコードファイルを作るかどうかを" "制御出来ます。 (Contributed by Neal Norwitz and Georg Brandl.)" -#: ../../whatsnew/2.6.rst:2422 +#: ../../whatsnew/2.6.rst:2423 msgid "" "Information about the command-line arguments supplied to the Python " "interpreter is available by reading attributes of a named tuple available as " @@ -3695,7 +3691,7 @@ msgstr "" "は :attr:`debug` 属性が真、などです。これら属性は全て読み出し専用です。 " "(Contributed by Christian Heimes.)" -#: ../../whatsnew/2.6.rst:2430 +#: ../../whatsnew/2.6.rst:2431 msgid "" "A new function, :func:`getsizeof`, takes a Python object and returns the " "amount of memory used by the object, measured in bytes. Built-in objects " @@ -3710,7 +3706,7 @@ msgstr "" "その場合 :meth:`__sizeof__` メソッドを定義してオブジェクトのサイズを返すこと" "ができます。 (Robert Schuppenies による貢献. :issue:`2898`)" -#: ../../whatsnew/2.6.rst:2437 +#: ../../whatsnew/2.6.rst:2438 msgid "" "It's now possible to determine the current profiler and tracer functions by " "calling :func:`sys.getprofile` and :func:`sys.gettrace`. (Contributed by " @@ -3720,7 +3716,7 @@ msgstr "" "`sys.gettrace` で知ることが出来るようになりました。 (Contributed by Georg " "Brandl; :issue:`1648`.)" -#: ../../whatsnew/2.6.rst:2441 +#: ../../whatsnew/2.6.rst:2442 msgid "" "The :mod:`tarfile` module now supports POSIX.1-2001 (pax) tarfiles in " "addition to the POSIX.1-1988 (ustar) and GNU tar formats that were already " @@ -3732,7 +3728,7 @@ msgstr "" "た。デフォルトは GNU tar です; これと違うフォーマットでファイルを開くには " "``format`` パラメータで指定します::" -#: ../../whatsnew/2.6.rst:2449 +#: ../../whatsnew/2.6.rst:2450 msgid "" "The new ``encoding`` and ``errors`` parameters specify an encoding and an " "error handling scheme for character conversions. ``'strict'``, " @@ -3747,7 +3743,7 @@ msgstr "" "の UTF-8 表現に置き換えます。(文字変換は、PAX フォーマットが Unicode ファイル" "名をサポートするために現れ、デフォルトは UTF-8 エンコーディングです。)" -#: ../../whatsnew/2.6.rst:2457 +#: ../../whatsnew/2.6.rst:2458 msgid "" "The :meth:`TarFile.add` method now accepts an ``exclude`` argument that's a " "function that can be used to exclude certain filenames from an archive. The " @@ -3757,11 +3753,11 @@ msgid "" "added directories." msgstr "" -#: ../../whatsnew/2.6.rst:2465 +#: ../../whatsnew/2.6.rst:2466 msgid "(All changes contributed by Lars Gustäbel)." msgstr "(All changes contributed by Lars Gustäbel)." -#: ../../whatsnew/2.6.rst:2467 +#: ../../whatsnew/2.6.rst:2468 msgid "" "An optional ``timeout`` parameter was added to the :class:`telnetlib.Telnet` " "class constructor, specifying a timeout measured in seconds. (Added by " @@ -3771,7 +3767,7 @@ msgstr "" "ラクタに追加されました。タイムアウトを秒で指定します。 (Added by Facundo " "Batista.)" -#: ../../whatsnew/2.6.rst:2471 +#: ../../whatsnew/2.6.rst:2472 msgid "" "The :class:`tempfile.NamedTemporaryFile` class usually deletes the temporary " "file it created when the file is closed. This behaviour can now be changed " @@ -3783,7 +3779,7 @@ msgstr "" "タに ``delete=False`` を渡すことで変更出来るようになりました。 (Contributed " "by Damien Miller; :issue:`1537850`.)" -#: ../../whatsnew/2.6.rst:2476 +#: ../../whatsnew/2.6.rst:2477 msgid "" "A new class, :class:`SpooledTemporaryFile`, behaves like a temporary file " "but stores its data in memory until a maximum size is exceeded. On reaching " @@ -3795,7 +3791,7 @@ msgstr "" "えると、その内容がディスク上の一時ファイルに書き込まれます。 (Contributed by " "Dustin J. Mitchell.)" -#: ../../whatsnew/2.6.rst:2481 +#: ../../whatsnew/2.6.rst:2482 msgid "" "The :class:`NamedTemporaryFile` and :class:`SpooledTemporaryFile` classes " "both work as context managers, so you can write ``with tempfile." @@ -3807,7 +3803,7 @@ msgstr "" "tmp: ...`` のように書くことが出来ます。 (Contributed by Alexander " "Belopolsky; :issue:`2021`.)" -#: ../../whatsnew/2.6.rst:2486 +#: ../../whatsnew/2.6.rst:2487 msgid "" "The :mod:`test.test_support` module gained a number of context managers " "useful for writing tests. :func:`EnvironmentVarGuard` is a context manager " @@ -3818,7 +3814,7 @@ msgstr "" "ジャが追加されています。 :func:`EnvironmentVarGuard` は環境変数を一時的に変更" "して自動的に元に戻すコンテキストマネージャです。" -#: ../../whatsnew/2.6.rst:2492 +#: ../../whatsnew/2.6.rst:2493 msgid "" "Another context manager, :class:`TransientResource`, can surround calls to " "resources that may or may not be available; it will catch and ignore a " @@ -3837,7 +3833,7 @@ msgstr "" "す。---)。例えば、ネットワークのテストでは外部のウェブサイトとの接続時の特定" "の失敗を無視するでしょう::" -#: ../../whatsnew/2.6.rst:2503 +#: ../../whatsnew/2.6.rst:2504 msgid "" "Finally, :func:`check_warnings` resets the :mod:`warning` module's warning " "filters and returns an object that will record all warning messages " @@ -3847,22 +3843,22 @@ msgstr "" "リセットして、全ての引き起こされる警告メッセージを記録するオブジェクトを返し" "ます (:issue:`3781`)::" -#: ../../whatsnew/2.6.rst:2513 +#: ../../whatsnew/2.6.rst:2514 msgid "(Contributed by Brett Cannon.)" msgstr "(Contributed by Brett Cannon.)" -#: ../../whatsnew/2.6.rst:2515 +#: ../../whatsnew/2.6.rst:2516 msgid "" "The :mod:`textwrap` module can now preserve existing whitespace at the " "beginnings and ends of the newly created lines by specifying " "``drop_whitespace=False`` as an argument::" msgstr "" -#: ../../whatsnew/2.6.rst:2534 +#: ../../whatsnew/2.6.rst:2535 msgid "(Contributed by Dwayne Bailey; :issue:`1581073`.)" msgstr "(Contributed by Dwayne Bailey; :issue:`1581073`.)" -#: ../../whatsnew/2.6.rst:2536 +#: ../../whatsnew/2.6.rst:2537 msgid "" "The :mod:`threading` module API is being changed to use properties such as :" "attr:`daemon` instead of :meth:`setDaemon` and :meth:`isDaemon` methods, and " @@ -3885,7 +3881,7 @@ msgstr "" "Peterson.) (--- 訳注: 3.5 でもこの状態は続いたままです。今でもキャメルケース" "スタイルのメソッドが使えます。ですが、もちろん新しい名前を使うべきです。---)" -#: ../../whatsnew/2.6.rst:2547 +#: ../../whatsnew/2.6.rst:2548 msgid "" "The :mod:`threading` module's :class:`Thread` objects gained an :attr:" "`ident` property that returns the thread's identifier, a nonzero integer. " @@ -3895,7 +3891,7 @@ msgstr "" "ロパティが追加されています。スレッドの識別子を非ゼロの整数で返します。 " "(Contributed by Gregory P. Smith; :issue:`2871`.)" -#: ../../whatsnew/2.6.rst:2552 +#: ../../whatsnew/2.6.rst:2553 msgid "" "The :mod:`timeit` module now accepts callables as well as strings for the " "statement being timed and for the setup code. Two convenience functions were " @@ -3911,7 +3907,7 @@ msgstr "" "number)`` で、インスタンスを作成して対応するメソッドを呼びます。 " "(Contributed by Erik Demaine; :issue:`1533909`.)" -#: ../../whatsnew/2.6.rst:2561 +#: ../../whatsnew/2.6.rst:2562 msgid "" "The :mod:`Tkinter` module now accepts lists and tuples for options, " "separating the elements by spaces before passing the resulting value to Tcl/" @@ -3921,7 +3917,7 @@ msgstr "" "なっています。Tcl/Tk へは空白区切りの文字列にして渡されます。 (Contributed " "by Guilherme Polo; :issue:`2906`.)" -#: ../../whatsnew/2.6.rst:2566 +#: ../../whatsnew/2.6.rst:2567 msgid "" "The :mod:`turtle` module for turtle graphics was greatly enhanced by Gregor " "Lingl. New features in the module include:" @@ -3930,11 +3926,11 @@ msgstr "" "大幅に拡張されました。\n" "モジュールの新しい機能は次の通りです:" -#: ../../whatsnew/2.6.rst:2569 +#: ../../whatsnew/2.6.rst:2570 msgid "Better animation of turtle movement and rotation." msgstr "亀の移動と回転のアニメーションの改善。" -#: ../../whatsnew/2.6.rst:2570 +#: ../../whatsnew/2.6.rst:2571 msgid "" "Control over turtle movement using the new :meth:`delay`, :meth:`tracer`, " "and :meth:`speed` methods." @@ -3942,17 +3938,17 @@ msgstr "" "新しい :meth:`delay` メソッド、 :meth:`tracer` メソッド、 :meth:`speed` メ" "ソッドを使って亀の動きをコントロールできるようになりました。" -#: ../../whatsnew/2.6.rst:2572 +#: ../../whatsnew/2.6.rst:2573 msgid "" "The ability to set new shapes for the turtle, and to define a new coordinate " "system." msgstr "亀に新しい姿を設定できたり、新しい座標系を定義できるようになりました。" -#: ../../whatsnew/2.6.rst:2574 +#: ../../whatsnew/2.6.rst:2575 msgid "Turtles now have an :meth:`undo()` method that can roll back actions." msgstr "亀に、動作を巻き戻せる :meth:`undo()` メソッドが増えました。" -#: ../../whatsnew/2.6.rst:2575 +#: ../../whatsnew/2.6.rst:2576 msgid "" "Simple support for reacting to input events such as mouse and keyboard " "activity, making it possible to write simple games." @@ -3960,7 +3956,7 @@ msgstr "" "マウスやキーボードからの入力イベントに反応するための簡易なサポートが入り、簡" "単なゲームを書けるようになりました。" -#: ../../whatsnew/2.6.rst:2577 +#: ../../whatsnew/2.6.rst:2578 msgid "" "A :file:`turtle.cfg` file can be used to customize the starting appearance " "of the turtle's screen." @@ -3968,7 +3964,7 @@ msgstr "" ":file:`turtle.cfg` を使って、turtle の画面の起動時の見た目をカスタマイズでき" "るようになりました。" -#: ../../whatsnew/2.6.rst:2579 +#: ../../whatsnew/2.6.rst:2580 msgid "" "The module's docstrings can be replaced by new docstrings that have been " "translated into another language." @@ -3976,11 +3972,11 @@ msgstr "" "モジュールの docstring が、他の言語に翻訳された docstring に置き換えられるよ" "うになりました。" -#: ../../whatsnew/2.6.rst:2582 +#: ../../whatsnew/2.6.rst:2583 msgid "(:issue:`1513695`)" msgstr "(:issue:`1513695`)" -#: ../../whatsnew/2.6.rst:2584 +#: ../../whatsnew/2.6.rst:2585 msgid "" "An optional ``timeout`` parameter was added to the :func:`urllib.urlopen` " "function and the :class:`urllib.ftpwrapper` class constructor, as well as " @@ -3991,11 +3987,11 @@ msgstr "" "`urllib.ftpwrapper` クラスのコンストラクタ、 :func:`urllib2.urlopen` 関数に追" "加されました。タイムアウトを秒で指定します。例えば::" -#: ../../whatsnew/2.6.rst:2597 +#: ../../whatsnew/2.6.rst:2598 msgid "(Added by Facundo Batista.)" msgstr "(Added by Facundo Batista.)" -#: ../../whatsnew/2.6.rst:2599 +#: ../../whatsnew/2.6.rst:2600 msgid "" "The Unicode database provided by the :mod:`unicodedata` module has been " "updated to version 5.1.0. (Updated by Martin von Löwis; :issue:`3811`.)" @@ -4003,7 +3999,7 @@ msgstr "" ":mod:`unicodedata` モジュールで提供される Unicode データベースが、バージョン " "5.1.0 に更新されました。 (Updated by Martin von Löwis; :issue:`3811`.)" -#: ../../whatsnew/2.6.rst:2603 +#: ../../whatsnew/2.6.rst:2604 msgid "" "The :mod:`warnings` module's :func:`formatwarning` and :func:`showwarning` " "gained an optional *line* argument that can be used to supply the line of " @@ -4015,7 +4011,7 @@ msgstr "" "来ます。 (Added as part of :issue:`1631171`, which re-implemented part of " "the :mod:`warnings` module in C code.)" -#: ../../whatsnew/2.6.rst:2608 +#: ../../whatsnew/2.6.rst:2609 msgid "" "A new function, :func:`catch_warnings`, is a context manager intended for " "testing purposes that lets you temporarily modify the warning filters and " @@ -4024,7 +4020,7 @@ msgstr "" "新しい関数 :func:`catch_warnings` はコンテキストマネージャで、テスト目的で警" "告フィルタを一時的に変更して元に戻すのに使えます。 (:issue:`3781`)." -#: ../../whatsnew/2.6.rst:2612 +#: ../../whatsnew/2.6.rst:2613 msgid "" "The XML-RPC :class:`SimpleXMLRPCServer` and :class:`DocXMLRPCServer` classes " "can now be prevented from immediately opening and binding to their socket by " @@ -4043,7 +4039,7 @@ msgstr "" "`allow_reuse_address` 属性を変更するのに使えます。 (Contributed by Peter " "Parente; :issue:`1599845`.)" -#: ../../whatsnew/2.6.rst:2621 +#: ../../whatsnew/2.6.rst:2622 msgid "" ":class:`SimpleXMLRPCServer` also has a :attr:`_send_traceback_header` " "attribute; if true, the exception and formatted traceback are returned as " @@ -4061,7 +4057,7 @@ msgstr "" "だったりするような繊細な情報満載かもしれないのです。 (Contributed by Alan " "McIntyre as part of his project for Google's Summer of Code 2007.)" -#: ../../whatsnew/2.6.rst:2629 +#: ../../whatsnew/2.6.rst:2630 msgid "" "The :mod:`xmlrpclib` module no longer automatically converts :class:" "`datetime.date` and :class:`datetime.time` to the :class:`xmlrpclib." @@ -4082,7 +4078,7 @@ msgstr "" "`2014`) と、XML-RPC レスポンス内で ```` を使った 64 ビット整数表現 " "(contributed by Riku Lindblad; :issue:`2985`) を処理できます。" -#: ../../whatsnew/2.6.rst:2639 +#: ../../whatsnew/2.6.rst:2640 msgid "" "The :mod:`zipfile` module's :class:`ZipFile` class now has :meth:`extract` " "and :meth:`extractall` methods that will unpack a single file or all the " @@ -4093,11 +4089,11 @@ msgstr "" "一ファイル、全てのファイルを、カレントディレクトリか指定のディレクトリに展開" "します::" -#: ../../whatsnew/2.6.rst:2653 +#: ../../whatsnew/2.6.rst:2654 msgid "(Contributed by Alan McIntyre; :issue:`467924`.)" msgstr "(Contributed by Alan McIntyre; :issue:`467924`.)" -#: ../../whatsnew/2.6.rst:2655 +#: ../../whatsnew/2.6.rst:2656 msgid "" "The :meth:`open`, :meth:`read` and :meth:`extract` methods can now take " "either a filename or a :class:`ZipInfo` object. This is useful when an " @@ -4109,7 +4105,7 @@ msgstr "" "重複したファイル名を含んでいるアーカイブで有用でしょう。 (Contributed by " "Graham Horler; :issue:`1775025`.)" -#: ../../whatsnew/2.6.rst:2660 +#: ../../whatsnew/2.6.rst:2661 msgid "" "Finally, :mod:`zipfile` now supports using Unicode filenames for archived " "files. (Contributed by Alexey Borzenkov; :issue:`1734346`.)" @@ -4120,11 +4116,11 @@ msgstr "" "zip ファイルのファイル名標準は存在しないのでこれは問題を起こすことがありま" "す。---)" -#: ../../whatsnew/2.6.rst:2667 +#: ../../whatsnew/2.6.rst:2668 msgid "The :mod:`ast` module" msgstr ":mod:`ast` モジュール" -#: ../../whatsnew/2.6.rst:2669 +#: ../../whatsnew/2.6.rst:2670 msgid "" "The :mod:`ast` module provides an Abstract Syntax Tree representation of " "Python code, and Armin Ronacher contributed a set of helper functions that " @@ -4136,7 +4132,7 @@ msgstr "" "数を寄稿しました。これらは HTML テンプレートパッケージであるとか、コードアナ" "ライザ、などなどの、Python コードを処理するツールで有用となるでしょう。" -#: ../../whatsnew/2.6.rst:2676 +#: ../../whatsnew/2.6.rst:2677 msgid "" "The :func:`parse` function takes an expression and returns an AST. The :func:" "`dump` function outputs a representation of a tree, suitable for debugging::" @@ -4144,11 +4140,11 @@ msgstr "" ":func:`parse` 関数は式を受け取り AST を返します。 :func:`dump` 関数はツリー表" "現をデバッギングに相応しい出力をします::" -#: ../../whatsnew/2.6.rst:2690 +#: ../../whatsnew/2.6.rst:2691 msgid "This outputs a deeply nested tree::" msgstr "これの出力は深くネストされたツリーです::" -#: ../../whatsnew/2.6.rst:2723 +#: ../../whatsnew/2.6.rst:2724 msgid "" "The :func:`literal_eval` method takes a string or an AST representing a " "literal expression, parses and evaluates it, and returns the resulting " @@ -4164,7 +4160,7 @@ msgstr "" "リスクを許容出来ないということであれば、 :func:`literal_eval` がそれを安全に" "処理してくれます::" -#: ../../whatsnew/2.6.rst:2739 +#: ../../whatsnew/2.6.rst:2740 msgid "" "The module also includes :class:`NodeVisitor` and :class:`NodeTransformer` " "classes for traversing and modifying an AST, and functions for common " @@ -4174,11 +4170,11 @@ msgstr "" "`NodeTransformer` クラス、例えば行番号の変更などの共通的な変形を行う関数群が" "含まれています。" -#: ../../whatsnew/2.6.rst:2747 +#: ../../whatsnew/2.6.rst:2748 msgid "The :mod:`future_builtins` module" msgstr ":mod:`future_builtins` モジュール" -#: ../../whatsnew/2.6.rst:2749 +#: ../../whatsnew/2.6.rst:2750 msgid "" "Python 3.0 makes many changes to the repertoire of built-in functions, and " "most of the changes can't be introduced in the Python 2.x series because " @@ -4191,11 +4187,11 @@ msgstr "" "`future_builtins` モジュールは 3.0 互換コードを書くのにインポート出来る 3.0 " "互換関数セットです。" -#: ../../whatsnew/2.6.rst:2756 +#: ../../whatsnew/2.6.rst:2757 msgid "The functions in this module currently include:" msgstr "このモジュールに今のところ含まれるのは:" -#: ../../whatsnew/2.6.rst:2758 +#: ../../whatsnew/2.6.rst:2759 msgid "" "``ascii(obj)``: equivalent to :func:`repr`. In Python 3.0, :func:`repr` " "will return a Unicode string, while :func:`ascii` will return a pure ASCII " @@ -4205,7 +4201,7 @@ msgstr "" "func:`repr` は Unicode 文字列を返すようになっていて、一方 :func:`ascii` は純" "粋な ASCII バイト文字列を返します。" -#: ../../whatsnew/2.6.rst:2762 +#: ../../whatsnew/2.6.rst:2763 msgid "" "``filter(predicate, iterable)``, ``map(func, iterable1, ...)``: the 3.0 " "versions return iterators, unlike the 2.x builtins which return lists." @@ -4214,7 +4210,7 @@ msgstr "" "うにイテレータを返し、これは 2.x のビルトインがリストで返すのとは違っていま" "す。" -#: ../../whatsnew/2.6.rst:2766 +#: ../../whatsnew/2.6.rst:2767 msgid "" "``hex(value)``, ``oct(value)``: instead of calling the :meth:`__hex__` or :" "meth:`__oct__` methods, these versions will call the :meth:`__index__` " @@ -4226,11 +4222,11 @@ msgstr "" "hexadecimal または octal に変換します。こちらのバージョンの :func:`oct` は新" "しい ``0o`` 記法で返却します。" -#: ../../whatsnew/2.6.rst:2775 +#: ../../whatsnew/2.6.rst:2776 msgid "The :mod:`json` module: JavaScript Object Notation" msgstr ":mod:`json` モジュール: JavaScript オブジェクト記法" -#: ../../whatsnew/2.6.rst:2777 +#: ../../whatsnew/2.6.rst:2778 msgid "" "The new :mod:`json` module supports the encoding and decoding of Python " "types in JSON (Javascript Object Notation). JSON is a lightweight " @@ -4242,7 +4238,7 @@ msgstr "" "フォーマットで、頻繁にウェブアプリケーションで使われます。JSON の詳細情報は " "http://www.json.org にあります。" -#: ../../whatsnew/2.6.rst:2782 +#: ../../whatsnew/2.6.rst:2783 msgid "" ":mod:`json` comes with support for decoding and encoding most built-in " "Python types. The following example encodes and decodes a dictionary::" @@ -4251,7 +4247,7 @@ msgstr "" "ングサポートを備えています。以下の例は辞書のエンコードとデコードをしていま" "す::" -#: ../../whatsnew/2.6.rst:2793 +#: ../../whatsnew/2.6.rst:2794 msgid "" "It's also possible to write your own decoders and encoders to support more " "types. Pretty-printing of the JSON strings is also supported." @@ -4259,17 +4255,17 @@ msgstr "" "ほかの何か型をサポートするのに独自のエンコーダ、デコーダを書くことも出来ま" "す。JSON 文字列の pretty-printing もサポートされています。" -#: ../../whatsnew/2.6.rst:2796 +#: ../../whatsnew/2.6.rst:2797 msgid ":mod:`json` (originally called simplejson) was written by Bob Ippolito." msgstr "" ":mod:`json` (もともと simplejson と呼ばれていました) は Bob Ippolito によって" "書かれました。" -#: ../../whatsnew/2.6.rst:2803 +#: ../../whatsnew/2.6.rst:2804 msgid "The :mod:`plistlib` module: A Property-List Parser" msgstr ":mod:`plistlib` モジュール: プロパティリストパーサ" -#: ../../whatsnew/2.6.rst:2805 +#: ../../whatsnew/2.6.rst:2806 msgid "" "The ``.plist`` format is commonly used on Mac OS X to store basic data types " "(numbers, strings, lists, and dictionaries) by serializing them into an XML-" @@ -4279,7 +4275,7 @@ msgstr "" "文字列、リスト、辞書)を XML ベースのフォーマットにシリアライズして格納しま" "す。データ型の XML-RPC シリアライズに似ています。" -#: ../../whatsnew/2.6.rst:2810 +#: ../../whatsnew/2.6.rst:2811 msgid "" "Despite being primarily used on Mac OS X, the format has nothing Mac-" "specific about it and the Python implementation works on any platform that " @@ -4290,20 +4286,20 @@ msgstr "" "その Python 実装は Python がサポートするあらゆるプラットフォームで動作するの" "で、:mod:`plistlib` は標準ライブラリに昇格しました。" -#: ../../whatsnew/2.6.rst:2815 +#: ../../whatsnew/2.6.rst:2816 msgid "Using the module is simple::" msgstr "モジュールを使うのは単純です::" -#: ../../whatsnew/2.6.rst:2842 +#: ../../whatsnew/2.6.rst:2843 msgid "ctypes Enhancements" msgstr "ctypes の強化" -#: ../../whatsnew/2.6.rst:2844 +#: ../../whatsnew/2.6.rst:2845 msgid "" "Thomas Heller continued to maintain and enhance the :mod:`ctypes` module." msgstr "Thomas Heller は :mod:`ctypes` モジュールの保守と拡張を続けました。" -#: ../../whatsnew/2.6.rst:2847 +#: ../../whatsnew/2.6.rst:2848 msgid "" ":mod:`ctypes` now supports a :class:`c_bool` datatype that represents the " "C99 ``bool`` type. (Contributed by David Remahl; :issue:`1649190`.)" @@ -4311,7 +4307,7 @@ msgstr "" ":mod:`ctypes` は今では C99 ``bool`` 型を表す :class:`c_bool` データ型をサポー" "トします。 (Contributed by David Remahl; :issue:`1649190`.)" -#: ../../whatsnew/2.6.rst:2851 +#: ../../whatsnew/2.6.rst:2852 msgid "" "The :mod:`ctypes` string, buffer and array types have improved support for " "extended slicing syntax, where various combinations of ``(start, stop, " @@ -4321,7 +4317,7 @@ msgstr "" "トするように改善され、 ``(start, stop, step)`` の色々な組み合わせが使えま" "す。 (Implemented by Thomas Wouters.)" -#: ../../whatsnew/2.6.rst:2858 +#: ../../whatsnew/2.6.rst:2859 msgid "" "All :mod:`ctypes` data types now support :meth:`from_buffer` and :meth:" "`from_buffer_copy` methods that create a ctypes instance based on a provided " @@ -4334,7 +4330,7 @@ msgstr "" "`from_buffer_copy` はそのオブジェクトの内容をコピーし、 :meth:`from_buffer` " "はその同じメモリ領域を共有します。" -#: ../../whatsnew/2.6.rst:2865 +#: ../../whatsnew/2.6.rst:2866 msgid "" "A new calling convention tells :mod:`ctypes` to clear the ``errno`` or Win32 " "LastError variables at the outset of each wrapped call. (Implemented by " @@ -4344,7 +4340,7 @@ msgstr "" "時に ``errno`` あるいは Win32 LastError 変数をクリアすることを伝えることで" "す。 (Implemented by Thomas Heller; :issue:`1798`.)" -#: ../../whatsnew/2.6.rst:2869 +#: ../../whatsnew/2.6.rst:2870 msgid "" "You can now retrieve the Unix ``errno`` variable after a function call. " "When creating a wrapped function, you can supply ``use_errno=True`` as a " @@ -4357,7 +4353,7 @@ msgstr "" "て渡すことが出来、それによりモジュールレベル関数の :meth:`set_errno` と :" "meth:`get_errno` を、 errno 値を設定・取得するのに呼び出せます。" -#: ../../whatsnew/2.6.rst:2875 +#: ../../whatsnew/2.6.rst:2876 msgid "" "The Win32 LastError variable is similarly supported by the :func:`DLL`, :" "func:`OleDLL`, and :func:`WinDLL` functions. You supply " @@ -4368,7 +4364,7 @@ msgstr "" "にサポートされています。同じように ``use_last_error=True`` を与え、モジュール" "レベル関数 :meth:`set_last_error` と :meth:`get_last_error` を使います。" -#: ../../whatsnew/2.6.rst:2881 +#: ../../whatsnew/2.6.rst:2882 msgid "" "The :func:`byref` function, used to retrieve a pointer to a ctypes instance, " "now has an optional *offset* parameter that is a byte count that will be " @@ -4378,11 +4374,11 @@ msgstr "" "が、省略可能な *offset* パラメータを受け取るようになりました。これは返される" "ポインタに追加されるバイト数です。" -#: ../../whatsnew/2.6.rst:2888 +#: ../../whatsnew/2.6.rst:2889 msgid "Improved SSL Support" msgstr "SSL サポートの改善" -#: ../../whatsnew/2.6.rst:2890 +#: ../../whatsnew/2.6.rst:2891 msgid "" "Bill Janssen made extensive improvements to Python 2.6's support for the " "Secure Sockets Layer by adding a new module, :mod:`ssl`, that's built atop " @@ -4400,7 +4396,7 @@ msgstr "" "トを提供しています。既存の :mod:`socket` モジュールにある SSL サポートは削除" "されずにそのまま使えますが、Python 3.0 では削除されます。" -#: ../../whatsnew/2.6.rst:2899 +#: ../../whatsnew/2.6.rst:2900 msgid "" "To use the new module, you must first create a TCP connection in the usual " "way and then pass it to the :func:`ssl.wrap_socket` function. It's possible " @@ -4413,15 +4409,15 @@ msgstr "" "す ---)。証明書が必要かどうかを指定することが出来、証明書の情報を :meth:" "`getpeercert` メソッドで取得することも出来ます。" -#: ../../whatsnew/2.6.rst:2906 +#: ../../whatsnew/2.6.rst:2907 msgid "The documentation for the :mod:`ssl` module." msgstr ":mod:`ssl` モジュールについてのドキュメント。" -#: ../../whatsnew/2.6.rst:2911 +#: ../../whatsnew/2.6.rst:2912 msgid "Deprecations and Removals" msgstr "非推奨と削除" -#: ../../whatsnew/2.6.rst:2913 ../../whatsnew/2.6.rst:3241 +#: ../../whatsnew/2.6.rst:2914 ../../whatsnew/2.6.rst:3242 msgid "" "String exceptions have been removed. Attempting to use them raises a :exc:" "`TypeError`." @@ -4429,7 +4425,7 @@ msgstr "" "文字列を例外として送出することは出来なくなりました。これをすると :exc:" "`TypeError` を起こします。" -#: ../../whatsnew/2.6.rst:2916 +#: ../../whatsnew/2.6.rst:2917 msgid "" "Changes to the :class:`Exception` interface as dictated by :pep:`352` " "continue to be made. For 2.6, the :attr:`message` attribute is being " @@ -4439,7 +4435,7 @@ msgstr "" "います。 2.6 では、 :attr:`args` 属性を採用するので :attr:`message` 属性が非" "推奨となります。" -#: ../../whatsnew/2.6.rst:2921 +#: ../../whatsnew/2.6.rst:2922 msgid "" "(3.0-warning mode) Python 3.0 will feature a reorganized standard library " "that will drop many outdated modules and rename others. Python 2.6 running " @@ -4449,7 +4445,7 @@ msgstr "" "ものも名前変更するような標準ライブラリの再編成が特色となります。Python 2.6 " "を 3.0 警告モードで動かすと、それらがインポートされる際に警告が励起されます。" -#: ../../whatsnew/2.6.rst:2926 +#: ../../whatsnew/2.6.rst:2927 msgid "" "The list of deprecated modules is: :mod:`audiodev`, :mod:`bgenlocations`, :" "mod:`buildtools`, :mod:`bundlebuilder`, :mod:`Canvas`, :mod:`compiler`, :mod:" @@ -4465,11 +4461,11 @@ msgstr "" "`mhlib`, :mod:`mimetools`, :mod:`multifile`, :mod:`new`, :mod:`pure`, :mod:" "`statvfs`, :mod:`sunaudiodev`, :mod:`test.testall`, :mod:`toaiff`." -#: ../../whatsnew/2.6.rst:2951 +#: ../../whatsnew/2.6.rst:2952 msgid "The :mod:`gopherlib` module has been removed." msgstr ":mod:`gopherlib` モジュールは削除されました。" -#: ../../whatsnew/2.6.rst:2953 +#: ../../whatsnew/2.6.rst:2954 msgid "" "The :mod:`MimeWriter` module and :mod:`mimify` module have been deprecated; " "use the :mod:`email` package instead." @@ -4477,7 +4473,7 @@ msgstr "" ":mod:`MimeWriter` モジュールと :mod:`mimify` モジュール は非推奨となっていま" "す。代わりに :mod:`email` パッケージを使ってください。" -#: ../../whatsnew/2.6.rst:2957 +#: ../../whatsnew/2.6.rst:2958 msgid "" "The :mod:`md5` module has been deprecated; use the :mod:`hashlib` module " "instead." @@ -4485,7 +4481,7 @@ msgstr "" ":mod:`md5` モジュールは非推奨となりました。代わりに :mod:`hashlib` モジュール" "を使ってください。" -#: ../../whatsnew/2.6.rst:2960 +#: ../../whatsnew/2.6.rst:2961 msgid "" "The :mod:`posixfile` module has been deprecated; :func:`fcntl.lockf` " "provides better locking." @@ -4493,7 +4489,7 @@ msgstr "" ":mod:`posixfile` モジュールは非推奨となりました。 :func:`fcntl.lockf` がより" "良いロッキングを提供しています。" -#: ../../whatsnew/2.6.rst:2963 +#: ../../whatsnew/2.6.rst:2964 msgid "" "The :mod:`popen2` module has been deprecated; use the :mod:`subprocess` " "module." @@ -4501,11 +4497,11 @@ msgstr "" ":mod:`popen2` モジュールは非推奨となっています。 :mod:`subprocess` モジュー" "ルを使ってください。" -#: ../../whatsnew/2.6.rst:2966 +#: ../../whatsnew/2.6.rst:2967 msgid "The :mod:`rgbimg` module has been removed." msgstr ":mod:`rgbimg` モジュールは削除されました。" -#: ../../whatsnew/2.6.rst:2968 +#: ../../whatsnew/2.6.rst:2969 msgid "" "The :mod:`sets` module has been deprecated; it's better to use the built-in :" "class:`set` and :class:`frozenset` types." @@ -4513,7 +4509,7 @@ msgstr "" ":mod:`sets` モジュールは非推奨となりました。代わりにビルトインの :class:" "`set`, :class:`frozenset` 型を使ってください。" -#: ../../whatsnew/2.6.rst:2971 +#: ../../whatsnew/2.6.rst:2972 msgid "" "The :mod:`sha` module has been deprecated; use the :mod:`hashlib` module " "instead." @@ -4521,15 +4517,15 @@ msgstr "" ":mod:`sha` モジュールは非推奨となりました。代わりに :mod:`hashlib` モジュール" "を使ってください。" -#: ../../whatsnew/2.6.rst:2979 +#: ../../whatsnew/2.6.rst:2980 msgid "Build and C API Changes" msgstr "ビルドならびに C API の変更" -#: ../../whatsnew/2.6.rst:2981 +#: ../../whatsnew/2.6.rst:2982 msgid "Changes to Python's build process and to the C API include:" msgstr "Python のビルド過程と C API の変更は以下の通りです:" -#: ../../whatsnew/2.6.rst:2983 +#: ../../whatsnew/2.6.rst:2984 msgid "" "Python now must be compiled with C89 compilers (after 19 years!). This " "means that the Python source tree has dropped its own implementations of :c:" @@ -4537,7 +4533,7 @@ msgid "" "library." msgstr "" -#: ../../whatsnew/2.6.rst:2988 +#: ../../whatsnew/2.6.rst:2989 msgid "" "Python 2.6 can be built with Microsoft Visual Studio 2008 (version 9.0), and " "this is the new default compiler. See the :file:`PCbuild` directory for the " @@ -4547,7 +4543,7 @@ msgstr "" "してこれが新しいデフォルトコンパイラです。 :file:`PCbuild` ディレクトリのビル" "ドファイルを参照して下さい。 (Implemented by Christian Heimes.)" -#: ../../whatsnew/2.6.rst:2993 +#: ../../whatsnew/2.6.rst:2994 msgid "" "On Mac OS X, Python 2.6 can be compiled as a 4-way universal build. The :" "program:`configure` script can take a :option:`!--with-universal-archs=[32-" @@ -4561,7 +4557,7 @@ msgstr "" "bit (x86-64 and PPC-64), あるいは両方のバイナリをビルド出来ます。 " "(Contributed by Ronald Oussoren.)" -#: ../../whatsnew/2.6.rst:3000 +#: ../../whatsnew/2.6.rst:3001 msgid "" "The BerkeleyDB module now has a C API object, available as ``bsddb.db." "api``. This object can be used by other C extensions that wish to use the :" @@ -4571,7 +4567,7 @@ msgstr "" "api`` として利用可能です。このモジュールは :mod:`bsddb` モジュールを自身の独" "自の目的で使いたいほかの C 拡張で使えます。 (Contributed by Duncan Grisby.)" -#: ../../whatsnew/2.6.rst:3005 +#: ../../whatsnew/2.6.rst:3006 msgid "" "The new buffer interface, previously described in `the PEP 3118 section " "<#pep-3118-revised-buffer-protocol>`__, adds :c:func:`PyObject_GetBuffer` " @@ -4581,7 +4577,7 @@ msgstr "" "前述の新しいバッファインターフェイスのために、 :c:func:`PyObject_GetBuffer` " "と :c:func:`PyBuffer_Release` とほか少しの関数が追加されました。" -#: ../../whatsnew/2.6.rst:3010 +#: ../../whatsnew/2.6.rst:3011 msgid "" "Python's use of the C stdio library is now thread-safe, or at least as " "thread-safe as the underlying library is. A long-standing potential bug " @@ -4596,7 +4592,7 @@ msgid "" "Gregory P. Smith.)" msgstr "" -#: ../../whatsnew/2.6.rst:3023 +#: ../../whatsnew/2.6.rst:3024 msgid "" "Importing modules simultaneously in two different threads no longer " "deadlocks; it will now raise an :exc:`ImportError`. A new API function, :c:" @@ -4612,7 +4608,7 @@ msgstr "" "レッドにより獲得されていれば :exc:`ImportError` が発生します。(Contributed " "by Christian Heimes.)" -#: ../../whatsnew/2.6.rst:3031 +#: ../../whatsnew/2.6.rst:3032 msgid "" "Several functions return information about the platform's floating-point " "support. :c:func:`PyFloat_GetMax` returns the maximum representable " @@ -4631,7 +4627,7 @@ msgstr "" "ほかのいくつかの情報を含みます。 (Contributed by Christian Heimes; :issue:" "`1534`.)" -#: ../../whatsnew/2.6.rst:3042 +#: ../../whatsnew/2.6.rst:3043 msgid "" "C functions and methods that use :c:func:`PyComplex_AsCComplex` will now " "accept arguments that have a :meth:`__complex__` method. In particular, the " @@ -4645,7 +4641,7 @@ msgstr "" "Python 3.0 での変更のバックポートです。 (Contributed by Mark Dickinson; :" "issue:`1675423`.)" -#: ../../whatsnew/2.6.rst:3049 +#: ../../whatsnew/2.6.rst:3050 msgid "" "Python's C API now includes two functions for case-insensitive string " "comparisons, ``PyOS_stricmp(char*, char*)`` and ``PyOS_strnicmp(char*, " @@ -4656,7 +4652,7 @@ msgstr "" "Py_ssize_t)`` が追加されました。 (Contributed by Christian Heimes; :issue:" "`1635`.)" -#: ../../whatsnew/2.6.rst:3054 +#: ../../whatsnew/2.6.rst:3055 msgid "" "Many C extensions define their own little macro for adding integers and " "strings to the module's dictionary in the ``init*`` function. Python 2.6 " @@ -4670,7 +4666,7 @@ msgstr "" "と :c:macro:`PyModule_AddIntMacro()` です。 (Contributed by Christian " "Heimes.)" -#: ../../whatsnew/2.6.rst:3061 +#: ../../whatsnew/2.6.rst:3062 msgid "" "Some macros were renamed in both 3.0 and 2.6 to make it clearer that they " "are macros, not functions. :c:macro:`!Py_Size()` became :c:macro:" @@ -4679,7 +4675,7 @@ msgid "" "still available in Python 2.6 for backward compatibility. (:issue:`1629`)" msgstr "" -#: ../../whatsnew/2.6.rst:3070 +#: ../../whatsnew/2.6.rst:3071 msgid "" "Distutils now places C extensions it builds in a different directory when " "running on a debug version of Python. (Contributed by Collin Winter; :issue:" @@ -4689,7 +4685,7 @@ msgstr "" "ビルドするようになりました。 (Contributed by Collin Winter; :issue:" "`1530959`.)" -#: ../../whatsnew/2.6.rst:3074 +#: ../../whatsnew/2.6.rst:3075 msgid "" "Several basic data types, such as integers and strings, maintain internal " "free lists of objects that can be re-used. The data structures for these " @@ -4703,7 +4699,7 @@ msgstr "" "にしました; その変数名は常に ``free_list`` 、カウンタは常に ``numfree`` 、そ" "してマクロ ``Py_MAXFREELIST`` が必ず定義されます。" -#: ../../whatsnew/2.6.rst:3081 +#: ../../whatsnew/2.6.rst:3082 msgid "" "A new Makefile target, \"make patchcheck\", prepares the Python source tree " "for making a patch: it fixes trailing whitespace in all modified ``.py`` " @@ -4717,7 +4713,7 @@ msgstr "" "チェックし、そして :file:`Misc/ACKS` と :file:`Misc/NEWS` が更新されているか" "どうかを報告します。 (Contributed by Brett Cannon.)" -#: ../../whatsnew/2.6.rst:3088 +#: ../../whatsnew/2.6.rst:3089 msgid "" "Another new target, \"make profile-opt\", compiles a Python binary using " "GCC's profile-guided optimization. It compiles Python with profiling " @@ -4731,11 +4727,11 @@ msgstr "" "施し、そして最適化のためにそれら結果を使ってビルドします。 (Contributed by " "Gregory P. Smith.)" -#: ../../whatsnew/2.6.rst:3097 +#: ../../whatsnew/2.6.rst:3098 msgid "Port-Specific Changes: Windows" msgstr "ポート特有の変更: Windows" -#: ../../whatsnew/2.6.rst:3099 +#: ../../whatsnew/2.6.rst:3100 msgid "" "The support for Windows 95, 98, ME and NT4 has been dropped. Python 2.6 " "requires at least Windows 2000 SP4." @@ -4743,7 +4739,7 @@ msgstr "" "Windows 95, 98, ME, NT4 のサポートはとりやめられました。 Python 2.6 は最低で" "も Windows 2000 SP4 が必要です。" -#: ../../whatsnew/2.6.rst:3102 +#: ../../whatsnew/2.6.rst:3103 msgid "" "The new default compiler on Windows is Visual Studio 2008 (version 9.0). The " "build directories for Visual Studio 2003 (version 7.1) and 2005 (version " @@ -4760,7 +4756,7 @@ msgstr "" "PGO ビルドは通常ビルドに較べておよそ 10% 高速化になります。 (Contributed by " "Christian Heimes with help from Amaury Forgeot d'Arc and Martin von Löwis.)" -#: ../../whatsnew/2.6.rst:3110 +#: ../../whatsnew/2.6.rst:3111 msgid "" "The :mod:`msvcrt` module now supports both the normal and wide char variants " "of the console I/O API. The :func:`getwch` function reads a keypress and " @@ -4773,7 +4769,7 @@ msgstr "" "読み取り、Unicode 値を返します。 :func:`putwch` 関数は Unicode 文字を受け取" "り、コンソールに書き出します。 (Contributed by Christian Heimes.)" -#: ../../whatsnew/2.6.rst:3117 +#: ../../whatsnew/2.6.rst:3118 msgid "" ":func:`os.path.expandvars` will now expand environment variables in the form " "\"%var%\", and \"~user\" will be expanded into the user's home directory " @@ -4783,7 +4779,7 @@ msgstr "" "ユーザのホームディレクトリパスに置換します(---訳注: 上のほうの訳注参" "照。---)。 (Contributed by Josiah Carlson; :issue:`957650`.)" -#: ../../whatsnew/2.6.rst:3121 +#: ../../whatsnew/2.6.rst:3122 msgid "" "The :mod:`socket` module's socket objects now have an :meth:`ioctl` method " "that provides a limited interface to the :c:func:`WSAIoctl` system interface." @@ -4792,7 +4788,7 @@ msgstr "" "ようになりました。 :c:func:`WSAIoctl` インターフェイスへの限定的なインター" "フェイスを提供します。" -#: ../../whatsnew/2.6.rst:3125 +#: ../../whatsnew/2.6.rst:3126 msgid "" "The :mod:`_winreg` module now has a function, :func:" "`ExpandEnvironmentStrings`, that expands environment variable references " @@ -4806,7 +4802,7 @@ msgstr "" "ト管理プロトコルをサポートするようになったので、 :keyword:`with` ステートメン" "トで使えます。 (Contributed by Christian Heimes.)" -#: ../../whatsnew/2.6.rst:3132 +#: ../../whatsnew/2.6.rst:3133 msgid "" ":mod:`_winreg` also has better support for x64 systems, exposing the :func:" "`DisableReflectionKey`, :func:`EnableReflectionKey`, and :func:" @@ -4818,7 +4814,7 @@ msgstr "" "効化をする :func:`DisableReflectionKey`, :func:`EnableReflectionKey`, :func:" "`QueryReflectionKey` 関数を公開しています。 (:issue:`1753245`)" -#: ../../whatsnew/2.6.rst:3138 +#: ../../whatsnew/2.6.rst:3139 msgid "" "The :mod:`msilib` module's :class:`Record` object gained :meth:`GetInteger` " "and :meth:`GetString` methods that return field values as an integer or a " @@ -4829,11 +4825,11 @@ msgstr "" "て、または文字列として返します。 (Contributed by Floris Bruynooghe; :issue:" "`2125`.)" -#: ../../whatsnew/2.6.rst:3146 +#: ../../whatsnew/2.6.rst:3147 msgid "Port-Specific Changes: Mac OS X" msgstr "ポート特有の変更: Mac OS X" -#: ../../whatsnew/2.6.rst:3148 +#: ../../whatsnew/2.6.rst:3149 msgid "" "When compiling a framework build of Python, you can now specify the " "framework name to be used by providing the :option:`!--with-framework-name=` " @@ -4843,7 +4839,7 @@ msgstr "" "リプトに :option:`!--with-framework-name` オプションでフレームワーク名を指定" "出来るようになりました。" -#: ../../whatsnew/2.6.rst:3153 +#: ../../whatsnew/2.6.rst:3154 msgid "" "The :mod:`macfs` module has been removed. This in turn required the :func:" "`macostools.touched` function to be removed because it depended on the :mod:" @@ -4853,7 +4849,7 @@ msgstr "" "touched` 関数の削除を必要としました。それが :mod:`macfs` モジュールに依存し" "ていたので。 (:issue:`1490190`)" -#: ../../whatsnew/2.6.rst:3157 +#: ../../whatsnew/2.6.rst:3158 msgid "" "Many other Mac OS modules have been deprecated and will be removed in Python " "3.0: :mod:`_builtinSuites`, :mod:`aepack`, :mod:`aetools`, :mod:`aetypes`, :" @@ -4878,11 +4874,11 @@ msgstr "" "`Netscape`, :mod:`OSATerminology`, :mod:`pimp`, :mod:`PixMapWrapper`, :mod:" "`StdSuites`, :mod:`SystemEvents`, :mod:`Terminal`, :mod:`terminalcommand` 。" -#: ../../whatsnew/2.6.rst:3200 +#: ../../whatsnew/2.6.rst:3201 msgid "Port-Specific Changes: IRIX" msgstr "ポート特有の変更: IRIX" -#: ../../whatsnew/2.6.rst:3202 +#: ../../whatsnew/2.6.rst:3203 msgid "" "A number of old IRIX-specific modules were deprecated and will be removed in " "Python 3.0: :mod:`al` and :mod:`AL`, :mod:`cd`, :mod:`cddb`, :mod:" @@ -4900,11 +4896,11 @@ msgstr "" "`readcd`, :mod:`SV` と :mod:`sv`, :mod:`torgb`, :mod:`videoreader`, :mod:" "`WAIT` 。" -#: ../../whatsnew/2.6.rst:3232 +#: ../../whatsnew/2.6.rst:3233 msgid "Porting to Python 2.6" msgstr "Python 2.6 への移植" -#: ../../whatsnew/2.6.rst:3234 +#: ../../whatsnew/2.6.rst:3235 msgid "" "This section lists previously described changes and other bugfixes that may " "require changes to your code:" @@ -4912,7 +4908,7 @@ msgstr "" "このセクションでは前述の変更とバグフィックスにより必要となるかもしれないコー" "ドの変更を列挙します:" -#: ../../whatsnew/2.6.rst:3237 +#: ../../whatsnew/2.6.rst:3238 msgid "" "Classes that aren't supposed to be hashable should set ``__hash__ = None`` " "in their definitions to indicate the fact." @@ -4920,7 +4916,7 @@ msgstr "" "ハッシュ化をサポートしないクラスはその定義内でその事実を示すために、 " "``__hash__ = None`` をセットすべきです。" -#: ../../whatsnew/2.6.rst:3244 +#: ../../whatsnew/2.6.rst:3245 msgid "" "The :meth:`__init__` method of :class:`collections.deque` now clears any " "existing contents of the deque before adding elements from the iterable. " @@ -4932,7 +4928,7 @@ msgstr "" "思えないのですが詳細がわかりません。これ以前のバージョンでは deque はシングル" "トンのように振舞っていたのでしょうか。---)。" -#: ../../whatsnew/2.6.rst:3249 +#: ../../whatsnew/2.6.rst:3250 msgid "" ":meth:`object.__init__` previously accepted arbitrary arguments and keyword " "arguments, ignoring them. In Python 2.6, this is no longer allowed and will " @@ -4946,7 +4942,7 @@ msgstr "" "く :func:`super` を介して) :meth:`__init__` メソッドに影響します。 :issue:" "`1683368` の議論を参照して下さい。" -#: ../../whatsnew/2.6.rst:3256 +#: ../../whatsnew/2.6.rst:3257 msgid "" "The :class:`Decimal` constructor now accepts leading and trailing whitespace " "when passed a string. Previously it would raise an :exc:`InvalidOperation` " @@ -4959,7 +4955,7 @@ msgstr "" "`Context` オブジェクトの :meth:`create_decimal` メソッドは余分な空白を明示的" "に拒絶するようになり、 :exc:`ConversionSyntax` を投げます。" -#: ../../whatsnew/2.6.rst:3263 +#: ../../whatsnew/2.6.rst:3264 msgid "" "Due to an implementation accident, if you passed a file path to the built-" "in :func:`__import__` function, it would actually import the specified " @@ -4971,7 +4967,7 @@ msgstr "" "した振る舞いではありませんでした。実装は今ではこのケースを明示的にチェック" "し、 :exc:`ImportError` を起こします。" -#: ../../whatsnew/2.6.rst:3269 +#: ../../whatsnew/2.6.rst:3270 msgid "" "C API: the :c:func:`PyImport_Import` and :c:func:`PyImport_ImportModule` " "functions now default to absolute imports, not relative imports. This will " @@ -4981,7 +4977,7 @@ msgstr "" "フォルトで、相対インポートではなく絶対インポートをするようになっています。こ" "れはほかのモジュールをインポートする C 拡張に影響します。" -#: ../../whatsnew/2.6.rst:3273 +#: ../../whatsnew/2.6.rst:3274 msgid "" "C API: extension data types that shouldn't be hashable should define their " "``tp_hash`` slot to :c:func:`PyObject_HashNotImplemented`." @@ -4989,7 +4985,7 @@ msgstr "" "C API: ハッシュされるべきではない拡張データ型は、 ``tp_hash`` スロットを :c:" "func:`PyObject_HashNotImplemented` と定義すべきです。" -#: ../../whatsnew/2.6.rst:3277 +#: ../../whatsnew/2.6.rst:3278 msgid "" "The :mod:`socket` module exception :exc:`socket.error` now inherits from :" "exc:`IOError`. Previously it wasn't a subclass of :exc:`StandardError` but " @@ -5001,7 +4997,7 @@ msgstr "" "今は :exc:`IOError` を通じてそれのサブクラスです。 (Implemented by Gregory " "P. Smith; :issue:`1706815`.)" -#: ../../whatsnew/2.6.rst:3282 +#: ../../whatsnew/2.6.rst:3283 msgid "" "The :mod:`xmlrpclib` module no longer automatically converts :class:" "`datetime.date` and :class:`datetime.time` to the :class:`xmlrpclib." @@ -5015,7 +5011,7 @@ msgstr "" "はなかったのです。 :mod:`xmlrpclib` を使うコードは自分で :class:`date` と :" "class:`~datetime.time` インスタンスを変換すべきです。(:issue:`1330538`)" -#: ../../whatsnew/2.6.rst:3289 +#: ../../whatsnew/2.6.rst:3290 msgid "" "(3.0-warning mode) The :class:`Exception` class now warns when accessed " "using slicing or index access; having :class:`Exception` behave like a tuple " @@ -5025,7 +5021,7 @@ msgstr "" "告を出します; :class:`Exception` のタプルのような振る舞いはのちに取り除かれま" "す。" -#: ../../whatsnew/2.6.rst:3293 +#: ../../whatsnew/2.6.rst:3294 msgid "" "(3.0-warning mode) inequality comparisons between two dictionaries or two " "objects that don't implement comparison methods are reported as warnings. " @@ -5035,7 +5031,7 @@ msgstr "" "等号比較は警告されます。 ``dict1 == dict2`` はまだ動作しますが、 ``dict1 < " "dict2`` はのちに取り除かれます。" -#: ../../whatsnew/2.6.rst:3298 +#: ../../whatsnew/2.6.rst:3299 msgid "" "Comparisons between cells, which are an implementation detail of Python's " "scoping rules, also cause warnings because such comparisons are forbidden " @@ -5044,11 +5040,11 @@ msgstr "" "Python のスコープルールの実装の詳細であるセル間の比較も、警告を引き起こしま" "す。なぜならこれは、3.0 ではそのような比較は完全に禁止されているからです。" -#: ../../whatsnew/2.6.rst:3308 +#: ../../whatsnew/2.6.rst:3309 msgid "Acknowledgements" msgstr "謝辞" -#: ../../whatsnew/2.6.rst:3310 +#: ../../whatsnew/2.6.rst:3311 msgid "" "The author would like to thank the following people for offering " "suggestions, corrections and assistance with various drafts of this article: " diff --git a/whatsnew/2.7.po b/whatsnew/2.7.po index 9ad869f2e..495fbd868 100644 --- a/whatsnew/2.7.po +++ b/whatsnew/2.7.po @@ -14,7 +14,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3.12\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2023-12-01 14:14+0000\n" +"POT-Creation-Date: 2023-12-08 14:14+0000\n" "PO-Revision-Date: 2021-06-28 01:51+0000\n" "Last-Translator: Arihiro TAKASE, 2023\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" @@ -1165,17 +1165,14 @@ msgstr "" #: ../../whatsnew/2.7.rst:861 msgid "" -"When using ``@classmethod`` and ``@staticmethod`` to wrap methods as class " -"or static methods, the wrapper object now exposes the wrapped function as " -"their :attr:`__func__` attribute. (Contributed by Amaury Forgeot d'Arc, " -"after a suggestion by George Sakkis; :issue:`5982`.)" +"When using :class:`@classmethod ` and :class:`@staticmethod " +"` to wrap methods as class or static methods, the wrapper " +"object now exposes the wrapped function as their :attr:`~method.__func__` " +"attribute. (Contributed by Amaury Forgeot d'Arc, after a suggestion by " +"George Sakkis; :issue:`5982`.)" msgstr "" -"``@classmethod`` や ``@staticmethod`` を使ってクラスメソッドやスタティックメ" -"ソッドを作成した時、そのラッパーオブジェクトがラップ対象となる関数を :attr:" -"`__func__` 属性で公開するようになりました。(Contributed by Amaury Forgeot " -"d'Arc, after a suggestion by George Sakkis; :issue:`5982`.)" -#: ../../whatsnew/2.7.rst:867 ../../whatsnew/2.7.rst:2463 +#: ../../whatsnew/2.7.rst:869 ../../whatsnew/2.7.rst:2465 msgid "" "When a restricted set of attributes were set using ``__slots__``, deleting " "an unset attribute would not raise :exc:`AttributeError` as you would " @@ -1185,7 +1182,7 @@ msgstr "" "ときに :exc:`AttributeError` にならなかったのを修正しました。 (Fixed by " "Benjamin Peterson; :issue:`7604`.)" -#: ../../whatsnew/2.7.rst:871 +#: ../../whatsnew/2.7.rst:873 msgid "" "Two new encodings are now supported: \"cp720\", used primarily for Arabic " "text; and \"cp858\", a variant of CP 850 that adds the euro symbol. (CP720 " @@ -1197,7 +1194,7 @@ msgstr "" "(CP720 contributed by Alexander Belchenko and Amaury Forgeot d'Arc in :issue:" "`1616979`; CP858 contributed by Tim Hatch in :issue:`8016`.)" -#: ../../whatsnew/2.7.rst:877 +#: ../../whatsnew/2.7.rst:879 msgid "" "The :class:`file` object will now set the :attr:`filename` attribute on the :" "exc:`IOError` exception when trying to open a directory on POSIX platforms " @@ -1211,7 +1208,7 @@ msgstr "" "対する書き込みを、Cライブラリ側のエラー検出・報告に頼るのではなく、明示的に" "チェックするようになりました。 (fixed by Stefan Krah; :issue:`5677`)." -#: ../../whatsnew/2.7.rst:884 +#: ../../whatsnew/2.7.rst:886 msgid "" "The Python tokenizer now translates line endings itself, so the :func:" "`compile` built-in function now accepts code using any line-ending " @@ -1222,7 +1219,7 @@ msgstr "" "み込みの :func:`compile` 関数がどの改行コードを利用したコードでも受け付けるよ" "うになりました。また、コードの終端の改行も不要になりました。" -#: ../../whatsnew/2.7.rst:889 +#: ../../whatsnew/2.7.rst:891 msgid "" "Extra parentheses in function definitions are illegal in Python 3.x, meaning " "that you get a syntax error from ``def f((x)): pass``. In Python3-warning " @@ -1234,7 +1231,7 @@ msgstr "" "2.7 はこの利用方法について警告を出すようになりました。 (Noted by James " "Lingard; :issue:`7362`.)" -#: ../../whatsnew/2.7.rst:894 +#: ../../whatsnew/2.7.rst:896 msgid "" "It's now possible to create weak references to old-style class objects. New-" "style classes were always weak-referenceable. (Fixed by Antoine Pitrou; :" @@ -1244,7 +1241,7 @@ msgstr "" "スタイルクラスには以前から弱参照を利用できます。(Fixed by Antoine Pitrou; :" "issue:`8268`.)" -#: ../../whatsnew/2.7.rst:898 +#: ../../whatsnew/2.7.rst:900 msgid "" "When a module object is garbage-collected, the module's dictionary is now " "only cleared if no one else is holding a reference to the dictionary (:issue:" @@ -1254,11 +1251,11 @@ msgstr "" "照を持っているものがない場合にのみクリアされるようになりました。(:issue:" "`7140`)." -#: ../../whatsnew/2.7.rst:907 +#: ../../whatsnew/2.7.rst:909 msgid "Interpreter Changes" msgstr "インタプリタの変更" -#: ../../whatsnew/2.7.rst:909 +#: ../../whatsnew/2.7.rst:911 msgid "" "A new environment variable, :envvar:`PYTHONWARNINGS`, allows controlling " "warnings. It should be set to a string containing warning settings, " @@ -1270,7 +1267,7 @@ msgstr "" "区切りの文字列として指定します。 (Contributed by Brian Curtin; :issue:" "`7301`.)" -#: ../../whatsnew/2.7.rst:915 +#: ../../whatsnew/2.7.rst:917 msgid "" "For example, the following setting will print warnings every time they " "occur, but turn warnings from the :mod:`Cookie` module into an error. (The " @@ -1281,22 +1278,22 @@ msgstr "" "ジュールからの警告はエラーにします。 (環境変数を設定するための文法はOSとシェ" "ルに依存します)" -#: ../../whatsnew/2.7.rst:928 +#: ../../whatsnew/2.7.rst:930 msgid "Optimizations" msgstr "最適化" -#: ../../whatsnew/2.7.rst:930 +#: ../../whatsnew/2.7.rst:932 msgid "Several performance enhancements have been added:" msgstr "いくつかの場面でパフォーマンスが向上しています。" -#: ../../whatsnew/2.7.rst:932 +#: ../../whatsnew/2.7.rst:934 msgid "" "A new opcode was added to perform the initial setup for :keyword:`with` " "statements, looking up the :meth:`~object.__enter__` and :meth:`~object." "__exit__` methods. (Contributed by Benjamin Peterson.)" msgstr "" -#: ../../whatsnew/2.7.rst:936 +#: ../../whatsnew/2.7.rst:938 msgid "" "The garbage collector now performs better for one common usage pattern: when " "many objects are being allocated without deallocating any of them. This " @@ -1316,7 +1313,7 @@ msgstr "" "ジェクトの数の 10%を超えたときにフルGCが発生します。(Suggested by Martin von " "Löwis and implemented by Antoine Pitrou; :issue:`4074`.)" -#: ../../whatsnew/2.7.rst:947 +#: ../../whatsnew/2.7.rst:949 msgid "" "The garbage collector tries to avoid tracking simple containers which can't " "be part of a cycle. In Python 2.7, this is now true for tuples and dicts " @@ -1333,7 +1330,7 @@ msgstr "" "るので、 GCのコストを減らすことができます。 (Contributed by Antoine Pitrou; :" "issue:`4688`.)" -#: ../../whatsnew/2.7.rst:956 +#: ../../whatsnew/2.7.rst:958 msgid "" "Long integers are now stored internally either in base ``2**15`` or in base " "``2**30``, the base being determined at build time. Previously, they were " @@ -1345,7 +1342,7 @@ msgid "" "override this default." msgstr "" -#: ../../whatsnew/2.7.rst:965 +#: ../../whatsnew/2.7.rst:967 msgid "" "Apart from the performance improvements this change should be invisible to " "end users, with one exception: for testing and debugging purposes there's a " @@ -1358,11 +1355,11 @@ msgstr "" "うデータが追加され、内部フォーマットとして digit あたりのビット数と、それに使" "うCのデータ型のバイト数の情報を提供します::" -#: ../../whatsnew/2.7.rst:976 +#: ../../whatsnew/2.7.rst:978 msgid "(Contributed by Mark Dickinson; :issue:`4258`.)" msgstr "(Contributed by Mark Dickinson; :issue:`4258`.)" -#: ../../whatsnew/2.7.rst:978 +#: ../../whatsnew/2.7.rst:980 msgid "" "Another set of changes made long objects a few bytes smaller: 2 bytes " "smaller on 32-bit systems and 6 bytes on 64-bit. (Contributed by Mark " @@ -1372,7 +1369,7 @@ msgstr "" "た。 32bit システムでは 2byte, 64bit システムでは 6byte 小さくなりました。 " "(Contributed by Mark Dickinson; :issue:`5260`.)" -#: ../../whatsnew/2.7.rst:982 +#: ../../whatsnew/2.7.rst:984 msgid "" "The division algorithm for long integers has been made faster by tightening " "the inner loop, doing shifts instead of multiplications, and fixing an " @@ -1387,7 +1384,7 @@ msgstr "" "(Contributed by Mark Dickinson; :issue:`5512`.) ビット演算も高速化されていま" "す。(initial patch by Gregory Smith; :issue:`1087418`)" -#: ../../whatsnew/2.7.rst:991 +#: ../../whatsnew/2.7.rst:993 msgid "" "The implementation of ``%`` checks for the left-side operand being a Python " "string and special-cases it; this results in a 1--3% performance increase " @@ -1399,7 +1396,7 @@ msgstr "" "ライブラリなどのアプリケーションのパフォーマンスが1--3%向上します。 " "(Implemented by Collin Winter; :issue:`5176`.)" -#: ../../whatsnew/2.7.rst:997 +#: ../../whatsnew/2.7.rst:999 msgid "" "List comprehensions with an ``if`` condition are compiled into faster " "bytecode. (Patch by Antoine Pitrou, back-ported to 2.7 by Jeffrey Yasskin; :" @@ -1409,7 +1406,7 @@ msgstr "" "になりました。(Patch by Antoine Pitrou, back-ported to 2.7 by Jeffrey " "Yasskin; :issue:`4715`.)" -#: ../../whatsnew/2.7.rst:1001 +#: ../../whatsnew/2.7.rst:1003 msgid "" "Converting an integer or long integer to a decimal string was made faster by " "special-casing base 10 instead of using a generalized conversion function " @@ -1419,7 +1416,7 @@ msgstr "" "関数を使う代わりに10進数に特殊化した処理を行うことで高速化しました。 (Patch " "by Gawain Bolton; :issue:`6713`.)" -#: ../../whatsnew/2.7.rst:1006 +#: ../../whatsnew/2.7.rst:1008 msgid "" "The :meth:`split`, :meth:`replace`, :meth:`rindex`, :meth:`rpartition`, and :" "meth:`rsplit` methods of string-like types (strings, Unicode strings, and :" @@ -1433,7 +1430,7 @@ msgstr "" "した。これにより、場合によっては10倍レベルの高速化になります。(Added by " "Florent Xicluna; :issue:`7462` and :issue:`7622`.)" -#: ../../whatsnew/2.7.rst:1013 +#: ../../whatsnew/2.7.rst:1015 msgid "" "The :mod:`pickle` and :mod:`cPickle` modules now automatically intern the " "strings used for attribute names, reducing memory usage of the objects " @@ -1443,7 +1440,7 @@ msgstr "" "動的にインターンするようになりました。これにより unpickle 後のオブジェクトの" "メモリ使用量が減ります。(Contributed by Jake McGuire; :issue:`5084`.)" -#: ../../whatsnew/2.7.rst:1018 +#: ../../whatsnew/2.7.rst:1020 msgid "" "The :mod:`cPickle` module now special-cases dictionaries, nearly halving the " "time required to pickle them. (Contributed by Collin Winter; :issue:`5670`.)" @@ -1451,11 +1448,11 @@ msgstr "" ":mod:`cPickle` モジュールが辞書に対する特殊化を行い、 pickle にかかる時間をお" "よそ半分に減らしました。 (Contributed by Collin Winter; :issue:`5670`.)" -#: ../../whatsnew/2.7.rst:1025 +#: ../../whatsnew/2.7.rst:1027 msgid "New and Improved Modules" msgstr "新しいモジュールと改良されたモジュール" -#: ../../whatsnew/2.7.rst:1027 +#: ../../whatsnew/2.7.rst:1029 msgid "" "As in every release, Python's standard library received a number of " "enhancements and bug fixes. Here's a partial list of the most notable " @@ -1469,7 +1466,7 @@ msgstr "" "内の :file:`Misc/NEWS` ファイルか、全ての完全な詳細が入っている Subversion の" "ログを参照してください。" -#: ../../whatsnew/2.7.rst:1033 +#: ../../whatsnew/2.7.rst:1035 msgid "" "The :mod:`bdb` module's base debugging class :class:`~bdb.Bdb` gained a " "feature for skipping modules. The constructor now takes an iterable " @@ -1485,7 +1482,7 @@ msgstr "" "(Contributed by Maru Newby after a suggestion by Senthil Kumaran; :issue:" "`5142`.)" -#: ../../whatsnew/2.7.rst:1041 +#: ../../whatsnew/2.7.rst:1043 msgid "" "The :mod:`binascii` module now supports the buffer API, so it can be used " "with :class:`memoryview` instances and other similar buffer objects. " @@ -1495,7 +1492,7 @@ msgstr "" "`memoryview` インスタンスやその他のバッファオブジェクトともに利用できるように" "なりました。 (Backported from 3.x by Florent Xicluna; :issue:`7703`.)" -#: ../../whatsnew/2.7.rst:1045 +#: ../../whatsnew/2.7.rst:1047 msgid "" "Updated module: the :mod:`bsddb` module has been updated from 4.7.2devel9 to " "version 4.8.4 of `the pybsddb package ``, ``>=``) between fractions and " "complex numbers now raise a :exc:`TypeError`. This fixes an oversight, " @@ -1826,7 +1823,7 @@ msgstr "" "exc:`TypeError` 例外を発生させるようになりました。これは過失を修正し、 :" "class:`~fractions.Fraction` を他の数値型とマッチさせます。" -#: ../../whatsnew/2.7.rst:1258 +#: ../../whatsnew/2.7.rst:1260 msgid "" "New class: :class:`~ftplib.FTP_TLS` in the :mod:`ftplib` module provides " "secure FTP connections using TLS encapsulation of authentication as well as " @@ -1837,7 +1834,7 @@ msgstr "" "証とその後の制御・データ転送をTLSカプセル化することでセキュアなFTP接続を提供" "します。 (Contributed by Giampaolo Rodola; :issue:`2054`.)" -#: ../../whatsnew/2.7.rst:1264 +#: ../../whatsnew/2.7.rst:1266 msgid "" "The :meth:`~ftplib.FTP.storbinary` method for binary uploads can now restart " "uploads thanks to an added *rest* parameter (patch by Pablo Mouzo; :issue:" @@ -1847,7 +1844,7 @@ msgstr "" "引数が追加され、アップロードのリスタートができるようになりました。 (patch by " "Pablo Mouzo; :issue:`6845`.)" -#: ../../whatsnew/2.7.rst:1268 +#: ../../whatsnew/2.7.rst:1270 msgid "" "New class decorator: :func:`~functools.total_ordering` in the :mod:" "`functools` module takes a class that defines an :meth:`__eq__` method and " @@ -1863,7 +1860,7 @@ msgstr "" "3.x では廃止されたので、順序のあるクラスを定義するのを簡単にするためにこのデ" "コレータがあります。(Added by Raymond Hettinger; :issue:`5479`.)" -#: ../../whatsnew/2.7.rst:1276 +#: ../../whatsnew/2.7.rst:1278 msgid "" "New function: :func:`~functools.cmp_to_key` will take an old-style " "comparison function that expects two arguments and return a new callable " @@ -1878,7 +1875,7 @@ msgstr "" "いコードを Python 3.x へ対応させるのを手助けすることです。(Added by Raymond " "Hettinger.)" -#: ../../whatsnew/2.7.rst:1283 +#: ../../whatsnew/2.7.rst:1285 msgid "" "New function: the :mod:`gc` module's :func:`~gc.is_tracked` returns true if " "a given instance is tracked by the garbage collector, false otherwise. " @@ -1888,7 +1885,7 @@ msgstr "" "た。渡されたオブジェクトがGCに追跡されている場合に True を、そうでない場合に " "False を返します。 (Contributed by Antoine Pitrou; :issue:`4688`.)" -#: ../../whatsnew/2.7.rst:1287 +#: ../../whatsnew/2.7.rst:1289 msgid "" "The :mod:`gzip` module's :class:`~gzip.GzipFile` now supports the context " "management protocol, so you can write ``with gzip.GzipFile(...) as f:`` " @@ -1908,7 +1905,7 @@ msgstr "" "とで、 gzip ファイル内の変更時間レコードをオーバーライドすることができるよう" "になりました。 (Contributed by Jacques Frechet; :issue:`4272`.)" -#: ../../whatsnew/2.7.rst:1297 +#: ../../whatsnew/2.7.rst:1299 msgid "" "Files in gzip format can be padded with trailing zero bytes; the :mod:`gzip` " "module will now consume these trailing bytes. (Fixed by Tadek Pietraszek " @@ -1918,7 +1915,7 @@ msgstr "" "ようになりました。 :mod:`gzip` モジュールは末尾のゼロバイトを消費します。" "(Fixed by Tadek Pietraszek and Brian Curtin; :issue:`2846`.)" -#: ../../whatsnew/2.7.rst:1301 +#: ../../whatsnew/2.7.rst:1303 msgid "" "New attribute: the :mod:`hashlib` module now has an :attr:`~hashlib.hashlib." "algorithms` attribute containing a tuple naming the supported algorithms. In " @@ -1931,7 +1928,7 @@ msgstr "" "'sha256', 'sha384', 'sha512')`` が含まれています。 (Contributed by Carl " "Chenet; :issue:`7418`.)" -#: ../../whatsnew/2.7.rst:1307 +#: ../../whatsnew/2.7.rst:1309 msgid "" "The default :class:`~httplib.HTTPResponse` class used by the :mod:`httplib` " "module now supports buffering, resulting in much faster reading of HTTP " @@ -1942,7 +1939,7 @@ msgstr "" "読み込めるようになりました。 (Contributed by Kristján Valur Jónsson; :issue:" "`4879`.)" -#: ../../whatsnew/2.7.rst:1311 +#: ../../whatsnew/2.7.rst:1313 msgid "" "The :class:`~httplib.HTTPConnection` and :class:`~httplib.HTTPSConnection` " "classes now support a *source_address* parameter, a ``(host, port)`` 2-tuple " @@ -1954,7 +1951,7 @@ msgstr "" "なりました。これは接続のソースアドレスとして利用されます。 (Contributed by " "Eldon Ziegler; :issue:`3972`.)" -#: ../../whatsnew/2.7.rst:1316 +#: ../../whatsnew/2.7.rst:1318 msgid "" "The :mod:`ihooks` module now supports relative imports. Note that :mod:" "`ihooks` is an older module for customizing imports, superseded by the :mod:" @@ -1966,7 +1963,7 @@ msgstr "" "mod:`imputil` モジュールに取って変わられていることに注意してください。 " "(Relative import support added by Neil Schemenauer.)" -#: ../../whatsnew/2.7.rst:1323 +#: ../../whatsnew/2.7.rst:1325 msgid "" "The :mod:`imaplib` module now supports IPv6 addresses. (Contributed by Derek " "Morr; :issue:`1655`.)" @@ -1974,7 +1971,7 @@ msgstr "" ":mod:`imaplib` モジュールが IPv6 アドレスをサポートするようになりました。 " "(Contributed by Derek Morr; :issue:`1655`.)" -#: ../../whatsnew/2.7.rst:1326 +#: ../../whatsnew/2.7.rst:1328 msgid "" "New function: the :mod:`inspect` module's :func:`~inspect.getcallargs` takes " "a callable and its positional and keyword arguments, and figures out which " @@ -1986,11 +1983,11 @@ msgstr "" "数がどの実引数を受け取るかを計算し、引数名から値へマップする辞書を返します。" "例えば::" -#: ../../whatsnew/2.7.rst:1344 +#: ../../whatsnew/2.7.rst:1346 msgid "Contributed by George Sakkis; :issue:`3135`." msgstr "Contributed by George Sakkis; :issue:`3135`." -#: ../../whatsnew/2.7.rst:1346 +#: ../../whatsnew/2.7.rst:1348 msgid "" "Updated module: The :mod:`io` library has been upgraded to the version " "shipped with Python 3.1. For 3.1, the I/O library was entirely rewritten in " @@ -2002,7 +1999,7 @@ msgstr "" "れるタスクに依って 2 から 20 倍速くなりました。元の Python バージョンは :mod:" "`_pyio` モジュールに改名されました。" -#: ../../whatsnew/2.7.rst:1351 +#: ../../whatsnew/2.7.rst:1353 msgid "" "One minor resulting change: the :class:`io.TextIOBase` class now has an :" "attr:`errors` attribute giving the error setting used for encoding and " @@ -2012,7 +2009,7 @@ msgstr "" "ディングのエラーに使われるエラー設定 (``'strict'``, ``'replace'``, " "``'ignore'`` のいずれか) を与える :attr:`errors` 属性を持つようになりました。" -#: ../../whatsnew/2.7.rst:1356 +#: ../../whatsnew/2.7.rst:1358 msgid "" "The :class:`io.FileIO` class now raises an :exc:`OSError` when passed an " "invalid file descriptor. (Implemented by Benjamin Peterson; :issue:" @@ -2026,7 +2023,7 @@ msgstr "" "置を保存するようになりました。以前は、ファイル位置を新しいファイルの末尾に変" "更しました。(Fixed by Pascal Chambon; :issue:`6939`.)" -#: ../../whatsnew/2.7.rst:1362 +#: ../../whatsnew/2.7.rst:1364 msgid "" "New function: ``itertools.compress(data, selectors)`` takes two iterators. " "Elements of *data* are returned if the corresponding value in *selectors* is " @@ -2035,7 +2032,7 @@ msgstr "" "新しい関数: ``itertools.compress(data, selectors)`` は、2 つのイテレータを取" "ります。*data* の要素は、*selectors* の対応する値が真であれば返されます::" -#: ../../whatsnew/2.7.rst:1371 +#: ../../whatsnew/2.7.rst:1373 msgid "" "New function: ``itertools.combinations_with_replacement(iter, r)`` returns " "all the possible *r*-length combinations of elements from the iterable " @@ -2047,7 +2044,7 @@ msgstr "" "combinations` とは異なり、生成された組合せに個別の要素が繰り返し出現できま" "す::" -#: ../../whatsnew/2.7.rst:1380 +#: ../../whatsnew/2.7.rst:1382 msgid "" "Note that elements are treated as unique depending on their position in the " "input, not their actual values." @@ -2055,7 +2052,7 @@ msgstr "" "なお要素は、実際の値ではなく、その入力内での位置に依って一意であるとみなされ" "ます。" -#: ../../whatsnew/2.7.rst:1383 +#: ../../whatsnew/2.7.rst:1385 msgid "" "The :func:`itertools.count` function now has a *step* argument that allows " "incrementing by values other than 1. :func:`~itertools.count` also now " @@ -2068,7 +2065,7 @@ msgstr "" "に浮動小数点数や :class:`~decimal.Decimal` インスタンスのような、非整数の値を" "使えるようになりました。(Implemented by Raymond Hettinger; :issue:`5032`.)" -#: ../../whatsnew/2.7.rst:1389 +#: ../../whatsnew/2.7.rst:1391 msgid "" ":func:`itertools.combinations` and :func:`itertools.product` previously " "raised :exc:`ValueError` for values of *r* larger than the input iterable. " @@ -2080,7 +2077,7 @@ msgstr "" "ました。これは仕様エラーと認められ、空のイテレータを返すようになりました。" "(Fixed by Raymond Hettinger; :issue:`4816`.)" -#: ../../whatsnew/2.7.rst:1394 +#: ../../whatsnew/2.7.rst:1396 msgid "" "Updated module: The :mod:`json` module was upgraded to version 2.0.9 of the " "simplejson package, which includes a C extension that makes encoding and " @@ -2090,7 +2087,7 @@ msgstr "" "ングを高速化する C 拡張を含んだ、 simplejson パッケージのバージョン 2.0.9 に" "アップグレードされました。 (Contributed by Bob Ippolito; :issue:`4136`.)" -#: ../../whatsnew/2.7.rst:1399 +#: ../../whatsnew/2.7.rst:1401 msgid "" "To support the new :class:`collections.OrderedDict` type, :func:`json.load` " "now has an optional *object_pairs_hook* parameter that will be called with " @@ -2102,7 +2099,7 @@ msgstr "" "のリストにデコードする *object_pairs_hook* パラメタを追加しました。" "(Contributed by Raymond Hettinger; :issue:`5381`.)" -#: ../../whatsnew/2.7.rst:1404 +#: ../../whatsnew/2.7.rst:1406 msgid "" "The :mod:`mailbox` module's :class:`~mailbox.Maildir` class now records the " "timestamp on the directories it reads, and only re-reads them if the " @@ -2116,7 +2113,7 @@ msgstr "" "フォーマンスを向上させます。(Fixed by A.M. Kuchling and Antoine Pitrou; :" "issue:`1607951`, :issue:`6896`.)" -#: ../../whatsnew/2.7.rst:1410 +#: ../../whatsnew/2.7.rst:1412 msgid "" "New functions: the :mod:`math` module gained :func:`~math.erf` and :func:" "`~math.erfc` for the error function and the complementary error function, :" @@ -2132,7 +2129,7 @@ msgstr "" "gamma` 、そしてガンマ関数の自然対数 :func:`~math.lgamma` を追加しました。 " "(Contributed by Mark Dickinson and nirinA raseliarison; :issue:`3366`.)" -#: ../../whatsnew/2.7.rst:1418 +#: ../../whatsnew/2.7.rst:1420 msgid "" "The :mod:`multiprocessing` module's :class:`Manager*` classes can now be " "passed a callable that will be called whenever a subprocess is started, " @@ -2143,7 +2140,7 @@ msgstr "" "の開始時に呼び出される呼び出し可能オブジェクトと、それに渡される引数群を渡す" "ことができるようになりました。 (Contributed by lekma; :issue:`5585`.)" -#: ../../whatsnew/2.7.rst:1424 +#: ../../whatsnew/2.7.rst:1426 msgid "" "The :class:`~multiprocessing.Pool` class, which controls a pool of worker " "processes, now has an optional *maxtasksperchild* parameter. Worker " @@ -2159,7 +2156,7 @@ msgstr "" "クし得るときや、ワーカをとても大きくしてしまうようなタスクがあるときに便利で" "す。 (Contributed by Charles Cazabon; :issue:`6963`.)" -#: ../../whatsnew/2.7.rst:1432 +#: ../../whatsnew/2.7.rst:1434 msgid "" "The :mod:`nntplib` module now supports IPv6 addresses. (Contributed by Derek " "Morr; :issue:`1664`.)" @@ -2167,7 +2164,7 @@ msgstr "" ":mod:`nntplib` モジュールは、IPv6 アドレスをサポートするようになりました。 " "(Contributed by Derek Morr; :issue:`1664`.)" -#: ../../whatsnew/2.7.rst:1435 +#: ../../whatsnew/2.7.rst:1437 msgid "" "New functions: the :mod:`os` module wraps the following POSIX system calls: :" "func:`~os.getresgid` and :func:`~os.getresuid`, which return the real, " @@ -2185,7 +2182,7 @@ msgstr "" "functions contributed by Travis H.; :issue:`6508`. Support for initgroups " "added by Jean-Paul Calderone; :issue:`7333`.)" -#: ../../whatsnew/2.7.rst:1445 +#: ../../whatsnew/2.7.rst:1447 msgid "" "The :func:`os.fork` function now re-initializes the import lock in the child " "process; this fixes problems on Solaris when :func:`~os.fork` is called from " @@ -2195,7 +2192,7 @@ msgstr "" "ました。これは、Solaris における :func:`~os.fork` がスレッドから呼び出された" "時の問題を修正します。(Fixed by Zsolt Cserna; :issue:`7242`.)" -#: ../../whatsnew/2.7.rst:1449 +#: ../../whatsnew/2.7.rst:1451 msgid "" "In the :mod:`os.path` module, the :func:`~os.path.normpath` and :func:`~os." "path.abspath` functions now preserve Unicode; if their input path is a " @@ -2209,7 +2206,7 @@ msgstr "" "by Matt Giuca in :issue:`5827`; :meth:`~os.path.abspath` fixed by Ezio " "Melotti in :issue:`3426`.)" -#: ../../whatsnew/2.7.rst:1455 +#: ../../whatsnew/2.7.rst:1457 msgid "" "The :mod:`pydoc` module now has help for the various symbols that Python " "uses. You can now do ``help('<<')`` or ``help('@')``, for example. " @@ -2219,7 +2216,7 @@ msgstr "" "た。例えば、 ``help('<<')`` や ``help('@')`` とできるようになりました。" "(Contributed by David Laban; :issue:`4739`.)" -#: ../../whatsnew/2.7.rst:1459 +#: ../../whatsnew/2.7.rst:1461 msgid "" "The :mod:`re` module's :func:`~re.split`, :func:`~re.sub`, and :func:`~re." "subn` now accept an optional *flags* argument, for consistency with the " @@ -2229,7 +2226,7 @@ msgstr "" "subn` は、モジュールの他の関数との一貫性のため、オプションの *flags* 引数を受" "け付けるようになりました。 (Added by Gregory P. Smith.)" -#: ../../whatsnew/2.7.rst:1463 +#: ../../whatsnew/2.7.rst:1465 msgid "" "New function: :func:`~runpy.run_path` in the :mod:`runpy` module will " "execute the code at a provided *path* argument. *path* can be the path of a " @@ -2255,7 +2252,7 @@ msgstr "" "理する方法を真似たいようなスクリプトに、 :mod:`runpy` のより多くの機構が利用" "できるようになります。 (Added by Nick Coghlan; :issue:`6816`.)" -#: ../../whatsnew/2.7.rst:1477 +#: ../../whatsnew/2.7.rst:1479 msgid "" "New function: in the :mod:`shutil` module, :func:`~shutil.make_archive` " "takes a filename, archive type (zip or tar-format), and a directory path, " @@ -2267,7 +2264,7 @@ msgstr "" "て、そのディレクトリの内容を含むアーカイブを生成します。(Added by Tarek " "Ziadé.)" -#: ../../whatsnew/2.7.rst:1482 +#: ../../whatsnew/2.7.rst:1484 msgid "" ":mod:`shutil`'s :func:`~shutil.copyfile` and :func:`~shutil.copytree` " "functions now raise a :exc:`~shutil.SpecialFileError` exception when asked " @@ -2281,7 +2278,7 @@ msgstr "" "イプを、通常のファイルのように読み込み用に開いて扱い、いつまでもブロックして" "いました。 (Fixed by Antoine Pitrou; :issue:`3002`.)" -#: ../../whatsnew/2.7.rst:1488 +#: ../../whatsnew/2.7.rst:1490 msgid "" "The :mod:`signal` module no longer re-installs the signal handler unless " "this is truly necessary, which fixes a bug that could make it impossible to " @@ -2292,7 +2289,7 @@ msgstr "" "トールしなくなりました。これで、EINTR シグナルを確実に捕えられないバグが修正" "されました。(Fixed by Charles-Francois Natali; :issue:`8354`.)" -#: ../../whatsnew/2.7.rst:1493 +#: ../../whatsnew/2.7.rst:1495 msgid "" "New functions: in the :mod:`site` module, three new functions return various " "site- and user-specific paths. :func:`~site.getsitepackages` returns a list " @@ -2310,7 +2307,7 @@ msgstr "" "のパスを与える、 :envvar:`USER_BASE` 環境変数の値を返します。 (Contributed " "by Tarek Ziadé; :issue:`6693`.)" -#: ../../whatsnew/2.7.rst:1504 +#: ../../whatsnew/2.7.rst:1506 msgid "" "The :mod:`site` module now reports exceptions occurring when the :mod:" "`sitecustomize` module is imported, and will no longer catch and swallow " @@ -2321,7 +2318,7 @@ msgstr "" "に例外を報告するようになり、 :exc:`KeyboardInterrupt` 例外が捕捉されて飲み込" "まれることはなくなりました。 (Fixed by Victor Stinner; :issue:`3137`.)" -#: ../../whatsnew/2.7.rst:1509 +#: ../../whatsnew/2.7.rst:1511 msgid "" "The :func:`~socket.create_connection` function gained a *source_address* " "parameter, a ``(host, port)`` 2-tuple giving the source address that will be " @@ -2331,7 +2328,7 @@ msgstr "" "る ``(host, port)`` の 2-タプル、 *source_address* パラメタを追加しました。 " "(Contributed by Eldon Ziegler; :issue:`3972`.)" -#: ../../whatsnew/2.7.rst:1514 +#: ../../whatsnew/2.7.rst:1516 msgid "" "The :meth:`~socket.socket.recv_into` and :meth:`~socket.socket." "recvfrom_into` methods will now write into objects that support the buffer " @@ -2343,7 +2340,7 @@ msgstr "" "`bytearray` や :class:`memoryview` 、に書きこむようになりました。 " "(Implemented by Antoine Pitrou; :issue:`8104`.)" -#: ../../whatsnew/2.7.rst:1519 +#: ../../whatsnew/2.7.rst:1521 msgid "" "The :mod:`SocketServer` module's :class:`~SocketServer.TCPServer` class now " "supports socket timeouts and disabling the Nagle algorithm. The :attr:" @@ -2369,7 +2366,7 @@ msgstr "" "handle_request` が返されます。(Contributed by Kristján Valur Jónsson; :issue:" "`6192` and :issue:`6267`.)" -#: ../../whatsnew/2.7.rst:1531 +#: ../../whatsnew/2.7.rst:1533 msgid "" "Updated module: the :mod:`sqlite3` module has been updated to version 2.6.0 " "of the `pysqlite package `__. Version " @@ -2387,7 +2384,7 @@ msgstr "" "リをロードするには :meth:`~sqlite3.Connection.load_extension` を呼び出してく" "ださい。 (Updated by Gerhard Häring.)" -#: ../../whatsnew/2.7.rst:1538 +#: ../../whatsnew/2.7.rst:1540 msgid "" "The :mod:`ssl` module's :class:`~ssl.SSLSocket` objects now support the " "buffer API, which fixed a test suite failure (fix by Antoine Pitrou; :issue:" @@ -2402,7 +2399,7 @@ msgstr "" "SSL 再ネゴシエーションを引き起こすエラーコードが返されるのを防ぎます (fix by " "Antoine Pitrou; :issue:`8222`)。" -#: ../../whatsnew/2.7.rst:1545 +#: ../../whatsnew/2.7.rst:1547 msgid "" "The :func:`ssl.wrap_socket` constructor function now takes a *ciphers* " "argument that's a string listing the encryption algorithms to be allowed; " @@ -2411,7 +2408,7 @@ msgid "" "Pitrou; :issue:`8322`.)" msgstr "" -#: ../../whatsnew/2.7.rst:1552 +#: ../../whatsnew/2.7.rst:1554 msgid "" "Another change makes the extension load all of OpenSSL's ciphers and digest " "algorithms so that they're all available. Some SSL certificates couldn't be " @@ -2423,7 +2420,7 @@ msgstr "" "証できないものもあり、\"unknown algorithm\" エラーを報告します。 (Reported " "by Beda Kosata, and fixed by Antoine Pitrou; :issue:`8484`.)" -#: ../../whatsnew/2.7.rst:1558 +#: ../../whatsnew/2.7.rst:1560 msgid "" "The version of OpenSSL being used is now available as the module attributes :" "const:`ssl.OPENSSL_VERSION` (a string), :const:`ssl.OPENSSL_VERSION_INFO` (a " @@ -2431,7 +2428,7 @@ msgid "" "Antoine Pitrou; :issue:`8321`.)" msgstr "" -#: ../../whatsnew/2.7.rst:1564 +#: ../../whatsnew/2.7.rst:1566 msgid "" "The :mod:`struct` module will no longer silently ignore overflow errors when " "a value is too large for a particular integer format code (one of " @@ -2449,7 +2446,7 @@ msgstr "" "たりする前に、 :meth:`__index__` の使用も試すようになりました。 (Changed by " "Mark Dickinson; :issue:`8300`.)" -#: ../../whatsnew/2.7.rst:1573 +#: ../../whatsnew/2.7.rst:1575 msgid "" "New function: the :mod:`subprocess` module's :func:`~subprocess." "check_output` runs a command with a specified set of arguments and returns " @@ -2461,11 +2458,11 @@ msgstr "" "らコマンドの出力を文字列として返し、そうでなければ :exc:`~subprocess." "CalledProcessError` 例外を送出します。" -#: ../../whatsnew/2.7.rst:1588 +#: ../../whatsnew/2.7.rst:1590 msgid "(Contributed by Gregory P. Smith.)" msgstr "(Contributed by Gregory P. Smith.)" -#: ../../whatsnew/2.7.rst:1590 +#: ../../whatsnew/2.7.rst:1592 msgid "" "The :mod:`subprocess` module will now retry its internal system calls on " "receiving an :const:`EINTR` signal. (Reported by several people; final " @@ -2475,7 +2472,7 @@ msgstr "" "ステムコールを最施行するようになりました。(Reported by several people; final " "patch by Gregory P. Smith in :issue:`1068268`.)" -#: ../../whatsnew/2.7.rst:1594 +#: ../../whatsnew/2.7.rst:1596 msgid "" "New function: :func:`~symtable.Symbol.is_declared_global` in the :mod:" "`symtable` module returns true for variables that are explicitly declared to " @@ -2486,7 +2483,7 @@ msgstr "" "is_declared_global` は、明示的に global と宣言された引数には真、暗示的に " "global である引数には偽を返します。(Contributed by Jeremy Hylton.)" -#: ../../whatsnew/2.7.rst:1599 ../../whatsnew/2.7.rst:2497 +#: ../../whatsnew/2.7.rst:1601 ../../whatsnew/2.7.rst:2499 msgid "" "The :mod:`syslog` module will now use the value of ``sys.argv[0]`` as the " "identifier instead of the previous default value of ``'python'``. (Changed " @@ -2496,7 +2493,7 @@ msgstr "" "``'python'`` の値ではなく、 ``sys.argv[0]`` の値を使うようになりました。 " "(Changed by Sean Reifschneider; :issue:`8451`.)" -#: ../../whatsnew/2.7.rst:1603 +#: ../../whatsnew/2.7.rst:1605 msgid "" "The ``sys.version_info`` value is now a named tuple, with attributes named :" "attr:`major`, :attr:`minor`, :attr:`micro`, :attr:`releaselevel`, and :attr:" @@ -2506,7 +2503,7 @@ msgstr "" "`micro`, :attr:`releaselevel`, および :attr:`serial` を持つ名前付きタプルにな" "りました。 (Contributed by Ross Light; :issue:`4285`.)" -#: ../../whatsnew/2.7.rst:1608 +#: ../../whatsnew/2.7.rst:1610 msgid "" ":func:`sys.getwindowsversion` also returns a named tuple, with attributes " "named :attr:`major`, :attr:`minor`, :attr:`build`, :attr:`platform`, :attr:" @@ -2520,7 +2517,7 @@ msgstr "" "び :attr:`product_type` を持つ名前付きタプルを返します。(Contributed by " "Brian Curtin; :issue:`7766`.)" -#: ../../whatsnew/2.7.rst:1614 ../../whatsnew/2.7.rst:2501 +#: ../../whatsnew/2.7.rst:1616 ../../whatsnew/2.7.rst:2503 msgid "" "The :mod:`tarfile` module's default error handling has changed, to no longer " "suppress fatal errors. The default error level was previously 0, which " @@ -2536,7 +2533,7 @@ msgstr "" "レベルは 1 になり、エラーがあれば例外が送出されます。 (Changed by Lars " "Gustäbel; :issue:`7357`.)" -#: ../../whatsnew/2.7.rst:1622 +#: ../../whatsnew/2.7.rst:1624 msgid "" ":mod:`tarfile` now supports filtering the :class:`~tarfile.TarInfo` objects " "being added to a tar file. When you call :meth:`~tarfile.TarFile.add`, you " @@ -2560,7 +2557,7 @@ msgstr "" "た、コンテキストマネージャプロトコルもサポートするようになりました。(Added " "by Lars Gustäbel; :issue:`7232`.)" -#: ../../whatsnew/2.7.rst:1634 +#: ../../whatsnew/2.7.rst:1636 msgid "" "The :meth:`~threading.Event.wait` method of the :class:`threading.Event` " "class now returns the internal flag on exit. This means the method will " @@ -2576,7 +2573,7 @@ msgstr "" "タイムアウトした時のみ偽になります。 (Contributed by Tim Lesher; :issue:" "`1674032`.)" -#: ../../whatsnew/2.7.rst:1641 +#: ../../whatsnew/2.7.rst:1643 msgid "" "The Unicode database provided by the :mod:`unicodedata` module is now used " "internally to determine which characters are numeric, whitespace, or " @@ -2592,7 +2589,7 @@ msgstr "" "`1571184`)。また、バージョン 5.2.0 にアップデートされました (updated by " "Florent Xicluna; :issue:`8024`)。" -#: ../../whatsnew/2.7.rst:1649 ../../whatsnew/2.7.rst:2509 +#: ../../whatsnew/2.7.rst:1651 ../../whatsnew/2.7.rst:2511 msgid "" "The :mod:`urlparse` module's :func:`~urlparse.urlsplit` now handles unknown " "URL schemes in a fashion compliant with :rfc:`3986`: if the URL is of the " @@ -2608,11 +2605,11 @@ msgstr "" "していたコードを破壊することがあります。例えば、Python 2.6.4 や 2.5 は以下を" "返します:" -#: ../../whatsnew/2.7.rst:1664 ../../whatsnew/2.7.rst:2524 +#: ../../whatsnew/2.7.rst:1666 ../../whatsnew/2.7.rst:2526 msgid "Python 2.7 (and Python 2.6.5) will return:" msgstr "Python 2.7 (や Python 2.6.5) は以下を返します:" -#: ../../whatsnew/2.7.rst:1673 ../../whatsnew/2.7.rst:2533 +#: ../../whatsnew/2.7.rst:1675 ../../whatsnew/2.7.rst:2535 msgid "" "(Python 2.7 actually produces slightly different output, since it returns a " "named tuple instead of a standard tuple.)" @@ -2620,7 +2617,7 @@ msgstr "" "(Python 2.7 では、これは普通のタプルではなく名前付きタプルを返すので、実際は" "微妙に異なる出力をします。)" -#: ../../whatsnew/2.7.rst:1676 +#: ../../whatsnew/2.7.rst:1678 msgid "" "The :mod:`urlparse` module also supports IPv6 literal addresses as defined " "by :rfc:`2732` (contributed by Senthil Kumaran; :issue:`2987`)." @@ -2628,7 +2625,7 @@ msgstr "" ":mod:`urlparse` モジュールは、 :rfc:`2732` で定義された IPv6 リテラルアドレス" "もサポートします (contributed by Senthil Kumaran; :issue:`2987`)。" -#: ../../whatsnew/2.7.rst:1686 +#: ../../whatsnew/2.7.rst:1688 msgid "" "New class: the :class:`~weakref.WeakSet` class in the :mod:`weakref` module " "is a set that only holds weak references to its elements; elements will be " @@ -2641,7 +2638,7 @@ msgstr "" "次第除去されます。 (Originally implemented in Python 3.x by Raymond " "Hettinger, and backported to 2.7 by Michael Foord.)" -#: ../../whatsnew/2.7.rst:1692 ../../whatsnew/2.7.rst:2487 +#: ../../whatsnew/2.7.rst:1694 ../../whatsnew/2.7.rst:2489 msgid "" "The ElementTree library, :mod:`xml.etree`, no longer escapes ampersands and " "angle brackets when outputting an XML processing instruction (which looks " @@ -2653,7 +2650,7 @@ msgstr "" "トを処理する XML を出力するとき、アンパサンドや山括弧をエスケープしなくなりま" "した。 (Patch by Neil Muller; :issue:`2746`.)" -#: ../../whatsnew/2.7.rst:1698 +#: ../../whatsnew/2.7.rst:1700 msgid "" "The XML-RPC client and server, provided by the :mod:`xmlrpclib` and :mod:" "`SimpleXMLRPCServer` modules, have improved performance by supporting " @@ -2670,7 +2667,7 @@ msgstr "" "`encode_threshold` 属性によって制御されます。これはバイト数で、これより大きな" "応答は圧縮されます。 (Contributed by Kristján Valur Jónsson; :issue:`6267`.)" -#: ../../whatsnew/2.7.rst:1707 +#: ../../whatsnew/2.7.rst:1709 msgid "" "The :mod:`zipfile` module's :class:`~zipfile.ZipFile` now supports the " "context management protocol, so you can write ``with zipfile.ZipFile(...) as " @@ -2680,7 +2677,7 @@ msgstr "" "メントプロトコルをサポートし、 ``with zipfile.ZipFile(...) as f:`` と書けるよ" "うになりました。 (Contributed by Brian Curtin; :issue:`5511`.)" -#: ../../whatsnew/2.7.rst:1711 +#: ../../whatsnew/2.7.rst:1713 msgid "" ":mod:`zipfile` now also supports archiving empty directories and extracts " "them correctly. (Fixed by Kuba Wieczorek; :issue:`4710`.) Reading files out " @@ -2694,7 +2691,7 @@ msgstr "" "`~zipfile.ZipFile.readline` の割り込みが正しく働くようになりました。" "(Contributed by Nir Aides; :issue:`7610`.)" -#: ../../whatsnew/2.7.rst:1717 +#: ../../whatsnew/2.7.rst:1719 msgid "" "The :func:`~zipfile.is_zipfile` function now accepts a file object, in " "addition to the path names accepted in earlier versions. (Contributed by " @@ -2704,7 +2701,7 @@ msgstr "" "イルオブジェクトも受け付けるようになりました。 (Contributed by Gabriel " "Genellina; :issue:`4756`.)" -#: ../../whatsnew/2.7.rst:1721 +#: ../../whatsnew/2.7.rst:1723 msgid "" "The :meth:`~zipfile.ZipFile.writestr` method now has an optional " "*compress_type* parameter that lets you override the default compression " @@ -2716,11 +2713,11 @@ msgstr "" "の *compress_type* パラメタを追加しました。 (Contributed by Ronald " "Oussoren; :issue:`6003`.)" -#: ../../whatsnew/2.7.rst:1734 +#: ../../whatsnew/2.7.rst:1736 msgid "New module: importlib" msgstr "新しいモジュール: importlib" -#: ../../whatsnew/2.7.rst:1736 +#: ../../whatsnew/2.7.rst:1738 msgid "" "Python 3.1 includes the :mod:`importlib` package, a re-implementation of the " "logic underlying Python's :keyword:`import` statement. :mod:`importlib` is " @@ -2737,7 +2734,7 @@ msgstr "" "含みませんが、代わりに 1 つの関数 :func:`~importlib.import_module` を含む小さ" "なサブセットがあります。" -#: ../../whatsnew/2.7.rst:1744 +#: ../../whatsnew/2.7.rst:1746 msgid "" "``import_module(name, package=None)`` imports a module. *name* is a string " "containing the module or package's name. It's possible to do relative " @@ -2755,11 +2752,11 @@ msgstr "" "import_module` は、 import されたモジュールを ``sys.modules`` に挿入し、モ" "ジュールオブジェクトを返すこともします。" -#: ../../whatsnew/2.7.rst:1753 +#: ../../whatsnew/2.7.rst:1755 msgid "Here are some examples::" msgstr "ここに例があります::" -#: ../../whatsnew/2.7.rst:1764 +#: ../../whatsnew/2.7.rst:1766 msgid "" ":mod:`importlib` was implemented by Brett Cannon and introduced in Python " "3.1." @@ -2767,11 +2764,11 @@ msgstr "" ":mod:`importlib` は、Brett Cannon によって実装され、 Python 3.1 に導入されま" "した。" -#: ../../whatsnew/2.7.rst:1769 +#: ../../whatsnew/2.7.rst:1771 msgid "New module: sysconfig" msgstr "新しいモジュール: sysconfig" -#: ../../whatsnew/2.7.rst:1771 +#: ../../whatsnew/2.7.rst:1773 msgid "" "The :mod:`sysconfig` module has been pulled out of the Distutils package, " "becoming a new top-level module in its own right. :mod:`sysconfig` provides " @@ -2785,11 +2782,11 @@ msgstr "" "インストレーションパス、プラットフォーム名、そして Python がソースディレクト" "リから実行されているかどうかです。" -#: ../../whatsnew/2.7.rst:1778 +#: ../../whatsnew/2.7.rst:1780 msgid "Some of the functions in the module are:" msgstr "モジュールの関数のいくつかを紹介すると:" -#: ../../whatsnew/2.7.rst:1780 +#: ../../whatsnew/2.7.rst:1782 msgid "" ":func:`~sysconfig.get_config_var` returns variables from Python's Makefile " "and the :file:`pyconfig.h` file." @@ -2797,7 +2794,7 @@ msgstr "" ":func:`~sysconfig.get_config_var` は、Python の Makefile と :file:`pyconfig." "h` ファイルから変数を返します。" -#: ../../whatsnew/2.7.rst:1782 +#: ../../whatsnew/2.7.rst:1784 msgid "" ":func:`~sysconfig.get_config_vars` returns a dictionary containing all of " "the configuration variables." @@ -2805,7 +2802,7 @@ msgstr "" ":func:`~sysconfig.get_config_vars` は、すべての環境設定変数を含む辞書を返しま" "す。" -#: ../../whatsnew/2.7.rst:1784 +#: ../../whatsnew/2.7.rst:1786 msgid "" ":func:`~sysconfig.get_path` returns the configured path for a particular " "type of module: the standard library, site-specific modules, platform-" @@ -2815,7 +2812,7 @@ msgstr "" "リ、サイト特有のモジュール、プラットフォーム特有のライブフラリなど、への設定" "されたパスを返します。" -#: ../../whatsnew/2.7.rst:1787 +#: ../../whatsnew/2.7.rst:1789 msgid "" ":func:`~sysconfig.is_python_build` returns true if you're running a binary " "from a Python source tree, and false otherwise." @@ -2823,14 +2820,14 @@ msgstr "" ":func:`~sysconfig.is_python_build` は、Python ソースツリーからバイナリを起動" "していれば真を、そうでなければ偽を返します。" -#: ../../whatsnew/2.7.rst:1790 +#: ../../whatsnew/2.7.rst:1792 msgid "" "Consult the :mod:`sysconfig` documentation for more details and for a " "complete list of functions." msgstr "" "詳細と関数の完全な一覧は :mod:`sysconfig` ドキュメントを参照してください。" -#: ../../whatsnew/2.7.rst:1793 +#: ../../whatsnew/2.7.rst:1795 msgid "" "The Distutils package and :mod:`sysconfig` are now maintained by Tarek " "Ziadé, who has also started a Distutils2 package (source repository at " @@ -2841,11 +2838,11 @@ msgstr "" "れていて、彼は Distutils の新世代版を開発するために Distutils2 パッケージ " "(source repository at https://hg.python.org/distutils2/) も開始しました。" -#: ../../whatsnew/2.7.rst:1800 +#: ../../whatsnew/2.7.rst:1802 msgid "ttk: Themed Widgets for Tk" msgstr "ttk: Tk のテーマ付きウィジェット" -#: ../../whatsnew/2.7.rst:1802 +#: ../../whatsnew/2.7.rst:1804 msgid "" "Tcl/Tk 8.5 includes a set of themed widgets that re-implement basic Tk " "widgets but have a more customizable appearance and can therefore more " @@ -2859,7 +2856,7 @@ msgstr "" "たが、Tcl/Tck リリース 8.5 への追加の際に (\"themed Tk\" を略して) Ttk に改名" "されました。" -#: ../../whatsnew/2.7.rst:1808 +#: ../../whatsnew/2.7.rst:1810 msgid "" "To learn more, read the :mod:`ttk` module documentation. You may also wish " "to read the Tcl/Tk manual page describing the Ttk theme engine, available at " @@ -2873,7 +2870,7 @@ msgstr "" "を動かしているスクリーンショットは https://code.google.com/archive/p/python-" "ttk/wikis/Screenshots.wiki にあります。" -#: ../../whatsnew/2.7.rst:1815 +#: ../../whatsnew/2.7.rst:1817 msgid "" "The :mod:`ttk` module was written by Guilherme Polo and added in :issue:" "`2983`. An alternate version called ``Tile.py``, written by Martin Franklin " @@ -2886,11 +2883,11 @@ msgstr "" "組み込みが :issue:`2618` で提案されましたが、著者は Guilherme Polo の作品のほ" "うがより包括的であると主張しました。" -#: ../../whatsnew/2.7.rst:1825 +#: ../../whatsnew/2.7.rst:1827 msgid "Updated module: unittest" msgstr "更新されたモジュール: unittest" -#: ../../whatsnew/2.7.rst:1827 +#: ../../whatsnew/2.7.rst:1829 msgid "" "The :mod:`unittest` module was greatly enhanced; many new features were " "added. Most of these features were implemented by Michael Foord, unless " @@ -2904,7 +2901,7 @@ msgstr "" "で使うために、 https://pypi.org/project/unittest2 から :mod:`unittest2` パッ" "ケージとして別にダウンロードできます。" -#: ../../whatsnew/2.7.rst:1834 +#: ../../whatsnew/2.7.rst:1836 msgid "" "When used from the command line, the module can automatically discover " "tests. It's not as fancy as `py.test `__ or `nose " @@ -2914,7 +2911,7 @@ msgid "" "files named ``test*.py``::" msgstr "" -#: ../../whatsnew/2.7.rst:1843 +#: ../../whatsnew/2.7.rst:1845 msgid "" "Consult the :mod:`unittest` module documentation for more details. " "(Developed in :issue:`6001`.)" @@ -2922,12 +2919,12 @@ msgstr "" "詳細は、 :mod:`unittest` モジュールのドキュメントを参照してください。 " "(Developed in :issue:`6001`.)" -#: ../../whatsnew/2.7.rst:1846 +#: ../../whatsnew/2.7.rst:1848 msgid "The :func:`~unittest.main` function supports some other new options:" msgstr "" ":func:`~unittest.main` 関数は、その他幾つかの新しいオプションを提供します:" -#: ../../whatsnew/2.7.rst:1848 +#: ../../whatsnew/2.7.rst:1850 msgid "" ":option:`-b ` or :option:`!--buffer` will buffer the standard " "output and standard error streams during each test. If the test passes, any " @@ -2938,7 +2935,7 @@ msgstr "" "トリームをそれぞれのテストの間バッファに入れます。テストが通れば、結果の出力" "は全て捨てられます。失敗したら、バッファに入れられた出力が表示されます。" -#: ../../whatsnew/2.7.rst:1853 +#: ../../whatsnew/2.7.rst:1855 msgid "" ":option:`-c ` or :option:`!--catch` will cause the control-C " "interrupt to be handled more gracefully. Instead of interrupting the test " @@ -2951,7 +2948,7 @@ msgstr "" "は完了させ、中断までの部分的な結果は報告されます。待ちきれなければ、control-" "C をもう一度押せば、即座に中断されます。" -#: ../../whatsnew/2.7.rst:1860 +#: ../../whatsnew/2.7.rst:1862 msgid "" "This control-C handler tries to avoid causing problems when the code being " "tested or the tests being run have defined a signal handler of their own, by " @@ -2966,7 +2963,7 @@ msgstr "" "す。これがまずいなら、 :func:`~unittest.removeHandler` デコレータを使って、テ" "ストが control-C ハンドリングを無効にするべきであると示せます。" -#: ../../whatsnew/2.7.rst:1867 +#: ../../whatsnew/2.7.rst:1869 msgid "" ":option:`-f ` or :option:`!--failfast` makes test execution " "stop immediately when a test fails instead of continuing to execute further " @@ -2977,7 +2974,7 @@ msgstr "" "き、他のテストを続けるのではなく、テストの実行を即座に停止します。 " "(Suggested by Cliff Dyer and implemented by Michael Foord; :issue:`8074`.)" -#: ../../whatsnew/2.7.rst:1872 +#: ../../whatsnew/2.7.rst:1874 msgid "" "The progress messages now show 'x' for expected failures and 'u' for " "unexpected successes when run in verbose mode. (Contributed by Benjamin " @@ -2987,7 +2984,7 @@ msgstr "" "されない成功に 'u' を表示するようになりました。(Contributed by Benjamin " "Peterson.)" -#: ../../whatsnew/2.7.rst:1876 +#: ../../whatsnew/2.7.rst:1878 msgid "" "Test cases can raise the :exc:`~unittest.SkipTest` exception to skip a test " "(:issue:`1034053`)." @@ -2995,7 +2992,7 @@ msgstr "" "テストケースは、テストをスキップするために :exc:`~unittest.SkipTest` 例外を送" "出します。(:issue:`1034053`)." -#: ../../whatsnew/2.7.rst:1879 +#: ../../whatsnew/2.7.rst:1881 msgid "" "The error messages for :meth:`~unittest.TestCase.assertEqual`, :meth:" "`~unittest.TestCase.assertTrue`, and :meth:`~unittest.TestCase.assertFalse` " @@ -3012,7 +3009,7 @@ msgstr "" "メッセージと追加して提供したメッセージの両方が表示されます。(Added by " "Michael Foord; :issue:`5663`.)" -#: ../../whatsnew/2.7.rst:1886 +#: ../../whatsnew/2.7.rst:1888 msgid "" "The :meth:`~unittest.TestCase.assertRaises` method now returns a context " "handler when called without providing a callable object to run. For " @@ -3022,11 +3019,11 @@ msgstr "" "ジェクトを与えずに呼び出されたとき、コンテキストハンドラを返すようになりまし" "た。例えば、こう書くことができます::" -#: ../../whatsnew/2.7.rst:1893 +#: ../../whatsnew/2.7.rst:1895 msgid "(Implemented by Antoine Pitrou; :issue:`4444`.)" msgstr "(Implemented by Antoine Pitrou; :issue:`4444`.)" -#: ../../whatsnew/2.7.rst:1897 +#: ../../whatsnew/2.7.rst:1899 msgid "" "Module- and class-level setup and teardown fixtures are now supported. " "Modules can contain :func:`~unittest.setUpModule` and :func:`~unittest." @@ -3045,7 +3042,7 @@ msgstr "" "ソッドは、テストランナーが別のモジュールやクラスのテストケースに切り替えると" "きに呼び出されます。" -#: ../../whatsnew/2.7.rst:1905 +#: ../../whatsnew/2.7.rst:1907 msgid "" "The methods :meth:`~unittest.TestCase.addCleanup` and :meth:`~unittest." "TestCase.doCleanups` were added. :meth:`~unittest.TestCase.addCleanup` lets " @@ -3061,7 +3058,7 @@ msgstr "" "なければ :meth:`~unittest.TestCase.tearDown` の後に) 追加できるようにします。" "これにより、テスト中のリソースの配置と解放が簡潔になります。(:issue:`5679`)." -#: ../../whatsnew/2.7.rst:1913 +#: ../../whatsnew/2.7.rst:1915 msgid "" "A number of new methods were added that provide more specialized tests. " "Many of these methods were written by Google engineers for use in their test " @@ -3073,7 +3070,7 @@ msgstr "" "した。Gregory P. Smith, Michael Foord, and GvR が、これを :mod:`unittest` の " "Python 版にマージしました。" -#: ../../whatsnew/2.7.rst:1918 +#: ../../whatsnew/2.7.rst:1920 msgid "" ":meth:`~unittest.TestCase.assertIsNone` and :meth:`~unittest.TestCase." "assertIsNotNone` take one expression and verify that the result is or is not " @@ -3083,7 +3080,7 @@ msgstr "" "assertIsNotNone` はひとつの式を取り、その結果が ``None`` であるか、またはない" "かを確かめます。" -#: ../../whatsnew/2.7.rst:1921 +#: ../../whatsnew/2.7.rst:1923 msgid "" ":meth:`~unittest.TestCase.assertIs` and :meth:`~unittest.TestCase." "assertIsNot` take two values and check whether the two values evaluate to " @@ -3093,7 +3090,7 @@ msgstr "" "assertIsNot` は、2 つの値を取り、その評価が同一のオブジェクトであるか、または" "ないかを確かめます。 (Added by Michael Foord; :issue:`2578`.)" -#: ../../whatsnew/2.7.rst:1925 +#: ../../whatsnew/2.7.rst:1927 msgid "" ":meth:`~unittest.TestCase.assertIsInstance` and :meth:`~unittest.TestCase." "assertNotIsInstance` check whether the resulting object is an instance of a " @@ -3105,7 +3102,7 @@ msgstr "" "クラスのいずれかのインスタンスであるかを調べます。(Added by Georg Brandl; :" "issue:`7031`.)" -#: ../../whatsnew/2.7.rst:1930 +#: ../../whatsnew/2.7.rst:1932 msgid "" ":meth:`~unittest.TestCase.assertGreater`, :meth:`~unittest.TestCase." "assertGreaterEqual`, :meth:`~unittest.TestCase.assertLess`, and :meth:" @@ -3115,7 +3112,7 @@ msgstr "" "assertGreaterEqual`, :meth:`~unittest.TestCase.assertLess`, および :meth:" "`~unittest.TestCase.assertLessEqual` は、二つの量を比較します。" -#: ../../whatsnew/2.7.rst:1934 +#: ../../whatsnew/2.7.rst:1936 msgid "" ":meth:`~unittest.TestCase.assertMultiLineEqual` compares two strings, and if " "they're not equal, displays a helpful comparison that highlights the " @@ -3127,7 +3124,7 @@ msgstr "" "は、Unicode 文字列が :meth:`~unittest.TestCase.assertEqual` で比較されるとき" "のデフォルトに使われるようになりました。" -#: ../../whatsnew/2.7.rst:1939 +#: ../../whatsnew/2.7.rst:1941 msgid "" ":meth:`~unittest.TestCase.assertRegexpMatches` and :meth:`~unittest.TestCase." "assertNotRegexpMatches` checks whether the first argument is a string " @@ -3138,7 +3135,7 @@ msgstr "" "TestCase.assertNotRegexpMatches` は、第一引数が第二引数として与えられた正規表" "現にマッチする、またはしない文字列であるかどうかを調べます。 (:issue:`8038`)" -#: ../../whatsnew/2.7.rst:1944 +#: ../../whatsnew/2.7.rst:1946 msgid "" ":meth:`~unittest.TestCase.assertRaisesRegexp` checks whether a particular " "exception is raised, and then also checks that the string representation of " @@ -3148,7 +3145,7 @@ msgstr "" "べ、そしてまたその式の文字列表現が与えられた正規表現にマッチするかを調べま" "す。" -#: ../../whatsnew/2.7.rst:1948 +#: ../../whatsnew/2.7.rst:1950 msgid "" ":meth:`~unittest.TestCase.assertIn` and :meth:`~unittest.TestCase." "assertNotIn` tests whether *first* is or is not in *second*." @@ -3157,7 +3154,7 @@ msgstr "" "assertNotIn` は、 *first* が *second* に属するか、または属さないかを調べま" "す。" -#: ../../whatsnew/2.7.rst:1951 +#: ../../whatsnew/2.7.rst:1953 msgid "" ":meth:`~unittest.TestCase.assertItemsEqual` tests whether two provided " "sequences contain the same elements." @@ -3165,7 +3162,7 @@ msgstr "" ":meth:`~unittest.TestCase.assertItemsEqual` は、2 つの与えられたシーケンスが" "同じ要素を含むかを調べます。" -#: ../../whatsnew/2.7.rst:1954 +#: ../../whatsnew/2.7.rst:1956 msgid "" ":meth:`~unittest.TestCase.assertSetEqual` compares whether two sets are " "equal, and only reports the differences between the sets in case of error." @@ -3173,7 +3170,7 @@ msgstr "" ":meth:`~unittest.TestCase.assertSetEqual` は、2 つの集合が等しいか比較し、エ" "ラーの場合のみ、集合間の差分を報告します。" -#: ../../whatsnew/2.7.rst:1957 +#: ../../whatsnew/2.7.rst:1959 msgid "" "Similarly, :meth:`~unittest.TestCase.assertListEqual` and :meth:`~unittest." "TestCase.assertTupleEqual` compare the specified types and explain any " @@ -3191,7 +3188,7 @@ msgstr "" "2 つのシーケンスを比較し、必要なら両方のシーケンスが特定の型であるかを調べま" "す。" -#: ../../whatsnew/2.7.rst:1965 +#: ../../whatsnew/2.7.rst:1967 msgid "" ":meth:`~unittest.TestCase.assertDictEqual` compares two dictionaries and " "reports the differences; it's now used by default when you compare two " @@ -3205,7 +3202,7 @@ msgstr "" "assertDictContainsSubset` は、 *first* に属するキー/値の対の全てが *second* " "に現れるかを調べます。" -#: ../../whatsnew/2.7.rst:1970 +#: ../../whatsnew/2.7.rst:1972 msgid "" ":meth:`~unittest.TestCase.assertAlmostEqual` and :meth:`~unittest.TestCase." "assertNotAlmostEqual` test whether *first* and *second* are approximately " @@ -3214,7 +3211,7 @@ msgid "" "require the difference to be smaller than a supplied *delta* value." msgstr "" -#: ../../whatsnew/2.7.rst:1976 +#: ../../whatsnew/2.7.rst:1978 msgid "" ":meth:`~unittest.TestLoader.loadTestsFromName` properly honors the :attr:" "`~unittest.TestLoader.suiteClass` attribute of the :class:`~unittest." @@ -3224,7 +3221,7 @@ msgstr "" "TestLoader` の :attr:`~unittest.TestLoader.suiteClass` 属性を適切に受け入れま" "す。(Fixed by Mark Roddy; :issue:`6866`.)" -#: ../../whatsnew/2.7.rst:1980 +#: ../../whatsnew/2.7.rst:1982 msgid "" "A new hook lets you extend the :meth:`~unittest.TestCase.assertEqual` method " "to handle new data types. The :meth:`~unittest.TestCase." @@ -3243,7 +3240,7 @@ msgstr "" "新しいシーケンス比較メソッドがするように、2 つのオブジェクトがなぜマッチしな" "いのかについて追加の情報を提供するのがいいアイデアです。" -#: ../../whatsnew/2.7.rst:1989 +#: ../../whatsnew/2.7.rst:1991 msgid "" ":func:`unittest.main` now takes an optional ``exit`` argument. If false, :" "func:`~unittest.main` doesn't call :func:`sys.exit`, allowing :func:" @@ -3255,7 +3252,7 @@ msgstr "" "対話型インタプリタから :func:`~unittest.main` が使えるようになります。" "(Contributed by J. Pablo Fernández; :issue:`3379`.)" -#: ../../whatsnew/2.7.rst:1994 +#: ../../whatsnew/2.7.rst:1996 msgid "" ":class:`~unittest.TestResult` has new :meth:`~unittest.TestResult." "startTestRun` and :meth:`~unittest.TestResult.stopTestRun` methods that are " @@ -3267,7 +3264,7 @@ msgstr "" "stopTestRun` が追加されました。 (Contributed by Robert Collins; :issue:" "`5728`.)" -#: ../../whatsnew/2.7.rst:1998 +#: ../../whatsnew/2.7.rst:2000 msgid "" "With all these changes, the :file:`unittest.py` was becoming awkwardly " "large, so the module was turned into a package and the code split into " @@ -3279,13 +3276,13 @@ msgstr "" "Benjamin Peterson)。これは、モジュールをインポートして使う方法には影響しませ" "ん。" -#: ../../whatsnew/2.7.rst:2006 +#: ../../whatsnew/2.7.rst:2008 msgid "" "https://web.archive.org/web/20210619163128/http://www.voidspace.org.uk/" "python/articles/unittest2.shtml" msgstr "" -#: ../../whatsnew/2.7.rst:2006 +#: ../../whatsnew/2.7.rst:2008 msgid "" "Describes the new features, how to use them, and the rationale for various " "design decisions. (By Michael Foord.)" @@ -3293,11 +3290,11 @@ msgstr "" "Describes the new features, how to use them, and the rationale for various " "design decisions. (By Michael Foord.)" -#: ../../whatsnew/2.7.rst:2012 +#: ../../whatsnew/2.7.rst:2014 msgid "Updated module: ElementTree 1.3" msgstr "更新されたモジュール: ElementTree 1.3" -#: ../../whatsnew/2.7.rst:2014 +#: ../../whatsnew/2.7.rst:2016 msgid "" "The version of the ElementTree library included with Python was updated to " "version 1.3. Some of the new features are:" @@ -3305,7 +3302,7 @@ msgstr "" "Python に同梱される ElementTree ライブラリのバージョンが、バージョン 1.3 に" "アップデートされました。新機能の一部は:" -#: ../../whatsnew/2.7.rst:2017 +#: ../../whatsnew/2.7.rst:2019 msgid "" "The various parsing functions now take a *parser* keyword argument giving " "an :class:`~xml.etree.ElementTree.XMLParser` instance that will be used. " @@ -3315,7 +3312,7 @@ msgstr "" "ンスを与える *parser* キーワード引数を取るようになりました。これにより、ファ" "イルの内部エンコーディングをオーバーライドできるようになりました::" -#: ../../whatsnew/2.7.rst:2024 +#: ../../whatsnew/2.7.rst:2026 msgid "" "Errors in parsing XML now raise a :exc:`ParseError` exception, whose " "instances have a :attr:`position` attribute containing a (*line*, *column*) " @@ -3325,7 +3322,7 @@ msgstr "" "た。この例外のインスタンスは、問題の位置を与える (*line*, *column*) タプルを" "含む :attr:`position` 属性を持ちます。" -#: ../../whatsnew/2.7.rst:2028 +#: ../../whatsnew/2.7.rst:2030 msgid "" "ElementTree's code for converting trees to a string has been significantly " "reworked, making it roughly twice as fast in many cases. The :meth:" @@ -3348,7 +3345,7 @@ msgstr "" "まにすると、ツリーが書き出されるとき、その要素は省かれるので、それ以上再編成" "することなく要素を一つ取り除けます。" -#: ../../whatsnew/2.7.rst:2040 +#: ../../whatsnew/2.7.rst:2042 msgid "" "Namespace handling has also been improved. All ``xmlns:`` " "declarations are now output on the root element, not scattered throughout " @@ -3364,7 +3361,7 @@ msgstr "" "す。XML モードでは、XML 宣言を抑制するために真/偽の *xml_declaration* パラメ" "タを使えます。" -#: ../../whatsnew/2.7.rst:2048 +#: ../../whatsnew/2.7.rst:2050 msgid "" "New :class:`~xml.etree.ElementTree.Element` method: :meth:`~xml.etree." "ElementTree.Element.extend` appends the items from a sequence to the " @@ -3376,7 +3373,7 @@ msgstr "" "それ自体はシーケンスのように振る舞うので、子をある要素から別の要素に移すのが" "簡単です::" -#: ../../whatsnew/2.7.rst:2065 +#: ../../whatsnew/2.7.rst:2067 msgid "" "New :class:`Element` method: :meth:`~xml.etree.ElementTree.Element.iter` " "yields the children of the element as a generator. It's also possible to " @@ -3390,7 +3387,7 @@ msgstr "" "`getiterator` と、子のリストを構成して返す :meth:`getchildren` は、非推奨にな" "りました。" -#: ../../whatsnew/2.7.rst:2072 +#: ../../whatsnew/2.7.rst:2074 msgid "" "New :class:`Element` method: :meth:`~xml.etree.ElementTree.Element.itertext` " "yields all chunks of text that are descendants of the element. For example::" @@ -3398,7 +3395,7 @@ msgstr "" "新しい :class:`Element` メソッド: :meth:`~xml.etree.ElementTree.Element." "itertext` は、その要素の子孫であるテキストのチャンクを全て与えます。例えば::" -#: ../../whatsnew/2.7.rst:2083 +#: ../../whatsnew/2.7.rst:2085 msgid "" "Deprecated: using an element as a Boolean (i.e., ``if elem:``) would return " "true if the element had any children, or false if there were no children. " @@ -3413,7 +3410,7 @@ msgstr "" "引き起こすようになりました。コードでは、明示するべきです。子の数に興味がある" "なら ``len(elem) != 0`` と、または ``elem is not None`` と書いてください。" -#: ../../whatsnew/2.7.rst:2091 +#: ../../whatsnew/2.7.rst:2093 msgid "" "Fredrik Lundh develops ElementTree and produced the 1.3 version; you can " "read his article describing 1.3 at https://web.archive.org/" @@ -3422,15 +3419,15 @@ msgid "" "python-dev and in :issue:`6472`.)" msgstr "" -#: ../../whatsnew/2.7.rst:2101 +#: ../../whatsnew/2.7.rst:2103 msgid "Build and C API Changes" msgstr "ビルドならびに C API の変更" -#: ../../whatsnew/2.7.rst:2103 +#: ../../whatsnew/2.7.rst:2105 msgid "Changes to Python's build process and to the C API include:" msgstr "Python のビルド過程と C API の変更は以下の通りです:" -#: ../../whatsnew/2.7.rst:2105 +#: ../../whatsnew/2.7.rst:2107 msgid "" "The latest release of the GNU Debugger, GDB 7, can be `scripted using Python " "`_; discussed in :issue:`5753`, and fixed by " @@ -3573,7 +3570,7 @@ msgstr "" "name=CVE-2008-5983>`_ として報告され、Antoine Pitrou によって修正されたたセ" "キュリティ問題です。" -#: ../../whatsnew/2.7.rst:2180 +#: ../../whatsnew/2.7.rst:2182 msgid "" "New macros: the Python header files now define the following macros: :c:" "macro:`Py_ISALNUM`, :c:macro:`Py_ISALPHA`, :c:macro:`Py_ISDIGIT`, :c:macro:" @@ -3592,7 +3589,7 @@ msgstr "" "ケールに依らず文字を分析したいときがあるため、現在のロケール設定を無視しま" "す。(Added by Eric Smith; :issue:`5793`.)" -#: ../../whatsnew/2.7.rst:2198 +#: ../../whatsnew/2.7.rst:2200 msgid "" "Removed function: :c:func:`!PyEval_CallObject` is now only available as a " "macro. A function version was being kept around to preserve ABI linking " @@ -3600,7 +3597,7 @@ msgid "" "(Removed by Antoine Pitrou; :issue:`8276`.)" msgstr "" -#: ../../whatsnew/2.7.rst:2203 +#: ../../whatsnew/2.7.rst:2205 msgid "" "New format codes: the :c:func:`!PyString_FromFormat`, :c:func:`!" "PyString_FromFormatV`, and :c:func:`PyErr_Format` functions now accept " @@ -3608,7 +3605,7 @@ msgid "" "types. (Contributed by Mark Dickinson; :issue:`7228`.)" msgstr "" -#: ../../whatsnew/2.7.rst:2209 +#: ../../whatsnew/2.7.rst:2211 msgid "" "The complicated interaction between threads and process forking has been " "changed. Previously, the child process created by :func:`os.fork` might " @@ -3628,7 +3625,7 @@ msgstr "" "ため、ロックを解放するものは何もないので、子プロセスは import の実行を続ける" "ことができません。" -#: ../../whatsnew/2.7.rst:2219 +#: ../../whatsnew/2.7.rst:2221 msgid "" "Python 2.7 acquires the import lock before performing an :func:`os.fork`, " "and will also clean up any locks created using the :mod:`threading` module. " @@ -3640,11 +3637,11 @@ msgstr "" "す。内部ロックを持っていたり、自身で :c:func:`fork()` を呼び出したりするよう" "な C 拡張モジュールは、このクリーンアップの恩恵を受けません。" -#: ../../whatsnew/2.7.rst:2225 +#: ../../whatsnew/2.7.rst:2227 msgid "(Fixed by Thomas Wouters; :issue:`1590864`.)" msgstr "(Fixed by Thomas Wouters; :issue:`1590864`.)" -#: ../../whatsnew/2.7.rst:2227 +#: ../../whatsnew/2.7.rst:2229 msgid "" "The :c:func:`Py_Finalize` function now calls the internal :func:`threading." "_shutdown` function; this prevents some exceptions from being raised when an " @@ -3654,14 +3651,14 @@ msgstr "" "します。これにより、インタプリタがシャトダウンするときに送出が防がれる例外が" "あります。(Patch by Adam Olsen; :issue:`1722344`.)" -#: ../../whatsnew/2.7.rst:2232 +#: ../../whatsnew/2.7.rst:2234 msgid "" "When using the :c:type:`PyMemberDef` structure to define attributes of a " "type, Python will no longer let you try to delete or set a :c:macro:" "`T_STRING_INPLACE` attribute." msgstr "" -#: ../../whatsnew/2.7.rst:2238 +#: ../../whatsnew/2.7.rst:2240 msgid "" "Global symbols defined by the :mod:`ctypes` module are now prefixed with " "``Py``, or with ``_ctypes``. (Implemented by Thomas Heller; :issue:`3102`.)" @@ -3670,7 +3667,7 @@ msgstr "" "``_ctypes`` が接頭されるようになりました。(Implemented by Thomas Heller; :" "issue:`3102`.)" -#: ../../whatsnew/2.7.rst:2242 +#: ../../whatsnew/2.7.rst:2244 msgid "" "New configure option: the :option:`!--with-system-expat` switch allows " "building the :mod:`pyexpat` module to use the system Expat library. " @@ -3680,7 +3677,7 @@ msgstr "" "`pyexpat` モジュールをビルドして、システム Expat ライブラリを使えます。 " "(Contributed by Arfrever Frehtes Taifersar Arahesis; :issue:`7609`.)" -#: ../../whatsnew/2.7.rst:2246 +#: ../../whatsnew/2.7.rst:2248 msgid "" "New configure option: the :option:`!--with-valgrind` option will now disable " "the pymalloc allocator, which is difficult for the Valgrind memory-error " @@ -3693,7 +3690,7 @@ msgstr "" "になりました。ですから Valgrind は、メモリリークやオーバーランをより検出でき" "ます。 (Contributed by James Henstridge; :issue:`2422`.)" -#: ../../whatsnew/2.7.rst:2253 +#: ../../whatsnew/2.7.rst:2255 msgid "" "New configure option: you can now supply an empty string to :option:`!--with-" "dbmliborder=` in order to disable all of the various DBM modules. (Added by " @@ -3703,7 +3700,7 @@ msgstr "" "な DBM モジュールを全て無効にできます。 (Added by Arfrever Frehtes Taifersar " "Arahesis; :issue:`6491`.)" -#: ../../whatsnew/2.7.rst:2258 +#: ../../whatsnew/2.7.rst:2260 msgid "" "The :program:`configure` script now checks for floating-point rounding bugs " "on certain 32-bit Intel chips and defines a :c:macro:`X87_DOUBLE_ROUNDING` " @@ -3716,7 +3713,7 @@ msgstr "" "す。現在この定義を使うコードはありませんが、使うことを望む人がいたら使えま" "す。(Added by Mark Dickinson; :issue:`2937`.)" -#: ../../whatsnew/2.7.rst:2264 +#: ../../whatsnew/2.7.rst:2266 msgid "" ":program:`configure` also now sets a :envvar:`LDCXXSHARED` Makefile variable " "for supporting C++ linking. (Contributed by Arfrever Frehtes Taifersar " @@ -3726,7 +3723,7 @@ msgstr "" "Makefile を設定するようになりました。 (Contributed by Arfrever Frehtes " "Taifersar Arahesis; :issue:`1222585`.)" -#: ../../whatsnew/2.7.rst:2268 +#: ../../whatsnew/2.7.rst:2270 msgid "" "The build process now creates the necessary files for pkg-config support. " "(Contributed by Clinton Roy; :issue:`3585`.)" @@ -3734,7 +3731,7 @@ msgstr "" "ビルドプロセスは、pkg-config サポートに必要なファイルを生成するようになりまし" "た。(Contributed by Clinton Roy; :issue:`3585`.)" -#: ../../whatsnew/2.7.rst:2271 +#: ../../whatsnew/2.7.rst:2273 msgid "" "The build process now supports Subversion 1.7. (Contributed by Arfrever " "Frehtes Taifersar Arahesis; :issue:`6094`.)" @@ -3742,11 +3739,11 @@ msgstr "" "ビルドプロセスは、Subversion 1.7 をサポートするようになりました。 " "(Contributed by Arfrever Frehtes Taifersar Arahesis; :issue:`6094`.)" -#: ../../whatsnew/2.7.rst:2278 +#: ../../whatsnew/2.7.rst:2280 msgid "Capsules" msgstr "カプセル" -#: ../../whatsnew/2.7.rst:2280 +#: ../../whatsnew/2.7.rst:2282 msgid "" "Python 3.1 adds a new C datatype, :c:type:`PyCapsule`, for providing a C API " "to an extension module. A capsule is essentially the holder of a C ``void " @@ -3766,7 +3763,7 @@ msgstr "" "ルの様々な API 関数へのポインタの配列を指す ``void *`` ポインタを取得できま" "す。" -#: ../../whatsnew/2.7.rst:2289 +#: ../../whatsnew/2.7.rst:2291 msgid "" "There is an existing data type already used for this, :c:type:`!PyCObject`, " "but it doesn't provide type safety. Evil code written in pure Python could " @@ -3776,7 +3773,7 @@ msgid "" "name:" msgstr "" -#: ../../whatsnew/2.7.rst:2307 +#: ../../whatsnew/2.7.rst:2309 msgid "" "You are assured that ``vtable`` points to whatever you're expecting. If a " "different capsule was passed in, :c:func:`PyCapsule_IsValid` would detect " @@ -3788,7 +3785,7 @@ msgstr "" "らのオブジェクトの使用について、より詳しい情報は、 :ref:`using-capsules` を参" "照してください。" -#: ../../whatsnew/2.7.rst:2312 +#: ../../whatsnew/2.7.rst:2314 msgid "" "Python 2.7 now uses capsules internally to provide various extension-module " "APIs, but the :c:func:`!PyCObject_AsVoidPtr` was modified to handle " @@ -3797,7 +3794,7 @@ msgid "" "exc:`PendingDeprecationWarning`, which is silent by default." msgstr "" -#: ../../whatsnew/2.7.rst:2319 +#: ../../whatsnew/2.7.rst:2321 msgid "" "Implemented in Python 3.1 and backported to 2.7 by Larry Hastings; discussed " "in :issue:`5630`." @@ -3805,11 +3802,11 @@ msgstr "" "Implemented in Python 3.1 and backported to 2.7 by Larry Hastings; discussed " "in :issue:`5630`." -#: ../../whatsnew/2.7.rst:2326 +#: ../../whatsnew/2.7.rst:2328 msgid "Port-Specific Changes: Windows" msgstr "ポート特有の変更: Windows" -#: ../../whatsnew/2.7.rst:2328 +#: ../../whatsnew/2.7.rst:2330 msgid "" "The :mod:`msvcrt` module now contains some constants from the :file:" "`crtassem.h` header file: :data:`CRT_ASSEMBLY_VERSION`, :data:" @@ -3821,7 +3818,7 @@ msgstr "" "よび :data:`LIBRARIES_ASSEMBLY_NAME_PREFIX`. (Contributed by David " "Cournapeau; :issue:`4365`.)" -#: ../../whatsnew/2.7.rst:2335 +#: ../../whatsnew/2.7.rst:2337 msgid "" "The :mod:`_winreg` module for accessing the registry now implements the :" "func:`~_winreg.CreateKeyEx` and :func:`~_winreg.DeleteKeyEx` functions, " @@ -3831,7 +3828,7 @@ msgid "" "tested and documented. (Implemented by Brian Curtin: :issue:`7347`.)" msgstr "" -#: ../../whatsnew/2.7.rst:2343 +#: ../../whatsnew/2.7.rst:2345 msgid "" "The new :c:func:`_beginthreadex` API is used to start threads, and the " "native thread-local storage functions are now used. (Contributed by Kristján " @@ -3841,7 +3838,7 @@ msgstr "" "レッドローカルストレージ間数が使われるようになりました。(Contributed by " "Kristján Valur Jónsson; :issue:`3582`.)" -#: ../../whatsnew/2.7.rst:2347 +#: ../../whatsnew/2.7.rst:2349 msgid "" "The :func:`os.kill` function now works on Windows. The signal value can be " "the constants :const:`CTRL_C_EVENT`, :const:`CTRL_BREAK_EVENT`, or any " @@ -3856,7 +3853,7 @@ msgstr "" "ロセスに送ります。その他の値は、 :c:func:`TerminateProcess` API を使います。" "(Contributed by Miki Tebeka; :issue:`1220212`.)" -#: ../../whatsnew/2.7.rst:2354 +#: ../../whatsnew/2.7.rst:2356 msgid "" "The :func:`os.listdir` function now correctly fails for an empty path. " "(Fixed by Hirokazu Yamamoto; :issue:`5913`.)" @@ -3864,7 +3861,7 @@ msgstr "" ":func:`os.listdir` 関数は、空のパスに対してちゃんと失敗するようになりまし" "た。 (Fixed by Hirokazu Yamamoto; :issue:`5913`.)" -#: ../../whatsnew/2.7.rst:2357 +#: ../../whatsnew/2.7.rst:2359 msgid "" "The :mod:`mimelib` module will now read the MIME database from the Windows " "registry when initializing. (Patch by Gabriel Genellina; :issue:`4969`.)" @@ -3873,11 +3870,11 @@ msgstr "" "ベースを正しく読みこむようになりました。 (Patch by Gabriel Genellina; :issue:" "`4969`.)" -#: ../../whatsnew/2.7.rst:2364 +#: ../../whatsnew/2.7.rst:2366 msgid "Port-Specific Changes: Mac OS X" msgstr "ポート特有の変更: Mac OS X" -#: ../../whatsnew/2.7.rst:2366 +#: ../../whatsnew/2.7.rst:2368 msgid "" "The path ``/Library/Python/2.7/site-packages`` is now appended to ``sys." "path``, in order to share added packages between the system installation and " @@ -3889,7 +3886,7 @@ msgstr "" "Python/2.7/site-packages`` が追加されました。 (Changed by Ronald Oussoren; :" "issue:`4865`.)" -#: ../../whatsnew/2.7.rst:2373 +#: ../../whatsnew/2.7.rst:2375 msgid "" "As of 2.7.13, this change was removed. ``/Library/Python/2.7/site-" "packages``, the site-packages directory used by the Apple-supplied system " @@ -3901,11 +3898,11 @@ msgid "" "Pythons. (:issue:`28440`)" msgstr "" -#: ../../whatsnew/2.7.rst:2384 +#: ../../whatsnew/2.7.rst:2386 msgid "Port-Specific Changes: FreeBSD" msgstr "ポート特有の変更: FreeBSD" -#: ../../whatsnew/2.7.rst:2386 +#: ../../whatsnew/2.7.rst:2388 msgid "" "FreeBSD 7.1's :const:`SO_SETFIB` constant, used with the :func:`~socket." "socket` methods :func:`~socket.socket.getsockopt`/:func:`~socket.socket." @@ -3913,11 +3910,11 @@ msgid "" "mod:`socket` module. (Added by Kyle VanderBeek; :issue:`8235`.)" msgstr "" -#: ../../whatsnew/2.7.rst:2392 +#: ../../whatsnew/2.7.rst:2394 msgid "Other Changes and Fixes" msgstr "その他の変更と修正" -#: ../../whatsnew/2.7.rst:2394 +#: ../../whatsnew/2.7.rst:2396 msgid "" "Two benchmark scripts, :file:`iobench` and :file:`ccbench`, were added to " "the :file:`Tools` directory. :file:`iobench` measures the speed of the " @@ -3933,7 +3930,7 @@ msgstr "" "スクを処理するときの計算スループット、スレッド切り替えレイテンシ、IO 処理バン" "ド幅の計測を試みる同時実行ベンチマークです。" -#: ../../whatsnew/2.7.rst:2402 +#: ../../whatsnew/2.7.rst:2404 msgid "" "The :file:`Tools/i18n/msgfmt.py` script now understands plural forms in :" "file:`.po` files. (Fixed by Martin von Löwis; :issue:`5464`.)" @@ -3941,22 +3938,17 @@ msgstr "" ":file:`Tools/i18n/msgfmt.py` スクリプトは、複数の形式の :file:`.po` ファイル" "を理解できるようになりました。(Fixed by Martin von Löwis; :issue:`5464`.)" -#: ../../whatsnew/2.7.rst:2406 +#: ../../whatsnew/2.7.rst:2408 msgid "" "When importing a module from a :file:`.pyc` or :file:`.pyo` file with an " -"existing :file:`.py` counterpart, the :attr:`co_filename` attributes of the " -"resulting code objects are overwritten when the original filename is " -"obsolete. This can happen if the file has been renamed, moved, or is " -"accessed through different paths. (Patch by Ziga Seilnacht and Jean-Paul " -"Calderone; :issue:`1180193`.)" +"existing :file:`.py` counterpart, the :attr:`~codeobject.co_filename` " +"attributes of the resulting code objects are overwritten when the original " +"filename is obsolete. This can happen if the file has been renamed, moved, " +"or is accessed through different paths. (Patch by Ziga Seilnacht and Jean-" +"Paul Calderone; :issue:`1180193`.)" msgstr "" -"既存の対応する :file:`.py` が存在する :file:`.pyc` または :file:`.pyo` ファイ" -"ルからモジュールを import するとき、結果のコードオブジェクトの :attr:" -"`co_filename` 属性は、元のファイル名が古くなったとき、上書きされます。これ" -"は、ファイルがリネーム、移動、異なるパスを通したアクセスをされたときに起こり" -"えます。(Patch by Ziga Seilnacht and Jean-Paul Calderone; :issue:`1180193`.)" -#: ../../whatsnew/2.7.rst:2413 +#: ../../whatsnew/2.7.rst:2415 msgid "" "The :file:`regrtest.py` script now takes a :option:`!--randseed=` switch " "that takes an integer that will be used as the random seed for the :option:" @@ -3968,7 +3960,7 @@ msgstr "" "を取るようになりました。 :option:`!-r` オプションは、使われたシードも報告しま" "す。 (Added by Collin Winter.)" -#: ../../whatsnew/2.7.rst:2419 +#: ../../whatsnew/2.7.rst:2421 msgid "" "Another :file:`regrtest.py` switch is :option:`!-j`, which takes an integer " "specifying how many tests run in parallel. This allows reducing the total " @@ -3986,7 +3978,7 @@ msgstr "" "プして実行する :option:`!-F` スイッチとも同時に使えます。(Added by Antoine " "Pitrou; :issue:`7312`.)" -#: ../../whatsnew/2.7.rst:2428 +#: ../../whatsnew/2.7.rst:2430 msgid "" "When executed as a script, the :file:`py_compile.py` module now accepts " "``'-'`` as an argument, which will read standard input for the list of " @@ -3996,11 +3988,11 @@ msgstr "" "読み込んでコンパイルするファイル名のリストとする ``'-'`` を引数として受け付け" "るようになりました。(Contributed by Piotr Ożarowski; :issue:`8233`.)" -#: ../../whatsnew/2.7.rst:2436 +#: ../../whatsnew/2.7.rst:2438 msgid "Porting to Python 2.7" msgstr "Python 2.7 への移植" -#: ../../whatsnew/2.7.rst:2438 +#: ../../whatsnew/2.7.rst:2440 msgid "" "This section lists previously described changes and other bugfixes that may " "require changes to your code:" @@ -4008,7 +4000,7 @@ msgstr "" "このセクションでは前述の変更とバグフィックスにより必要となるかもしれないコー" "ドの変更を列挙します:" -#: ../../whatsnew/2.7.rst:2441 +#: ../../whatsnew/2.7.rst:2443 msgid "" "The :func:`range` function processes its arguments more consistently; it " "will now call :meth:`__int__` on non-float, non-integer arguments that are " @@ -4018,7 +4010,7 @@ msgstr "" "数でもなく整数でもない引数が与えられたら、その :meth:`__int__` を呼び出すよう" "になりました。(Fixed by Alexander Belopolsky; :issue:`1533`.)" -#: ../../whatsnew/2.7.rst:2446 +#: ../../whatsnew/2.7.rst:2448 msgid "" "The string :meth:`format` method changed the default precision used for " "floating-point and complex numbers from 6 decimal places to 12, which " @@ -4029,7 +4021,7 @@ msgstr "" "の精度を、 :func:`str` で使われる精度に合わせ、小数第 6 位から 12 位に変更し" "ました。 (Changed by Eric Smith; :issue:`5920`.)" -#: ../../whatsnew/2.7.rst:2451 +#: ../../whatsnew/2.7.rst:2453 msgid "" "Because of an optimization for the :keyword:`with` statement, the special " "methods :meth:`~object.__enter__` and :meth:`~object.__exit__` must belong " @@ -4038,7 +4030,7 @@ msgid "" "C extension types. (:issue:`6101`.)" msgstr "" -#: ../../whatsnew/2.7.rst:2457 +#: ../../whatsnew/2.7.rst:2459 msgid "" "Due to a bug in Python 2.6, the *exc_value* parameter to :meth:`~object." "__exit__` methods was often the string representation of the exception, not " @@ -4046,11 +4038,11 @@ msgid "" "expected. (Fixed by Florent Xicluna; :issue:`7853`.)" msgstr "" -#: ../../whatsnew/2.7.rst:2467 +#: ../../whatsnew/2.7.rst:2469 msgid "In the standard library:" msgstr "標準ライブラリでは:" -#: ../../whatsnew/2.7.rst:2469 +#: ../../whatsnew/2.7.rst:2471 msgid "" "Operations with :class:`~datetime.datetime` instances that resulted in a " "year falling outside the supported range didn't always raise :exc:" @@ -4064,7 +4056,7 @@ msgstr "" "by Mark Leander, patch by Anand B. Pillai and Alexander Belopolsky; :issue:" "`7150`.)" -#: ../../whatsnew/2.7.rst:2475 +#: ../../whatsnew/2.7.rst:2477 msgid "" "When using :class:`~decimal.Decimal` instances with a string's :meth:" "`format` method, the default alignment was previously left-alignment. This " @@ -4075,7 +4067,7 @@ msgstr "" "うとき、デフォルトの揃えは以前は左揃えでした。これは右揃えに変更され、プログ" "ラムの出力が変わるかもしれません。(Changed by Mark Dickinson; :issue:`6857`.)" -#: ../../whatsnew/2.7.rst:2481 +#: ../../whatsnew/2.7.rst:2483 msgid "" "Comparisons involving a signaling NaN value (or ``sNAN``) now signal :const:" "`~decimal.InvalidOperation` instead of silently returning a true or false " @@ -4087,7 +4079,7 @@ msgstr "" "りました。 Quiet NaN (あるいは ``NAN``) はハッシュ可能になりました。 (Fixed " "by Mark Dickinson; :issue:`7279`.)" -#: ../../whatsnew/2.7.rst:2493 +#: ../../whatsnew/2.7.rst:2495 msgid "" "The :meth:`~StringIO.StringIO.readline` method of :class:`~StringIO." "StringIO` objects now does nothing when a negative length is requested, as " @@ -4097,11 +4089,11 @@ msgstr "" "readline` メソッドは負の長さが要求されたとき、ほかのファイル風オブジェクトと" "同じように、何もしなくなりました。(:issue:`7348`)" -#: ../../whatsnew/2.7.rst:2536 +#: ../../whatsnew/2.7.rst:2538 msgid "For C extensions:" msgstr "C 拡張では:" -#: ../../whatsnew/2.7.rst:2538 +#: ../../whatsnew/2.7.rst:2540 msgid "" "C extensions that use integer format codes with the ``PyArg_Parse*`` family " "of functions will now raise a :exc:`TypeError` exception instead of " @@ -4111,18 +4103,18 @@ msgstr "" "`DeprecationWarning` を引き起こすのではなく、 :exc:`TypeError` 例外を送出する" "ようになりました。(:issue:`5080`)" -#: ../../whatsnew/2.7.rst:2542 +#: ../../whatsnew/2.7.rst:2544 msgid "" "Use the new :c:func:`PyOS_string_to_double` function instead of the old :c:" "func:`!PyOS_ascii_strtod` and :c:func:`!PyOS_ascii_atof` functions, which " "are now deprecated." msgstr "" -#: ../../whatsnew/2.7.rst:2546 +#: ../../whatsnew/2.7.rst:2548 msgid "For applications that embed Python:" msgstr "Python を埋め込んだアプリケーションでは:" -#: ../../whatsnew/2.7.rst:2548 +#: ../../whatsnew/2.7.rst:2550 msgid "" "The :c:func:`PySys_SetArgvEx` function was added, letting applications close " "a security hole when the existing :c:func:`PySys_SetArgv` function was " @@ -4135,11 +4127,11 @@ msgstr "" "`PySys_SetArgv` を呼び出していないか調べ、 *updatepath* を偽に設定した :c:" "func:`PySys_SetArgvEx` を使うべきかよく考えてください。" -#: ../../whatsnew/2.7.rst:2561 +#: ../../whatsnew/2.7.rst:2563 msgid "New Features Added to Python 2.7 Maintenance Releases" msgstr "Python 2.7 メンテナンスリリースで追加された新機能" -#: ../../whatsnew/2.7.rst:2563 +#: ../../whatsnew/2.7.rst:2565 msgid "" "New features may be added to Python 2.7 maintenance releases when the " "situation genuinely calls for it. Any such additions must go through the " @@ -4153,7 +4145,7 @@ msgstr "" "い機能を追加することによっても Python Package Index に公開することによっても" "いずれでも十分ではないと言えるだけのやむにやまれない理由付けが必要です。" -#: ../../whatsnew/2.7.rst:2569 +#: ../../whatsnew/2.7.rst:2571 msgid "" "In addition to the specific proposals listed below, there is a general " "exemption allowing new ``-3`` warnings to be added in any Python 2.7 " @@ -4162,18 +4154,18 @@ msgstr "" "個別の提案は以下にリストしますが、全ての Python 2.7 メンテナンスリリースに追" "加される新しい ``-3`` 警告は除いています。" -#: ../../whatsnew/2.7.rst:2575 +#: ../../whatsnew/2.7.rst:2577 msgid "Two new environment variables for debug mode" msgstr "デバッグモード用の2つの新しい環境変数" -#: ../../whatsnew/2.7.rst:2577 +#: ../../whatsnew/2.7.rst:2579 msgid "" "In debug mode, the ``[xxx refs]`` statistic is not written by default, the :" "envvar:`PYTHONSHOWREFCOUNT` environment variable now must also be set. " "(Contributed by Victor Stinner; :issue:`31733`.)" msgstr "" -#: ../../whatsnew/2.7.rst:2581 +#: ../../whatsnew/2.7.rst:2583 msgid "" "When Python is compiled with ``COUNT_ALLOC`` defined, allocation counts are " "no longer dumped by default anymore: the :envvar:`PYTHONSHOWALLOCCOUNT` " @@ -4182,11 +4174,11 @@ msgid "" "issue:`31692`.)" msgstr "" -#: ../../whatsnew/2.7.rst:2590 +#: ../../whatsnew/2.7.rst:2592 msgid "PEP 434: IDLE Enhancement Exception for All Branches" msgstr "PEP 434: IDLE 拡張についての全てのブランチにおける例外的な扱い" -#: ../../whatsnew/2.7.rst:2592 +#: ../../whatsnew/2.7.rst:2594 msgid "" ":pep:`434` describes a general exemption for changes made to the IDLE " "development environment shipped along with Python. This exemption makes it " @@ -4198,7 +4190,7 @@ msgstr "" "ポートされているバージョン間でより一貫したユーザーエクスペリエンスを提供する" "ためのものです。" -#: ../../whatsnew/2.7.rst:2597 +#: ../../whatsnew/2.7.rst:2599 msgid "" "For details of any IDLE changes, refer to the NEWS file for the specific " "release." @@ -4206,11 +4198,11 @@ msgstr "" "全ての IDLE の変更についての詳細は、個別のリリースについてのNEWS ファイルを参" "照してください。" -#: ../../whatsnew/2.7.rst:2602 +#: ../../whatsnew/2.7.rst:2604 msgid "PEP 466: Network Security Enhancements for Python 2.7" msgstr "PEP 466: Python 2.7 のためのネットワークセキュリティ拡張" -#: ../../whatsnew/2.7.rst:2604 +#: ../../whatsnew/2.7.rst:2606 msgid "" ":pep:`466` describes a number of network security enhancement proposals that " "have been approved for inclusion in Python 2.7 maintenance releases, with " @@ -4220,11 +4212,11 @@ msgstr "" "のネットワークセキュリティ強化についての提案を記述しています。それら変更の最" "初のものは Python 2.7.7 に初めて登場しました。" -#: ../../whatsnew/2.7.rst:2608 +#: ../../whatsnew/2.7.rst:2610 msgid ":pep:`466` related features added in Python 2.7.7:" msgstr "Python 2.7.7 に :pep:`466` 関連で追加された機能:" -#: ../../whatsnew/2.7.rst:2610 +#: ../../whatsnew/2.7.rst:2612 msgid "" ":func:`hmac.compare_digest` was backported from Python 3 to make a timing " "attack resistant comparison operation available to Python 2 applications. " @@ -4234,7 +4226,7 @@ msgstr "" "り Python 2 アプリケーションで timing attack resistant comparison operation " "が利用可能になります (Contributed by Alex Gaynor; :issue:`21306`.)" -#: ../../whatsnew/2.7.rst:2614 +#: ../../whatsnew/2.7.rst:2616 msgid "" "OpenSSL 1.0.1g was upgraded in the official Windows installers published on " "python.org. (Contributed by Zachary Ware; :issue:`21462`.)" @@ -4243,11 +4235,11 @@ msgstr "" "1.0.1g にアップグレードされました . (Contributed by Zachary Ware; :issue:" "`21462`.)" -#: ../../whatsnew/2.7.rst:2617 +#: ../../whatsnew/2.7.rst:2619 msgid ":pep:`466` related features added in Python 2.7.8:" msgstr "Python 2.7.8 に :pep:`466` 関連で追加された機能:" -#: ../../whatsnew/2.7.rst:2619 +#: ../../whatsnew/2.7.rst:2621 msgid "" ":func:`hashlib.pbkdf2_hmac` was backported from Python 3 to make a hashing " "algorithm suitable for secure password storage broadly available to Python 2 " @@ -4258,7 +4250,7 @@ msgstr "" "いハッシュアルゴリズムが利用できます (Contributed by Alex Gaynor; :issue:" "`21304`.)" -#: ../../whatsnew/2.7.rst:2623 +#: ../../whatsnew/2.7.rst:2625 msgid "" "OpenSSL 1.0.1h was upgraded for the official Windows installers published on " "python.org. (contributed by Zachary Ware in :issue:`21671` for CVE-2014-0224)" @@ -4267,11 +4259,11 @@ msgstr "" "1.0.1h にアップグレードされました (contributed by Zachary Ware in :issue:" "`21671` for CVE-2014-0224)" -#: ../../whatsnew/2.7.rst:2626 +#: ../../whatsnew/2.7.rst:2628 msgid ":pep:`466` related features added in Python 2.7.9:" msgstr "Python 2.7.9 に :pep:`466` 関連で追加された機能:" -#: ../../whatsnew/2.7.rst:2628 +#: ../../whatsnew/2.7.rst:2630 msgid "" "Most of Python 3.4's :mod:`ssl` module was backported. This means :mod:`ssl` " "now supports Server Name Indication, TLS1.x settings, access to the platform " @@ -4283,7 +4275,7 @@ msgstr "" "certificate store へのアクセス, :class:`~ssl.SSLContext` クラス, その他機能が" "使えます (Contributed by Alex Gaynor and David Reid; :issue:`21308`.)" -#: ../../whatsnew/2.7.rst:2633 +#: ../../whatsnew/2.7.rst:2635 msgid "" "Refer to the \"Version added: 2.7.9\" notes in the module documentation for " "specific details." @@ -4291,7 +4283,7 @@ msgstr "" "個別の詳細については、モジュールのドキュメンテーション内の \"バージョン " "2.7.9 で追加\" の注釈を参照してください。" -#: ../../whatsnew/2.7.rst:2636 +#: ../../whatsnew/2.7.rst:2638 msgid "" ":func:`os.urandom` was changed to cache a file descriptor to ``/dev/" "urandom`` instead of reopening ``/dev/urandom`` on every call. (Contributed " @@ -4301,7 +4293,7 @@ msgstr "" "に ``/dev/urandom`` のファイル記述子をキャッシュするように変更されました。" "(Contributed by Alex Gaynor; :issue:`21305`.)" -#: ../../whatsnew/2.7.rst:2640 +#: ../../whatsnew/2.7.rst:2642 msgid "" ":data:`hashlib.algorithms_guaranteed` and :data:`hashlib." "algorithms_available` were backported from Python 3 to make it easier for " @@ -4313,11 +4305,11 @@ msgstr "" "Python 2 アプリケーションが可能な限り最強のハッシュアルゴリズムを選択するのが" "容易になります (Contributed by Alex Gaynor in :issue:`21307`)" -#: ../../whatsnew/2.7.rst:2647 +#: ../../whatsnew/2.7.rst:2649 msgid "PEP 477: Backport ensurepip (PEP 453) to Python 2.7" msgstr "PEP 477: Python 2.7 への ensurepip (PEP 453) バックポート" -#: ../../whatsnew/2.7.rst:2649 +#: ../../whatsnew/2.7.rst:2651 msgid "" ":pep:`477` approves the inclusion of the :pep:`453` ensurepip module and the " "improved documentation that was enabled by it in the Python 2.7 maintenance " @@ -4327,11 +4319,11 @@ msgstr "" "ル, それによって可能になるドキュメンテーションの改善を含めることを認め、" "Python 2.7.9 リリースではじめてお披露目されました。" -#: ../../whatsnew/2.7.rst:2655 +#: ../../whatsnew/2.7.rst:2657 msgid "Bootstrapping pip By Default" msgstr "デフォルトでの pip のブートストラッピング" -#: ../../whatsnew/2.7.rst:2657 +#: ../../whatsnew/2.7.rst:2659 msgid "" "The new :mod:`ensurepip` module (defined in :pep:`453`) provides a standard " "cross-platform mechanism to bootstrap the pip installer into Python " @@ -4346,7 +4338,7 @@ msgstr "" "``pip`` 1.5.6 で、将来の 2.7.x メンテナンスリリースでは Python のリリース候補" "の作成時点で入手出来る最新バージョンの ``pip`` がバンドルされる予定です。" -#: ../../whatsnew/2.7.rst:2664 +#: ../../whatsnew/2.7.rst:2666 msgid "" "By default, the commands ``pip``, ``pipX`` and ``pipX.Y`` will be installed " "on all platforms (where X.Y stands for the version of the Python " @@ -4356,7 +4348,7 @@ msgstr "" "ムに、Python パッケージ ``pip`` とその依存物とともにインストールされます(X. " "Y はインストールされる Python のバージョン)。" -#: ../../whatsnew/2.7.rst:2668 +#: ../../whatsnew/2.7.rst:2670 msgid "" "For CPython :ref:`source builds on POSIX systems `, " "the ``make install`` and ``make altinstall`` commands do not bootstrap " @@ -4368,7 +4360,7 @@ msgstr "" "ブートストラップを行いません。この振る舞いは configure のオプションを変更し" "て Makefile を作ることで変更できます。" -#: ../../whatsnew/2.7.rst:2673 +#: ../../whatsnew/2.7.rst:2675 msgid "" "On Windows and Mac OS X, the CPython installers now default to installing " "``pip`` along with CPython itself (users may opt out of installing it during " @@ -4384,7 +4376,7 @@ msgstr "" "ない場合でも Windows のための Python ランチャで ``py -m pip`` のようにすれば" "良いです。" -#: ../../whatsnew/2.7.rst:2680 +#: ../../whatsnew/2.7.rst:2682 msgid "" "As `discussed in the PEP`__, platform packagers may choose not to install " "these commands by default, as long as, when invoked, they provide clear and " @@ -4397,11 +4389,11 @@ msgstr "" "供する(普通システムのパッケージマネージャ)からと言う理由で、デフォルトでのこ" "れらコマンドのインストールを選択しないかもしれません。" -#: ../../whatsnew/2.7.rst:2689 +#: ../../whatsnew/2.7.rst:2691 msgid "Documentation Changes" msgstr "ドキュメントの変更" -#: ../../whatsnew/2.7.rst:2691 +#: ../../whatsnew/2.7.rst:2693 msgid "" "As part of this change, the :ref:`installing-index` and :ref:`distributing-" "index` sections of the documentation have been completely redesigned as " @@ -4417,19 +4409,19 @@ msgstr "" "Python Packaging Authority に移動されて、独立したプロジェクトのドキュメンテー" "ションになっています。" -#: ../../whatsnew/2.7.rst:2699 +#: ../../whatsnew/2.7.rst:2701 msgid "" "However, as this migration is currently still incomplete, the legacy " "versions of those guides remaining available as :ref:`install-index` and :" "ref:`setuptools-index`." msgstr "" -#: ../../whatsnew/2.7.rst:2706 +#: ../../whatsnew/2.7.rst:2708 msgid ":pep:`453` -- Explicit bootstrapping of pip in Python installations" msgstr "" ":pep:`453` -- Python インストールの際の明示的なpipのブートストラッピング" -#: ../../whatsnew/2.7.rst:2706 +#: ../../whatsnew/2.7.rst:2708 msgid "" "PEP written by Donald Stufft and Nick Coghlan, implemented by Donald Stufft, " "Nick Coghlan, Martin von Löwis and Ned Deily." @@ -4437,13 +4429,13 @@ msgstr "" "PEP は Donald Stufft と Nick Coghlan によって書かれ、Donald Stufft, Nick " "Coghlan, Martin von Löwis, Ned Deily により実装されました。" -#: ../../whatsnew/2.7.rst:2710 +#: ../../whatsnew/2.7.rst:2712 msgid "" "PEP 476: Enabling certificate verification by default for stdlib http clients" msgstr "" "PEP 476: stdlib http クライアントが証明書の検証を行うのをデフォルトで有効化" -#: ../../whatsnew/2.7.rst:2712 +#: ../../whatsnew/2.7.rst:2714 msgid "" ":pep:`476` updated :mod:`httplib` and modules which use it, such as :mod:" "`urllib2` and :mod:`xmlrpclib`, to now verify that the server presents a " @@ -4453,7 +4445,7 @@ msgid "" "in the Python 2.7.9 release." msgstr "" -#: ../../whatsnew/2.7.rst:2719 +#: ../../whatsnew/2.7.rst:2721 msgid "" "For applications which require the old previous behavior, they can pass an " "alternate context::" @@ -4461,11 +4453,11 @@ msgstr "" "以前の古い振る舞いが必要なアプリケーションでは、代わりとなるコンテキストを渡" "せます::" -#: ../../whatsnew/2.7.rst:2736 +#: ../../whatsnew/2.7.rst:2738 msgid "PEP 493: HTTPS verification migration tools for Python 2.7" msgstr "PEP 493: HTTPS verification migration tools for Python 2.7" -#: ../../whatsnew/2.7.rst:2738 +#: ../../whatsnew/2.7.rst:2740 msgid "" ":pep:`493` provides additional migration tools to support a more incremental " "infrastructure upgrade process for environments containing applications and " @@ -4474,14 +4466,14 @@ msgid "" "were made in the Python 2.7.12 release." msgstr "" -#: ../../whatsnew/2.7.rst:2744 +#: ../../whatsnew/2.7.rst:2746 msgid "" "These tools are intended for use in cases where affected applications and " "services can't be modified to explicitly pass a more permissive SSL context " "when establishing the connection." msgstr "" -#: ../../whatsnew/2.7.rst:2748 +#: ../../whatsnew/2.7.rst:2750 msgid "" "For applications and services which can't be modified at all, the new " "``PYTHONHTTPSVERIFY`` environment variable may be set to ``0`` to revert an " @@ -4489,18 +4481,18 @@ msgid "" "2.7.8 and earlier." msgstr "" -#: ../../whatsnew/2.7.rst:2753 +#: ../../whatsnew/2.7.rst:2755 msgid "" "For cases where the connection establishment code can't be modified, but the " "overall application can be, the new :func:`ssl._https_verify_certificates` " "function can be used to adjust the default behaviour at runtime." msgstr "" -#: ../../whatsnew/2.7.rst:2759 +#: ../../whatsnew/2.7.rst:2761 msgid "New ``make regen-all`` build target" msgstr "" -#: ../../whatsnew/2.7.rst:2761 +#: ../../whatsnew/2.7.rst:2763 msgid "" "To simplify cross-compilation, and to ensure that CPython can reliably be " "compiled without requiring an existing version of Python to already be " @@ -4508,43 +4500,43 @@ msgid "" "recompile generated files based on file modification times." msgstr "" -#: ../../whatsnew/2.7.rst:2766 +#: ../../whatsnew/2.7.rst:2768 msgid "" "Instead, a new ``make regen-all`` command has been added to force " "regeneration of these files when desired (e.g. after an initial version of " "Python has already been built based on the pregenerated versions)." msgstr "" -#: ../../whatsnew/2.7.rst:2770 +#: ../../whatsnew/2.7.rst:2772 msgid "" "More selective regeneration targets are also defined - see :source:`Makefile." "pre.in` for details." msgstr "" -#: ../../whatsnew/2.7.rst:2773 ../../whatsnew/2.7.rst:2786 +#: ../../whatsnew/2.7.rst:2775 ../../whatsnew/2.7.rst:2788 msgid "(Contributed by Victor Stinner in :issue:`23404`.)" msgstr "(Victor Stinner の貢献による :issue:`23404`) " -#: ../../whatsnew/2.7.rst:2779 +#: ../../whatsnew/2.7.rst:2781 msgid "Removal of ``make touch`` build target" msgstr "" -#: ../../whatsnew/2.7.rst:2781 +#: ../../whatsnew/2.7.rst:2783 msgid "" "The ``make touch`` build target previously used to request implicit " "regeneration of generated files by updating their modification times has " "been removed." msgstr "" -#: ../../whatsnew/2.7.rst:2784 +#: ../../whatsnew/2.7.rst:2786 msgid "It has been replaced by the new ``make regen-all`` target." msgstr "" -#: ../../whatsnew/2.7.rst:2795 +#: ../../whatsnew/2.7.rst:2797 msgid "Acknowledgements" msgstr "謝辞" -#: ../../whatsnew/2.7.rst:2797 +#: ../../whatsnew/2.7.rst:2799 msgid "" "The author would like to thank the following people for offering " "suggestions, corrections and assistance with various drafts of this article: " diff --git a/whatsnew/3.10.po b/whatsnew/3.10.po index aae265bf7..f8ce67a47 100644 --- a/whatsnew/3.10.po +++ b/whatsnew/3.10.po @@ -14,7 +14,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3.12\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2023-11-24 14:13+0000\n" +"POT-Creation-Date: 2023-12-08 14:14+0000\n" "PO-Revision-Date: 2021-06-29 13:04+0000\n" "Last-Translator: Takanori Suzuki , 2023\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" @@ -134,7 +134,7 @@ msgstr "" msgid ":pep:`597`, Add optional EncodingWarning" msgstr "" -#: ../../whatsnew/3.10.rst:92 ../../whatsnew/3.10.rst:2042 +#: ../../whatsnew/3.10.rst:92 ../../whatsnew/3.10.rst:2044 msgid "New Features" msgstr "新しい機能" @@ -378,22 +378,22 @@ msgstr "" #: ../../whatsnew/3.10.rst:402 msgid "" -"The ``f_lineno`` attribute of frame objects will always contain the expected " -"line number." +"The :attr:`~frame.f_lineno` attribute of frame objects will always contain " +"the expected line number." msgstr "" -#: ../../whatsnew/3.10.rst:404 +#: ../../whatsnew/3.10.rst:405 msgid "" -"The ``co_lnotab`` attribute of code objects is deprecated and will be " -"removed in 3.12. Code that needs to convert from offset to line number " -"should use the new ``co_lines()`` method instead." +"The :attr:`~codeobject.co_lnotab` attribute of code objects is deprecated " +"and will be removed in 3.12. Code that needs to convert from offset to line " +"number should use the new ``co_lines()`` method instead." msgstr "" -#: ../../whatsnew/3.10.rst:408 +#: ../../whatsnew/3.10.rst:410 msgid "PEP 634: Structural Pattern Matching" msgstr "PEP 634: 構造的パターンマッチ" -#: ../../whatsnew/3.10.rst:410 +#: ../../whatsnew/3.10.rst:412 msgid "" "Structural pattern matching has been added in the form of a *match " "statement* and *case statements* of patterns with associated actions. " @@ -403,40 +403,40 @@ msgid "" "actions based on different forms of data." msgstr "" -#: ../../whatsnew/3.10.rst:418 +#: ../../whatsnew/3.10.rst:420 msgid "Syntax and operations" msgstr "" -#: ../../whatsnew/3.10.rst:420 +#: ../../whatsnew/3.10.rst:422 msgid "The generic syntax of pattern matching is::" msgstr "" -#: ../../whatsnew/3.10.rst:432 +#: ../../whatsnew/3.10.rst:434 msgid "" "A match statement takes an expression and compares its value to successive " "patterns given as one or more case blocks. Specifically, pattern matching " "operates by:" msgstr "" -#: ../../whatsnew/3.10.rst:436 +#: ../../whatsnew/3.10.rst:438 msgid "using data with type and shape (the ``subject``)" msgstr "" -#: ../../whatsnew/3.10.rst:437 +#: ../../whatsnew/3.10.rst:439 msgid "evaluating the ``subject`` in the ``match`` statement" msgstr "" -#: ../../whatsnew/3.10.rst:438 +#: ../../whatsnew/3.10.rst:440 msgid "" "comparing the subject with each pattern in a ``case`` statement from top to " "bottom until a match is confirmed." msgstr "" -#: ../../whatsnew/3.10.rst:440 +#: ../../whatsnew/3.10.rst:442 msgid "executing the action associated with the pattern of the confirmed match" msgstr "" -#: ../../whatsnew/3.10.rst:442 +#: ../../whatsnew/3.10.rst:444 msgid "" "If an exact match is not confirmed, the last case, a wildcard ``_``, if " "provided, will be used as the matching case. If an exact match is not " @@ -444,11 +444,11 @@ msgid "" "op." msgstr "" -#: ../../whatsnew/3.10.rst:448 +#: ../../whatsnew/3.10.rst:450 msgid "Declarative approach" msgstr "" -#: ../../whatsnew/3.10.rst:450 +#: ../../whatsnew/3.10.rst:452 msgid "" "Readers may be aware of pattern matching through the simple example of " "matching a subject (data object) to a literal (pattern) with the switch " @@ -457,7 +457,7 @@ msgid "" "case statements containing literals." msgstr "" -#: ../../whatsnew/3.10.rst:456 +#: ../../whatsnew/3.10.rst:458 msgid "" "More powerful examples of pattern matching can be found in languages such as " "Scala and Elixir. With structural pattern matching, the approach is " @@ -465,7 +465,7 @@ msgid "" "to match." msgstr "" -#: ../../whatsnew/3.10.rst:460 +#: ../../whatsnew/3.10.rst:462 msgid "" "While an \"imperative\" series of instructions using nested \"if\" " "statements could be used to accomplish something similar to structural " @@ -477,11 +477,11 @@ msgid "" "of the subject's type and shape." msgstr "" -#: ../../whatsnew/3.10.rst:469 +#: ../../whatsnew/3.10.rst:471 msgid "Simple pattern: match to a literal" msgstr "" -#: ../../whatsnew/3.10.rst:471 +#: ../../whatsnew/3.10.rst:473 msgid "" "Let's look at this example as pattern matching in its simplest form: a " "value, the subject, being matched to several literals, the patterns. In the " @@ -490,7 +490,7 @@ msgid "" "status codes. The associated action to the case is executed after a match::" msgstr "" -#: ../../whatsnew/3.10.rst:488 +#: ../../whatsnew/3.10.rst:490 msgid "" "If the above function is passed a ``status`` of 418, \"I'm a teapot\" is " "returned. If the above function is passed a ``status`` of 500, the case " @@ -500,41 +500,41 @@ msgid "" "``_`` is optional." msgstr "" -#: ../../whatsnew/3.10.rst:495 +#: ../../whatsnew/3.10.rst:497 msgid "" "You can combine several literals in a single pattern using ``|`` (\"or\")::" msgstr "" "複数のリテラルを``|`` (\"or\")を使用して組み合わせて1つのパターンにできます。" -#: ../../whatsnew/3.10.rst:501 +#: ../../whatsnew/3.10.rst:503 msgid "Behavior without the wildcard" msgstr "" -#: ../../whatsnew/3.10.rst:503 +#: ../../whatsnew/3.10.rst:505 msgid "" "If we modify the above example by removing the last case block, the example " "becomes::" msgstr "" -#: ../../whatsnew/3.10.rst:515 +#: ../../whatsnew/3.10.rst:517 msgid "" "Without the use of ``_`` in a case statement, a match may not exist. If no " "match exists, the behavior is a no-op. For example, if ``status`` of 500 is " "passed, a no-op occurs." msgstr "" -#: ../../whatsnew/3.10.rst:520 +#: ../../whatsnew/3.10.rst:522 msgid "Patterns with a literal and variable" msgstr "" -#: ../../whatsnew/3.10.rst:522 +#: ../../whatsnew/3.10.rst:524 msgid "" "Patterns can look like unpacking assignments, and a pattern may be used to " "bind variables. In this example, a data point can be unpacked to its x-" "coordinate and y-coordinate::" msgstr "" -#: ../../whatsnew/3.10.rst:539 +#: ../../whatsnew/3.10.rst:541 msgid "" "The first pattern has two literals, ``(0, 0)``, and may be thought of as an " "extension of the literal pattern shown above. The next two patterns combine " @@ -543,22 +543,22 @@ msgid "" "conceptually similar to the unpacking assignment ``(x, y) = point``." msgstr "" -#: ../../whatsnew/3.10.rst:546 +#: ../../whatsnew/3.10.rst:548 msgid "Patterns and classes" msgstr "" -#: ../../whatsnew/3.10.rst:548 +#: ../../whatsnew/3.10.rst:550 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::" msgstr "" -#: ../../whatsnew/3.10.rst:570 +#: ../../whatsnew/3.10.rst:572 msgid "Patterns with positional parameters" msgstr "" -#: ../../whatsnew/3.10.rst:572 +#: ../../whatsnew/3.10.rst:574 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 " @@ -573,38 +573,38 @@ msgstr "" "下のすべてのパターンは等価です(すべて属性 ``y`` が ``var`` 変数に関連づけられ" "ます)::" -#: ../../whatsnew/3.10.rst:584 +#: ../../whatsnew/3.10.rst:586 msgid "Nested patterns" msgstr "" -#: ../../whatsnew/3.10.rst:586 +#: ../../whatsnew/3.10.rst:588 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:602 +#: ../../whatsnew/3.10.rst:604 msgid "Complex patterns and the wildcard" msgstr "" -#: ../../whatsnew/3.10.rst:604 +#: ../../whatsnew/3.10.rst:606 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:614 +#: ../../whatsnew/3.10.rst:616 msgid "" "In the above case, ``test_variable`` will match for ('error', code, 100) and " "('error', code, 800)." msgstr "" -#: ../../whatsnew/3.10.rst:618 +#: ../../whatsnew/3.10.rst:620 msgid "Guard" msgstr "" -#: ../../whatsnew/3.10.rst:620 +#: ../../whatsnew/3.10.rst:622 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 " @@ -614,15 +614,15 @@ msgstr "" "falseの場合、``match`` は次のcaseブロックの処理に移動します。ガードを評価する" "前に値が取り出されることに注意してください::" -#: ../../whatsnew/3.10.rst:631 +#: ../../whatsnew/3.10.rst:633 msgid "Other Key Features" msgstr "" -#: ../../whatsnew/3.10.rst:633 +#: ../../whatsnew/3.10.rst:635 msgid "Several other key features:" msgstr "" -#: ../../whatsnew/3.10.rst:635 +#: ../../whatsnew/3.10.rst:637 msgid "" "Like unpacking assignments, tuple and list patterns have exactly the same " "meaning and actually match arbitrary sequences. Technically, the subject " @@ -631,7 +631,7 @@ msgid "" "match strings." msgstr "" -#: ../../whatsnew/3.10.rst:641 +#: ../../whatsnew/3.10.rst:643 msgid "" "Sequence patterns support wildcards: ``[x, y, *rest]`` and ``(x, y, *rest)`` " "work similar to wildcards in unpacking assignments. The name after ``*`` " @@ -639,7 +639,7 @@ msgid "" "items without binding the remaining items." msgstr "" -#: ../../whatsnew/3.10.rst:646 +#: ../../whatsnew/3.10.rst:648 msgid "" "Mapping patterns: ``{\"bandwidth\": b, \"latency\": l}`` captures the " "``\"bandwidth\"`` and ``\"latency\"`` values from a dict. Unlike sequence " @@ -647,40 +647,40 @@ msgid "" "(But ``**_`` would be redundant, so is not allowed.)" msgstr "" -#: ../../whatsnew/3.10.rst:651 +#: ../../whatsnew/3.10.rst:653 msgid "Subpatterns may be captured using the ``as`` keyword::" msgstr "サブパターンでは ``as`` キーワードを使用して値を取り込みます::" -#: ../../whatsnew/3.10.rst:655 +#: ../../whatsnew/3.10.rst:657 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:658 +#: ../../whatsnew/3.10.rst:660 msgid "" "Most literals are compared by equality. However, the singletons ``True``, " "``False`` and ``None`` are compared by identity." msgstr "" -#: ../../whatsnew/3.10.rst:661 +#: ../../whatsnew/3.10.rst:663 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:680 +#: ../../whatsnew/3.10.rst:682 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:687 +#: ../../whatsnew/3.10.rst:689 msgid "Optional ``EncodingWarning`` and ``encoding=\"locale\"`` option" msgstr "" -#: ../../whatsnew/3.10.rst:689 +#: ../../whatsnew/3.10.rst:691 msgid "" "The default encoding of :class:`TextIOWrapper` and :func:`open` is platform " "and locale dependent. Since UTF-8 is used on most Unix platforms, omitting " @@ -688,81 +688,81 @@ msgid "" "Markdown) is a very common bug. For example::" msgstr "" -#: ../../whatsnew/3.10.rst:698 +#: ../../whatsnew/3.10.rst:700 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:702 +#: ../../whatsnew/3.10.rst:704 msgid "" "``-X warn_default_encoding`` option and :envvar:`PYTHONWARNDEFAULTENCODING` " "are added to enable the warning." msgstr "" -#: ../../whatsnew/3.10.rst:705 +#: ../../whatsnew/3.10.rst:707 msgid "See :ref:`io-text-encoding` for more information." msgstr "" -#: ../../whatsnew/3.10.rst:710 +#: ../../whatsnew/3.10.rst:712 msgid "New Features Related to Type Hints" msgstr "型ヒントに関連する新しい機能" -#: ../../whatsnew/3.10.rst:712 +#: ../../whatsnew/3.10.rst:714 msgid "" "This section covers major changes affecting :pep:`484` type hints and the :" "mod:`typing` module." msgstr "" -#: ../../whatsnew/3.10.rst:717 +#: ../../whatsnew/3.10.rst:719 msgid "PEP 604: New Type Union Operator" msgstr "" -#: ../../whatsnew/3.10.rst:719 +#: ../../whatsnew/3.10.rst:721 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 :data:`typing.Union`, especially in type hints." msgstr "" -#: ../../whatsnew/3.10.rst:723 +#: ../../whatsnew/3.10.rst:725 msgid "" "In previous versions of Python, to apply a type hint for functions accepting " "arguments of multiple types, :data:`typing.Union` was used::" msgstr "" -#: ../../whatsnew/3.10.rst:730 +#: ../../whatsnew/3.10.rst:732 msgid "Type hints can now be written in a more succinct manner::" msgstr "" -#: ../../whatsnew/3.10.rst:736 +#: ../../whatsnew/3.10.rst:738 msgid "" "This new syntax is also accepted as the second argument to :func:" "`isinstance` and :func:`issubclass`::" msgstr "" -#: ../../whatsnew/3.10.rst:742 +#: ../../whatsnew/3.10.rst:744 msgid "See :ref:`types-union` and :pep:`604` for more details." msgstr "" -#: ../../whatsnew/3.10.rst:744 +#: ../../whatsnew/3.10.rst:746 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:749 +#: ../../whatsnew/3.10.rst:751 msgid "PEP 612: Parameter Specification Variables" msgstr "" -#: ../../whatsnew/3.10.rst:751 +#: ../../whatsnew/3.10.rst:753 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:754 +#: ../../whatsnew/3.10.rst:756 msgid "" "The first is the parameter specification variable. They are used to forward " "the parameter types of one callable to another callable -- a pattern " @@ -771,7 +771,7 @@ msgid "" "to type annotate dependency of parameter types in such a precise manner." msgstr "" -#: ../../whatsnew/3.10.rst:760 +#: ../../whatsnew/3.10.rst:762 msgid "" "The second option is the new ``Concatenate`` operator. It's used in " "conjunction with parameter specification variables to type annotate a higher " @@ -779,24 +779,24 @@ msgid "" "Examples of usage can be found in :class:`typing.Concatenate`." msgstr "" -#: ../../whatsnew/3.10.rst:765 +#: ../../whatsnew/3.10.rst:767 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:769 +#: ../../whatsnew/3.10.rst:771 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:774 +#: ../../whatsnew/3.10.rst:776 msgid "PEP 613: TypeAlias" msgstr "" -#: ../../whatsnew/3.10.rst:776 +#: ../../whatsnew/3.10.rst:778 msgid "" ":pep:`484` introduced the concept of type aliases, only requiring them to be " "top-level unannotated assignments. This simplicity sometimes made it " @@ -805,25 +805,25 @@ msgid "" "involved. Compare::" msgstr "" -#: ../../whatsnew/3.10.rst:784 +#: ../../whatsnew/3.10.rst:786 msgid "" "Now the :mod:`typing` module has a special value :data:`TypeAlias` which " "lets you declare type aliases more explicitly::" msgstr "" -#: ../../whatsnew/3.10.rst:790 +#: ../../whatsnew/3.10.rst:792 msgid "See :pep:`613` for more details." msgstr "より詳しくは、 :pep:`613` をご覧ください。" -#: ../../whatsnew/3.10.rst:792 +#: ../../whatsnew/3.10.rst:794 msgid "(Contributed by Mikhail Golubev in :issue:`41923`.)" msgstr "" -#: ../../whatsnew/3.10.rst:795 +#: ../../whatsnew/3.10.rst:797 msgid "PEP 647: User-Defined Type Guards" msgstr "" -#: ../../whatsnew/3.10.rst:797 +#: ../../whatsnew/3.10.rst:799 msgid "" ":data:`TypeGuard` has been added to the :mod:`typing` module to annotate " "type guard functions and improve information provided to static type " @@ -831,24 +831,24 @@ msgid "" "`TypeGuard`\\ 's documentation, and :pep:`647`." msgstr "" -#: ../../whatsnew/3.10.rst:802 +#: ../../whatsnew/3.10.rst:804 msgid "" "(Contributed by Ken Jin and Guido van Rossum in :issue:`43766`. PEP written " "by Eric Traut.)" msgstr "" -#: ../../whatsnew/3.10.rst:806 +#: ../../whatsnew/3.10.rst:808 msgid "Other Language Changes" msgstr "その他の言語変更" -#: ../../whatsnew/3.10.rst:808 +#: ../../whatsnew/3.10.rst:810 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:812 +#: ../../whatsnew/3.10.rst:814 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." @@ -856,13 +856,13 @@ msgid "" "Dennis Sweeney in :issue:`40890`.)" msgstr "" -#: ../../whatsnew/3.10.rst:817 +#: ../../whatsnew/3.10.rst:819 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:820 +#: ../../whatsnew/3.10.rst:822 msgid "" "Builtin and extension functions that take integer arguments no longer " "accept :class:`~decimal.Decimal`\\ s, :class:`~fractions.Fraction`\\ s and " @@ -871,20 +871,20 @@ msgid "" "__index__` method). (Contributed by Serhiy Storchaka in :issue:`37999`.)" msgstr "" -#: ../../whatsnew/3.10.rst:827 +#: ../../whatsnew/3.10.rst:829 msgid "" "If :func:`object.__ipow__` returns :const:`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:831 +#: ../../whatsnew/3.10.rst:833 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:834 +#: ../../whatsnew/3.10.rst:836 msgid "" "Functions have a new ``__builtins__`` attribute which is used to look for " "builtin symbols when a function is executed, instead of looking into " @@ -893,7 +893,7 @@ msgid "" "builtins. (Contributed by Mark Shannon in :issue:`42990`.)" msgstr "" -#: ../../whatsnew/3.10.rst:840 +#: ../../whatsnew/3.10.rst:842 msgid "" "Two new builtin functions -- :func:`aiter` and :func:`anext` have been added " "to provide asynchronous counterparts to :func:`iter` and :func:`next`, " @@ -901,7 +901,7 @@ msgid "" "in :issue:`31861`.)" msgstr "" -#: ../../whatsnew/3.10.rst:845 +#: ../../whatsnew/3.10.rst:847 msgid "" "Static methods (:func:`@staticmethod `) and class methods (:" "func:`@classmethod `) now inherit the method attributes " @@ -911,7 +911,7 @@ msgid "" "Stinner in :issue:`43682`.)" msgstr "" -#: ../../whatsnew/3.10.rst:852 +#: ../../whatsnew/3.10.rst:854 msgid "" "Annotations for complex targets (everything beside ``simple name`` targets " "defined by :pep:`526`) no longer cause any runtime effects with ``from " @@ -919,7 +919,7 @@ msgid "" "`42737`.)" msgstr "" -#: ../../whatsnew/3.10.rst:856 +#: ../../whatsnew/3.10.rst:858 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 " @@ -928,7 +928,7 @@ msgid "" "howto`. (Contributed by Larry Hastings in :issue:`43901`.)" msgstr "" -#: ../../whatsnew/3.10.rst:863 +#: ../../whatsnew/3.10.rst:865 msgid "" "Annotations consist of ``yield``, ``yield from``, ``await`` or named " "expressions are now forbidden under ``from __future__ import annotations`` " @@ -936,7 +936,7 @@ msgid "" "`42725`.)" msgstr "" -#: ../../whatsnew/3.10.rst:868 +#: ../../whatsnew/3.10.rst:870 msgid "" "Usage of unbound variables, ``super()`` and other expressions that might " "alter the processing of symbol table as annotations are now rendered " @@ -944,7 +944,7 @@ msgid "" "Batuhan Taskaya in :issue:`42725`.)" msgstr "" -#: ../../whatsnew/3.10.rst:873 +#: ../../whatsnew/3.10.rst:875 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 " @@ -954,121 +954,121 @@ msgid "" "Raymond Hettinger in :issue:`43475`.)" msgstr "" -#: ../../whatsnew/3.10.rst:880 +#: ../../whatsnew/3.10.rst:882 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:883 +#: ../../whatsnew/3.10.rst:885 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:888 +#: ../../whatsnew/3.10.rst:890 msgid "New Modules" msgstr "新たなモジュール" -#: ../../whatsnew/3.10.rst:890 +#: ../../whatsnew/3.10.rst:892 msgid "None." msgstr "" -#: ../../whatsnew/3.10.rst:894 +#: ../../whatsnew/3.10.rst:896 msgid "Improved Modules" msgstr "改良されたモジュール" -#: ../../whatsnew/3.10.rst:897 +#: ../../whatsnew/3.10.rst:899 msgid "asyncio" msgstr "asyncio" -#: ../../whatsnew/3.10.rst:899 +#: ../../whatsnew/3.10.rst:901 msgid "" "Add missing :meth:`~asyncio.events.AbstractEventLoop." "connect_accepted_socket` method. (Contributed by Alex Grönholm in :issue:" "`41332`.)" msgstr "" -#: ../../whatsnew/3.10.rst:904 +#: ../../whatsnew/3.10.rst:906 msgid "argparse" msgstr "argparse" -#: ../../whatsnew/3.10.rst:906 +#: ../../whatsnew/3.10.rst:908 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:910 +#: ../../whatsnew/3.10.rst:912 msgid "array" msgstr "array" -#: ../../whatsnew/3.10.rst:912 +#: ../../whatsnew/3.10.rst:914 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:917 +#: ../../whatsnew/3.10.rst:919 msgid "asynchat, asyncore, smtpd" msgstr "" -#: ../../whatsnew/3.10.rst:918 +#: ../../whatsnew/3.10.rst:920 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:923 +#: ../../whatsnew/3.10.rst:925 msgid "base64" msgstr "base64" -#: ../../whatsnew/3.10.rst:925 +#: ../../whatsnew/3.10.rst:927 msgid "" "Add :func:`base64.b32hexencode` and :func:`base64.b32hexdecode` to support " "the Base32 Encoding with Extended Hex Alphabet." msgstr "" -#: ../../whatsnew/3.10.rst:929 +#: ../../whatsnew/3.10.rst:931 msgid "bdb" msgstr "" -#: ../../whatsnew/3.10.rst:931 +#: ../../whatsnew/3.10.rst:933 msgid "" "Add :meth:`~bdb.Breakpoint.clearBreakpoints` to reset all set breakpoints. " "(Contributed by Irit Katriel in :issue:`24160`.)" msgstr "" -#: ../../whatsnew/3.10.rst:935 +#: ../../whatsnew/3.10.rst:937 msgid "bisect" msgstr "" -#: ../../whatsnew/3.10.rst:937 +#: ../../whatsnew/3.10.rst:939 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:941 +#: ../../whatsnew/3.10.rst:943 msgid "codecs" msgstr "codecs" -#: ../../whatsnew/3.10.rst:943 +#: ../../whatsnew/3.10.rst:945 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:947 +#: ../../whatsnew/3.10.rst:949 msgid "collections.abc" msgstr "collections.abc" -#: ../../whatsnew/3.10.rst:949 +#: ../../whatsnew/3.10.rst:951 msgid "" "The ``__args__`` of the :ref:`parameterized generic ` " "for :class:`collections.abc.Callable` are now consistent with :data:`typing." @@ -1084,34 +1084,34 @@ msgid "" "`42195`.)" msgstr "" -#: ../../whatsnew/3.10.rst:962 +#: ../../whatsnew/3.10.rst:964 msgid "contextlib" msgstr "contextlib" -#: ../../whatsnew/3.10.rst:964 +#: ../../whatsnew/3.10.rst:966 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:968 +#: ../../whatsnew/3.10.rst:970 msgid "" "Add asynchronous context manager support to :func:`contextlib.nullcontext`. " "(Contributed by Tom Gringauz in :issue:`41543`.)" msgstr "" -#: ../../whatsnew/3.10.rst:971 +#: ../../whatsnew/3.10.rst:973 msgid "" "Add :class:`AsyncContextDecorator`, for supporting usage of async context " "managers as decorators." msgstr "" -#: ../../whatsnew/3.10.rst:975 +#: ../../whatsnew/3.10.rst:977 msgid "curses" msgstr "curses" -#: ../../whatsnew/3.10.rst:977 +#: ../../whatsnew/3.10.rst:979 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." @@ -1121,53 +1121,53 @@ msgid "" "Kintscher and Hans Petter Jansson in :issue:`36982`.)" msgstr "" -#: ../../whatsnew/3.10.rst:984 +#: ../../whatsnew/3.10.rst:986 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:989 +#: ../../whatsnew/3.10.rst:991 msgid "dataclasses" msgstr "データクラス" -#: ../../whatsnew/3.10.rst:992 +#: ../../whatsnew/3.10.rst:994 msgid "__slots__" msgstr "__slots__" -#: ../../whatsnew/3.10.rst:994 +#: ../../whatsnew/3.10.rst:996 msgid "" "Added ``slots`` parameter in :func:`dataclasses.dataclass` decorator. " "(Contributed by Yurii Karabas in :issue:`42269`)" msgstr "" -#: ../../whatsnew/3.10.rst:998 +#: ../../whatsnew/3.10.rst:1000 msgid "Keyword-only fields" msgstr "" -#: ../../whatsnew/3.10.rst:1000 +#: ../../whatsnew/3.10.rst:1002 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:1004 +#: ../../whatsnew/3.10.rst:1006 msgid "You can say that every field is keyword-only:" msgstr "" -#: ../../whatsnew/3.10.rst:1015 +#: ../../whatsnew/3.10.rst:1017 msgid "" "Both ``name`` and ``birthday`` are keyword-only parameters to the generated " "__init__ method." msgstr "" -#: ../../whatsnew/3.10.rst:1018 +#: ../../whatsnew/3.10.rst:1020 msgid "You can specify keyword-only on a per-field basis:" msgstr "" -#: ../../whatsnew/3.10.rst:1029 +#: ../../whatsnew/3.10.rst:1031 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 " @@ -1175,23 +1175,23 @@ msgid "" "the full dataclasses documentation for details." msgstr "" -#: ../../whatsnew/3.10.rst:1034 +#: ../../whatsnew/3.10.rst:1036 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:1049 +#: ../../whatsnew/3.10.rst:1051 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:1056 +#: ../../whatsnew/3.10.rst:1058 msgid "distutils" msgstr "distutils" -#: ../../whatsnew/3.10.rst:1058 +#: ../../whatsnew/3.10.rst:1060 msgid "" "The entire ``distutils`` package is deprecated, to be removed in Python " "3.12. Its functionality for specifying package builds has already been " @@ -1204,39 +1204,39 @@ msgid "" "`632` for discussion." msgstr "" -#: ../../whatsnew/3.10.rst:1068 +#: ../../whatsnew/3.10.rst:1070 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:1074 +#: ../../whatsnew/3.10.rst:1076 msgid "doctest" msgstr "doctest" -#: ../../whatsnew/3.10.rst:1076 ../../whatsnew/3.10.rst:1211 -#: ../../whatsnew/3.10.rst:1238 ../../whatsnew/3.10.rst:1337 +#: ../../whatsnew/3.10.rst:1078 ../../whatsnew/3.10.rst:1213 +#: ../../whatsnew/3.10.rst:1240 ../../whatsnew/3.10.rst:1339 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:1080 +#: ../../whatsnew/3.10.rst:1082 msgid "encodings" msgstr "エンコーディング" -#: ../../whatsnew/3.10.rst:1082 +#: ../../whatsnew/3.10.rst:1084 msgid "" ":func:`encodings.normalize_encoding` now ignores non-ASCII characters. " "(Contributed by Hai Shi in :issue:`39337`.)" msgstr "" -#: ../../whatsnew/3.10.rst:1086 +#: ../../whatsnew/3.10.rst:1088 msgid "enum" msgstr "enum" -#: ../../whatsnew/3.10.rst:1088 +#: ../../whatsnew/3.10.rst:1090 msgid "" ":class:`Enum` :func:`__repr__` now returns ``enum_name.member_name`` and :" "func:`__str__` now returns ``member_name``. Stdlib enums available as " @@ -1244,106 +1244,106 @@ msgid "" "(Contributed by Ethan Furman in :issue:`40066`.)" msgstr "" -#: ../../whatsnew/3.10.rst:1093 +#: ../../whatsnew/3.10.rst:1095 msgid "" "Add :class:`enum.StrEnum` for enums where all members are strings. " "(Contributed by Ethan Furman in :issue:`41816`.)" msgstr "" -#: ../../whatsnew/3.10.rst:1097 +#: ../../whatsnew/3.10.rst:1099 msgid "fileinput" msgstr "fileinput" -#: ../../whatsnew/3.10.rst:1099 +#: ../../whatsnew/3.10.rst:1101 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:1103 +#: ../../whatsnew/3.10.rst:1105 msgid "" ":func:`fileinput.hook_compressed` now returns :class:`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:1108 +#: ../../whatsnew/3.10.rst:1110 msgid "faulthandler" msgstr "faulthandler" -#: ../../whatsnew/3.10.rst:1110 +#: ../../whatsnew/3.10.rst:1112 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:1115 +#: ../../whatsnew/3.10.rst:1117 msgid "gc" msgstr "gc" -#: ../../whatsnew/3.10.rst:1117 +#: ../../whatsnew/3.10.rst:1119 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:1121 +#: ../../whatsnew/3.10.rst:1123 msgid "glob" msgstr "glob" -#: ../../whatsnew/3.10.rst:1123 +#: ../../whatsnew/3.10.rst:1125 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:1128 +#: ../../whatsnew/3.10.rst:1130 msgid "hashlib" msgstr "hashlib" -#: ../../whatsnew/3.10.rst:1130 +#: ../../whatsnew/3.10.rst:1132 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:1133 +#: ../../whatsnew/3.10.rst:1135 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:1136 +#: ../../whatsnew/3.10.rst:1138 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:1142 +#: ../../whatsnew/3.10.rst:1144 msgid "hmac" msgstr "hmac" -#: ../../whatsnew/3.10.rst:1144 +#: ../../whatsnew/3.10.rst:1146 msgid "" "The hmac module now uses OpenSSL's HMAC implementation internally. " "(Contributed by Christian Heimes in :issue:`40645`.)" msgstr "" -#: ../../whatsnew/3.10.rst:1148 +#: ../../whatsnew/3.10.rst:1150 msgid "IDLE and idlelib" msgstr "IDLE と idelelib" -#: ../../whatsnew/3.10.rst:1150 +#: ../../whatsnew/3.10.rst:1152 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:1154 +#: ../../whatsnew/3.10.rst:1156 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 " @@ -1354,11 +1354,11 @@ msgid "" "`33962`.)" msgstr "" -#: ../../whatsnew/3.10.rst:1162 +#: ../../whatsnew/3.10.rst:1164 msgid "The changes above were backported to a 3.9 maintenance release." msgstr "" -#: ../../whatsnew/3.10.rst:1164 +#: ../../whatsnew/3.10.rst:1166 msgid "" "Add a Shell sidebar. Move the primary prompt ('>>>') to the sidebar. Add " "secondary prompts ('...') to the sidebar. Left click and optional drag " @@ -1369,7 +1369,7 @@ msgid "" "text. (Contributed by Tal Einat in :issue:`37903`.)" msgstr "" -#: ../../whatsnew/3.10.rst:1173 +#: ../../whatsnew/3.10.rst:1175 msgid "" "Use spaces instead of tabs to indent interactive code. This makes " "interactive code entries 'look right'. Making this feasible was a major " @@ -1377,7 +1377,7 @@ msgid "" "in :issue:`37892`.)" msgstr "" -#: ../../whatsnew/3.10.rst:1178 +#: ../../whatsnew/3.10.rst:1180 msgid "" "Highlight the new :ref:`soft keywords ` :keyword:`match`, :" "keyword:`case `, and :keyword:`_ ` in pattern-" @@ -1386,33 +1386,33 @@ msgid "" "(Contributed by Tal Einat in :issue:`44010`.)" msgstr "" -#: ../../whatsnew/3.10.rst:1184 +#: ../../whatsnew/3.10.rst:1186 msgid "New in 3.10 maintenance releases." msgstr "" -#: ../../whatsnew/3.10.rst:1186 +#: ../../whatsnew/3.10.rst:1188 msgid "" "Apply syntax highlighting to ``.pyi`` files. (Contributed by Alex Waygood " "and Terry Jan Reedy in :issue:`45447`.)" msgstr "" -#: ../../whatsnew/3.10.rst:1189 +#: ../../whatsnew/3.10.rst:1191 msgid "" "Include prompts when saving Shell with inputs and outputs. (Contributed by " "Terry Jan Reedy in :gh:`95191`.)" msgstr "" -#: ../../whatsnew/3.10.rst:1193 +#: ../../whatsnew/3.10.rst:1195 msgid "importlib.metadata" msgstr "" -#: ../../whatsnew/3.10.rst:1195 +#: ../../whatsnew/3.10.rst:1197 msgid "" "Feature parity with ``importlib_metadata`` 4.6 (`history `_)." msgstr "" -#: ../../whatsnew/3.10.rst:1198 +#: ../../whatsnew/3.10.rst:1200 msgid "" ":ref:`importlib.metadata entry points ` now provide a nicer " "experience for selecting entry points by group and name through a new :class:" @@ -1420,18 +1420,18 @@ msgid "" "docs for more info on the deprecation and usage." msgstr "" -#: ../../whatsnew/3.10.rst:1204 +#: ../../whatsnew/3.10.rst:1206 msgid "" "Added :func:`importlib.metadata.packages_distributions` for resolving top-" "level Python modules and packages to their :class:`importlib.metadata." "Distribution`." msgstr "" -#: ../../whatsnew/3.10.rst:1209 +#: ../../whatsnew/3.10.rst:1211 msgid "inspect" msgstr "inspect" -#: ../../whatsnew/3.10.rst:1214 +#: ../../whatsnew/3.10.rst:1216 msgid "" "Add :func:`inspect.get_annotations`, which safely computes the annotations " "defined on an object. It works around the quirks of accessing the " @@ -1449,38 +1449,38 @@ msgid "" "`43817`.)" msgstr "" -#: ../../whatsnew/3.10.rst:1230 +#: ../../whatsnew/3.10.rst:1232 msgid "itertools" msgstr "itertools" -#: ../../whatsnew/3.10.rst:1232 +#: ../../whatsnew/3.10.rst:1234 msgid "" "Add :func:`itertools.pairwise()`. (Contributed by Raymond Hettinger in :" "issue:`38200`.)" msgstr "" -#: ../../whatsnew/3.10.rst:1236 +#: ../../whatsnew/3.10.rst:1238 msgid "linecache" msgstr "linecache" -#: ../../whatsnew/3.10.rst:1242 +#: ../../whatsnew/3.10.rst:1244 msgid "os" msgstr "os" -#: ../../whatsnew/3.10.rst:1244 +#: ../../whatsnew/3.10.rst:1246 msgid "" "Add :func:`os.cpu_count()` support for VxWorks RTOS. (Contributed by Peixing " "Xin in :issue:`41440`.)" msgstr "" -#: ../../whatsnew/3.10.rst:1247 +#: ../../whatsnew/3.10.rst:1249 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:1251 +#: ../../whatsnew/3.10.rst:1253 msgid "" "Add :func:`os.splice()` that allows to move data between two file " "descriptors without copying between kernel address space and user address " @@ -1488,41 +1488,41 @@ msgid "" "by Pablo Galindo in :issue:`41625`.)" msgstr "" -#: ../../whatsnew/3.10.rst:1256 +#: ../../whatsnew/3.10.rst:1258 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:1261 +#: ../../whatsnew/3.10.rst:1263 msgid "os.path" msgstr "os.path" -#: ../../whatsnew/3.10.rst:1263 +#: ../../whatsnew/3.10.rst:1265 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:1269 +#: ../../whatsnew/3.10.rst:1271 msgid "pathlib" msgstr "pathlib" -#: ../../whatsnew/3.10.rst:1271 +#: ../../whatsnew/3.10.rst:1273 msgid "" "Add slice support to :attr:`PurePath.parents `. " "(Contributed by Joshua Cannon in :issue:`35498`.)" msgstr "" -#: ../../whatsnew/3.10.rst:1274 +#: ../../whatsnew/3.10.rst:1276 msgid "" "Add negative indexing support to :attr:`PurePath.parents `. (Contributed by Yaroslav Pankovych in :issue:`21041`.)" msgstr "" -#: ../../whatsnew/3.10.rst:1278 +#: ../../whatsnew/3.10.rst:1280 msgid "" "Add :meth:`Path.hardlink_to ` method that " "supersedes :meth:`~pathlib.Path.link_to`. The new method has the same " @@ -1530,7 +1530,7 @@ msgid "" "Gale in :issue:`39950`.)" msgstr "" -#: ../../whatsnew/3.10.rst:1283 +#: ../../whatsnew/3.10.rst:1285 msgid "" ":meth:`pathlib.Path.stat` and :meth:`~pathlib.Path.chmod` now accept a " "*follow_symlinks* keyword-only argument for consistency with corresponding " @@ -1538,11 +1538,11 @@ msgid "" "`39906`.)" msgstr "" -#: ../../whatsnew/3.10.rst:1289 +#: ../../whatsnew/3.10.rst:1291 msgid "platform" msgstr "プラットフォーム" -#: ../../whatsnew/3.10.rst:1291 +#: ../../whatsnew/3.10.rst:1293 msgid "" "Add :func:`platform.freedesktop_os_release()` to retrieve operation system " "identification from `freedesktop.org os-release ` section for " "more information." msgstr "" -#: ../../whatsnew/3.10.rst:1629 +#: ../../whatsnew/3.10.rst:1631 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:1633 +#: ../../whatsnew/3.10.rst:1635 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:" @@ -2057,21 +2057,21 @@ msgid "" "(Contributed by Brett Cannon in :issue:`26131`.)" msgstr "" -#: ../../whatsnew/3.10.rst:1639 +#: ../../whatsnew/3.10.rst:1641 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:1643 +#: ../../whatsnew/3.10.rst:1645 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:1648 +#: ../../whatsnew/3.10.rst:1650 msgid "" "The use of :meth:`!importlib.abc.MetaPathFinder.find_module` and :meth:`!" "importlib.abc.PathEntryFinder.find_module` by the import system now trigger " @@ -2081,7 +2081,7 @@ msgid "" "porting. (Contributed by Brett Cannon in :issue:`42134`.)" msgstr "" -#: ../../whatsnew/3.10.rst:1657 +#: ../../whatsnew/3.10.rst:1659 msgid "" "The use of :meth:`!importlib.abc.PathEntryFinder.find_loader` by the import " "system now triggers an :exc:`ImportWarning` as :meth:`importlib.abc." @@ -2090,7 +2090,7 @@ msgid "" "`43672`.)" msgstr "" -#: ../../whatsnew/3.10.rst:1663 +#: ../../whatsnew/3.10.rst:1665 msgid "" "The various implementations of :meth:`!importlib.abc.MetaPathFinder." "find_module` ( :meth:`!importlib.machinery.BuiltinImporter.find_module`, :" @@ -2105,7 +2105,7 @@ msgid "" "Python 3.4). (Contributed by Brett Cannon in :issue:`42135`.)" msgstr "" -#: ../../whatsnew/3.10.rst:1678 +#: ../../whatsnew/3.10.rst:1680 msgid "" ":class:`!importlib.abc.Finder` is deprecated (including its sole method, :" "meth:`!find_module`). Both :class:`importlib.abc.MetaPathFinder` and :class:" @@ -2114,7 +2114,7 @@ msgid "" "(Contributed by Brett Cannon in :issue:`42135`.)" msgstr "" -#: ../../whatsnew/3.10.rst:1685 +#: ../../whatsnew/3.10.rst:1687 msgid "" "The deprecations of :mod:`!imp`, :func:`!importlib.find_loader`, :func:`!" "importlib.util.set_package_wrapper`, :func:`!importlib.util." @@ -2125,7 +2125,7 @@ msgid "" "Brett Cannon in :issue:`43720`.)" msgstr "" -#: ../../whatsnew/3.10.rst:1695 +#: ../../whatsnew/3.10.rst:1697 msgid "" "The import system now uses the ``__spec__`` attribute on modules before " "falling back on :meth:`!module_repr` for a module's ``__repr__()`` method. " @@ -2133,7 +2133,7 @@ msgid "" "(Contributed by Brett Cannon in :issue:`42137`.)" msgstr "" -#: ../../whatsnew/3.10.rst:1701 +#: ../../whatsnew/3.10.rst:1703 msgid "" ":meth:`!importlib.abc.Loader.module_repr`, :meth:`!importlib.machinery." "FrozenLoader.module_repr`, and :meth:`!importlib.machinery.BuiltinLoader." @@ -2141,7 +2141,7 @@ msgid "" "(Contributed by Brett Cannon in :issue:`42136`.)" msgstr "" -#: ../../whatsnew/3.10.rst:1707 +#: ../../whatsnew/3.10.rst:1709 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, " @@ -2149,7 +2149,7 @@ msgid "" "issue:`42264`.)" msgstr "" -#: ../../whatsnew/3.10.rst:1712 +#: ../../whatsnew/3.10.rst:1714 msgid "" "The undocumented built-in function ``sqlite3.enable_shared_cache`` is now " "deprecated, scheduled for removal in Python 3.12. Its use is strongly " @@ -2159,67 +2159,67 @@ msgid "" "query parameter. (Contributed by Erlend E. Aasland in :issue:`24464`.)" msgstr "" -#: ../../whatsnew/3.10.rst:1720 +#: ../../whatsnew/3.10.rst:1722 msgid "The following ``threading`` methods are now deprecated:" msgstr "" -#: ../../whatsnew/3.10.rst:1722 +#: ../../whatsnew/3.10.rst:1724 msgid "``threading.currentThread`` => :func:`threading.current_thread`" msgstr "" -#: ../../whatsnew/3.10.rst:1724 +#: ../../whatsnew/3.10.rst:1726 msgid "``threading.activeCount`` => :func:`threading.active_count`" msgstr "" -#: ../../whatsnew/3.10.rst:1726 +#: ../../whatsnew/3.10.rst:1728 msgid "" "``threading.Condition.notifyAll`` => :meth:`threading.Condition.notify_all`" msgstr "" -#: ../../whatsnew/3.10.rst:1729 +#: ../../whatsnew/3.10.rst:1731 msgid "``threading.Event.isSet`` => :meth:`threading.Event.is_set`" msgstr "" -#: ../../whatsnew/3.10.rst:1731 +#: ../../whatsnew/3.10.rst:1733 msgid "``threading.Thread.setName`` => :attr:`threading.Thread.name`" msgstr "" -#: ../../whatsnew/3.10.rst:1733 +#: ../../whatsnew/3.10.rst:1735 msgid "``threading.thread.getName`` => :attr:`threading.Thread.name`" msgstr "" -#: ../../whatsnew/3.10.rst:1735 +#: ../../whatsnew/3.10.rst:1737 msgid "``threading.Thread.isDaemon`` => :attr:`threading.Thread.daemon`" msgstr "" -#: ../../whatsnew/3.10.rst:1737 +#: ../../whatsnew/3.10.rst:1739 msgid "``threading.Thread.setDaemon`` => :attr:`threading.Thread.daemon`" msgstr "" -#: ../../whatsnew/3.10.rst:1739 +#: ../../whatsnew/3.10.rst:1741 msgid "(Contributed by Jelle Zijlstra in :gh:`87889`.)" msgstr "" -#: ../../whatsnew/3.10.rst:1741 +#: ../../whatsnew/3.10.rst:1743 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:1745 +#: ../../whatsnew/3.10.rst:1747 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:1748 +#: ../../whatsnew/3.10.rst:1750 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:1751 +#: ../../whatsnew/3.10.rst:1753 msgid "" ":data:`~ssl.OP_NO_SSLv2`, :data:`~ssl.OP_NO_SSLv3`, :data:`~ssl." "OP_NO_TLSv1`, :data:`~ssl.OP_NO_TLSv1_1`, :data:`~ssl.OP_NO_TLSv1_2`, and :" @@ -2227,7 +2227,7 @@ msgid "" "minimum_version` and :attr:`sslSSLContext.maximum_version`." msgstr "" -#: ../../whatsnew/3.10.rst:1757 +#: ../../whatsnew/3.10.rst:1759 msgid "" ":data:`~ssl.PROTOCOL_SSLv2`, :data:`~ssl.PROTOCOL_SSLv3`, :data:`~ssl." "PROTOCOL_SSLv23`, :data:`~ssl.PROTOCOL_TLSv1`, :data:`~ssl." @@ -2236,26 +2236,26 @@ msgid "" "and :const:`~ssl.PROTOCOL_TLS_SERVER`" msgstr "" -#: ../../whatsnew/3.10.rst:1763 +#: ../../whatsnew/3.10.rst:1765 msgid "" ":func:`~ssl.wrap_socket` is replaced by :meth:`ssl.SSLContext.wrap_socket`" msgstr "" -#: ../../whatsnew/3.10.rst:1765 +#: ../../whatsnew/3.10.rst:1767 msgid ":func:`~ssl.match_hostname`" msgstr "" -#: ../../whatsnew/3.10.rst:1767 +#: ../../whatsnew/3.10.rst:1769 msgid ":func:`~ssl.RAND_pseudo_bytes`, :func:`~ssl.RAND_egd`" msgstr "" -#: ../../whatsnew/3.10.rst:1769 +#: ../../whatsnew/3.10.rst:1771 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:1772 +#: ../../whatsnew/3.10.rst:1774 msgid "" "The threading debug (:envvar:`PYTHONTHREADDEBUG` environment variable) is " "deprecated in Python 3.10 and will be removed in Python 3.12. This feature " @@ -2263,7 +2263,7 @@ msgid "" "Victor Stinner in :issue:`44584`.)" msgstr "" -#: ../../whatsnew/3.10.rst:1777 +#: ../../whatsnew/3.10.rst:1779 msgid "" "Importing from the ``typing.io`` and ``typing.re`` submodules will now emit :" "exc:`DeprecationWarning`. These submodules will be removed in a future " @@ -2272,11 +2272,11 @@ msgid "" "Rittau in :issue:`38291`.)" msgstr "" -#: ../../whatsnew/3.10.rst:1786 ../../whatsnew/3.10.rst:2209 +#: ../../whatsnew/3.10.rst:1788 ../../whatsnew/3.10.rst:2211 msgid "Removed" msgstr "削除" -#: ../../whatsnew/3.10.rst:1788 +#: ../../whatsnew/3.10.rst:1790 msgid "" "Removed special methods ``__int__``, ``__float__``, ``__floordiv__``, " "``__mod__``, ``__divmod__``, ``__rfloordiv__``, ``__rmod__`` and " @@ -2284,7 +2284,7 @@ msgid "" "`TypeError`. (Contributed by Serhiy Storchaka in :issue:`41974`.)" msgstr "" -#: ../../whatsnew/3.10.rst:1794 +#: ../../whatsnew/3.10.rst:1796 msgid "" "The ``ParserBase.error()`` method from the private and undocumented " "``_markupbase`` module has been removed. :class:`html.parser.HTMLParser` is " @@ -2293,7 +2293,7 @@ msgid "" "`31844`.)" msgstr "" -#: ../../whatsnew/3.10.rst:1800 +#: ../../whatsnew/3.10.rst:1802 msgid "" "Removed the ``unicodedata.ucnhash_CAPI`` attribute which was an internal " "PyCapsule object. The related private ``_PyUnicode_Name_CAPI`` structure was " @@ -2301,7 +2301,7 @@ msgid "" "`42157`.)" msgstr "" -#: ../../whatsnew/3.10.rst:1805 +#: ../../whatsnew/3.10.rst:1807 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 " @@ -2309,7 +2309,7 @@ msgid "" "``graminit.h`` and ``grammar.h``." msgstr "" -#: ../../whatsnew/3.10.rst:1810 +#: ../../whatsnew/3.10.rst:1812 msgid "" "Removed the Public C API functions ``PyParser_SimpleParseStringFlags``, " "``PyParser_SimpleParseStringFlagsFilename``, " @@ -2317,7 +2317,7 @@ msgid "" "deprecated in 3.9 due to the switch to the new PEG parser." msgstr "" -#: ../../whatsnew/3.10.rst:1815 +#: ../../whatsnew/3.10.rst:1817 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 " @@ -2326,61 +2326,61 @@ msgid "" "their code. (Contributed by Donghee Na and Terry J. Reedy in :issue:`42299`.)" msgstr "" -#: ../../whatsnew/3.10.rst:1822 +#: ../../whatsnew/3.10.rst:1824 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:1826 +#: ../../whatsnew/3.10.rst:1828 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:1830 +#: ../../whatsnew/3.10.rst:1832 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:1834 +#: ../../whatsnew/3.10.rst:1836 msgid "This simplifies the high-level API." msgstr "" -#: ../../whatsnew/3.10.rst:1835 +#: ../../whatsnew/3.10.rst:1837 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:1838 +#: ../../whatsnew/3.10.rst:1840 msgid "" "Event loop passing is error-prone especially when dealing with loops running " "in different threads." msgstr "" -#: ../../whatsnew/3.10.rst:1841 +#: ../../whatsnew/3.10.rst:1843 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:1844 ../../whatsnew/3.10.rst:1916 +#: ../../whatsnew/3.10.rst:1846 ../../whatsnew/3.10.rst:1918 msgid "" "(Contributed by Yurii Karabas, Andrew Svetlov, Yury Selivanov and Kyle " "Stanley in :issue:`42392`.)" msgstr "" -#: ../../whatsnew/3.10.rst:1849 ../../whatsnew/3.10.rst:2136 +#: ../../whatsnew/3.10.rst:1851 ../../whatsnew/3.10.rst:2138 msgid "Porting to Python 3.10" msgstr "" -#: ../../whatsnew/3.10.rst:1851 +#: ../../whatsnew/3.10.rst:1853 msgid "" "This section lists previously described changes and other bugfixes that may " "require changes to your code." @@ -2388,11 +2388,11 @@ msgstr "" "このセクションでは前述の変更とバグフィックスにより必要となるかもしれないコー" "ドの変更を列挙します:" -#: ../../whatsnew/3.10.rst:1856 +#: ../../whatsnew/3.10.rst:1858 msgid "Changes in the Python syntax" msgstr "" -#: ../../whatsnew/3.10.rst:1858 +#: ../../whatsnew/3.10.rst:1860 msgid "" "Deprecation warning is now emitted when compiling previously valid syntax if " "the numeric literal is immediately followed by a keyword (like in ``0in " @@ -2402,11 +2402,11 @@ msgid "" "following keyword. (Contributed by Serhiy Storchaka in :issue:`43833`.)" msgstr "" -#: ../../whatsnew/3.10.rst:1869 +#: ../../whatsnew/3.10.rst:1871 msgid "Changes in the Python API" msgstr "Python API の変更" -#: ../../whatsnew/3.10.rst:1871 +#: ../../whatsnew/3.10.rst:1873 msgid "" "The *etype* parameters of the :func:`~traceback.format_exception`, :func:" "`~traceback.format_exception_only`, and :func:`~traceback.print_exception` " @@ -2414,7 +2414,7 @@ msgid "" "(Contributed by Zackery Spytz and Matthias Bussonnier in :issue:`26389`.)" msgstr "" -#: ../../whatsnew/3.10.rst:1877 +#: ../../whatsnew/3.10.rst:1879 msgid "" ":mod:`atexit`: At Python exit, if a callback registered with :func:`atexit." "register` fails, its exception is now logged. Previously, only some " @@ -2422,7 +2422,7 @@ msgid "" "(Contributed by Victor Stinner in :issue:`42639`.)" msgstr "" -#: ../../whatsnew/3.10.rst:1883 +#: ../../whatsnew/3.10.rst:1885 msgid "" ":class:`collections.abc.Callable` generic now flattens type parameters, " "similar to what :data:`typing.Callable` currently does. This means that " @@ -2435,7 +2435,7 @@ msgid "" "`42195`.)" msgstr "" -#: ../../whatsnew/3.10.rst:1893 +#: ../../whatsnew/3.10.rst:1895 msgid "" ":meth:`socket.htons` and :meth:`socket.ntohs` now raise :exc:`OverflowError` " "instead of :exc:`DeprecationWarning` if the given parameter will not fit in " @@ -2443,29 +2443,29 @@ msgid "" "`42393`.)" msgstr "" -#: ../../whatsnew/3.10.rst:1898 +#: ../../whatsnew/3.10.rst:1900 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:1902 +#: ../../whatsnew/3.10.rst:1904 msgid "A coroutine that currently looks like this::" msgstr "" -#: ../../whatsnew/3.10.rst:1907 +#: ../../whatsnew/3.10.rst:1909 msgid "Should be replaced with this::" msgstr "" -#: ../../whatsnew/3.10.rst:1912 +#: ../../whatsnew/3.10.rst:1914 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:1919 +#: ../../whatsnew/3.10.rst:1921 msgid "" "The :data:`types.FunctionType` constructor now inherits the current builtins " "if the *globals* dictionary has no ``\"__builtins__\"`` key, rather than " @@ -2476,11 +2476,11 @@ msgid "" "`42990`.)" msgstr "" -#: ../../whatsnew/3.10.rst:1928 +#: ../../whatsnew/3.10.rst:1930 msgid "Changes in the C API" msgstr "C API の変更" -#: ../../whatsnew/3.10.rst:1930 +#: ../../whatsnew/3.10.rst:1932 msgid "" "The C API functions ``PyParser_SimpleParseStringFlags``, " "``PyParser_SimpleParseStringFlagsFilename``, " @@ -2489,31 +2489,31 @@ msgid "" "PEG parser." msgstr "" -#: ../../whatsnew/3.10.rst:1936 +#: ../../whatsnew/3.10.rst:1938 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:1940 +#: ../../whatsnew/3.10.rst:1942 msgid "Specifically:" msgstr "" -#: ../../whatsnew/3.10.rst:1942 +#: ../../whatsnew/3.10.rst:1944 msgid "" "A call to ``PyParser_SimpleParseStringFlags`` followed by ``PyNode_Compile`` " "can be replaced by calling :c:func:`Py_CompileString`." msgstr "" -#: ../../whatsnew/3.10.rst:1945 +#: ../../whatsnew/3.10.rst:1947 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:1949 +#: ../../whatsnew/3.10.rst:1951 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` " @@ -2522,63 +2522,64 @@ msgid "" "(Declarations and error handling are omitted.) ::" msgstr "" -#: ../../whatsnew/3.10.rst:1962 +#: ../../whatsnew/3.10.rst:1964 msgid "" -"For ``FrameObject`` objects, the ``f_lasti`` member now represents a " -"wordcode offset instead of a simple offset into the bytecode string. This " -"means that this number needs to be multiplied by 2 to be used with APIs that " -"expect a byte offset instead (like :c:func:`PyCode_Addr2Line` for example). " -"Notice as well that the ``f_lasti`` member of ``FrameObject`` objects is not " -"considered stable: please use :c:func:`PyFrame_GetLineNumber` instead." +"For ``FrameObject`` objects, the :attr:`~frame.f_lasti` member now " +"represents a wordcode offset instead of a simple offset into the bytecode " +"string. This means that this number needs to be multiplied by 2 to be used " +"with APIs that expect a byte offset instead (like :c:func:`PyCode_Addr2Line` " +"for example). Notice as well that the :attr:`!f_lasti` member of " +"``FrameObject`` objects is not considered stable: please use :c:func:" +"`PyFrame_GetLineNumber` instead." msgstr "" -#: ../../whatsnew/3.10.rst:1970 +#: ../../whatsnew/3.10.rst:1972 msgid "CPython bytecode changes" msgstr "CPython バイトコードの変更" -#: ../../whatsnew/3.10.rst:1972 +#: ../../whatsnew/3.10.rst:1974 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:1977 +#: ../../whatsnew/3.10.rst:1979 msgid "Build Changes" msgstr "" -#: ../../whatsnew/3.10.rst:1979 +#: ../../whatsnew/3.10.rst:1981 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:1983 +#: ../../whatsnew/3.10.rst:1985 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:1987 +#: ../../whatsnew/3.10.rst:1989 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:1990 +#: ../../whatsnew/3.10.rst:1992 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:1993 +#: ../../whatsnew/3.10.rst:1995 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:1997 +#: ../../whatsnew/3.10.rst:1999 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 " @@ -2587,7 +2588,7 @@ msgid "" "packages." msgstr "" -#: ../../whatsnew/3.10.rst:2003 +#: ../../whatsnew/3.10.rst:2005 msgid "" "Some Linux distribution packaging policies recommend against bundling " "dependencies. For example, Fedora installs wheel packages in the ``/usr/" @@ -2595,22 +2596,22 @@ msgid "" "_bundled`` package." msgstr "" -#: ../../whatsnew/3.10.rst:2008 +#: ../../whatsnew/3.10.rst:2010 msgid "(Contributed by Victor Stinner in :issue:`42856`.)" msgstr "" -#: ../../whatsnew/3.10.rst:2010 +#: ../../whatsnew/3.10.rst:2012 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:2014 +#: ../../whatsnew/3.10.rst:2016 msgid "(Contributed by Victor Stinner in :issue:`43103`.)" msgstr "" -#: ../../whatsnew/3.10.rst:2016 +#: ../../whatsnew/3.10.rst:2018 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 " @@ -2619,7 +2620,7 @@ msgid "" "Stamatogiannakis in :issue:`42603`.)" msgstr "" -#: ../../whatsnew/3.10.rst:2022 +#: ../../whatsnew/3.10.rst:2024 msgid "" "Add :option:`--with-openssl-rpath` option to ``configure`` script. The " "option simplifies building Python with a custom OpenSSL installation, e.g. " @@ -2627,15 +2628,15 @@ msgid "" "(Contributed by Christian Heimes in :issue:`43466`.)" msgstr "" -#: ../../whatsnew/3.10.rst:2029 +#: ../../whatsnew/3.10.rst:2031 msgid "C API Changes" msgstr "C API の変更" -#: ../../whatsnew/3.10.rst:2032 +#: ../../whatsnew/3.10.rst:2034 msgid "PEP 652: Maintaining the Stable ABI" msgstr "" -#: ../../whatsnew/3.10.rst:2034 +#: ../../whatsnew/3.10.rst:2036 msgid "" "The Stable ABI (Application Binary Interface) for extension modules or " "embedding Python is now explicitly defined. :ref:`stable` describes C API " @@ -2643,25 +2644,25 @@ msgid "" "ABI." msgstr "" -#: ../../whatsnew/3.10.rst:2039 +#: ../../whatsnew/3.10.rst:2041 msgid "(Contributed by Petr Viktorin in :pep:`652` and :issue:`43795`.)" msgstr "" -#: ../../whatsnew/3.10.rst:2044 +#: ../../whatsnew/3.10.rst:2046 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:2048 +#: ../../whatsnew/3.10.rst:2050 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:2053 +#: ../../whatsnew/3.10.rst:2055 msgid "" "The :c:func:`PyDateTime_DATE_GET_TZINFO` and :c:func:" "`PyDateTime_TIME_GET_TZINFO` macros have been added for accessing the " @@ -2669,72 +2670,72 @@ msgid "" "time` objects. (Contributed by Zackery Spytz in :issue:`30155`.)" msgstr "" -#: ../../whatsnew/3.10.rst:2059 +#: ../../whatsnew/3.10.rst:2061 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:2063 +#: ../../whatsnew/3.10.rst:2065 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:2067 +#: ../../whatsnew/3.10.rst:2069 msgid "" "Add :c:func:`PyUnicode_AsUTF8AndSize` to the limited C API. (Contributed by " "Alex Gaynor in :issue:`41784`.)" msgstr "" -#: ../../whatsnew/3.10.rst:2070 +#: ../../whatsnew/3.10.rst:2072 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:2075 +#: ../../whatsnew/3.10.rst:2077 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:2079 +#: ../../whatsnew/3.10.rst:2081 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:2083 +#: ../../whatsnew/3.10.rst:2085 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:2087 +#: ../../whatsnew/3.10.rst:2089 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:2091 +#: ../../whatsnew/3.10.rst:2093 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:2095 +#: ../../whatsnew/3.10.rst:2097 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:2099 +#: ../../whatsnew/3.10.rst:2101 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, " @@ -2747,14 +2748,14 @@ msgid "" "`36465`)." msgstr "" -#: ../../whatsnew/3.10.rst:2109 +#: ../../whatsnew/3.10.rst:2111 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:2113 +#: ../../whatsnew/3.10.rst:2115 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:" @@ -2764,7 +2765,7 @@ msgid "" "`43753`.)" msgstr "" -#: ../../whatsnew/3.10.rst:2120 +#: ../../whatsnew/3.10.rst:2122 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 " @@ -2772,20 +2773,20 @@ msgid "" "collector from C code without having to import the :mod:`gc` module." msgstr "" -#: ../../whatsnew/3.10.rst:2127 +#: ../../whatsnew/3.10.rst:2129 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:2131 +#: ../../whatsnew/3.10.rst:2133 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:2138 +#: ../../whatsnew/3.10.rst:2140 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 ``#``: " @@ -2794,7 +2795,7 @@ msgid "" "`40943`.)" msgstr "" -#: ../../whatsnew/3.10.rst:2144 +#: ../../whatsnew/3.10.rst:2146 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, " @@ -2802,18 +2803,18 @@ msgid "" "For backward compatibility, this macro can be used::" msgstr "" -#: ../../whatsnew/3.10.rst:2153 +#: ../../whatsnew/3.10.rst:2155 msgid "(Contributed by Victor Stinner in :issue:`39573`.)" msgstr "" -#: ../../whatsnew/3.10.rst:2155 +#: ../../whatsnew/3.10.rst:2157 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:2159 +#: ../../whatsnew/3.10.rst:2161 msgid "" "``PyUnicode_FromUnicode(NULL, size)`` and " "``PyUnicode_FromStringAndSize(NULL, size)`` raise ``DeprecationWarning`` " @@ -2821,14 +2822,14 @@ msgid "" "data. (Contributed by Inada Naoki in :issue:`36346`.)" msgstr "" -#: ../../whatsnew/3.10.rst:2164 +#: ../../whatsnew/3.10.rst:2166 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:2168 +#: ../../whatsnew/3.10.rst:2170 msgid "" ":c:func:`Py_GetPath`, :c:func:`Py_GetPrefix`, :c:func:`Py_GetExecPrefix`, :c:" "func:`Py_GetProgramFullPath`, :c:func:`Py_GetPythonHome` and :c:func:" @@ -2838,7 +2839,7 @@ msgid "" "Stinner in :issue:`42260`.)" msgstr "" -#: ../../whatsnew/3.10.rst:2175 +#: ../../whatsnew/3.10.rst:2177 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 " @@ -2848,7 +2849,7 @@ msgid "" "and Victor Stinner in :issue:`30459`.)" msgstr "" -#: ../../whatsnew/3.10.rst:2182 +#: ../../whatsnew/3.10.rst:2184 msgid "" "The non-limited API files ``odictobject.h``, ``parser_interface.h``, " "``picklebufobject.h``, ``pyarena.h``, ``pyctype.h``, ``pydebug.h``, ``pyfpe." @@ -2859,7 +2860,7 @@ msgid "" "issue:`35134`.)" msgstr "" -#: ../../whatsnew/3.10.rst:2190 +#: ../../whatsnew/3.10.rst:2192 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 " @@ -2868,85 +2869,85 @@ msgid "" "issue:`43908`.)" msgstr "" -#: ../../whatsnew/3.10.rst:2196 +#: ../../whatsnew/3.10.rst:2198 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:2203 +#: ../../whatsnew/3.10.rst:2205 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:2211 +#: ../../whatsnew/3.10.rst:2213 msgid "" "Removed ``Py_UNICODE_str*`` functions manipulating ``Py_UNICODE*`` strings. " "(Contributed by Inada Naoki in :issue:`41123`.)" msgstr "" -#: ../../whatsnew/3.10.rst:2214 +#: ../../whatsnew/3.10.rst:2216 msgid "" "``Py_UNICODE_strlen``: use :c:func:`PyUnicode_GetLength` or :c:macro:" "`PyUnicode_GET_LENGTH`" msgstr "" -#: ../../whatsnew/3.10.rst:2216 +#: ../../whatsnew/3.10.rst:2218 msgid "" "``Py_UNICODE_strcat``: use :c:func:`PyUnicode_CopyCharacters` or :c:func:" "`PyUnicode_FromFormat`" msgstr "" -#: ../../whatsnew/3.10.rst:2218 +#: ../../whatsnew/3.10.rst:2220 msgid "" "``Py_UNICODE_strcpy``, ``Py_UNICODE_strncpy``: use :c:func:" "`PyUnicode_CopyCharacters` or :c:func:`PyUnicode_Substring`" msgstr "" -#: ../../whatsnew/3.10.rst:2220 +#: ../../whatsnew/3.10.rst:2222 msgid "``Py_UNICODE_strcmp``: use :c:func:`PyUnicode_Compare`" msgstr "" -#: ../../whatsnew/3.10.rst:2221 +#: ../../whatsnew/3.10.rst:2223 msgid "``Py_UNICODE_strncmp``: use :c:func:`PyUnicode_Tailmatch`" msgstr "" -#: ../../whatsnew/3.10.rst:2222 +#: ../../whatsnew/3.10.rst:2224 msgid "" "``Py_UNICODE_strchr``, ``Py_UNICODE_strrchr``: use :c:func:" "`PyUnicode_FindChar`" msgstr "" -#: ../../whatsnew/3.10.rst:2225 +#: ../../whatsnew/3.10.rst:2227 msgid "" "Removed ``PyUnicode_GetMax()``. Please migrate to new (:pep:`393`) APIs. " "(Contributed by Inada Naoki in :issue:`41103`.)" msgstr "" -#: ../../whatsnew/3.10.rst:2228 +#: ../../whatsnew/3.10.rst:2230 msgid "" "Removed ``PyLong_FromUnicode()``. Please migrate to :c:func:" "`PyLong_FromUnicodeObject`. (Contributed by Inada Naoki in :issue:`41103`.)" msgstr "" -#: ../../whatsnew/3.10.rst:2231 +#: ../../whatsnew/3.10.rst:2233 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:2235 +#: ../../whatsnew/3.10.rst:2237 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:2239 +#: ../../whatsnew/3.10.rst:2241 msgid "" "Removed undocumented macros ``Py_ALLOW_RECURSION`` and " "``Py_END_ALLOW_RECURSION`` and the ``recursion_critical`` field of the :c:" @@ -2954,14 +2955,14 @@ msgid "" "issue:`41936`.)" msgstr "" -#: ../../whatsnew/3.10.rst:2244 +#: ../../whatsnew/3.10.rst:2246 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:2249 +#: ../../whatsnew/3.10.rst:2251 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 " @@ -2969,48 +2970,48 @@ msgid "" "Stinner in :issue:`43244`.)" msgstr "" -#: ../../whatsnew/3.10.rst:2254 +#: ../../whatsnew/3.10.rst:2256 msgid "Remove the ``symtable.h`` header file and the undocumented functions:" msgstr "" -#: ../../whatsnew/3.10.rst:2256 +#: ../../whatsnew/3.10.rst:2258 msgid "``PyST_GetScope()``" msgstr "" -#: ../../whatsnew/3.10.rst:2257 +#: ../../whatsnew/3.10.rst:2259 msgid "``PySymtable_Build()``" msgstr "" -#: ../../whatsnew/3.10.rst:2258 +#: ../../whatsnew/3.10.rst:2260 msgid "``PySymtable_BuildObject()``" msgstr "" -#: ../../whatsnew/3.10.rst:2259 +#: ../../whatsnew/3.10.rst:2261 msgid "``PySymtable_Free()``" msgstr "" -#: ../../whatsnew/3.10.rst:2260 +#: ../../whatsnew/3.10.rst:2262 msgid "``Py_SymtableString()``" msgstr "" -#: ../../whatsnew/3.10.rst:2261 +#: ../../whatsnew/3.10.rst:2263 msgid "``Py_SymtableStringObject()``" msgstr "" -#: ../../whatsnew/3.10.rst:2263 +#: ../../whatsnew/3.10.rst:2265 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:2267 +#: ../../whatsnew/3.10.rst:2269 msgid "" "Use Python :mod:`symtable` module instead. (Contributed by Victor Stinner " "in :issue:`43244`.)" msgstr "" -#: ../../whatsnew/3.10.rst:2270 +#: ../../whatsnew/3.10.rst:2272 msgid "" "Remove :c:func:`PyOS_ReadlineFunctionPointer` from the limited C API headers " "and from ``python3.dll``, the library that provides the stable ABI on " @@ -3018,7 +3019,7 @@ msgid "" "cannot be guaranteed. (Contributed by Petr Viktorin in :issue:`43868`.)" msgstr "" -#: ../../whatsnew/3.10.rst:2276 +#: ../../whatsnew/3.10.rst:2278 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 " @@ -3029,86 +3030,86 @@ msgid "" "(Contributed by Victor Stinner in :issue:`43244`.)" msgstr "" -#: ../../whatsnew/3.10.rst:2284 +#: ../../whatsnew/3.10.rst:2286 msgid "" "Remove the compiler and parser functions using ``struct _mod`` type, because " "the public AST C API was removed:" msgstr "" -#: ../../whatsnew/3.10.rst:2287 +#: ../../whatsnew/3.10.rst:2289 msgid "``PyAST_Compile()``" msgstr "" -#: ../../whatsnew/3.10.rst:2288 +#: ../../whatsnew/3.10.rst:2290 msgid "``PyAST_CompileEx()``" msgstr "" -#: ../../whatsnew/3.10.rst:2289 +#: ../../whatsnew/3.10.rst:2291 msgid "``PyAST_CompileObject()``" msgstr "" -#: ../../whatsnew/3.10.rst:2290 +#: ../../whatsnew/3.10.rst:2292 msgid "``PyFuture_FromAST()``" msgstr "" -#: ../../whatsnew/3.10.rst:2291 +#: ../../whatsnew/3.10.rst:2293 msgid "``PyFuture_FromASTObject()``" msgstr "" -#: ../../whatsnew/3.10.rst:2292 +#: ../../whatsnew/3.10.rst:2294 msgid "``PyParser_ASTFromFile()``" msgstr "" -#: ../../whatsnew/3.10.rst:2293 +#: ../../whatsnew/3.10.rst:2295 msgid "``PyParser_ASTFromFileObject()``" msgstr "" -#: ../../whatsnew/3.10.rst:2294 +#: ../../whatsnew/3.10.rst:2296 msgid "``PyParser_ASTFromFilename()``" msgstr "" -#: ../../whatsnew/3.10.rst:2295 +#: ../../whatsnew/3.10.rst:2297 msgid "``PyParser_ASTFromString()``" msgstr "" -#: ../../whatsnew/3.10.rst:2296 +#: ../../whatsnew/3.10.rst:2298 msgid "``PyParser_ASTFromStringObject()``" msgstr "" -#: ../../whatsnew/3.10.rst:2298 +#: ../../whatsnew/3.10.rst:2300 msgid "" "These functions were undocumented and excluded from the limited C API. " "(Contributed by Victor Stinner in :issue:`43244`.)" msgstr "" -#: ../../whatsnew/3.10.rst:2301 +#: ../../whatsnew/3.10.rst:2303 msgid "Remove the ``pyarena.h`` header file with functions:" msgstr "" -#: ../../whatsnew/3.10.rst:2303 +#: ../../whatsnew/3.10.rst:2305 msgid "``PyArena_New()``" msgstr "" -#: ../../whatsnew/3.10.rst:2304 +#: ../../whatsnew/3.10.rst:2306 msgid "``PyArena_Free()``" msgstr "" -#: ../../whatsnew/3.10.rst:2305 +#: ../../whatsnew/3.10.rst:2307 msgid "``PyArena_Malloc()``" msgstr "" -#: ../../whatsnew/3.10.rst:2306 +#: ../../whatsnew/3.10.rst:2308 msgid "``PyArena_AddPyObject()``" msgstr "" -#: ../../whatsnew/3.10.rst:2308 +#: ../../whatsnew/3.10.rst:2310 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:2312 +#: ../../whatsnew/3.10.rst:2314 msgid "" "The ``PyThreadState.use_tracing`` member has been removed to optimize " "Python. (Contributed by Mark Shannon in :issue:`43760`.)" diff --git a/whatsnew/3.11.po b/whatsnew/3.11.po index a8fa266c4..3bad4dd40 100644 --- a/whatsnew/3.11.po +++ b/whatsnew/3.11.po @@ -15,7 +15,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3.12\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2023-12-01 14:14+0000\n" +"POT-Creation-Date: 2023-12-08 14:14+0000\n" "PO-Revision-Date: 2022-11-05 19:49+0000\n" "Last-Translator: Takanori Suzuki , 2023\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" @@ -2353,7 +2353,7 @@ msgid "" "POP_BLOCK`, :opcode:`!SETUP_FINALLY` and :opcode:`!YIELD_FROM`." msgstr "" -#: ../../whatsnew/3.11.rst:1693 ../../whatsnew/3.11.rst:2565 +#: ../../whatsnew/3.11.rst:1693 ../../whatsnew/3.11.rst:2566 msgid "Deprecated" msgstr "非推奨" @@ -2704,7 +2704,7 @@ msgid "" "in 3.13. (Contributed by Carlos Damázio in :gh:`67048`.)" msgstr "" -#: ../../whatsnew/3.11.rst:1872 ../../whatsnew/3.11.rst:2593 +#: ../../whatsnew/3.11.rst:1872 ../../whatsnew/3.11.rst:2594 msgid "Pending Removal in Python 3.12" msgstr "" @@ -2970,7 +2970,7 @@ msgstr ":meth:`.assertNotRegex`" msgid "3.5" msgstr "3.5" -#: ../../whatsnew/3.11.rst:1935 ../../whatsnew/3.11.rst:2619 +#: ../../whatsnew/3.11.rst:1935 ../../whatsnew/3.11.rst:2620 msgid "Removed" msgstr "削除" @@ -3784,86 +3784,86 @@ msgstr "" #: ../../whatsnew/3.11.rst:2460 msgid "" -"The Python frame object is now created lazily. A side effect is that the " -"``f_back`` member must not be accessed directly, since its value is now also " -"computed lazily. The :c:func:`PyFrame_GetBack` function must be called " -"instead." +"The Python frame object is now created lazily. A side effect is that the :" +"attr:`~frame.f_back` member must not be accessed directly, since its value " +"is now also computed lazily. The :c:func:`PyFrame_GetBack` function must be " +"called instead." msgstr "" -#: ../../whatsnew/3.11.rst:2465 +#: ../../whatsnew/3.11.rst:2466 msgid "" -"Debuggers that accessed the ``f_locals`` directly *must* call :c:func:" -"`PyFrame_GetLocals` instead. They no longer need to call :c:func:" +"Debuggers that accessed the :attr:`~frame.f_locals` directly *must* call :c:" +"func:`PyFrame_GetLocals` instead. They no longer need to call :c:func:" "`PyFrame_FastToLocalsWithError` or :c:func:`PyFrame_LocalsToFast`, in fact " "they should not call those functions. The necessary updating of the frame is " "now managed by the virtual machine." msgstr "" -#: ../../whatsnew/3.11.rst:2471 +#: ../../whatsnew/3.11.rst:2472 msgid "Code defining ``PyFrame_GetCode()`` on Python 3.8 and older::" msgstr "" -#: ../../whatsnew/3.11.rst:2481 +#: ../../whatsnew/3.11.rst:2482 msgid "Code defining ``PyFrame_GetBack()`` on Python 3.8 and older::" msgstr "" -#: ../../whatsnew/3.11.rst:2491 +#: ../../whatsnew/3.11.rst:2492 msgid "" "Or use the `pythoncapi_compat project `__ to get these two functions on older Python versions." msgstr "" -#: ../../whatsnew/3.11.rst:2495 +#: ../../whatsnew/3.11.rst:2496 msgid "Changes of the :c:type:`PyThreadState` structure members:" msgstr "" -#: ../../whatsnew/3.11.rst:2497 +#: ../../whatsnew/3.11.rst:2498 msgid "" "``frame``: removed, use :c:func:`PyThreadState_GetFrame` (function added to " "Python 3.9 by :issue:`40429`). Warning: the function returns a :term:`strong " "reference`, need to call :c:func:`Py_XDECREF`." msgstr "" -#: ../../whatsnew/3.11.rst:2501 +#: ../../whatsnew/3.11.rst:2502 msgid "" "``tracing``: changed, use :c:func:`PyThreadState_EnterTracing` and :c:func:" "`PyThreadState_LeaveTracing` (functions added to Python 3.11 by :issue:" "`43760`)." msgstr "" -#: ../../whatsnew/3.11.rst:2504 +#: ../../whatsnew/3.11.rst:2505 msgid "" "``recursion_depth``: removed, use ``(tstate->recursion_limit - tstate-" ">recursion_remaining)`` instead." msgstr "" -#: ../../whatsnew/3.11.rst:2506 +#: ../../whatsnew/3.11.rst:2507 msgid "``stackcheck_counter``: removed." msgstr "" -#: ../../whatsnew/3.11.rst:2508 +#: ../../whatsnew/3.11.rst:2509 msgid "Code defining ``PyThreadState_GetFrame()`` on Python 3.8 and older::" msgstr "" -#: ../../whatsnew/3.11.rst:2518 +#: ../../whatsnew/3.11.rst:2519 msgid "" "Code defining ``PyThreadState_EnterTracing()`` and " "``PyThreadState_LeaveTracing()`` on Python 3.10 and older::" msgstr "" -#: ../../whatsnew/3.11.rst:2544 +#: ../../whatsnew/3.11.rst:2545 msgid "" "Or use `the pythoncapi-compat project `__ to get these functions on old Python functions." msgstr "" -#: ../../whatsnew/3.11.rst:2548 +#: ../../whatsnew/3.11.rst:2549 msgid "" "Distributors are encouraged to build Python with the optimized Blake2 " "library `libb2`_." msgstr "" -#: ../../whatsnew/3.11.rst:2551 +#: ../../whatsnew/3.11.rst:2552 msgid "" "The :c:member:`PyConfig.module_search_paths_set` field must now be set to 1 " "for initialization to use :c:member:`PyConfig.module_search_paths` to " @@ -3871,7 +3871,7 @@ msgid "" "path and replace any values added to ``module_search_paths``." msgstr "" -#: ../../whatsnew/3.11.rst:2556 +#: ../../whatsnew/3.11.rst:2557 msgid "" ":c:func:`PyConfig_Read` no longer calculates the initial search path, and " "will not fill any values into :c:member:`PyConfig.module_search_paths`. To " @@ -3880,177 +3880,177 @@ msgid "" "object and modify it directly." msgstr "" -#: ../../whatsnew/3.11.rst:2567 +#: ../../whatsnew/3.11.rst:2568 msgid "" "Deprecate the following functions to configure the Python initialization:" msgstr "" -#: ../../whatsnew/3.11.rst:2569 +#: ../../whatsnew/3.11.rst:2570 msgid ":c:func:`!PySys_AddWarnOptionUnicode`" msgstr "" -#: ../../whatsnew/3.11.rst:2570 +#: ../../whatsnew/3.11.rst:2571 msgid ":c:func:`!PySys_AddWarnOption`" msgstr "" -#: ../../whatsnew/3.11.rst:2571 +#: ../../whatsnew/3.11.rst:2572 msgid ":c:func:`!PySys_AddXOption`" msgstr "" -#: ../../whatsnew/3.11.rst:2572 +#: ../../whatsnew/3.11.rst:2573 msgid ":c:func:`!PySys_HasWarnOptions`" msgstr "" -#: ../../whatsnew/3.11.rst:2573 +#: ../../whatsnew/3.11.rst:2574 msgid ":c:func:`!PySys_SetArgvEx`" msgstr "" -#: ../../whatsnew/3.11.rst:2574 +#: ../../whatsnew/3.11.rst:2575 msgid ":c:func:`!PySys_SetArgv`" msgstr "" -#: ../../whatsnew/3.11.rst:2575 +#: ../../whatsnew/3.11.rst:2576 msgid ":c:func:`!PySys_SetPath`" msgstr "" -#: ../../whatsnew/3.11.rst:2576 +#: ../../whatsnew/3.11.rst:2577 msgid ":c:func:`!Py_SetPath`" msgstr "" -#: ../../whatsnew/3.11.rst:2577 +#: ../../whatsnew/3.11.rst:2578 msgid ":c:func:`!Py_SetProgramName`" msgstr "" -#: ../../whatsnew/3.11.rst:2578 +#: ../../whatsnew/3.11.rst:2579 msgid ":c:func:`!Py_SetPythonHome`" msgstr "" -#: ../../whatsnew/3.11.rst:2579 +#: ../../whatsnew/3.11.rst:2580 msgid ":c:func:`!Py_SetStandardStreamEncoding`" msgstr "" -#: ../../whatsnew/3.11.rst:2580 +#: ../../whatsnew/3.11.rst:2581 msgid ":c:func:`!_Py_SetProgramFullPath`" msgstr "" -#: ../../whatsnew/3.11.rst:2582 +#: ../../whatsnew/3.11.rst:2583 msgid "" "Use the new :c:type:`PyConfig` API of the :ref:`Python Initialization " "Configuration ` instead (:pep:`587`). (Contributed by Victor " "Stinner in :gh:`88279`.)" msgstr "" -#: ../../whatsnew/3.11.rst:2586 +#: ../../whatsnew/3.11.rst:2587 msgid "" "Deprecate the ``ob_shash`` member of the :c:type:`PyBytesObject`. Use :c:" "func:`PyObject_Hash` instead. (Contributed by Inada Naoki in :issue:`46864`.)" msgstr "" -#: ../../whatsnew/3.11.rst:2595 +#: ../../whatsnew/3.11.rst:2596 msgid "" "The following C APIs have been deprecated in earlier Python releases, and " "will be removed in Python 3.12." msgstr "" -#: ../../whatsnew/3.11.rst:2598 +#: ../../whatsnew/3.11.rst:2599 msgid ":c:func:`!PyUnicode_AS_DATA`" msgstr ":c:func:`!PyUnicode_AS_DATA`" -#: ../../whatsnew/3.11.rst:2599 +#: ../../whatsnew/3.11.rst:2600 msgid ":c:func:`!PyUnicode_AS_UNICODE`" msgstr ":c:func:`!PyUnicode_AS_UNICODE`" -#: ../../whatsnew/3.11.rst:2600 +#: ../../whatsnew/3.11.rst:2601 msgid ":c:func:`!PyUnicode_AsUnicodeAndSize`" msgstr ":c:func:`!PyUnicode_AsUnicodeAndSize`" -#: ../../whatsnew/3.11.rst:2601 +#: ../../whatsnew/3.11.rst:2602 msgid ":c:func:`!PyUnicode_AsUnicode`" msgstr ":c:func:`!PyUnicode_AsUnicode`" -#: ../../whatsnew/3.11.rst:2602 +#: ../../whatsnew/3.11.rst:2603 msgid ":c:func:`!PyUnicode_FromUnicode`" msgstr ":c:func:`!PyUnicode_FromUnicode`" -#: ../../whatsnew/3.11.rst:2603 +#: ../../whatsnew/3.11.rst:2604 msgid ":c:func:`!PyUnicode_GET_DATA_SIZE`" msgstr ":c:func:`!PyUnicode_GET_DATA_SIZE`" -#: ../../whatsnew/3.11.rst:2604 +#: ../../whatsnew/3.11.rst:2605 msgid ":c:func:`!PyUnicode_GET_SIZE`" msgstr ":c:func:`!PyUnicode_GET_SIZE`" -#: ../../whatsnew/3.11.rst:2605 +#: ../../whatsnew/3.11.rst:2606 msgid ":c:func:`!PyUnicode_GetSize`" msgstr ":c:func:`!PyUnicode_GetSize`" -#: ../../whatsnew/3.11.rst:2606 +#: ../../whatsnew/3.11.rst:2607 msgid ":c:func:`PyUnicode_IS_COMPACT`" msgstr "" -#: ../../whatsnew/3.11.rst:2607 +#: ../../whatsnew/3.11.rst:2608 msgid ":c:func:`PyUnicode_IS_READY`" msgstr "" -#: ../../whatsnew/3.11.rst:2608 +#: ../../whatsnew/3.11.rst:2609 msgid ":c:func:`PyUnicode_READY`" msgstr "" -#: ../../whatsnew/3.11.rst:2609 +#: ../../whatsnew/3.11.rst:2610 msgid ":c:func:`!PyUnicode_WSTR_LENGTH`" msgstr "" -#: ../../whatsnew/3.11.rst:2610 +#: ../../whatsnew/3.11.rst:2611 msgid ":c:func:`!_PyUnicode_AsUnicode`" msgstr "" -#: ../../whatsnew/3.11.rst:2611 +#: ../../whatsnew/3.11.rst:2612 msgid ":c:macro:`!PyUnicode_WCHAR_KIND`" msgstr ":c:macro:`!PyUnicode_WCHAR_KIND`" -#: ../../whatsnew/3.11.rst:2612 +#: ../../whatsnew/3.11.rst:2613 msgid ":c:type:`PyUnicodeObject`" msgstr "" -#: ../../whatsnew/3.11.rst:2613 +#: ../../whatsnew/3.11.rst:2614 msgid ":c:func:`!PyUnicode_InternImmortal`" msgstr "" -#: ../../whatsnew/3.11.rst:2621 +#: ../../whatsnew/3.11.rst:2622 msgid "" ":c:func:`!PyFrame_BlockSetup` and :c:func:`!PyFrame_BlockPop` have been " "removed. (Contributed by Mark Shannon in :issue:`40222`.)" msgstr "" -#: ../../whatsnew/3.11.rst:2625 +#: ../../whatsnew/3.11.rst:2626 msgid "Remove the following math macros using the ``errno`` variable:" msgstr "" -#: ../../whatsnew/3.11.rst:2627 +#: ../../whatsnew/3.11.rst:2628 msgid "``Py_ADJUST_ERANGE1()``" msgstr "" -#: ../../whatsnew/3.11.rst:2628 +#: ../../whatsnew/3.11.rst:2629 msgid "``Py_ADJUST_ERANGE2()``" msgstr "" -#: ../../whatsnew/3.11.rst:2629 +#: ../../whatsnew/3.11.rst:2630 msgid "``Py_OVERFLOWED()``" msgstr "" -#: ../../whatsnew/3.11.rst:2630 +#: ../../whatsnew/3.11.rst:2631 msgid "``Py_SET_ERANGE_IF_OVERFLOW()``" msgstr "" -#: ../../whatsnew/3.11.rst:2631 +#: ../../whatsnew/3.11.rst:2632 msgid "``Py_SET_ERRNO_ON_MATH_ERROR()``" msgstr "" -#: ../../whatsnew/3.11.rst:2633 +#: ../../whatsnew/3.11.rst:2634 msgid "(Contributed by Victor Stinner in :issue:`45412`.)" msgstr "" -#: ../../whatsnew/3.11.rst:2635 +#: ../../whatsnew/3.11.rst:2636 msgid "" "Remove ``Py_UNICODE_COPY()`` and ``Py_UNICODE_FILL()`` macros, deprecated " "since Python 3.3. Use ``PyUnicode_CopyCharacters()`` or ``memcpy()`` " @@ -4058,62 +4058,62 @@ msgid "" "(Contributed by Victor Stinner in :issue:`41123`.)" msgstr "" -#: ../../whatsnew/3.11.rst:2640 +#: ../../whatsnew/3.11.rst:2641 msgid "" "Remove the ``pystrhex.h`` header file. It only contains private functions. C " "extensions should only include the main ```` header file. " "(Contributed by Victor Stinner in :issue:`45434`.)" msgstr "" -#: ../../whatsnew/3.11.rst:2644 +#: ../../whatsnew/3.11.rst:2645 msgid "" "Remove the ``Py_FORCE_DOUBLE()`` macro. It was used by the " "``Py_IS_INFINITY()`` macro. (Contributed by Victor Stinner in :issue:" "`45440`.)" msgstr "" -#: ../../whatsnew/3.11.rst:2648 +#: ../../whatsnew/3.11.rst:2649 msgid "" "The following items are no longer available when :c:macro:`Py_LIMITED_API` " "is defined:" msgstr "" -#: ../../whatsnew/3.11.rst:2651 +#: ../../whatsnew/3.11.rst:2652 msgid ":c:func:`PyMarshal_WriteLongToFile`" msgstr "" -#: ../../whatsnew/3.11.rst:2652 +#: ../../whatsnew/3.11.rst:2653 msgid ":c:func:`PyMarshal_WriteObjectToFile`" msgstr "" -#: ../../whatsnew/3.11.rst:2653 +#: ../../whatsnew/3.11.rst:2654 msgid ":c:func:`PyMarshal_ReadObjectFromString`" msgstr "" -#: ../../whatsnew/3.11.rst:2654 +#: ../../whatsnew/3.11.rst:2655 msgid ":c:func:`PyMarshal_WriteObjectToString`" msgstr "" -#: ../../whatsnew/3.11.rst:2655 +#: ../../whatsnew/3.11.rst:2656 msgid "the ``Py_MARSHAL_VERSION`` macro" msgstr "" -#: ../../whatsnew/3.11.rst:2657 +#: ../../whatsnew/3.11.rst:2658 msgid "These are not part of the :ref:`limited API `." msgstr "" -#: ../../whatsnew/3.11.rst:2659 +#: ../../whatsnew/3.11.rst:2660 msgid "(Contributed by Victor Stinner in :issue:`45474`.)" msgstr "" -#: ../../whatsnew/3.11.rst:2661 +#: ../../whatsnew/3.11.rst:2662 msgid "" "Exclude :c:func:`PyWeakref_GET_OBJECT` from the limited C API. It never " "worked since the :c:type:`PyWeakReference` structure is opaque in the " "limited C API. (Contributed by Victor Stinner in :issue:`35134`.)" msgstr "" -#: ../../whatsnew/3.11.rst:2666 +#: ../../whatsnew/3.11.rst:2667 msgid "" "Remove the ``PyHeapType_GET_MEMBERS()`` macro. It was exposed in the public " "C API by mistake, it must only be used by Python internally. Use the " @@ -4121,76 +4121,76 @@ msgid "" "in :issue:`40170`.)" msgstr "" -#: ../../whatsnew/3.11.rst:2671 +#: ../../whatsnew/3.11.rst:2672 msgid "" "Remove the ``HAVE_PY_SET_53BIT_PRECISION`` macro (moved to the internal C " "API). (Contributed by Victor Stinner in :issue:`45412`.)" msgstr "" -#: ../../whatsnew/3.11.rst:2677 +#: ../../whatsnew/3.11.rst:2678 msgid "" "Remove the :c:type:`Py_UNICODE` encoder APIs, as they have been deprecated " "since Python 3.3, are little used and are inefficient relative to the " "recommended alternatives." msgstr "" -#: ../../whatsnew/3.11.rst:2682 +#: ../../whatsnew/3.11.rst:2683 msgid "The removed functions are:" msgstr "" -#: ../../whatsnew/3.11.rst:2684 +#: ../../whatsnew/3.11.rst:2685 msgid ":func:`!PyUnicode_Encode`" msgstr "" -#: ../../whatsnew/3.11.rst:2685 +#: ../../whatsnew/3.11.rst:2686 msgid ":func:`!PyUnicode_EncodeASCII`" msgstr "" -#: ../../whatsnew/3.11.rst:2686 +#: ../../whatsnew/3.11.rst:2687 msgid ":func:`!PyUnicode_EncodeLatin1`" msgstr "" -#: ../../whatsnew/3.11.rst:2687 +#: ../../whatsnew/3.11.rst:2688 msgid ":func:`!PyUnicode_EncodeUTF7`" msgstr "" -#: ../../whatsnew/3.11.rst:2688 +#: ../../whatsnew/3.11.rst:2689 msgid ":func:`!PyUnicode_EncodeUTF8`" msgstr "" -#: ../../whatsnew/3.11.rst:2689 +#: ../../whatsnew/3.11.rst:2690 msgid ":func:`!PyUnicode_EncodeUTF16`" msgstr "" -#: ../../whatsnew/3.11.rst:2690 +#: ../../whatsnew/3.11.rst:2691 msgid ":func:`!PyUnicode_EncodeUTF32`" msgstr "" -#: ../../whatsnew/3.11.rst:2691 +#: ../../whatsnew/3.11.rst:2692 msgid ":func:`!PyUnicode_EncodeUnicodeEscape`" msgstr "" -#: ../../whatsnew/3.11.rst:2692 +#: ../../whatsnew/3.11.rst:2693 msgid ":func:`!PyUnicode_EncodeRawUnicodeEscape`" msgstr "" -#: ../../whatsnew/3.11.rst:2693 +#: ../../whatsnew/3.11.rst:2694 msgid ":func:`!PyUnicode_EncodeCharmap`" msgstr "" -#: ../../whatsnew/3.11.rst:2694 +#: ../../whatsnew/3.11.rst:2695 msgid ":func:`!PyUnicode_TranslateCharmap`" msgstr "" -#: ../../whatsnew/3.11.rst:2695 +#: ../../whatsnew/3.11.rst:2696 msgid ":func:`!PyUnicode_EncodeDecimal`" msgstr "" -#: ../../whatsnew/3.11.rst:2696 +#: ../../whatsnew/3.11.rst:2697 msgid ":func:`!PyUnicode_TransformDecimalToASCII`" msgstr "" -#: ../../whatsnew/3.11.rst:2698 +#: ../../whatsnew/3.11.rst:2699 msgid "" "See :pep:`624` for details and :pep:`migration guidance <624#alternative-" "apis>`. (Contributed by Inada Naoki in :issue:`44029`.)" diff --git a/whatsnew/3.6.po b/whatsnew/3.6.po index a995d8712..f08c878d3 100644 --- a/whatsnew/3.6.po +++ b/whatsnew/3.6.po @@ -13,7 +13,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3.12\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2023-12-01 14:14+0000\n" +"POT-Creation-Date: 2023-12-08 14:14+0000\n" "PO-Revision-Date: 2021-06-29 13:04+0000\n" "Last-Translator: Arihiro TAKASE, 2023\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" @@ -1249,7 +1249,7 @@ msgid "" "Hettinger in :issue:`17941`.)" msgstr "" -#: ../../whatsnew/3.6.rst:940 ../../whatsnew/3.6.rst:2281 +#: ../../whatsnew/3.6.rst:940 ../../whatsnew/3.6.rst:2282 msgid "" "The *verbose* and *rename* arguments for :func:`~collections.namedtuple` are " "now keyword-only. (Contributed by Raymond Hettinger in :issue:`25628`.)" @@ -2975,18 +2975,18 @@ msgstr "" #: ../../whatsnew/3.6.rst:2163 msgid "" -"The format of the ``co_lnotab`` attribute of code objects changed to support " -"a negative line number delta. By default, Python does not emit bytecode with " -"a negative line number delta. Functions using ``frame.f_lineno``, " -"``PyFrame_GetLineNumber()`` or ``PyCode_Addr2Line()`` are not affected. " -"Functions directly decoding ``co_lnotab`` should be updated to use a signed " -"8-bit integer type for the line number delta, but this is only required to " -"support applications using a negative line number delta. See ``Objects/" -"lnotab_notes.txt`` for the ``co_lnotab`` format and how to decode it, and " -"see the :pep:`511` for the rationale." +"The format of the :attr:`~codeobject.co_lnotab` attribute of code objects " +"changed to support a negative line number delta. By default, Python does not " +"emit bytecode with a negative line number delta. Functions using :attr:" +"`frame.f_lineno`, ``PyFrame_GetLineNumber()`` or ``PyCode_Addr2Line()`` are " +"not affected. Functions directly decoding :attr:`!co_lnotab` should be " +"updated to use a signed 8-bit integer type for the line number delta, but " +"this is only required to support applications using a negative line number " +"delta. See ``Objects/lnotab_notes.txt`` for the :attr:`!co_lnotab` format " +"and how to decode it, and see the :pep:`511` for the rationale." msgstr "" -#: ../../whatsnew/3.6.rst:2173 +#: ../../whatsnew/3.6.rst:2174 msgid "" "The functions in the :mod:`compileall` module now return booleans instead of " "``1`` or ``0`` to represent success or failure, respectively. Thanks to " @@ -2994,7 +2994,7 @@ msgid "" "were doing identity checks for ``1`` or ``0``. See :issue:`25768`." msgstr "" -#: ../../whatsnew/3.6.rst:2178 +#: ../../whatsnew/3.6.rst:2179 msgid "" "Reading the :attr:`~urllib.parse.SplitResult.port` attribute of :func:" "`urllib.parse.urlsplit` and :func:`~urllib.parse.urlparse` results now " @@ -3002,13 +3002,13 @@ msgid "" "const:`None`. See :issue:`20059`." msgstr "" -#: ../../whatsnew/3.6.rst:2183 +#: ../../whatsnew/3.6.rst:2184 msgid "" "The :mod:`!imp` module now raises a :exc:`DeprecationWarning` instead of :" "exc:`PendingDeprecationWarning`." msgstr "" -#: ../../whatsnew/3.6.rst:2186 +#: ../../whatsnew/3.6.rst:2187 msgid "" "The following modules have had missing APIs added to their :attr:`__all__` " "attributes to match the documented APIs: :mod:`calendar`, :mod:`cgi`, :mod:" @@ -3020,21 +3020,21 @@ msgid "" "Kołodziej in :issue:`23883`.)" msgstr "" -#: ../../whatsnew/3.6.rst:2197 +#: ../../whatsnew/3.6.rst:2198 msgid "" "When performing a relative import, if ``__package__`` does not compare equal " "to ``__spec__.parent`` then :exc:`ImportWarning` is raised. (Contributed by " "Brett Cannon in :issue:`25791`.)" msgstr "" -#: ../../whatsnew/3.6.rst:2201 +#: ../../whatsnew/3.6.rst:2202 msgid "" "When a relative import is performed and no parent package is known, then :" "exc:`ImportError` will be raised. Previously, :exc:`SystemError` could be " "raised. (Contributed by Brett Cannon in :issue:`18018`.)" msgstr "" -#: ../../whatsnew/3.6.rst:2205 +#: ../../whatsnew/3.6.rst:2206 msgid "" "Servers based on the :mod:`socketserver` module, including those defined in :" "mod:`http.server`, :mod:`xmlrpc.server` and :mod:`wsgiref.simple_server`, " @@ -3045,20 +3045,20 @@ msgid "" "(Contributed by Martin Panter in :issue:`23430`.)" msgstr "" -#: ../../whatsnew/3.6.rst:2214 +#: ../../whatsnew/3.6.rst:2215 msgid "" ":func:`spwd.getspnam` now raises a :exc:`PermissionError` instead of :exc:" "`KeyError` if the user doesn't have privileges." msgstr "" -#: ../../whatsnew/3.6.rst:2217 +#: ../../whatsnew/3.6.rst:2218 msgid "" "The :meth:`socket.socket.close` method now raises an exception if an error " "(e.g. ``EBADF``) was reported by the underlying system call. (Contributed by " "Martin Panter in :issue:`26685`.)" msgstr "" -#: ../../whatsnew/3.6.rst:2221 +#: ../../whatsnew/3.6.rst:2222 msgid "" "The *decode_data* argument for the :class:`smtpd.SMTPChannel` and :class:" "`smtpd.SMTPServer` constructors is now ``False`` by default. This means that " @@ -3068,7 +3068,7 @@ msgid "" "deprecation warning generated by 3.5 will not be affected." msgstr "" -#: ../../whatsnew/3.6.rst:2229 +#: ../../whatsnew/3.6.rst:2230 msgid "" "All optional arguments of the :func:`~json.dump`, :func:`~json.dumps`, :func:" "`~json.load` and :func:`~json.loads` functions and :class:`~json." @@ -3077,7 +3077,7 @@ msgid "" "(Contributed by Serhiy Storchaka in :issue:`18726`.)" msgstr "" -#: ../../whatsnew/3.6.rst:2236 +#: ../../whatsnew/3.6.rst:2237 msgid "" "Subclasses of :class:`type` which don't override ``type.__new__`` may no " "longer use the one-argument form to get the type of an object." @@ -3085,7 +3085,7 @@ msgstr "" "``type.__new__`` をオーバーライドしていない :class:`type` のサブクラスは、オ" "ブジェクトの型を得るのに1引数形式を利用することができません。" -#: ../../whatsnew/3.6.rst:2239 +#: ../../whatsnew/3.6.rst:2240 msgid "" "As part of :pep:`487`, the handling of keyword arguments passed to :class:" "`type` (other than the metaclass hint, ``metaclass``) is now consistently " @@ -3097,7 +3097,7 @@ msgid "" "__new__` (whether direct or via :class:`super`) accordingly." msgstr "" -#: ../../whatsnew/3.6.rst:2248 +#: ../../whatsnew/3.6.rst:2249 msgid "" "In ``distutils.command.sdist.sdist``, the ``default_format`` attribute has " "been removed and is no longer honored. Instead, the gzipped tarfile format " @@ -3107,7 +3107,7 @@ msgid "" "containing the following:" msgstr "" -#: ../../whatsnew/3.6.rst:2261 +#: ../../whatsnew/3.6.rst:2262 msgid "" "This behavior has also been backported to earlier Python versions by " "Setuptools 26.0.0." @@ -3115,7 +3115,7 @@ msgstr "" "この挙動は Setuptools 26.0.0 により以前の Python バージョンにバックポートされ" "ました。" -#: ../../whatsnew/3.6.rst:2264 +#: ../../whatsnew/3.6.rst:2265 msgid "" "In the :mod:`urllib.request` module and the :meth:`http.client." "HTTPConnection.request` method, if no Content-Length header field has been " @@ -3126,47 +3126,47 @@ msgid "" "`12319`.)" msgstr "" -#: ../../whatsnew/3.6.rst:2273 +#: ../../whatsnew/3.6.rst:2274 msgid "" "The :class:`~csv.DictReader` now returns rows of type :class:`~collections." "OrderedDict`. (Contributed by Steve Holden in :issue:`27842`.)" msgstr "" -#: ../../whatsnew/3.6.rst:2277 +#: ../../whatsnew/3.6.rst:2278 msgid "" "The :const:`crypt.METHOD_CRYPT` will no longer be added to ``crypt.methods`` " "if unsupported by the platform. (Contributed by Victor Stinner in :issue:" "`25287`.)" msgstr "" -#: ../../whatsnew/3.6.rst:2285 +#: ../../whatsnew/3.6.rst:2286 msgid "" "On Linux, :func:`ctypes.util.find_library` now looks in ``LD_LIBRARY_PATH`` " "for shared libraries. (Contributed by Vinay Sajip in :issue:`9998`.)" msgstr "" -#: ../../whatsnew/3.6.rst:2289 +#: ../../whatsnew/3.6.rst:2290 msgid "" "The :class:`imaplib.IMAP4` class now handles flags containing the ``']'`` " "character in messages sent from the server to improve real-world " "compatibility. (Contributed by Lita Cho in :issue:`21815`.)" msgstr "" -#: ../../whatsnew/3.6.rst:2294 +#: ../../whatsnew/3.6.rst:2295 msgid "" "The :func:`mmap.write() ` function now returns the number of " "bytes written like other write methods. (Contributed by Jakub Stasiak in :" "issue:`26335`.)" msgstr "" -#: ../../whatsnew/3.6.rst:2298 +#: ../../whatsnew/3.6.rst:2299 msgid "" "The :func:`pkgutil.iter_modules` and :func:`pkgutil.walk_packages` functions " "now return :class:`~pkgutil.ModuleInfo` named tuples. (Contributed by " "Ramchandra Apte in :issue:`17211`.)" msgstr "" -#: ../../whatsnew/3.6.rst:2302 +#: ../../whatsnew/3.6.rst:2303 msgid "" ":func:`re.sub` now raises an error for invalid numerical group references in " "replacement templates even if the pattern is not found in the string. The " @@ -3175,7 +3175,7 @@ msgid "" "in :issue:`25953`.)" msgstr "" -#: ../../whatsnew/3.6.rst:2308 +#: ../../whatsnew/3.6.rst:2309 msgid "" ":class:`zipfile.ZipFile` will now raise :exc:`NotImplementedError` for " "unrecognized compression values. Previously a plain :exc:`RuntimeError` was " @@ -3185,7 +3185,7 @@ msgid "" "`RuntimeError` was raised in those scenarios." msgstr "" -#: ../../whatsnew/3.6.rst:2315 +#: ../../whatsnew/3.6.rst:2316 msgid "" "when custom metaclasses are combined with zero-argument :func:`super` or " "direct references from methods to the implicit ``__class__`` closure " @@ -3195,7 +3195,7 @@ msgid "" "Python 3.8." msgstr "" -#: ../../whatsnew/3.6.rst:2322 +#: ../../whatsnew/3.6.rst:2323 msgid "" "With the introduction of :exc:`ModuleNotFoundError`, import system consumers " "may start expecting import system replacements to raise that more specific " @@ -3208,11 +3208,11 @@ msgid "" "the default import system will raise the new subclass when appropriate." msgstr "" -#: ../../whatsnew/3.6.rst:2334 +#: ../../whatsnew/3.6.rst:2335 msgid "Changes in the C API" msgstr "C API の変更" -#: ../../whatsnew/3.6.rst:2336 +#: ../../whatsnew/3.6.rst:2337 msgid "" "The :c:func:`PyMem_Malloc` allocator family now uses the :ref:`pymalloc " "allocator ` rather than the system :c:func:`malloc`. Applications " @@ -3221,29 +3221,29 @@ msgid "" "usage of memory allocators in your application. See :issue:`26249`." msgstr "" -#: ../../whatsnew/3.6.rst:2342 +#: ../../whatsnew/3.6.rst:2343 msgid "" ":c:func:`Py_Exit` (and the main interpreter) now override the exit status " "with 120 if flushing buffered data failed. See :issue:`5319`." msgstr "" -#: ../../whatsnew/3.6.rst:2347 +#: ../../whatsnew/3.6.rst:2348 msgid "CPython bytecode changes" msgstr "CPython バイトコードの変更" -#: ../../whatsnew/3.6.rst:2349 +#: ../../whatsnew/3.6.rst:2350 msgid "" "There have been several major changes to the :term:`bytecode` in Python 3.6." msgstr "" -#: ../../whatsnew/3.6.rst:2351 +#: ../../whatsnew/3.6.rst:2352 msgid "" "The Python interpreter now uses a 16-bit wordcode instead of bytecode. " "(Contributed by Demur Rumed with input and reviews from Serhiy Storchaka and " "Victor Stinner in :issue:`26647` and :issue:`28050`.)" msgstr "" -#: ../../whatsnew/3.6.rst:2355 +#: ../../whatsnew/3.6.rst:2356 msgid "" "The new :opcode:`FORMAT_VALUE` and :opcode:`BUILD_STRING` opcodes as part of " "the :ref:`formatted string literal ` implementation. " @@ -3251,14 +3251,14 @@ msgid "" "`27078`.)" msgstr "" -#: ../../whatsnew/3.6.rst:2360 +#: ../../whatsnew/3.6.rst:2361 msgid "" "The new :opcode:`BUILD_CONST_KEY_MAP` opcode to optimize the creation of " "dictionaries with constant keys. (Contributed by Serhiy Storchaka in :issue:" "`27140`.)" msgstr "" -#: ../../whatsnew/3.6.rst:2364 +#: ../../whatsnew/3.6.rst:2365 msgid "" "The function call opcodes have been heavily reworked for better performance " "and simpler implementation. The :opcode:`MAKE_FUNCTION`, :opcode:" @@ -3270,22 +3270,22 @@ msgid "" "issue:`27095`, and Serhiy Storchaka in :issue:`27213`, :issue:`28257`.)" msgstr "" -#: ../../whatsnew/3.6.rst:2375 +#: ../../whatsnew/3.6.rst:2376 msgid "" "The new :opcode:`SETUP_ANNOTATIONS` and :opcode:`STORE_ANNOTATION` opcodes " "have been added to support the new :term:`variable annotation` syntax. " "(Contributed by Ivan Levkivskyi in :issue:`27985`.)" msgstr "" -#: ../../whatsnew/3.6.rst:2381 +#: ../../whatsnew/3.6.rst:2382 msgid "Notable changes in Python 3.6.2" msgstr "" -#: ../../whatsnew/3.6.rst:2384 +#: ../../whatsnew/3.6.rst:2385 msgid "New ``make regen-all`` build target" msgstr "" -#: ../../whatsnew/3.6.rst:2386 +#: ../../whatsnew/3.6.rst:2387 msgid "" "To simplify cross-compilation, and to ensure that CPython can reliably be " "compiled without requiring an existing version of Python to already be " @@ -3293,43 +3293,43 @@ msgid "" "recompile generated files based on file modification times." msgstr "" -#: ../../whatsnew/3.6.rst:2391 +#: ../../whatsnew/3.6.rst:2392 msgid "" "Instead, a new ``make regen-all`` command has been added to force " "regeneration of these files when desired (e.g. after an initial version of " "Python has already been built based on the pregenerated versions)." msgstr "" -#: ../../whatsnew/3.6.rst:2395 +#: ../../whatsnew/3.6.rst:2396 msgid "" "More selective regeneration targets are also defined - see :source:`Makefile." "pre.in` for details." msgstr "" -#: ../../whatsnew/3.6.rst:2398 ../../whatsnew/3.6.rst:2411 +#: ../../whatsnew/3.6.rst:2399 ../../whatsnew/3.6.rst:2412 msgid "(Contributed by Victor Stinner in :issue:`23404`.)" msgstr "(Victor Stinner の貢献による :issue:`23404`) " -#: ../../whatsnew/3.6.rst:2404 +#: ../../whatsnew/3.6.rst:2405 msgid "Removal of ``make touch`` build target" msgstr "" -#: ../../whatsnew/3.6.rst:2406 +#: ../../whatsnew/3.6.rst:2407 msgid "" "The ``make touch`` build target previously used to request implicit " "regeneration of generated files by updating their modification times has " "been removed." msgstr "" -#: ../../whatsnew/3.6.rst:2409 +#: ../../whatsnew/3.6.rst:2410 msgid "It has been replaced by the new ``make regen-all`` target." msgstr "" -#: ../../whatsnew/3.6.rst:2417 +#: ../../whatsnew/3.6.rst:2418 msgid "Notable changes in Python 3.6.4" msgstr "" -#: ../../whatsnew/3.6.rst:2419 +#: ../../whatsnew/3.6.rst:2420 msgid "" "The ``PyExc_RecursionErrorInst`` singleton that was part of the public API " "has been removed as its members being never cleared may cause a segfault " @@ -3337,22 +3337,22 @@ msgid "" "issue:`22898` and :issue:`30697`.)" msgstr "" -#: ../../whatsnew/3.6.rst:2426 +#: ../../whatsnew/3.6.rst:2427 msgid "Notable changes in Python 3.6.5" msgstr "" -#: ../../whatsnew/3.6.rst:2428 +#: ../../whatsnew/3.6.rst:2429 msgid "" "The :func:`locale.localeconv` function now sets temporarily the ``LC_CTYPE`` " "locale to the ``LC_NUMERIC`` locale in some cases. (Contributed by Victor " "Stinner in :issue:`31900`.)" msgstr "" -#: ../../whatsnew/3.6.rst:2433 +#: ../../whatsnew/3.6.rst:2434 msgid "Notable changes in Python 3.6.7" msgstr "" -#: ../../whatsnew/3.6.rst:2435 +#: ../../whatsnew/3.6.rst:2436 msgid "" "In 3.6.7 the :mod:`tokenize` module now implicitly emits a ``NEWLINE`` token " "when provided with input that does not have a trailing new line. This " @@ -3360,11 +3360,11 @@ msgid "" "Ammar Askar in :issue:`33899`.)" msgstr "" -#: ../../whatsnew/3.6.rst:2441 +#: ../../whatsnew/3.6.rst:2442 msgid "Notable changes in Python 3.6.10" msgstr "" -#: ../../whatsnew/3.6.rst:2443 +#: ../../whatsnew/3.6.rst:2444 msgid "" "Due to significant security concerns, the *reuse_address* parameter of :meth:" "`asyncio.loop.create_datagram_endpoint` is no longer supported. This is " @@ -3379,11 +3379,11 @@ msgstr "" "``loop.create_datagram_endpoint()`` のドキュメントを参照してください。(Kyle " "Stanley, Antoine Pitrou, Yury Selivanov による貢献 :issue:`37228`)" -#: ../../whatsnew/3.6.rst:2451 +#: ../../whatsnew/3.6.rst:2452 msgid "Notable changes in Python 3.6.13" msgstr "" -#: ../../whatsnew/3.6.rst:2453 +#: ../../whatsnew/3.6.rst:2454 msgid "" "Earlier Python versions allowed using both ``;`` and ``&`` as query " "parameter separators in :func:`urllib.parse.parse_qs` and :func:`urllib." diff --git a/whatsnew/3.7.po b/whatsnew/3.7.po index d55b878b1..b822dc35e 100644 --- a/whatsnew/3.7.po +++ b/whatsnew/3.7.po @@ -15,7 +15,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3.12\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2023-11-24 14:13+0000\n" +"POT-Creation-Date: 2023-12-08 14:14+0000\n" "PO-Revision-Date: 2021-06-29 13:04+0000\n" "Last-Translator: Arihiro TAKASE, 2023\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" @@ -2839,9 +2839,9 @@ msgstr "その他の CPython の実装の変更" #: ../../whatsnew/3.7.rst:1892 msgid "" "Trace hooks may now opt out of receiving the ``line`` and opt into receiving " -"the ``opcode`` events from the interpreter by setting the corresponding new " -"``f_trace_lines`` and ``f_trace_opcodes`` attributes on the frame being " -"traced. (Contributed by Nick Coghlan in :issue:`31344`.)" +"the ``opcode`` events from the interpreter by setting the corresponding new :" +"attr:`~frame.f_trace_lines` and :attr:`~frame.f_trace_opcodes` attributes on " +"the frame being traced. (Contributed by Nick Coghlan in :issue:`31344`.)" msgstr "" #: ../../whatsnew/3.7.rst:1897 @@ -3157,9 +3157,8 @@ msgstr "" #: ../../whatsnew/3.7.rst:2147 msgid "" -"The ``splitunc()`` function in the :mod:`ntpath` module was deprecated in " -"Python 3.1, and has now been removed. Use the :func:`~os.path.splitdrive` " -"function instead." +"The :func:`!ntpath.splitunc` function was deprecated in Python 3.1, and has " +"now been removed. Use :func:`~os.path.splitdrive` instead." msgstr "" #: ../../whatsnew/3.7.rst:2151