]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.12] gh-117270: Add missed change to COMPARE_OP from 3.12 to dis documentation...
authorChristopher Chianelli <christopher@timefold.ai>
Tue, 6 Aug 2024 17:19:44 +0000 (13:19 -0400)
committerGitHub <noreply@github.com>
Tue, 6 Aug 2024 17:19:44 +0000 (19:19 +0200)
Doc/library/dis.rst

index 96e959f9bf3ae11e8b944b3c57c1beca63fde375..9414bee71880bba820a85e5ea2ca2a81e2f54d8e 100644 (file)
@@ -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)