Defining new functions at runtime
Mark McEahern
marklists at mceahern.com
Wed May 1 12:04:01 EDT 2002
> I am writing a GUI interface to a database using tkinter.
> Now, I want to
> provide a facility where a user can define python functions using the GUI
> and then run them in the same runtime environment. so, a normal function
> needs to be treated like a method object.
> Is this possible? Can I treat functions as first class objects? Can
> somebody please guide me as to how I could accomplish this?
Checkout the new module:
import new
I'm curious how you will restrict what they can do?
// mark
More information about the Python-list
mailing list