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/library/asyncio-tools.po at 3.14 · python/python-docs-ja Expand file tree/ Copy pathasyncio-tools.poMore file actions 334 lines (311 loc) · 14.9 KB / Copy pathasyncio-tools.poFile metadata and controls334 lines (311 loc) · 14.9 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 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 # 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, 2026 # #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.15\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2026-09-29 18:58+0000\n" "PO-Revision-Date: 2026-07-11 14:48+0000\n" "Last-Translator: python-doc bot, 2026\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/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 "Command-line introspection tools" msgstr "コマンドラインのイントロスペクションツール" msgid "**Source code:** :source:`Lib/asyncio/tools.py`" msgstr "**ソースコード:** :source:`Lib/asyncio/tools.py`" msgid "" "The :mod:`!asyncio` module can be invoked as a script via ``python -m " "asyncio`` to inspect the task graph of another running Python process " "without modifying it or restarting it. The :mod:`!asyncio.tools` submodule " "implements this interface." msgstr "" ":mod:`!asyncio` モジュールは ``python -m asyncio`` でスクリプトとして実行で" "き、実行中の別の Python プロセスを変更したり再起動したりせずに、そのタスクグ" "ラフを調べられます。\n" "このインターフェースは :mod:`!asyncio.tools` サブモジュールが実装しています。" msgid "The following commands inspect the process identified by ``PID``:" msgstr "次のコマンドは、``PID`` で指定したプロセスを調べます。" msgid "" "$ python -m asyncio pstree [--retries N] PID\n" "$ python -m asyncio ps [--retries N] PID" msgstr "" "$ python -m asyncio pstree [--retries N] PID\n" "$ python -m asyncio ps [--retries N] PID" msgid "" "The commands read the target process state without executing any code in it. " "They are only available on supported platforms and may require permission to " "inspect another process. See the :ref:`permission requirements <permission-" "requirements>` for details." msgstr "" "これらのコマンドは、対象プロセス内でコードを実行せずに、その状態を読み取りま" "す。\n" "サポートされているプラットフォームでのみ利用でき、別のプロセスを調べるための" "権限が必要な場合があります。\n" "詳しくは :ref:`必要な権限 <permission-requirements>` を参照してください。" msgid ":ref:`asyncio-graph`" msgstr ":ref:`asyncio-graph`" msgid "" "Programmatic APIs for inspecting the async call graph of a task or future in " "the current process." msgstr "" "現在のプロセス内の Task や Future の非同期呼び出しグラフを、プログラムから調" "べるための API です。" msgid "" "The command examples below use this program, which creates a task hierarchy " "suitable for inspection and prints its process ID:" msgstr "" "以下のコマンド例では、調査用のタスク階層を作成してプロセス ID を表示する次の" "プログラムを使います。" msgid "example.py" msgstr "example.py" msgid "" "import asyncio\n" "import os\n" "\n" "async def play(track):\n" " await asyncio.sleep(3600)\n" " print(f\"🎵 Finished: {track}\")\n" "\n" "async def album(name, tracks):\n" " async with asyncio.TaskGroup() as tg:\n" " for track in tracks:\n" " tg.create_task(play(track), name=track)\n" "\n" "async def main():\n" " print(f\"PID: {os.getpid()}\")\n" " async with asyncio.TaskGroup() as tg:\n" " tg.create_task(\n" " album(\"Sundowning\", [\"TNDNBTG\", \"Levitate\"]),\n" " name=\"Sundowning\",\n" " )\n" " tg.create_task(\n" " album(\"TMBTE\", [\"DYWTYLM\", \"Aqua Regia\"]),\n" " name=\"TMBTE\",\n" " )\n" "\n" "asyncio.run(main())" msgstr "" "import asyncio\n" "import os\n" "\n" "async def play(track):\n" " await asyncio.sleep(3600)\n" " print(f\"🎵 Finished: {track}\")\n" "\n" "async def album(name, tracks):\n" " async with asyncio.TaskGroup() as tg:\n" " for track in tracks:\n" " tg.create_task(play(track), name=track)\n" "\n" "async def main():\n" " print(f\"PID: {os.getpid()}\")\n" " async with asyncio.TaskGroup() as tg:\n" " tg.create_task(\n" " album(\"Sundowning\", [\"TNDNBTG\", \"Levitate\"]),\n" " name=\"Sundowning\",\n" " )\n" " tg.create_task(\n" " album(\"TMBTE\", [\"DYWTYLM\", \"Aqua Regia\"]),\n" " name=\"TMBTE\",\n" " )\n" "\n" "asyncio.run(main())" msgid "Run the program in one terminal and leave it running:" msgstr "1 つの端末でプログラムを起動し、実行したままにします。" msgid "" "$ python example.py\n" "PID: 12345" msgstr "" "$ python example.py\n" "PID: 12345" msgid "" "Then pass the printed process ID to the commands from another terminal. " "Thread IDs, task IDs, file paths, and line numbers vary between runs and " "source layouts." msgstr "" "次に、表示されたプロセス ID を、別の端末からコマンドに渡します。\n" "スレッド ID、タスク ID、ファイルパス、行番号は、実行時やソースコードの配置に" "よって異なります。" #: ../../library/asyncio-tools.rst:81 msgid "Command-line options" msgstr "コマンドラインオプション" msgid "" "Display task and coroutine relationships as a tree. Each task is shown with " "its full coroutine stack, nested under the task (if any) that is awaiting " "it. This subcommand is useful for quickly identifying which branch of a " "task hierarchy is blocked and where in its coroutine stack execution has " "paused:" msgstr "" "タスクとコルーチンの関係をツリーとして表示します。\n" "各タスクはコルーチンのスタック全体とともに表示され、そのタスクを await してい" "るタスクがあれば、その下に入れ子で配置されます。\n" "このサブコマンドは、タスク階層のどの枝がブロックしていて、コルーチンのスタッ" "クのどこで実行が止まっているかを素早く把握するのに役立ちます。" msgid "" "$ python -m asyncio pstree 12345\n" "└── (T) Task-1\n" " └── main example.py:12\n" " └── TaskGroup.__aexit__ Lib/asyncio/taskgroups.py:75\n" " └── TaskGroup._aexit Lib/asyncio/taskgroups.py:124\n" " ├── (T) Sundowning\n" " │ └── album example.py:7\n" " │ └── TaskGroup.__aexit__ Lib/asyncio/" "taskgroups.py:75\n" " │ └── TaskGroup._aexit Lib/asyncio/" "taskgroups.py:124\n" " │ ├── (T) TNDNBTG\n" " │ │ └── play example.py:4\n" " │ │ └── sleep Lib/asyncio/tasks.py:702\n" " │ └── (T) Levitate\n" " │ └── play example.py:4\n" " │ └── sleep Lib/asyncio/tasks.py:702\n" " └── (T) TMBTE\n" " └── album example.py:7\n" " └── TaskGroup.__aexit__ Lib/asyncio/" "taskgroups.py:75\n" " └── TaskGroup._aexit Lib/asyncio/" "taskgroups.py:124\n" " ├── (T) DYWTYLM\n" " │ └── play example.py:4\n" " │ └── sleep Lib/asyncio/tasks.py:702\n" " └── (T) Aqua Regia\n" " └── play example.py:4\n" " └── sleep Lib/asyncio/tasks.py:702" msgstr "" "$ python -m asyncio pstree 12345\n" "└── (T) Task-1\n" " └── main example.py:12\n" " └── TaskGroup.__aexit__ Lib/asyncio/taskgroups.py:75\n" " └── TaskGroup._aexit Lib/asyncio/taskgroups.py:124\n" " ├── (T) Sundowning\n" " │ └── album example.py:7\n" " │ └── TaskGroup.__aexit__ Lib/asyncio/" "taskgroups.py:75\n" " │ └── TaskGroup._aexit Lib/asyncio/" "taskgroups.py:124\n" " │ ├── (T) TNDNBTG\n" " │ │ └── play example.py:4\n" " │ │ └── sleep Lib/asyncio/tasks.py:702\n" " │ └── (T) Levitate\n" " │ └── play example.py:4\n" " │ └── sleep Lib/asyncio/tasks.py:702\n" " └── (T) TMBTE\n" " └── album example.py:7\n" " └── TaskGroup.__aexit__ Lib/asyncio/" "taskgroups.py:75\n" " └── TaskGroup._aexit Lib/asyncio/" "taskgroups.py:124\n" " ├── (T) DYWTYLM\n" " │ └── play example.py:4\n" " │ └── sleep Lib/asyncio/tasks.py:702\n" " └── (T) Aqua Regia\n" " └── play example.py:4\n" " └── sleep Lib/asyncio/tasks.py:702" msgid "" "If the await graph contains a cycle, ``pstree`` reports an error instead of " "printing a tree. A cycle in the await graph is unusual and typically " "indicates a programming error:" msgstr "" "await の関係を表すグラフに循環がある場合、``pstree`` はツリーを表示せずにエ" "ラーを報告します。\n" "このグラフに循環があるのはまれで、通常はプログラムの誤りを示します。" msgid "" "$ python -m asyncio pstree 12345\n" "ERROR: await-graph contains cycles - cannot print a tree!\n" "\n" "cycle: Task-2 → Task-3 → Task-2" msgstr "" "$ python -m asyncio pstree 12345\n" "ERROR: await-graph contains cycles - cannot print a tree!\n" "\n" "cycle: Task-2 → Task-3 → Task-2" msgid "" "Display a flat table of all pending tasks in the process *PID*. Each row " "shows the event-loop thread ID, task ID and name, coroutine stack, and the " "awaiting task's stack, name, and ID, if any." msgstr "" "プロセス *PID* 内の未完了のタスクをすべて、階層のない表で表示します。\n" "各行には、イベントループのスレッド ID、タスクの ID と名前、コルーチンのスタッ" "クを表示します。\n" "そのタスクを await しているタスクがあれば、そのスタック、名前、ID も表示しま" "す。" msgid "" "This subcommand prints all tasks regardless of whether the await graph " "contains cycles:" msgstr "" "このサブコマンドは、await の関係を表すグラフに循環があるかどうかにかかわら" "ず、すべてのタスクを表示します。" msgid "" "$ python -m asyncio ps 12345\n" "tid task id task name coroutine " "stack awaiter " "chain awaiter name awaiter id\n" "------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------\n" "18445801 0x10a456060 Task-1 TaskGroup._aexit -> " "TaskGroup.__aexit__ -> " "main " "0x0\n" "18445801 0x10a439f60 Sundowning TaskGroup._aexit -> " "TaskGroup.__aexit__ -> album TaskGroup._aexit -> TaskGroup.__aexit__ -> " "main Task-1 0x10a456060\n" "18445801 0x10a439d70 TMBTE TaskGroup._aexit -> " "TaskGroup.__aexit__ -> album TaskGroup._aexit -> TaskGroup.__aexit__ -> " "main Task-1 0x10a456060\n" "18445801 0x10a2a3a80 TNDNBTG sleep -> " "play TaskGroup._aexit -> " "TaskGroup.__aexit__ -> album Sundowning 0x10a439f60\n" "18445801 0x10a2a38a0 Levitate sleep -> " "play TaskGroup._aexit -> " "TaskGroup.__aexit__ -> album Sundowning 0x10a439f60\n" "18445801 0x10a2d7150 DYWTYLM sleep -> " "play TaskGroup._aexit -> " "TaskGroup.__aexit__ -> album TMBTE 0x10a439d70\n" "18445801 0x10a6bdaa0 Aqua Regia sleep -> " "play TaskGroup._aexit -> " "TaskGroup.__aexit__ -> album TMBTE 0x10a439d70" msgstr "" "$ python -m asyncio ps 12345\n" "tid task id task name coroutine " "stack awaiter " "chain awaiter name awaiter id\n" "------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------\n" "18445801 0x10a456060 Task-1 TaskGroup._aexit -> " "TaskGroup.__aexit__ -> " "main " "0x0\n" "18445801 0x10a439f60 Sundowning TaskGroup._aexit -> " "TaskGroup.__aexit__ -> album TaskGroup._aexit -> TaskGroup.__aexit__ -> " "main Task-1 0x10a456060\n" "18445801 0x10a439d70 TMBTE TaskGroup._aexit -> " "TaskGroup.__aexit__ -> album TaskGroup._aexit -> TaskGroup.__aexit__ -> " "main Task-1 0x10a456060\n" "18445801 0x10a2a3a80 TNDNBTG sleep -> " "play TaskGroup._aexit -> " "TaskGroup.__aexit__ -> album Sundowning 0x10a439f60\n" "18445801 0x10a2a38a0 Levitate sleep -> " "play TaskGroup._aexit -> " "TaskGroup.__aexit__ -> album Sundowning 0x10a439f60\n" "18445801 0x10a2d7150 DYWTYLM sleep -> " "play TaskGroup._aexit -> " "TaskGroup.__aexit__ -> album TMBTE 0x10a439d70\n" "18445801 0x10a6bdaa0 Aqua Regia sleep -> " "play TaskGroup._aexit -> " "TaskGroup.__aexit__ -> album TMBTE 0x10a439d70" msgid "" "Retry failed attempts to inspect the target process up to *N* times. This " "can help when the target process changes while its state is being read." msgstr "" "対象プロセスの調査に失敗した場合、最大 *N* 回再試行します。\n" "状態の読み取り中に対象プロセスが変化する場合に役立ちます。" |
| 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. |