4 ms·
It's got some factual errors. > In Python, inner scopes can only see outer scopes, but not change them. Unless you explicitly declare your intent with a `nonl
by mumblemumble 5y ago
It's got some factual errors.
> In Python, inner scopes can only see outer scopes, but not change them.
Unless you explicitly declare your intent with a `nonlocal` declaration.
> This distinction between expressions and statements is rather arbitrary, and doesn’t occur in other languages.
This is technically true, but the phrasing is potentially misleading. There are some other languages where every statement is an expression, but most make a firm distinction. Including 2/3 of the languages that the article proposes as alternatives to Python.