Hacker News new | ask | show | jobs
by eirki 1956 days ago
It is also marginally faster, I think.
1 comments

Just did a quick check, and looping over an array of 1 million Nones and checking each element

  el==None
was roughly 25% slower than

  el is None
edit: Doing

  None==el
was roughly 15% slower