idea on how to get/set nested python dictionary values

Simon Forman rogue_pedro at yahoo.com
Tue Aug 15 19:17:30 EDT 2006


wittempj at hotmail.com wrote:
> | would use a recursive approach for this - given that you have a sort
> of recursive datastructure:
>
> py> def SetNewDataParam2(Data, NewData):
> ...     if type(Data[Data.keys()[0]]) == type(dict()):


Note:

|>> type(dict()) is dict
True

"dict" *is* a type...




More information about the Python-list mailing list