[Numpy-svn] r5142 - branches/1.1.x/numpy/core

numpy-svn at scipy.org numpy-svn at scipy.org
Wed May 7 17:18:56 EDT 2008


Author: oliphant
Date: 2008-05-07 16:18:55 -0500 (Wed, 07 May 2008)
New Revision: 5142

Modified:
   branches/1.1.x/numpy/core/defmatrix.py
Log:
Remove un-needed attribute look-up

Modified: branches/1.1.x/numpy/core/defmatrix.py
===================================================================
--- branches/1.1.x/numpy/core/defmatrix.py	2008-05-07 20:25:42 UTC (rev 5141)
+++ branches/1.1.x/numpy/core/defmatrix.py	2008-05-07 21:18:55 UTC (rev 5142)
@@ -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