report a bug

This commit is contained in:
Lafrite 2015-05-23 08:06:57 +02:00
parent 57bc2355aa
commit 7648460022

View File

@ -89,6 +89,7 @@ class Expression(Explicable):
if type(exp) == str:
expression.postfix_tokens = str2tokens(exp)
elif type(exp) == list:
# Bug ici quand i ne peut pas être converti en string
exp_mod_op = [op.get_op(i) if (str(i) in "+-*/^" and not isOperator(i)) else i for i in exp]
expression.postfix_tokens = flatten_list([tok.postfix_tokens if Expression.isExpression(tok) else tok for tok in exp_mod_op])
elif type(exp) == Expression: