[3.12] gh-117270: Add missed change to COMPARE_OP from 3.12 to dis documentation (GH-117272) (#117274)

This commit is contained in:
Christopher Chianelli 2024-08-06 13:19:44 -04:00 committed by GitHub
parent 81bed0fe8a
commit e970431f13
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View 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)