This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author vstinner
Recipients christian.heimes, cryptophoto, vstinner
Date 2020-11-26.15:01:19
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1606402879.44.0.608864580642.issue42472@roundup.psfhosted.org>
In-reply-to
Content
> The specification specifically allows for the restriction of access to globals via the second argument to eval.

The Python language reference doesn't provide any warranty like that.
https://docs.python.org/dev/library/functions.html#eval

I close the issue as "not as bug".

All previous attempts to "sandbox" Python code in Python have failed. The correct way is to run Python in a sandbox. Not the opposite.

> https://lwn.net/Articles/574215/ 

This one was my attempt for example ;-)
History
Date User Action Args
2020-11-26 15:01:19vstinnersetrecipients: + vstinner, christian.heimes, cryptophoto
2020-11-26 15:01:19vstinnersetmessageid: <1606402879.44.0.608864580642.issue42472@roundup.psfhosted.org>
2020-11-26 15:01:19vstinnerlinkissue42472 messages
2020-11-26 15:01:19vstinnercreate