embedding python in python

Lonnie Princehouse finite.automaton at gmail.com
Wed Sep 29 13:38:09 EDT 2004


Maurice LING <mauriceling at acm.org> wrote in message news:<415a7f0b$1 at news.unimelb.edu.au>...
> Hi,
> 
> anyone had any experiences in embedding python in python?
> 
> I've tried to do this but it doesn't work.
> 
> eval("from Tkinter import *")
> 
> Thanks
> maurice

You need exec for statements:

    exec("from Tkinter import *")



More information about the Python-list mailing list