The Python Oracle

Why is a boolean comparison with "is" so terrible?

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: Techno Intrigue Looping

--

Chapters
00:00 Question
02:02 Accepted answer (Score 2)
03:31 Answer 2 (Score 5)
04:13 Thank you

--

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

Question links:
[PEP 8]: https://www.python.org/dev/peps/pep-0008...
[Is there a difference between "==" and "is"?]: https://stackoverflow.com/questions/1329...

Answer 1 links:
[category mistake]: https://en.wikipedia.org/wiki/Category_m...

--

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

--

Tags
#python #boolean #booleanexpression

#avk47