"is not" operator?
Carl Banks
pavlovevidence at gmail.com
Thu Jul 8 21:35:36 EDT 2010
On Jul 8, 1:32 pm, Robert Kern <robert.k... at 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
More information about the Python-list
mailing list