In article <[EMAIL PROTECTED]>, runes <[EMAIL PROTECTED]> wrote: > >This is not the most beautiful idiom, but it works... > >d = {} >for k in data: > try: > d[k] += 1 > except: > d[k] = 1 > >for k,v in d.items(): > if v == 1: > print k
Only if "works" does not include "order preserving". -- Aahz ([EMAIL PROTECTED]) <*> http://www.pythoncraft.com/ "And if that makes me an elitist...I couldn't be happier." --JMS -- http://mail.python.org/mailman/listinfo/python-list