Re: [Tutor] bit shifting

2014-05-01 Thread Peter Otten
Ian D wrote: > I am trying to follow some code. It is basically a python scratch > interfacing script. > Anyway part of the script has this code. > Searching google for >> greater than signs in code with python has its > issues. > Can anyone clarify this stuff. > I know its about 4 bytes of data.

Re: [Tutor] bit shifting

2014-05-01 Thread Ian D
> Subject: Re: [Tutor] bit shifting > > Ok I am getting somewhere with this now. > > > A bitshift followed by ANDing the result of the shift! > > > So I think n>> 24 & 0xFF > > > is > > > shift n

Re: [Tutor] bit shifting

2014-05-01 Thread Ian D
tutor@python.org > Date: Thu, 1 May 2014 08:08:17 +0000 > Subject: [Tutor] bit shifting > > I am trying to follow some code. It is basically a python scratch interfacing > script. > > > > Anyway part of the script has this code. > > > > Searching google for&

[Tutor] bit shifting

2014-05-01 Thread Ian D
I am trying to follow some code. It is basically a python scratch interfacing script. Anyway part of the script has this code. Searching google for >> greater than signs in code with python has its issues. Can anyone clarify this stuff. I know its about 4 bytes of data. It looks like