operator-rshift

>>

The right shift operator accepts plain or long integers as arguments. The arguments are converted to a common type. It shifts the first argument to the right by the number of bits given by the second argument.

A right shift by n bits is defined as division by pow(2,n). Negative shift counts raise a ValueError exception.

To support this operator in your own classes, implement the __rshift__ method.

 

A Django site. this page was rendered by a django application in 0.00s 2012-02-12 19:33:17.865163. hosted by webfaction.