The Python Oracle

Why isn't "is" comparison used in place of "==" for primitive types?

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: Droplet of life

--

Chapters
00:00 Question
01:15 Accepted answer (Score 7)
03:30 Thank you

--

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

Question links:
[Comparison with boolean numpy arrays VS PEP8 E712]: https://stackoverflow.com/questions/1516...

--

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

--

Tags
#python #comparison #immutability #primitivetypes

#avk47