File tree Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -1809,6 +1809,22 @@ iterations of the loop.
18091809 .. versionadded :: 3.11
18101810
18111811
1812+ .. opcode :: SEND_GEN (delta)
1813+
1814+ Specialized version of :opcode: `SEND ` for generator and coroutine objects.
1815+ This is an optimized form that directly executes the generator frame without
1816+ the overhead of a full method call.
1817+
1818+ Equivalent to ``STACK[-1] = STACK[-2].send(STACK[-1]) `` when ``STACK[-2] ``
1819+ is a generator or coroutine object in a valid state.
1820+
1821+ If the call raises :exc: `StopIteration `, pop the top value from the stack,
1822+ push the exception's ``value `` attribute, and increment the bytecode counter
1823+ by *delta *.
1824+
1825+ .. versionadded :: 3.12
1826+
1827+
18121828.. opcode :: HAVE_ARGUMENT
18131829
18141830 This is not really an opcode. It identifies the dividing line between
You can’t perform that action at this time.
0 commit comments