(self, value, fail_value=None)
return fail_value
find the key(s) as a list given a value
find the key(s) as a list given a value
find the key ( s ) as a list given a value
def get_keys_for_value(self, value, fail_value=None):
		"""find the key(s) as a list given a value"""
		list_result = [item[0] for item in self.items() if item[1] == value]
		if len(list_result) > 0:
			return list_result
		return fail_value
def get_keys_for_value ( self , value , fail_value = None ) : list_result = [ item [ 0 ] for item in self . items ( ) if item [ 1 ] == value ] if len ( list_result ) > 0 : return list_result return fail_value