Having problems accepting parameters to a function

7stud bbxx789_05ss at yahoo.com
Tue May 1 13:19:13 EDT 2007


On May 1, 11:06 am, 7stud <bbxx789_0... at yahoo.com> wrote:
>
> You might consider redefining func() so that you don't have to do the
> unpack--repack...

When you define a function like this:

def func(**keywordargs):
    print keywordargs

the function expects to receive arguments in the form:

func(a="hello", b="world")

not:

func(adict)




More information about the Python-list mailing list