Does '!=' equivelent to 'is not'

pirata pirata at mars.invalid
Mon Jun 16 23:29:53 EDT 2008


I'm a bit confusing about whether "is not" equivelent to "!="

if a != b:
  ...

if a is not b:
  ...


What's the difference between "is not" and "!=" or they are the same thing?



More information about the Python-list mailing list