From f5ddbb8cef11c08a55018317a609a798a222809f Mon Sep 17 00:00:00 2001 From: jblum Date: Mon, 1 Jun 2009 05:01:16 +0000 Subject: Disabled eval cache, seems to fix odd problem with importing numpy, and evaluating seemingly innocent strings. git-svn-id: http://gnuradio.org/svn/gnuradio/trunk@11168 221aa14e-8319-0410-a670-987f0aec2ac5 --- grc/src/platforms/python/FlowGraph.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'grc/src/platforms/python') diff --git a/grc/src/platforms/python/FlowGraph.py b/grc/src/platforms/python/FlowGraph.py index 73720b744..b2863ef72 100644 --- a/grc/src/platforms/python/FlowGraph.py +++ b/grc/src/platforms/python/FlowGraph.py @@ -35,7 +35,7 @@ def _get_value_expr(variable_block): class FlowGraph(_FlowGraph): - _eval_cache = dict() + #_eval_cache = dict() def _eval(self, code, namespace): """ Evaluate the code with the given namespace. @@ -44,11 +44,11 @@ class FlowGraph(_FlowGraph): @return the resultant object """ #check cache - if self._eval_cache.has_key(code) and self._eval_cache[code][0] == namespace: - return self._eval_cache[code][1] + #if self._eval_cache.has_key(code) and self._eval_cache[code][0] == namespace: + # return self._eval_cache[code][1] #evaluate result = eval(code, namespace, namespace) - self._eval_cache[code] = (namespace.copy(), result) + #self._eval_cache[code] = (namespace.copy(), result) return result def _get_io_signature(self, pad_key): -- cgit