-def get(dic, *keys):
- '''Return the value of the last key given a (nested) dict
- and list of keys. If any key is missing, or if the value
- of any key except the last is not a dict, then None is returned.
- '''
+def get(dic, *keys, **kwargs):
+ """Return the value of the last key given a (nested) dict and
+ list of keys. If any key is missing, or if the value of any key
+ except the last is not a dict, then the default value is returned.
+ The default value may be passed in using the keyword 'default=',
+ otherwise the default value is None.
+ """