6. Use is None for None checks
Use is None and is not None for None checks.
None is a singleton, so identity is the right concept here, not equality. Using is also avoids surprising behavior from user-defined __eq__ methods that can make == None behave in unexpected ways.
6.1. Don’t do this
1if result == None:
2 print('missing')
6.2. Do this
1if result is None:
2 print('missing')