mirror of
https://github.com/python/cpython.git
synced 2025-09-26 10:19:53 +00:00
bpo-43950: support positions for dis.Instructions created through dis.Bytecode (GH-28142)
This commit is contained in:
parent
7974c30b9f
commit
85ea2d6165
2 changed files with 7 additions and 1 deletions
|
@ -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__,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue