Retrieve item deep in dict tree?

Steven D'Aprano steve at pearwood.info
Thu Apr 3 01:29:47 EDT 2014


On Wed, 02 Apr 2014 21:15:23 -0700, Rustom Mody wrote:

>>>>    reduce(dict.get, ['a','b','c'], nested)
> 'Hiii!!'


Nice!



-- 
Steven



More information about the Python-list mailing list