From e970431f13ea0ecb4c27b446ddceb98b76ad1175 Mon Sep 17 00:00:00 2001 From: Christopher Chianelli Date: Tue, 6 Aug 2024 13:19:44 -0400 Subject: [PATCH] [3.12] gh-117270: Add missed change to COMPARE_OP from 3.12 to dis documentation (GH-117272) (#117274) --- Doc/library/dis.rst | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Doc/library/dis.rst b/Doc/library/dis.rst index 96e959f9bf3a..9414bee71880 100644 --- a/Doc/library/dis.rst +++ b/Doc/library/dis.rst @@ -1132,7 +1132,10 @@ iterations of the loop. .. opcode:: COMPARE_OP (opname) Performs a Boolean operation. The operation name can be found in - ``cmp_op[opname]``. + ``cmp_op[opname >> 4]``. + + .. versionchanged:: 3.12 + The cmp_op index is now stored in the four-highest bits of oparg instead of the four-lowest bits of oparg. .. opcode:: IS_OP (invert) -- 2.47.3