Re: passing keyword args as a parameter

2005-03-29 Thread max(01)*
Fredrik Lundh wrote: "max(01)*" <[EMAIL PROTECTED]> wrote: see what i mean? not really, but maybe arg = {"pc2": 666, "pc1": "Addio..."} fun_con_pc(**arg) is what you want? precisely! thanks a lot! macs -- http://mail.python.org/mailman/listinfo/python-list

Re: passing keyword args as a parameter

2005-03-29 Thread Fredrik Lundh
"max(01)*" <[EMAIL PROTECTED]> wrote: > see what i mean? not really, but maybe arg = {"pc2": 666, "pc1": "Addio..."} fun_con_pc(**arg) is what you want? -- http://mail.python.org/mailman/listinfo/python-list

passing keyword args as a parameter

2005-03-29 Thread max(01)*
hi there! this post is somewhat a generalization of one previous question. i was wondering if it is possible to pass an argument list as a parameter to a function. example: def fun_con_pc(pc1 = "Ciao!", pc2 = 42): print pc1 print pc2 fun_con_pc() fun_con_pc(pc1 = "Addio...") fun_con_pc(pc2 = 66