[Numpy-svn] r8217 - trunk/numpy/lib
numpy-svn at scipy.org
numpy-svn at scipy.org
Sat Feb 20 21:51:35 EST 2010
Author: ptvirtan
Date: 2010-02-20 20:51:34 -0600 (Sat, 20 Feb 2010)
New Revision: 8217
Modified:
trunk/numpy/lib/polynomial.py
Log:
3K: lib: implement __rtruediv__ for poly1d
Modified: trunk/numpy/lib/polynomial.py
===================================================================
--- trunk/numpy/lib/polynomial.py 2010-02-21 02:51:20 UTC (rev 8216)
+++ trunk/numpy/lib/polynomial.py 2010-02-21 02:51:34 UTC (rev 8217)
@@ -1156,6 +1156,8 @@
other = poly1d(other)
return polydiv(other, self)
+ __rtruediv__ = __rdiv__
+
def __eq__(self, other):
return NX.alltrue(self.coeffs == other.coeffs)
More information about the Numpy-svn
mailing list