News for hackers. Stuff that matters.
Re:Understanding a Python Closure Oddity by hcmarker on Monday June 17, 2024 @11:48AM (#40706881)
I get why it behaves like this, but I find it odd that Python claims to have "lexical scoping". This is not lexical (as you read it). This is based on somewhat hidden reference lookups.

There are no comments on this comment yet.