when to use == and when to use is
skip at pobox.com
Tue Mar 11 01:30:18 CET 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.
More information about the Python-list