The Python Oracle

How to "test" NoneType in python?

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: Puzzle Game 5

--

Chapters
00:00 Question
00:29 Accepted answer (Score 938)
01:42 Answer 2 (Score 131)
01:57 Answer 3 (Score 63)
02:26 Answer 4 (Score 33)
03:30 Thank you

--

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

Accepted answer links:
[None]: https://docs.python.org/2/library/consta...
[NoneType]: https://docs.python.org/2/library/types....
[is]: https://docs.python.org/2/reference/expr...
[Python's Coding Style Guidelines - PEP-008]: https://www.python.org/dev/peps/pep-0008...

Answer 3 links:
[Alex Hall's answer]: https://stackoverflow.com/a/40553322/428...

Answer 4 links:
[cardamom's answer]: https://stackoverflow.com/questions/2308...
[documentation]: https://docs.python.org/3/library/functi...

--

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

--

Tags
#python #nonetype

#avk47