What is the Pythonic equivalent of Perl's lexical scope, as illustrated by the code snippet above?
The useful (to you) pythonic answer depends rather a lot on why you want to do something like that. While you've been given several possibilities, the "correct" answer might well be "don't do that at all" :-) -- Rhodri James *-* Wildebeest Herder to the Masses -- http://mail.python.org/mailman/listinfo/python-list