diff options
author | jblum | 2009-06-01 05:01:16 +0000 |
---|---|---|
committer | jblum | 2009-06-01 05:01:16 +0000 |
commit | f5ddbb8cef11c08a55018317a609a798a222809f (patch) | |
tree | 5e7ba43ba3187960d731021517195b700aefa845 /grc/src/platforms/python | |
parent | b69fcaad88a5ca40eac7d7e7808341412e0de870 (diff) | |
download | gnuradio-f5ddbb8cef11c08a55018317a609a798a222809f.tar.gz gnuradio-f5ddbb8cef11c08a55018317a609a798a222809f.tar.bz2 gnuradio-f5ddbb8cef11c08a55018317a609a798a222809f.zip |
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
Diffstat (limited to 'grc/src/platforms/python')
-rw-r--r-- | grc/src/platforms/python/FlowGraph.py | 8 |
1 files changed, 4 insertions, 4 deletions
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): |