summaryrefslogtreecommitdiff
path: root/doc/release
diff options
context:
space:
mode:
authorSebastian Berg <sebastian@sipsolutions.net>2020-08-12 16:55:37 -0500
committerGitHub <noreply@github.com>2020-08-12 16:55:37 -0500
commitf89486c781634ad53e7107b35fc3899822734908 (patch)
tree670fdeb8ef8ad0820a573425cafd32511299981d /doc/release
parent0328a8c3d4b734be8a4be82ab85f1971093da3da (diff)
downloadnumpy-f89486c781634ad53e7107b35fc3899822734908.tar.gz
Update doc/release/upcoming_changes/17029.compatibility.rst
Diffstat (limited to 'doc/release')
-rw-r--r--doc/release/upcoming_changes/17029.compatibility.rst17
1 files changed, 4 insertions, 13 deletions
diff --git a/doc/release/upcoming_changes/17029.compatibility.rst b/doc/release/upcoming_changes/17029.compatibility.rst
index 351b228a8..69069ce18 100644
--- a/doc/release/upcoming_changes/17029.compatibility.rst
+++ b/doc/release/upcoming_changes/17029.compatibility.rst
@@ -1,17 +1,9 @@
Casting errors interrupt Iteration
----------------------------------
-NumPy sometimes has issues reporting errors during casting
-correctly. This is rare, since the vast majority of casts
-will never result in errors.
-However, in some cases of casting errors less of the result
-may be written back. The state of arrays involved in errors
-should *always* be considered undefined.
-Possible changes occur for:
-
-* Universal functions when casting is unsafe (rare)
-* Advanced index assignments
-* The lowlevel `numpy.nditer` API.
-
+When iterating while casting values, an error may stop the iteration
+earlier than before. In any case, a failed casting operation always
+returned undefined, partial results. Those may now be even more
+undefined and partial.
For users of the ``NpyIter`` C-API such cast errors will now
cause the `iternext()` function to return 0 and thus abort
iteration.
@@ -20,4 +12,3 @@ It is necessary to check ``PyErr_Occurred()``, which
may be problematic in combination with ``NpyIter_Reset``.
These issues always existed, but new API could be added
if required by users.
-