]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Remove outdated note about constraining of the bit shift right operand. (#1258)
authorSerhiy Storchaka <storchaka@gmail.com>
Sat, 22 Apr 2017 18:50:09 +0000 (21:50 +0300)
committerGitHub <noreply@github.com>
Sat, 22 Apr 2017 18:50:09 +0000 (21:50 +0300)
The constrain was removed in bpo-29816.

Doc/reference/expressions.rst

index c4f6c55c7ca3aac346c20aef1a4f2698ba9fad93..6e9e07a809b93ef2e7c59ae36d4ec532453c1c6b 100644 (file)
@@ -1173,11 +1173,6 @@ the left or right by the number of bits given by the second argument.
 A right shift by *n* bits is defined as floor division by ``pow(2,n)``.  A left
 shift by *n* bits is defined as multiplication with ``pow(2,n)``.
 
-.. note::
-
-   In the current implementation, the right-hand operand is required
-   to be at most :attr:`sys.maxsize`.  If the right-hand operand is larger than
-   :attr:`sys.maxsize` an :exc:`OverflowError` exception is raised.
 
 .. _bitwise: