Victor Stinner wrote:

By "program" you mean a "process"?

No, I mean whatever *you* meant by "program" when you said
that different programs could otherwise interfere with each
other. If you have conceptually separate programs running
in the same interpreter that need to be isolated, each one
should run in its own sandbox with its own __builtins__ dict.

> should I create a new copy of __builtins__ for each
frame?

No, not for each frame, just for each computation that needs
to be isolated.

--
Greg
_______________________________________________
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Reply via email to