From 1f3650643f341af8ca5c12529a479d73d3103895 Mon Sep 17 00:00:00 2001 From: Hameer Abbasi Date: Fri, 10 Apr 2020 20:19:36 +0200 Subject: BUG,DEP: Make `scalar.__round__()` behave like pythons round (#15840) See issue gh-15297 and related mailing list discussion. This PR bring scalar.__round__() in line with python, so that `round(scalar)` always returns a python integer, while `round(scalar, ndigits=0)` returns the same type. Since complex numbers are not supported in Python, and cannot be reasonably cast to integers they are deprecated. Closes gh-15297 --- .gitignore | 1 + 1 file changed, 1 insertion(+) (limited to '.gitignore') diff --git a/.gitignore b/.gitignore index c865d4845..a203abd5b 100644 --- a/.gitignore +++ b/.gitignore @@ -125,6 +125,7 @@ numpy/core/include/numpy/multiarray_api.txt numpy/core/include/numpy/ufunc_api.txt numpy/core/lib/ numpy/core/src/common/npy_binsearch.h +numpy/core/src/common/npy_cpu_features.c numpy/core/src/common/npy_partition.h numpy/core/src/common/npy_sort.h numpy/core/src/common/templ_common.h -- cgit v1.2.1