diff options
author | Alan McIntyre <alan.mcintyre@local> | 2008-06-23 08:14:59 +0000 |
---|---|---|
committer | Alan McIntyre <alan.mcintyre@local> | 2008-06-23 08:14:59 +0000 |
commit | 008bb901bc7e73f63d26f5a8cde34401603ae820 (patch) | |
tree | 25768393628ebbdb388e15f0581ff1aa601140b5 /numpy/core | |
parent | b7ff8ebbe0942b85b173bf4ec70fee6c1decbe37 (diff) | |
download | numpy-008bb901bc7e73f63d26f5a8cde34401603ae820.tar.gz |
Fixed imports in doctests.
Diffstat (limited to 'numpy/core')
-rw-r--r-- | numpy/core/arrayprint.py | 1 | ||||
-rw-r--r-- | numpy/core/numerictypes.py | 6 |
2 files changed, 4 insertions, 3 deletions
diff --git a/numpy/core/arrayprint.py b/numpy/core/arrayprint.py index 30035bbff..99f9c8607 100644 --- a/numpy/core/arrayprint.py +++ b/numpy/core/arrayprint.py @@ -218,6 +218,7 @@ 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) [ 0., 1., 2., 3.] diff --git a/numpy/core/numerictypes.py b/numpy/core/numerictypes.py index 3c4e8ad8c..903efc4a6 100644 --- a/numpy/core/numerictypes.py +++ b/numpy/core/numerictypes.py @@ -110,7 +110,7 @@ def english_lower(s): Examples -------- - >>> from numpy.lib.utils import english_lower + >>> from numpy.core.numerictypes import english_lower >>> english_lower('ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_') 'abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyz0123456789_' >>> english_upper('') @@ -137,7 +137,7 @@ def english_upper(s): Examples -------- - >>> from numpy.lib.utils import english_upper + >>> from numpy.core.numerictypes import english_upper >>> english_upper('ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_') 'ABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_' >>> english_upper('') @@ -163,7 +163,7 @@ def english_capitalize(s): Examples -------- - >>> from numpy.lib.utils import english_capitalize + >>> from numpy.core.numerictypes import english_capitalize >>> english_capitalize('int8') 'Int8' >>> english_capitalize('Int8') |