You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
This discussion was converted from issue #200 on December 29, 2022 16:09.
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
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