Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

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

Whitelisting the standard library #200

Closed
JSAbrahams opened this issue Mar 9, 2020 · 0 comments
Closed

Whitelisting the standard library #200

JSAbrahams opened this issue Mar 9, 2020 · 0 comments

Comments

@JSAbrahams
Copy link
Owner

Issue, or potential issue

We are currently working towards building a proper import/class loader system where we can check that classes are indeed imported.
As we can't ensure the safety of Python imports, we should add an unsafe operator (likely !) to mark code as unsafe.
However, as Python has a rather large sdtlib, this can become very tiresome as even very simple applications will have a lot of syntax noise.

Potential solutions

We can whitelist the stdlib of Python.
A even better solution would be to list all possible exceptions which might be thrown by any module in the stlib.

@JSAbrahams JSAbrahams added this to the Import management (v0.3.2) milestone Mar 9, 2020
Repository owner locked and limited conversation to collaborators Dec 29, 2022
@JSAbrahams JSAbrahams converted this issue into discussion #411 Dec 29, 2022

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant