summaryrefslogtreecommitdiff
path: root/numpy/lib/polynomial.py
diff options
context:
space:
mode:
authorPauli Virtanen <pav@iki.fi>2010-02-21 02:47:31 +0000
committerPauli Virtanen <pav@iki.fi>2010-02-21 02:47:31 +0000
commit866abe53b0113b890893787f966e812ff771e11f (patch)
tree3cd7764cd26c0f52d2e04e10191f1dfd467366fc /numpy/lib/polynomial.py
parentb47f2caba51e6e5b4e96fb16089db8e5abfcdc1b (diff)
downloadnumpy-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.py2
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)