From 3f7cac0ddca4de73817067c7012628b04311ed9b Mon Sep 17 00:00:00 2001 From: Lafrite Date: Tue, 23 Dec 2014 10:34:51 +0100 Subject: [PATCH] Comment in AttributeError for __pw__ --- pymath/polynom.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pymath/polynom.py b/pymath/polynom.py index edac21d..2a2dbd2 100644 --- a/pymath/polynom.py +++ b/pymath/polynom.py @@ -447,12 +447,12 @@ class Polynom(object): steps.append(p) steps += p.simplify() - +[< Polynom [0, 0, 0, 0, 0, 0, 1]>] else: if power == 2: return [[self, self, op.mul]] + self * self else: - raise AttributeError("__pw__ not implemented yet") + raise AttributeError("__pw__ not implemented yet when power is greatter than 2") return steps