]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Mark -c and -O as command line options in reStructuredText. (GH-10103)
authorAndrés Delfino <adelfino@gmail.com>
Wed, 7 Nov 2018 17:06:45 +0000 (14:06 -0300)
committerSerhiy Storchaka <storchaka@gmail.com>
Wed, 7 Nov 2018 17:06:45 +0000 (19:06 +0200)
Doc/reference/executionmodel.rst
Doc/reference/import.rst
Doc/reference/simple_stmts.rst

index 5c83181440bc5727919a38804d7aa5f1fb93eb09..1a69e972f2cb7db6d9b7103d5da48e59975a35f6 100644 (file)
@@ -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.
 
index 7c4f275a434273ea3d22408c33b25d2d9c61b094..d36d7d6a707ebf0a7afd1908db785c38d12e79c9 100644 (file)
@@ -951,7 +951,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
 
index 1fe1cde1d8d23e6c7c9f4faa294d6a72e878559c..5198c0408ce2865ef99a7293de60f947dc208800 100644 (file)
@@ -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