Jonathan Claggett <jcc.ugm at ix.netcom.com> wrote: ...talk about mixing indexing and dotted attribute access sniped > # generic usage (using Bunch as a hash) > def traverse(node, next): > while node: > print node.value > node = node[next] node = getattr(node, next) would do the same without any trickery:) -- groetjes, carel