def _marked(func, mark):
 try:
  func_mark = getattr(func, mark.name)
 except AttributeError:
  return False
 return ((mark.args == func_mark.args) and (mark.kwargs == func_mark.kwargs))

def _marked ( func , mark ) : try : func_mark = getattr ( func , mark . name ) except AttributeError : return False return ( ( mark . args == func_mark . args ) and ( mark . kwargs == func_mark . kwargs ) )
returns true if :func: is already marked with :mark: .