parameters: (dat)
docstring: Return whether dat is an instance of a class.
docstring_summary: Return whether dat is an instance of a class.
docstring_tokens: Return whether dat is an instance of a class .
function: def is_instance(dat):
    """Return whether dat is an instance of a class."""
    if is_python3:
      return isinstance(type(dat), type) and not isinstance(dat, type)
    else:
      # ugh, classRE match is a bit of a hack :(
      return type(dat) == types.InstanceType or classRE.match(str(type(dat)))
function_tokens: def is_instance ( dat ) : if is_python3 : return isinstance ( type ( dat ) , type ) and not isinstance ( dat , type ) else : # ugh, classRE match is a bit of a hack :( return type ( dat ) == types . InstanceType or classRE . match ( str ( type ( dat ) ) )