summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDimitri Papadopoulos <3234522+DimitriPapadopoulos@users.noreply.github.com>2021-10-07 12:54:15 +0200
committerDimitri Papadopoulos <3234522+DimitriPapadopoulos@users.noreply.github.com>2021-10-07 12:57:15 +0200
commit5dc744e3adba84a9da1efd66cd9403cb03202d49 (patch)
tree77d43737672360eac259c9c6072beca45a9e691f
parente4d1c7781fcd762646c77449690491597c2be82f (diff)
downloadnumpy-5dc744e3adba84a9da1efd66cd9403cb03202d49.tar.gz
DOC: adapt division documentation, in par with Python 3
-rw-r--r--numpy/core/code_generators/ufunc_docstrings.py8
1 files changed, 3 insertions, 5 deletions
diff --git a/numpy/core/code_generators/ufunc_docstrings.py b/numpy/core/code_generators/ufunc_docstrings.py
index 14d4fd5ca..9ae9a24c0 100644
--- a/numpy/core/code_generators/ufunc_docstrings.py
+++ b/numpy/core/code_generators/ufunc_docstrings.py
@@ -1091,8 +1091,7 @@ add_newdoc('numpy.core.umath', 'divide',
Behavior on division by zero can be changed using ``seterr``.
- When both ``x1`` and ``x2`` are of an integer type, equivalent
- to `numpy.true_divide`.
+ Behaves like ``true_divide``.
Examples
--------
@@ -4016,9 +4015,8 @@ add_newdoc('numpy.core.umath', 'true_divide',
"""
Returns a true division of the inputs, element-wise.
- Instead of the Python traditional 'floor division', this returns a true
- division. True division adjusts the output type to present the best
- answer, regardless of input types.
+ Unlike 'floor division', true division adjusts the output type
+ to present the best answer, regardless of input types.
Parameters
----------