abhi9u@lemmy.world to Technology@lemmy.worldEnglish · 1 year agoPython Performance: Why 'if not list' is 2x Faster Than Using len()blog.codingconfessions.comexternal-linkmessage-square145fedilinkarrow-up1221arrow-down123
arrow-up1198arrow-down1external-linkPython Performance: Why 'if not list' is 2x Faster Than Using len()blog.codingconfessions.comabhi9u@lemmy.world to Technology@lemmy.worldEnglish · 1 year agomessage-square145fedilink
minus-squareChaoticNeutralCzech@feddit.orglinkfedilinkEnglisharrow-up2·1 year agoThe list is not necessarily empty. If you were sure it was, why check?
The list is not necessarily empty. If you were sure it was, why check?