Does Python need Javascript?

Ned Batchelder ned at nedbatchelder.com
Thu Jun 15 10:55:59 EDT 2017


On Thursday, June 15, 2017 at 5:55:07 AM UTC-4, Gregory Ewing wrote:
> Chris Angelico wrote:
> > There've been a number of attempts, over the years, to make a
> > sandboxed Python interpreter, where you can run untrusted code. But if
> > Python came with a JS interpreter, it would be possible to run
> > untrusted JS code, with Python functioning as a gatekeeper.
> 
> If that would provide sufficient sandboxing, then how about
> writing a Python interpreter in Python to get a sandboxed
> Python?

PyPy has a sandboxed mode, where every system call is routed through
a controller process than can decide what to do with it.

--Ned.



More information about the Python-list mailing list