Message54880
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]))
|
|
Date |
User |
Action |
Args |
2007-08-23 16:12:05 | admin | link | issue1541463 messages |
2007-08-23 16:12:05 | admin | create | |
|