From c2529b8ab141e088dd82bf42fd777b8043e3c82f Mon Sep 17 00:00:00 2001 From: Christopher Chianelli Date: Tue, 26 Mar 2024 16:52:05 -0400 Subject: [PATCH] [3.12] gh-117270: Add missed change to COMPARE_OP from 3.12 to dis documentation (GH-117272) --- 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 abcc3cde23526c..4c3ddb615aa7f3 100644 --- a/Doc/library/dis.rst +++ b/Doc/library/dis.rst @@ -1128,7 +1128,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)