[Python-checkins] cpython (merge 3.4 -> default): Issue #20521: Change ``TOS`` to TOS in dis documentation.

berker.peksag python-checkins at python.org
Mon Mar 2 05:33:50 CET 2015


https://hg.python.org/cpython/rev/a331d71bdc0a
changeset: 94812:a331d71bdc0a
parent: 94810:4cadc2c65609
parent: 94811:617feb5d8af2
user: Berker Peksag <berker.peksag at gmail.com>
date: Mon Mar 02 06:34:00 2015 +0200
summary:
 Issue #20521: Change ``TOS`` to TOS in dis documentation.
TOS is an abbreviation of top-of-stack.
Patch by Sven Berkvens-Matthijsse.
files:
 Doc/library/dis.rst | 8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/Doc/library/dis.rst b/Doc/library/dis.rst
--- a/Doc/library/dis.rst
+++ b/Doc/library/dis.rst
@@ -554,12 +554,12 @@
 
 .. 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 @@
 
 .. 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*.
 
 
-- 
Repository URL: https://hg.python.org/cpython


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /