Y
Hacker News
new
|
ask
|
show
|
jobs
by
clintonc
4019 days ago
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.
1 comments
aerovistae
4019 days ago
Yes that's the only case I know of where 'is' is regularly used.
link