R. David Murray <rdmurray at bitdance.com> added the comment: In 3.x, yes (the nonlocal keyword). Not in 2.7, though. ---------- nosy: +r.david.murray _______________________________________ Python tracker <report at bugs.python.org> <http://bugs.python.org/issue12023> _______________________________________