summaryrefslogtreecommitdiffstats
path: root/Doc/library
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2018-02-01 12:47:22 (GMT)
committerGitHub <noreply@github.com>2018-02-01 12:47:22 (GMT)
commit8cf7ebb32dbdfb976ac92afd264e7587fb0da7ae (patch)
treeb266c200ba3eb0916b53b77481e24ffa0c665b5d /Doc/library
parent688b6dec4e8847a154ef27257069291175764794 (diff)
downloadcpython-8cf7ebb32dbdfb976ac92afd264e7587fb0da7ae.zip
cpython-8cf7ebb32dbdfb976ac92afd264e7587fb0da7ae.tar.gz
cpython-8cf7ebb32dbdfb976ac92afd264e7587fb0da7ae.tar.bz2
[3.6] bpo-32565: Add missed versionadded directives for all new opcodes. (GH-5199). (GH-5471)
(cherry picked from commit 12e7cd8a51956a5ce373aac692ae6366c5f86584) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Diffstat (limited to 'Doc/library')
-rw-r--r--Doc/library/dis.rst32
1 files changed, 32 insertions, 0 deletions
diff --git a/Doc/library/dis.rst b/Doc/library/dis.rst
index c68b15a..3f615db 100644
--- a/Doc/library/dis.rst
+++ b/Doc/library/dis.rst
@@ -318,12 +318,16 @@ The Python compiler currently generates the following bytecode instructions.
Duplicates the reference on top of the stack.
+ .. versionadded:: 3.2
+
.. opcode:: DUP_TOP_TWO
Duplicates the two references on top of the stack, leaving them in the
same order.
+ .. versionadded:: 3.2
+
**Unary operations**
@@ -534,29 +538,39 @@ the original TOS1.
the CO_ITERABLE_COROUTINE flag, or resolves
``o.__await__``.
+ .. versionadded:: 3.5
+
.. opcode:: GET_AITER
Implements ``TOS = get_awaitable(TOS.__aiter__())``. See ``GET_AWAITABLE``
for details about ``get_awaitable``
+ .. versionadded:: 3.5
+
.. opcode:: GET_ANEXT
Implements ``PUSH(get_awaitable(TOS.__anext__()))``. See ``GET_AWAITABLE``
for details about ``get_awaitable``
+ .. versionadded:: 3.5
+
.. opcode:: BEFORE_ASYNC_WITH
Resolves ``__aenter__`` and ``__aexit__`` from the object on top of the
stack. Pushes ``__aexit__`` and result of ``__aenter__()`` to the stack.
+ .. versionadded:: 3.5
+
.. opcode:: SETUP_ASYNC_WITH
Creates a new frame object.
+ .. versionadded:: 3.5
+
**Miscellaneous opcodes**
@@ -594,6 +608,8 @@ the original TOS1.
Calls ``dict.setitem(TOS1[-i], TOS, TOS1)``. Used to implement dict
comprehensions.
+ .. versionadded:: 3.1
+
For all of the :opcode:`SET_ADD`, :opcode:`LIST_APPEND` and :opcode:`MAP_ADD`
instructions, while the added value or key/value pair is popped off, the
container object remains on the stack so that it is available for further
@@ -616,6 +632,7 @@ iterations of the loop.
.. versionadded:: 3.3
+
.. opcode:: SETUP_ANNOTATIONS
Checks whether ``__annotations__`` is defined in ``locals()``, if not it is
@@ -625,6 +642,7 @@ iterations of the loop.
.. versionadded:: 3.6
+
.. opcode:: IMPORT_STAR
Loads all symbols not starting with ``'_'`` directly from the module TOS to
@@ -670,6 +688,8 @@ iterations of the loop.
store it in (a) variable(s) (:opcode:`STORE_FAST`, :opcode:`STORE_NAME`, or
:opcode:`UNPACK_SEQUENCE`).
+ .. versionadded:: 3.2
+
.. opcode:: WITH_CLEANUP_START
@@ -900,23 +920,31 @@ All of the following opcodes use their arguments.
If TOS is true, sets the bytecode counter to *target*. TOS is popped.
+ .. versionadded:: 3.1
+
.. opcode:: POP_JUMP_IF_FALSE (target)
If TOS is false, sets the bytecode counter to *target*. TOS is popped.
+ .. versionadded:: 3.1
+
.. opcode:: JUMP_IF_TRUE_OR_POP (target)
If TOS is true, sets the bytecode counter to *target* and leaves TOS on the
stack. Otherwise (TOS is false), TOS is popped.
+ .. versionadded:: 3.1
+
.. opcode:: JUMP_IF_FALSE_OR_POP (target)
If TOS is false, sets the bytecode counter to *target* and leaves TOS on the
stack. Otherwise (TOS is true), TOS is popped.
+ .. versionadded:: 3.1
+
.. opcode:: JUMP_ABSOLUTE (target)
@@ -996,6 +1024,8 @@ All of the following opcodes use their arguments.
consulting the cell. This is used for loading free variables in class
bodies.
+ .. versionadded:: 3.4
+
.. opcode:: STORE_DEREF (i)
@@ -1008,6 +1038,8 @@ All of the following opcodes use their arguments.
Empties the cell contained in slot *i* of the cell and free variable storage.
Used by the :keyword:`del` statement.
+ .. versionadded:: 3.2
+
.. opcode:: RAISE_VARARGS (argc)