How should be denote unsafe Python calls #411
JSAbrahams
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
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.
Beta Was this translation helpful? Give feedback.
All reactions