On Jul 8, 1:32 pm, Robert Kern <robert.k...@gmail.com> wrote: > On 7/8/10 4:10 PM, sturlamolden wrote: > > > What happens here? Does Python (2.6.5) have an "is not" operator? > > Yes. From Grammar/Grammar: > > comp_op: '<'|'>'|'=='|'>='|'<='|'<>'|'!='|'in'|'not' 'in'|'is'|'is' 'not'
Happy thing, too. I use "is not" a lot more than "is" and am happy to avoid the extra set of parentheses. Carl Banks -- http://mail.python.org/mailman/listinfo/python-list