Skip to content

[WIP] make @compile_fun correctly recurse through imported names, to try to fix #52#53

Open
smarie wants to merge 2 commits into
mainfrom
fix_issue_52
Open

[WIP] make @compile_fun correctly recurse through imported names, to try to fix #52#53
smarie wants to merge 2 commits into
mainfrom
fix_issue_52

Conversation

@smarie

@smarie smarie commented Mar 23, 2020

Copy link
Copy Markdown
Owner

This is work in progress: basically co_names should be used (done)

But it seems that there are issues with the way the eval dict (globals/locals) is propagated. Indeed when an external symbol is compiled, the eval dict should not be propagated. Instead its own eval dict should be used. This is available through target.__globals__ for functions, but not for other symbols (classes...).

Not sure all of this is done correctly today but I actually do not have time to dedicate to it as I am not sure about the potential benefits :)

Base automatically changed from master to main March 22, 2021 14:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

1 participant