The Python Oracle

Python check for NoneType not working

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: Fantascape Looping

--

Chapters
00:00 Question
00:49 Accepted answer (Score 27)
01:05 Answer 2 (Score 18)
01:17 Thank you

--

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

Accepted answer links:
[bitwise or]: http://docs.python.org/release/2.5.2/ref...
[logical or]: http://docs.python.org/release/2.5.2/lib...

--

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

--

Tags
#python #ifstatement #nonetype

#avk47