by turlando · 7y ago · 0 comments
But it doesn't. In Python only modules, classes and functions make a new scope. A block doesn't. (And that's because it "forces" you to write small self-contained functions.)
It's funny that he also links to a documentation page that clearly doesn't talk about scope at all.
Personal reflection: I rarely rant publicly about something, but when I do I make sure that I'm not saying something stupid that a quick google search can refute.
No comments yet.