namespace dictionaries ok?

Simon Burton simon at arrowtheory.com
Tue Oct 25 19:58:51 EDT 2005


In my case the deeply nested function calls are recursive calls for a
tree traversal.
This is similar to the visitor design pattern, where the Context class
above is the Visitor. The difference is that the Context instance does
not "visit" or "act" upon the nodes, but just stores state/context
information about the current traversal.

Simon.




More information about the Python-list mailing list