summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorBerker Peksag <berker.peksag@gmail.com>2015-03-02 04:33:30 (GMT)
committerBerker Peksag <berker.peksag@gmail.com>2015-03-02 04:33:30 (GMT)
commitab4040e3c636361b4ba5fe3230d12be530aebe61 (patch)
tree73d654fd6cf8617cad01ed2161aedbbe6e828fcd /Doc
parentbcdfc6a1fa9eabb06b886a82218ebae3384784d0 (diff)
downloadcpython-ab4040e3c636361b4ba5fe3230d12be530aebe61.zip
cpython-ab4040e3c636361b4ba5fe3230d12be530aebe61.tar.gz
cpython-ab4040e3c636361b4ba5fe3230d12be530aebe61.tar.bz2
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')
-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 1b7cfe1..5f1923f 100644
--- a/Doc/library/dis.rst
+++ b/Doc/library/dis.rst
@@ -544,12 +544,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
@@ -770,9 +770,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*.