summaryrefslogtreecommitdiff
path: root/doc/release
diff options
context:
space:
mode:
authorCharles Harris <charlesr.harris@gmail.com>2019-04-22 19:04:52 -0600
committerGitHub <noreply@github.com>2019-04-22 19:04:52 -0600
commit6473fa20407ccd7581ac90cb3ef5b921a4a75cd7 (patch)
tree57a44c55676a82ee9d689e047751c40b009bde89 /doc/release
parent2b59dcb273f00e7be13cdc32c5f396a55781c2f4 (diff)
parent55c7ed2c6822b5a5b30db7472c863dc1fa0c338f (diff)
downloadnumpy-6473fa20407ccd7581ac90cb3ef5b921a4a75cd7.tar.gz
Merge pull request #13371 from eric-wieser/__floor__-and-__ceil__
BUG/ENH: Make floor, ceil, and trunc call the matching special methods
Diffstat (limited to 'doc/release')
-rw-r--r--doc/release/1.17.0-notes.rst6
1 files changed, 6 insertions, 0 deletions
diff --git a/doc/release/1.17.0-notes.rst b/doc/release/1.17.0-notes.rst
index 87033f020..5fd29bef0 100644
--- a/doc/release/1.17.0-notes.rst
+++ b/doc/release/1.17.0-notes.rst
@@ -225,6 +225,12 @@ New keywords added to ``np.nan_to_num``
user to define the value to replace the ``nan``, positive and negative ``np.inf`` values
respectively.
+`floor`, `ceil`, and `trunc` now respect builtin magic methods
+--------------------------------------------------------------
+These ufuncs now call the ``__floor__``, ``__ceil__``, and ``__trunc__``
+methods when called on object arrays, making them compatible with
+`decimal.Decimal` and `fractions.Fraction` objects.
+
Changes
=======