[Numpy-svn] r4821 - trunk/numpy/lib

numpy-svn@scip... numpy-svn@scip...
Sun Feb 24 12:01:57 CST 2008


Author: matthew.brett@gmail.com
Date: 2008-02-24 12:01:43 -0600 (Sun, 24 Feb 2008)
New Revision: 4821

Modified:
   trunk/numpy/lib/function_base.py
Log:
Return to condition where overwrite_output for median raises error for non-ndarray input

Modified: trunk/numpy/lib/function_base.py
===================================================================
--- trunk/numpy/lib/function_base.py	2008-02-23 06:37:45 UTC (rev 4820)
+++ trunk/numpy/lib/function_base.py	2008-02-24 18:01:43 UTC (rev 4821)
@@ -1226,7 +1226,8 @@
        median. This will save memory when you do not need to preserve
        the contents of the input array. Treat the input as undefined,
        but it will probably be fully or partially sorted. Default is
-       False
+       False. Note that, if overwrite_input is true, and the input
+       is not already an ndarray, an error will be raised.
 
     Returns
     -------
@@ -1275,7 +1276,6 @@
     3.5
     >>> assert not np.all(a==b)
     """
-    a = asanyarray(a)
     if overwrite_input:
         if axis is None:
             sorted = a.ravel()



More information about the Numpy-svn mailing list