Hello,<div><br></div><div>I just wanted to bring to your attention that an <b>attribute for removing duplicate elements</b> for lists would be a nice feature. </div><div><br></div><i>def uniquify(lis):<br>    seen = set()<br>
    seen_add = seen.add<br>    return [ x for x in lis if x not in seen and not seen_add(x)]</i><div><i><br></i></div><div>The code is from <a href="http://stackoverflow.com/questions/480214/how-do-you-remove-duplicates-from-a-list-in-python-whilst-preserving-order">this post</a>. Also check out <a href="http://www.peterbe.com/plog/uniqifiers-benchmark">this performance comparison</a> of uniquifying snippets.</div>
<div>It would be useful to have a uniquify attribute for containers in general. </div><div><br></div><div>Best regards, Robrecht</div><div><i><br></i></div>