(self, x, *, first_line=None, current_offset=None, show_caches=False, adaptive=False)
| 696 | Iterating over this yields the bytecode operations as Instruction instances. |
| 697 | """ |
| 698 | def __init__(self, x, *, first_line=None, current_offset=None, show_caches=False, adaptive=False): |
| 699 | self.codeobj = co = _get_code_object(x) |
| 700 | if first_line is None: |
| 701 | self.first_line = co.co_firstlineno |
| 702 | self._line_offset = 0 |
| 703 | else: |
| 704 | self.first_line = first_line |
| 705 | self._line_offset = first_line - co.co_firstlineno |
| 706 | self._linestarts = dict(findlinestarts(co)) |
| 707 | self._original_object = x |
| 708 | self.current_offset = current_offset |
| 709 | self.exception_entries = _parse_exception_table(co) |
| 710 | self.show_caches = show_caches |
| 711 | self.adaptive = adaptive |
| 712 | |
| 713 | def __iter__(self): |
| 714 | co = self.codeobj |
nothing calls this directly
no test coverage detected