when to use == and when to use is
Skip Montanaro
skip at pobox.com
Mon Mar 10 20:30:18 EDT 2014
I agree with Ben.
In this particular case, it seems you really should be using "=="
unless obj_0, obj_1, and obj_2 are sentinels.
Skip
More information about the Python-list
mailing list