diff options
author | Matti Picus <matti.picus@gmail.com> | 2020-08-13 14:32:39 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-08-13 14:32:39 +0300 |
commit | dd2ddde2a22b80ad8fee815276065f417bdd2177 (patch) | |
tree | e3f72184580e0f695479a9fb499d7fc694137b3e /numpy/core/function_base.py | |
parent | cd699831aa344fc1af8d8c91fb6e27eb41e35c00 (diff) | |
download | numpy-dd2ddde2a22b80ad8fee815276065f417bdd2177.tar.gz |
Apply suggestions from code review
Co-authored-by: Eric Wieser <wieser.eric@gmail.com>
Diffstat (limited to 'numpy/core/function_base.py')
-rw-r--r-- | numpy/core/function_base.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/numpy/core/function_base.py b/numpy/core/function_base.py index 46ef6d6ec..b2f17cfeb 100644 --- a/numpy/core/function_base.py +++ b/numpy/core/function_base.py @@ -36,7 +36,8 @@ def linspace(start, stop, num=50, endpoint=True, retstep=False, dtype=None, .. versionchanged:: 1.20.0 Values are rounded towards ``-inf`` instead of ``0`` when an - integer ``dtype`` is specified. + integer ``dtype`` is specified. The old behavior can + still be obtained with ``np.linspace(start, stop, num).astype(int)`` Parameters ---------- |