Python None comparison: should I use "is" or ==?
Python None comparison: should I use "is" or ==? Question: My editor warns me when I compare my_var == None, but no warning when I use my_var is None. I did a test in the Python shell and determined both are valid syntax, but my editor seems to be saying that my_var is None is …