Re:Chris Lattner on garbage collection vs. Automatic Referen...
by xscott on Sunday April 24, 2022 @04:07AM
(#31142135)
Python doesn't have block scope, but most people don't seem to notice:
That will generate an error because `x` is "referenced before assignment", but the variable exists for the entire function. This can bite you in subtle ways:
[ Parent
| on HN ]
There are no comments on this comment yet.