Message 54880 - Python tracker (original) (raw)
Logged In: YES user_id=291529
Why are you creating a dictionary just to take its keys?
Because in order to preserve the original behavior (and to match the documentation), the list returned must contain only one member for each unique field name. The built-in set() would work just as well, though my benchmarks don't show much difference in performance. Something like:
return list(set([i.name for i in self.list]))