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

numpy-svn at scipy.org numpy-svn at scipy.org
Wed May 7 17:19:32 EDT 2008


Author: oliphant
Date: 2008-05-07 16:19:32 -0500 (Wed, 07 May 2008)
New Revision: 5143

Modified:
   trunk/numpy/core/defmatrix.py
Log:
Remove un-needed attribute lookup in 1.2

Modified: trunk/numpy/core/defmatrix.py
===================================================================
--- trunk/numpy/core/defmatrix.py	2008-05-07 21:18:55 UTC (rev 5142)
+++ trunk/numpy/core/defmatrix.py	2008-05-07 21:19:32 UTC (rev 5143)
@@ -261,7 +261,7 @@
         if isinstance(other,(N.ndarray, list, tuple)) :
             # This promotes 1-D vectors to row vectors
             return N.dot(self, asmatrix(other))
-        if N.isscalar(other) or not hasattr(other, '__rmul__') :
+        if isscalar(other) or not hasattr(other, '__rmul__') :
             return N.dot(self, other)
         return NotImplemented
 




More information about the Numpy-svn mailing list