Question about apply
jjkk73 at gmail.com
Thu Sep 3 17:33:26 CEST 2009
On Thu, Sep 3, 2009 at 4:21 PM, Gary Herron <gherron at islandtraining.com>wrote:
> jorma kala wrote:
>> I'm using apply to pass keyword arguments as a dictionary to a funcion at
>> runtime (which keyword arguments to pass is only known at runtime)
>> apply is very handy for this, because it takes a dictionary of keyword
>> arguments directly
>> def f1(a=None,b=None,c=None):
>> But I read in the doc that apply is deprecated.
>> What is the non-deprecated way of doing this?
>> Many thanks
> Use the double-star syntax:
> Gary Herron
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Python-list