Skip to content
New issue

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

fix: globals().update(include('sample')) overrides local env bound functions #1218

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

rpuntaie
Copy link

@rpuntaie rpuntaie commented Apr 1, 2020

I use this to define just functions in templates and then "import" them in the mentioned way.
Then I noticed that a second %include behaves differently.
The reason was that the second %include is bound to the env inside the include merged with the current env (using globals().update).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant