The Python Oracle

Set "in" operator: uses equality or identity?

This video explains
Set "in" operator: uses equality or identity?

--

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: Isolated

--

Chapters
00:00 Question
00:28 Accepted answer (Score 16)
01:18 Answer 2 (Score 21)
01:45 Answer 3 (Score 8)
02:46 Answer 4 (Score 1)
04:14 Thank you

--

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

Accepted answer links:
[__hash__]: https://docs.python.org/2/reference/data...
[__cmp__]: https://docs.python.org/2/reference/data...

Answer 3 links:
[the official python docs on ]: http://docs.python.org/reference/datamod...

Answer 4 links:
[this SO question]: https://stackoverflow.com/questions/9089...

--

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

--

Tags
#python #set #identity #operatorkeyword #equality

#avk47