Using switches with exec?

Diez B. Roggisch nospam-deets at web.de
Mon Jan 12 10:28:55 EST 2004


> I need to run a Python program dynamically within
> another program. I am using exec for the purpose. Is
> there a way to pass parameter switches to exec?

You can pass a globals-dictionary to exec, which can hold the switches
values. 

Diez



More information about the Python-list mailing list