Skip to content

Commit e970431

Browse files
[3.12] gh-117270: Add missed change to COMPARE_OP from 3.12 to dis documentation (GH-117272) (#117274)
1 parent 81bed0f commit e970431

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Doc/library/dis.rst

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1132,7 +1132,10 @@ iterations of the loop.
11321132
.. opcode:: COMPARE_OP (opname)
11331133

11341134
Performs a Boolean operation. The operation name can be found in
1135-
``cmp_op[opname]``.
1135+
``cmp_op[opname >> 4]``.
1136+
1137+
.. versionchanged:: 3.12
1138+
The cmp_op index is now stored in the four-highest bits of oparg instead of the four-lowest bits of oparg.
11361139

11371140

11381141
.. opcode:: IS_OP (invert)

0 commit comments

Comments
 (0)