summaryrefslogtreecommitdiffstats
path: root/Lib/dis.py
diff options
context:
space:
mode:
authorMark Shannon <mark@hotpy.org>2024-10-24 10:57:02 (GMT)
committerGitHub <noreply@github.com>2024-10-24 10:57:02 (GMT)
commitb61fece8523d0fa6d9cc6ad3fd855a136c34f0cd (patch)
treefca2bb236a57eb38d8e2b30052b9dc56fac8e96b /Lib/dis.py
parentc35b33bfb7c491dfbdd40195d70dcfc4618265db (diff)
downloadcpython-b61fece8523d0fa6d9cc6ad3fd855a136c34f0cd.zip
cpython-b61fece8523d0fa6d9cc6ad3fd855a136c34f0cd.tar.gz
cpython-b61fece8523d0fa6d9cc6ad3fd855a136c34f0cd.tar.bz2
GH-125868: Fix STORE_ATTR_WITH_HINT specialization (GH-125876)
Diffstat (limited to 'Lib/dis.py')
-rw-r--r--Lib/dis.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/Lib/dis.py b/Lib/dis.py
index e87e6a7..db69848 100644
--- a/Lib/dis.py
+++ b/Lib/dis.py
@@ -778,8 +778,10 @@ def _get_instructions_bytes(code, linestarts=None, line_offset=0, co_positions=N
if caches:
cache_info = []
+ cache_offset = offset
for name, size in _cache_format[opname[deop]].items():
- data = code[offset + 2: offset + 2 + 2 * size]
+ data = code[cache_offset + 2: cache_offset + 2 + 2 * size]
+ cache_offset += size * 2
cache_info.append((name, size, data))
else:
cache_info = None