summaryrefslogtreecommitdiff
path: root/taskflow/patterns/graph_flow.py
diff options
context:
space:
mode:
authorJoshua Harlow <harlowja@yahoo-inc.com>2014-07-21 18:25:49 -0700
committerJoshua Harlow <harlowja@yahoo-inc.com>2014-09-08 13:00:25 -0700
commitfa077c953fac48cf8fcb8ef4d178017b93d4ffce (patch)
tree25601aa350db1a4348c42b819b5c1b87d4a392ae /taskflow/patterns/graph_flow.py
parente68d72f66e387f5b9f9a543d8ac3000ef5cfbbdc (diff)
downloadtaskflow-fa077c953fac48cf8fcb8ef4d178017b93d4ffce.tar.gz
Revamp the symbol lookup mechanism
To complement the future changes in patterns we also want to allow the execution of patterns to be affected in a similar manner so that symbol lookup is no longer as confined as it was. This change adds in the following: - Symbol lookup by walking through an atoms contained scope/s. - Better error messaging when symbols are not found. - Adjusted & new tests (existing ones work). - Better logging of the symbol lookup mechanism (helpful during debugging, although it is very verbose...) Part of blueprint taskflow-improved-scoping Change-Id: Id921a4abd9bf2b7b5c5a762337f8e90e8f1fe194
Diffstat (limited to 'taskflow/patterns/graph_flow.py')
-rw-r--r--taskflow/patterns/graph_flow.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/taskflow/patterns/graph_flow.py b/taskflow/patterns/graph_flow.py
index 9717b21..658e051 100644
--- a/taskflow/patterns/graph_flow.py
+++ b/taskflow/patterns/graph_flow.py
@@ -161,7 +161,7 @@ class Flow(flow.Flow):
return self._get_subgraph().number_of_nodes()
def __iter__(self):
- for n in self._get_subgraph().nodes_iter():
+ for n in self._get_subgraph().topological_sort():
yield n
def iter_links(self):