Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit ab4040e

Browse files
committed
Issue #20521: Change TOS to TOS in dis documentation.
TOS is an abbreviation of top-of-stack. Patch by Sven Berkvens-Matthijsse.
1 parent bcdfc6a commit ab4040e

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

Doc/library/dis.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -544,12 +544,12 @@ the stack so that it is available for further iterations of the loop.
544544

545545
.. opcode:: YIELD_VALUE
546546

547-
Pops ``TOS`` and yields it from a :term:`generator`.
547+
Pops TOS and yields it from a :term:`generator`.
548548

549549

550550
.. opcode:: YIELD_FROM
551551

552-
Pops ``TOS`` and delegates to it as a subiterator from a :term:`generator`.
552+
Pops TOS and delegates to it as a subiterator from a :term:`generator`.
553553

554554
.. versionadded:: 3.3
555555

@@ -770,9 +770,9 @@ the more significant byte last.
770770

771771
.. opcode:: FOR_ITER (delta)
772772

773-
``TOS`` is an :term:`iterator`. Call its :meth:`~iterator.__next__` method.
773+
TOS is an :term:`iterator`. Call its :meth:`~iterator.__next__` method.
774774
If this yields a new value, push it on the stack (leaving the iterator below
775-
it). If the iterator indicates it is exhausted ``TOS`` is popped, and the
775+
it). If the iterator indicates it is exhausted TOS is popped, and the
776776
byte code counter is incremented by *delta*.
777777

778778

0 commit comments

Comments
 (0)