"is not" operator?

Robert Kern robert.kern at gmail.com
Thu Jul 8 16:32:10 EDT 2010


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'

-- 
Robert Kern

"I have come to believe that the whole world is an enigma, a harmless enigma
  that is made terrible by our own mad attempt to interpret it as though it had
  an underlying truth."
   -- Umberto Eco




More information about the Python-list mailing list