class_docstr: The bytecode operations of a piece of code
  
  Instantiate this with a function, method, other compiled object, string of
  code, or a code object (as returned by compile()).
  
  Iterating over this yields the bytecode operations as Instruction instances.
class_docstr_tok: ["The","bytecode","operations","of","a","piece","of","code","Instantiate","this","with","a","function",",","method",",","other","compiled","object",",","string","of","code",",","or","a","code","object","(","as","returned","by","compile","(",")",")",".","Iterating","over","this","yields","the","bytecode","operations","as","Instruction","instances","."]
docstr: Return a formatted view of the bytecode operations.
docstr_tok: ["Return","a","formatted","view","of","the","bytecode","operations","."]
code: def dis(self):
      """Return a formatted view of the bytecode operations."""
      co = self.codeobj
      if self.current_offset is not None:
          offset = self.current_offset
      else:
          offset = -1
      with io.StringIO() as output:
          code = _get_code_array(co, self.adaptive)
          offset_width = (
              len(str(max(len(code) - 2, 9999)))
              if self.show_offsets
              else 0
          )
  
          labels_map = _make_labels_map(
              co.co_code, self.exception_entries
          )
          label_width = 4 + len(str(len(labels_map)))
          formatter = Formatter(
              file=output,
              lineno_width=_get_lineno_width(self._linestarts),
              offset_width=offset_width,
              label_width=label_width,
              line_offset=self._line_offset,
              show_caches=self.show_caches,
          )
  
          arg_resolver = ArgResolver(
              co_consts=co.co_consts,
              names=co.co_names,
              varname_from_oparg=co._varname_from_oparg,
              labels_map=labels_map,
          )
          _disassemble_bytes(
              code,
              linestarts=self._linestarts,
              line_offset=self._line_offset,
              lasti=offset,
              exception_entries=self.exception_entries,
              co_positions=co.co_positions(),
              original_code=co.co_code,
              arg_resolver=arg_resolver,
              formatter=formatter,
          )
          return output.getvalue()
  
imports: import sys
  import types
  import collections
  import io
  from opcode import *
  from opcode import __all__, _cache_format, _inline_cache_entries, _nb_ops, _intrinsic_1_descs, _intrinsic_2_descs, _specializations, _specialized_opmap
label_desc: Use image node_id 6 for calling the Bytecode obj's underlying member method code with example usage: obj.dis() and returns: output