How can I exec() in global?
Jerald
jfj at freemail.gr
Sun Sep 12 04:49:03 EDT 2004
Michel Claveau - abstraction méta-galactique non triviale en fuite
perpétuelle. wrote:
>
> I have one sample reason (only me ?) : i had make a COM-server in Python ;
> and i send, from other applis, some Python's scripts, by a string, like
> parameters. My COM-server can to execute this scripts.
>
>
Similar reason here.
def mydef(X):
exec (X)
And
mydef("""
def g():
print 'Hi'
""")
cheers
Gerald
More information about the Python-list
mailing list