summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorZackery Spytz <zspytz@gmail.com>2020-05-26 08:16:34 (GMT)
committerGitHub <noreply@github.com>2020-05-26 08:16:34 (GMT)
commitaf7553ac95a96713be847dd45bc5a8aeb0a75955 (patch)
treee724dfc295c277e928491fe0c50e9c331f939e51 /Doc
parent1c5d1d7304a119040fd3118128bdb412f0cce6a6 (diff)
downloadcpython-af7553ac95a96713be847dd45bc5a8aeb0a75955.zip
cpython-af7553ac95a96713be847dd45bc5a8aeb0a75955.tar.gz
cpython-af7553ac95a96713be847dd45bc5a8aeb0a75955.tar.bz2
bpo-39301: State that floor division is used for right shift operations (GH-20347)
* bpo-39301: State that floor division is used for right shift operations * Remove "without overflow check"
Diffstat (limited to 'Doc')
-rw-r--r--Doc/library/stdtypes.rst6
1 files changed, 2 insertions, 4 deletions
diff --git a/Doc/library/stdtypes.rst b/Doc/library/stdtypes.rst
index 4e7729c..6a9fdcb 100644
--- a/Doc/library/stdtypes.rst
+++ b/Doc/library/stdtypes.rst
@@ -434,12 +434,10 @@ Notes:
Negative shift counts are illegal and cause a :exc:`ValueError` to be raised.
(2)
- A left shift by *n* bits is equivalent to multiplication by ``pow(2, n)``
- without overflow check.
+ A left shift by *n* bits is equivalent to multiplication by ``pow(2, n)``.
(3)
- A right shift by *n* bits is equivalent to division by ``pow(2, n)`` without
- overflow check.
+ A right shift by *n* bits is equivalent to floor division by ``pow(2, n)``.
(4)
Performing these calculations with at least one extra sign extension bit in