Proposal: === and !=== operators

Steven D'Aprano steve+comp.lang.python at pearwood.info
Wed Jul 9 14:48:29 CEST 2014


On Wed, 09 Jul 2014 08:27:28 -0400, Roy Smith wrote:

> We would have *three* ways to compare for equality (==, ===, and is).

`is` does not, never has, and never will, be a test for equality.

py> x = []
py> y = []
py> x is y
False



-- 
Steven



More information about the Python-list mailing list