14

Possible Duplicate:
How to get the logical right binary shift in python

How do I perform an unsigned right shift in python?

I.E. The java equivalent is this:

x >>> y or x >>>= y
Community
  • 1
  • 1
Micah
  • 149
  • 1
  • 1
  • 3

1 Answers1

21

Integers in Java have a fixed number of bits, but those in Python don't, so an unsigned right shift would be meaningless in Python.

MRAB
  • 20,356
  • 6
  • 40
  • 33