You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Apart from being phrased the wrong way (the headline names the pattern, not the anti-pattern), it doesn't match the content.
The anti-pattern is about using is for equality tests, not about using something besides is for identity tests.
The headline should be changed to "Using is for equality testing" or something like that.
(There should probably also be an anti-pattern "Using == for identity testing" - I see stuff like x == None or (worse) x == True far more often than a misguided is)
The text was updated successfully, but these errors were encountered:
Apart from being phrased the wrong way (the headline names the pattern, not the anti-pattern), it doesn't match the content.
The anti-pattern is about using is for equality tests, not about using something besides is for identity tests.
The headline should be changed to "Using
is
for equality testing" or something like that.(There should probably also be an anti-pattern "Using == for identity testing" - I see stuff like
x == None
or (worse)x == True
far more often than a misguidedis
)The text was updated successfully, but these errors were encountered: