From 3a95cce7aeeabf6c45e1e3ebf4fabc6f635677ec Mon Sep 17 00:00:00 2001 From: David Halter Date: Fri, 24 Aug 2012 18:01:39 +0200 Subject: [PATCH] InstanceElement should always be the same, cache them --- evaluate.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/evaluate.py b/evaluate.py index 7071891a..1625b1dc 100644 --- a/evaluate.py +++ b/evaluate.py @@ -255,6 +255,8 @@ class Instance(Executable): class InstanceElement(object): + __metaclass__ = CachedMetaClass + def __init__(self, instance, var): if isinstance(var, parsing.Function): var = Function(var)