I have a list...

Albert Hofkamp hat at se-46.wpa.wtb.tue.nl
Tue Jul 1 03:55:01 EDT 2003


On Tue, 1 Jul 2003 11:39:15 +0400, Damir Hakimov <agg at astranet.ru> wrote:
> Hi, All!
> 
> say, i have a function:
> 
> def f(*b):
>   print b
>   return
> 
> then i do:
> f(3,4,5)
> (3, 4, 5)
> 
> but i have list f=(3,4,5)
> f(l)
> ((3, 4, 5),)    
> 
> how can i call f function to result
> f(???(b))
> (3, 4, 5)

You mean apply(f,(3,4,5)) ?


Albert
-- 
Unlike popular belief, the .doc format is not an open publically available format.




More information about the Python-list mailing list