Does '!=' equivelent to 'is not'

Terry Reedy tjreedy at udel.edu
Tue Jun 17 13:39:26 EDT 2008



pirata wrote:
> I'm a bit confusing about whether "is not" equivelent to "!="

 >>> 0 is not 0.0
True
 >>> 0 != 0.0
False




More information about the Python-list mailing list