The Python Oracle

Python None comparison: should I use "is" or ==?

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: Ocean Floor

--

Chapters
00:00 Question
00:37 Accepted answer (Score 340)
01:44 Answer 2 (Score 181)
02:20 Answer 3 (Score 13)
02:34 Answer 4 (Score 4)
03:27 Thank you

--

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

Answer 1 links:
[PEP 8]: https://www.python.org/dev/peps/pep-0008
[explicitly states]: https://www.python.org/dev/peps/pep-0008...

--

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

--

Tags
#python #comparison #nonetype

#avk47