[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Commit-gnuradio] r11168 - gnuradio/trunk/grc/src/platforms/python
From: |
jblum |
Subject: |
[Commit-gnuradio] r11168 - gnuradio/trunk/grc/src/platforms/python |
Date: |
Sun, 31 May 2009 23:01:16 -0600 (MDT) |
Author: jblum
Date: 2009-05-31 23:01:16 -0600 (Sun, 31 May 2009)
New Revision: 11168
Modified:
gnuradio/trunk/grc/src/platforms/python/FlowGraph.py
Log:
Disabled eval cache, seems to fix odd problem with importing numpy, and
evaluating seemingly innocent strings.
Modified: gnuradio/trunk/grc/src/platforms/python/FlowGraph.py
===================================================================
--- gnuradio/trunk/grc/src/platforms/python/FlowGraph.py 2009-06-01
02:49:23 UTC (rev 11167)
+++ gnuradio/trunk/grc/src/platforms/python/FlowGraph.py 2009-06-01
05:01:16 UTC (rev 11168)
@@ -35,7 +35,7 @@
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 @@
@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):
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Commit-gnuradio] r11168 - gnuradio/trunk/grc/src/platforms/python,
jblum <=