Newbie: How to pass a dictionary to a function?
Ricky Zhou
ricky.zhou at gmail.com
Tue Apr 8 00:09:36 EDT 2008
On 2008-04-07 08:54:09 PM, BonusOnus wrote:
> How do I pass a dictionary to a function as an argument?
>
>
> # Say I have a function foo...
> def foo (arg=[]):
Try:
def foo(arg={}):
Thanks,
Ricky
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 196 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/python-list/attachments/20080408/95b892c6/attachment-0001.sig>
More information about the Python-list
mailing list