summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2014-11-11 08:02:57 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2014-11-11 08:02:57 (GMT)
commit04eee639499f3d643e14099b7374bc8a259af015 (patch)
tree5ca43e67621c07778a2ec95faf3de6146143dc88
parente927757df62e62f5d45640ee76e4048703d8d419 (diff)
downloadcpython-04eee639499f3d643e14099b7374bc8a259af015.zip
cpython-04eee639499f3d643e14099b7374bc8a259af015.tar.gz
cpython-04eee639499f3d643e14099b7374bc8a259af015.tar.bz2
Issue #22845: Improved formatting of dis documentation.
-rw-r--r--Doc/library/dis.rst10
1 files changed, 5 insertions, 5 deletions
diff --git a/Doc/library/dis.rst b/Doc/library/dis.rst
index 8dee901..c9f5e6b 100644
--- a/Doc/library/dis.rst
+++ b/Doc/library/dis.rst
@@ -446,7 +446,7 @@ Miscellaneous opcodes.
Implements the expression statement for the interactive mode. TOS is removed
from the stack and printed. In non-interactive mode, an expression statement is
- terminated with ``POP_STACK``.
+ terminated with :opcode:`POP_TOP`.
.. opcode:: PRINT_ITEM ()
@@ -481,7 +481,7 @@ Miscellaneous opcodes.
.. opcode:: CONTINUE_LOOP (target)
Continues a loop due to a :keyword:`continue` statement. *target* is the
- address to jump to (which should be a ``FOR_ITER`` instruction).
+ address to jump to (which should be a :opcode:`FOR_ITER` instruction).
.. opcode:: LIST_APPEND (i)
@@ -838,21 +838,21 @@ the more significant byte last.
.. opcode:: CALL_FUNCTION_VAR (argc)
- Calls a function. *argc* is interpreted as in ``CALL_FUNCTION``. The top element
+ Calls a function. *argc* is interpreted as in :opcode:`CALL_FUNCTION`. The top element
on the stack contains the variable argument list, followed by keyword and
positional arguments.
.. opcode:: CALL_FUNCTION_KW (argc)
- Calls a function. *argc* is interpreted as in ``CALL_FUNCTION``. The top element
+ Calls a function. *argc* is interpreted as in :opcode:`CALL_FUNCTION`. The top element
on the stack contains the keyword arguments dictionary, followed by explicit
keyword and positional arguments.
.. opcode:: CALL_FUNCTION_VAR_KW (argc)
- Calls a function. *argc* is interpreted as in ``CALL_FUNCTION``. The top
+ Calls a function. *argc* is interpreted as in :opcode:`CALL_FUNCTION`. The top
element on the stack contains the keyword arguments dictionary, followed by the
variable-arguments tuple, followed by explicit keyword and positional arguments.