Re: fromfunc functions

2008-02-13 Thread castironpi
On Feb 13, 1:32 pm, azrael <[EMAIL PROTECTED]> wrote: > Thaks guys. this helped May I point you to partial: f= partial( func, arg ) f() -> func( arg ) -- http://mail.python.org/mailman/listinfo/python-list

Re: fromfunc functions

2008-02-13 Thread azrael
Thaks guys. this helped -- http://mail.python.org/mailman/listinfo/python-list

Re: fromfunc functions

2008-02-13 Thread Chris
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

Re: fromfunc functions

2008-02-13 Thread Marc 'BlackJack' Rintsch
On Wed, 13 Feb 2008 07:51:36 -0800, azrael 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. If you mean `fromfunction()` then you don't give the name of the function as str

Re: fromfunc functions

2008-02-13 Thread Chris
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

fromfunc functions

2008-02-13 Thread azrael
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 -- http://mail.python.org/mailman/