4 ms·
Everything is always* scoped to the entire function in Python. Perhaps that's not always ideal, but at least the rule is simple. * Well, not variables in gener
by ptx 5y ago
Everything is always* scoped to the entire function in Python. Perhaps that's not always ideal, but at least the rule is simple.
* Well, not variables in generator expressions. There might be a few other exceptions.