Uniquifying a list?

Lawrence D'Oliveiro ldo at geek-central.gen.new_zealand
Sat Apr 22 05:40:42 EDT 2006


In article <mailman.4732.1145405596.27775.python-list at python.org>,
 Felipe Almeida Lessa <felipe.lessa at gmail.com> wrote:

>"list(set(x))" is the clear winner with almost O(1) performance.

Moral: in an interpreted language, use builtins as much as possible.



More information about the Python-list mailing list