beginner question on dinamin buiding of arg list
Alex Martelli
aleaxit at yahoo.com
Sun Mar 5 14:15:35 EST 2006
Sandro Dentella <sandro at e-den.it> wrote:
> I need to build-up an arg list to pass to a function.
>
> Suppose I have a dictionary:
>
> opts = { 'user' : 'jack', 'addr' : 'Green Str.'}
>
> and I want to build a cmd line like this:
>
> select( user='jack', addr='Green Str.' )
select(**opts)
should fit the bill. (it.comp.lang.python is the Italian newsgroup
about Python, by the way;-).
Alex
More information about the Python-list
mailing list