does this code run rule

kingthrillgore@lemmy.ml to 196@lemmy.blahaj.zone – 293 points –
44

You are viewing a single comment

Should be is not None (:

You're right, though IIRC there's no functional difference when comparing to None (other than speed).

Yes there is. One invokes __ne__ on the left hand side, the other performs an identity comparison.