summaryrefslogtreecommitdiff
path: root/Doc/library/dis.rst
diff options
context:
space:
mode:
authorBerker Peksag <berker.peksag@gmail.com>2015-03-02 06:34:00 +0200
committerBerker Peksag <berker.peksag@gmail.com>2015-03-02 06:34:00 +0200
commit6897e5688d938d1950227bc23d1467ac86832e8a (patch)
tree3c6932c91ff0467978b973e854379cb4f158bf78 /Doc/library/dis.rst
parentfc080fcc7cb4bcb08b076e819fe6e7aadc2a1c13 (diff)
parentab4040e3c636361b4ba5fe3230d12be530aebe61 (diff)
downloadcpython-git-6897e5688d938d1950227bc23d1467ac86832e8a.tar.gz
Issue #20521: Change ``TOS`` to TOS in dis documentation.
TOS is an abbreviation of top-of-stack. Patch by Sven Berkvens-Matthijsse.
Diffstat (limited to 'Doc/library/dis.rst')
-rw-r--r--Doc/library/dis.rst8
1 files changed, 4 insertions, 4 deletions
diff --git a/Doc/library/dis.rst b/Doc/library/dis.rst
index 3b419e6c8a..cdb6350632 100644
--- a/Doc/library/dis.rst
+++ b/Doc/library/dis.rst
@@ -554,12 +554,12 @@ the stack so that it is available for further iterations of the loop.
.. opcode:: YIELD_VALUE
- Pops ``TOS`` and yields it from a :term:`generator`.
+ Pops TOS and yields it from a :term:`generator`.
.. opcode:: YIELD_FROM
- Pops ``TOS`` and delegates to it as a subiterator from a :term:`generator`.
+ Pops TOS and delegates to it as a subiterator from a :term:`generator`.
.. versionadded:: 3.3
@@ -780,9 +780,9 @@ the more significant byte last.
.. opcode:: FOR_ITER (delta)
- ``TOS`` is an :term:`iterator`. Call its :meth:`~iterator.__next__` method.
+ TOS is an :term:`iterator`. Call its :meth:`~iterator.__next__` method.
If this yields a new value, push it on the stack (leaving the iterator below
- it). If the iterator indicates it is exhausted ``TOS`` is popped, and the
+ it). If the iterator indicates it is exhausted TOS is popped, and the
byte code counter is incremented by *delta*.