Skip to content
Better HN
Top
New
Best
Ask
Show
Jobs
Search
⌘K
0 points
clintonc
10y ago
0 comments
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.
undefined | Better HN
0 comments
default
newest
oldest
aerovistae
10y ago
Yes that's the only case I know of where 'is' is regularly used.
j
/
k
navigate · click thread line to collapse