13

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
  • 139
  • 1
  • 3

1 Answers1

18

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
  • 19,740
  • 5
  • 38
  • 31