Embedding Python in Python

510046470588-0001 at t-online.de 510046470588-0001 at t-online.de
Thu Aug 19 09:21:08 CEST 2004


Robey Holderith <robey at slash_dev_slash_random.org> writes:

> Anyone know a good way to embed python within python?
> 
> Now before you tell me that's silly, let me explain
> what I'd like to do.
> 
> I'd like to allow user-defined scriptable objects.  I'd
> like to give them access to modify pieces of my classes.
> I'd like to disallow access to pretty much the rest of
> the modules.
> 
> Any ideas/examples?

use the rexec module, or see how Zope does it


Klaus Schilling



More information about the Python-list mailing list