04-24-2020, 05:58 PM
Yes. I checked the code and the use_cache kwarg is not in 4.5. There is another way, but it is a bit of a blunt instrument. You can clear the entire expression cache using.
parser = ExpressionParser()
parser.clear_cache()
result = parser.eval(expr)
The only impact is performance if a large number of similar expressions are called. This is why the use_cache kwarg is better, but clear_cache is available in 4.5 and if isolated to ExpressionValueWdg, it's not so bad.
parser = ExpressionParser()
parser.clear_cache()
result = parser.eval(expr)
The only impact is performance if a large number of similar expressions are called. This is why the use_cache kwarg is better, but clear_cache is available in 4.5 and if isolated to ExpressionValueWdg, it's not so bad.