explan accept Polynom

This commit is contained in:
Lafrite 2015-02-27 18:02:27 +01:00
parent 506045a670
commit e2e3287420

View File

@ -70,7 +70,10 @@ class Explicable(Renderable):
# les étapes pour l'atteindre # les étapes pour l'atteindre
try: try:
for s in self.steps: for s in self.steps:
new_s = self.STR_RENDER(s) if hasattr(s, 'postfix_tokens'):
new_s = self.STR_RENDER(s.postfix_tokens)
else:
new_s = self.STR_RENDER(s)
if new_s != old_s: if new_s != old_s:
old_s = new_s old_s = new_s
yield new_s yield new_s