diff options
author | Pauli Virtanen <pav@iki.fi> | 2010-02-21 02:47:31 +0000 |
---|---|---|
committer | Pauli Virtanen <pav@iki.fi> | 2010-02-21 02:47:31 +0000 |
commit | 866abe53b0113b890893787f966e812ff771e11f (patch) | |
tree | 3cd7764cd26c0f52d2e04e10191f1dfd467366fc /numpy/lib/polynomial.py | |
parent | b47f2caba51e6e5b4e96fb16089db8e5abfcdc1b (diff) | |
download | numpy-866abe53b0113b890893787f966e812ff771e11f.tar.gz |
3K: lib: poly1d __div__ -> __truediv__, and fix its doctests
Diffstat (limited to 'numpy/lib/polynomial.py')
-rw-r--r-- | numpy/lib/polynomial.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/numpy/lib/polynomial.py b/numpy/lib/polynomial.py index 002b2859a..850d5799b 100644 --- a/numpy/lib/polynomial.py +++ b/numpy/lib/polynomial.py @@ -1147,6 +1147,8 @@ class poly1d(object): other = poly1d(other) return polydiv(self, other) + __truediv__ = __div__ + def __rdiv__(self, other): if isscalar(other): return poly1d(other/self.coeffs) |