i suppose this one is faster (but in most cases efficiency doesn't
matter)

>>> def stable_unique(s):
        e = {}
        ret = []
        for x in s:
                if not e.has_key(x):
                        e[x] = 1
                        ret.append(x)
        return ret

cheers,
przemek

-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to