News for hackers. Stuff that matters.

hcmarker

Re:Understanding a Python Closure Oddity 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.