diff options
author | Charles Harris <charlesr.harris@gmail.com> | 2011-07-15 14:00:35 -0600 |
---|---|---|
committer | Ralf Gommers <ralf.gommers@googlemail.com> | 2011-07-16 10:57:38 +0200 |
commit | cdfe3b59be76c829d14ff028315542fd2e16ae1e (patch) | |
tree | f7ccd957bbcea2006c301569ca5a3d914603e309 /numpy/polynomial/polytemplate.py | |
parent | 1451b414693d63d8224857b1c67726eb8d5f97af (diff) | |
download | numpy-cdfe3b59be76c829d14ff028315542fd2e16ae1e.tar.gz |
BUG: Fix regression in printing polynomials.
Diffstat (limited to 'numpy/polynomial/polytemplate.py')
-rw-r--r-- | numpy/polynomial/polytemplate.py | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/numpy/polynomial/polytemplate.py b/numpy/polynomial/polytemplate.py index 3763123dc..9d5607467 100644 --- a/numpy/polynomial/polytemplate.py +++ b/numpy/polynomial/polytemplate.py @@ -177,15 +177,13 @@ class $name(pu.PolyBase) : format = "%s(%s, %s, %s)" coef = repr(self.coef)[6:-1] domain = repr(self.domain)[6:-1] - window = repr(self.domain)[6:-1] + window = repr(self.window)[6:-1] return format % ('$name', coef, domain, window) def __str__(self) : - format = "%s(%s, %s, %s)" - coef = str(self.coef)[6:-1] - domain = str(self.domain)[6:-1] - window = str(self.domain)[6:-1] - return format % ('$nick', coef, domain, window) + format = "%s(%s)" + coef = str(self.coef) + return format % ('$nick', coef) # Pickle and copy |