<div class="gmail_quote">On Sat, Feb 13, 2010 at 12:58 PM, David Abbott <span dir="ltr">&lt;<a href="mailto:david@pythontoo.com">david@pythontoo.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

&lt;snip&gt;<br>
I don&#39;t understand the l&gt;&gt;24 &amp; 255.<br>
<br>
from the docs;<br>
Right Shift a &gt;&gt; b rshift(a, b)<br>
Bitwise And a &amp; b and_(a, b)<br></blockquote><div><br></div><div>They&#39;re binary operations...  </div><div><br></div><div>If you&#39;re not familiar, wikipedia or google can find you many sources.</div><div><br></div>

<div>In a nutshell:</div><div><br></div><div>0110 &gt;&gt; 1 == 0011</div><div>0011 &gt;&gt; 1 == 0001</div><div><br></div><div>0110 &amp; 0101 == 0100</div><div>0100 &amp; 0001 == 0000</div><div><br></div><div>HTH,</div>

<div>Wayne</div></div>