func(*params)

Peter Otten __peter__ at web.de
Fri Nov 18 16:48:30 EST 2005


David Duerrenmatt wrote:

> For some reasons, I've to use Python 1.5.2 and am looking for a
> workaround:
> 
> In newer Python versions, I can call a function this way:
> 
> func = some_function
> func(*params)
 
Use

apply(func, params) 

Peter




More information about the Python-list mailing list