Function application optimization.

Jacek Generowicz jacek.generowicz at cern.ch
Fri Dec 12 07:24:21 EST 2003


bokr at oz.net (Bengt Richter) writes:

> I'd probably try a list comprehension
> 
>  >>> [f(a) for f,a in zip(fncs,args)]
>  ['func_0(zero)', 'func_1(one)', 'func_2(two)', 'func_3(three)']

Yup, been there, done that, it's slower. (I guess I should have
mentioned that in the original post.)




More information about the Python-list mailing list