I have a list containing ~300 lists, however some of them are duplicates and I would like to remove them. I've tried:
cleanlist = [cleanlist.append(x) for x in oldlist if x not in cleanlist]
but it keeps throwing RuntimeError: maximum recursion depth exceeded in comparison
at me. I tried sys.setrecursionlimit(1500)
but that didn't help.
What's a better way to do this?