def Repr(class_instance, ordered_dictionary):
 return ('search.%s(%s)' % (class_instance.__class__.__name__, ', '.join([("%s='%s'" % (key, value)) for (key, value) in ordered_dictionary if value])))

def Repr ( class_instance , ordered_dictionary ) : return ( 'search.%s(%s)' % ( class_instance . __class__ . __name__ , ', ' . join ( [ ( "%s='%s'" % ( key , value ) ) for ( key , value ) in ordered_dictionary if value ] ) ) )
generates an unambiguous representation for instance and ordered dict .