From: Christopher Chianelli Date: Tue, 6 Aug 2024 17:19:44 +0000 (-0400) Subject: [3.12] gh-117270: Add missed change to COMPARE_OP from 3.12 to dis documentation... X-Git-Tag: v3.12.5~4 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=e970431f13ea0ecb4c27b446ddceb98b76ad1175;p=thirdparty%2FPython%2Fcpython.git [3.12] gh-117270: Add missed change to COMPARE_OP from 3.12 to dis documentation (GH-117272) (#117274) --- 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)