I\'m trying to get a list of all keys in a list of dictionaries in order to fill out the fieldnames argument for csv.DictWriter.
previously, I had something like thi
all_keys = set().union(*(d.keys() for d in mylist))
Edit: have to unpack the list. Now fixed.