[Jozef] > I am not really sure even what this means... does lambda create a new > scope or something? Is there another way to write this? What you wrote seems to work for me. I'm using Python 2.2.1. What version are you using? nested_scopes is new with 2.2, but available in 2.1 with from future import, true? // mark