Alex Rivera | Logout

Python Unsigned Right Shift

Asked 2012-07-10T16:51:33.153
15

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
Edit
Report

1 Answer

23

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.

answered 2012-07-10T17:06:13.397

Your Answer