@@ -607,15 +607,6 @@ the original TOS1.
607607 .. versionadded :: 3.12
608608
609609
610- .. opcode :: STOPITERATION_ERROR
611-
612- Handles a StopIteration raised in a generator or coroutine.
613- If TOS is an instance of :exc: `StopIteration `, or :exc: `StopAsyncIteration `
614- replace it with a :exc: `RuntimeError `.
615-
616- .. versionadded :: 3.12
617-
618-
619610.. opcode :: BEFORE_ASYNC_WITH
620611
621612 Resolves ``__aenter__ `` and ``__aexit__ `` from the object on top of the
@@ -627,13 +618,6 @@ the original TOS1.
627618
628619**Miscellaneous opcodes **
629620
630- .. opcode :: PRINT_EXPR
631-
632- Implements the expression statement for the interactive mode. TOS is removed
633- from the stack and printed. In non-interactive mode, an expression statement
634- is terminated with :opcode: `POP_TOP `.
635-
636-
637621.. opcode :: SET_ADD (i)
638622
639623 Calls ``set.add(TOS1[-i], TOS) ``. Used to implement set comprehensions.
@@ -682,13 +666,6 @@ iterations of the loop.
682666 .. versionadded :: 3.6
683667
684668
685- .. opcode :: IMPORT_STAR
686-
687- Loads all symbols not starting with ``'_' `` directly from the module TOS to
688- the local namespace. The module is popped after loading all names. This
689- opcode implements ``from module import * ``.
690-
691-
692669.. opcode :: POP_EXCEPT
693670
694671 Pops a value from the stack, which is used to restore the exception state.
@@ -1422,6 +1399,22 @@ iterations of the loop.
14221399 they use their arg.
14231400
14241401
1402+ .. opcode :: CALL_INTRINSIC_1
1403+
1404+ Calls an intrinsic function with one argument. Passes the TOS as the argument
1405+ and sets TOS to the result. Used to implement functionality that is necessary
1406+ but not performance critical.
1407+
1408+ The operand determines which intrinsic function is called:
1409+
1410+ * ``0 `` Not valid
1411+ * ``1 `` Prints the argument to standard out. Used in the REPL.
1412+ * ``2 `` Performs ``import * `` for the named module.
1413+ * ``3 `` Extracts the return value from a ``StopIteration `` exception.
1414+
1415+ .. versionadded :: 3.12
1416+
1417+
14251418**Pseudo-instructions **
14261419
14271420These opcodes do not appear in python bytecode, they are used by the compiler
0 commit comments