diff options
author | Sebastian Berg <sebastianb@nvidia.com> | 2022-10-05 11:59:25 +0200 |
---|---|---|
committer | Sebastian Berg <sebastianb@nvidia.com> | 2022-10-05 22:00:56 +0200 |
commit | 508722f65995844a130fd6f287ae0503ea60f76e (patch) | |
tree | d3cad33b9f8ad2fb8bb7406a3511dc75a9a92682 /numpy/array_api | |
parent | f062589346b52406144ad2d73b7bc969974cba90 (diff) | |
download | numpy-508722f65995844a130fd6f287ae0503ea60f76e.tar.gz |
DEP: Deprecate out-of-bound Python integer conversions
Any conversion from a Python integer (or subclass) that is stored
into a NumPy dtype but does not fit should raise an error in the future.
Note, that casts between NumPy types (or assignments of them) are
explicitly not affected by this.
There are certain use-cases for allowing such casts, even if
technically undefined behavior in C. They just work out well
in practice in many cases since e.g. -1 is all 1's in binary
represenation (twos complement repr).
Diffstat (limited to 'numpy/array_api')
0 files changed, 0 insertions, 0 deletions