diff options
author | Eric Wieser <wieser.eric@gmail.com> | 2017-08-01 20:29:36 +0000 |
---|---|---|
committer | Charles Harris <charlesr.harris@gmail.com> | 2017-08-05 10:36:48 -0600 |
commit | 2b781f8967488dc007f8f0a1e6a7f49208788d12 (patch) | |
tree | 88ad7478e033ce5980a365a479e22b78ba1cecaa /numpy/doc/creation.py | |
parent | 5ab02b15de72fa00d785f49c62466fe048264cc4 (diff) | |
download | numpy-2b781f8967488dc007f8f0a1e6a7f49208788d12.tar.gz |
MAINT/DOC: Use builtin when np.{x} is builtins.{x}.
This is the case for x in {int, bool, str, float, complex, object}.
Using the np.{x} version is deceptive as it suggests that there is a
difference. This change doesn't affect any external behaviour. The
`long` type is missing in python 3, so np.long is still useful
Diffstat (limited to 'numpy/doc/creation.py')
-rw-r--r-- | numpy/doc/creation.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/doc/creation.py b/numpy/doc/creation.py index 8480858d4..babe6a4d7 100644 --- a/numpy/doc/creation.py +++ b/numpy/doc/creation.py @@ -58,7 +58,7 @@ examples will be given here: :: >>> np.arange(10) array([0, 1, 2, 3, 4, 5, 6, 7, 8, 9]) - >>> np.arange(2, 10, dtype=np.float) + >>> np.arange(2, 10, dtype=float) array([ 2., 3., 4., 5., 6., 7., 8., 9.]) >>> np.arange(2, 3, 0.1) array([ 2. , 2.1, 2.2, 2.3, 2.4, 2.5, 2.6, 2.7, 2.8, 2.9]) |