Consider a Python list my_list containing [\'foo\', \'foo\', \'bar\'].
my_list
[\'foo\', \'foo\', \'bar\']
What is the most Pythonic way to uniquify and sort a list ? (thi
Can't say it is clean way to do that, but just for fun:
my_list = [x for x in sorted(my_list) if not x in locals()["_[1]"]]