kingthrillgore to [email protected] • 7 months agodoes this code run rulelemmy.mlimagemessage-square44fedilinkarrow-up1294arrow-down10
arrow-up1294arrow-down1imagedoes this code run rulelemmy.mlkingthrillgore to [email protected] • 7 months agomessage-square44fedilink
minus-squareLostXORlinkfedilink3•7 months agoYou’re right, though IIRC there’s no functional difference when comparing to None (other than speed).
minus-square@[email protected]linkfedilinkEnglish9•7 months agoYes there is. One invokes __ne__ on the left hand side, the other performs an identity comparison.
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.