From aa26afb8fbb6901bed42e895e410728b0dd1f6bc Mon Sep 17 00:00:00 2001 From: Alan McIntyre Date: Wed, 2 Jul 2008 01:15:06 +0000 Subject: Update doctests to use the implicit "import numpy as np" made available to all doctests. --- numpy/core/arrayprint.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'numpy/core/arrayprint.py') 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.] """ -- cgit v1.2.1