diff options
author | Alan McIntyre <alan.mcintyre@local> | 2008-07-02 01:15:06 +0000 |
---|---|---|
committer | Alan McIntyre <alan.mcintyre@local> | 2008-07-02 01:15:06 +0000 |
commit | aa26afb8fbb6901bed42e895e410728b0dd1f6bc (patch) | |
tree | ce60c447f698888c62300b3fa0aaba83b3b7b9a7 /numpy/core/arrayprint.py | |
parent | bc01c96daf61de61046c5ac7d17a80ab35ccd0ef (diff) | |
download | numpy-aa26afb8fbb6901bed42e895e410728b0dd1f6bc.tar.gz |
Update doctests to use the implicit "import numpy as np" made available
to all doctests.
Diffstat (limited to 'numpy/core/arrayprint.py')
-rw-r--r-- | numpy/core/arrayprint.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/numpy/core/arrayprint.py b/numpy/core/arrayprint.py index 99f9c8607..377457e23 100644 --- a/numpy/core/arrayprint.py +++ b/numpy/core/arrayprint.py @@ -218,9 +218,8 @@ def array2string(a, max_line_width = None, precision = None, Examples -------- - >>> import numpy as N - >>> x = N.array([1e-16,1,2,3]) - >>> print array2string(x,precision=2,separator=',',suppress_small=True) + >>> x = np.array([1e-16,1,2,3]) + >>> print np.core.array2string(x,precision=2,separator=',',suppress_small=True) [ 0., 1., 2., 3.] """ |