summaryrefslogtreecommitdiffstats
path: root/Doc/library
diff options
context:
space:
mode:
authorBerker Peksag <berker.peksag@gmail.com>2014-12-09 23:47:02 (GMT)
committerBerker Peksag <berker.peksag@gmail.com>2014-12-09 23:47:02 (GMT)
commit8b1cbd2b7cd8752462c68b17447446b54065691c (patch)
tree89fda316059f25e9157c882da6a1b53ac8749c87 /Doc/library
parent7de29687f22fff5c38ca252de4167e043b28e470 (diff)
downloadcpython-8b1cbd2b7cd8752462c68b17447446b54065691c.zip
cpython-8b1cbd2b7cd8752462c68b17447446b54065691c.tar.gz
cpython-8b1cbd2b7cd8752462c68b17447446b54065691c.tar.bz2
Issue #12602: Add missing cross-references to runpy and using/cmdline docs.
Patch by Éric Araujo.
Diffstat (limited to 'Doc/library')
-rw-r--r--Doc/library/runpy.rst13
1 files changed, 10 insertions, 3 deletions
diff --git a/Doc/library/runpy.rst b/Doc/library/runpy.rst
index db1db3e..7293f15 100644
--- a/Doc/library/runpy.rst
+++ b/Doc/library/runpy.rst
@@ -75,6 +75,9 @@ The :mod:`runpy` module provides two functions:
arguments. It is recommended that the :mod:`sys` module be left alone when
invoking this function from threaded code.
+ .. seealso::
+ The :option:`-m` option offering equivalent functionality from the
+ command line.
.. versionchanged:: 3.1
Added ability to execute packages by looking for a ``__main__`` submodule.
@@ -146,6 +149,10 @@ The :mod:`runpy` module provides two functions:
limitations still apply, use of this function in threaded code should be
either serialised with the import lock or delegated to a separate process.
+ .. seealso::
+ :ref:`using-on-interface-options` for equivalent functionality on the
+ command line (``python path/to/script``).
+
.. versionadded:: 3.2
.. versionchanged:: 3.4
@@ -156,13 +163,13 @@ The :mod:`runpy` module provides two functions:
.. seealso::
- :pep:`338` - Executing modules as scripts
+ :pep:`338` -- Executing modules as scripts
PEP written and implemented by Nick Coghlan.
- :pep:`366` - Main module explicit relative imports
+ :pep:`366` -- Main module explicit relative imports
PEP written and implemented by Nick Coghlan.
- :pep:`451` - A ModuleSpec Type for the Import System
+ :pep:`451` -- A ModuleSpec Type for the Import System
PEP written and implemented by Eric Snow
:ref:`using-on-general` - CPython command line details