How can I turn a string into a callable object/function?
I have a = 'len', and I want to do: if callable(eval(a)): print
"callable", but that doesn't quite work the way I want. :)
|Bruno Desthuilliers||at Apr 21, 2008 at 11:26 am||⇧|
|TimeHorse||at Apr 21, 2008 at 11:37 am||⇧|
|Guillermo||at Apr 21, 2008 at 11:57 am||⇧|