When comparing to None, always use “is” or “is not”
The comparison is cheaper that way since it doesn’t call the potentially expensive ne() machinery.
The comparison is cheaper that way since it doesn’t call the potentially expensive ne() machinery.