The Python Oracle

Expressions with "== True" and "is True" give different results

This video explains
Expressions with "== True" and "is True" give different results

--

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: Dreaming in Puzzles

--

Chapters
00:00 Question
01:01 Accepted answer (Score 12)
02:26 Answer 2 (Score 9)
03:04 Answer 3 (Score 3)
03:34 Answer 4 (Score 2)
05:14 Thank you

--

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

Question links:
[MCVE]: https://stackoverflow.com/help/mcve
[PEP8]: https://www.python.org/dev/peps/pep-0008/

Accepted answer links:
[According to Stroustroup]: http://www.stroustrup.com/hopl2.pdf
[Seeing even more abuse of it in C++]: http://www.gotw.ca/publications/c_family...

--

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

--

Tags
#python #pandas #pep8

#avk47