bit shifting question
Grant Edwards
grante at visi.com
Mon May 17 15:39:50 EDT 2004
On 2004-05-17, Michael Hudson <mwh at python.net> wrote:
>> My question is does python share java's peculiar mode of bit
>> shifting, or does python adhere closer to c's bit shifting?
>
> The right shift in Python is arithmetic, i.e. preserves the
> sign bit.
Which one is the sign bit? IOW, how wide is a "word"?
--
Grant Edwards grante Yow! LBJ, LBJ, how many
at JOKES did you tell today??!
visi.com
More information about the Python-list
mailing list