summaryrefslogtreecommitdiffstats
path: root/Lib/dis.py
diff options
context:
space:
mode:
authorBatuhan Taskaya <batuhan@python.org>2021-09-03 15:29:09 (GMT)
committerGitHub <noreply@github.com>2021-09-03 15:29:09 (GMT)
commit85ea2d6165dec0cffa6302eb6dc40406eae1edf5 (patch)
tree86d5128e4a9bdb03ab92f354cf5e99f5153987aa /Lib/dis.py
parent7974c30b9fd84fa56ea1515ed2c08b38edf1a383 (diff)
downloadcpython-85ea2d6165dec0cffa6302eb6dc40406eae1edf5.zip
cpython-85ea2d6165dec0cffa6302eb6dc40406eae1edf5.tar.gz
cpython-85ea2d6165dec0cffa6302eb6dc40406eae1edf5.tar.bz2
bpo-43950: support positions for dis.Instructions created through dis.Bytecode (GH-28142)
Diffstat (limited to 'Lib/dis.py')
-rw-r--r--Lib/dis.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/dis.py b/Lib/dis.py
index 3cacd9a..66487dc 100644
--- a/Lib/dis.py
+++ b/Lib/dis.py
@@ -564,7 +564,8 @@ class Bytecode:
co.co_names, co.co_consts,
self._linestarts,
line_offset=self._line_offset,
- exception_entries=self.exception_entries)
+ exception_entries=self.exception_entries,
+ co_positions=co.co_positions())
def __repr__(self):
return "{}({!r})".format(self.__class__.__name__,