in reply to Re^8: Closures and scope of lexicals
in thread Closures and scope of lexicals
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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^10: Closures and scope of lexicals
by LanX (Saint) on Oct 31, 2024 at 15:07 UTC | |
by ikegami (Patriarch) on Oct 31, 2024 at 17:51 UTC | |
by LanX (Saint) on Oct 31, 2024 at 18:36 UTC |