summaryrefslogtreecommitdiff
path: root/Lib/dis.py
diff options
context:
space:
mode:
authorBrandt Bucher <brandtbucher@microsoft.com>2022-11-09 10:50:09 -0800
committerGitHub <noreply@github.com>2022-11-09 10:50:09 -0800
commitc7f57087149968e9a72f6dee73514ff18fee78e8 (patch)
tree82caebb4f6d1070192ba34da38325d5cf39398ee /Lib/dis.py
parent6e3cc72afeaee2532b4327776501eb8234ac787b (diff)
downloadcpython-git-c7f57087149968e9a72f6dee73514ff18fee78e8.tar.gz
GH-98686: Get rid of "adaptive" and "quick" instructions (GH-99182)
Diffstat (limited to 'Lib/dis.py')
-rw-r--r--Lib/dis.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/Lib/dis.py b/Lib/dis.py
index a045d18241..523bd01d92 100644
--- a/Lib/dis.py
+++ b/Lib/dis.py
@@ -512,9 +512,8 @@ def _get_instructions_bytes(code, varname_from_oparg=None,
for i in range(size):
offset += 2
# Only show the fancy argrepr for a CACHE instruction when it's
- # the first entry for a particular cache value and the
- # instruction using it is actually quickened:
- if i == 0 and op != deop:
+ # the first entry for a particular cache value:
+ if i == 0:
data = code[offset: offset + 2 * size]
argrepr = f"{name}: {int.from_bytes(data, sys.byteorder)}"
else: