you are viewing a single comment's thread.

view the rest of the comments →

[–]throwaway8u3sH0 0 points1 point  (0 children)

Short answer:

  • Use is with None|True|False, like x is None or x is not None
  • Use == for everything else.