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

Global Import Context Manager #71

Open
insertinterestingnamehere opened this issue May 11, 2021 · 0 comments
Open

Global Import Context Manager #71

insertinterestingnamehere opened this issue May 11, 2021 · 0 comments
Labels
enhancement New feature or request VECs Related to Virtual Execution Contexts

Comments

@insertinterestingnamehere
Copy link
Member

With VECs, we should provide a context manager that allows users to do global imports instead of requiring that they use the mark_module_as_global interface. Following dependencies like this will hopefully make user-level code less error-prone. As it is currently it's easy to accidentally forget a dependency and end up with it getting included in a VEC unintentionally. Having a global module that isn't aware of VECs depend on a stateful module that has been loaded into a VEC will likely lead to confusing bugs.

@insertinterestingnamehere insertinterestingnamehere added enhancement New feature or request VECs Related to Virtual Execution Contexts labels May 11, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request VECs Related to Virtual Execution Contexts
Projects
None yet
Development

No branches or pull requests

1 participant