diff options
author | Charles Harris <charlesr.harris@gmail.com> | 2019-04-22 19:04:52 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-04-22 19:04:52 -0600 |
commit | 6473fa20407ccd7581ac90cb3ef5b921a4a75cd7 (patch) | |
tree | 57a44c55676a82ee9d689e047751c40b009bde89 /doc/release | |
parent | 2b59dcb273f00e7be13cdc32c5f396a55781c2f4 (diff) | |
parent | 55c7ed2c6822b5a5b30db7472c863dc1fa0c338f (diff) | |
download | numpy-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.rst | 6 |
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 ======= |