We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
co_freevars
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
Opening this separately from #1838 since it also seems like a good first issue.
Currently, code objects are missing the co_freevars attribute:
def foo(a, b): def bar(c, d): print(a, b, c, d)
In RustPython:
>>>>> foo.__code__.co_freevars Traceback (most recent call last): File "<stdin>", line 1, in <module> AttributeError: 'code' object has no attribute 'co_freevars'
While in Python:
>>> foo.__code__.co_freevars ('a', 'b')
looking at the other methods on PyCode should help, the implementation should be similar to others there that return a tuple.
PyCode
The text was updated successfully, but these errors were encountered:
co_stacksize
Successfully merging a pull request may close this issue.
Opening this separately from #1838 since it also seems like a good first issue.
Currently, code objects are missing the
co_freevars
attribute:In RustPython:
While in Python:
looking at the other methods on
PyCode
should help, the implementation should be similar to others there that return a tuple.The text was updated successfully, but these errors were encountered: