Does Python need a '>>>' operator?

David Eppstein eppstein at ics.uci.edu
Mon Apr 15 02:52:57 EDT 2002


In article <a9dqkk$5kf$0 at 216.39.172.122>, bokr at oz.net (Bengt Richter) 
wrote:

> >The reason I was getting into trouble anyway was because of the way 
> >right-shifting can change sign:
>  ^^^^^ ITYM left?
> >
> >>>> 0x40000000<<1
> >-2147483648

Yes, of course, thanks for the correction.

The only way I can remember which direction is left and which is right 
is to look at which hand has a ring on it...

-- 
David Eppstein       UC Irvine Dept. of Information & Computer Science
eppstein at ics.uci.edu http://www.ics.uci.edu/~eppstein/



More information about the Python-list mailing list