Issue #20521: Change ``TOS`` to TOS in dis documentation.
TOS is an abbreviation of top-of-stack. Patch by Sven Berkvens-Matthijsse.
This commit is contained in:
commit
6897e5688d
|
@ -554,12 +554,12 @@ the stack so that it is available for further iterations of the loop.
|
||||||
|
|
||||||
.. opcode:: YIELD_VALUE
|
.. opcode:: YIELD_VALUE
|
||||||
|
|
||||||
Pops ``TOS`` and yields it from a :term:`generator`.
|
Pops TOS and yields it from a :term:`generator`.
|
||||||
|
|
||||||
|
|
||||||
.. opcode:: YIELD_FROM
|
.. 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
|
.. versionadded:: 3.3
|
||||||
|
|
||||||
|
@ -780,9 +780,9 @@ the more significant byte last.
|
||||||
|
|
||||||
.. opcode:: FOR_ITER (delta)
|
.. 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
|
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*.
|
byte code counter is incremented by *delta*.
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue