The Python Oracle

Convert a namedtuple into a dictionary

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: Fantascape Looping

--

Chapters
00:00 Question
00:52 Accepted answer (Score 381)
02:26 Answer 2 (Score 35)
02:59 Answer 3 (Score 7)
03:23 Answer 4 (Score 3)
04:47 Thank you

--

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

Accepted answer links:
[documented method]: https://docs.python.org/3/library/collec...
[here]: https://docs.python.org/3.3/library/coll...
[vars]: https://docs.python.org/3/library/functi...
[a bug]: http://bugs.python.org/issue24931
[this commit]: https://hg.python.org/cpython/rev/fa3ac3...

Answer 2 links:
[_asdict]: https://docs.python.org/2/library/collec...

--

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

--

Tags
#python #dictionary #tuples #namedtuple

#avk47