Re:I'm Switching to Python and Actually Liking It
by MyOutfitIsVague on Wednesday July 16, 2025 @05:24PM
(#44586942)
There's no block scope in Python. The smallest scope is function. Comprehension variables don't leak out, though, which causes some weird situations:
Comprehensions have their own local scope for their local variables, but the walrus operator reaches up to the innermost "assignable" scope.
[ Parent
| on HN ]
There are no comments on this comment yet.