Skip to content

Commit 4c60f2c

Browse files
committed
mention runpy
1 parent d29fd2a commit 4c60f2c

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

Doc/library/__main__.rst

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -61,10 +61,11 @@ directly from the command line using the :option:`-m` flag. For example::
6161

6262
python3 -m bandclass
6363

64-
This command will cause ``__main__.py`` to run. How you utilize this
65-
mechanism will depend on the nature of the package you are writing, but
66-
in this hypothetical case, it might make sense to allow the teacher to search
67-
for students or parents using :mod:`argparse`::
64+
This command will cause ``__main__.py`` to run. For more details about the
65+
:option:`-m` flag, see :mod:`runpy`. How you utilize this mechanism will depend
66+
on the nature of the package you are writing, but in this hypothetical case, it
67+
might make sense to allow the teacher to search for students or parents using
68+
:mod:`argparse`::
6869

6970
# bandclass/__main__.py
7071

0 commit comments

Comments
 (0)