summaryrefslogtreecommitdiff
path: root/doc/release/upcoming_changes/21506.change.rst
diff options
context:
space:
mode:
Diffstat (limited to 'doc/release/upcoming_changes/21506.change.rst')
-rw-r--r--doc/release/upcoming_changes/21506.change.rst18
1 files changed, 0 insertions, 18 deletions
diff --git a/doc/release/upcoming_changes/21506.change.rst b/doc/release/upcoming_changes/21506.change.rst
deleted file mode 100644
index 18bc6cbc2..000000000
--- a/doc/release/upcoming_changes/21506.change.rst
+++ /dev/null
@@ -1,18 +0,0 @@
-Better reporting of integer division overflow
----------------------------------------------
-
-Integer division overflow of scalars and arrays used to provide a ``RuntimeWarning``
-and the return value was undefined leading to crashes at rare occasions::
-
- >>> np.array([np.iinfo(np.int32).min]*10, dtype=np.int32) // np.int32(-1)
- <stdin>:1: RuntimeWarning: divide by zero encountered in floor_divide
- array([0, 0, 0, 0, 0, 0, 0, 0, 0, 0], dtype=int32)
-
-Integer division overflow now returns the input dtype's minimum value and raise the
-following ``RuntimeWarning``::
-
- >>> np.array([np.iinfo(np.int32).min]*10, dtype=np.int32) // np.int32(-1)
- <stdin>:1: RuntimeWarning: overflow encountered in floor_divide
- array([-2147483648, -2147483648, -2147483648, -2147483648, -2147483648,
- -2147483648, -2147483648, -2147483648, -2147483648, -2147483648],
- dtype=int32)