There's a good StackOverflow answer on this: http://stackoverflow.com/questions/2295290/what-do-lambda-function-closures-capture-in-python The question is actually by my boss, but that's something of a coincidence: I found it with google then remembered that he had stumbled on the problem before. gr, Tikitu -- Tikitu de Jager