summaryrefslogtreecommitdiff
path: root/numpy/core/fromnumeric.py
diff options
context:
space:
mode:
authorHameer Abbasi <einstein.edison@gmail.com>2020-04-10 20:19:36 +0200
committerGitHub <noreply@github.com>2020-04-10 13:19:36 -0500
commit1f3650643f341af8ca5c12529a479d73d3103895 (patch)
tree11ba7e500599d4aab078d8cb21b5c5f9e02ebe4e /numpy/core/fromnumeric.py
parent42228fcb513c08729f822fa6be70e16a7a68067f (diff)
downloadnumpy-1f3650643f341af8ca5c12529a479d73d3103895.tar.gz
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
Diffstat (limited to 'numpy/core/fromnumeric.py')
0 files changed, 0 insertions, 0 deletions