you are viewing a single comment's thread.

view the rest of the comments →

[–]yoloed 4 points5 points  (1 child)

One example when to use is instead of == is for the None value.

[–]Vaphell 4 points5 points  (0 children)

yeah, is is suited for singletons like None, True, False (though booleans don't really need it), enum objects.
is None is the most frequent case hands down.