[Tutor] stumped again adding bytes
nephish at gmail.com
Sat Feb 24 16:12:55 CET 2007
Hey there, and thanks for all your help here, i started getting some
values that look like what they are supposed to. Funny, i have been
with python for over a year, and just downloaded a hex cheatsheet.
thanks again for all of the help, gents.
On 2/23/07, Alan Gauld <alan.gauld at btinternet.com> wrote:
> "shawn bright" <nephish at gmail.com> wrote
> > if i use i bitmask of 240 it will mask the most significant 4 bits
> When using bitmasks its much easier to think in hex (or octal).
> there are exactly 2 hex digits per byte so you only need to think
> about each group of 4 bits and its hex bit pattern. It saves a
> heap of mental calculations!
> Alan G.
> Tutor maillist - Tutor at python.org
More information about the Tutor