diff options
author | Mark Shannon <mark@hotpy.org> | 2023-01-06 14:47:57 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-06 14:47:57 (GMT) |
commit | 78068126a1f2172ff61a0871ba43d8530bc73905 (patch) | |
tree | aa42d4c6d64130587e2f62d61389496693de86e4 /Doc/library/dis.rst | |
parent | 659c2607f5b44a8a18a0840d1ac39df8a3219dd5 (diff) | |
download | cpython-78068126a1f2172ff61a0871ba43d8530bc73905.zip cpython-78068126a1f2172ff61a0871ba43d8530bc73905.tar.gz cpython-78068126a1f2172ff61a0871ba43d8530bc73905.tar.bz2 |
GH-99005: More intrinsics (GH-100774)
* Remove UNARY_POSITIVE, LIST_TO_TUPLE and ASYNC_GEN_WRAP, replacing them with intrinsics.
Diffstat (limited to 'Doc/library/dis.rst')
-rw-r--r-- | Doc/library/dis.rst | 22 |
1 files changed, 3 insertions, 19 deletions
diff --git a/Doc/library/dis.rst b/Doc/library/dis.rst index 33ef6d7..334b9df 100644 --- a/Doc/library/dis.rst +++ b/Doc/library/dis.rst @@ -460,10 +460,6 @@ The Python compiler currently generates the following bytecode instructions. Unary operations take the top of the stack, apply the operation, and push the result back on the stack. -.. opcode:: UNARY_POSITIVE - - Implements ``TOS = +TOS``. - .. opcode:: UNARY_NEGATIVE @@ -906,13 +902,6 @@ iterations of the loop. .. versionadded:: 3.6 -.. opcode:: LIST_TO_TUPLE - - Pops a list from the stack and pushes a tuple containing the same values. - - .. versionadded:: 3.9 - - .. opcode:: LIST_EXTEND (i) Calls ``list.extend(TOS1[-i], TOS)``. Used to build lists. @@ -1372,14 +1361,6 @@ iterations of the loop. .. versionadded:: 3.11 -.. opcode:: ASYNC_GEN_WRAP - - Wraps the value on top of the stack in an ``async_generator_wrapped_value``. - Used to yield in async generators. - - .. versionadded:: 3.11 - - .. opcode:: HAVE_ARGUMENT This is not really an opcode. It identifies the dividing line between @@ -1411,6 +1392,9 @@ iterations of the loop. * ``1`` Prints the argument to standard out. Used in the REPL. * ``2`` Performs ``import *`` for the named module. * ``3`` Extracts the return value from a ``StopIteration`` exception. + * ``4`` Wraps an aync generator value + * ``5`` Performs the unary ``+`` operation + * ``6`` Converts a list to a tuple .. versionadded:: 3.12 |