Skip to content

Commit 04d035b

Browse files
committed
Align asyncio CLI intro with module docs
1 parent 7fbc90e commit 04d035b

1 file changed

Lines changed: 10 additions & 7 deletions

File tree

Doc/library/asyncio-tools.rst

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,18 +10,21 @@ Command-line introspection tools
1010

1111
-------------------------------------
1212

13-
The :mod:`!asyncio` module can be executed as a script to inspect the task
14-
graph of another running Python process without modifying it or restarting it:
13+
The :mod:`!asyncio` module can be invoked as a script via ``python -m
14+
asyncio`` to inspect the task graph of another running Python process without
15+
modifying it or restarting it. The :mod:`!asyncio.tools` submodule implements
16+
this interface.
17+
18+
The following commands inspect the process identified by ``PID``:
1519

1620
.. code-block:: shell-session
1721
18-
$ python -m asyncio ps [--retries N] PID
1922
$ python -m asyncio pstree [--retries N] PID
23+
$ python -m asyncio ps [--retries N] PID
2024
21-
``PID`` is the process ID of the Python process to inspect. The commands read
22-
the target process state without executing any code in it. They are only
23-
available on supported platforms and may require permission to inspect another
24-
process. See :ref:`permission-requirements` for details.
25+
The commands read the target process state without executing any code in it.
26+
They are only available on supported platforms and may require permission to
27+
inspect another process. See :ref:`permission-requirements` for details.
2528

2629
.. seealso::
2730

0 commit comments

Comments
 (0)