The Python Oracle

Inconsistent behaviour between dict.values() and dict.keys() equality in Python 3.x and Python 2.7

This video explains
Inconsistent behaviour between dict.values() and dict.keys() equality in Python 3.x and Python 2.7

--

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:51 Accepted answer (Score 54)
02:59 Thank you

--

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

Accepted answer links:
[the documentation of dict-view objects]: https://docs.python.org/3/library/stdtyp...
[list]: https://docs.python.org/2/library/stdtyp...
[as mentioned in the documentation of dict-view objects in Python2.7]: https://docs.python.org/2/library/stdtyp...

--

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

--

Tags
#python #python3.x #python2.7

#avk47