"Andrew Dalke" <adalke at mindspring.com> writes: > needed yours. And I've used what can now be > written as > > unique_keys = dict.from_keys(lst).keys() This from_keys operation must be something new, and consing up a dictionary like that is a woeful amount of overhead. But I guess it would do the job.