Changing global variables in tkinter/pmw callback

Carel Fellinger cfelling at iae.nl
Sat Apr 7 17:39:35 EDT 2001


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



More information about the Python-list mailing list