parameters: (thing, forceload=0)
docstring: Given an object or a path to an object, get the object and its name.
docstring_summary: Given an object or a path to an object, get the object and its name.
docstring_tokens: Given an object or a path to an object get the object and its name .
function: def resolve(thing, forceload=0):
      """Given an object or a path to an object, get the object and its name."""
      if isinstance(thing, str):
          object = locate(thing, forceload)
          if not object:
              raise ImportError, 'no Python documentation found for %r' % thing
          return object, thing
      else:
          return thing, getattr(thing, '__name__', None)
function_tokens: def resolve ( thing , forceload = 0 ) : if isinstance ( thing , str ) : object = locate ( thing , forceload ) if not object : raise ImportError , 'no Python documentation found for %r' % thing return object , thing else : return thing , getattr ( thing , '__name__' , None )