parameters: (self, f)
docstring: Loads bytecode from a file or file like object.
docstring_summary: Loads bytecode from a file or file like object.
docstring_tokens: Loads bytecode from a file or file like object .
function: def load_bytecode(self, f):
          """Loads bytecode from a file or file like object."""
          # make sure the magic header is correct
          magic = f.read(len(bc_magic))
          if magic != bc_magic:
              self.reset()
              return
          # the source code of the file changed, we need to reload
          checksum = pickle.load(f)
          if self.checksum != checksum:
              self.reset()
              return
          # if marshal_load fails then we need to reload
          try:
              self.code = marshal_load(f)
          except (EOFError, ValueError, TypeError):
              self.reset()
              return
function_tokens: def load_bytecode ( self , f ) : # make sure the magic header is correct magic = f . read ( len ( bc_magic ) ) if magic != bc_magic : self . reset ( ) return # the source code of the file changed, we need to reload checksum = pickle . load ( f ) if self . checksum != checksum : self . reset ( ) return # if marshal_load fails then we need to reload try : self . code = marshal_load ( f ) except ( EOFError , ValueError , TypeError ) : self . reset ( ) return