@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-square118fedilinkarrow-up11arrow-down10
arrow-up11arrow-down1external-linkPython Performance: Why 'if not list' is 2x Faster Than Using len()blog.codingconfessions.com@abhi9u@lemmy.world to Technology@lemmy.worldEnglish • 1 year agomessage-square118fedilink
minus-square@catloaf@lemm.eelinkfedilinkEnglish0•1 year agoYou can make that assumption at your own peril.
minus-squareAvicennalinkfedilinkEnglish0•1 year agoIf anything len tells you that it is a sequence or a collection, “not” does not tell you that. That I feel like is the main point of my objection.
minus-square@WhyJiffie@sh.itjust.workslinkfedilinkEnglish0•1 year agoI don’t think they are a minority
You can make that assumption at your own peril.
If anything len tells you that it is a sequence or a collection, “not” does not tell you that. That I feel like is the main point of my objection.
I don’t think they are a minority