bibliopixel.project.recurse module¶
-
bibliopixel.project.recurse.
recurse
(desc, pre='pre_recursion', post=None, python_path=None)[source]¶ Depth first recursion through a dictionary containing type constructors
The arguments pre, post and children are independently either:
- None, which means to do nothing
- a string, which means to use the static class method of that name on the class being constructed, or
- a callable, to be called at each recursion
Arguments:
dictionary – a project dictionary or one of its subdictionaries pre – called before children are visited node in the recursion post – called after children are visited in the recursion python_path – relative path to start resolving typenames