Thanks Kent for your reply. I had to do as you suggest but I was thinking either it was a kludge, and there should be a 'deep' substitution of globals, or that there was a good reason for it to work as it does and some magician would tell me. Oh, the third reason could be that it was first implimented that way and no-one has submitted a patch of course.
Could someone clue me in? Ta, Paddy. -- http://mail.python.org/mailman/listinfo/python-list