def _get_fullname(cls):
 if orig_isinstance(cls, NetProxy):
  modules = _get_conn(cls).modules.sys.modules
 else:
  modules = sys.modules
 try:
  filename = modules[cls.__module__].__file__
 except (KeyError, AttributeError):
  filename = cls.__module__
 return (filename, cls.__name__)

def _get_fullname ( cls ) : if orig_isinstance ( cls , NetProxy ) : modules = _get_conn ( cls ) . modules . sys . modules else : modules = sys . modules try : filename = modules [ cls . __module__ ] . __file__ except ( KeyError , AttributeError ) : filename = cls . __module__ return ( filename , cls . __name__ )
a heuristic to generate a unique identifier for classes .