Clauses do not have access to outer scopes #4
Labels
bug
Something isn't working
good first issue
Good for newcomers
help wanted
Extra attention is needed
Inner scopes do not have access to variables defined in outer scopes. This makes it impossible to access global variables, define closures or even call a function inside another function defined elsewhere, e.g.
To reproduce this example, run the following code, which assigns 1 to a global variable b, then tries to access this variable b to print it inside an inner scope.
The example above results in the following exception:
Tested with Python 3.8.3, Win10.
The text was updated successfully, but these errors were encountered: