<br><br><div class="gmail_quote">On Wed, Jun 17, 2009 at 12:54 PM, Anand Chitipothu <span dir="ltr">&lt;<a href="mailto:anandology@gmail.com">anandology@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="im">&gt;<br>
&gt; Don&#39;t use sorted(..., reverse=True). Instead reverse the list in place<br>
&gt; by using reverse slicing of l[-1::-1], which is about 1.5 times faster.<br>
<br>
</div>Why are you using [-1::-1] for reversing? Isn&#39;t [::-1] the python<br>
idiom for reversing a list?</blockquote><div><br>I am used to [-1::-1] and &quot;Explicit is better than implicit&quot;.<br>[::-1] gives (at least to me) the impression that it is equal to [0::-1]<br>which it is not.<br>
 <br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>
<div><div></div><div class="h5">_______________________________________________<br>
BangPypers mailing list<br>
<a href="mailto:BangPypers@python.org">BangPypers@python.org</a><br>
<a href="http://mail.python.org/mailman/listinfo/bangpypers" target="_blank">http://mail.python.org/mailman/listinfo/bangpypers</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>-Anand<br><br><br><br>