I have a string.
s = \'1989, 1990\'
I want to convert that to list using python & i want output as,
s = [\'1989\', \'19
i created generic method for this :
def convertToList(v): ''' @return: input is converted to a list if needed ''' if type(v) is list: return v elif v == None: return [] else: return [v]
Maybe it is useful for your project.
converToList(s)