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.
[ Parent
| on HN ]
There are no comments on this comment yet.