The Python Oracle

Does CPython guarantee that dict.keys has the same order as dict.values?

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: Cool Puzzler LoFi

--

Chapters
00:00 Question
01:19 Accepted answer (Score 3)
02:06 Thank you

--

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

Question links:
[The docs]: https://docs.python.org/2/library/stdtyp...
[implementation of dict.items() in dictobject.c]: https://hg.python.org/cpython/file/7ba47...

--

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

--

Tags
#python #cpython

#avk47