On Wed, 30 Nov 2022 at 18:02, Anony Mous <fyngyrz@gmail.com> wrote:
For instance, a "local:" declaration could be treated as if it were "def function()" with an immediately succeeding call as far as the interpreter is concerned. That buys the scoping for (nearly) free.

That would make "return" in the local scope exit the scope, not the enclosing function. Which is almost certainly not what people would expect from a "local scope" statement.

Paul