Re: [Tutor] Passing Dictionaries to Functions

2006-03-15 Thread Kent Johnson
Ed Singleton wrote: > Thanks again. > > This does bring up an issue I occaiosionally have with the documentation. > > Presumambly myfunc(**mydict) is a fairly trivial thing, but it is very > hard to find when you don't know what you're looking for. Not sure > what the solution is, but the inabil

Re: [Tutor] Passing Dictionaries to Functions

2006-03-15 Thread Ed Singleton
Thanks again. This does bring up an issue I occaiosionally have with the documentation. Presumambly myfunc(**mydict) is a fairly trivial thing, but it is very hard to find when you don't know what you're looking for. Not sure what the solution is, but the inability to search for things when you

Re: [Tutor] Passing Dictionaries to Functions

2006-03-15 Thread Kent Johnson
Ed Singleton wrote: > If I have a dictionary: > > mydict{'var1':"a", 'var2':"b"} Presumably you mean mydict = {'var1':"a", 'var2':"b"} > > and I want to pass it to a function as: > > myfunc(var1="a", var2="b") > > How would I do it? myfunc(**mydict) Kent _