[Tutor] Re: Print ogre

Remco Gerlich scarblac@pino.selwerd.nl
Mon, 25 Feb 2002 14:33:32 +0100

On  0, Charlie Clark <charlie@begeistert.org> wrote:
> >| Where else does ">>" occur in Python?
> >
> >Right shift.
> ..
> >It is a bitwise operator.  aa is 10101010 in binary.  Right shift it
> >one place and you get 01010101 which in hex is 55.  Shift it two
> >places and you get 00101010 which is 2a in hex.
> In other words there is no overlap between the two uses. ">>" doesn't 
> have a generic meaning or use making reusable in different contexts. A 
> good reason for removing it in print >> as a way to remove a possible 
> source of confusion.

Quite the opposite, IMO - the two uses have nothing to do with each other
and therefore won't be a source of confusion.

Remco Gerlich