Is there a built-in that removes duplicates from a list in Python, whilst preserving order? I know that I can use a set to remove duplicates, but that destroys the original order. I also know that I can roll my own like this:
output = 
for x in input:
if x not in output:
But I'd like to avail myself of a built-in or a more Pythonic idiom if possible.