[Numpy-svn] r5310 - trunk/numpy/core

numpy-svn@scip... numpy-svn@scip...
Mon Jun 23 03:15:01 CDT 2008


Author: alan.mcintyre
Date: 2008-06-23 03:14:59 -0500 (Mon, 23 Jun 2008)
New Revision: 5310

Modified:
   trunk/numpy/core/arrayprint.py
   trunk/numpy/core/numerictypes.py
Log:
Fixed imports in doctests.


Modified: trunk/numpy/core/arrayprint.py
===================================================================
--- trunk/numpy/core/arrayprint.py	2008-06-23 07:12:36 UTC (rev 5309)
+++ trunk/numpy/core/arrayprint.py	2008-06-23 08:14:59 UTC (rev 5310)
@@ -218,6 +218,7 @@
     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.]

Modified: trunk/numpy/core/numerictypes.py
===================================================================
--- trunk/numpy/core/numerictypes.py	2008-06-23 07:12:36 UTC (rev 5309)
+++ trunk/numpy/core/numerictypes.py	2008-06-23 08:14:59 UTC (rev 5310)
@@ -110,7 +110,7 @@
 
     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 @@
 
     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 @@
 
     Examples
     --------
-    >>> from numpy.lib.utils import english_capitalize
+    >>> from numpy.core.numerictypes import english_capitalize
     >>> english_capitalize('int8')
     'Int8'
     >>> english_capitalize('Int8')



More information about the Numpy-svn mailing list