do design patterns still apply with Python?

Paul Rubin http
Thu Mar 2 20:39:27 EST 2006


Roy Smith <roy at panix.com> writes:
> > Sandboxed code is a real obvious one.
> What is "sandboxed code"?

It's what the old rexec/bastion module tried unsuccessfully to
implement: a way of running potentially hostile code while limiting
the kinds of harmful stuff it can do.  This is needed for things like
browser applets.  Javascript (not related to Java except by name) also
depends on it.  A web browser that let arbitrary web pages run python
scripts would be totally insecure and would let the site implementers
take over your browser.  Obviously not every application needs this,
but it's hard to do unless there's fairly deep support for it in the
language.



More information about the Python-list mailing list