The Python Oracle

Access nested dictionary items via a list of keys?

Become part of the top 3% of the developers by applying to Toptal https://topt.al/25cXVn

--

Music by Eric Matyas
https://www.soundimage.org
Track title: Over a Mysterious Island Looping

--

Chapters
00:00 Question
00:56 Accepted answer (Score 326)
02:19 Answer 2 (Score 78)
03:11 Answer 3 (Score 16)
04:26 Answer 4 (Score 11)
04:50 Thank you

--

Full question
https://stackoverflow.com/questions/1469...

Accepted answer links:
[prescribes snake_case names for functions]: https://www.python.org/dev/peps/pep-0008...

Answer 2 links:
[What’s New In Python 3.0]: https://docs.python.org/3.0/whatsnew/3.0...

Answer 3 links:
[Setting a value in a nested python dictionary given a list of indices and value]: https://stackoverflow.com/questions/1368...

Answer 4 links:
https://github.com/akesterson/dpath-pyth...

--

Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...

--

Tags
#python #list #dictionary

#avk47