def identify_object(inp):
 if hasattr(inp, '__dbclass__'):
  clsname = inp.__dbclass__.__name__
  if (clsname == 'PlayerDB'):
   return (inp, 'player')
  elif (clsname == 'ObjectDB'):
   return (inp, 'object')
  elif (clsname == 'ChannelDB'):
   return (inp, 'channel')
 if isinstance(inp, basestring):
  return (inp, 'string')
 elif dbref(inp):
  return (dbref(inp), 'dbref')
 else:
  return (inp, None)

def identify_object ( inp ) : if hasattr ( inp , '__dbclass__' ) : clsname = inp . __dbclass__ . __name__ if ( clsname == 'PlayerDB' ) : return ( inp , 'player' ) elif ( clsname == 'ObjectDB' ) : return ( inp , 'object' ) elif ( clsname == 'ChannelDB' ) : return ( inp , 'channel' ) if isinstance ( inp , basestring ) : return ( inp , 'string' ) elif dbref ( inp ) : return ( dbref ( inp ) , 'dbref' ) else : return ( inp , None )
helper function .