Name rebinding

Moshe Zadka moshez at
Fri Mar 17 16:19:20 CET 2000

On Thu, 16 Mar 2000 ccg at wrote:

>  I'm trying to set up an in-game scripting language using python - but the
> game itself is also in python.  Is there any way I can prevent the scripts
> from being able to rebind non-script variables/functions/methods/classes
> while still allowing them access to at least a sub-set of the non-script
> code?  Here's a simple example of what I'm talking about:

Read about "rexec" and "Bastion"

Moshe Zadka <mzadka at>. -- we put the penguin in .com

More information about the Python-list mailing list