Re: Dictionary as Keyword Arguments

2008-12-11 Thread Chris Rebert
On Thu, Dec 11, 2008 at 4:02 PM, bfrederi wrote: > I was wondering if I had a dictionary of keywords and values like so: > > keyword_arg_dict = { >'attribute': 'stone', >'contents': 'cave people', >'path': '/path/to/cave', >'name': 'Ogg's Cave', >} > > And I had a function that

Dictionary as Keyword Arguments

2008-12-11 Thread bfrederi
I was wondering if I had a dictionary of keywords and values like so: keyword_arg_dict = { 'attribute': 'stone', 'contents': 'cave people', 'path': '/path/to/cave', 'name': 'Ogg's Cave', } And I had a function that accepted keyword arguments like so: make_dwelling( attrib