https://github.com/python/cpython/commit/e970431f13ea0ecb4c27b446ddceb98b76ad1175
commit: e970431f13ea0ecb4c27b446ddceb98b76ad1175
branch: 3.12
author: Christopher Chianelli <[email protected]>
committer: Yhg1s <[email protected]>
date: 2024-08-06T19:19:44+02:00
summary:
[3.12] gh-117270: Add missed change to COMPARE_OP from 3.12 to dis
documentation (GH-117272) (#117274)
files:
M Doc/library/dis.rst
diff --git a/Doc/library/dis.rst b/Doc/library/dis.rst
index 96e959f9bf3ae1..9414bee71880bb 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)
_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/python-checkins.python.org/
Member address: [email protected]