GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — python-docs-ja/c-api/monitoring.po at 3.14 · python/python-docs-ja Expand file tree/ Copy pathmonitoring.poMore file actions 315 lines (260 loc) · 12.7 KB / Copy pathmonitoring.poFile metadata and controls315 lines (260 loc) · 12.7 KB 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 # SOME DESCRIPTIVE TITLE. # Copyright (C) 2001 Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR. # # Translators: # python-doc bot, 2025 # #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.15\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2026-10-01 19:07+0000\n" "PO-Revision-Date: 2025-09-16 00:00+0000\n" "Last-Translator: python-doc bot, 2025\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" "Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=1; plural=0;\n" msgid "Monitoring C API" msgstr "モニタリング C API" msgid "Added in version 3.13." msgstr "バージョン 3.13 で追加。" msgid "" "An extension may need to interact with the event monitoring system. " "Subscribing to events and registering callbacks can be done via the Python " "API exposed in :mod:`sys.monitoring`." msgstr "" "拡張モジュールがイベントモニタリングシステムと連携する必要がある場合がありま" "す。\n" "イベントの購読やコールバックの登録は、:mod:`sys.monitoring` が公開する " "Python API で行えます。" msgid "Generating Execution Events" msgstr "実行イベントの発生" msgid "" "The functions below make it possible for an extension to fire monitoring " "events as it emulates the execution of Python code. Each of these functions " "accepts a ``PyMonitoringState`` struct which contains concise information " "about the activation state of events, as well as the event arguments, which " "include a ``PyObject*`` representing the code object, the instruction offset " "and sometimes additional, event-specific arguments " "(see :mod:`sys.monitoring` for details about the signatures of the different " "event callbacks). The ``codelike`` argument should be an instance " "of :class:`types.CodeType` or of a type that emulates it." msgstr "" "以下の関数を使うと、拡張モジュールが Python コードの実行をエミュレートすると" "きにモニタリングイベントを発生させられます。\n" "各関数は、イベントの有効化状態を簡潔に保持する ``PyMonitoringState`` 構造体" "と、イベントの引数を受け取ります。\n" "イベントの引数には、コードオブジェクトを表す ``PyObject*``、命令オフセット、" "場合によってはイベント固有の追加引数が含まれます (各イベントのコールバックの" "シグネチャは :mod:`sys.monitoring` を参照してください)。\n" "``codelike`` 引数には、:class:`types.CodeType` またはそれをエミュレートする型" "のインスタンスを指定してください。" msgid "" "The VM disables tracing when firing an event, so there is no need for user " "code to do that." msgstr "" "VM はイベントを発生させるときにトレースを無効にするため、利用者のコードで無効" "にする必要はありません。" msgid "" "Monitoring functions should not be called with an exception set, except " "those listed below as working with the current exception." msgstr "" "以下で現在の例外を扱うと記載された関数を除き、例外が設定された状態でモニタリ" "ング関数を呼び出してはいけません。" msgid "" "Representation of the state of an event type. It is allocated by the user " "while its contents are maintained by the monitoring API functions described " "below." msgstr "" "イベント種別の状態を表します。\n" "利用者が領域を割り当て、内容は以下のモニタリング API 関数が管理します。" msgid "" "All of the functions below return 0 on success and -1 (with an exception " "set) on error." msgstr "" "以下の関数はすべて、成功した場合は 0 を返し、エラーの場合は例外を設定して -1 " "を返します。" msgid "See :mod:`sys.monitoring` for descriptions of the events." msgstr "イベントの説明は :mod:`sys.monitoring` を参照してください。" msgid "Fire a ``PY_START`` event." msgstr "``PY_START`` イベントを発生させます。" msgid "Fire a ``PY_RESUME`` event." msgstr "``PY_RESUME`` イベントを発生させます。" msgid "Fire a ``PY_RETURN`` event." msgstr "``PY_RETURN`` イベントを発生させます。" msgid "Fire a ``PY_YIELD`` event." msgstr "``PY_YIELD`` イベントを発生させます。" msgid "Fire a ``CALL`` event." msgstr "``CALL`` イベントを発生させます。" msgid "Fire a ``LINE`` event." msgstr "``LINE`` イベントを発生させます。" msgid "Fire a ``JUMP`` event." msgstr "``JUMP`` イベントを発生させます。" msgid "Fire a ``BRANCH_LEFT`` event." msgstr "``BRANCH_LEFT`` イベントを発生させます。" msgid "Fire a ``BRANCH_RIGHT`` event." msgstr "``BRANCH_RIGHT`` イベントを発生させます。" msgid "Fire a ``C_RETURN`` event." msgstr "``C_RETURN`` イベントを発生させます。" msgid "" "Fire a ``PY_THROW`` event with the current exception (as returned " "by :c:func:`PyErr_GetRaisedException`)." msgstr "" "現在の例外 (:c:func:`PyErr_GetRaisedException` が返すもの) を使って " "``PY_THROW`` イベントを発生させます。" msgid "" "Fire a ``RAISE`` event with the current exception (as returned " "by :c:func:`PyErr_GetRaisedException`)." msgstr "" "現在の例外 (:c:func:`PyErr_GetRaisedException` が返すもの) を使って " "``RAISE`` イベントを発生させます。" msgid "" "Fire a ``C_RAISE`` event with the current exception (as returned " "by :c:func:`PyErr_GetRaisedException`)." msgstr "" "現在の例外 (:c:func:`PyErr_GetRaisedException` が返すもの) を使って " "``C_RAISE`` イベントを発生させます。" msgid "" "Fire a ``RERAISE`` event with the current exception (as returned " "by :c:func:`PyErr_GetRaisedException`)." msgstr "" "現在の例外 (:c:func:`PyErr_GetRaisedException` が返すもの) を使って " "``RERAISE`` イベントを発生させます。" msgid "" "Fire an ``EXCEPTION_HANDLED`` event with the current exception (as returned " "by :c:func:`PyErr_GetRaisedException`)." msgstr "" "現在の例外 (:c:func:`PyErr_GetRaisedException` が返すもの) を使って " "``EXCEPTION_HANDLED`` イベントを発生させます。" msgid "" "Fire a ``PY_UNWIND`` event with the current exception (as returned " "by :c:func:`PyErr_GetRaisedException`)." msgstr "" "現在の例外 (:c:func:`PyErr_GetRaisedException` が返すもの) を使って " "``PY_UNWIND`` イベントを発生させます。" msgid "" "Fire a ``STOP_ITERATION`` event. If ``value`` is an instance " "of :exc:`StopIteration`, it is used. Otherwise, a new :exc:`StopIteration` " "instance is created with ``value`` as its argument." msgstr "" "``STOP_ITERATION`` イベントを発生させます。\n" "``value`` が :exc:`StopIteration` のインスタンスなら、それを使います。\n" "それ以外の場合は、``value`` を引数として新しい :exc:`StopIteration` インスタ" "ンスを作成します。" msgid "Managing the Monitoring State" msgstr "モニタリング状態の管理" msgid "" "Monitoring states can be managed with the help of monitoring scopes. A scope " "would typically correspond to a Python function." msgstr "" "モニタリング状態は、モニタリングスコープを使って管理できます。\n" "通常、一つのスコープが一つの Python 関数に対応します。" msgid "" "Enter a monitored scope. ``event_types`` is an array of the event IDs for " "events that may be fired from the scope. For example, the ID of a " "``PY_START`` event is the value ``PY_MONITORING_EVENT_PY_START``, which is " "numerically equal to the base-2 logarithm of " "``sys.monitoring.events.PY_START``. ``state_array`` is an array with a " "monitoring state entry for each event in ``event_types``, it is allocated by " "the user but populated by :c:func:`!PyMonitoring_EnterScope` with " "information about the activation state of the event. The size of " "``event_types`` (and hence also of ``state_array``) is given in ``length``." msgstr "" "モニタリング対象のスコープに入ります。\n" "``event_types`` は、そのスコープから発生し得るイベントの ID の配列です。\n" "例えば ``PY_START`` イベントの ID は ``PY_MONITORING_EVENT_PY_START`` で、こ" "の値は ``sys.monitoring.events.PY_START`` の 2 を底とする対数に等しくなりま" "す。\n" "``state_array`` は、``event_types`` 内の各イベントに対応するモニタリング状態" "の配列です。\n" "領域は利用者が割り当て、イベントの有効化状態は :c:func:`!" "PyMonitoring_EnterScope` が設定します。\n" "``event_types`` (したがって ``state_array`` も) のサイズは ``length`` で指定" "します。" msgid "" "The ``version`` argument is a pointer to a value which should be allocated " "by the user together with ``state_array`` and initialized to 0, and then set " "only by :c:func:`!PyMonitoring_EnterScope` itself. It allows this function " "to determine whether event states have changed since the previous call, and " "to return quickly if they have not." msgstr "" "``version`` 引数は、利用者が ``state_array`` と一緒に領域を割り当て、0 に初期" "化しておく値へのポインタです。\n" "その後は :c:func:`!PyMonitoring_EnterScope` 自身だけが値を設定するようにして" "ください。\n" "この値によって、前回の呼び出し以降にイベントの状態が変化したかどうかを判断" "し、変化していなければ速やかに戻ることができます。" msgid "" "The scopes referred to here are lexical scopes: a function, class or " "method. :c:func:`!PyMonitoring_EnterScope` should be called whenever the " "lexical scope is entered. Scopes can be reentered, reusing the same " "*state_array* and *version*, in situations like when emulating a recursive " "Python function. When a code-like's execution is paused, such as when " "emulating a generator, the scope needs to be exited and re-entered." msgstr "" "ここでいうスコープは、関数、クラス、メソッドといった字句スコープです。\n" "字句スコープに入るたびに :c:func:`!PyMonitoring_EnterScope` を呼び出してくだ" "さい。\n" "再帰的な Python 関数をエミュレートする場合などは、同じ ``state_array`` と " "``version`` を再利用してスコープに再び入れます。\n" "ジェネレータをエミュレートする場合など、コードに相当するオブジェクトの実行を" "一時停止するときは、スコープを一度出てから再び入る必要があります。" msgid "The macros for *event_types* are:" msgstr "``event_types`` に使うマクロは次のとおりです。" msgid "Macro" msgstr "マクロ" #: ../../c-api/monitoring.rst:174 msgid "Event" msgstr "Event" msgid ":monitoring-event:`BRANCH_LEFT`" msgstr ":monitoring-event:`BRANCH_LEFT`" msgid ":monitoring-event:`BRANCH_RIGHT`" msgstr ":monitoring-event:`BRANCH_RIGHT`" msgid ":monitoring-event:`CALL`" msgstr ":monitoring-event:`CALL`" msgid ":monitoring-event:`C_RAISE`" msgstr ":monitoring-event:`C_RAISE`" msgid ":monitoring-event:`C_RETURN`" msgstr ":monitoring-event:`C_RETURN`" msgid ":monitoring-event:`EXCEPTION_HANDLED`" msgstr ":monitoring-event:`EXCEPTION_HANDLED`" msgid ":monitoring-event:`INSTRUCTION`" msgstr ":monitoring-event:`INSTRUCTION`" msgid ":monitoring-event:`JUMP`" msgstr ":monitoring-event:`JUMP`" msgid ":monitoring-event:`LINE`" msgstr ":monitoring-event:`LINE`" msgid ":monitoring-event:`PY_RESUME`" msgstr ":monitoring-event:`PY_RESUME`" msgid ":monitoring-event:`PY_RETURN`" msgstr ":monitoring-event:`PY_RETURN`" msgid ":monitoring-event:`PY_START`" msgstr ":monitoring-event:`PY_START`" msgid ":monitoring-event:`PY_THROW`" msgstr ":monitoring-event:`PY_THROW`" msgid ":monitoring-event:`PY_UNWIND`" msgstr ":monitoring-event:`PY_UNWIND`" msgid ":monitoring-event:`PY_YIELD`" msgstr ":monitoring-event:`PY_YIELD`" msgid ":monitoring-event:`RAISE`" msgstr ":monitoring-event:`RAISE`" msgid ":monitoring-event:`RERAISE`" msgstr ":monitoring-event:`RERAISE`" msgid ":monitoring-event:`STOP_ITERATION`" msgstr ":monitoring-event:`STOP_ITERATION`" msgid "" "Exit the last scope that was entered with :c:func:`!PyMonitoring_EnterScope`." msgstr ":c:func:`!PyMonitoring_EnterScope` で最後に入ったスコープを出ます。" msgid "" "Return true if the event corresponding to the event ID *ev* is a :ref:`local " "event <monitoring-event-local>`." msgstr "" "イベント ID ``ev`` に対応するイベントが :ref:`ローカルイベント <monitoring-" "event-local>` の場合に真を返します。" |
| You are visitor 01402520 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |