Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Set globals to {} #5

Closed
wants to merge 1 commit into from
Closed

Set globals to {} #5

wants to merge 1 commit into from

Conversation

pavelzw
Copy link

@pavelzw pavelzw commented Dec 6, 2023

Fixes #3

When you don't set the globals in exec, they get inherited from the point where exec is called. Then, pd won't get added to the globals while running the method.

Debugging pythonji with globals set:

pythonji-with-globals.mov

Debugging pythonji without setting globals:

pythonji-no-globals.mp4

@pavelzw
Copy link
Author

pavelzw commented Jan 31, 2024

Added to pavelzw/pythonji-2 since this is apparently not maintained anymore.

@pavelzw pavelzw closed this Jan 31, 2024
@pavelzw pavelzw deleted the set-globals branch January 31, 2024 16:10
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

pythonji fails when imported variables are used inside of a method
1 participant