Providing Python scripting to a Python application

Erik Max Francis max at alcyone.com
Fri Dec 27 08:11:30 EST 2002


"Gonçalo Rodrigues" wrote:

> Check out the exec statement. Basically it goes as:
> 
> exec <code> in <globals>

There's also a

	exec S in D1, D2

form where S is the string representing the code, D1 is the dictionary
representing the globals, and D2 is that representing the locals.

-- 
 Erik Max Francis / max at alcyone.com / http://www.alcyone.com/max/
 __ San Jose, CA, USA / 37 20 N 121 53 W / &tSftDotIotE
/  \ There is nothing stronger in the world than gentleness.
\__/ Han Suyin
    Bosskey.net: Return to Wolfenstein / http://www.bosskey.net/rtcw/
 A personal guide to Return to Castle Wolfenstein.



More information about the Python-list mailing list