4 ms·
>The Python manual says that you can use any number of spaces or tabs for defining the scope. But it doesn't. In Python only modules, classes and functions mak
by turlando 8y ago
>The Python manual says that you can use any number of spaces or tabs for defining the scope.
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.