5 points by readevalprint 1 year, 1 month ago | 3 comments


 
2 points by readevalprint 1 year, 1 month ago | 2 comments | on: Show 🐍: Sneklang - Experimental restricted subset of Python for safe evaluation
Hey Pythonistas, This is a project that I've been working on for a while now and want to see if anyone can break it or any has any feedback in general.
 
2 points by intrepidhero 1 year, 1 month ago | 1 comment | parent | on: Show 🐍: Sneklang - Experimental restricted subset of Python for safe evaluation
Newbie question: What does "safe evaluation" mean in this context?
 
1 point by readevalprint 1 year, 1 month ago | discuss | parent | on: Show 🐍: Sneklang - Experimental restricted subset of Python for safe evaluation
Good question, I should expand on this in the readme too. Safe evaluation means, untrusted code has bounded memory usage, can only access explicitly provided scope, only access to whitelisted functions and attributes, and can only import explicitly whitelisted modules. So I put my server where my mouth is and if you can figure out a way to get a 500 error, I'll be impressed.