One thing that is great about Python is that the functions are treated as first class objects. This means that you can assign a function to a variable, or you can use a function as a parameter value to be passed to another function, or you can use it as a return value from your defined function.
2 blog comments below
Is it possible to create a function at runtime?
Peterssidan on Sat Mar 03, 2012 12:26 pm
yes, it's possible. Just click http://stackoverflow.com/questions/533382/dynamic-runtime-method-creation-code-generation-in-python for an example.
nfbueno78 on Mon Mar 05, 2012 2:01 am