Skip to content

Commit 997a4ad

Browse files
Remove outdated note about constraining of the bit shift right operand. (python#1258)
The constrain was removed in bpo-29816.
1 parent 7fae81e commit 997a4ad

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

Doc/reference/expressions.rst

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1173,11 +1173,6 @@ the left or right by the number of bits given by the second argument.
11731173
A right shift by *n* bits is defined as floor division by ``pow(2,n)``. A left
11741174
shift by *n* bits is defined as multiplication with ``pow(2,n)``.
11751175

1176-
.. note::
1177-
1178-
In the current implementation, the right-hand operand is required
1179-
to be at most :attr:`sys.maxsize`. If the right-hand operand is larger than
1180-
:attr:`sys.maxsize` an :exc:`OverflowError` exception is raised.
11811176

11821177
.. _bitwise:
11831178

0 commit comments

Comments
 (0)