diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2018-11-07 09:53:27 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-11-07 09:53:27 -0800 |
commit | e422de828fba695a49dc7e9cbef30e87d4c4f249 (patch) | |
tree | 105c2353f05c030c7a5ad12ea3792a1b5c3306b4 /Doc/reference | |
parent | 25bd1073996f26ad4895d3eb2d09315361c3cc84 (diff) | |
download | cpython-git-e422de828fba695a49dc7e9cbef30e87d4c4f249.tar.gz |
Mark -c and -O as command line options in reStructuredText. (GH-10103)
(cherry picked from commit ea6a28c9f7e4baa5fe775cebce697a14a7d7da8b)
Co-authored-by: Andrés Delfino <adelfino@gmail.com>
Diffstat (limited to 'Doc/reference')
-rw-r--r-- | Doc/reference/executionmodel.rst | 2 | ||||
-rw-r--r-- | Doc/reference/import.rst | 2 | ||||
-rw-r--r-- | Doc/reference/simple_stmts.rst | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/Doc/reference/executionmodel.rst b/Doc/reference/executionmodel.rst index 5c83181440..1a69e972f2 100644 --- a/Doc/reference/executionmodel.rst +++ b/Doc/reference/executionmodel.rst @@ -22,7 +22,7 @@ The following are blocks: a module, a function body, and a class definition. Each command typed interactively is a block. A script file (a file given as standard input to the interpreter or specified as a command line argument to the interpreter) is a code block. A script command (a command specified on the -interpreter command line with the '**-c**' option) is a code block. The string +interpreter command line with the :option:`-c` option) is a code block. The string argument passed to the built-in functions :func:`eval` and :func:`exec` is a code block. diff --git a/Doc/reference/import.rst b/Doc/reference/import.rst index c3a20314f7..b295eed9d8 100644 --- a/Doc/reference/import.rst +++ b/Doc/reference/import.rst @@ -925,7 +925,7 @@ In :ref:`the remaining cases <using-on-interface-options>` :mod:`__main__` does not correspond directly with an importable module: - interactive prompt -- -c switch +- :option:`-c` option - running from stdin - running directly from a source or bytecode file diff --git a/Doc/reference/simple_stmts.rst b/Doc/reference/simple_stmts.rst index 9246939dbd..3ab0029698 100644 --- a/Doc/reference/simple_stmts.rst +++ b/Doc/reference/simple_stmts.rst @@ -402,7 +402,7 @@ The extended form, ``assert expression1, expression2``, is equivalent to :: These equivalences assume that :const:`__debug__` and :exc:`AssertionError` refer to the built-in variables with those names. In the current implementation, the built-in variable :const:`__debug__` is ``True`` under normal circumstances, -``False`` when optimization is requested (command line option -O). The current +``False`` when optimization is requested (command line option :option:`-O`). The current code generator emits no code for an assert statement when optimization is requested at compile time. Note that it is unnecessary to include the source code for the expression that failed in the error message; it will be displayed |