[Numpy-svn] r5344 - branches/1.1.x/numpy/ma

numpy-svn@scip... numpy-svn@scip...
Thu Jul 3 11:28:01 CDT 2008


Author: pierregm
Date: 2008-07-03 11:27:58 -0500 (Thu, 03 Jul 2008)
New Revision: 5344

Modified:
   branches/1.1.x/numpy/ma/core.py
Log:
substitute getattr(...,...)(*args,**kwargs)  for getattr(...,...).__call__(*args,**kwargs) in _frommethods

Modified: branches/1.1.x/numpy/ma/core.py
===================================================================
--- branches/1.1.x/numpy/ma/core.py	2008-07-03 08:43:58 UTC (rev 5343)
+++ branches/1.1.x/numpy/ma/core.py	2008-07-03 16:27:58 UTC (rev 5344)
@@ -3126,7 +3126,7 @@
             return getattr(np, self._methodname).__doc__
     def __call__(self, a, *args, **params):
         if isinstance(a, MaskedArray):
-            return getattr(a, self._methodname).__call__(*args, **params)
+            return getattr(a, self._methodname)(*args, **params)
         #FIXME ----
         #As x is not a MaskedArray, we transform it to a ndarray with asarray
         #... and call the corresponding method.



More information about the Numpy-svn mailing list