From 7f79e23cd3b8f6768fa84a5663c3ab31ee47bf95 Mon Sep 17 00:00:00 2001 From: Lafrite Date: Tue, 7 Apr 2015 08:55:05 +0200 Subject: [PATCH] lastbug with facto? --- pymath/abstract_polynom.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pymath/abstract_polynom.py b/pymath/abstract_polynom.py index f434983..9eb8894 100644 --- a/pymath/abstract_polynom.py +++ b/pymath/abstract_polynom.py @@ -65,6 +65,9 @@ class AbstractPolynom(Explicable): except IndexError: pass + if coefs == []: + coefs = [0] + self.feed_coef(coefs) self._letter = letter self.name = name