Why does list.index throw an exception, instead of using an arbitrary value (for example, -1)? What\'s the idea behind this?
-1
To me it looks cleaner to d
def GetListIndex(list, searchString): try: return list.index(searchString) except ValueError: return False except Exception: raise