Skip to content
Better HN
Top
Best
Ask
Show
New
Jobs
Search
⌘K
0 points
clintonc
11y ago
0 comments
Save
Share
For example, 'if x == None' versus 'if x is None'. The latter is to be preferred (since identity is faster and more clear than comparison), but you see the former sometimes.
0 comments
1 comments · 1 top-level
top
newest
oldest
aerovistae
11y ago
Yes that's the only case I know of where 'is' is regularly used.
j
/
k
navigate · click thread line to collapse