diff options
author | Irit Katriel <1055913+iritkatriel@users.noreply.github.com> | 2023-02-14 11:54:13 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-14 11:54:13 (GMT) |
commit | 81e3aa835c32363f4547b6566edf1125386f1f6d (patch) | |
tree | 4a20320722549dca1c5d581772aa2a6152d8ca5b /Doc/library/dis.rst | |
parent | 3690688149dca11589af59b7704541336613199a (diff) | |
download | cpython-81e3aa835c32363f4547b6566edf1125386f1f6d.zip cpython-81e3aa835c32363f4547b6566edf1125386f1f6d.tar.gz cpython-81e3aa835c32363f4547b6566edf1125386f1f6d.tar.bz2 |
gh-101799: implement PREP_RERAISE_STAR as an intrinsic function (#101800)
Diffstat (limited to 'Doc/library/dis.rst')
-rw-r--r-- | Doc/library/dis.rst | 26 |
1 files changed, 15 insertions, 11 deletions
diff --git a/Doc/library/dis.rst b/Doc/library/dis.rst index b1e61d7..a5bc5e7 100644 --- a/Doc/library/dis.rst +++ b/Doc/library/dis.rst @@ -768,16 +768,6 @@ iterations of the loop. .. versionadded:: 3.11 -.. opcode:: PREP_RERAISE_STAR - - Combines the raised and reraised exceptions list from ``STACK[-1]``, into an - exception group to propagate from a try-except* block. Uses the original exception - group from ``STACK[-2]`` to reconstruct the structure of reraised exceptions. Pops - two items from the stack and pushes the exception to reraise or ``None`` - if there isn't one. - - .. versionadded:: 3.11 - .. opcode:: WITH_EXCEPT_START Calls the function in position 4 on the stack with arguments (type, val, tb) @@ -1515,7 +1505,8 @@ iterations of the loop. .. opcode:: CALL_INTRINSIC_1 Calls an intrinsic function with one argument. Passes ``STACK[-1]`` as the - argument and sets ``STACK[-1]`` to the result. Used to implement functionality that is necessary but not performance critical. + argument and sets ``STACK[-1]`` to the result. Used to implement + functionality that is necessary but not performance critical. The operand determines which intrinsic function is called: @@ -1529,6 +1520,19 @@ iterations of the loop. .. versionadded:: 3.12 +.. opcode:: CALL_INTRINSIC_2 + + Calls an intrinsic function with two arguments. Passes ``STACK[-2]``, ``STACK[-1]`` as the + arguments and sets ``STACK[-1]`` to the result. Used to implement functionality that is + necessary but not performance critical. + + The operand determines which intrinsic function is called: + + * ``0`` Not valid + * ``1`` Calculates the :exc:`ExceptionGroup` to raise from a ``try-except*``. + + .. versionadded:: 3.12 + **Pseudo-instructions** |