On Feb 13, 5:51 pm, azrael <[EMAIL PROTECTED]> wrote:
> I came across the fromfunc() function in numpy where you pass as an
> argument the name of a function as a string and also the atributes for
> the desired function.
>
> I find this extremly usefull and sexy. Can someone point me how write
> a function of such capabilities

getattr(object, 'function name')(*args)
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to