@@ -1988,6 +1988,9 @@ msgid ""
1988
1988
":const:`PyTrace_C_EXCEPTION` or :const:`PyTrace_C_RETURN` as a value for the"
1989
1989
" *what* parameter."
1990
1990
msgstr ""
1991
+ "トレース関数を *func* に設定します。\n"
1992
+ "この関数は :c:func:`PyEval_SetProfile` と同じですが、トレース関数は行番号イベントおよび opcode イベントを受け取り、呼び出された C 関数オブジェクトと関係する任意のイベントを受け取らないところが異なっています。\n"
1993
+ ":c:func:`PyEval_SetTrace` で登録されたトレース関数は、*what* 引数の値として :const:`PyTrace_C_CALL`, :const:`PyTrace_C_EXCEPTION`, :const:`PyTrace_C_RETURN` を受け取りません。"
1991
1994
1992
1995
#: ../../c-api/init.rst:1372
1993
1996
msgid "Advanced Debugger Support"
@@ -2039,18 +2042,22 @@ msgid ""
2039
2042
"use a thread key and functions to associate a :c:type:`void\\ *` value per "
2040
2043
"thread."
2041
2044
msgstr ""
2045
+ "Python インタプリタは、スレッドローカルストレージ (thread-local storage, TLS) の低レベルサポートを提供していて、ネイティブの TLS 実装を内部にラップして Python レベルのスレッドローカルストレージ API (:class:`threading.local`) をサポートしています。\n"
2046
+ "CPython の C レベル API は pthreads や Windows で与えられる TLS と同様です: スレッドキーとスレッドごとに :c:type:`void\\ *` 値を関係付ける関数を使います。"
2042
2047
2043
2048
#: ../../c-api/init.rst:1417
2044
2049
msgid ""
2045
2050
"The GIL does *not* need to be held when calling these functions; they supply"
2046
2051
" their own locking."
2047
- msgstr ""
2052
+ msgstr "API で使われる関数を呼ぶときは、 GIL を取得する必要は *ありません* 。関数自身のロックがサポートされています。 "
2048
2053
2049
2054
#: ../../c-api/init.rst:1420
2050
2055
msgid ""
2051
2056
"Note that :file:`Python.h` does not include the declaration of the TLS APIs,"
2052
2057
" you need to include :file:`pythread.h` to use thread-local storage."
2053
2058
msgstr ""
2059
+ ":file:`Python.h` は TLS API の宣言を include せず、スレッドローカルストレージを使うには "
2060
+ ":file:`pythread.h` を include する必要があることに注意してください。"
2054
2061
2055
2062
#: ../../c-api/init.rst:1424
2056
2063
msgid ""
@@ -2060,21 +2067,26 @@ msgid ""
2060
2067
":c:type:`PyObject\\ *`, these functions don't do refcount operations on them "
2061
2068
"either."
2062
2069
msgstr ""
2070
+ "この API 関数はどれも :c:type:`void\\ *` 値の代わりにメモリ管理を行うことはしません。\n"
2071
+ "メモリの確保と解放は自前で行う必要があります。\n"
2072
+ ":c:type:`void\\ *` 値がたまたま :c:type:`PyObject\\ *` だった場合は、 API 関数はそれぞれの値の参照カウントの操作は行いません。"
2063
2073
2064
2074
#: ../../c-api/init.rst:1432
2065
2075
msgid "Thread Specific Storage (TSS) API"
2066
- msgstr ""
2076
+ msgstr "スレッド固有ストレージ (Thread Specific Storage, TSS) API "
2067
2077
2068
2078
#: ../../c-api/init.rst:1434
2069
2079
msgid ""
2070
2080
"TSS API is introduced to supersede the use of the existing TLS API within "
2071
2081
"the CPython interpreter. This API uses a new type :c:type:`Py_tss_t` "
2072
2082
"instead of :c:type:`int` to represent thread keys."
2073
2083
msgstr ""
2084
+ "TSS API は、 CPython インタプリタに含まれている既存の TLS API を置き換えるために導入されました。\n"
2085
+ "この API は、スレッドキーの表現に :c:type:`int` の代わりに新しい型 :c:type:`Py_tss_t` を使います。"
2074
2086
2075
2087
#: ../../c-api/init.rst:1440
2076
2088
msgid "\" A New C-API for Thread-Local Storage in CPython\" (:pep:`539`)"
2077
- msgstr ""
2089
+ msgstr "\" CPython のスレッドローカルストレージのための新しい C API \" (:pep:`539`) "
2078
2090
2079
2091
#: ../../c-api/init.rst:1445
2080
2092
msgid ""
@@ -2089,6 +2101,8 @@ msgid ""
2089
2101
"When :ref:`Py_LIMITED_API <stable>` is not defined, static allocation of "
2090
2102
"this type by :c:macro:`Py_tss_NEEDS_INIT` is allowed."
2091
2103
msgstr ""
2104
+ ":ref:`Py_LIMITED_API <stable>` が定義されていないときは、この型の "
2105
+ ":c:macro:`Py_tss_NEEDS_INIT` による静的メモリ確保ができます。"
2092
2106
2093
2107
#: ../../c-api/init.rst:1456
2094
2108
msgid ""
0 commit comments