How to get the logical right binary shift in python

As revealed by the title. In JavaScript there is a specific operator '>>>'. For example, in JavaScript we will have the following result:

(-1000) >>> 3 = 536870787

(-1000) >> 3 = -125

1000 >>> 3 = 125

1000 >> 3 = 125

So is there a certain method or operator representing this '>>>'?

28
задан dementrock 29 April 2011 в 13:55
поделиться