As long as we're giving terrible code suggestions:<br><br>[a for a in L if a not in locals("_[0]")]<br><br><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Nov 16, 2012 at 9:37 AM, Serhiy Storchaka <span dir="ltr"><<a href="mailto:storchaka@gmail.com" target="_blank">storchaka@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On 16.11.12 15:17, Michael Foord wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
On 16 November 2012 12:39, Paul Moore<br>
<<a href="mailto:p.f.moore@gmail.com" target="_blank">p.f.moore@gmail.com</a><br>
<mailto:<a href="mailto:p.f.moore@gmail.com" target="_blank">p.f.moore@gmail.com</a>>> wrote:<br>
</blockquote>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
list(set(ls))<br>
<br>
<br>
This loses order.<br>
</blockquote>
<br>
list(collections.OrderedDict.<u></u>fromkeys(ls))<div class="HOEnZb"><div class="h5"><br>
<br>
<br>
______________________________<u></u>_________________<br>
Python-ideas mailing list<br>
<a href="mailto:Python-ideas@python.org" target="_blank">Python-ideas@python.org</a><br>
<a href="http://mail.python.org/mailman/listinfo/python-ideas" target="_blank">http://mail.python.org/<u></u>mailman/listinfo/python-ideas</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br> Jasper<br><br>
</div>