Saying Python's behavior is consistent to Perl's is at best an over simplification and can't be left uncommented.
Nope, no simplification. Capturing works exactly the same: Variables in scope remain accessible beyond their normal scope.
In reply to Re^9: Closures and scope of lexicals
by ikegami
in thread Closures and scope of lexicals
by haj
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |