Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions Doc/using/cmdline.rst
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@ additional methods of invocation:
* When called with ``-c command``, it executes the Python statement(s) given as
*command*. Here *command* may contain multiple statements separated by
newlines. Leading whitespace is significant in Python statements!
* When called with ``-m module-name``, the given module is located on the
Python module path and executed as a script.
* When called with ``-m module-name``, the given module is located using the standard
import mechanism and executed as a script.

In non-interactive mode, the entire input is parsed before it is executed.

Expand All @@ -75,8 +75,8 @@ source.

.. option:: -m <module-name>

Search :data:`sys.path` for the named module and execute its contents as
the :mod:`__main__` module.
Locate the module using the standard import mechanism and execute its contents
as the :mod:`__main__` module.

Since the argument is a *module* name, you must not give a file extension
(``.py``). The module name should be a valid absolute Python module name, but
Expand Down
Loading