[Zope] Dupe checking a list of tuples

abg@comco-inc.com abg@comco-inc.com
Fri, 19 Jul 2002 14:09:28 -0500

Is it possible to remove duplicate records from a list of tuples?

Here's a sample of my list. I'd like to make sure a url doesn't occur twice
in the list, and delete the offending tuple if it does.

[('http://www.news.com/frontdoor/0-1.html?tag=hd_ts', 'CNET'),
('http://www.news.com/shopping/0-1257.html?tag=hd_ts', 'Price

I'm sorry if this is elementary, but I'm fairly new to Python and have been
pulling my hair out on this one.


Aaron Gillette