Jason Novinger@programming.devM to Python@programming.dev · 1 year agoPython Performance: Why 'if not list' is 2x Faster Than Using len()blog.codingconfessions.comexternal-linkmessage-square6linkfedilinkarrow-up122arrow-down11cross-posted to: lobsters@lemmy.bestiver.setechnology@lemmy.world
arrow-up121arrow-down1external-linkPython Performance: Why 'if not list' is 2x Faster Than Using len()blog.codingconfessions.comJason Novinger@programming.devM to Python@programming.dev · 1 year agomessage-square6linkfedilinkcross-posted to: lobsters@lemmy.bestiver.setechnology@lemmy.world
minus-squareEphera@lemmy.mllinkfedilinkEnglisharrow-up3·1 year agoYou always want explicitness when programming. Not everyone reading your code will be deep into Python and relying on falsiness makes it harder to understand.
You always want explicitness when programming. Not everyone reading your code will be deep into Python and relying on falsiness makes it harder to understand.