Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
ea6a28c9
Commit
ea6a28c9
authored
Nov 07, 2018
by
Andrés Delfino
Committed by
Serhiy Storchaka
Nov 07, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Mark -c and -O as command line options in reStructuredText. (GH-10103)
parent
c64583b6
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
3 deletions
+3
-3
Doc/reference/executionmodel.rst
Doc/reference/executionmodel.rst
+1
-1
Doc/reference/import.rst
Doc/reference/import.rst
+1
-1
Doc/reference/simple_stmts.rst
Doc/reference/simple_stmts.rst
+1
-1
No files found.
Doc/reference/executionmodel.rst
View file @
ea6a28c9
...
...
@@ -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.
...
...
Doc/reference/import.rst
View file @
ea6a28c9
...
...
@@ -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
...
...
Doc/reference/simple_stmts.rst
View file @
ea6a28c9
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment