[Python-Dev] Re: PEP270 (list.uniq())

jason petrone jp@demonseed.net
Fri, 1 Nov 2002 12:39:37 -0500


On Fri, Nov 01, 2002 at 05:29:20PM +0000, Padraig Brady wrote:
> So uniq really is a set operation and if Python had
> a set builtin type then I'm not sure a uniq method
> would be required? 
> could do:

Yes, sets are a much better solution to this problem.  For that reason,
my PEP wasn't accepted.  

In the meantime, I just use dictionaries with None for values to achieve 
the same goal.

Jason