[Numpy-svn] r8291 - branches/1.4.x/numpy/polynomial

numpy-svn@scip... numpy-svn@scip...
Sun Mar 7 19:39:12 CST 2010


Author: charris
Date: 2010-03-07 19:39:12 -0600 (Sun, 07 Mar 2010)
New Revision: 8291

Modified:
   branches/1.4.x/numpy/polynomial/polytemplate.py
Log:
ENH: Don't let Chebyshev and Polynomial participate in array operations.


Modified: branches/1.4.x/numpy/polynomial/polytemplate.py
===================================================================
--- branches/1.4.x/numpy/polynomial/polytemplate.py	2010-03-08 01:33:43 UTC (rev 8290)
+++ branches/1.4.x/numpy/polynomial/polytemplate.py	2010-03-08 01:39:12 UTC (rev 8291)
@@ -49,7 +49,10 @@
     """
     # Limit runaway size. T_n^m has degree n*2^m
     maxpower = 16
+    # Default domain
     domain = np.array($domain)
+    # Don't let participate in array operations. Value doesn't matter.
+    __array_priority__ = 0
 
     def __init__(self, coef, domain=$domain) :
         [coef, domain] = pu.as_series([coef, domain], trim=False)



More information about the Numpy-svn mailing list