We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When a local variable has the same name as a global variable, flyable thinks we are talking about the global variable.
example 1:
x = "global " def foo(): x = x * 2 print(x) foo() print(x)
cpython: error flyable: prints global global
example 2:
x = "global " def foo(): x = "hello" print(x) foo() print(x)
cpython: prints hello global flyable: prints hello hello
The text was updated successfully, but these errors were encountered:
There's an issue with the scope of nested functions that might be related.
example:
def outer(): x = "hello" def inner(): x = "world" print("inner:" + x) inner() print("outer:" + x) def foo(): inner() outer() foo()
the above code prints: inner:world outer:hello inner:world
But it should raise an error since foo() shouldn't be able to call inner().
Sorry, something went wrong.
@MoSk3 Is this one good to close?
Not fully, still working on the error raising
Cpython opcodes take cares of that. We will just need to lookup provided in the Function Frame.
ALavallee
No branches or pull requests
When a local variable has the same name as a global variable, flyable thinks we are talking about the global variable.
example 1:
cpython: error
flyable: prints global global
example 2:
cpython: prints hello global
flyable: prints hello hello
The text was updated successfully, but these errors were encountered: