[Pythonmac-SIG] Duplicate items in a list
Joseph J. Strout
joe@strout.net
Mon, 9 Aug 1999 05:39:02 -0700
At 5:18 AM -0700 8/9/99, Pieter Claerhout wrote:
>does anyone know an easy way to delete duplicate items from a list?
Assuming the items are hashable, the best way (AFAIK) is to stuff them into
a dictionary, then get the dictionary's keys().
Cheers,
-- Joe
,------------------------------------------------------------------.
| Joseph J. Strout Biocomputing -- The Salk Institute |
| joe@strout.net http://www.strout.net |
`------------------------------------------------------------------'